llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
|---|---|
; ModuleID = '/tmp/tmp8noy0tl6.c'
source_filename = "/tmp/tmp8noy0tl6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @NumeroElementiFSA(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
store ptr %0, ptr %2, align 8
store i64 0, ptr %3, align 8
br label %4
4: ; preds = %10, %1
%5 = load ptr, ptr %2, align 8
%6 = load i64, ptr %3, align 8
%7 = getelementptr inbounds ptr, ptr %5, i64 %6
%8 = load ptr, ptr %7, align 8
%9 = icmp ne ptr %8, null
br i1 %9, label %10, label %13
10: ; preds = %4
%11 = load i64, ptr %3, align 8
%12 = add i64 %11, 1
store i64 %12, ptr %3, align 8
br label %4, !llvm.loop !6
13: ; preds = %4
%14 = load i64, ptr %3, align 8
ret i64 %14
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp8noy0tl6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @NumeroElementiFSA(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
store ptr %0, ptr %2, align 8
store i64 0, ptr %3, align 8
%4 = load ptr, ptr %2, align 8
%5 = load i64, ptr %3, align 8
%6 = getelementptr inbounds ptr, ptr %4, i64 %5
%7 = load ptr, ptr %6, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %.lr.ph, label %17
.lr.ph: ; preds = %1
br label %9
9: ; preds = %.lr.ph, %9
%10 = load i64, ptr %3, align 8
%11 = add i64 %10, 1
store i64 %11, ptr %3, align 8
%12 = load ptr, ptr %2, align 8
%13 = load i64, ptr %3, align 8
%14 = getelementptr inbounds ptr, ptr %12, i64 %13
%15 = load ptr, ptr %14, align 8
%16 = icmp ne ptr %15, null
br i1 %16, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %9
br label %17
17: ; preds = %._crit_edge, %1
%18 = load i64, ptr %3, align 8
ret i64 %18
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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_92jd0nk.c'
source_filename = "/tmp/tmp_92jd0nk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [200 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/AmesianX/OpenBLT/refs/heads/master/Target/Demo/ARMCM3_LM3S_EK_LM3S8962_Crossworks/Boot/lib/driverlib/sysctl.c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @SysCtlLDOConfigSet(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%3 = load i64, ptr %2, align 8
%4 = icmp eq i64 %3, 1
br i1 %4, label %10, label %5
5: ; preds = %1
%6 = load i64, ptr %2, align 8
%7 = icmp eq i64 %6, 0
br i1 %7, label %10, label %8
8: ; preds = %5
%9 = call i32 @AssertFailure(ptr noundef @.str, i32 noundef 1064)
br label %10
10: ; preds = %8, %5, %1
%11 = load i64, ptr %2, align 8
store volatile i64 %11, ptr inttoptr (i64 1074782560 to ptr), align 8
ret void
}
declare i32 @AssertFailure(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_92jd0nk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [200 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/AmesianX/OpenBLT/refs/heads/master/Target/Demo/ARMCM3_LM3S_EK_LM3S8962_Crossworks/Boot/lib/driverlib/sysctl.c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @SysCtlLDOConfigSet(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%3 = load i64, ptr %2, align 8
%4 = icmp eq i64 %3, 1
br i1 %4, label %10, label %5
5: ; preds = %1
%6 = load i64, ptr %2, align 8
%7 = icmp eq i64 %6, 0
br i1 %7, label %10, label %8
8: ; preds = %5
%9 = call i32 @AssertFailure(ptr noundef @.str, i32 noundef 1064)
br label %10
10: ; preds = %8, %5, %1
%11 = load i64, ptr %2, align 8
store volatile i64 %11, ptr inttoptr (i64 1074782560 to ptr), align 8
ret void
}
declare i32 @AssertFailure(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/tmpacsunazu.c'
source_filename = "/tmp/tmpacsunazu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.addrinfo = type { i32, i32, i32, ptr, i32, i32 }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [36 x i8] c"hostname and listen port required!\0A\00", align 1
@.str.1 = private unnamed_addr constant [35 x i8] c"hostname and listen port required!\00", align 1
@SOCK_DGRAM = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [25 x i8] c"getaddrinfo error: [%s]\0A\00", align 1
@errno = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [60 x i8] c"Send socket error: could not open the requested socket: %s\0A\00", align 1
@.str.4 = private unnamed_addr constant [59 x i8] c"Send socket error: could not open the requested socket: %s\00", align 1
@SOL_SOCKET = dso_local global i32 0, align 4
@SO_SNDBUF = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [57 x i8] c"Warning: Socket write buffer size requested: %u set: %u\0A\00", align 1
@.str.6 = private unnamed_addr constant [58 x i8] c"Warning: Socket buffer size can only be changed by root!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @Unicast_send_socket(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca %struct.addrinfo, align 8
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
store ptr %0, ptr %8, align 8
store ptr %1, ptr %9, align 8
store i32 %2, ptr %10, align 4
store i32 %3, ptr %11, align 4
store ptr %4, ptr %12, align 8
store ptr %5, ptr %13, align 8
%21 = load ptr, ptr %8, align 8
%22 = icmp ne ptr %21, null
br i1 %22, label %23, label %26
23: ; preds = %6
%24 = load ptr, ptr %9, align 8
%25 = icmp ne ptr %24, null
br i1 %25, label %30, label %26
26: ; preds = %23, %6
%27 = load i32, ptr @stderr, align 4
%28 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %27, ptr noundef @.str)
%29 = call i32 (ptr, ...) @LogError(ptr noundef @.str.1)
store i32 -1, ptr %7, align 4
br label %149
30: ; preds = %23
%31 = call i32 @memset(ptr noundef %14, i32 noundef 0, i32 noundef 32)
%32 = load i32, ptr %10, align 4
%33 = getelementptr inbounds %struct.addrinfo, ptr %14, i32 0, i32 0
store i32 %32, ptr %33, align 8
%34 = load i32, ptr @SOCK_DGRAM, align 4
%35 = getelementptr inbounds %struct.addrinfo, ptr %14, i32 0, i32 5
store i32 %34, ptr %35, align 4
%36 = load ptr, ptr %8, align 8
%37 = load ptr, ptr %9, align 8
%38 = call i32 @getaddrinfo(ptr noundef %36, ptr noundef %37, ptr noundef %14, ptr noundef %15)
store i32 %38, ptr %17, align 4
%39 = load i32, ptr %17, align 4
%40 = icmp slt i32 %39, 0
br i1 %40, label %41, label %46
41: ; preds = %30
%42 = load i32, ptr @stderr, align 4
%43 = load i32, ptr @errno, align 4
%44 = call ptr @strerror(i32 noundef %43)
%45 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %42, ptr noundef @.str.2, ptr noundef %44)
store i32 -1, ptr %7, align 4
br label %149
46: ; preds = %30
%47 = load ptr, ptr %15, align 8
store ptr %47, ptr %16, align 8
store i32 -1, ptr %18, align 4
br label %48
48: ; preds = %90, %46
%49 = load ptr, ptr %15, align 8
%50 = icmp ne ptr %49, null
br i1 %50, label %51, label %94
51: ; preds = %48
%52 = load ptr, ptr %15, align 8
%53 = getelementptr inbounds %struct.addrinfo, ptr %52, i32 0, i32 0
%54 = load i32, ptr %53, align 8
%55 = load ptr, ptr %15, align 8
%56 = getelementptr inbounds %struct.addrinfo, ptr %55, i32 0, i32 5
%57 = load i32, ptr %56, align 4
%58 = load ptr, ptr %15, align 8
%59 = getelementptr inbounds %struct.addrinfo, ptr %58, i32 0, i32 4
%60 = load i32, ptr %59, align 8
%61 = call i32 @socket(i32 noundef %54, i32 noundef %57, i32 noundef %60)
store i32 %61, ptr %18, align 4
%62 = load i32, ptr %18, align 4
%63 = icmp slt i32 %62, 0
br i1 %63, label %90, label %64
64: ; preds = %51
%65 = load i32, ptr %18, align 4
%66 = load ptr, ptr %15, align 8
%67 = getelementptr inbounds %struct.addrinfo, ptr %66, i32 0, i32 2
%68 = load i32, ptr %67, align 8
%69 = load ptr, ptr %15, align 8
%70 = getelementptr inbounds %struct.addrinfo, ptr %69, i32 0, i32 1
%71 = load i32, ptr %70, align 4
%72 = call i64 @connect(i32 noundef %65, i32 noundef %68, i32 noundef %71)
%73 = icmp eq i64 %72, 0
br i1 %73, label %74, label %87
74: ; preds = %64
%75 = load i32, ptr %18, align 4
%76 = call i32 @close(i32 noundef %75)
%77 = load ptr, ptr %15, align 8
%78 = getelementptr inbounds %struct.addrinfo, ptr %77, i32 0, i32 0
%79 = load i32, ptr %78, align 8
%80 = load ptr, ptr %15, align 8
%81 = getelementptr inbounds %struct.addrinfo, ptr %80, i32 0, i32 5
%82 = load i32, ptr %81, align 4
%83 = load ptr, ptr %15, align 8
%84 = getelementptr inbounds %struct.addrinfo, ptr %83, i32 0, i32 4
%85 = load i32, ptr %84, align 8
%86 = call i32 @socket(i32 noundef %79, i32 noundef %82, i32 noundef %85)
store i32 %86, ptr %18, align 4
br label %94
87: ; preds = %64
%88 = load i32, ptr %18, align 4
%89 = call i32 @close(i32 noundef %88)
store i32 -1, ptr %18, align 4
br label %90
90: ; preds = %87, %51
%91 = load ptr, ptr %15, align 8
%92 = getelementptr inbounds %struct.addrinfo, ptr %91, i32 0, i32 3
%93 = load ptr, ptr %92, align 8
store ptr %93, ptr %15, align 8
br label %48, !llvm.loop !6
94: ; preds = %74, %48
%95 = load i32, ptr %18, align 4
%96 = icmp slt i32 %95, 0
br i1 %96, label %97, label %107
97: ; preds = %94
%98 = load ptr, ptr %16, align 8
%99 = call i32 @freeaddrinfo(ptr noundef %98)
%100 = load i32, ptr @stderr, align 4
%101 = load i32, ptr @errno, align 4
%102 = call ptr @strerror(i32 noundef %101)
%103 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %100, ptr noundef @.str.3, ptr noundef %102)
%104 = load i32, ptr @errno, align 4
%105 = call ptr @strerror(i32 noundef %104)
%106 = call i32 (ptr, ...) @LogError(ptr noundef @.str.4, ptr noundef %105)
store i32 -1, ptr %7, align 4
br label %149
107: ; preds = %94
%108 = load ptr, ptr %15, align 8
%109 = getelementptr inbounds %struct.addrinfo, ptr %108, i32 0, i32 1
%110 = load i32, ptr %109, align 4
%111 = load ptr, ptr %13, align 8
store i32 %110, ptr %111, align 4
%112 = load ptr, ptr %12, align 8
%113 = load ptr, ptr %15, align 8
%114 = getelementptr inbounds %struct.addrinfo, ptr %113, i32 0, i32 2
%115 = load i32, ptr %114, align 8
%116 = load ptr, ptr %15, align 8
%117 = getelementptr inbounds %struct.addrinfo, ptr %116, i32 0, i32 1
%118 = load i32, ptr %117, align 4
%119 = call i32 @memcpy(ptr noundef %112, i32 noundef %115, i32 noundef %118)
%120 = load ptr, ptr %16, align 8
%121 = call i32 @freeaddrinfo(ptr noundef %120)
%122 = load i32, ptr %11, align 4
%123 = icmp ugt i32 %122, 0
br i1 %123, label %124, label %147
124: ; preds = %107
%125 = call i64 (...) @geteuid()
%126 = icmp eq i64 %125, 0
br i1 %126, label %127, label %144
127: ; preds = %124
%128 = load i32, ptr %18, align 4
%129 = load i32, ptr @SOL_SOCKET, align 4
%130 = load i32, ptr @SO_SNDBUF, align 4
%131 = call i32 @setsockopt(i32 noundef %128, i32 noundef %129, i32 noundef %130, ptr noundef %11, i32 noundef 4)
%132 = load i32, ptr %18, align 4
%133 = load i32, ptr @SOL_SOCKET, align 4
%134 = load i32, ptr @SO_SNDBUF, align 4
%135 = call i32 @getsockopt(i32 noundef %132, i32 noundef %133, i32 noundef %134, ptr noundef %19, ptr noundef %20)
%136 = load i32, ptr %11, align 4
%137 = load i32, ptr %19, align 4
%138 = icmp ne i32 %136, %137
br i1 %138, label %139, label %143
139: ; preds = %127
%140 = load i32, ptr %11, align 4
%141 = load i32, ptr %19, align 4
%142 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %140, i32 noundef %141)
br label %143
143: ; preds = %139, %127
br label %146
144: ; preds = %124
%145 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %146
146: ; preds = %144, %143
br label %147
147: ; preds = %146, %107
%148 = load i32, ptr %18, align 4
store i32 %148, ptr %7, align 4
br label %149
149: ; preds = %147, %97, %41, %26
%150 = load i32, ptr %7, align 4
ret i32 %150
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @LogError(ptr noundef, ...) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @getaddrinfo(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @strerror(i32 noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i64 @connect(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @freeaddrinfo(ptr noundef) #1
declare i32 @memcpy(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @geteuid(...) #1
declare i32 @setsockopt(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @getsockopt(i32 noundef, i32 noundef, i32 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"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpacsunazu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.addrinfo = type { i32, i32, i32, ptr, i32, i32 }
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [36 x i8] c"hostname and listen port required!\0A\00", align 1
@.str.1 = private unnamed_addr constant [35 x i8] c"hostname and listen port required!\00", align 1
@SOCK_DGRAM = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [25 x i8] c"getaddrinfo error: [%s]\0A\00", align 1
@errno = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [60 x i8] c"Send socket error: could not open the requested socket: %s\0A\00", align 1
@.str.4 = private unnamed_addr constant [59 x i8] c"Send socket error: could not open the requested socket: %s\00", align 1
@SOL_SOCKET = dso_local global i32 0, align 4
@SO_SNDBUF = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [57 x i8] c"Warning: Socket write buffer size requested: %u set: %u\0A\00", align 1
@.str.6 = private unnamed_addr constant [58 x i8] c"Warning: Socket buffer size can only be changed by root!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @Unicast_send_socket(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca %struct.addrinfo, align 8
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
store ptr %0, ptr %8, align 8
store ptr %1, ptr %9, align 8
store i32 %2, ptr %10, align 4
store i32 %3, ptr %11, align 4
store ptr %4, ptr %12, align 8
store ptr %5, ptr %13, align 8
%21 = load ptr, ptr %8, align 8
%22 = icmp ne ptr %21, null
br i1 %22, label %23, label %26
23: ; preds = %6
%24 = load ptr, ptr %9, align 8
%25 = icmp ne ptr %24, null
br i1 %25, label %30, label %26
26: ; preds = %23, %6
%27 = load i32, ptr @stderr, align 4
%28 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %27, ptr noundef @.str)
%29 = call i32 (ptr, ...) @LogError(ptr noundef @.str.1)
store i32 -1, ptr %7, align 4
br label %150
30: ; preds = %23
%31 = call i32 @memset(ptr noundef %14, i32 noundef 0, i32 noundef 32)
%32 = load i32, ptr %10, align 4
%33 = getelementptr inbounds %struct.addrinfo, ptr %14, i32 0, i32 0
store i32 %32, ptr %33, align 8
%34 = load i32, ptr @SOCK_DGRAM, align 4
%35 = getelementptr inbounds %struct.addrinfo, ptr %14, i32 0, i32 5
store i32 %34, ptr %35, align 4
%36 = load ptr, ptr %8, align 8
%37 = load ptr, ptr %9, align 8
%38 = call i32 @getaddrinfo(ptr noundef %36, ptr noundef %37, ptr noundef %14, ptr noundef %15)
store i32 %38, ptr %17, align 4
%39 = load i32, ptr %17, align 4
%40 = icmp slt i32 %39, 0
br i1 %40, label %41, label %46
41: ; preds = %30
%42 = load i32, ptr @stderr, align 4
%43 = load i32, ptr @errno, align 4
%44 = call ptr @strerror(i32 noundef %43)
%45 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %42, ptr noundef @.str.2, ptr noundef %44)
store i32 -1, ptr %7, align 4
br label %150
46: ; preds = %30
%47 = load ptr, ptr %15, align 8
store ptr %47, ptr %16, align 8
store i32 -1, ptr %18, align 4
%48 = load ptr, ptr %15, align 8
%49 = icmp ne ptr %48, null
br i1 %49, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %46
br label %50
50: ; preds = %.lr.ph, %89
%51 = load ptr, ptr %15, align 8
%52 = getelementptr inbounds %struct.addrinfo, ptr %51, i32 0, i32 0
%53 = load i32, ptr %52, align 8
%54 = load ptr, ptr %15, align 8
%55 = getelementptr inbounds %struct.addrinfo, ptr %54, i32 0, i32 5
%56 = load i32, ptr %55, align 4
%57 = load ptr, ptr %15, align 8
%58 = getelementptr inbounds %struct.addrinfo, ptr %57, i32 0, i32 4
%59 = load i32, ptr %58, align 8
%60 = call i32 @socket(i32 noundef %53, i32 noundef %56, i32 noundef %59)
store i32 %60, ptr %18, align 4
%61 = load i32, ptr %18, align 4
%62 = icmp slt i32 %61, 0
br i1 %62, label %89, label %63
63: ; preds = %50
%64 = load i32, ptr %18, align 4
%65 = load ptr, ptr %15, align 8
%66 = getelementptr inbounds %struct.addrinfo, ptr %65, i32 0, i32 2
%67 = load i32, ptr %66, align 8
%68 = load ptr, ptr %15, align 8
%69 = getelementptr inbounds %struct.addrinfo, ptr %68, i32 0, i32 1
%70 = load i32, ptr %69, align 4
%71 = call i64 @connect(i32 noundef %64, i32 noundef %67, i32 noundef %70)
%72 = icmp eq i64 %71, 0
br i1 %72, label %73, label %86
73: ; preds = %63
%74 = load i32, ptr %18, align 4
%75 = call i32 @close(i32 noundef %74)
%76 = load ptr, ptr %15, align 8
%77 = getelementptr inbounds %struct.addrinfo, ptr %76, i32 0, i32 0
%78 = load i32, ptr %77, align 8
%79 = load ptr, ptr %15, align 8
%80 = getelementptr inbounds %struct.addrinfo, ptr %79, i32 0, i32 5
%81 = load i32, ptr %80, align 4
%82 = load ptr, ptr %15, align 8
%83 = getelementptr inbounds %struct.addrinfo, ptr %82, i32 0, i32 4
%84 = load i32, ptr %83, align 8
%85 = call i32 @socket(i32 noundef %78, i32 noundef %81, i32 noundef %84)
store i32 %85, ptr %18, align 4
br label %95
86: ; preds = %63
%87 = load i32, ptr %18, align 4
%88 = call i32 @close(i32 noundef %87)
store i32 -1, ptr %18, align 4
br label %89
89: ; preds = %86, %50
%90 = load ptr, ptr %15, align 8
%91 = getelementptr inbounds %struct.addrinfo, ptr %90, i32 0, i32 3
%92 = load ptr, ptr %91, align 8
store ptr %92, ptr %15, align 8
%93 = load ptr, ptr %15, align 8
%94 = icmp ne ptr %93, null
br i1 %94, label %50, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %89
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %46
br label %95
95: ; preds = %.loopexit, %73
%96 = load i32, ptr %18, align 4
%97 = icmp slt i32 %96, 0
br i1 %97, label %98, label %108
98: ; preds = %95
%99 = load ptr, ptr %16, align 8
%100 = call i32 @freeaddrinfo(ptr noundef %99)
%101 = load i32, ptr @stderr, align 4
%102 = load i32, ptr @errno, align 4
%103 = call ptr @strerror(i32 noundef %102)
%104 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %101, ptr noundef @.str.3, ptr noundef %103)
%105 = load i32, ptr @errno, align 4
%106 = call ptr @strerror(i32 noundef %105)
%107 = call i32 (ptr, ...) @LogError(ptr noundef @.str.4, ptr noundef %106)
store i32 -1, ptr %7, align 4
br label %150
108: ; preds = %95
%109 = load ptr, ptr %15, align 8
%110 = getelementptr inbounds %struct.addrinfo, ptr %109, i32 0, i32 1
%111 = load i32, ptr %110, align 4
%112 = load ptr, ptr %13, align 8
store i32 %111, ptr %112, align 4
%113 = load ptr, ptr %12, align 8
%114 = load ptr, ptr %15, align 8
%115 = getelementptr inbounds %struct.addrinfo, ptr %114, i32 0, i32 2
%116 = load i32, ptr %115, align 8
%117 = load ptr, ptr %15, align 8
%118 = getelementptr inbounds %struct.addrinfo, ptr %117, i32 0, i32 1
%119 = load i32, ptr %118, align 4
%120 = call i32 @memcpy(ptr noundef %113, i32 noundef %116, i32 noundef %119)
%121 = load ptr, ptr %16, align 8
%122 = call i32 @freeaddrinfo(ptr noundef %121)
%123 = load i32, ptr %11, align 4
%124 = icmp ugt i32 %123, 0
br i1 %124, label %125, label %148
125: ; preds = %108
%126 = call i64 (...) @geteuid()
%127 = icmp eq i64 %126, 0
br i1 %127, label %128, label %145
128: ; preds = %125
%129 = load i32, ptr %18, align 4
%130 = load i32, ptr @SOL_SOCKET, align 4
%131 = load i32, ptr @SO_SNDBUF, align 4
%132 = call i32 @setsockopt(i32 noundef %129, i32 noundef %130, i32 noundef %131, ptr noundef %11, i32 noundef 4)
%133 = load i32, ptr %18, align 4
%134 = load i32, ptr @SOL_SOCKET, align 4
%135 = load i32, ptr @SO_SNDBUF, align 4
%136 = call i32 @getsockopt(i32 noundef %133, i32 noundef %134, i32 noundef %135, ptr noundef %19, ptr noundef %20)
%137 = load i32, ptr %11, align 4
%138 = load i32, ptr %19, align 4
%139 = icmp ne i32 %137, %138
br i1 %139, label %140, label %144
140: ; preds = %128
%141 = load i32, ptr %11, align 4
%142 = load i32, ptr %19, align 4
%143 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %141, i32 noundef %142)
br label %144
144: ; preds = %140, %128
br label %147
145: ; preds = %125
%146 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %147
147: ; preds = %145, %144
br label %148
148: ; preds = %147, %108
%149 = load i32, ptr %18, align 4
store i32 %149, ptr %7, align 4
br label %150
150: ; preds = %148, %98, %41, %26
%151 = load i32, ptr %7, align 4
ret i32 %151
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @LogError(ptr noundef, ...) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @getaddrinfo(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @strerror(i32 noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i64 @connect(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @freeaddrinfo(ptr noundef) #1
declare i32 @memcpy(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @geteuid(...) #1
declare i32 @setsockopt(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @getsockopt(i32 noundef, i32 noundef, i32 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"}
|
; ModuleID = '/tmp/tmpxuop9g2u.c'
source_filename = "/tmp/tmpxuop9g2u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%p\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"BAD ARGUMENT\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cmd_mvwinstr(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 [256 x i8], align 16
%8 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%9 = load i32, ptr %3, align 4
%10 = call i32 @check_arg_count(i32 noundef %9, i32 noundef 3)
%11 = icmp eq i32 %10, 1
br i1 %11, label %12, label %13
12: ; preds = %2
br label %50
13: ; preds = %2
%14 = load ptr, ptr %4, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 0
%16 = load ptr, ptr %15, align 8
%17 = call i64 @sscanf(ptr noundef %16, ptr noundef @.str, ptr noundef %8)
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %22
19: ; preds = %13
%20 = call i32 @report_count(i32 noundef 1)
%21 = call i32 @report_error(ptr noundef @.str.1)
br label %50
22: ; preds = %13
%23 = load ptr, ptr %4, align 8
%24 = getelementptr inbounds ptr, ptr %23, i64 1
%25 = load ptr, ptr %24, align 8
%26 = call i64 @sscanf(ptr noundef %25, ptr noundef @.str.2, ptr noundef %5)
%27 = icmp eq i64 %26, 0
br i1 %27, label %28, label %31
28: ; preds = %22
%29 = call i32 @report_count(i32 noundef 1)
%30 = call i32 @report_error(ptr noundef @.str.1)
br label %50
31: ; preds = %22
%32 = load ptr, ptr %4, align 8
%33 = getelementptr inbounds ptr, ptr %32, i64 2
%34 = load ptr, ptr %33, align 8
%35 = call i64 @sscanf(ptr noundef %34, ptr noundef @.str.2, ptr noundef %6)
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %40
37: ; preds = %31
%38 = call i32 @report_count(i32 noundef 1)
%39 = call i32 @report_error(ptr noundef @.str.1)
br label %50
40: ; preds = %31
%41 = call i32 @report_count(i32 noundef 2)
%42 = load ptr, ptr %8, align 8
%43 = load i32, ptr %5, align 4
%44 = load i32, ptr %6, align 4
%45 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%46 = call i32 @mvwinstr(ptr noundef %42, i32 noundef %43, i32 noundef %44, ptr noundef %45)
%47 = call i32 @report_return(i32 noundef %46)
%48 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%49 = call i32 @report_status(ptr noundef %48)
br label %50
50: ; preds = %40, %37, %28, %19, %12
ret void
}
declare i32 @check_arg_count(i32 noundef, i32 noundef) #1
declare i64 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @report_count(i32 noundef) #1
declare i32 @report_error(ptr noundef) #1
declare i32 @report_return(i32 noundef) #1
declare i32 @mvwinstr(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @report_status(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxuop9g2u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%p\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"BAD ARGUMENT\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cmd_mvwinstr(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 [256 x i8], align 16
%8 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%9 = load i32, ptr %3, align 4
%10 = call i32 @check_arg_count(i32 noundef %9, i32 noundef 3)
%11 = icmp eq i32 %10, 1
br i1 %11, label %12, label %13
12: ; preds = %2
br label %50
13: ; preds = %2
%14 = load ptr, ptr %4, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 0
%16 = load ptr, ptr %15, align 8
%17 = call i64 @sscanf(ptr noundef %16, ptr noundef @.str, ptr noundef %8)
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %22
19: ; preds = %13
%20 = call i32 @report_count(i32 noundef 1)
%21 = call i32 @report_error(ptr noundef @.str.1)
br label %50
22: ; preds = %13
%23 = load ptr, ptr %4, align 8
%24 = getelementptr inbounds ptr, ptr %23, i64 1
%25 = load ptr, ptr %24, align 8
%26 = call i64 @sscanf(ptr noundef %25, ptr noundef @.str.2, ptr noundef %5)
%27 = icmp eq i64 %26, 0
br i1 %27, label %28, label %31
28: ; preds = %22
%29 = call i32 @report_count(i32 noundef 1)
%30 = call i32 @report_error(ptr noundef @.str.1)
br label %50
31: ; preds = %22
%32 = load ptr, ptr %4, align 8
%33 = getelementptr inbounds ptr, ptr %32, i64 2
%34 = load ptr, ptr %33, align 8
%35 = call i64 @sscanf(ptr noundef %34, ptr noundef @.str.2, ptr noundef %6)
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %40
37: ; preds = %31
%38 = call i32 @report_count(i32 noundef 1)
%39 = call i32 @report_error(ptr noundef @.str.1)
br label %50
40: ; preds = %31
%41 = call i32 @report_count(i32 noundef 2)
%42 = load ptr, ptr %8, align 8
%43 = load i32, ptr %5, align 4
%44 = load i32, ptr %6, align 4
%45 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%46 = call i32 @mvwinstr(ptr noundef %42, i32 noundef %43, i32 noundef %44, ptr noundef %45)
%47 = call i32 @report_return(i32 noundef %46)
%48 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%49 = call i32 @report_status(ptr noundef %48)
br label %50
50: ; preds = %40, %37, %28, %19, %12
ret void
}
declare i32 @check_arg_count(i32 noundef, i32 noundef) #1
declare i64 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @report_count(i32 noundef) #1
declare i32 @report_error(ptr noundef) #1
declare i32 @report_return(i32 noundef) #1
declare i32 @mvwinstr(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @report_status(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdggsdqio.c'
source_filename = "/tmp/tmpdggsdqio.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rotate_270(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca [10 x [10 x i8]], align 16
%8 = alloca [10 x [10 x i8]], align 16
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%9 = getelementptr inbounds [10 x [10 x i8]], ptr %7, i64 0, i64 0
%10 = call i32 @memset(ptr noundef %9, i32 noundef 0, i32 noundef 100)
%11 = getelementptr inbounds [10 x [10 x i8]], ptr %8, i64 0, i64 0
%12 = call i32 @memset(ptr noundef %11, i32 noundef 0, i32 noundef 100)
%13 = load ptr, ptr %4, align 8
%14 = getelementptr inbounds [10 x [10 x i8]], ptr %7, i64 0, i64 0
%15 = load i32, ptr %6, align 4
%16 = call i32 @rotate_90(ptr noundef %13, ptr noundef %14, i32 noundef %15)
%17 = getelementptr inbounds [10 x [10 x i8]], ptr %7, i64 0, i64 0
%18 = getelementptr inbounds [10 x [10 x i8]], ptr %8, i64 0, i64 0
%19 = load i32, ptr %6, align 4
%20 = call i32 @rotate_90(ptr noundef %17, ptr noundef %18, i32 noundef %19)
%21 = getelementptr inbounds [10 x [10 x i8]], ptr %8, i64 0, i64 0
%22 = load ptr, ptr %5, align 8
%23 = load i32, ptr %6, align 4
%24 = call i32 @rotate_90(ptr noundef %21, ptr noundef %22, i32 noundef %23)
ret void
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @rotate_90(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/tmpdggsdqio.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rotate_270(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca [10 x [10 x i8]], align 16
%8 = alloca [10 x [10 x i8]], align 16
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%9 = getelementptr inbounds [10 x [10 x i8]], ptr %7, i64 0, i64 0
%10 = call i32 @memset(ptr noundef %9, i32 noundef 0, i32 noundef 100)
%11 = getelementptr inbounds [10 x [10 x i8]], ptr %8, i64 0, i64 0
%12 = call i32 @memset(ptr noundef %11, i32 noundef 0, i32 noundef 100)
%13 = load ptr, ptr %4, align 8
%14 = getelementptr inbounds [10 x [10 x i8]], ptr %7, i64 0, i64 0
%15 = load i32, ptr %6, align 4
%16 = call i32 @rotate_90(ptr noundef %13, ptr noundef %14, i32 noundef %15)
%17 = getelementptr inbounds [10 x [10 x i8]], ptr %7, i64 0, i64 0
%18 = getelementptr inbounds [10 x [10 x i8]], ptr %8, i64 0, i64 0
%19 = load i32, ptr %6, align 4
%20 = call i32 @rotate_90(ptr noundef %17, ptr noundef %18, i32 noundef %19)
%21 = getelementptr inbounds [10 x [10 x i8]], ptr %8, i64 0, i64 0
%22 = load ptr, ptr %5, align 8
%23 = load i32, ptr %6, align 4
%24 = call i32 @rotate_90(ptr noundef %21, ptr noundef %22, i32 noundef %23)
ret void
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @rotate_90(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/tmp7t4h025v.c'
source_filename = "/tmp/tmp7t4h025v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %3
3: ; preds = %30, %0
%4 = call i32 (...) @getchar()
store i32 %4, ptr %2, align 4
%5 = load i32, ptr @EOF, align 4
%6 = icmp ne i32 %4, %5
br i1 %6, label %7, label %31
7: ; preds = %3
%8 = load i32, ptr %2, align 4
%9 = icmp eq i32 %8, 9
br i1 %9, label %10, label %13
10: ; preds = %7
%11 = call i32 @putchar(i32 noundef 92)
%12 = call i32 @putchar(i32 noundef 116)
br label %30
13: ; preds = %7
%14 = load i32, ptr %2, align 4
%15 = icmp eq i32 %14, 32
br i1 %15, label %16, label %19
16: ; preds = %13
%17 = call i32 @putchar(i32 noundef 92)
%18 = call i32 @putchar(i32 noundef 98)
br label %29
19: ; preds = %13
%20 = load i32, ptr %2, align 4
%21 = icmp eq i32 %20, 92
br i1 %21, label %22, label %25
22: ; preds = %19
%23 = call i32 @putchar(i32 noundef 92)
%24 = call i32 @putchar(i32 noundef 92)
br label %28
25: ; preds = %19
%26 = load i32, ptr %2, align 4
%27 = call i32 @putchar(i32 noundef %26)
br label %28
28: ; preds = %25, %22
br label %29
29: ; preds = %28, %16
br label %30
30: ; preds = %29, %10
br label %3, !llvm.loop !6
31: ; preds = %3
ret i32 0
}
declare i32 @getchar(...) #1
declare i32 @putchar(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7t4h025v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 (...) @getchar()
store i32 %3, ptr %2, align 4
%4 = load i32, ptr @EOF, align 4
%5 = icmp ne i32 %3, %4
br i1 %5, label %.lr.ph, label %33
.lr.ph: ; preds = %0
br label %6
6: ; preds = %.lr.ph, %29
%7 = load i32, ptr %2, align 4
%8 = icmp eq i32 %7, 9
br i1 %8, label %9, label %12
9: ; preds = %6
%10 = call i32 @putchar(i32 noundef 92)
%11 = call i32 @putchar(i32 noundef 116)
br label %29
12: ; preds = %6
%13 = load i32, ptr %2, align 4
%14 = icmp eq i32 %13, 32
br i1 %14, label %15, label %18
15: ; preds = %12
%16 = call i32 @putchar(i32 noundef 92)
%17 = call i32 @putchar(i32 noundef 98)
br label %28
18: ; preds = %12
%19 = load i32, ptr %2, align 4
%20 = icmp eq i32 %19, 92
br i1 %20, label %21, label %24
21: ; preds = %18
%22 = call i32 @putchar(i32 noundef 92)
%23 = call i32 @putchar(i32 noundef 92)
br label %27
24: ; preds = %18
%25 = load i32, ptr %2, align 4
%26 = call i32 @putchar(i32 noundef %25)
br label %27
27: ; preds = %24, %21
br label %28
28: ; preds = %27, %15
br label %29
29: ; preds = %28, %9
%30 = call i32 (...) @getchar()
store i32 %30, ptr %2, align 4
%31 = load i32, ptr @EOF, align 4
%32 = icmp ne i32 %30, %31
br i1 %32, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %29
br label %33
33: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @getchar(...) #1
declare i32 @putchar(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp3iexh_r5.c'
source_filename = "/tmp/tmp3iexh_r5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @EPIDividerSet(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = icmp eq i32 %5, 1074593792
%7 = zext i1 %6 to i32
%8 = call i32 @ASSERT(i32 noundef %7)
%9 = load i32, ptr %4, align 4
%10 = load i32, ptr %3, align 4
%11 = add nsw i32 %10, 4
%12 = sext i32 %11 to i64
%13 = inttoptr i64 %12 to ptr
store volatile i32 %9, ptr %13, align 4
ret void
}
declare i32 @ASSERT(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3iexh_r5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @EPIDividerSet(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = icmp eq i32 %5, 1074593792
%7 = zext i1 %6 to i32
%8 = call i32 @ASSERT(i32 noundef %7)
%9 = load i32, ptr %4, align 4
%10 = load i32, ptr %3, align 4
%11 = add nsw i32 %10, 4
%12 = sext i32 %11 to i64
%13 = inttoptr i64 %12 to ptr
store volatile i32 %9, ptr %13, align 4
ret void
}
declare i32 @ASSERT(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqyo4_tei.c'
source_filename = "/tmp/tmpqyo4_tei.c"
target datalayout = "e-m:e-p270: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/tmpqyo4_tei.c"
target datalayout = "e-m:e-p270: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/tmp4oa1ayp8.c'
source_filename = "/tmp/tmp4oa1ayp8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.1 = private unnamed_addr constant [61 x i8] c" * * * * * * * * * * * * * * * * * * * * * * * * * * * * * \0A\00", align 1
@.str.2 = private unnamed_addr constant [61 x i8] c" * Mussel disturbance model * \0A\00", align 1
@.str.3 = private unnamed_addr constant [61 x i8] c" * OpenCL implementation : Johan van de Koppel, 2014 * \0A\00", align 1
@.str.4 = private unnamed_addr constant [61 x i8] c" * Following a model by Guichard et al 2003 * \0A\00", align 1
@.str.5 = private unnamed_addr constant [62 x i8] c" * * * * * * * * * * * * * * * * * * * * * * * * * * * * * \0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Print_Label() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @printf(ptr noundef @.str.1)
%3 = call i32 @printf(ptr noundef @.str.2)
%4 = call i32 @printf(ptr noundef @.str.3)
%5 = call i32 @printf(ptr noundef @.str.4)
%6 = call i32 @printf(ptr noundef @.str.5)
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/tmp4oa1ayp8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.1 = private unnamed_addr constant [61 x i8] c" * * * * * * * * * * * * * * * * * * * * * * * * * * * * * \0A\00", align 1
@.str.2 = private unnamed_addr constant [61 x i8] c" * Mussel disturbance model * \0A\00", align 1
@.str.3 = private unnamed_addr constant [61 x i8] c" * OpenCL implementation : Johan van de Koppel, 2014 * \0A\00", align 1
@.str.4 = private unnamed_addr constant [61 x i8] c" * Following a model by Guichard et al 2003 * \0A\00", align 1
@.str.5 = private unnamed_addr constant [62 x i8] c" * * * * * * * * * * * * * * * * * * * * * * * * * * * * * \0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Print_Label() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @printf(ptr noundef @.str.1)
%3 = call i32 @printf(ptr noundef @.str.2)
%4 = call i32 @printf(ptr noundef @.str.3)
%5 = call i32 @printf(ptr noundef @.str.4)
%6 = call i32 @printf(ptr noundef @.str.5)
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/tmpzjewp8h0.c'
source_filename = "/tmp/tmpzjewp8h0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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\09\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @display(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %6
6: ; preds = %17, %2
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %10, label %20
10: ; preds = %6
%11 = load ptr, ptr %3, align 8
%12 = load i32, ptr %5, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i32, ptr %11, i64 %13
%15 = load i32, ptr %14, align 4
%16 = call i32 @printf(ptr noundef @.str, i32 noundef %15)
br label %17
17: ; preds = %10
%18 = load i32, ptr %5, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %5, align 4
br label %6, !llvm.loop !6
20: ; preds = %6
ret void
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzjewp8h0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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\09\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @display(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
%6 = load i32, ptr %5, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %6, %7
br i1 %8, label %.lr.ph, label %22
.lr.ph: ; preds = %2
br label %9
9: ; preds = %.lr.ph, %16
%10 = load ptr, ptr %3, align 8
%11 = load i32, ptr %5, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i32, ptr %10, i64 %12
%14 = load i32, ptr %13, align 4
%15 = call i32 @printf(ptr noundef @.str, i32 noundef %14)
br label %16
16: ; preds = %9
%17 = load i32, ptr %5, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %5, align 4
%19 = load i32, ptr %5, align 4
%20 = load i32, ptr %4, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %16
br label %22
22: ; preds = %._crit_edge, %2
ret void
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpai7q_glu.c'
source_filename = "/tmp/tmpai7q_glu.c"
target datalayout = "e-m:e-p270: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/tmpai7q_glu.c"
target datalayout = "e-m:e-p270: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/tmpt94mgc12.c'
source_filename = "/tmp/tmpt94mgc12.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ds_list_prepend(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 i32 @ds_list_insert(ptr noundef %5, ptr noundef null, ptr noundef %6)
ret void
}
declare i32 @ds_list_insert(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/tmpt94mgc12.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ds_list_prepend(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 i32 @ds_list_insert(ptr noundef %5, ptr noundef null, ptr noundef %6)
ret void
}
declare i32 @ds_list_insert(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/tmplbpf1ogd.c'
source_filename = "/tmp/tmplbpf1ogd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [43 x i8] c"Enter the period of the orbit in minutes: \00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%lf\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @getPeriod() #0 {
%1 = alloca double, align 8
%2 = call i32 @printf(ptr noundef @.str)
%3 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %1)
%4 = load double, ptr %1, align 8
ret double %4
}
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/tmplbpf1ogd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [43 x i8] c"Enter the period of the orbit in minutes: \00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%lf\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @getPeriod() #0 {
%1 = alloca double, align 8
%2 = call i32 @printf(ptr noundef @.str)
%3 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %1)
%4 = load double, ptr %1, align 8
ret double %4
}
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/tmpvargcjky.c'
source_filename = "/tmp/tmpvargcjky.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [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 i64, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
store i32 0, ptr %1, align 4
%7 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
br label %8
8: ; preds = %29, %0
%9 = load i64, ptr %2, align 8
%10 = add nsw i64 %9, -1
store i64 %10, ptr %2, align 8
%11 = icmp ne i64 %9, 0
br i1 %11, label %12, label %32
12: ; preds = %8
%13 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
store i64 1, ptr %4, align 8
store i64 0, ptr %5, align 8
br label %14
14: ; preds = %12, %28
%15 = load i64, ptr %4, align 8
%16 = mul nsw i64 %15, 5
store i64 %16, ptr %4, align 8
%17 = load i64, ptr %4, align 8
%18 = load i64, ptr %3, align 8
%19 = icmp sgt i64 %17, %18
br i1 %19, label %20, label %21
20: ; preds = %14
br label %29
21: ; preds = %14
%22 = load i64, ptr %3, align 8
%23 = load i64, ptr %4, align 8
%24 = sdiv i64 %22, %23
store i64 %24, ptr %6, align 8
%25 = load i64, ptr %6, align 8
%26 = load i64, ptr %5, align 8
%27 = add nsw i64 %26, %25
store i64 %27, ptr %5, align 8
br label %28
28: ; preds = %21
br label %14
29: ; preds = %20
%30 = load i64, ptr %5, align 8
%31 = call i32 @printf(ptr noundef @.str.1, i64 noundef %30)
br label %8, !llvm.loop !6
32: ; preds = %8
%33 = load i32, ptr %1, align 4
ret i32 %33
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvargcjky.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [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 i64, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
store i32 0, ptr %1, align 4
%7 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%8 = load i64, ptr %2, align 8
%9 = add nsw i64 %8, -1
store i64 %9, ptr %2, align 8
%10 = icmp ne i64 %8, 0
br i1 %10, label %.lr.ph2, label %38
.lr.ph2: ; preds = %0
br label %11
11: ; preds = %.lr.ph2, %32
%12 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
store i64 1, ptr %4, align 8
store i64 0, ptr %5, align 8
%13 = load i64, ptr %4, align 8
%14 = mul nsw i64 %13, 5
store i64 %14, ptr %4, align 8
%15 = load i64, ptr %4, align 8
%16 = load i64, ptr %3, align 8
%17 = icmp sgt i64 %15, %16
br i1 %17, label %18, label %.lr.ph
.lr.ph: ; preds = %11
br label %19
._crit_edge: ; preds = %26
br label %18
18: ; preds = %._crit_edge, %11
br label %32
19: ; preds = %.lr.ph, %26
%20 = load i64, ptr %3, align 8
%21 = load i64, ptr %4, align 8
%22 = sdiv i64 %20, %21
store i64 %22, ptr %6, align 8
%23 = load i64, ptr %6, align 8
%24 = load i64, ptr %5, align 8
%25 = add nsw i64 %24, %23
store i64 %25, ptr %5, align 8
br label %26
26: ; preds = %19
%27 = load i64, ptr %4, align 8
%28 = mul nsw i64 %27, 5
store i64 %28, ptr %4, align 8
%29 = load i64, ptr %4, align 8
%30 = load i64, ptr %3, align 8
%31 = icmp sgt i64 %29, %30
br i1 %31, label %._crit_edge, label %19
32: ; preds = %18
%33 = load i64, ptr %5, align 8
%34 = call i32 @printf(ptr noundef @.str.1, i64 noundef %33)
%35 = load i64, ptr %2, align 8
%36 = add nsw i64 %35, -1
store i64 %36, ptr %2, align 8
%37 = icmp ne i64 %35, 0
br i1 %37, label %11, label %._crit_edge3, !llvm.loop !6
._crit_edge3: ; preds = %32
br label %38
38: ; preds = %._crit_edge3, %0
%39 = load i32, ptr %1, align 4
ret i32 %39
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp4vi53bnf.c'
source_filename = "/tmp/tmp4vi53bnf.c"
target datalayout = "e-m:e-p270: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/tmp4vi53bnf.c"
target datalayout = "e-m:e-p270: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/tmpgoymrc78.c'
source_filename = "/tmp/tmpgoymrc78.c"
target datalayout = "e-m:e-p270: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/tmpgoymrc78.c"
target datalayout = "e-m:e-p270: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/tmpt3hlzlbw.c'
source_filename = "/tmp/tmpt3hlzlbw.c"
target datalayout = "e-m:e-p270: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 { ptr }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @dirent_getname(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = sext i32 %7 to i64
%9 = getelementptr inbounds ptr, ptr %6, i64 %8
%10 = load ptr, ptr %9, align 8
%11 = getelementptr inbounds %struct.dirent, ptr %10, i32 0, i32 0
%12 = load ptr, ptr %11, align 8
ret ptr %12
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpt3hlzlbw.c"
target datalayout = "e-m:e-p270: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 { ptr }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @dirent_getname(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = sext i32 %7 to i64
%9 = getelementptr inbounds ptr, ptr %6, i64 %8
%10 = load ptr, ptr %9, align 8
%11 = getelementptr inbounds %struct.dirent, ptr %10, i32 0, i32 0
%12 = load ptr, ptr %11, align 8
ret ptr %12
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpa1sv_m1u.c'
source_filename = "/tmp/tmpa1sv_m1u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [4 x i8] c"%d\0A\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"%d nota(s) de R$ 100,00\0A\00", align 1
@.str.3 = private unnamed_addr constant [24 x i8] c"%d nota(s) de R$ 50,00\0A\00", align 1
@.str.4 = private unnamed_addr constant [24 x i8] c"%d nota(s) de R$ 20,00\0A\00", align 1
@.str.5 = private unnamed_addr constant [24 x i8] c"%d nota(s) de R$ 10,00\0A\00", align 1
@.str.6 = private unnamed_addr constant [23 x i8] c"%d nota(s) de R$ 5,00\0A\00", align 1
@.str.7 = private unnamed_addr constant [23 x i8] c"%d nota(s) de R$ 2,00\0A\00", align 1
@.str.8 = private unnamed_addr constant [23 x i8] c"%d nota(s) de R$ 1,00\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 0, ptr %1, align 4
%10 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%11 = load i32, ptr %2, align 4
%12 = sdiv i32 %11, 100
store i32 %12, ptr %3, align 4
%13 = load i32, ptr %2, align 4
%14 = srem i32 %13, 100
%15 = sdiv i32 %14, 50
store i32 %15, ptr %4, align 4
%16 = load i32, ptr %2, align 4
%17 = srem i32 %16, 100
%18 = srem i32 %17, 50
%19 = sdiv i32 %18, 20
store i32 %19, ptr %5, align 4
%20 = load i32, ptr %2, align 4
%21 = srem i32 %20, 100
%22 = srem i32 %21, 50
%23 = srem i32 %22, 20
%24 = sdiv i32 %23, 10
store i32 %24, ptr %6, align 4
%25 = load i32, ptr %2, align 4
%26 = srem i32 %25, 100
%27 = srem i32 %26, 50
%28 = srem i32 %27, 20
%29 = srem i32 %28, 10
%30 = sdiv i32 %29, 5
store i32 %30, ptr %7, align 4
%31 = load i32, ptr %2, align 4
%32 = srem i32 %31, 100
%33 = srem i32 %32, 50
%34 = srem i32 %33, 20
%35 = srem i32 %34, 10
%36 = srem i32 %35, 5
%37 = sdiv i32 %36, 2
store i32 %37, ptr %8, align 4
%38 = load i32, ptr %2, align 4
%39 = srem i32 %38, 100
%40 = srem i32 %39, 50
%41 = srem i32 %40, 20
%42 = srem i32 %41, 10
%43 = srem i32 %42, 5
%44 = srem i32 %43, 2
%45 = sdiv i32 %44, 1
store i32 %45, ptr %9, align 4
%46 = load i32, ptr %2, align 4
%47 = call i32 @printf(ptr noundef @.str.1, i32 noundef %46)
%48 = load i32, ptr %3, align 4
%49 = call i32 @printf(ptr noundef @.str.2, i32 noundef %48)
%50 = load i32, ptr %4, align 4
%51 = call i32 @printf(ptr noundef @.str.3, i32 noundef %50)
%52 = load i32, ptr %5, align 4
%53 = call i32 @printf(ptr noundef @.str.4, i32 noundef %52)
%54 = load i32, ptr %6, align 4
%55 = call i32 @printf(ptr noundef @.str.5, i32 noundef %54)
%56 = load i32, ptr %7, align 4
%57 = call i32 @printf(ptr noundef @.str.6, i32 noundef %56)
%58 = load i32, ptr %8, align 4
%59 = call i32 @printf(ptr noundef @.str.7, i32 noundef %58)
%60 = load i32, ptr %9, align 4
%61 = call i32 @printf(ptr noundef @.str.8, i32 noundef %60)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpa1sv_m1u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [4 x i8] c"%d\0A\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"%d nota(s) de R$ 100,00\0A\00", align 1
@.str.3 = private unnamed_addr constant [24 x i8] c"%d nota(s) de R$ 50,00\0A\00", align 1
@.str.4 = private unnamed_addr constant [24 x i8] c"%d nota(s) de R$ 20,00\0A\00", align 1
@.str.5 = private unnamed_addr constant [24 x i8] c"%d nota(s) de R$ 10,00\0A\00", align 1
@.str.6 = private unnamed_addr constant [23 x i8] c"%d nota(s) de R$ 5,00\0A\00", align 1
@.str.7 = private unnamed_addr constant [23 x i8] c"%d nota(s) de R$ 2,00\0A\00", align 1
@.str.8 = private unnamed_addr constant [23 x i8] c"%d nota(s) de R$ 1,00\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 0, ptr %1, align 4
%10 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%11 = load i32, ptr %2, align 4
%12 = sdiv i32 %11, 100
store i32 %12, ptr %3, align 4
%13 = load i32, ptr %2, align 4
%14 = srem i32 %13, 100
%15 = sdiv i32 %14, 50
store i32 %15, ptr %4, align 4
%16 = load i32, ptr %2, align 4
%17 = srem i32 %16, 100
%18 = srem i32 %17, 50
%19 = sdiv i32 %18, 20
store i32 %19, ptr %5, align 4
%20 = load i32, ptr %2, align 4
%21 = srem i32 %20, 100
%22 = srem i32 %21, 50
%23 = srem i32 %22, 20
%24 = sdiv i32 %23, 10
store i32 %24, ptr %6, align 4
%25 = load i32, ptr %2, align 4
%26 = srem i32 %25, 100
%27 = srem i32 %26, 50
%28 = srem i32 %27, 20
%29 = srem i32 %28, 10
%30 = sdiv i32 %29, 5
store i32 %30, ptr %7, align 4
%31 = load i32, ptr %2, align 4
%32 = srem i32 %31, 100
%33 = srem i32 %32, 50
%34 = srem i32 %33, 20
%35 = srem i32 %34, 10
%36 = srem i32 %35, 5
%37 = sdiv i32 %36, 2
store i32 %37, ptr %8, align 4
%38 = load i32, ptr %2, align 4
%39 = srem i32 %38, 100
%40 = srem i32 %39, 50
%41 = srem i32 %40, 20
%42 = srem i32 %41, 10
%43 = srem i32 %42, 5
%44 = srem i32 %43, 2
%45 = sdiv i32 %44, 1
store i32 %45, ptr %9, align 4
%46 = load i32, ptr %2, align 4
%47 = call i32 @printf(ptr noundef @.str.1, i32 noundef %46)
%48 = load i32, ptr %3, align 4
%49 = call i32 @printf(ptr noundef @.str.2, i32 noundef %48)
%50 = load i32, ptr %4, align 4
%51 = call i32 @printf(ptr noundef @.str.3, i32 noundef %50)
%52 = load i32, ptr %5, align 4
%53 = call i32 @printf(ptr noundef @.str.4, i32 noundef %52)
%54 = load i32, ptr %6, align 4
%55 = call i32 @printf(ptr noundef @.str.5, i32 noundef %54)
%56 = load i32, ptr %7, align 4
%57 = call i32 @printf(ptr noundef @.str.6, i32 noundef %56)
%58 = load i32, ptr %8, align 4
%59 = call i32 @printf(ptr noundef @.str.7, i32 noundef %58)
%60 = load i32, ptr %9, align 4
%61 = call i32 @printf(ptr noundef @.str.8, i32 noundef %60)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpav4h52k3.c'
source_filename = "/tmp/tmpav4h52k3.c"
target datalayout = "e-m:e-p270: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 { ptr }
@errno = dso_local global i64 0, align 8
@EACCES = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [2 x i8] c".\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"..\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"/\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @do_dir(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 [4096 x i8], align 16
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%8 = load ptr, ptr %3, align 8
%9 = call ptr @opendir(ptr noundef %8)
store ptr %9, ptr %5, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %21
11: ; preds = %2
%12 = load i64, ptr @errno, align 8
%13 = load i64, ptr @EACCES, align 8
%14 = icmp ne i64 %12, %13
br i1 %14, label %15, label %20
15: ; preds = %11
%16 = load i64, ptr @errno, align 8
%17 = call i32 @error(i32 noundef 1, i32 noundef 1, ptr noundef @.str, i64 noundef %16)
%18 = load i32, ptr @EXIT_FAILURE, align 4
%19 = call i32 @exit(i32 noundef %18) #3
unreachable
20: ; preds = %11
br label %66
21: ; preds = %2
br label %22
22: ; preds = %64, %38, %21
%23 = load ptr, ptr %5, align 8
%24 = call ptr @readdir(ptr noundef %23)
store ptr %24, ptr %6, align 8
%25 = icmp ne ptr %24, null
br i1 %25, label %26, label %65
26: ; preds = %22
%27 = load ptr, ptr %6, align 8
%28 = getelementptr inbounds %struct.dirent, ptr %27, i32 0, i32 0
%29 = load ptr, ptr %28, align 8
%30 = call i64 @strcmp(ptr noundef %29, ptr noundef @.str.1)
%31 = icmp eq i64 %30, 0
br i1 %31, label %38, label %32
32: ; preds = %26
%33 = load ptr, ptr %6, align 8
%34 = getelementptr inbounds %struct.dirent, ptr %33, i32 0, i32 0
%35 = load ptr, ptr %34, align 8
%36 = call i64 @strcmp(ptr noundef %35, ptr noundef @.str.2)
%37 = icmp eq i64 %36, 0
br i1 %37, label %38, label %39
38: ; preds = %32, %26
br label %22, !llvm.loop !6
39: ; preds = %32
%40 = getelementptr inbounds [4096 x i8], ptr %7, i64 0, i64 0
%41 = load ptr, ptr %3, align 8
%42 = call i32 @strcpy(ptr noundef %40, ptr noundef %41)
%43 = load ptr, ptr %3, align 8
%44 = load ptr, ptr %3, align 8
%45 = call i32 @strlen(ptr noundef %44)
%46 = sub nsw i32 %45, 1
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i8, ptr %43, i64 %47
%49 = load i8, ptr %48, align 1
%50 = sext i8 %49 to i32
%51 = icmp ne i32 %50, 47
br i1 %51, label %52, label %55
52: ; preds = %39
%53 = getelementptr inbounds [4096 x i8], ptr %7, i64 0, i64 0
%54 = call i32 @strcat(ptr noundef %53, ptr noundef @.str.3)
br label %55
55: ; preds = %52, %39
%56 = getelementptr inbounds [4096 x i8], ptr %7, i64 0, i64 0
%57 = load ptr, ptr %6, align 8
%58 = getelementptr inbounds %struct.dirent, ptr %57, i32 0, i32 0
%59 = load ptr, ptr %58, align 8
%60 = call i32 @strcat(ptr noundef %56, ptr noundef %59)
%61 = getelementptr inbounds [4096 x i8], ptr %7, i64 0, i64 0
%62 = load ptr, ptr %4, align 8
%63 = call i32 @do_file(ptr noundef %61, ptr noundef %62)
br label %64
64: ; preds = %55
br label %22, !llvm.loop !6
65: ; preds = %22
br label %66
66: ; preds = %65, %20
%67 = load ptr, ptr %5, align 8
%68 = call i32 @closedir(ptr noundef %67)
ret void
}
declare ptr @opendir(ptr noundef) #1
declare i32 @error(i32 noundef, i32 noundef, ptr noundef, i64 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @readdir(ptr noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare i32 @do_file(ptr noundef, ptr noundef) #1
declare i32 @closedir(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpav4h52k3.c"
target datalayout = "e-m:e-p270: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 { ptr }
@errno = dso_local global i64 0, align 8
@EACCES = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [2 x i8] c".\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"..\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"/\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @do_dir(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 [4096 x i8], align 16
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%8 = load ptr, ptr %3, align 8
%9 = call ptr @opendir(ptr noundef %8)
store ptr %9, ptr %5, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %21
11: ; preds = %2
%12 = load i64, ptr @errno, align 8
%13 = load i64, ptr @EACCES, align 8
%14 = icmp ne i64 %12, %13
br i1 %14, label %15, label %20
15: ; preds = %11
%16 = load i64, ptr @errno, align 8
%17 = call i32 @error(i32 noundef 1, i32 noundef 1, ptr noundef @.str, i64 noundef %16)
%18 = load i32, ptr @EXIT_FAILURE, align 4
%19 = call i32 @exit(i32 noundef %18) #3
unreachable
20: ; preds = %11
br label %68
21: ; preds = %2
%22 = load ptr, ptr %5, align 8
%23 = call ptr @readdir(ptr noundef %22)
store ptr %23, ptr %6, align 8
%24 = icmp ne ptr %23, null
br i1 %24, label %.lr.ph, label %67
.lr.ph: ; preds = %21
br label %25
25: ; preds = %.lr.ph, %.backedge
%26 = load ptr, ptr %6, align 8
%27 = getelementptr inbounds %struct.dirent, ptr %26, i32 0, i32 0
%28 = load ptr, ptr %27, align 8
%29 = call i64 @strcmp(ptr noundef %28, ptr noundef @.str.1)
%30 = icmp eq i64 %29, 0
br i1 %30, label %37, label %31
31: ; preds = %25
%32 = load ptr, ptr %6, align 8
%33 = getelementptr inbounds %struct.dirent, ptr %32, i32 0, i32 0
%34 = load ptr, ptr %33, align 8
%35 = call i64 @strcmp(ptr noundef %34, ptr noundef @.str.2)
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %41
37: ; preds = %31, %25
br label %.backedge
.backedge: ; preds = %37, %66
%38 = load ptr, ptr %5, align 8
%39 = call ptr @readdir(ptr noundef %38)
store ptr %39, ptr %6, align 8
%40 = icmp ne ptr %39, null
br i1 %40, label %25, label %._crit_edge, !llvm.loop !6
41: ; preds = %31
%42 = getelementptr inbounds [4096 x i8], ptr %7, i64 0, i64 0
%43 = load ptr, ptr %3, align 8
%44 = call i32 @strcpy(ptr noundef %42, ptr noundef %43)
%45 = load ptr, ptr %3, align 8
%46 = load ptr, ptr %3, align 8
%47 = call i32 @strlen(ptr noundef %46)
%48 = sub nsw i32 %47, 1
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i8, ptr %45, i64 %49
%51 = load i8, ptr %50, align 1
%52 = sext i8 %51 to i32
%53 = icmp ne i32 %52, 47
br i1 %53, label %54, label %57
54: ; preds = %41
%55 = getelementptr inbounds [4096 x i8], ptr %7, i64 0, i64 0
%56 = call i32 @strcat(ptr noundef %55, ptr noundef @.str.3)
br label %57
57: ; preds = %54, %41
%58 = getelementptr inbounds [4096 x i8], ptr %7, i64 0, i64 0
%59 = load ptr, ptr %6, align 8
%60 = getelementptr inbounds %struct.dirent, ptr %59, i32 0, i32 0
%61 = load ptr, ptr %60, align 8
%62 = call i32 @strcat(ptr noundef %58, ptr noundef %61)
%63 = getelementptr inbounds [4096 x i8], ptr %7, i64 0, i64 0
%64 = load ptr, ptr %4, align 8
%65 = call i32 @do_file(ptr noundef %63, ptr noundef %64)
br label %66
66: ; preds = %57
br label %.backedge
._crit_edge: ; preds = %.backedge
br label %67
67: ; preds = %._crit_edge, %21
br label %68
68: ; preds = %67, %20
%69 = load ptr, ptr %5, align 8
%70 = call i32 @closedir(ptr noundef %69)
ret void
}
declare ptr @opendir(ptr noundef) #1
declare i32 @error(i32 noundef, i32 noundef, ptr noundef, i64 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @readdir(ptr noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare i32 @do_file(ptr noundef, ptr noundef) #1
declare i32 @closedir(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp8xa9uqxm.c'
source_filename = "/tmp/tmp8xa9uqxm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@parse_word.buff = internal global [101 x i8] zeroinitializer, align 16
@stdin = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [6 x i8] c"%100s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @parse_word() #0 {
%1 = alloca ptr, align 8
%2 = load i32, ptr @stdin, align 4
%3 = call i32 @fscanf(i32 noundef %2, ptr noundef @.str, ptr noundef @parse_word.buff)
%4 = icmp eq i32 %3, 1
br i1 %4, label %5, label %7
5: ; preds = %0
%6 = call ptr @strdup(ptr noundef @parse_word.buff)
store ptr %6, ptr %1, align 8
br label %8
7: ; preds = %0
store ptr null, ptr %1, align 8
br label %8
8: ; preds = %7, %5
%9 = load ptr, ptr %1, align 8
ret ptr %9
}
declare i32 @fscanf(i32 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/tmp8xa9uqxm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@parse_word.buff = internal global [101 x i8] zeroinitializer, align 16
@stdin = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [6 x i8] c"%100s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @parse_word() #0 {
%1 = alloca ptr, align 8
%2 = load i32, ptr @stdin, align 4
%3 = call i32 @fscanf(i32 noundef %2, ptr noundef @.str, ptr noundef @parse_word.buff)
%4 = icmp eq i32 %3, 1
br i1 %4, label %5, label %7
5: ; preds = %0
%6 = call ptr @strdup(ptr noundef @parse_word.buff)
store ptr %6, ptr %1, align 8
br label %8
7: ; preds = %0
store ptr null, ptr %1, align 8
br label %8
8: ; preds = %7, %5
%9 = load ptr, ptr %1, align 8
ret ptr %9
}
declare i32 @fscanf(i32 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/tmpeuy_g4wi.c'
source_filename = "/tmp/tmpeuy_g4wi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@FOPEN_MAX = dso_local global i32 0, align 4
@EINVAL = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@ENOSYS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @fdopen(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr %4, align 4
%7 = icmp slt i32 %6, 0
br i1 %7, label %12, label %8
8: ; preds = %2
%9 = load i32, ptr %4, align 4
%10 = load i32, ptr @FOPEN_MAX, align 4
%11 = icmp sge i32 %9, %10
br i1 %11, label %12, label %14
12: ; preds = %8, %2
%13 = load i32, ptr @EINVAL, align 4
store i32 %13, ptr @errno, align 4
store ptr null, ptr %3, align 8
br label %16
14: ; preds = %8
%15 = load i32, ptr @ENOSYS, align 4
store i32 %15, ptr @errno, align 4
store ptr null, ptr %3, align 8
br label %16
16: ; preds = %14, %12
%17 = load ptr, ptr %3, align 8
ret ptr %17
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpeuy_g4wi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@FOPEN_MAX = dso_local global i32 0, align 4
@EINVAL = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@ENOSYS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @fdopen(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr %4, align 4
%7 = icmp slt i32 %6, 0
br i1 %7, label %12, label %8
8: ; preds = %2
%9 = load i32, ptr %4, align 4
%10 = load i32, ptr @FOPEN_MAX, align 4
%11 = icmp sge i32 %9, %10
br i1 %11, label %12, label %14
12: ; preds = %8, %2
%13 = load i32, ptr @EINVAL, align 4
store i32 %13, ptr @errno, align 4
store ptr null, ptr %3, align 8
br label %16
14: ; preds = %8
%15 = load i32, ptr @ENOSYS, align 4
store i32 %15, ptr @errno, align 4
store ptr null, ptr %3, align 8
br label %16
16: ; preds = %14, %12
%17 = load ptr, ptr %3, align 8
ret ptr %17
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqd_4yz2v.c'
source_filename = "/tmp/tmpqd_4yz2v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.a = private unnamed_addr constant [13 x float] [float 1.000000e+00, float -2.000000e+00, float 1.968750e+00, float -2.000000e+00, float 1.968750e+00, float -2.000000e+00, float 1.343750e+00, float -5.312500e-01, float 1.562500e-01, float -3.125000e-02, float 0.000000e+00, float 0.000000e+00, float 0.000000e+00], align 16
@__const.main.b = private unnamed_addr constant [13 x float] [float 0.000000e+00, float -6.250000e-02, float 3.437500e-01, float -1.125000e+00, float 1.968750e+00, float -2.000000e+00, float 1.968750e+00, float -2.000000e+00, float 1.968750e+00, float -1.125000e+00, float 3.437500e-01, float -6.250000e-02, float 0.000000e+00], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [13 x float], align 16
%3 = alloca [13 x float], align 16
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.a, i64 52, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.main.b, i64 52, i1 false)
%4 = getelementptr inbounds [13 x float], ptr %2, i64 0, i64 0
%5 = getelementptr inbounds [13 x float], ptr %3, i64 0, i64 0
%6 = call i32 @__ESBMC_check_stability(ptr noundef %4, ptr noundef %5)
%7 = call i32 @assert(i32 noundef %6)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @assert(i32 noundef) #2
declare i32 @__ESBMC_check_stability(ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqd_4yz2v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.a = private unnamed_addr constant [13 x float] [float 1.000000e+00, float -2.000000e+00, float 1.968750e+00, float -2.000000e+00, float 1.968750e+00, float -2.000000e+00, float 1.343750e+00, float -5.312500e-01, float 1.562500e-01, float -3.125000e-02, float 0.000000e+00, float 0.000000e+00, float 0.000000e+00], align 16
@__const.main.b = private unnamed_addr constant [13 x float] [float 0.000000e+00, float -6.250000e-02, float 3.437500e-01, float -1.125000e+00, float 1.968750e+00, float -2.000000e+00, float 1.968750e+00, float -2.000000e+00, float 1.968750e+00, float -1.125000e+00, float 3.437500e-01, float -6.250000e-02, float 0.000000e+00], align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [13 x float], align 16
%3 = alloca [13 x float], align 16
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.a, i64 52, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.main.b, i64 52, i1 false)
%4 = getelementptr inbounds [13 x float], ptr %2, i64 0, i64 0
%5 = getelementptr inbounds [13 x float], ptr %3, i64 0, i64 0
%6 = call i32 @__ESBMC_check_stability(ptr noundef %4, ptr noundef %5)
%7 = call i32 @assert(i32 noundef %6)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @assert(i32 noundef) #2
declare i32 @__ESBMC_check_stability(ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp4wvd05vl.c'
source_filename = "/tmp/tmp4wvd05vl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@_SC_PAGESIZE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getpagesize() #0 {
%1 = load i32, ptr @_SC_PAGESIZE, align 4
%2 = call i32 @sysconf(i32 noundef %1)
ret i32 %2
}
declare i32 @sysconf(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/tmp4wvd05vl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@_SC_PAGESIZE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getpagesize() #0 {
%1 = load i32, ptr @_SC_PAGESIZE, align 4
%2 = call i32 @sysconf(i32 noundef %1)
ret i32 %2
}
declare i32 @sysconf(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/tmpb3o6kof9.c'
source_filename = "/tmp/tmpb3o6kof9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @vlogical_imm_or23_int32_t(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %6
6: ; preds = %21, %2
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %10, label %24
10: ; preds = %6
%11 = load ptr, ptr %3, align 8
%12 = load i32, ptr %5, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i32, ptr %11, i64 %13
%15 = load i32, ptr %14, align 4
%16 = or i32 %15, 23
%17 = load ptr, ptr %3, align 8
%18 = load i32, ptr %5, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i32, ptr %17, i64 %19
store i32 %16, ptr %20, align 4
br label %21
21: ; preds = %10
%22 = load i32, ptr %5, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %5, align 4
br label %6, !llvm.loop !6
24: ; preds = %6
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpb3o6kof9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @vlogical_imm_or23_int32_t(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
%6 = load i32, ptr %5, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %6, %7
br i1 %8, label %.lr.ph, label %26
.lr.ph: ; preds = %2
br label %9
9: ; preds = %.lr.ph, %20
%10 = load ptr, ptr %3, align 8
%11 = load i32, ptr %5, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i32, ptr %10, i64 %12
%14 = load i32, ptr %13, align 4
%15 = or i32 %14, 23
%16 = load ptr, ptr %3, align 8
%17 = load i32, ptr %5, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i32, ptr %16, i64 %18
store i32 %15, ptr %19, align 4
br label %20
20: ; preds = %9
%21 = load i32, ptr %5, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %5, align 4
%23 = load i32, ptr %5, align 4
%24 = load i32, ptr %4, align 4
%25 = icmp slt i32 %23, %24
br i1 %25, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %26
26: ; preds = %._crit_edge, %2
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp37lkl0rv.c'
source_filename = "/tmp/tmp37lkl0rv.c"
target datalayout = "e-m:e-p270: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.d = private unnamed_addr constant [10 x i32] [i32 5, i32 4, i32 3, i32 2, i32 1, i32 0, i32 9, i32 8, i32 7, i32 6], align 16
@.str = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.2 = private unnamed_addr constant [23 x i8] c"Should be sorted now.\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 [10 x i32], align 16
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
store i32 10, ptr %7, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %8, ptr align 16 @__const.main.d, i64 40, i1 false)
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
br label %13
13: ; preds = %23, %2
%14 = load i32, ptr %10, align 4
%15 = load i32, ptr %7, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %17, label %26
17: ; preds = %13
%18 = load i32, ptr %10, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [10 x i32], ptr %8, i64 0, i64 %19
%21 = load i32, ptr %20, align 4
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %21)
br label %23
23: ; preds = %17
%24 = load i32, ptr %10, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %10, align 4
br label %13, !llvm.loop !6
26: ; preds = %13
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%28 = load i32, ptr %6, align 4
store i32 %28, ptr %10, align 4
br label %29
29: ; preds = %61, %26
%30 = load i32, ptr %10, align 4
%31 = load i32, ptr %7, align 4
%32 = icmp slt i32 %30, %31
br i1 %32, label %33, label %64
33: ; preds = %29
%34 = load i32, ptr %10, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [10 x i32], ptr %8, i64 0, i64 %35
%37 = load i32, ptr %36, align 4
store i32 %37, ptr %12, align 4
%38 = load i32, ptr %10, align 4
store i32 %38, ptr %11, align 4
br label %39
39: ; preds = %57, %33
%40 = load i32, ptr %11, align 4
%41 = load i32, ptr %7, align 4
%42 = icmp slt i32 %40, %41
br i1 %42, label %43, label %60
43: ; preds = %39
%44 = load i32, ptr %12, align 4
%45 = load i32, ptr %11, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [10 x i32], ptr %8, i64 0, i64 %46
%48 = load i32, ptr %47, align 4
%49 = icmp sge i32 %44, %48
br i1 %49, label %50, label %56
50: ; preds = %43
%51 = load i32, ptr %11, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [10 x i32], ptr %8, i64 0, i64 %52
%54 = load i32, ptr %53, align 4
store i32 %54, ptr %12, align 4
%55 = load i32, ptr %11, align 4
store i32 %55, ptr %9, align 4
br label %56
56: ; preds = %50, %43
br label %57
57: ; preds = %56
%58 = load i32, ptr %11, align 4
%59 = add nsw i32 %58, 1
store i32 %59, ptr %11, align 4
br label %39, !llvm.loop !8
60: ; preds = %39
br label %61
61: ; preds = %60
%62 = load i32, ptr %10, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %10, align 4
br label %29, !llvm.loop !9
64: ; preds = %29
%65 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %10, align 4
br label %66
66: ; preds = %76, %64
%67 = load i32, ptr %10, align 4
%68 = load i32, ptr %7, align 4
%69 = icmp slt i32 %67, %68
br i1 %69, label %70, label %79
70: ; preds = %66
%71 = load i32, ptr %10, align 4
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds [10 x i32], ptr %8, i64 0, i64 %72
%74 = load i32, ptr %73, align 4
%75 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %74)
br label %76
76: ; preds = %70
%77 = load i32, ptr %10, align 4
%78 = add nsw i32 %77, 1
store i32 %78, ptr %10, align 4
br label %66, !llvm.loop !10
79: ; preds = %66
%80 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%81 = load i32, ptr %3, align 4
ret i32 %81
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp37lkl0rv.c"
target datalayout = "e-m:e-p270: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.d = private unnamed_addr constant [10 x i32] [i32 5, i32 4, i32 3, i32 2, i32 1, i32 0, i32 9, i32 8, i32 7, i32 6], align 16
@.str = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.2 = private unnamed_addr constant [23 x i8] c"Should be sorted now.\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 [10 x i32], align 16
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
store i32 10, ptr %7, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %8, ptr align 16 @__const.main.d, i64 40, i1 false)
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
%13 = load i32, ptr %10, align 4
%14 = load i32, ptr %7, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %.lr.ph, label %28
.lr.ph: ; preds = %2
br label %16
16: ; preds = %.lr.ph, %22
%17 = load i32, ptr %10, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [10 x i32], ptr %8, 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 = %16
%23 = load i32, ptr %10, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %10, align 4
%25 = load i32, ptr %10, align 4
%26 = load i32, ptr %7, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %22
br label %28
28: ; preds = %._crit_edge, %2
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%30 = load i32, ptr %6, align 4
store i32 %30, ptr %10, align 4
%31 = load i32, ptr %10, align 4
%32 = load i32, ptr %7, align 4
%33 = icmp slt i32 %31, %32
br i1 %33, label %.lr.ph5, label %70
.lr.ph5: ; preds = %28
br label %34
34: ; preds = %.lr.ph5, %64
%35 = load i32, ptr %10, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [10 x i32], ptr %8, i64 0, i64 %36
%38 = load i32, ptr %37, align 4
store i32 %38, ptr %12, align 4
%39 = load i32, ptr %10, align 4
store i32 %39, ptr %11, align 4
%40 = load i32, ptr %11, align 4
%41 = load i32, ptr %7, align 4
%42 = icmp slt i32 %40, %41
br i1 %42, label %.lr.ph2, label %63
.lr.ph2: ; preds = %34
br label %43
43: ; preds = %.lr.ph2, %57
%44 = load i32, ptr %12, align 4
%45 = load i32, ptr %11, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [10 x i32], ptr %8, i64 0, i64 %46
%48 = load i32, ptr %47, align 4
%49 = icmp sge i32 %44, %48
br i1 %49, label %50, label %56
50: ; preds = %43
%51 = load i32, ptr %11, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [10 x i32], ptr %8, i64 0, i64 %52
%54 = load i32, ptr %53, align 4
store i32 %54, ptr %12, align 4
%55 = load i32, ptr %11, align 4
store i32 %55, ptr %9, align 4
br label %56
56: ; preds = %50, %43
br label %57
57: ; preds = %56
%58 = load i32, ptr %11, align 4
%59 = add nsw i32 %58, 1
store i32 %59, ptr %11, align 4
%60 = load i32, ptr %11, align 4
%61 = load i32, ptr %7, align 4
%62 = icmp slt i32 %60, %61
br i1 %62, label %43, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %57
br label %63
63: ; preds = %._crit_edge3, %34
br label %64
64: ; preds = %63
%65 = load i32, ptr %10, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %10, align 4
%67 = load i32, ptr %10, align 4
%68 = load i32, ptr %7, align 4
%69 = icmp slt i32 %67, %68
br i1 %69, label %34, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %64
br label %70
70: ; preds = %._crit_edge6, %28
%71 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %10, align 4
%72 = load i32, ptr %10, align 4
%73 = load i32, ptr %7, align 4
%74 = icmp slt i32 %72, %73
br i1 %74, label %.lr.ph8, label %87
.lr.ph8: ; preds = %70
br label %75
75: ; preds = %.lr.ph8, %81
%76 = load i32, ptr %10, align 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds [10 x i32], ptr %8, i64 0, i64 %77
%79 = load i32, ptr %78, align 4
%80 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %79)
br label %81
81: ; preds = %75
%82 = load i32, ptr %10, align 4
%83 = add nsw i32 %82, 1
store i32 %83, ptr %10, align 4
%84 = load i32, ptr %10, align 4
%85 = load i32, ptr %7, align 4
%86 = icmp slt i32 %84, %85
br i1 %86, label %75, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %81
br label %87
87: ; preds = %._crit_edge9, %70
%88 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%89 = load i32, ptr %3, align 4
ret i32 %89
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmp935zg787.c'
source_filename = "/tmp/tmp935zg787.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @snrm(i64 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca double, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca double, align 8
store i64 %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%11 = load i32, ptr %7, align 4
%12 = icmp sle i32 %11, 3
br i1 %12, label %13, label %35
13: ; preds = %3
store double 0.000000e+00, ptr %10, align 8
store i64 1, ptr %8, align 8
br label %14
14: ; preds = %29, %13
%15 = load i64, ptr %8, align 8
%16 = load i64, ptr %5, align 8
%17 = icmp ule i64 %15, %16
br i1 %17, label %18, label %32
18: ; preds = %14
%19 = load ptr, ptr %6, align 8
%20 = load i64, ptr %8, align 8
%21 = getelementptr inbounds double, ptr %19, i64 %20
%22 = load double, ptr %21, align 8
%23 = load ptr, ptr %6, align 8
%24 = load i64, ptr %8, align 8
%25 = getelementptr inbounds double, ptr %23, i64 %24
%26 = load double, ptr %25, align 8
%27 = load double, ptr %10, align 8
%28 = call double @llvm.fmuladd.f64(double %22, double %26, double %27)
store double %28, ptr %10, align 8
br label %29
29: ; preds = %18
%30 = load i64, ptr %8, align 8
%31 = add i64 %30, 1
store i64 %31, ptr %8, align 8
br label %14, !llvm.loop !6
32: ; preds = %14
%33 = load double, ptr %10, align 8
%34 = call double @sqrt(double noundef %33) #3
store double %34, ptr %4, align 8
br label %64
35: ; preds = %3
store i64 1, ptr %9, align 8
store i64 1, ptr %8, align 8
br label %36
36: ; preds = %55, %35
%37 = load i64, ptr %8, align 8
%38 = load i64, ptr %5, align 8
%39 = icmp ule i64 %37, %38
br i1 %39, label %40, label %58
40: ; preds = %36
%41 = load ptr, ptr %6, align 8
%42 = load i64, ptr %8, align 8
%43 = getelementptr inbounds double, ptr %41, i64 %42
%44 = load double, ptr %43, align 8
%45 = call double @llvm.fabs.f64(double %44)
%46 = load ptr, ptr %6, align 8
%47 = load i64, ptr %9, align 8
%48 = getelementptr inbounds double, ptr %46, i64 %47
%49 = load double, ptr %48, align 8
%50 = call double @llvm.fabs.f64(double %49)
%51 = fcmp ogt double %45, %50
br i1 %51, label %52, label %54
52: ; preds = %40
%53 = load i64, ptr %8, align 8
store i64 %53, ptr %9, align 8
br label %54
54: ; preds = %52, %40
br label %55
55: ; preds = %54
%56 = load i64, ptr %8, align 8
%57 = add i64 %56, 1
store i64 %57, ptr %8, align 8
br label %36, !llvm.loop !8
58: ; preds = %36
%59 = load ptr, ptr %6, align 8
%60 = load i64, ptr %9, align 8
%61 = getelementptr inbounds double, ptr %59, i64 %60
%62 = load double, ptr %61, align 8
%63 = call double @llvm.fabs.f64(double %62)
store double %63, ptr %4, align 8
br label %64
64: ; preds = %58, %32
%65 = load double, ptr %4, align 8
ret double %65
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
; Function Attrs: nounwind
declare double @sqrt(double noundef) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp935zg787.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @snrm(i64 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca double, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca double, align 8
store i64 %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%11 = load i32, ptr %7, align 4
%12 = icmp sle i32 %11, 3
br i1 %12, label %13, label %37
13: ; preds = %3
store double 0.000000e+00, ptr %10, align 8
store i64 1, ptr %8, align 8
%14 = load i64, ptr %8, align 8
%15 = load i64, ptr %5, align 8
%16 = icmp ule i64 %14, %15
br i1 %16, label %.lr.ph2, label %34
.lr.ph2: ; preds = %13
br label %17
17: ; preds = %.lr.ph2, %28
%18 = load ptr, ptr %6, align 8
%19 = load i64, ptr %8, align 8
%20 = getelementptr inbounds double, ptr %18, i64 %19
%21 = load double, ptr %20, align 8
%22 = load ptr, ptr %6, align 8
%23 = load i64, ptr %8, align 8
%24 = getelementptr inbounds double, ptr %22, i64 %23
%25 = load double, ptr %24, align 8
%26 = load double, ptr %10, align 8
%27 = call double @llvm.fmuladd.f64(double %21, double %25, double %26)
store double %27, ptr %10, align 8
br label %28
28: ; preds = %17
%29 = load i64, ptr %8, align 8
%30 = add i64 %29, 1
store i64 %30, ptr %8, align 8
%31 = load i64, ptr %8, align 8
%32 = load i64, ptr %5, align 8
%33 = icmp ule i64 %31, %32
br i1 %33, label %17, label %._crit_edge3, !llvm.loop !6
._crit_edge3: ; preds = %28
br label %34
34: ; preds = %._crit_edge3, %13
%35 = load double, ptr %10, align 8
%36 = call double @sqrt(double noundef %35) #3
store double %36, ptr %4, align 8
br label %68
37: ; preds = %3
store i64 1, ptr %9, align 8
store i64 1, ptr %8, align 8
%38 = load i64, ptr %8, align 8
%39 = load i64, ptr %5, align 8
%40 = icmp ule i64 %38, %39
br i1 %40, label %.lr.ph, label %62
.lr.ph: ; preds = %37
br label %41
41: ; preds = %.lr.ph, %56
%42 = load ptr, ptr %6, align 8
%43 = load i64, ptr %8, align 8
%44 = getelementptr inbounds double, ptr %42, i64 %43
%45 = load double, ptr %44, align 8
%46 = call double @llvm.fabs.f64(double %45)
%47 = load ptr, ptr %6, align 8
%48 = load i64, ptr %9, align 8
%49 = getelementptr inbounds double, ptr %47, i64 %48
%50 = load double, ptr %49, align 8
%51 = call double @llvm.fabs.f64(double %50)
%52 = fcmp ogt double %46, %51
br i1 %52, label %53, label %55
53: ; preds = %41
%54 = load i64, ptr %8, align 8
store i64 %54, ptr %9, align 8
br label %55
55: ; preds = %53, %41
br label %56
56: ; preds = %55
%57 = load i64, ptr %8, align 8
%58 = add i64 %57, 1
store i64 %58, ptr %8, align 8
%59 = load i64, ptr %8, align 8
%60 = load i64, ptr %5, align 8
%61 = icmp ule i64 %59, %60
br i1 %61, label %41, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %56
br label %62
62: ; preds = %._crit_edge, %37
%63 = load ptr, ptr %6, align 8
%64 = load i64, ptr %9, align 8
%65 = getelementptr inbounds double, ptr %63, i64 %64
%66 = load double, ptr %65, align 8
%67 = call double @llvm.fabs.f64(double %66)
store double %67, ptr %4, align 8
br label %68
68: ; preds = %62, %34
%69 = load double, ptr %4, align 8
ret double %69
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
; Function Attrs: nounwind
declare double @sqrt(double noundef) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpth3dlmtl.c'
source_filename = "/tmp/tmpth3dlmtl.c"
target datalayout = "e-m:e-p270: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/tmpth3dlmtl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_rop4fh6.c'
source_filename = "/tmp/tmp_rop4fh6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sbtrim(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store i32 0, ptr %7, align 4
%12 = load ptr, ptr %4, align 8
%13 = call i32 @strlen(ptr noundef %12)
store i32 %13, ptr %8, align 4
%14 = load ptr, ptr %3, align 8
%15 = call i32 @strlen(ptr noundef %14)
store i32 %15, ptr %9, align 4
%16 = load i32, ptr %9, align 4
%17 = call i64 @malloc(i32 noundef %16)
%18 = inttoptr i64 %17 to ptr
store ptr %18, ptr %10, align 8
store i32 1, ptr %11, align 4
store i32 0, ptr %6, align 4
br label %19
19: ; preds = %85, %2
%20 = load i32, ptr %6, align 4
%21 = load i32, ptr %9, align 4
%22 = icmp slt i32 %20, %21
br i1 %22, label %23, label %88
23: ; preds = %19
store i32 1, ptr %11, align 4
store i32 0, ptr %5, align 4
br label %24
24: ; preds = %81, %23
%25 = load i32, ptr %5, align 4
%26 = load i32, ptr %8, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %28, label %31
28: ; preds = %24
%29 = load i32, ptr %11, align 4
%30 = icmp ne i32 %29, 0
br label %31
31: ; preds = %28, %24
%32 = phi i1 [ false, %24 ], [ %30, %28 ]
br i1 %32, label %33, label %84
33: ; preds = %31
%34 = load ptr, ptr %3, align 8
%35 = load i32, ptr %6, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i8, ptr %34, i64 %36
%38 = load i8, ptr %37, align 1
%39 = sext i8 %38 to i32
%40 = load ptr, ptr %4, align 8
%41 = load i32, ptr %5, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i8, ptr %40, i64 %42
%44 = load i8, ptr %43, align 1
%45 = sext i8 %44 to i32
%46 = icmp ne i32 %39, %45
br i1 %46, label %47, label %64
47: ; preds = %33
%48 = load i32, ptr %5, align 4
%49 = add nsw i32 %48, 1
%50 = load i32, ptr %8, align 4
%51 = icmp eq i32 %49, %50
br i1 %51, label %52, label %64
52: ; preds = %47
%53 = load ptr, ptr %3, align 8
%54 = load i32, ptr %6, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i8, ptr %53, i64 %55
%57 = load i8, ptr %56, align 1
%58 = load ptr, ptr %10, align 8
%59 = load i32, ptr %7, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds i8, ptr %58, i64 %60
store i8 %57, ptr %61, align 1
%62 = load i32, ptr %7, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %7, align 4
br label %80
64: ; preds = %47, %33
%65 = load ptr, ptr %3, align 8
%66 = load i32, ptr %6, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds i8, ptr %65, i64 %67
%69 = load i8, ptr %68, align 1
%70 = sext i8 %69 to i32
%71 = load ptr, ptr %4, align 8
%72 = load i32, ptr %5, align 4
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds i8, ptr %71, i64 %73
%75 = load i8, ptr %74, align 1
%76 = sext i8 %75 to i32
%77 = icmp eq i32 %70, %76
br i1 %77, label %78, label %79
78: ; preds = %64
store i32 0, ptr %11, align 4
br label %79
79: ; preds = %78, %64
br label %80
80: ; preds = %79, %52
br label %81
81: ; preds = %80
%82 = load i32, ptr %5, align 4
%83 = add nsw i32 %82, 1
store i32 %83, ptr %5, align 4
br label %24, !llvm.loop !6
84: ; preds = %31
br label %85
85: ; preds = %84
%86 = load i32, ptr %6, align 4
%87 = add nsw i32 %86, 1
store i32 %87, ptr %6, align 4
br label %19, !llvm.loop !8
88: ; preds = %19
%89 = load ptr, ptr %10, align 8
%90 = load i32, ptr %7, align 4
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds i8, ptr %89, i64 %91
store i8 0, ptr %92, align 1
%93 = load ptr, ptr %3, align 8
%94 = load ptr, ptr %10, align 8
%95 = call i32 @strcpy(ptr noundef %93, ptr noundef %94)
%96 = load ptr, ptr %10, align 8
%97 = call i32 @free(ptr noundef %96)
%98 = load ptr, ptr %3, align 8
ret ptr %98
}
declare i32 @strlen(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_rop4fh6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sbtrim(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store i32 0, ptr %7, align 4
%12 = load ptr, ptr %4, align 8
%13 = call i32 @strlen(ptr noundef %12)
store i32 %13, ptr %8, align 4
%14 = load ptr, ptr %3, align 8
%15 = call i32 @strlen(ptr noundef %14)
store i32 %15, ptr %9, align 4
%16 = load i32, ptr %9, align 4
%17 = call i64 @malloc(i32 noundef %16)
%18 = inttoptr i64 %17 to ptr
store ptr %18, ptr %10, align 8
store i32 1, ptr %11, align 4
store i32 0, ptr %6, align 4
%19 = load i32, ptr %6, align 4
%20 = load i32, ptr %9, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %.lr.ph, label %90
.lr.ph: ; preds = %2
br label %22
22: ; preds = %.lr.ph, %84
store i32 1, ptr %11, align 4
store i32 0, ptr %5, align 4
br label %23
23: ; preds = %80, %22
%24 = load i32, ptr %5, align 4
%25 = load i32, ptr %8, align 4
%26 = icmp slt i32 %24, %25
br i1 %26, label %27, label %30
27: ; preds = %23
%28 = load i32, ptr %11, align 4
%29 = icmp ne i32 %28, 0
br label %30
30: ; preds = %27, %23
%31 = phi i1 [ false, %23 ], [ %29, %27 ]
br i1 %31, label %32, label %83
32: ; preds = %30
%33 = load ptr, ptr %3, align 8
%34 = load i32, ptr %6, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8, ptr %33, i64 %35
%37 = load i8, ptr %36, align 1
%38 = sext i8 %37 to i32
%39 = load ptr, ptr %4, align 8
%40 = load i32, ptr %5, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i8, ptr %39, i64 %41
%43 = load i8, ptr %42, align 1
%44 = sext i8 %43 to i32
%45 = icmp ne i32 %38, %44
br i1 %45, label %46, label %63
46: ; preds = %32
%47 = load i32, ptr %5, align 4
%48 = add nsw i32 %47, 1
%49 = load i32, ptr %8, align 4
%50 = icmp eq i32 %48, %49
br i1 %50, label %51, label %63
51: ; preds = %46
%52 = load ptr, ptr %3, align 8
%53 = load i32, ptr %6, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i8, ptr %52, i64 %54
%56 = load i8, ptr %55, align 1
%57 = load ptr, ptr %10, align 8
%58 = load i32, ptr %7, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i8, ptr %57, i64 %59
store i8 %56, ptr %60, align 1
%61 = load i32, ptr %7, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %7, align 4
br label %79
63: ; preds = %46, %32
%64 = load ptr, ptr %3, align 8
%65 = load i32, ptr %6, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds i8, ptr %64, i64 %66
%68 = load i8, ptr %67, align 1
%69 = sext i8 %68 to i32
%70 = load ptr, ptr %4, align 8
%71 = load i32, ptr %5, align 4
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds i8, ptr %70, i64 %72
%74 = load i8, ptr %73, align 1
%75 = sext i8 %74 to i32
%76 = icmp eq i32 %69, %75
br i1 %76, label %77, label %78
77: ; preds = %63
store i32 0, ptr %11, align 4
br label %78
78: ; preds = %77, %63
br label %79
79: ; preds = %78, %51
br label %80
80: ; preds = %79
%81 = load i32, ptr %5, align 4
%82 = add nsw i32 %81, 1
store i32 %82, ptr %5, align 4
br label %23, !llvm.loop !6
83: ; preds = %30
br label %84
84: ; preds = %83
%85 = load i32, ptr %6, align 4
%86 = add nsw i32 %85, 1
store i32 %86, ptr %6, align 4
%87 = load i32, ptr %6, align 4
%88 = load i32, ptr %9, align 4
%89 = icmp slt i32 %87, %88
br i1 %89, label %22, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %84
br label %90
90: ; preds = %._crit_edge, %2
%91 = load ptr, ptr %10, align 8
%92 = load i32, ptr %7, align 4
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds i8, ptr %91, i64 %93
store i8 0, ptr %94, align 1
%95 = load ptr, ptr %3, align 8
%96 = load ptr, ptr %10, align 8
%97 = call i32 @strcpy(ptr noundef %95, ptr noundef %96)
%98 = load ptr, ptr %10, align 8
%99 = call i32 @free(ptr noundef %98)
%100 = load ptr, ptr %3, align 8
ret ptr %100
}
declare i32 @strlen(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp2wu1tboq.c'
source_filename = "/tmp/tmp2wu1tboq.c"
target datalayout = "e-m:e-p270: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/tmp2wu1tboq.c"
target datalayout = "e-m:e-p270: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/tmppr_gqgiz.c'
source_filename = "/tmp/tmppr_gqgiz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @print_binary(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%13 = load ptr, ptr %7, align 8
%14 = load i32, ptr %8, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8, ptr %13, i64 %15
%17 = getelementptr inbounds i8, ptr %16, i64 -2
store ptr %17, ptr %9, align 8
store i32 1, ptr %10, align 4
br label %18
18: ; preds = %48, %4
%19 = load i32, ptr %6, align 4
%20 = icmp ne i32 %19, 0
br i1 %20, label %21, label %49
21: ; preds = %18
%22 = load i32, ptr %6, align 4
%23 = add nsw i32 %22, -1
store i32 %23, ptr %6, align 4
%24 = load ptr, ptr %5, align 8
%25 = load i32, ptr %6, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i32, ptr %24, i64 %26
%28 = load i32, ptr %27, align 4
store i32 %28, ptr %11, align 4
store i32 7, ptr %12, align 4
br label %29
29: ; preds = %45, %21
%30 = load i32, ptr %12, align 4
%31 = icmp sge i32 %30, 0
br i1 %31, label %32, label %48
32: ; preds = %29
%33 = load i32, ptr %11, align 4
%34 = load i32, ptr %10, align 4
%35 = and i32 %33, %34
%36 = icmp ne i32 %35, 0
%37 = zext i1 %36 to i64
%38 = select i1 %36, i32 49, i32 48
%39 = trunc i32 %38 to i8
%40 = load ptr, ptr %9, align 8
store i8 %39, ptr %40, align 1
%41 = load ptr, ptr %9, align 8
%42 = getelementptr inbounds i8, ptr %41, i32 -1
store ptr %42, ptr %9, align 8
%43 = load i32, ptr %11, align 4
%44 = ashr i32 %43, 1
store i32 %44, ptr %11, align 4
br label %45
45: ; preds = %32
%46 = load i32, ptr %12, align 4
%47 = add nsw i32 %46, -1
store i32 %47, ptr %12, align 4
br label %29, !llvm.loop !6
48: ; preds = %29
br label %18, !llvm.loop !8
49: ; preds = %18
%50 = load ptr, ptr %7, align 8
ret ptr %50
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmppr_gqgiz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @print_binary(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%13 = load ptr, ptr %7, align 8
%14 = load i32, ptr %8, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8, ptr %13, i64 %15
%17 = getelementptr inbounds i8, ptr %16, i64 -2
store ptr %17, ptr %9, align 8
store i32 1, ptr %10, align 4
%18 = load i32, ptr %6, align 4
%19 = icmp ne i32 %18, 0
br i1 %19, label %.lr.ph2, label %51
.lr.ph2: ; preds = %4
br label %20
20: ; preds = %.lr.ph2, %48
%21 = load i32, ptr %6, align 4
%22 = add nsw i32 %21, -1
store i32 %22, ptr %6, align 4
%23 = load ptr, ptr %5, align 8
%24 = load i32, ptr %6, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i32, ptr %23, i64 %25
%27 = load i32, ptr %26, align 4
store i32 %27, ptr %11, align 4
store i32 7, ptr %12, align 4
%28 = load i32, ptr %12, align 4
%29 = icmp sge i32 %28, 0
br i1 %29, label %.lr.ph, label %48
.lr.ph: ; preds = %20
br label %30
30: ; preds = %.lr.ph, %43
%31 = load i32, ptr %11, align 4
%32 = load i32, ptr %10, align 4
%33 = and i32 %31, %32
%34 = icmp ne i32 %33, 0
%35 = zext i1 %34 to i64
%36 = select i1 %34, i32 49, i32 48
%37 = trunc i32 %36 to i8
%38 = load ptr, ptr %9, align 8
store i8 %37, ptr %38, align 1
%39 = load ptr, ptr %9, align 8
%40 = getelementptr inbounds i8, ptr %39, i32 -1
store ptr %40, ptr %9, align 8
%41 = load i32, ptr %11, align 4
%42 = ashr i32 %41, 1
store i32 %42, ptr %11, align 4
br label %43
43: ; preds = %30
%44 = load i32, ptr %12, align 4
%45 = add nsw i32 %44, -1
store i32 %45, ptr %12, align 4
%46 = load i32, ptr %12, align 4
%47 = icmp sge i32 %46, 0
br i1 %47, label %30, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %43
br label %48
48: ; preds = %._crit_edge, %20
%49 = load i32, ptr %6, align 4
%50 = icmp ne i32 %49, 0
br i1 %50, label %20, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %48
br label %51
51: ; preds = %._crit_edge3, %4
%52 = load ptr, ptr %7, align 8
ret ptr %52
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpsb85umoe.c'
source_filename = "/tmp/tmpsb85umoe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 (...) @test_dynamic_list()
ret i32 0
}
declare i32 @test_dynamic_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/tmpsb85umoe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 (...) @test_dynamic_list()
ret i32 0
}
declare i32 @test_dynamic_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/tmp2lyyk1ae.c'
source_filename = "/tmp/tmp2lyyk1ae.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @square(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = load volatile i32, ptr %4, align 4
store i32 %5, ptr %3, align 4
%6 = call i32 @sleep(i32 noundef 3)
%7 = load i32, ptr %3, align 4
%8 = load i32, ptr %3, align 4
%9 = mul nsw i32 %7, %8
ret i32 %9
}
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/tmp2lyyk1ae.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @square(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = load volatile i32, ptr %4, align 4
store i32 %5, ptr %3, align 4
%6 = call i32 @sleep(i32 noundef 3)
%7 = load i32, ptr %3, align 4
%8 = load i32, ptr %3, align 4
%9 = mul nsw i32 %7, %8
ret i32 %9
}
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/tmp841estam.c'
source_filename = "/tmp/tmp841estam.c"
target datalayout = "e-m:e-p270: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/tmp841estam.c"
target datalayout = "e-m:e-p270: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/tmppm102wis.c'
source_filename = "/tmp/tmppm102wis.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"GET http://%s/\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [31 x i8] c"Request to connect to: %s(%d)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @process_request(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [1024 x i8], align 16
store ptr %0, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
%8 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%9 = call i32 (ptr, ptr, ...) @sscanf(ptr noundef %7, ptr noundef @.str, ptr noundef %8)
%10 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%11 = call ptr @strchr(ptr noundef %10, i8 noundef signext 58)
store ptr %11, ptr %5, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %13, label %18
13: ; preds = %1
%14 = load ptr, ptr %5, align 8
store i8 0, ptr %14, align 1
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds i8, ptr %15, i64 1
%17 = call i32 (ptr, ptr, ...) @sscanf(ptr noundef %16, ptr noundef @.str.1, ptr noundef %3)
br label %19
18: ; preds = %1
store i32 80, ptr %3, align 4
br label %19
19: ; preds = %18, %13
%20 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%21 = load i32, ptr %3, align 4
%22 = call i32 @printf(ptr noundef @.str.2, ptr noundef %20, i32 noundef %21)
%23 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%24 = load i32, ptr %3, align 4
%25 = call i32 @client_init(ptr noundef %23, i32 noundef %24)
store i32 %25, ptr %4, align 4
%26 = load i32, ptr %4, align 4
ret i32 %26
}
declare i32 @sscanf(ptr noundef, ptr noundef, ...) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i32 @printf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @client_init(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/tmppm102wis.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"GET http://%s/\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [31 x i8] c"Request to connect to: %s(%d)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @process_request(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [1024 x i8], align 16
store ptr %0, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
%8 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%9 = call i32 (ptr, ptr, ...) @sscanf(ptr noundef %7, ptr noundef @.str, ptr noundef %8)
%10 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%11 = call ptr @strchr(ptr noundef %10, i8 noundef signext 58)
store ptr %11, ptr %5, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %13, label %18
13: ; preds = %1
%14 = load ptr, ptr %5, align 8
store i8 0, ptr %14, align 1
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds i8, ptr %15, i64 1
%17 = call i32 (ptr, ptr, ...) @sscanf(ptr noundef %16, ptr noundef @.str.1, ptr noundef %3)
br label %19
18: ; preds = %1
store i32 80, ptr %3, align 4
br label %19
19: ; preds = %18, %13
%20 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%21 = load i32, ptr %3, align 4
%22 = call i32 @printf(ptr noundef @.str.2, ptr noundef %20, i32 noundef %21)
%23 = getelementptr inbounds [1024 x i8], ptr %6, i64 0, i64 0
%24 = load i32, ptr %3, align 4
%25 = call i32 @client_init(ptr noundef %23, i32 noundef %24)
store i32 %25, ptr %4, align 4
%26 = load i32, ptr %4, align 4
ret i32 %26
}
declare i32 @sscanf(ptr noundef, ptr noundef, ...) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i32 @printf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @client_init(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/tmpk1zfbk_k.c'
source_filename = "/tmp/tmpk1zfbk_k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpk1zfbk_k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpe3ee7t_t.c'
source_filename = "/tmp/tmpe3ee7t_t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"Exception: unused\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @c_unused() #0 {
%1 = call i32 @uart_strln(ptr noundef @.str)
%2 = call i32 (...) @hang()
ret void
}
declare i32 @uart_strln(ptr noundef) #1
declare i32 @hang(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpe3ee7t_t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"Exception: unused\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @c_unused() #0 {
%1 = call i32 @uart_strln(ptr noundef @.str)
%2 = call i32 (...) @hang()
ret void
}
declare i32 @uart_strln(ptr noundef) #1
declare i32 @hang(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpcveq3c8q.c'
source_filename = "/tmp/tmpcveq3c8q.c"
target datalayout = "e-m:e-p270: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/tmpcveq3c8q.c"
target datalayout = "e-m:e-p270: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/tmph81afdf5.c'
source_filename = "/tmp/tmph81afdf5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Hello World!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmph81afdf5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Hello World!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxuep_gt6.c'
source_filename = "/tmp/tmpxuep_gt6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @merge_sort(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%15 = load i32, ptr %5, align 4
%16 = load i32, ptr %6, align 4
%17 = icmp sge i32 %15, %16
br i1 %17, label %18, label %19
18: ; preds = %3
br label %124
19: ; preds = %3
%20 = load i32, ptr %5, align 4
%21 = load i32, ptr %6, align 4
%22 = add nsw i32 %20, %21
%23 = sdiv i32 %22, 2
store i32 %23, ptr %7, align 4
%24 = load i32, ptr %7, align 4
%25 = load i32, ptr %5, align 4
%26 = sub nsw i32 %24, %25
%27 = add nsw i32 %26, 1
store i32 %27, ptr %8, align 4
%28 = load i32, ptr %6, align 4
%29 = load i32, ptr %7, align 4
%30 = sub nsw i32 %28, %29
store i32 %30, ptr %9, align 4
%31 = load ptr, ptr %4, align 8
%32 = load i32, ptr %5, align 4
%33 = load i32, ptr %7, align 4
call void @merge_sort(ptr noundef %31, i32 noundef %32, i32 noundef %33)
%34 = load ptr, ptr %4, align 8
%35 = load i32, ptr %7, align 4
%36 = add nsw i32 %35, 1
%37 = load i32, ptr %6, align 4
call void @merge_sort(ptr noundef %34, i32 noundef %36, i32 noundef %37)
%38 = load i32, ptr %8, align 4
%39 = sext i32 %38 to i64
%40 = mul i64 %39, 4
%41 = trunc i64 %40 to i32
%42 = call ptr @malloc(i32 noundef %41)
store ptr %42, ptr %10, align 8
%43 = load i32, ptr %9, align 4
%44 = sext i32 %43 to i64
%45 = mul i64 %44, 4
%46 = trunc i64 %45 to i32
%47 = call ptr @malloc(i32 noundef %46)
store ptr %47, ptr %11, align 8
%48 = load ptr, ptr %10, align 8
%49 = getelementptr inbounds i32, ptr %48, i64 0
%50 = load ptr, ptr %4, align 8
%51 = load i32, ptr %5, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i32, ptr %50, i64 %52
%54 = load i32, ptr %8, align 4
%55 = sext i32 %54 to i64
%56 = mul i64 %55, 4
%57 = trunc i64 %56 to i32
%58 = call i32 @memcpy(ptr noundef %49, ptr noundef %53, i32 noundef %57)
%59 = load ptr, ptr %11, align 8
%60 = getelementptr inbounds i32, ptr %59, i64 0
%61 = load ptr, ptr %4, align 8
%62 = load i32, ptr %7, align 4
%63 = add nsw i32 %62, 1
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds i32, ptr %61, i64 %64
%66 = load i32, ptr %9, align 4
%67 = sext i32 %66 to i64
%68 = mul i64 %67, 4
%69 = trunc i64 %68 to i32
%70 = call i32 @memcpy(ptr noundef %60, ptr noundef %65, i32 noundef %69)
store i32 0, ptr %13, align 4
store i32 0, ptr %12, align 4
%71 = load i32, ptr %5, align 4
store i32 %71, ptr %14, align 4
br label %72
72: ; preds = %120, %19
%73 = load i32, ptr %14, align 4
%74 = load i32, ptr %6, align 4
%75 = icmp sle i32 %73, %74
br i1 %75, label %76, label %123
76: ; preds = %72
%77 = load i32, ptr %12, align 4
%78 = load i32, ptr %8, align 4
%79 = icmp slt i32 %77, %78
br i1 %79, label %80, label %92
80: ; preds = %76
%81 = load ptr, ptr %10, align 8
%82 = load i32, ptr %12, align 4
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds i32, ptr %81, i64 %83
%85 = load i32, ptr %84, align 4
%86 = load ptr, ptr %11, align 8
%87 = load i32, ptr %13, align 4
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds i32, ptr %86, i64 %88
%90 = load i32, ptr %89, align 4
%91 = icmp sle i32 %85, %90
br i1 %91, label %96, label %92
92: ; preds = %80, %76
%93 = load i32, ptr %13, align 4
%94 = load i32, ptr %9, align 4
%95 = icmp eq i32 %93, %94
br i1 %95, label %96, label %108
96: ; preds = %92, %80
%97 = load ptr, ptr %10, align 8
%98 = load i32, ptr %12, align 4
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds i32, ptr %97, i64 %99
%101 = load i32, ptr %100, align 4
%102 = load ptr, ptr %4, align 8
%103 = load i32, ptr %14, align 4
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds i32, ptr %102, i64 %104
store i32 %101, ptr %105, align 4
%106 = load i32, ptr %12, align 4
%107 = add nsw i32 %106, 1
store i32 %107, ptr %12, align 4
br label %120
108: ; preds = %92
%109 = load ptr, ptr %11, align 8
%110 = load i32, ptr %13, align 4
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds i32, ptr %109, i64 %111
%113 = load i32, ptr %112, align 4
%114 = load ptr, ptr %4, align 8
%115 = load i32, ptr %14, align 4
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds i32, ptr %114, i64 %116
store i32 %113, ptr %117, align 4
%118 = load i32, ptr %13, align 4
%119 = add nsw i32 %118, 1
store i32 %119, ptr %13, align 4
br label %120
120: ; preds = %108, %96
%121 = load i32, ptr %14, align 4
%122 = add nsw i32 %121, 1
store i32 %122, ptr %14, align 4
br label %72, !llvm.loop !6
123: ; preds = %72
br label %124
124: ; preds = %123, %18
ret void
}
declare ptr @malloc(i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxuep_gt6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @merge_sort(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%15 = load i32, ptr %5, align 4
%16 = load i32, ptr %6, align 4
%17 = icmp sge i32 %15, %16
br i1 %17, label %18, label %19
18: ; preds = %3
br label %126
19: ; preds = %3
%20 = load i32, ptr %5, align 4
%21 = load i32, ptr %6, align 4
%22 = add nsw i32 %20, %21
%23 = sdiv i32 %22, 2
store i32 %23, ptr %7, align 4
%24 = load i32, ptr %7, align 4
%25 = load i32, ptr %5, align 4
%26 = sub nsw i32 %24, %25
%27 = add nsw i32 %26, 1
store i32 %27, ptr %8, align 4
%28 = load i32, ptr %6, align 4
%29 = load i32, ptr %7, align 4
%30 = sub nsw i32 %28, %29
store i32 %30, ptr %9, align 4
%31 = load ptr, ptr %4, align 8
%32 = load i32, ptr %5, align 4
%33 = load i32, ptr %7, align 4
call void @merge_sort(ptr noundef %31, i32 noundef %32, i32 noundef %33)
%34 = load ptr, ptr %4, align 8
%35 = load i32, ptr %7, align 4
%36 = add nsw i32 %35, 1
%37 = load i32, ptr %6, align 4
call void @merge_sort(ptr noundef %34, i32 noundef %36, i32 noundef %37)
%38 = load i32, ptr %8, align 4
%39 = sext i32 %38 to i64
%40 = mul i64 %39, 4
%41 = trunc i64 %40 to i32
%42 = call ptr @malloc(i32 noundef %41)
store ptr %42, ptr %10, align 8
%43 = load i32, ptr %9, align 4
%44 = sext i32 %43 to i64
%45 = mul i64 %44, 4
%46 = trunc i64 %45 to i32
%47 = call ptr @malloc(i32 noundef %46)
store ptr %47, ptr %11, align 8
%48 = load ptr, ptr %10, align 8
%49 = getelementptr inbounds i32, ptr %48, i64 0
%50 = load ptr, ptr %4, align 8
%51 = load i32, ptr %5, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i32, ptr %50, i64 %52
%54 = load i32, ptr %8, align 4
%55 = sext i32 %54 to i64
%56 = mul i64 %55, 4
%57 = trunc i64 %56 to i32
%58 = call i32 @memcpy(ptr noundef %49, ptr noundef %53, i32 noundef %57)
%59 = load ptr, ptr %11, align 8
%60 = getelementptr inbounds i32, ptr %59, i64 0
%61 = load ptr, ptr %4, align 8
%62 = load i32, ptr %7, align 4
%63 = add nsw i32 %62, 1
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds i32, ptr %61, i64 %64
%66 = load i32, ptr %9, align 4
%67 = sext i32 %66 to i64
%68 = mul i64 %67, 4
%69 = trunc i64 %68 to i32
%70 = call i32 @memcpy(ptr noundef %60, ptr noundef %65, i32 noundef %69)
store i32 0, ptr %13, align 4
store i32 0, ptr %12, align 4
%71 = load i32, ptr %5, align 4
store i32 %71, ptr %14, align 4
%72 = load i32, ptr %14, align 4
%73 = load i32, ptr %6, align 4
%74 = icmp sle i32 %72, %73
br i1 %74, label %.lr.ph, label %125
.lr.ph: ; preds = %19
br label %75
75: ; preds = %.lr.ph, %119
%76 = load i32, ptr %12, align 4
%77 = load i32, ptr %8, align 4
%78 = icmp slt i32 %76, %77
br i1 %78, label %79, label %91
79: ; preds = %75
%80 = load ptr, ptr %10, align 8
%81 = load i32, ptr %12, align 4
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds i32, ptr %80, i64 %82
%84 = load i32, ptr %83, align 4
%85 = load ptr, ptr %11, align 8
%86 = load i32, ptr %13, align 4
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds i32, ptr %85, i64 %87
%89 = load i32, ptr %88, align 4
%90 = icmp sle i32 %84, %89
br i1 %90, label %95, label %91
91: ; preds = %79, %75
%92 = load i32, ptr %13, align 4
%93 = load i32, ptr %9, align 4
%94 = icmp eq i32 %92, %93
br i1 %94, label %95, label %107
95: ; preds = %91, %79
%96 = load ptr, ptr %10, align 8
%97 = load i32, ptr %12, align 4
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds i32, ptr %96, i64 %98
%100 = load i32, ptr %99, align 4
%101 = load ptr, ptr %4, align 8
%102 = load i32, ptr %14, align 4
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds i32, ptr %101, i64 %103
store i32 %100, ptr %104, align 4
%105 = load i32, ptr %12, align 4
%106 = add nsw i32 %105, 1
store i32 %106, ptr %12, align 4
br label %119
107: ; preds = %91
%108 = load ptr, ptr %11, align 8
%109 = load i32, ptr %13, align 4
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds i32, ptr %108, i64 %110
%112 = load i32, ptr %111, align 4
%113 = load ptr, ptr %4, align 8
%114 = load i32, ptr %14, align 4
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds i32, ptr %113, i64 %115
store i32 %112, ptr %116, align 4
%117 = load i32, ptr %13, align 4
%118 = add nsw i32 %117, 1
store i32 %118, ptr %13, align 4
br label %119
119: ; preds = %107, %95
%120 = load i32, ptr %14, align 4
%121 = add nsw i32 %120, 1
store i32 %121, ptr %14, align 4
%122 = load i32, ptr %14, align 4
%123 = load i32, ptr %6, align 4
%124 = icmp sle i32 %122, %123
br i1 %124, label %75, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %119
br label %125
125: ; preds = %._crit_edge, %19
br label %126
126: ; preds = %125, %18
ret void
}
declare ptr @malloc(i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpe_l726ac.c'
source_filename = "/tmp/tmpe_l726ac.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\01\03\01\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"\01x\01\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"\01\FD\08\01\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"\01\FB0\01\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @vifCode() #0 {
%1 = call i32 @wmbusParser(ptr noundef @.str, i32 noundef 3)
%2 = call i32 @wmbusParser(ptr noundef @.str.1, i32 noundef 3)
%3 = call i32 @wmbusParser(ptr noundef @.str.2, i32 noundef 4)
%4 = call i32 @wmbusParser(ptr noundef @.str.3, i32 noundef 4)
ret void
}
declare i32 @wmbusParser(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/tmpe_l726ac.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\01\03\01\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"\01x\01\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"\01\FD\08\01\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"\01\FB0\01\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @vifCode() #0 {
%1 = call i32 @wmbusParser(ptr noundef @.str, i32 noundef 3)
%2 = call i32 @wmbusParser(ptr noundef @.str.1, i32 noundef 3)
%3 = call i32 @wmbusParser(ptr noundef @.str.2, i32 noundef 4)
%4 = call i32 @wmbusParser(ptr noundef @.str.3, i32 noundef 4)
ret void
}
declare i32 @wmbusParser(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/tmpk8idosuw.c'
source_filename = "/tmp/tmpk8idosuw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@base64.alphabet = internal global [65 x i8] c"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\00", align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @base64(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
%9 = load ptr, ptr %2, align 8
%10 = call i32 @strlen(ptr noundef %9)
store i32 %10, ptr %7, align 4
%11 = load i32, ptr %7, align 4
%12 = sub nsw i32 %11, 1
%13 = sdiv i32 %12, 3
%14 = add nsw i32 %13, 1
%15 = mul nsw i32 %14, 4
%16 = add nsw i32 %15, 1
%17 = load i32, ptr %7, align 4
%18 = sdiv i32 %17, 54
%19 = add nsw i32 %16, %18
%20 = call ptr @safe_malloc(i32 noundef %19)
store ptr %20, ptr %8, align 8
br label %21
21: ; preds = %69, %1
%22 = load i32, ptr %4, align 4
%23 = load i32, ptr %7, align 4
%24 = icmp slt i32 %22, %23
br i1 %24, label %25, label %112
25: ; preds = %21
%26 = load i32, ptr %4, align 4
%27 = icmp ne i32 %26, 0
br i1 %27, label %28, label %38
28: ; preds = %25
%29 = load i32, ptr %4, align 4
%30 = srem i32 %29, 54
%31 = icmp eq i32 %30, 0
br i1 %31, label %32, label %38
32: ; preds = %28
%33 = load ptr, ptr %8, align 8
%34 = load i32, ptr %5, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %5, align 4
%36 = sext i32 %34 to i64
%37 = getelementptr inbounds i8, ptr %33, i64 %36
store i8 10, ptr %37, align 1
br label %38
38: ; preds = %32, %28, %25
%39 = load ptr, ptr %2, align 8
%40 = load i32, ptr %4, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %4, align 4
%42 = sext i32 %40 to i64
%43 = getelementptr inbounds i8, ptr %39, i64 %42
%44 = load i8, ptr %43, align 1
%45 = sext i8 %44 to i32
store i32 %45, ptr %3, align 4
store i32 0, ptr %6, align 4
br label %46
46: ; preds = %66, %38
%47 = load i32, ptr %6, align 4
%48 = icmp slt i32 %47, 2
br i1 %48, label %49, label %69
49: ; preds = %46
%50 = load i32, ptr %3, align 4
%51 = shl i32 %50, 8
store i32 %51, ptr %3, align 4
%52 = load i32, ptr %4, align 4
%53 = load i32, ptr %7, align 4
%54 = icmp slt i32 %52, %53
br i1 %54, label %55, label %65
55: ; preds = %49
%56 = load ptr, ptr %2, align 8
%57 = load i32, ptr %4, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %4, align 4
%59 = sext i32 %57 to i64
%60 = getelementptr inbounds i8, ptr %56, i64 %59
%61 = load i8, ptr %60, align 1
%62 = sext i8 %61 to i32
%63 = load i32, ptr %3, align 4
%64 = add i32 %63, %62
store i32 %64, ptr %3, align 4
br label %65
65: ; preds = %55, %49
br label %66
66: ; preds = %65
%67 = load i32, ptr %6, align 4
%68 = add nsw i32 %67, 1
store i32 %68, ptr %6, align 4
br label %46, !llvm.loop !6
69: ; preds = %46
%70 = load i32, ptr %3, align 4
%71 = lshr i32 %70, 18
%72 = zext i32 %71 to i64
%73 = getelementptr inbounds [65 x i8], ptr @base64.alphabet, i64 0, i64 %72
%74 = load i8, ptr %73, align 1
%75 = load ptr, ptr %8, align 8
%76 = load i32, ptr %5, align 4
%77 = add nsw i32 %76, 1
store i32 %77, ptr %5, align 4
%78 = sext i32 %76 to i64
%79 = getelementptr inbounds i8, ptr %75, i64 %78
store i8 %74, ptr %79, align 1
%80 = load i32, ptr %3, align 4
%81 = lshr i32 %80, 12
%82 = and i32 %81, 63
%83 = zext i32 %82 to i64
%84 = getelementptr inbounds [65 x i8], ptr @base64.alphabet, i64 0, i64 %83
%85 = load i8, ptr %84, align 1
%86 = load ptr, ptr %8, align 8
%87 = load i32, ptr %5, align 4
%88 = add nsw i32 %87, 1
store i32 %88, ptr %5, align 4
%89 = sext i32 %87 to i64
%90 = getelementptr inbounds i8, ptr %86, i64 %89
store i8 %85, ptr %90, align 1
%91 = load i32, ptr %3, align 4
%92 = lshr i32 %91, 6
%93 = and i32 %92, 63
%94 = zext i32 %93 to i64
%95 = getelementptr inbounds [65 x i8], ptr @base64.alphabet, i64 0, i64 %94
%96 = load i8, ptr %95, align 1
%97 = load ptr, ptr %8, align 8
%98 = load i32, ptr %5, align 4
%99 = add nsw i32 %98, 1
store i32 %99, ptr %5, align 4
%100 = sext i32 %98 to i64
%101 = getelementptr inbounds i8, ptr %97, i64 %100
store i8 %96, ptr %101, align 1
%102 = load i32, ptr %3, align 4
%103 = and i32 %102, 63
%104 = zext i32 %103 to i64
%105 = getelementptr inbounds [65 x i8], ptr @base64.alphabet, i64 0, i64 %104
%106 = load i8, ptr %105, align 1
%107 = load ptr, ptr %8, align 8
%108 = load i32, ptr %5, align 4
%109 = add nsw i32 %108, 1
store i32 %109, ptr %5, align 4
%110 = sext i32 %108 to i64
%111 = getelementptr inbounds i8, ptr %107, i64 %110
store i8 %106, ptr %111, align 1
br label %21, !llvm.loop !8
112: ; preds = %21
%113 = load i32, ptr %7, align 4
%114 = srem i32 %113, 3
switch i32 %114, label %127 [
i32 1, label %115
i32 2, label %121
]
115: ; preds = %112
%116 = load ptr, ptr %8, align 8
%117 = load i32, ptr %5, align 4
%118 = sub nsw i32 %117, 2
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds i8, ptr %116, i64 %119
store i8 61, ptr %120, align 1
br label %121
121: ; preds = %112, %115
%122 = load ptr, ptr %8, align 8
%123 = load i32, ptr %5, align 4
%124 = sub nsw i32 %123, 1
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds i8, ptr %122, i64 %125
store i8 61, ptr %126, align 1
br label %127
127: ; preds = %112, %121
%128 = load ptr, ptr %8, align 8
%129 = load i32, ptr %5, align 4
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds i8, ptr %128, i64 %130
store i8 0, ptr %131, align 1
%132 = load ptr, ptr %8, align 8
ret ptr %132
}
declare i32 @strlen(ptr noundef) #1
declare ptr @safe_malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpk8idosuw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@base64.alphabet = internal global [65 x i8] c"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\00", align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @base64(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
%9 = load ptr, ptr %2, align 8
%10 = call i32 @strlen(ptr noundef %9)
store i32 %10, ptr %7, align 4
%11 = load i32, ptr %7, align 4
%12 = sub nsw i32 %11, 1
%13 = sdiv i32 %12, 3
%14 = add nsw i32 %13, 1
%15 = mul nsw i32 %14, 4
%16 = add nsw i32 %15, 1
%17 = load i32, ptr %7, align 4
%18 = sdiv i32 %17, 54
%19 = add nsw i32 %16, %18
%20 = call ptr @safe_malloc(i32 noundef %19)
store ptr %20, ptr %8, align 8
%21 = load i32, ptr %4, align 4
%22 = load i32, ptr %7, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %.lr.ph2, label %115
.lr.ph2: ; preds = %1
br label %24
24: ; preds = %.lr.ph2, %69
%25 = load i32, ptr %4, align 4
%26 = icmp ne i32 %25, 0
br i1 %26, label %27, label %37
27: ; preds = %24
%28 = load i32, ptr %4, align 4
%29 = srem i32 %28, 54
%30 = icmp eq i32 %29, 0
br i1 %30, label %31, label %37
31: ; preds = %27
%32 = load ptr, ptr %8, align 8
%33 = load i32, ptr %5, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %5, align 4
%35 = sext i32 %33 to i64
%36 = getelementptr inbounds i8, ptr %32, i64 %35
store i8 10, ptr %36, align 1
br label %37
37: ; preds = %31, %27, %24
%38 = load ptr, ptr %2, align 8
%39 = load i32, ptr %4, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %4, align 4
%41 = sext i32 %39 to i64
%42 = getelementptr inbounds i8, ptr %38, i64 %41
%43 = load i8, ptr %42, align 1
%44 = sext i8 %43 to i32
store i32 %44, ptr %3, align 4
store i32 0, ptr %6, align 4
%45 = load i32, ptr %6, align 4
%46 = icmp slt i32 %45, 2
br i1 %46, label %.lr.ph, label %69
.lr.ph: ; preds = %37
br label %47
47: ; preds = %.lr.ph, %64
%48 = load i32, ptr %3, align 4
%49 = shl i32 %48, 8
store i32 %49, ptr %3, align 4
%50 = load i32, ptr %4, align 4
%51 = load i32, ptr %7, align 4
%52 = icmp slt i32 %50, %51
br i1 %52, label %53, label %63
53: ; preds = %47
%54 = load ptr, ptr %2, align 8
%55 = load i32, ptr %4, align 4
%56 = add nsw i32 %55, 1
store i32 %56, ptr %4, align 4
%57 = sext i32 %55 to i64
%58 = getelementptr inbounds i8, ptr %54, i64 %57
%59 = load i8, ptr %58, align 1
%60 = sext i8 %59 to i32
%61 = load i32, ptr %3, align 4
%62 = add i32 %61, %60
store i32 %62, ptr %3, align 4
br label %63
63: ; preds = %53, %47
br label %64
64: ; preds = %63
%65 = load i32, ptr %6, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %6, align 4
%67 = load i32, ptr %6, align 4
%68 = icmp slt i32 %67, 2
br i1 %68, label %47, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %64
br label %69
69: ; preds = %._crit_edge, %37
%70 = load i32, ptr %3, align 4
%71 = lshr i32 %70, 18
%72 = zext i32 %71 to i64
%73 = getelementptr inbounds [65 x i8], ptr @base64.alphabet, i64 0, i64 %72
%74 = load i8, ptr %73, align 1
%75 = load ptr, ptr %8, align 8
%76 = load i32, ptr %5, align 4
%77 = add nsw i32 %76, 1
store i32 %77, ptr %5, align 4
%78 = sext i32 %76 to i64
%79 = getelementptr inbounds i8, ptr %75, i64 %78
store i8 %74, ptr %79, align 1
%80 = load i32, ptr %3, align 4
%81 = lshr i32 %80, 12
%82 = and i32 %81, 63
%83 = zext i32 %82 to i64
%84 = getelementptr inbounds [65 x i8], ptr @base64.alphabet, i64 0, i64 %83
%85 = load i8, ptr %84, align 1
%86 = load ptr, ptr %8, align 8
%87 = load i32, ptr %5, align 4
%88 = add nsw i32 %87, 1
store i32 %88, ptr %5, align 4
%89 = sext i32 %87 to i64
%90 = getelementptr inbounds i8, ptr %86, i64 %89
store i8 %85, ptr %90, align 1
%91 = load i32, ptr %3, align 4
%92 = lshr i32 %91, 6
%93 = and i32 %92, 63
%94 = zext i32 %93 to i64
%95 = getelementptr inbounds [65 x i8], ptr @base64.alphabet, i64 0, i64 %94
%96 = load i8, ptr %95, align 1
%97 = load ptr, ptr %8, align 8
%98 = load i32, ptr %5, align 4
%99 = add nsw i32 %98, 1
store i32 %99, ptr %5, align 4
%100 = sext i32 %98 to i64
%101 = getelementptr inbounds i8, ptr %97, i64 %100
store i8 %96, ptr %101, align 1
%102 = load i32, ptr %3, align 4
%103 = and i32 %102, 63
%104 = zext i32 %103 to i64
%105 = getelementptr inbounds [65 x i8], ptr @base64.alphabet, i64 0, i64 %104
%106 = load i8, ptr %105, align 1
%107 = load ptr, ptr %8, align 8
%108 = load i32, ptr %5, align 4
%109 = add nsw i32 %108, 1
store i32 %109, ptr %5, align 4
%110 = sext i32 %108 to i64
%111 = getelementptr inbounds i8, ptr %107, i64 %110
store i8 %106, ptr %111, align 1
%112 = load i32, ptr %4, align 4
%113 = load i32, ptr %7, align 4
%114 = icmp slt i32 %112, %113
br i1 %114, label %24, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %69
br label %115
115: ; preds = %._crit_edge3, %1
%116 = load i32, ptr %7, align 4
%117 = srem i32 %116, 3
switch i32 %117, label %130 [
i32 1, label %118
i32 2, label %124
]
118: ; preds = %115
%119 = load ptr, ptr %8, align 8
%120 = load i32, ptr %5, align 4
%121 = sub nsw i32 %120, 2
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds i8, ptr %119, i64 %122
store i8 61, ptr %123, align 1
br label %124
124: ; preds = %118, %115
%125 = load ptr, ptr %8, align 8
%126 = load i32, ptr %5, align 4
%127 = sub nsw i32 %126, 1
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds i8, ptr %125, i64 %128
store i8 61, ptr %129, align 1
br label %130
130: ; preds = %124, %115
%131 = load ptr, ptr %8, align 8
%132 = load i32, ptr %5, align 4
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds i8, ptr %131, i64 %133
store i8 0, ptr %134, align 1
%135 = load ptr, ptr %8, align 8
ret ptr %135
}
declare i32 @strlen(ptr noundef) #1
declare ptr @safe_malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp6154gkry.c'
source_filename = "/tmp/tmp6154gkry.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"7\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @decsc() #0 {
%1 = call i32 @esc(ptr noundef @.str)
ret void
}
declare i32 @esc(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6154gkry.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"7\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @decsc() #0 {
%1 = call i32 @esc(ptr noundef @.str)
ret void
}
declare i32 @esc(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxedsm5v4.c'
source_filename = "/tmp/tmpxedsm5v4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [36 x i8] c"Hey, you pressed the right arrow! \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @right_arrow() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxedsm5v4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [36 x i8] c"Hey, you pressed the right arrow! \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @right_arrow() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp91nupz83.c'
source_filename = "/tmp/tmp91nupz83.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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
%3 = alloca ptr, align 8
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%4 = call ptr @calloc(i32 noundef 1073741824, i32 noundef 1)
store ptr %4, ptr %3, align 8
br label %5
5: ; preds = %0, %5
br label %5
}
declare ptr @calloc(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/tmp91nupz83.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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
%3 = alloca ptr, align 8
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%4 = call ptr @calloc(i32 noundef 1073741824, i32 noundef 1)
store ptr %4, ptr %3, align 8
br label %5
5: ; preds = %5, %0
br label %5
}
declare ptr @calloc(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/tmps3_qkw5h.c'
source_filename = "/tmp/tmps3_qkw5h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"big bed\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @bigBedFileCheckSigs(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 @bbiFileCheckSigs(ptr noundef %3, i32 noundef -2021002517, ptr noundef @.str)
ret i32 %4
}
declare i32 @bbiFileCheckSigs(ptr noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmps3_qkw5h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"big bed\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @bigBedFileCheckSigs(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 @bbiFileCheckSigs(ptr noundef %3, i32 noundef -2021002517, ptr noundef @.str)
ret i32 %4
}
declare i32 @bbiFileCheckSigs(ptr noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqjqx4bfv.c'
source_filename = "/tmp/tmpqjqx4bfv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @find_labels(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%13 = load i32, ptr %8, align 4
%14 = sext i32 %13 to i64
%15 = mul i64 %14, 4
%16 = trunc i64 %15 to i32
%17 = call i64 @malloc(i32 noundef %16)
%18 = inttoptr i64 %17 to ptr
store ptr %18, ptr %9, align 8
%19 = load i32, ptr %8, align 4
store i32 %19, ptr %12, align 4
%20 = load ptr, ptr %9, align 8
%21 = load ptr, ptr %7, align 8
%22 = load i32, ptr %8, align 4
%23 = sext i32 %22 to i64
%24 = mul i64 4, %23
%25 = trunc i64 %24 to i32
%26 = call i32 @memcpy(ptr noundef %20, ptr noundef %21, i32 noundef %25)
%27 = load ptr, ptr %7, align 8
%28 = load i32, ptr %8, align 4
%29 = sext i32 %28 to i64
%30 = mul i64 4, %29
%31 = trunc i64 %30 to i32
%32 = call i32 @memset(ptr noundef %27, i32 noundef 255, i32 noundef %31)
store i32 0, ptr %10, align 4
br label %33
33: ; preds = %79, %4
%34 = load i32, ptr %10, align 4
%35 = load i32, ptr %6, align 4
%36 = icmp slt i32 %34, %35
br i1 %36, label %37, label %82
37: ; preds = %33
store i32 0, ptr %11, align 4
br label %38
38: ; preds = %75, %37
%39 = load i32, ptr %11, align 4
%40 = load i32, ptr %8, align 4
%41 = icmp slt i32 %39, %40
br i1 %41, label %42, label %78
42: ; preds = %38
%43 = load ptr, ptr %5, align 8
%44 = load i32, ptr %10, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i32, ptr %43, i64 %45
%47 = load i32, ptr %46, align 4
%48 = load ptr, ptr %9, align 8
%49 = load i32, ptr %11, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds i32, ptr %48, i64 %50
%52 = load i32, ptr %51, align 4
%53 = icmp eq i32 %47, %52
br i1 %53, label %54, label %74
54: ; preds = %42
%55 = load ptr, ptr %7, align 8
%56 = load i32, ptr %11, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i32, ptr %55, i64 %57
%59 = load i32, ptr %58, align 4
%60 = icmp slt i32 %59, 0
br i1 %60, label %61, label %73
61: ; preds = %54
%62 = load i32, ptr %10, align 4
%63 = load ptr, ptr %7, align 8
%64 = load i32, ptr %11, align 4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds i32, ptr %63, i64 %65
store i32 %62, ptr %66, align 4
%67 = load i32, ptr %12, align 4
%68 = add nsw i32 %67, -1
store i32 %68, ptr %12, align 4
%69 = load i32, ptr %12, align 4
%70 = icmp ne i32 %69, 0
br i1 %70, label %72, label %71
71: ; preds = %61
br label %85
72: ; preds = %61
br label %73
73: ; preds = %72, %54
br label %74
74: ; preds = %73, %42
br label %75
75: ; preds = %74
%76 = load i32, ptr %11, align 4
%77 = add nsw i32 %76, 1
store i32 %77, ptr %11, align 4
br label %38, !llvm.loop !6
78: ; preds = %38
br label %79
79: ; preds = %78
%80 = load i32, ptr %10, align 4
%81 = add nsw i32 %80, 1
store i32 %81, ptr %10, align 4
br label %33, !llvm.loop !8
82: ; preds = %33
%83 = load ptr, ptr %9, align 8
%84 = call i32 @free(ptr noundef %83)
br label %85
85: ; preds = %82, %71
ret void
}
declare i64 @malloc(i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqjqx4bfv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @find_labels(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%13 = load i32, ptr %8, align 4
%14 = sext i32 %13 to i64
%15 = mul i64 %14, 4
%16 = trunc i64 %15 to i32
%17 = call i64 @malloc(i32 noundef %16)
%18 = inttoptr i64 %17 to ptr
store ptr %18, ptr %9, align 8
%19 = load i32, ptr %8, align 4
store i32 %19, ptr %12, align 4
%20 = load ptr, ptr %9, align 8
%21 = load ptr, ptr %7, align 8
%22 = load i32, ptr %8, align 4
%23 = sext i32 %22 to i64
%24 = mul i64 4, %23
%25 = trunc i64 %24 to i32
%26 = call i32 @memcpy(ptr noundef %20, ptr noundef %21, i32 noundef %25)
%27 = load ptr, ptr %7, align 8
%28 = load i32, ptr %8, align 4
%29 = sext i32 %28 to i64
%30 = mul i64 4, %29
%31 = trunc i64 %30 to i32
%32 = call i32 @memset(ptr noundef %27, i32 noundef 255, i32 noundef %31)
store i32 0, ptr %10, align 4
%33 = load i32, ptr %10, align 4
%34 = load i32, ptr %6, align 4
%35 = icmp slt i32 %33, %34
br i1 %35, label %.lr.ph2, label %86
.lr.ph2: ; preds = %4
br label %36
36: ; preds = %.lr.ph2, %80
store i32 0, ptr %11, align 4
%37 = load i32, ptr %11, align 4
%38 = load i32, ptr %8, align 4
%39 = icmp slt i32 %37, %38
br i1 %39, label %.lr.ph, label %79
.lr.ph: ; preds = %36
br label %40
40: ; preds = %.lr.ph, %73
%41 = load ptr, ptr %5, align 8
%42 = load i32, ptr %10, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i32, ptr %41, i64 %43
%45 = load i32, ptr %44, align 4
%46 = load ptr, ptr %9, align 8
%47 = load i32, ptr %11, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i32, ptr %46, i64 %48
%50 = load i32, ptr %49, align 4
%51 = icmp eq i32 %45, %50
br i1 %51, label %52, label %72
52: ; preds = %40
%53 = load ptr, ptr %7, align 8
%54 = load i32, ptr %11, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i32, ptr %53, i64 %55
%57 = load i32, ptr %56, align 4
%58 = icmp slt i32 %57, 0
br i1 %58, label %59, label %71
59: ; preds = %52
%60 = load i32, ptr %10, align 4
%61 = load ptr, ptr %7, align 8
%62 = load i32, ptr %11, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds i32, ptr %61, i64 %63
store i32 %60, ptr %64, align 4
%65 = load i32, ptr %12, align 4
%66 = add nsw i32 %65, -1
store i32 %66, ptr %12, align 4
%67 = load i32, ptr %12, align 4
%68 = icmp ne i32 %67, 0
br i1 %68, label %70, label %69
69: ; preds = %59
br label %89
70: ; preds = %59
br label %71
71: ; preds = %70, %52
br label %72
72: ; preds = %71, %40
br label %73
73: ; preds = %72
%74 = load i32, ptr %11, align 4
%75 = add nsw i32 %74, 1
store i32 %75, ptr %11, align 4
%76 = load i32, ptr %11, align 4
%77 = load i32, ptr %8, align 4
%78 = icmp slt i32 %76, %77
br i1 %78, label %40, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %73
br label %79
79: ; preds = %._crit_edge, %36
br label %80
80: ; preds = %79
%81 = load i32, ptr %10, align 4
%82 = add nsw i32 %81, 1
store i32 %82, ptr %10, align 4
%83 = load i32, ptr %10, align 4
%84 = load i32, ptr %6, align 4
%85 = icmp slt i32 %83, %84
br i1 %85, label %36, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %80
br label %86
86: ; preds = %._crit_edge3, %4
%87 = load ptr, ptr %9, align 8
%88 = call i32 @free(ptr noundef %87)
br label %89
89: ; preds = %86, %69
ret void
}
declare i64 @malloc(i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp4vv1cgq4.c'
source_filename = "/tmp/tmp4vv1cgq4.c"
target datalayout = "e-m:e-p270: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/tmp4vv1cgq4.c"
target datalayout = "e-m:e-p270: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/tmpakkkhrgl.c'
source_filename = "/tmp/tmpakkkhrgl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_isgraph.c\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"isgraph should be 1 for #\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isgraph_0x23() #0 {
%1 = call i32 @isgraph(i32 noundef 35) #3
%2 = call i32 @Assert_real(i32 noundef %1, ptr noundef @.str, i32 noundef 180, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
; Function Attrs: nounwind willreturn memory(read)
declare i32 @isgraph(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 = { nounwind willreturn memory(read) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(read) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpakkkhrgl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_isgraph.c\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"isgraph should be 1 for #\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isgraph_0x23() #0 {
%1 = call i32 @isgraph(i32 noundef 35) #3
%2 = call i32 @Assert_real(i32 noundef %1, ptr noundef @.str, i32 noundef 180, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
; Function Attrs: nounwind willreturn memory(read)
declare i32 @isgraph(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 = { nounwind willreturn memory(read) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(read) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpvfudbyue.c'
source_filename = "/tmp/tmpvfudbyue.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [46 x i8] c"Example of Dynamic Array Allocation and Use\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [46 x i8] c"Indicate the number of values to be entered:\0A\00", align 1
@.str.2 = private unnamed_addr constant [40 x i8] c"Enter a value in the range of 5 to 15: \00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.4 = private unnamed_addr constant [42 x i8] c"Number entered out of range; try again.\0A\0A\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.6 = private unnamed_addr constant [18 x i8] c"Enter value #%d: \00", align 1
@.str.7 = private unnamed_addr constant [27 x i8] c"\0AThe values entered were: \00", align 1
@.str.8 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.9 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %7
7: ; preds = %18, %0
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%9 = call i32 @scanf(ptr noundef @.str.3, ptr noundef %3)
%10 = load i32, ptr %3, align 4
%11 = icmp sge i32 %10, 5
br i1 %11, label %12, label %16
12: ; preds = %7
%13 = load i32, ptr %3, align 4
%14 = icmp sle i32 %13, 15
br i1 %14, label %15, label %16
15: ; preds = %12
br label %19
16: ; preds = %12, %7
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %18
18: ; preds = %16
br i1 true, label %7, label %19
19: ; preds = %18, %15
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%21 = load i32, ptr %3, align 4
%22 = sext i32 %21 to i64
%23 = mul i64 4, %22
%24 = trunc i64 %23 to i32
%25 = call i64 @malloc(i32 noundef %24)
%26 = inttoptr i64 %25 to ptr
store ptr %26, ptr %2, align 8
store i32 0, ptr %4, align 4
br label %27
27: ; preds = %40, %19
%28 = load i32, ptr %4, align 4
%29 = load i32, ptr %3, align 4
%30 = icmp slt i32 %28, %29
br i1 %30, label %31, label %43
31: ; preds = %27
%32 = load i32, ptr %4, align 4
%33 = add nsw i32 %32, 1
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %33)
%35 = load ptr, ptr %2, align 8
%36 = load i32, ptr %4, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i32, ptr %35, i64 %37
%39 = call i32 @scanf(ptr noundef @.str.3, ptr noundef %38)
br label %40
40: ; preds = %31
%41 = load i32, ptr %4, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %4, align 4
br label %27, !llvm.loop !6
43: ; preds = %27
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
store i32 0, ptr %4, align 4
br label %45
45: ; preds = %56, %43
%46 = load i32, ptr %4, align 4
%47 = load i32, ptr %3, align 4
%48 = icmp slt i32 %46, %47
br i1 %48, label %49, label %59
49: ; preds = %45
%50 = load ptr, ptr %2, align 8
%51 = load i32, ptr %4, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i32, ptr %50, i64 %52
%54 = load i32, ptr %53, align 4
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %54)
br label %56
56: ; preds = %49
%57 = load i32, ptr %4, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %4, align 4
br label %45, !llvm.loop !8
59: ; preds = %45
%60 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvfudbyue.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [46 x i8] c"Example of Dynamic Array Allocation and Use\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [46 x i8] c"Indicate the number of values to be entered:\0A\00", align 1
@.str.2 = private unnamed_addr constant [40 x i8] c"Enter a value in the range of 5 to 15: \00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.4 = private unnamed_addr constant [42 x i8] c"Number entered out of range; try again.\0A\0A\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.6 = private unnamed_addr constant [18 x i8] c"Enter value #%d: \00", align 1
@.str.7 = private unnamed_addr constant [27 x i8] c"\0AThe values entered were: \00", align 1
@.str.8 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
@.str.9 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %7
7: ; preds = %18, %0
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%9 = call i32 @scanf(ptr noundef @.str.3, ptr noundef %3)
%10 = load i32, ptr %3, align 4
%11 = icmp sge i32 %10, 5
br i1 %11, label %12, label %16
12: ; preds = %7
%13 = load i32, ptr %3, align 4
%14 = icmp sle i32 %13, 15
br i1 %14, label %15, label %16
15: ; preds = %12
br label %19
16: ; preds = %12, %7
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %18
18: ; preds = %16
br i1 true, label %7, label %.loopexit
.loopexit: ; preds = %18
br label %19
19: ; preds = %.loopexit, %15
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%21 = load i32, ptr %3, align 4
%22 = sext i32 %21 to i64
%23 = mul i64 4, %22
%24 = trunc i64 %23 to i32
%25 = call i64 @malloc(i32 noundef %24)
%26 = inttoptr i64 %25 to ptr
store ptr %26, ptr %2, align 8
store i32 0, ptr %4, align 4
%27 = load i32, ptr %4, align 4
%28 = load i32, ptr %3, align 4
%29 = icmp slt i32 %27, %28
br i1 %29, label %.lr.ph, label %45
.lr.ph: ; preds = %19
br label %30
30: ; preds = %.lr.ph, %39
%31 = load i32, ptr %4, align 4
%32 = add nsw i32 %31, 1
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %32)
%34 = load ptr, ptr %2, align 8
%35 = load i32, ptr %4, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i32, ptr %34, i64 %36
%38 = call i32 @scanf(ptr noundef @.str.3, ptr noundef %37)
br label %39
39: ; preds = %30
%40 = load i32, ptr %4, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %4, align 4
%42 = load i32, ptr %4, align 4
%43 = load i32, ptr %3, align 4
%44 = icmp slt i32 %42, %43
br i1 %44, label %30, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %39
br label %45
45: ; preds = %._crit_edge, %19
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
store i32 0, ptr %4, align 4
%47 = load i32, ptr %4, align 4
%48 = load i32, ptr %3, align 4
%49 = icmp slt i32 %47, %48
br i1 %49, label %.lr.ph2, label %63
.lr.ph2: ; preds = %45
br label %50
50: ; preds = %.lr.ph2, %57
%51 = load ptr, ptr %2, align 8
%52 = load i32, ptr %4, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i32, ptr %51, i64 %53
%55 = load i32, ptr %54, align 4
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %55)
br label %57
57: ; preds = %50
%58 = load i32, ptr %4, align 4
%59 = add nsw i32 %58, 1
store i32 %59, ptr %4, align 4
%60 = load i32, ptr %4, align 4
%61 = load i32, ptr %3, align 4
%62 = icmp slt i32 %60, %61
br i1 %62, label %50, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %57
br label %63
63: ; preds = %._crit_edge3, %45
%64 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmporff5bew.c'
source_filename = "/tmp/tmporff5bew.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @brent(double noundef %0, double noundef %1, double noundef %2, ptr noundef %3, ptr noundef %4, double noundef %5, double noundef %6, ptr noundef %7, ptr noundef %8, double noundef %9, double noundef %10, double noundef %11) #0 {
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca double, align 8
%16 = alloca double, align 8
%17 = alloca ptr, align 8
%18 = alloca ptr, align 8
%19 = alloca double, align 8
%20 = alloca double, align 8
%21 = alloca ptr, align 8
%22 = alloca ptr, align 8
%23 = alloca double, align 8
%24 = alloca double, align 8
%25 = alloca double, align 8
%26 = alloca i32, align 4
%27 = alloca double, align 8
%28 = alloca double, align 8
%29 = alloca double, align 8
%30 = alloca double, align 8
%31 = alloca double, align 8
%32 = alloca double, align 8
%33 = alloca double, align 8
%34 = alloca double, align 8
%35 = alloca double, align 8
%36 = alloca double, align 8
%37 = alloca double, align 8
%38 = alloca double, align 8
%39 = alloca double, align 8
%40 = alloca double, align 8
%41 = alloca double, align 8
%42 = alloca double, align 8
%43 = alloca double, align 8
%44 = alloca double, align 8
%45 = alloca double, align 8
%46 = alloca double, align 8
%47 = alloca double, align 8
%48 = alloca double, align 8
store double %0, ptr %14, align 8
store double %1, ptr %15, align 8
store double %2, ptr %16, align 8
store ptr %3, ptr %17, align 8
store ptr %4, ptr %18, align 8
store double %5, ptr %19, align 8
store double %6, ptr %20, align 8
store ptr %7, ptr %21, align 8
store ptr %8, ptr %22, align 8
store double %9, ptr %23, align 8
store double %10, ptr %24, align 8
store double %11, ptr %25, align 8
store double 0.000000e+00, ptr %29, align 8
store double 0.000000e+00, ptr %48, align 8
%49 = load double, ptr %14, align 8
%50 = load double, ptr %16, align 8
%51 = fcmp olt double %49, %50
br i1 %51, label %52, label %54
52: ; preds = %12
%53 = load double, ptr %14, align 8
br label %56
54: ; preds = %12
%55 = load double, ptr %16, align 8
br label %56
56: ; preds = %54, %52
%57 = phi double [ %53, %52 ], [ %55, %54 ]
store double %57, ptr %27, align 8
%58 = load double, ptr %14, align 8
%59 = load double, ptr %16, align 8
%60 = fcmp ogt double %58, %59
br i1 %60, label %61, label %63
61: ; preds = %56
%62 = load double, ptr %14, align 8
br label %65
63: ; preds = %56
%64 = load double, ptr %16, align 8
br label %65
65: ; preds = %63, %61
%66 = phi double [ %62, %61 ], [ %64, %63 ]
store double %66, ptr %28, align 8
%67 = load double, ptr %15, align 8
store double %67, ptr %43, align 8
%68 = load double, ptr %24, align 8
store double %68, ptr %34, align 8
%69 = load double, ptr %23, align 8
%70 = load double, ptr %25, align 8
%71 = fcmp olt double %69, %70
br i1 %71, label %72, label %77
72: ; preds = %65
%73 = load double, ptr %14, align 8
store double %73, ptr %42, align 8
%74 = load double, ptr %23, align 8
store double %74, ptr %33, align 8
%75 = load double, ptr %16, align 8
store double %75, ptr %41, align 8
%76 = load double, ptr %25, align 8
store double %76, ptr %32, align 8
br label %82
77: ; preds = %65
%78 = load double, ptr %16, align 8
store double %78, ptr %42, align 8
%79 = load double, ptr %25, align 8
store double %79, ptr %33, align 8
%80 = load double, ptr %14, align 8
store double %80, ptr %41, align 8
%81 = load double, ptr %23, align 8
store double %81, ptr %32, align 8
br label %82
82: ; preds = %77, %72
store i32 1, ptr %26, align 4
br label %83
83: ; preds = %374, %82
%84 = load i32, ptr %26, align 4
%85 = icmp sle i32 %84, 100
br i1 %85, label %86, label %377
86: ; preds = %83
%87 = load double, ptr %27, align 8
%88 = load double, ptr %28, align 8
%89 = fadd double %87, %88
%90 = fmul double 5.000000e-01, %89
store double %90, ptr %44, align 8
%91 = load double, ptr %19, align 8
%92 = load double, ptr %43, align 8
%93 = call double @llvm.fabs.f64(double %92)
%94 = fmul double %91, %93
store double %94, ptr %38, align 8
%95 = load double, ptr %38, align 8
%96 = fadd double %95, 1.000000e-10
%97 = fmul double 2.000000e+00, %96
store double %97, ptr %39, align 8
%98 = load double, ptr %43, align 8
%99 = load double, ptr %44, align 8
%100 = fsub double %98, %99
%101 = call double @llvm.fabs.f64(double %100)
%102 = load double, ptr %39, align 8
%103 = load double, ptr %28, align 8
%104 = load double, ptr %27, align 8
%105 = fsub double %103, %104
%106 = call double @llvm.fmuladd.f64(double -5.000000e-01, double %105, double %102)
%107 = fcmp ole double %101, %106
br i1 %107, label %115, label %108
108: ; preds = %86
%109 = load double, ptr %27, align 8
%110 = load double, ptr %28, align 8
%111 = fsub double %109, %110
%112 = call double @llvm.fabs.f64(double %111)
%113 = load double, ptr %20, align 8
%114 = fcmp olt double %112, %113
br i1 %114, label %115, label %155
115: ; preds = %108, %86
%116 = load double, ptr %34, align 8
%117 = load ptr, ptr %21, align 8
store double %116, ptr %117, align 8
%118 = load double, ptr %43, align 8
%119 = load double, ptr %42, align 8
%120 = fsub double %118, %119
store double %120, ptr %45, align 8
%121 = load double, ptr %42, align 8
%122 = load double, ptr %41, align 8
%123 = fsub double %121, %122
store double %123, ptr %46, align 8
%124 = load double, ptr %41, align 8
%125 = load double, ptr %43, align 8
%126 = fsub double %124, %125
store double %126, ptr %47, align 8
%127 = load double, ptr %32, align 8
%128 = load double, ptr %45, align 8
%129 = load double, ptr %34, align 8
%130 = load double, ptr %46, align 8
%131 = fmul double %129, %130
%132 = call double @llvm.fmuladd.f64(double %127, double %128, double %131)
%133 = load double, ptr %33, align 8
%134 = load double, ptr %47, align 8
%135 = call double @llvm.fmuladd.f64(double %133, double %134, double %132)
%136 = fmul double 2.000000e+00, %135
%137 = load double, ptr %41, align 8
%138 = load double, ptr %41, align 8
%139 = fmul double %137, %138
%140 = load double, ptr %45, align 8
%141 = load double, ptr %43, align 8
%142 = load double, ptr %43, align 8
%143 = fmul double %141, %142
%144 = load double, ptr %46, align 8
%145 = fmul double %143, %144
%146 = call double @llvm.fmuladd.f64(double %139, double %140, double %145)
%147 = load double, ptr %42, align 8
%148 = load double, ptr %42, align 8
%149 = fmul double %147, %148
%150 = load double, ptr %47, align 8
%151 = call double @llvm.fmuladd.f64(double %149, double %150, double %146)
%152 = fdiv double %136, %151
%153 = load ptr, ptr %22, align 8
store double %152, ptr %153, align 8
%154 = load double, ptr %43, align 8
store double %154, ptr %13, align 8
br label %417
155: ; preds = %108
%156 = load double, ptr %48, align 8
%157 = call double @llvm.fabs.f64(double %156)
%158 = load double, ptr %38, align 8
%159 = fcmp ogt double %157, %158
br i1 %159, label %160, label %273
160: ; preds = %155
%161 = load double, ptr %43, align 8
%162 = load double, ptr %42, align 8
%163 = fsub double %161, %162
%164 = load double, ptr %34, align 8
%165 = load double, ptr %32, align 8
%166 = fsub double %164, %165
%167 = fmul double %163, %166
store double %167, ptr %37, align 8
%168 = load double, ptr %43, align 8
%169 = load double, ptr %41, align 8
%170 = fsub double %168, %169
%171 = load double, ptr %34, align 8
%172 = load double, ptr %33, align 8
%173 = fsub double %171, %172
%174 = fmul double %170, %173
store double %174, ptr %36, align 8
%175 = load double, ptr %43, align 8
%176 = load double, ptr %41, align 8
%177 = fsub double %175, %176
%178 = load double, ptr %36, align 8
%179 = load double, ptr %43, align 8
%180 = load double, ptr %42, align 8
%181 = fsub double %179, %180
%182 = load double, ptr %37, align 8
%183 = fmul double %181, %182
%184 = fneg double %183
%185 = call double @llvm.fmuladd.f64(double %177, double %178, double %184)
store double %185, ptr %35, align 8
%186 = load double, ptr %36, align 8
%187 = load double, ptr %37, align 8
%188 = fsub double %186, %187
%189 = fmul double 2.000000e+00, %188
store double %189, ptr %36, align 8
%190 = load double, ptr %36, align 8
%191 = fcmp ogt double %190, 0.000000e+00
br i1 %191, label %192, label %195
192: ; preds = %160
%193 = load double, ptr %35, align 8
%194 = fneg double %193
store double %194, ptr %35, align 8
br label %195
195: ; preds = %192, %160
%196 = load double, ptr %36, align 8
%197 = call double @llvm.fabs.f64(double %196)
store double %197, ptr %36, align 8
%198 = load double, ptr %48, align 8
store double %198, ptr %30, align 8
%199 = load double, ptr %29, align 8
store double %199, ptr %48, align 8
%200 = load double, ptr %35, align 8
%201 = call double @llvm.fabs.f64(double %200)
%202 = load double, ptr %36, align 8
%203 = fmul double 5.000000e-01, %202
%204 = load double, ptr %30, align 8
%205 = fmul double %203, %204
%206 = call double @llvm.fabs.f64(double %205)
%207 = fcmp oge double %201, %206
br i1 %207, label %224, label %208
208: ; preds = %195
%209 = load double, ptr %35, align 8
%210 = load double, ptr %36, align 8
%211 = load double, ptr %27, align 8
%212 = load double, ptr %43, align 8
%213 = fsub double %211, %212
%214 = fmul double %210, %213
%215 = fcmp ole double %209, %214
br i1 %215, label %224, label %216
216: ; preds = %208
%217 = load double, ptr %35, align 8
%218 = load double, ptr %36, align 8
%219 = load double, ptr %28, align 8
%220 = load double, ptr %43, align 8
%221 = fsub double %219, %220
%222 = fmul double %218, %221
%223 = fcmp oge double %217, %222
br i1 %223, label %224, label %239
224: ; preds = %216, %208, %195
%225 = load double, ptr %43, align 8
%226 = load double, ptr %44, align 8
%227 = fcmp oge double %225, %226
br i1 %227, label %228, label %232
228: ; preds = %224
%229 = load double, ptr %27, align 8
%230 = load double, ptr %43, align 8
%231 = fsub double %229, %230
br label %236
232: ; preds = %224
%233 = load double, ptr %28, align 8
%234 = load double, ptr %43, align 8
%235 = fsub double %233, %234
br label %236
236: ; preds = %232, %228
%237 = phi double [ %231, %228 ], [ %235, %232 ]
store double %237, ptr %48, align 8
%238 = fmul double 3.819660e-01, %237
store double %238, ptr %29, align 8
br label %272
239: ; preds = %216
%240 = load double, ptr %35, align 8
%241 = load double, ptr %36, align 8
%242 = fdiv double %240, %241
store double %242, ptr %29, align 8
%243 = load double, ptr %43, align 8
%244 = load double, ptr %29, align 8
%245 = fadd double %243, %244
store double %245, ptr %40, align 8
%246 = load double, ptr %40, align 8
%247 = load double, ptr %27, align 8
%248 = fsub double %246, %247
%249 = load double, ptr %39, align 8
%250 = fcmp olt double %248, %249
br i1 %250, label %257, label %251
251: ; preds = %239
%252 = load double, ptr %28, align 8
%253 = load double, ptr %40, align 8
%254 = fsub double %252, %253
%255 = load double, ptr %39, align 8
%256 = fcmp olt double %254, %255
br i1 %256, label %257, label %271
257: ; preds = %251, %239
%258 = load double, ptr %44, align 8
%259 = load double, ptr %43, align 8
%260 = fsub double %258, %259
%261 = fcmp oge double %260, 0.000000e+00
br i1 %261, label %262, label %265
262: ; preds = %257
%263 = load double, ptr %38, align 8
%264 = call double @llvm.fabs.f64(double %263)
br label %269
265: ; preds = %257
%266 = load double, ptr %38, align 8
%267 = call double @llvm.fabs.f64(double %266)
%268 = fneg double %267
br label %269
269: ; preds = %265, %262
%270 = phi double [ %264, %262 ], [ %268, %265 ]
store double %270, ptr %29, align 8
br label %271
271: ; preds = %269, %251
br label %272
272: ; preds = %271, %236
br label %288
273: ; preds = %155
%274 = load double, ptr %43, align 8
%275 = load double, ptr %44, align 8
%276 = fcmp oge double %274, %275
br i1 %276, label %277, label %281
277: ; preds = %273
%278 = load double, ptr %27, align 8
%279 = load double, ptr %43, align 8
%280 = fsub double %278, %279
br label %285
281: ; preds = %273
%282 = load double, ptr %28, align 8
%283 = load double, ptr %43, align 8
%284 = fsub double %282, %283
br label %285
285: ; preds = %281, %277
%286 = phi double [ %280, %277 ], [ %284, %281 ]
store double %286, ptr %48, align 8
%287 = fmul double 3.819660e-01, %286
store double %287, ptr %29, align 8
br label %288
288: ; preds = %285, %272
%289 = load double, ptr %29, align 8
%290 = call double @llvm.fabs.f64(double %289)
%291 = load double, ptr %38, align 8
%292 = fcmp oge double %290, %291
br i1 %292, label %293, label %297
293: ; preds = %288
%294 = load double, ptr %43, align 8
%295 = load double, ptr %29, align 8
%296 = fadd double %294, %295
br label %311
297: ; preds = %288
%298 = load double, ptr %43, align 8
%299 = load double, ptr %29, align 8
%300 = fcmp oge double %299, 0.000000e+00
br i1 %300, label %301, label %304
301: ; preds = %297
%302 = load double, ptr %38, align 8
%303 = call double @llvm.fabs.f64(double %302)
br label %308
304: ; preds = %297
%305 = load double, ptr %38, align 8
%306 = call double @llvm.fabs.f64(double %305)
%307 = fneg double %306
br label %308
308: ; preds = %304, %301
%309 = phi double [ %303, %301 ], [ %307, %304 ]
%310 = fadd double %298, %309
br label %311
311: ; preds = %308, %293
%312 = phi double [ %296, %293 ], [ %310, %308 ]
store double %312, ptr %40, align 8
%313 = load ptr, ptr %17, align 8
%314 = load double, ptr %40, align 8
%315 = load ptr, ptr %18, align 8
%316 = call double %313(double noundef %314, ptr noundef %315)
store double %316, ptr %31, align 8
%317 = load double, ptr %31, align 8
%318 = load double, ptr %34, align 8
%319 = fcmp ole double %317, %318
br i1 %319, label %320, label %335
320: ; preds = %311
%321 = load double, ptr %40, align 8
%322 = load double, ptr %43, align 8
%323 = fcmp oge double %321, %322
br i1 %323, label %324, label %326
324: ; preds = %320
%325 = load double, ptr %43, align 8
store double %325, ptr %27, align 8
br label %328
326: ; preds = %320
%327 = load double, ptr %43, align 8
store double %327, ptr %28, align 8
br label %328
328: ; preds = %326, %324
%329 = load double, ptr %42, align 8
store double %329, ptr %41, align 8
%330 = load double, ptr %43, align 8
store double %330, ptr %42, align 8
%331 = load double, ptr %40, align 8
store double %331, ptr %43, align 8
%332 = load double, ptr %33, align 8
store double %332, ptr %32, align 8
%333 = load double, ptr %34, align 8
store double %333, ptr %33, align 8
%334 = load double, ptr %31, align 8
store double %334, ptr %34, align 8
br label %373
335: ; preds = %311
%336 = load double, ptr %40, align 8
%337 = load double, ptr %43, align 8
%338 = fcmp olt double %336, %337
br i1 %338, label %339, label %341
339: ; preds = %335
%340 = load double, ptr %40, align 8
store double %340, ptr %27, align 8
br label %343
341: ; preds = %335
%342 = load double, ptr %40, align 8
store double %342, ptr %28, align 8
br label %343
343: ; preds = %341, %339
%344 = load double, ptr %31, align 8
%345 = load double, ptr %33, align 8
%346 = fcmp ole double %344, %345
br i1 %346, label %351, label %347
347: ; preds = %343
%348 = load double, ptr %42, align 8
%349 = load double, ptr %43, align 8
%350 = fcmp oeq double %348, %349
br i1 %350, label %351, label %356
351: ; preds = %347, %343
%352 = load double, ptr %42, align 8
store double %352, ptr %41, align 8
%353 = load double, ptr %40, align 8
store double %353, ptr %42, align 8
%354 = load double, ptr %33, align 8
store double %354, ptr %32, align 8
%355 = load double, ptr %31, align 8
store double %355, ptr %33, align 8
br label %372
356: ; preds = %347
%357 = load double, ptr %31, align 8
%358 = load double, ptr %32, align 8
%359 = fcmp ole double %357, %358
br i1 %359, label %368, label %360
360: ; preds = %356
%361 = load double, ptr %41, align 8
%362 = load double, ptr %43, align 8
%363 = fcmp oeq double %361, %362
br i1 %363, label %368, label %364
364: ; preds = %360
%365 = load double, ptr %41, align 8
%366 = load double, ptr %42, align 8
%367 = fcmp oeq double %365, %366
br i1 %367, label %368, label %371
368: ; preds = %364, %360, %356
%369 = load double, ptr %40, align 8
store double %369, ptr %41, align 8
%370 = load double, ptr %31, align 8
store double %370, ptr %32, align 8
br label %371
371: ; preds = %368, %364
br label %372
372: ; preds = %371, %351
br label %373
373: ; preds = %372, %328
br label %374
374: ; preds = %373
%375 = load i32, ptr %26, align 4
%376 = add nsw i32 %375, 1
store i32 %376, ptr %26, align 4
br label %83, !llvm.loop !6
377: ; preds = %83
%378 = load double, ptr %34, align 8
%379 = load ptr, ptr %21, align 8
store double %378, ptr %379, align 8
%380 = load double, ptr %43, align 8
%381 = load double, ptr %42, align 8
%382 = fsub double %380, %381
store double %382, ptr %45, align 8
%383 = load double, ptr %42, align 8
%384 = load double, ptr %41, align 8
%385 = fsub double %383, %384
store double %385, ptr %46, align 8
%386 = load double, ptr %41, align 8
%387 = load double, ptr %43, align 8
%388 = fsub double %386, %387
store double %388, ptr %47, align 8
%389 = load double, ptr %32, align 8
%390 = load double, ptr %45, align 8
%391 = load double, ptr %34, align 8
%392 = load double, ptr %46, align 8
%393 = fmul double %391, %392
%394 = call double @llvm.fmuladd.f64(double %389, double %390, double %393)
%395 = load double, ptr %33, align 8
%396 = load double, ptr %47, align 8
%397 = call double @llvm.fmuladd.f64(double %395, double %396, double %394)
%398 = fmul double 2.000000e+00, %397
%399 = load double, ptr %41, align 8
%400 = load double, ptr %41, align 8
%401 = fmul double %399, %400
%402 = load double, ptr %45, align 8
%403 = load double, ptr %43, align 8
%404 = load double, ptr %43, align 8
%405 = fmul double %403, %404
%406 = load double, ptr %46, align 8
%407 = fmul double %405, %406
%408 = call double @llvm.fmuladd.f64(double %401, double %402, double %407)
%409 = load double, ptr %42, align 8
%410 = load double, ptr %42, align 8
%411 = fmul double %409, %410
%412 = load double, ptr %47, align 8
%413 = call double @llvm.fmuladd.f64(double %411, double %412, double %408)
%414 = fdiv double %398, %413
%415 = load ptr, ptr %22, align 8
store double %414, ptr %415, align 8
%416 = load double, ptr %43, align 8
store double %416, ptr %13, align 8
br label %417
417: ; preds = %377, %115
%418 = load double, ptr %13, align 8
ret double %418
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmporff5bew.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @brent(double noundef %0, double noundef %1, double noundef %2, ptr noundef %3, ptr noundef %4, double noundef %5, double noundef %6, ptr noundef %7, ptr noundef %8, double noundef %9, double noundef %10, double noundef %11) #0 {
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca double, align 8
%16 = alloca double, align 8
%17 = alloca ptr, align 8
%18 = alloca ptr, align 8
%19 = alloca double, align 8
%20 = alloca double, align 8
%21 = alloca ptr, align 8
%22 = alloca ptr, align 8
%23 = alloca double, align 8
%24 = alloca double, align 8
%25 = alloca double, align 8
%26 = alloca i32, align 4
%27 = alloca double, align 8
%28 = alloca double, align 8
%29 = alloca double, align 8
%30 = alloca double, align 8
%31 = alloca double, align 8
%32 = alloca double, align 8
%33 = alloca double, align 8
%34 = alloca double, align 8
%35 = alloca double, align 8
%36 = alloca double, align 8
%37 = alloca double, align 8
%38 = alloca double, align 8
%39 = alloca double, align 8
%40 = alloca double, align 8
%41 = alloca double, align 8
%42 = alloca double, align 8
%43 = alloca double, align 8
%44 = alloca double, align 8
%45 = alloca double, align 8
%46 = alloca double, align 8
%47 = alloca double, align 8
%48 = alloca double, align 8
store double %0, ptr %14, align 8
store double %1, ptr %15, align 8
store double %2, ptr %16, align 8
store ptr %3, ptr %17, align 8
store ptr %4, ptr %18, align 8
store double %5, ptr %19, align 8
store double %6, ptr %20, align 8
store ptr %7, ptr %21, align 8
store ptr %8, ptr %22, align 8
store double %9, ptr %23, align 8
store double %10, ptr %24, align 8
store double %11, ptr %25, align 8
store double 0.000000e+00, ptr %29, align 8
store double 0.000000e+00, ptr %48, align 8
%49 = load double, ptr %14, align 8
%50 = load double, ptr %16, align 8
%51 = fcmp olt double %49, %50
br i1 %51, label %52, label %54
52: ; preds = %12
%53 = load double, ptr %14, align 8
br label %56
54: ; preds = %12
%55 = load double, ptr %16, align 8
br label %56
56: ; preds = %54, %52
%57 = phi double [ %53, %52 ], [ %55, %54 ]
store double %57, ptr %27, align 8
%58 = load double, ptr %14, align 8
%59 = load double, ptr %16, align 8
%60 = fcmp ogt double %58, %59
br i1 %60, label %61, label %63
61: ; preds = %56
%62 = load double, ptr %14, align 8
br label %65
63: ; preds = %56
%64 = load double, ptr %16, align 8
br label %65
65: ; preds = %63, %61
%66 = phi double [ %62, %61 ], [ %64, %63 ]
store double %66, ptr %28, align 8
%67 = load double, ptr %15, align 8
store double %67, ptr %43, align 8
%68 = load double, ptr %24, align 8
store double %68, ptr %34, align 8
%69 = load double, ptr %23, align 8
%70 = load double, ptr %25, align 8
%71 = fcmp olt double %69, %70
br i1 %71, label %72, label %77
72: ; preds = %65
%73 = load double, ptr %14, align 8
store double %73, ptr %42, align 8
%74 = load double, ptr %23, align 8
store double %74, ptr %33, align 8
%75 = load double, ptr %16, align 8
store double %75, ptr %41, align 8
%76 = load double, ptr %25, align 8
store double %76, ptr %32, align 8
br label %82
77: ; preds = %65
%78 = load double, ptr %16, align 8
store double %78, ptr %42, align 8
%79 = load double, ptr %25, align 8
store double %79, ptr %33, align 8
%80 = load double, ptr %14, align 8
store double %80, ptr %41, align 8
%81 = load double, ptr %23, align 8
store double %81, ptr %32, align 8
br label %82
82: ; preds = %77, %72
store i32 1, ptr %26, align 4
%83 = load i32, ptr %26, align 4
%84 = icmp sle i32 %83, 100
br i1 %84, label %.lr.ph, label %378
.lr.ph: ; preds = %82
br label %85
85: ; preds = %.lr.ph, %373
%86 = load double, ptr %27, align 8
%87 = load double, ptr %28, align 8
%88 = fadd double %86, %87
%89 = fmul double 5.000000e-01, %88
store double %89, ptr %44, align 8
%90 = load double, ptr %19, align 8
%91 = load double, ptr %43, align 8
%92 = call double @llvm.fabs.f64(double %91)
%93 = fmul double %90, %92
store double %93, ptr %38, align 8
%94 = load double, ptr %38, align 8
%95 = fadd double %94, 1.000000e-10
%96 = fmul double 2.000000e+00, %95
store double %96, ptr %39, align 8
%97 = load double, ptr %43, align 8
%98 = load double, ptr %44, align 8
%99 = fsub double %97, %98
%100 = call double @llvm.fabs.f64(double %99)
%101 = load double, ptr %39, align 8
%102 = load double, ptr %28, align 8
%103 = load double, ptr %27, align 8
%104 = fsub double %102, %103
%105 = call double @llvm.fmuladd.f64(double -5.000000e-01, double %104, double %101)
%106 = fcmp ole double %100, %105
br i1 %106, label %114, label %107
107: ; preds = %85
%108 = load double, ptr %27, align 8
%109 = load double, ptr %28, align 8
%110 = fsub double %108, %109
%111 = call double @llvm.fabs.f64(double %110)
%112 = load double, ptr %20, align 8
%113 = fcmp olt double %111, %112
br i1 %113, label %114, label %154
114: ; preds = %107, %85
%115 = load double, ptr %34, align 8
%116 = load ptr, ptr %21, align 8
store double %115, ptr %116, align 8
%117 = load double, ptr %43, align 8
%118 = load double, ptr %42, align 8
%119 = fsub double %117, %118
store double %119, ptr %45, align 8
%120 = load double, ptr %42, align 8
%121 = load double, ptr %41, align 8
%122 = fsub double %120, %121
store double %122, ptr %46, align 8
%123 = load double, ptr %41, align 8
%124 = load double, ptr %43, align 8
%125 = fsub double %123, %124
store double %125, ptr %47, align 8
%126 = load double, ptr %32, align 8
%127 = load double, ptr %45, align 8
%128 = load double, ptr %34, align 8
%129 = load double, ptr %46, align 8
%130 = fmul double %128, %129
%131 = call double @llvm.fmuladd.f64(double %126, double %127, double %130)
%132 = load double, ptr %33, align 8
%133 = load double, ptr %47, align 8
%134 = call double @llvm.fmuladd.f64(double %132, double %133, double %131)
%135 = fmul double 2.000000e+00, %134
%136 = load double, ptr %41, align 8
%137 = load double, ptr %41, align 8
%138 = fmul double %136, %137
%139 = load double, ptr %45, align 8
%140 = load double, ptr %43, align 8
%141 = load double, ptr %43, align 8
%142 = fmul double %140, %141
%143 = load double, ptr %46, align 8
%144 = fmul double %142, %143
%145 = call double @llvm.fmuladd.f64(double %138, double %139, double %144)
%146 = load double, ptr %42, align 8
%147 = load double, ptr %42, align 8
%148 = fmul double %146, %147
%149 = load double, ptr %47, align 8
%150 = call double @llvm.fmuladd.f64(double %148, double %149, double %145)
%151 = fdiv double %135, %150
%152 = load ptr, ptr %22, align 8
store double %151, ptr %152, align 8
%153 = load double, ptr %43, align 8
store double %153, ptr %13, align 8
br label %418
154: ; preds = %107
%155 = load double, ptr %48, align 8
%156 = call double @llvm.fabs.f64(double %155)
%157 = load double, ptr %38, align 8
%158 = fcmp ogt double %156, %157
br i1 %158, label %159, label %272
159: ; preds = %154
%160 = load double, ptr %43, align 8
%161 = load double, ptr %42, align 8
%162 = fsub double %160, %161
%163 = load double, ptr %34, align 8
%164 = load double, ptr %32, align 8
%165 = fsub double %163, %164
%166 = fmul double %162, %165
store double %166, ptr %37, align 8
%167 = load double, ptr %43, align 8
%168 = load double, ptr %41, align 8
%169 = fsub double %167, %168
%170 = load double, ptr %34, align 8
%171 = load double, ptr %33, align 8
%172 = fsub double %170, %171
%173 = fmul double %169, %172
store double %173, ptr %36, align 8
%174 = load double, ptr %43, align 8
%175 = load double, ptr %41, align 8
%176 = fsub double %174, %175
%177 = load double, ptr %36, align 8
%178 = load double, ptr %43, align 8
%179 = load double, ptr %42, align 8
%180 = fsub double %178, %179
%181 = load double, ptr %37, align 8
%182 = fmul double %180, %181
%183 = fneg double %182
%184 = call double @llvm.fmuladd.f64(double %176, double %177, double %183)
store double %184, ptr %35, align 8
%185 = load double, ptr %36, align 8
%186 = load double, ptr %37, align 8
%187 = fsub double %185, %186
%188 = fmul double 2.000000e+00, %187
store double %188, ptr %36, align 8
%189 = load double, ptr %36, align 8
%190 = fcmp ogt double %189, 0.000000e+00
br i1 %190, label %191, label %194
191: ; preds = %159
%192 = load double, ptr %35, align 8
%193 = fneg double %192
store double %193, ptr %35, align 8
br label %194
194: ; preds = %191, %159
%195 = load double, ptr %36, align 8
%196 = call double @llvm.fabs.f64(double %195)
store double %196, ptr %36, align 8
%197 = load double, ptr %48, align 8
store double %197, ptr %30, align 8
%198 = load double, ptr %29, align 8
store double %198, ptr %48, align 8
%199 = load double, ptr %35, align 8
%200 = call double @llvm.fabs.f64(double %199)
%201 = load double, ptr %36, align 8
%202 = fmul double 5.000000e-01, %201
%203 = load double, ptr %30, align 8
%204 = fmul double %202, %203
%205 = call double @llvm.fabs.f64(double %204)
%206 = fcmp oge double %200, %205
br i1 %206, label %223, label %207
207: ; preds = %194
%208 = load double, ptr %35, align 8
%209 = load double, ptr %36, align 8
%210 = load double, ptr %27, align 8
%211 = load double, ptr %43, align 8
%212 = fsub double %210, %211
%213 = fmul double %209, %212
%214 = fcmp ole double %208, %213
br i1 %214, label %223, label %215
215: ; preds = %207
%216 = load double, ptr %35, align 8
%217 = load double, ptr %36, align 8
%218 = load double, ptr %28, align 8
%219 = load double, ptr %43, align 8
%220 = fsub double %218, %219
%221 = fmul double %217, %220
%222 = fcmp oge double %216, %221
br i1 %222, label %223, label %238
223: ; preds = %215, %207, %194
%224 = load double, ptr %43, align 8
%225 = load double, ptr %44, align 8
%226 = fcmp oge double %224, %225
br i1 %226, label %227, label %231
227: ; preds = %223
%228 = load double, ptr %27, align 8
%229 = load double, ptr %43, align 8
%230 = fsub double %228, %229
br label %235
231: ; preds = %223
%232 = load double, ptr %28, align 8
%233 = load double, ptr %43, align 8
%234 = fsub double %232, %233
br label %235
235: ; preds = %231, %227
%236 = phi double [ %230, %227 ], [ %234, %231 ]
store double %236, ptr %48, align 8
%237 = fmul double 3.819660e-01, %236
store double %237, ptr %29, align 8
br label %271
238: ; preds = %215
%239 = load double, ptr %35, align 8
%240 = load double, ptr %36, align 8
%241 = fdiv double %239, %240
store double %241, ptr %29, align 8
%242 = load double, ptr %43, align 8
%243 = load double, ptr %29, align 8
%244 = fadd double %242, %243
store double %244, ptr %40, align 8
%245 = load double, ptr %40, align 8
%246 = load double, ptr %27, align 8
%247 = fsub double %245, %246
%248 = load double, ptr %39, align 8
%249 = fcmp olt double %247, %248
br i1 %249, label %256, label %250
250: ; preds = %238
%251 = load double, ptr %28, align 8
%252 = load double, ptr %40, align 8
%253 = fsub double %251, %252
%254 = load double, ptr %39, align 8
%255 = fcmp olt double %253, %254
br i1 %255, label %256, label %270
256: ; preds = %250, %238
%257 = load double, ptr %44, align 8
%258 = load double, ptr %43, align 8
%259 = fsub double %257, %258
%260 = fcmp oge double %259, 0.000000e+00
br i1 %260, label %261, label %264
261: ; preds = %256
%262 = load double, ptr %38, align 8
%263 = call double @llvm.fabs.f64(double %262)
br label %268
264: ; preds = %256
%265 = load double, ptr %38, align 8
%266 = call double @llvm.fabs.f64(double %265)
%267 = fneg double %266
br label %268
268: ; preds = %264, %261
%269 = phi double [ %263, %261 ], [ %267, %264 ]
store double %269, ptr %29, align 8
br label %270
270: ; preds = %268, %250
br label %271
271: ; preds = %270, %235
br label %287
272: ; preds = %154
%273 = load double, ptr %43, align 8
%274 = load double, ptr %44, align 8
%275 = fcmp oge double %273, %274
br i1 %275, label %276, label %280
276: ; preds = %272
%277 = load double, ptr %27, align 8
%278 = load double, ptr %43, align 8
%279 = fsub double %277, %278
br label %284
280: ; preds = %272
%281 = load double, ptr %28, align 8
%282 = load double, ptr %43, align 8
%283 = fsub double %281, %282
br label %284
284: ; preds = %280, %276
%285 = phi double [ %279, %276 ], [ %283, %280 ]
store double %285, ptr %48, align 8
%286 = fmul double 3.819660e-01, %285
store double %286, ptr %29, align 8
br label %287
287: ; preds = %284, %271
%288 = load double, ptr %29, align 8
%289 = call double @llvm.fabs.f64(double %288)
%290 = load double, ptr %38, align 8
%291 = fcmp oge double %289, %290
br i1 %291, label %292, label %296
292: ; preds = %287
%293 = load double, ptr %43, align 8
%294 = load double, ptr %29, align 8
%295 = fadd double %293, %294
br label %310
296: ; preds = %287
%297 = load double, ptr %43, align 8
%298 = load double, ptr %29, align 8
%299 = fcmp oge double %298, 0.000000e+00
br i1 %299, label %300, label %303
300: ; preds = %296
%301 = load double, ptr %38, align 8
%302 = call double @llvm.fabs.f64(double %301)
br label %307
303: ; preds = %296
%304 = load double, ptr %38, align 8
%305 = call double @llvm.fabs.f64(double %304)
%306 = fneg double %305
br label %307
307: ; preds = %303, %300
%308 = phi double [ %302, %300 ], [ %306, %303 ]
%309 = fadd double %297, %308
br label %310
310: ; preds = %307, %292
%311 = phi double [ %295, %292 ], [ %309, %307 ]
store double %311, ptr %40, align 8
%312 = load ptr, ptr %17, align 8
%313 = load double, ptr %40, align 8
%314 = load ptr, ptr %18, align 8
%315 = call double %312(double noundef %313, ptr noundef %314)
store double %315, ptr %31, align 8
%316 = load double, ptr %31, align 8
%317 = load double, ptr %34, align 8
%318 = fcmp ole double %316, %317
br i1 %318, label %319, label %334
319: ; preds = %310
%320 = load double, ptr %40, align 8
%321 = load double, ptr %43, align 8
%322 = fcmp oge double %320, %321
br i1 %322, label %323, label %325
323: ; preds = %319
%324 = load double, ptr %43, align 8
store double %324, ptr %27, align 8
br label %327
325: ; preds = %319
%326 = load double, ptr %43, align 8
store double %326, ptr %28, align 8
br label %327
327: ; preds = %325, %323
%328 = load double, ptr %42, align 8
store double %328, ptr %41, align 8
%329 = load double, ptr %43, align 8
store double %329, ptr %42, align 8
%330 = load double, ptr %40, align 8
store double %330, ptr %43, align 8
%331 = load double, ptr %33, align 8
store double %331, ptr %32, align 8
%332 = load double, ptr %34, align 8
store double %332, ptr %33, align 8
%333 = load double, ptr %31, align 8
store double %333, ptr %34, align 8
br label %372
334: ; preds = %310
%335 = load double, ptr %40, align 8
%336 = load double, ptr %43, align 8
%337 = fcmp olt double %335, %336
br i1 %337, label %338, label %340
338: ; preds = %334
%339 = load double, ptr %40, align 8
store double %339, ptr %27, align 8
br label %342
340: ; preds = %334
%341 = load double, ptr %40, align 8
store double %341, ptr %28, align 8
br label %342
342: ; preds = %340, %338
%343 = load double, ptr %31, align 8
%344 = load double, ptr %33, align 8
%345 = fcmp ole double %343, %344
br i1 %345, label %350, label %346
346: ; preds = %342
%347 = load double, ptr %42, align 8
%348 = load double, ptr %43, align 8
%349 = fcmp oeq double %347, %348
br i1 %349, label %350, label %355
350: ; preds = %346, %342
%351 = load double, ptr %42, align 8
store double %351, ptr %41, align 8
%352 = load double, ptr %40, align 8
store double %352, ptr %42, align 8
%353 = load double, ptr %33, align 8
store double %353, ptr %32, align 8
%354 = load double, ptr %31, align 8
store double %354, ptr %33, align 8
br label %371
355: ; preds = %346
%356 = load double, ptr %31, align 8
%357 = load double, ptr %32, align 8
%358 = fcmp ole double %356, %357
br i1 %358, label %367, label %359
359: ; preds = %355
%360 = load double, ptr %41, align 8
%361 = load double, ptr %43, align 8
%362 = fcmp oeq double %360, %361
br i1 %362, label %367, label %363
363: ; preds = %359
%364 = load double, ptr %41, align 8
%365 = load double, ptr %42, align 8
%366 = fcmp oeq double %364, %365
br i1 %366, label %367, label %370
367: ; preds = %363, %359, %355
%368 = load double, ptr %40, align 8
store double %368, ptr %41, align 8
%369 = load double, ptr %31, align 8
store double %369, ptr %32, align 8
br label %370
370: ; preds = %367, %363
br label %371
371: ; preds = %370, %350
br label %372
372: ; preds = %371, %327
br label %373
373: ; preds = %372
%374 = load i32, ptr %26, align 4
%375 = add nsw i32 %374, 1
store i32 %375, ptr %26, align 4
%376 = load i32, ptr %26, align 4
%377 = icmp sle i32 %376, 100
br i1 %377, label %85, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %373
br label %378
378: ; preds = %._crit_edge, %82
%379 = load double, ptr %34, align 8
%380 = load ptr, ptr %21, align 8
store double %379, ptr %380, align 8
%381 = load double, ptr %43, align 8
%382 = load double, ptr %42, align 8
%383 = fsub double %381, %382
store double %383, ptr %45, align 8
%384 = load double, ptr %42, align 8
%385 = load double, ptr %41, align 8
%386 = fsub double %384, %385
store double %386, ptr %46, align 8
%387 = load double, ptr %41, align 8
%388 = load double, ptr %43, align 8
%389 = fsub double %387, %388
store double %389, ptr %47, align 8
%390 = load double, ptr %32, align 8
%391 = load double, ptr %45, align 8
%392 = load double, ptr %34, align 8
%393 = load double, ptr %46, align 8
%394 = fmul double %392, %393
%395 = call double @llvm.fmuladd.f64(double %390, double %391, double %394)
%396 = load double, ptr %33, align 8
%397 = load double, ptr %47, align 8
%398 = call double @llvm.fmuladd.f64(double %396, double %397, double %395)
%399 = fmul double 2.000000e+00, %398
%400 = load double, ptr %41, align 8
%401 = load double, ptr %41, align 8
%402 = fmul double %400, %401
%403 = load double, ptr %45, align 8
%404 = load double, ptr %43, align 8
%405 = load double, ptr %43, align 8
%406 = fmul double %404, %405
%407 = load double, ptr %46, align 8
%408 = fmul double %406, %407
%409 = call double @llvm.fmuladd.f64(double %402, double %403, double %408)
%410 = load double, ptr %42, align 8
%411 = load double, ptr %42, align 8
%412 = fmul double %410, %411
%413 = load double, ptr %47, align 8
%414 = call double @llvm.fmuladd.f64(double %412, double %413, double %409)
%415 = fdiv double %399, %414
%416 = load ptr, ptr %22, align 8
store double %415, ptr %416, align 8
%417 = load double, ptr %43, align 8
store double %417, ptr %13, align 8
br label %418
418: ; preds = %378, %114
%419 = load double, ptr %13, align 8
ret double %419
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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_o0z_9eu.c'
source_filename = "/tmp/tmp_o0z_9eu.c"
target datalayout = "e-m:e-p270: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.message1 = private unnamed_addr constant [13 x i8] c"hare krishna\00", align 1
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca [13 x i8], align 1
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %1, ptr align 1 @__const.main.message1, i64 13, i1 false)
%2 = call i32 @channgemessage(ptr noundef %1, i32 noundef 13)
%3 = getelementptr inbounds [13 x i8], ptr %1, i64 0, i64 0
%4 = call i32 @printf(ptr noundef @.str, ptr noundef %3)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @channgemessage(ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_o0z_9eu.c"
target datalayout = "e-m:e-p270: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.message1 = private unnamed_addr constant [13 x i8] c"hare krishna\00", align 1
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca [13 x i8], align 1
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %1, ptr align 1 @__const.main.message1, i64 13, i1 false)
%2 = call i32 @channgemessage(ptr noundef %1, i32 noundef 13)
%3 = getelementptr inbounds [13 x i8], ptr %1, i64 0, i64 0
%4 = call i32 @printf(ptr noundef @.str, ptr noundef %3)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @channgemessage(ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzqfdhz1y.c'
source_filename = "/tmp/tmpzqfdhz1y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Usage: %s HOSTNAME\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [9 x i8] c"/net/dns\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [5 x i8] c"open\00", align 1
@.str.3 = private unnamed_addr constant [11 x i8] c"resolve %s\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"write\00", align 1
@STDOUT_FILENO = dso_local global i32 0, align 4
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca [1024 x i8], align 16
%9 = alloca [1024 x i8], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %10, 2
br i1 %11, label %12, label %18
12: ; preds = %2
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 0
%15 = load ptr, ptr %14, align 8
%16 = call i32 @printf(ptr noundef @.str, ptr noundef %15)
%17 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %17, ptr %3, align 4
br label %59
18: ; preds = %2
%19 = load i32, ptr @O_RDWR, align 4
%20 = call i32 @open(ptr noundef @.str.1, i32 noundef %19)
store i32 %20, ptr %6, align 4
%21 = load i32, ptr %6, align 4
%22 = icmp slt i32 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %18
%24 = call i32 @perror(ptr noundef @.str.2)
%25 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %25, ptr %3, align 4
br label %59
26: ; preds = %18
%27 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%28 = load ptr, ptr %5, align 8
%29 = getelementptr inbounds ptr, ptr %28, i64 1
%30 = load ptr, ptr %29, align 8
%31 = call i32 @snprintf(ptr noundef %27, i32 noundef 1024, ptr noundef @.str.3, ptr noundef %30)
%32 = load i32, ptr %6, align 4
%33 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%34 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%35 = call i32 @strlen(ptr noundef %34)
%36 = call i32 @write(i32 noundef %32, ptr noundef %33, i32 noundef %35)
store i32 %36, ptr %7, align 4
%37 = load i32, ptr %7, align 4
%38 = icmp slt i32 %37, 0
br i1 %38, label %39, label %42
39: ; preds = %26
%40 = call i32 @perror(ptr noundef @.str.4)
%41 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %41, ptr %3, align 4
br label %59
42: ; preds = %26
br label %43
43: ; preds = %50, %42
%44 = load i32, ptr %6, align 4
%45 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%46 = call i32 @read(i32 noundef %44, ptr noundef %45, i32 noundef 1024)
store i32 %46, ptr %7, align 4
%47 = load i32, ptr %7, align 4
%48 = icmp sle i32 %47, 0
br i1 %48, label %49, label %50
49: ; preds = %43
br label %55
50: ; preds = %43
%51 = load i32, ptr @STDOUT_FILENO, align 4
%52 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%53 = load i32, ptr %7, align 4
%54 = call i32 @write(i32 noundef %51, ptr noundef %52, i32 noundef %53)
br label %43
55: ; preds = %49
%56 = load i32, ptr %6, align 4
%57 = call i32 @close(i32 noundef %56)
%58 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %58, ptr %3, align 4
br label %59
59: ; preds = %55, %39, %23, %12
%60 = load i32, ptr %3, align 4
ret i32 %60
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzqfdhz1y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Usage: %s HOSTNAME\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [9 x i8] c"/net/dns\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [5 x i8] c"open\00", align 1
@.str.3 = private unnamed_addr constant [11 x i8] c"resolve %s\00", align 1
@.str.4 = private unnamed_addr constant [6 x i8] c"write\00", align 1
@STDOUT_FILENO = dso_local global i32 0, align 4
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca [1024 x i8], align 16
%9 = alloca [1024 x i8], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %10, 2
br i1 %11, label %12, label %18
12: ; preds = %2
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 0
%15 = load ptr, ptr %14, align 8
%16 = call i32 @printf(ptr noundef @.str, ptr noundef %15)
%17 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %17, ptr %3, align 4
br label %62
18: ; preds = %2
%19 = load i32, ptr @O_RDWR, align 4
%20 = call i32 @open(ptr noundef @.str.1, i32 noundef %19)
store i32 %20, ptr %6, align 4
%21 = load i32, ptr %6, align 4
%22 = icmp slt i32 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %18
%24 = call i32 @perror(ptr noundef @.str.2)
%25 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %25, ptr %3, align 4
br label %62
26: ; preds = %18
%27 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%28 = load ptr, ptr %5, align 8
%29 = getelementptr inbounds ptr, ptr %28, i64 1
%30 = load ptr, ptr %29, align 8
%31 = call i32 @snprintf(ptr noundef %27, i32 noundef 1024, ptr noundef @.str.3, ptr noundef %30)
%32 = load i32, ptr %6, align 4
%33 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%34 = getelementptr inbounds [1024 x i8], ptr %9, i64 0, i64 0
%35 = call i32 @strlen(ptr noundef %34)
%36 = call i32 @write(i32 noundef %32, ptr noundef %33, i32 noundef %35)
store i32 %36, ptr %7, align 4
%37 = load i32, ptr %7, align 4
%38 = icmp slt i32 %37, 0
br i1 %38, label %39, label %42
39: ; preds = %26
%40 = call i32 @perror(ptr noundef @.str.4)
%41 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %41, ptr %3, align 4
br label %62
42: ; preds = %26
%43 = load i32, ptr %6, align 4
%44 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%45 = call i32 @read(i32 noundef %43, ptr noundef %44, i32 noundef 1024)
store i32 %45, ptr %7, align 4
%46 = load i32, ptr %7, align 4
%47 = icmp sle i32 %46, 0
br i1 %47, label %48, label %.lr.ph
.lr.ph: ; preds = %42
br label %49
._crit_edge: ; preds = %49
br label %48
48: ; preds = %._crit_edge, %42
br label %58
49: ; preds = %.lr.ph, %49
%50 = load i32, ptr @STDOUT_FILENO, align 4
%51 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%52 = load i32, ptr %7, align 4
%53 = call i32 @write(i32 noundef %50, ptr noundef %51, i32 noundef %52)
%54 = load i32, ptr %6, align 4
%55 = call i32 @read(i32 noundef %54, ptr noundef %44, i32 noundef 1024)
store i32 %55, ptr %7, align 4
%56 = load i32, ptr %7, align 4
%57 = icmp sle i32 %56, 0
br i1 %57, label %._crit_edge, label %49
58: ; preds = %48
%59 = load i32, ptr %6, align 4
%60 = call i32 @close(i32 noundef %59)
%61 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %61, ptr %3, align 4
br label %62
62: ; preds = %58, %39, %23, %12
%63 = load i32, ptr %3, align 4
ret i32 %63
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpeoovo_4x.c'
source_filename = "/tmp/tmpeoovo_4x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @hasNameafterTheOffset0(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
%10 = call ptr (...) @getPcontent()
store ptr %10, ptr %8, align 8
%11 = load i32, ptr %5, align 4
%12 = call i32 @defineStartAndEnd(ptr noundef %4, ptr noundef %7, i32 noundef %11)
store i32 0, ptr %9, align 4
%13 = load i32, ptr %4, align 4
store i32 %13, ptr %6, align 4
br label %14
14: ; preds = %134, %2
%15 = load i32, ptr %6, align 4
%16 = load i32, ptr %7, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %137
18: ; preds = %14
%19 = load i32, ptr %6, align 4
%20 = load i32, ptr %9, align 4
%21 = sub nsw i32 %19, %20
%22 = icmp sgt i32 %21, 1
br i1 %22, label %23, label %26
23: ; preds = %18
%24 = load i32, ptr %6, align 4
%25 = add nsw i32 %24, -1
store i32 %25, ptr %6, align 4
br label %26
26: ; preds = %23, %18
%27 = load i32, ptr %6, align 4
store i32 %27, ptr %9, align 4
%28 = load ptr, ptr %8, align 8
%29 = load i32, ptr %6, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i8, ptr %28, i64 %30
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = icmp slt i32 %33, 65
br i1 %34, label %43, label %35
35: ; preds = %26
%36 = load ptr, ptr %8, align 8
%37 = load i32, ptr %6, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i8, ptr %36, i64 %38
%40 = load i8, ptr %39, align 1
%41 = sext i8 %40 to i32
%42 = icmp sgt i32 %41, 90
br i1 %42, label %43, label %44
43: ; preds = %35, %26
br label %134
44: ; preds = %35
br label %45
45: ; preds = %61, %44
%46 = load ptr, ptr %8, align 8
%47 = load i32, ptr %6, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i8, ptr %46, i64 %48
%50 = load i8, ptr %49, align 1
%51 = call i64 @fitPattern(i8 noundef signext 97, i8 noundef signext %50)
%52 = icmp ne i64 %51, 0
br i1 %52, label %53, label %62
53: ; preds = %45
%54 = load i32, ptr %6, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %6, align 4
%56 = load i32, ptr %6, align 4
%57 = load i32, ptr %7, align 4
%58 = sub nsw i32 %57, 3
%59 = icmp sgt i32 %56, %58
br i1 %59, label %60, label %61
60: ; preds = %53
store i32 0, ptr %3, align 4
br label %138
61: ; preds = %53
br label %45, !llvm.loop !6
62: ; preds = %45
%63 = load i32, ptr %6, align 4
%64 = load i32, ptr %9, align 4
%65 = sub nsw i32 %63, %64
%66 = icmp sge i32 %65, 1
br i1 %66, label %67, label %133
67: ; preds = %62
%68 = load ptr, ptr %8, align 8
%69 = load i32, ptr %6, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds i8, ptr %68, i64 %70
%72 = load i8, ptr %71, align 1
%73 = sext i8 %72 to i32
%74 = icmp eq i32 44, %73
br i1 %74, label %75, label %133
75: ; preds = %67
%76 = load i32, ptr %6, align 4
%77 = add nsw i32 %76, 1
store i32 %77, ptr %6, align 4
br label %78
78: ; preds = %94, %75
%79 = load ptr, ptr %8, align 8
%80 = load i32, ptr %6, align 4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds i8, ptr %79, i64 %81
%83 = load i8, ptr %82, align 1
%84 = sext i8 %83 to i32
%85 = icmp eq i32 %84, 32
br i1 %85, label %86, label %95
86: ; preds = %78
%87 = load i32, ptr %6, align 4
%88 = add nsw i32 %87, 1
store i32 %88, ptr %6, align 4
%89 = load i32, ptr %6, align 4
%90 = load i32, ptr %7, align 4
%91 = sub nsw i32 %90, 2
%92 = icmp sgt i32 %89, %91
br i1 %92, label %93, label %94
93: ; preds = %86
store i32 0, ptr %3, align 4
br label %138
94: ; preds = %86
br label %78, !llvm.loop !8
95: ; preds = %78
%96 = load ptr, ptr %8, align 8
%97 = load i32, ptr %6, align 4
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds i8, ptr %96, i64 %98
%100 = load i8, ptr %99, align 1
%101 = sext i8 %100 to i32
%102 = icmp slt i32 %101, 65
br i1 %102, label %111, label %103
103: ; preds = %95
%104 = load ptr, ptr %8, align 8
%105 = load i32, ptr %6, align 4
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds i8, ptr %104, i64 %106
%108 = load i8, ptr %107, align 1
%109 = sext i8 %108 to i32
%110 = icmp sgt i32 %109, 90
br i1 %110, label %111, label %112
111: ; preds = %103, %95
br label %134
112: ; preds = %103
%113 = load ptr, ptr %8, align 8
%114 = load i32, ptr %6, align 4
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds i8, ptr %113, i64 %115
%117 = load i8, ptr %116, align 1
%118 = call i64 @fitPattern(i8 noundef signext 97, i8 noundef signext %117)
%119 = icmp ne i64 %118, 0
br i1 %119, label %120, label %132
120: ; preds = %112
%121 = load ptr, ptr %8, align 8
%122 = load i32, ptr %6, align 4
%123 = add nsw i32 %122, 1
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds i8, ptr %121, i64 %124
%126 = load i8, ptr %125, align 1
%127 = sext i8 %126 to i32
%128 = icmp eq i32 46, %127
br i1 %128, label %129, label %132
129: ; preds = %120
%130 = load i32, ptr %6, align 4
%131 = add nsw i32 %130, 2
store i32 %131, ptr %3, align 4
br label %138
132: ; preds = %120, %112
br label %133
133: ; preds = %132, %67, %62
br label %134
134: ; preds = %133, %111, %43
%135 = load i32, ptr %6, align 4
%136 = add nsw i32 %135, 1
store i32 %136, ptr %6, align 4
br label %14, !llvm.loop !9
137: ; preds = %14
store i32 0, ptr %3, align 4
br label %138
138: ; preds = %137, %129, %93, %60
%139 = load i32, ptr %3, align 4
ret i32 %139
}
declare ptr @getPcontent(...) #1
declare i32 @defineStartAndEnd(ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @fitPattern(i8 noundef signext, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpeoovo_4x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @hasNameafterTheOffset0(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
%10 = call ptr (...) @getPcontent()
store ptr %10, ptr %8, align 8
%11 = load i32, ptr %5, align 4
%12 = call i32 @defineStartAndEnd(ptr noundef %4, ptr noundef %7, i32 noundef %11)
store i32 0, ptr %9, align 4
%13 = load i32, ptr %4, align 4
store i32 %13, ptr %6, align 4
%14 = load i32, ptr %6, align 4
%15 = load i32, ptr %7, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %.lr.ph5, label %151
.lr.ph5: ; preds = %2
br label %17
17: ; preds = %.lr.ph5, %145
%18 = load i32, ptr %6, align 4
%19 = load i32, ptr %9, align 4
%20 = sub nsw i32 %18, %19
%21 = icmp sgt i32 %20, 1
br i1 %21, label %22, label %25
22: ; preds = %17
%23 = load i32, ptr %6, align 4
%24 = add nsw i32 %23, -1
store i32 %24, ptr %6, align 4
br label %25
25: ; preds = %22, %17
%26 = load i32, ptr %6, align 4
store i32 %26, ptr %9, align 4
%27 = load ptr, ptr %8, align 8
%28 = load i32, ptr %6, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8, ptr %27, i64 %29
%31 = load i8, ptr %30, align 1
%32 = sext i8 %31 to i32
%33 = icmp slt i32 %32, 65
br i1 %33, label %42, label %34
34: ; preds = %25
%35 = load ptr, ptr %8, align 8
%36 = load i32, ptr %6, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i8, ptr %35, i64 %37
%39 = load i8, ptr %38, align 1
%40 = sext i8 %39 to i32
%41 = icmp sgt i32 %40, 90
br i1 %41, label %42, label %43
42: ; preds = %34, %25
br label %145
43: ; preds = %34
%44 = load ptr, ptr %8, align 8
%45 = load i32, ptr %6, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds i8, ptr %44, i64 %46
%48 = load i8, ptr %47, align 1
%49 = call i64 @fitPattern(i8 noundef signext 97, i8 noundef signext %48)
%50 = icmp ne i64 %49, 0
br i1 %50, label %.lr.ph, label %67
.lr.ph: ; preds = %43
br label %59
51: ; preds = %59
%52 = load ptr, ptr %8, align 8
%53 = load i32, ptr %6, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i8, ptr %52, i64 %54
%56 = load i8, ptr %55, align 1
%57 = call i64 @fitPattern(i8 noundef signext 97, i8 noundef signext %56)
%58 = icmp ne i64 %57, 0
br i1 %58, label %59, label %._crit_edge, !llvm.loop !6
59: ; preds = %.lr.ph, %51
%60 = load i32, ptr %6, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %6, align 4
%62 = load i32, ptr %6, align 4
%63 = load i32, ptr %7, align 4
%64 = sub nsw i32 %63, 3
%65 = icmp sgt i32 %62, %64
br i1 %65, label %66, label %51
66: ; preds = %59
store i32 0, ptr %3, align 4
br label %152
._crit_edge: ; preds = %51
br label %67
67: ; preds = %._crit_edge, %43
%68 = load i32, ptr %6, align 4
%69 = load i32, ptr %9, align 4
%70 = sub nsw i32 %68, %69
%71 = icmp sge i32 %70, 1
br i1 %71, label %72, label %144
72: ; preds = %67
%73 = load ptr, ptr %8, align 8
%74 = load i32, ptr %6, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds i8, ptr %73, i64 %75
%77 = load i8, ptr %76, align 1
%78 = sext i8 %77 to i32
%79 = icmp eq i32 44, %78
br i1 %79, label %80, label %144
80: ; preds = %72
%81 = load i32, ptr %6, align 4
%82 = add nsw i32 %81, 1
store i32 %82, ptr %6, align 4
%83 = load ptr, ptr %8, align 8
%84 = load i32, ptr %6, align 4
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds i8, ptr %83, i64 %85
%87 = load i8, ptr %86, align 1
%88 = sext i8 %87 to i32
%89 = icmp eq i32 %88, 32
br i1 %89, label %.lr.ph2, label %106
.lr.ph2: ; preds = %80
br label %98
90: ; preds = %98
%91 = load ptr, ptr %8, align 8
%92 = load i32, ptr %6, align 4
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds i8, ptr %91, i64 %93
%95 = load i8, ptr %94, align 1
%96 = sext i8 %95 to i32
%97 = icmp eq i32 %96, 32
br i1 %97, label %98, label %._crit_edge3, !llvm.loop !8
98: ; preds = %.lr.ph2, %90
%99 = load i32, ptr %6, align 4
%100 = add nsw i32 %99, 1
store i32 %100, ptr %6, align 4
%101 = load i32, ptr %6, align 4
%102 = load i32, ptr %7, align 4
%103 = sub nsw i32 %102, 2
%104 = icmp sgt i32 %101, %103
br i1 %104, label %105, label %90
105: ; preds = %98
store i32 0, ptr %3, align 4
br label %152
._crit_edge3: ; preds = %90
br label %106
106: ; preds = %._crit_edge3, %80
%107 = load ptr, ptr %8, align 8
%108 = load i32, ptr %6, align 4
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds i8, ptr %107, i64 %109
%111 = load i8, ptr %110, align 1
%112 = sext i8 %111 to i32
%113 = icmp slt i32 %112, 65
br i1 %113, label %122, label %114
114: ; preds = %106
%115 = load ptr, ptr %8, align 8
%116 = load i32, ptr %6, align 4
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds i8, ptr %115, i64 %117
%119 = load i8, ptr %118, align 1
%120 = sext i8 %119 to i32
%121 = icmp sgt i32 %120, 90
br i1 %121, label %122, label %123
122: ; preds = %114, %106
br label %145
123: ; preds = %114
%124 = load ptr, ptr %8, align 8
%125 = load i32, ptr %6, align 4
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds i8, ptr %124, i64 %126
%128 = load i8, ptr %127, align 1
%129 = call i64 @fitPattern(i8 noundef signext 97, i8 noundef signext %128)
%130 = icmp ne i64 %129, 0
br i1 %130, label %131, label %143
131: ; preds = %123
%132 = load ptr, ptr %8, align 8
%133 = load i32, ptr %6, align 4
%134 = add nsw i32 %133, 1
%135 = sext i32 %134 to i64
%136 = getelementptr inbounds i8, ptr %132, i64 %135
%137 = load i8, ptr %136, align 1
%138 = sext i8 %137 to i32
%139 = icmp eq i32 46, %138
br i1 %139, label %140, label %143
140: ; preds = %131
%141 = load i32, ptr %6, align 4
%142 = add nsw i32 %141, 2
store i32 %142, ptr %3, align 4
br label %152
143: ; preds = %131, %123
br label %144
144: ; preds = %143, %72, %67
br label %145
145: ; preds = %144, %122, %42
%146 = load i32, ptr %6, align 4
%147 = add nsw i32 %146, 1
store i32 %147, ptr %6, align 4
%148 = load i32, ptr %6, align 4
%149 = load i32, ptr %7, align 4
%150 = icmp slt i32 %148, %149
br i1 %150, label %17, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %145
br label %151
151: ; preds = %._crit_edge6, %2
store i32 0, ptr %3, align 4
br label %152
152: ; preds = %151, %140, %105, %66
%153 = load i32, ptr %3, align 4
ret i32 %153
}
declare ptr @getPcontent(...) #1
declare i32 @defineStartAndEnd(ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @fitPattern(i8 noundef signext, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmp7kplewwy.c'
source_filename = "/tmp/tmp7kplewwy.c"
target datalayout = "e-m:e-p270: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/tmp7kplewwy.c"
target datalayout = "e-m:e-p270: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/tmpqihctiex.c'
source_filename = "/tmp/tmpqihctiex.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"- command-line arguments:\0A\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c" %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @dump_cmdline(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %5, align 4
br label %7
7: ; preds = %18, %2
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %3, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %21
11: ; preds = %7
%12 = load ptr, ptr %4, align 8
%13 = load i32, ptr %5, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds ptr, ptr %12, i64 %14
%16 = load ptr, ptr %15, align 8
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %16)
br label %18
18: ; preds = %11
%19 = load i32, ptr %5, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %5, align 4
br label %7, !llvm.loop !6
21: ; preds = %7
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqihctiex.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"- command-line arguments:\0A\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c" %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @dump_cmdline(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %5, align 4
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr %3, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %.lr.ph, label %23
.lr.ph: ; preds = %2
br label %10
10: ; preds = %.lr.ph, %17
%11 = load ptr, ptr %4, align 8
%12 = load i32, ptr %5, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds ptr, ptr %11, i64 %13
%15 = load ptr, ptr %14, align 8
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %15)
br label %17
17: ; preds = %10
%18 = load i32, ptr %5, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %5, align 4
%20 = load i32, ptr %5, align 4
%21 = load i32, ptr %3, align 4
%22 = icmp slt i32 %20, %21
br i1 %22, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %23
23: ; preds = %._crit_edge, %2
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpwibq7hk0.c'
source_filename = "/tmp/tmpwibq7hk0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"Novo grenal (1-sim 2-nao)\0A\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.3 = private unnamed_addr constant [12 x i8] c"%d grenais\0A\00", align 1
@.str.4 = private unnamed_addr constant [10 x i8] c"Inter:%d\0A\00", align 1
@.str.5 = private unnamed_addr constant [11 x i8] c"Gremio:%d\0A\00", align 1
@.str.6 = private unnamed_addr constant [12 x i8] c"Empates:%d\0A\00", align 1
@.str.7 = private unnamed_addr constant [19 x i8] c"Inter venceu mais\0A\00", align 1
@.str.8 = private unnamed_addr constant [20 x i8] c"Gremio venceu mais\0A\00", align 1
@.str.9 = private unnamed_addr constant [20 x i8] c"Nao houve vencedor\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 1, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
br label %9
9: ; preds = %35, %0
%10 = load i32, ptr %4, align 4
%11 = icmp eq i32 %10, 1
br i1 %11, label %12, label %36
12: ; preds = %9
%13 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%15 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.2, ptr noundef %4)
%16 = load i32, ptr %5, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %5, align 4
%18 = load i32, ptr %2, align 4
%19 = load i32, ptr %3, align 4
%20 = icmp sgt i32 %18, %19
br i1 %20, label %21, label %24
21: ; preds = %12
%22 = load i32, ptr %6, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %6, align 4
br label %35
24: ; preds = %12
%25 = load i32, ptr %2, align 4
%26 = load i32, ptr %3, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %28, label %31
28: ; preds = %24
%29 = load i32, ptr %7, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %7, align 4
br label %34
31: ; preds = %24
%32 = load i32, ptr %8, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %8, align 4
br label %34
34: ; preds = %31, %28
br label %35
35: ; preds = %34, %21
br label %9, !llvm.loop !6
36: ; preds = %9
%37 = load i32, ptr %5, align 4
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %37)
%39 = load i32, ptr %6, align 4
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %39)
%41 = load i32, ptr %7, align 4
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %41)
%43 = load i32, ptr %8, align 4
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %43)
%45 = load i32, ptr %6, align 4
%46 = load i32, ptr %7, align 4
%47 = icmp sgt i32 %45, %46
br i1 %47, label %48, label %50
48: ; preds = %36
%49 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %59
50: ; preds = %36
%51 = load i32, ptr %6, align 4
%52 = load i32, ptr %7, align 4
%53 = icmp slt i32 %51, %52
br i1 %53, label %54, label %56
54: ; preds = %50
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
br label %58
56: ; preds = %50
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
br label %58
58: ; preds = %56, %54
br label %59
59: ; preds = %58, %48
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ...) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwibq7hk0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"Novo grenal (1-sim 2-nao)\0A\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.3 = private unnamed_addr constant [12 x i8] c"%d grenais\0A\00", align 1
@.str.4 = private unnamed_addr constant [10 x i8] c"Inter:%d\0A\00", align 1
@.str.5 = private unnamed_addr constant [11 x i8] c"Gremio:%d\0A\00", align 1
@.str.6 = private unnamed_addr constant [12 x i8] c"Empates:%d\0A\00", align 1
@.str.7 = private unnamed_addr constant [19 x i8] c"Inter venceu mais\0A\00", align 1
@.str.8 = private unnamed_addr constant [20 x i8] c"Gremio venceu mais\0A\00", align 1
@.str.9 = private unnamed_addr constant [20 x i8] c"Nao houve vencedor\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 1, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp eq i32 %9, 1
br i1 %10, label %.lr.ph, label %37
.lr.ph: ; preds = %0
br label %11
11: ; preds = %.lr.ph, %34
%12 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%14 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.2, ptr noundef %4)
%15 = load i32, ptr %5, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %5, align 4
%17 = load i32, ptr %2, align 4
%18 = load i32, ptr %3, align 4
%19 = icmp sgt i32 %17, %18
br i1 %19, label %20, label %23
20: ; preds = %11
%21 = load i32, ptr %6, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %6, align 4
br label %34
23: ; preds = %11
%24 = load i32, ptr %2, align 4
%25 = load i32, ptr %3, align 4
%26 = icmp slt i32 %24, %25
br i1 %26, label %27, label %30
27: ; preds = %23
%28 = load i32, ptr %7, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %7, align 4
br label %33
30: ; preds = %23
%31 = load i32, ptr %8, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %8, align 4
br label %33
33: ; preds = %30, %27
br label %34
34: ; preds = %33, %20
%35 = load i32, ptr %4, align 4
%36 = icmp eq i32 %35, 1
br i1 %36, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %34
br label %37
37: ; preds = %._crit_edge, %0
%38 = load i32, ptr %5, align 4
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %38)
%40 = load i32, ptr %6, align 4
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %40)
%42 = load i32, ptr %7, align 4
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %42)
%44 = load i32, ptr %8, align 4
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %44)
%46 = load i32, ptr %6, align 4
%47 = load i32, ptr %7, align 4
%48 = icmp sgt i32 %46, %47
br i1 %48, label %49, label %51
49: ; preds = %37
%50 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %60
51: ; preds = %37
%52 = load i32, ptr %6, align 4
%53 = load i32, ptr %7, align 4
%54 = icmp slt i32 %52, %53
br i1 %54, label %55, label %57
55: ; preds = %51
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
br label %59
57: ; preds = %51
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
br label %59
59: ; preds = %57, %55
br label %60
60: ; preds = %59, %49
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ...) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp_b99f831.c'
source_filename = "/tmp/tmp_b99f831.c"
target datalayout = "e-m:e-p270: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_b99f831.c"
target datalayout = "e-m:e-p270: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/tmp0mm5azyz.c'
source_filename = "/tmp/tmp0mm5azyz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
@.str.1 = private unnamed_addr constant [11 x i8] c"/proc/self\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [64 x i8], align 16
%3 = alloca [64 x i8], align 16
%4 = alloca i32, align 4
%5 = alloca i64, align 8
store i32 0, ptr %1, align 4
%6 = call i32 (...) @sys_getpid()
store i32 %6, ptr %4, align 4
%7 = getelementptr inbounds [64 x i8], ptr %2, i64 0, i64 0
%8 = load i32, ptr %4, align 4
%9 = call i32 @snprintf(ptr noundef %7, i32 noundef 64, ptr noundef @.str, i32 noundef %8)
%10 = getelementptr inbounds [64 x i8], ptr %3, i64 0, i64 0
%11 = call i64 @readlink(ptr noundef @.str.1, ptr noundef %10, i32 noundef 64)
store i64 %11, ptr %5, align 8
%12 = load i64, ptr %5, align 8
%13 = getelementptr inbounds [64 x i8], ptr %2, i64 0, i64 0
%14 = call i64 @strlen(ptr noundef %13)
%15 = icmp eq i64 %12, %14
%16 = zext i1 %15 to i32
%17 = call i32 @assert(i32 noundef %16)
%18 = load i64, ptr %5, align 8
%19 = getelementptr inbounds [64 x i8], ptr %3, i64 0, i64 %18
store i8 0, ptr %19, align 1
%20 = getelementptr inbounds [64 x i8], ptr %2, i64 0, i64 0
%21 = getelementptr inbounds [64 x i8], ptr %3, i64 0, i64 0
%22 = call i32 @streq(ptr noundef %20, ptr noundef %21)
%23 = call i32 @assert(i32 noundef %22)
ret i32 0
}
declare i32 @sys_getpid(...) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @readlink(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @assert(i32 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @streq(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/tmp0mm5azyz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
@.str.1 = private unnamed_addr constant [11 x i8] c"/proc/self\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [64 x i8], align 16
%3 = alloca [64 x i8], align 16
%4 = alloca i32, align 4
%5 = alloca i64, align 8
store i32 0, ptr %1, align 4
%6 = call i32 (...) @sys_getpid()
store i32 %6, ptr %4, align 4
%7 = getelementptr inbounds [64 x i8], ptr %2, i64 0, i64 0
%8 = load i32, ptr %4, align 4
%9 = call i32 @snprintf(ptr noundef %7, i32 noundef 64, ptr noundef @.str, i32 noundef %8)
%10 = getelementptr inbounds [64 x i8], ptr %3, i64 0, i64 0
%11 = call i64 @readlink(ptr noundef @.str.1, ptr noundef %10, i32 noundef 64)
store i64 %11, ptr %5, align 8
%12 = load i64, ptr %5, align 8
%13 = getelementptr inbounds [64 x i8], ptr %2, i64 0, i64 0
%14 = call i64 @strlen(ptr noundef %13)
%15 = icmp eq i64 %12, %14
%16 = zext i1 %15 to i32
%17 = call i32 @assert(i32 noundef %16)
%18 = load i64, ptr %5, align 8
%19 = getelementptr inbounds [64 x i8], ptr %3, i64 0, i64 %18
store i8 0, ptr %19, align 1
%20 = getelementptr inbounds [64 x i8], ptr %2, i64 0, i64 0
%21 = getelementptr inbounds [64 x i8], ptr %3, i64 0, i64 0
%22 = call i32 @streq(ptr noundef %20, ptr noundef %21)
%23 = call i32 @assert(i32 noundef %22)
ret i32 0
}
declare i32 @sys_getpid(...) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @readlink(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @assert(i32 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @streq(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/tmpv9_y7eu5.c'
source_filename = "/tmp/tmpv9_y7eu5.c"
target datalayout = "e-m:e-p270: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/tmpv9_y7eu5.c"
target datalayout = "e-m:e-p270: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/tmpn50x74l0.c'
source_filename = "/tmp/tmpn50x74l0.c"
target datalayout = "e-m:e-p270: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/tmpn50x74l0.c"
target datalayout = "e-m:e-p270: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/tmpyumx8ohq.c'
source_filename = "/tmp/tmpyumx8ohq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.arr = private unnamed_addr constant [3 x [3 x i32]] [[3 x i32] [i32 1, i32 2, i32 3], [3 x i32] [i32 4, i32 5, i32 6], [3 x i32] [i32 7, i32 8, i32 9]], align 16
@.str = private unnamed_addr constant [5 x i8] c"%-5d\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"p=%p\0A\00", align 1
@.str.3 = private unnamed_addr constant [8 x i8] c"p+1=%p\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [3 x [3 x i32]], align 16
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.arr, i64 36, i1 false)
%6 = getelementptr inbounds [3 x [3 x i32]], ptr %2, i64 0, i64 0
store ptr %6, ptr %3, align 8
store i32 0, ptr %4, align 4
br label %7
7: ; preds = %29, %0
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %8, 3
br i1 %9, label %10, label %32
10: ; preds = %7
store i32 0, ptr %5, align 4
br label %11
11: ; preds = %24, %10
%12 = load i32, ptr %5, align 4
%13 = icmp slt i32 %12, 3
br i1 %13, label %14, label %27
14: ; preds = %11
%15 = load ptr, ptr %3, align 8
%16 = load i32, ptr %4, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [3 x i32], ptr %15, i64 %17
%19 = load i32, ptr %5, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [3 x i32], ptr %18, i64 0, i64 %20
%22 = load i32, ptr %21, align 4
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %22)
br label %24
24: ; preds = %14
%25 = load i32, ptr %5, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %5, align 4
br label %11, !llvm.loop !6
27: ; preds = %11
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %29
29: ; preds = %27
%30 = load i32, ptr %4, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %4, align 4
br label %7, !llvm.loop !8
32: ; preds = %7
%33 = load ptr, ptr %3, align 8
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %33)
%35 = load ptr, ptr %3, align 8
%36 = getelementptr inbounds [3 x i32], ptr %35, i64 1
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %36)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyumx8ohq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.arr = private unnamed_addr constant [3 x [3 x i32]] [[3 x i32] [i32 1, i32 2, i32 3], [3 x i32] [i32 4, i32 5, i32 6], [3 x i32] [i32 7, i32 8, i32 9]], align 16
@.str = private unnamed_addr constant [5 x i8] c"%-5d\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"p=%p\0A\00", align 1
@.str.3 = private unnamed_addr constant [8 x i8] c"p+1=%p\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [3 x [3 x i32]], align 16
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.arr, i64 36, i1 false)
%6 = getelementptr inbounds [3 x [3 x i32]], ptr %2, i64 0, i64 0
store ptr %6, ptr %3, align 8
store i32 0, ptr %4, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %7, 3
br i1 %8, label %.lr.ph2, label %34
.lr.ph2: ; preds = %0
br label %9
9: ; preds = %.lr.ph2, %29
store i32 0, ptr %5, align 4
%10 = load i32, ptr %5, align 4
%11 = icmp slt i32 %10, 3
br i1 %11, label %.lr.ph, label %27
.lr.ph: ; preds = %9
br label %12
12: ; preds = %.lr.ph, %22
%13 = load ptr, ptr %3, align 8
%14 = load i32, ptr %4, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [3 x i32], ptr %13, i64 %15
%17 = load i32, ptr %5, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [3 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 %5, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %5, align 4
%25 = load i32, ptr %5, align 4
%26 = icmp slt i32 %25, 3
br i1 %26, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %22
br label %27
27: ; preds = %._crit_edge, %9
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %29
29: ; preds = %27
%30 = load i32, ptr %4, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %4, align 4
%32 = load i32, ptr %4, align 4
%33 = icmp slt i32 %32, 3
br i1 %33, label %9, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %29
br label %34
34: ; preds = %._crit_edge3, %0
%35 = load ptr, ptr %3, align 8
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %35)
%37 = load ptr, ptr %3, align 8
%38 = getelementptr inbounds [3 x i32], ptr %37, i64 1
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %38)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(ptr noundef, ...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpkwdc7iep.c'
source_filename = "/tmp/tmpkwdc7iep.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @libB_func() #0 {
%1 = call i32 (...) @libC_func()
ret void
}
declare i32 @libC_func(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkwdc7iep.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @libB_func() #0 {
%1 = call i32 (...) @libC_func()
ret void
}
declare i32 @libC_func(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3_qkcwt_.c'
source_filename = "/tmp/tmp3_qkcwt_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @check_translation_with_mode(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store i32 %4, ptr %10, align 4
%11 = load ptr, ptr %6, align 8
%12 = load ptr, ptr %7, align 8
%13 = load ptr, ptr %8, align 8
%14 = load ptr, ptr %9, align 8
%15 = load i32, ptr %10, align 4
%16 = call i32 @check_with_mode(ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14, i32 noundef %15, i32 noundef 0)
ret i32 %16
}
declare i32 @check_with_mode(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3_qkcwt_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @check_translation_with_mode(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
store i32 %4, ptr %10, align 4
%11 = load ptr, ptr %6, align 8
%12 = load ptr, ptr %7, align 8
%13 = load ptr, ptr %8, align 8
%14 = load ptr, ptr %9, align 8
%15 = load i32, ptr %10, align 4
%16 = call i32 @check_with_mode(ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14, i32 noundef %15, i32 noundef 0)
ret i32 %16
}
declare i32 @check_with_mode(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp4r7o7fof.c'
source_filename = "/tmp/tmp4r7o7fof.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @nand_reset() #0 {
%1 = call i32 (...) @select_ship()
%2 = call i32 (...) @clean_RnB()
%3 = call i32 @nand_cmd(i32 noundef 255)
%4 = call i32 (...) @wait_RnB()
%5 = call i32 (...) @delselect_ship()
ret void
}
declare i32 @select_ship(...) #1
declare i32 @clean_RnB(...) #1
declare i32 @nand_cmd(i32 noundef) #1
declare i32 @wait_RnB(...) #1
declare i32 @delselect_ship(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4r7o7fof.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @nand_reset() #0 {
%1 = call i32 (...) @select_ship()
%2 = call i32 (...) @clean_RnB()
%3 = call i32 @nand_cmd(i32 noundef 255)
%4 = call i32 (...) @wait_RnB()
%5 = call i32 (...) @delselect_ship()
ret void
}
declare i32 @select_ship(...) #1
declare i32 @clean_RnB(...) #1
declare i32 @nand_cmd(i32 noundef) #1
declare i32 @wait_RnB(...) #1
declare i32 @delselect_ship(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpk6v8it5z.c'
source_filename = "/tmp/tmpk6v8it5z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @is_move(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca [4 x i8], align 1
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i32 @strlen(ptr noundef %6)
%8 = icmp ne i32 %7, 4
br i1 %8, label %9, label %10
9: ; preds = %1
store i32 0, ptr %2, align 4
br label %70
10: ; preds = %1
store i32 0, ptr %5, align 4
br label %11
11: ; preds = %25, %10
%12 = load i32, ptr %5, align 4
%13 = icmp slt i32 %12, 4
br i1 %13, label %14, label %28
14: ; preds = %11
%15 = load ptr, ptr %3, align 8
%16 = load i32, ptr %5, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8, ptr %15, i64 %17
%19 = load i8, ptr %18, align 1
%20 = call i64 @tolower(i8 noundef signext %19)
%21 = trunc i64 %20 to i8
%22 = load i32, ptr %5, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [4 x i8], ptr %4, i64 0, i64 %23
store i8 %21, ptr %24, align 1
br label %25
25: ; preds = %14
%26 = load i32, ptr %5, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %5, align 4
br label %11, !llvm.loop !6
28: ; preds = %11
%29 = getelementptr inbounds [4 x i8], ptr %4, i64 0, i64 0
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
%32 = icmp sgt i32 97, %31
br i1 %32, label %68, label %33
33: ; preds = %28
%34 = getelementptr inbounds [4 x i8], ptr %4, i64 0, i64 0
%35 = load i8, ptr %34, align 1
%36 = sext i8 %35 to i32
%37 = icmp slt i32 104, %36
br i1 %37, label %68, label %38
38: ; preds = %33
%39 = getelementptr inbounds [4 x i8], ptr %4, i64 0, i64 2
%40 = load i8, ptr %39, align 1
%41 = sext i8 %40 to i32
%42 = icmp sgt i32 97, %41
br i1 %42, label %68, label %43
43: ; preds = %38
%44 = getelementptr inbounds [4 x i8], ptr %4, i64 0, i64 2
%45 = load i8, ptr %44, align 1
%46 = sext i8 %45 to i32
%47 = icmp slt i32 104, %46
br i1 %47, label %68, label %48
48: ; preds = %43
%49 = getelementptr inbounds [4 x i8], ptr %4, i64 0, i64 1
%50 = load i8, ptr %49, align 1
%51 = sext i8 %50 to i32
%52 = icmp sgt i32 49, %51
br i1 %52, label %68, label %53
53: ; preds = %48
%54 = getelementptr inbounds [4 x i8], ptr %4, i64 0, i64 1
%55 = load i8, ptr %54, align 1
%56 = sext i8 %55 to i32
%57 = icmp slt i32 56, %56
br i1 %57, label %68, label %58
58: ; preds = %53
%59 = getelementptr inbounds [4 x i8], ptr %4, i64 0, i64 3
%60 = load i8, ptr %59, align 1
%61 = sext i8 %60 to i32
%62 = icmp sgt i32 49, %61
br i1 %62, label %68, label %63
63: ; preds = %58
%64 = getelementptr inbounds [4 x i8], ptr %4, i64 0, i64 3
%65 = load i8, ptr %64, align 1
%66 = sext i8 %65 to i32
%67 = icmp slt i32 56, %66
br i1 %67, label %68, label %69
68: ; preds = %63, %58, %53, %48, %43, %38, %33, %28
store i32 0, ptr %2, align 4
br label %70
69: ; preds = %63
store i32 1, ptr %2, align 4
br label %70
70: ; preds = %69, %68, %9
%71 = load i32, ptr %2, align 4
ret i32 %71
}
declare i32 @strlen(ptr noundef) #1
declare i64 @tolower(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/tmpk6v8it5z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @is_move(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca [4 x i8], align 1
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i32 @strlen(ptr noundef %6)
%8 = icmp ne i32 %7, 4
br i1 %8, label %9, label %10
9: ; preds = %1
store i32 0, ptr %2, align 4
br label %71
10: ; preds = %1
store i32 0, ptr %5, align 4
%11 = load i32, ptr %5, align 4
%12 = icmp slt i32 %11, 4
br i1 %12, label %.lr.ph, label %29
.lr.ph: ; preds = %10
br label %13
13: ; preds = %.lr.ph, %24
%14 = load ptr, ptr %3, align 8
%15 = load i32, ptr %5, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i8, ptr %14, i64 %16
%18 = load i8, ptr %17, align 1
%19 = call i64 @tolower(i8 noundef signext %18)
%20 = trunc i64 %19 to i8
%21 = load i32, ptr %5, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [4 x i8], ptr %4, i64 0, i64 %22
store i8 %20, ptr %23, align 1
br label %24
24: ; preds = %13
%25 = load i32, ptr %5, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %5, align 4
%27 = load i32, ptr %5, align 4
%28 = icmp slt i32 %27, 4
br i1 %28, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %24
br label %29
29: ; preds = %._crit_edge, %10
%30 = getelementptr inbounds [4 x i8], ptr %4, i64 0, i64 0
%31 = load i8, ptr %30, align 1
%32 = sext i8 %31 to i32
%33 = icmp sgt i32 97, %32
br i1 %33, label %69, label %34
34: ; preds = %29
%35 = getelementptr inbounds [4 x i8], ptr %4, i64 0, i64 0
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = icmp slt i32 104, %37
br i1 %38, label %69, label %39
39: ; preds = %34
%40 = getelementptr inbounds [4 x i8], ptr %4, i64 0, i64 2
%41 = load i8, ptr %40, align 1
%42 = sext i8 %41 to i32
%43 = icmp sgt i32 97, %42
br i1 %43, label %69, label %44
44: ; preds = %39
%45 = getelementptr inbounds [4 x i8], ptr %4, i64 0, i64 2
%46 = load i8, ptr %45, align 1
%47 = sext i8 %46 to i32
%48 = icmp slt i32 104, %47
br i1 %48, label %69, label %49
49: ; preds = %44
%50 = getelementptr inbounds [4 x i8], ptr %4, i64 0, i64 1
%51 = load i8, ptr %50, align 1
%52 = sext i8 %51 to i32
%53 = icmp sgt i32 49, %52
br i1 %53, label %69, label %54
54: ; preds = %49
%55 = getelementptr inbounds [4 x i8], ptr %4, i64 0, i64 1
%56 = load i8, ptr %55, align 1
%57 = sext i8 %56 to i32
%58 = icmp slt i32 56, %57
br i1 %58, label %69, label %59
59: ; preds = %54
%60 = getelementptr inbounds [4 x i8], ptr %4, i64 0, i64 3
%61 = load i8, ptr %60, align 1
%62 = sext i8 %61 to i32
%63 = icmp sgt i32 49, %62
br i1 %63, label %69, label %64
64: ; preds = %59
%65 = getelementptr inbounds [4 x i8], ptr %4, i64 0, i64 3
%66 = load i8, ptr %65, align 1
%67 = sext i8 %66 to i32
%68 = icmp slt i32 56, %67
br i1 %68, label %69, label %70
69: ; preds = %64, %59, %54, %49, %44, %39, %34, %29
store i32 0, ptr %2, align 4
br label %71
70: ; preds = %64
store i32 1, ptr %2, align 4
br label %71
71: ; preds = %70, %69, %9
%72 = load i32, ptr %2, align 4
ret i32 %72
}
declare i32 @strlen(ptr noundef) #1
declare i64 @tolower(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/tmp9curfhnp.c'
source_filename = "/tmp/tmp9curfhnp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @asinf(float noundef %0) #0 {
%2 = alloca float, align 4
store float %0, ptr %2, align 4
%3 = call float (...) @__infer_nondet_float()
ret float %3
}
declare float @__infer_nondet_float(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9curfhnp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @asinf(float noundef %0) #0 {
%2 = alloca float, align 4
store float %0, ptr %2, align 4
%3 = call float (...) @__infer_nondet_float()
ret float %3
}
declare float @__infer_nondet_float(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpykn5jpnv.c'
source_filename = "/tmp/tmpykn5jpnv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [31 x i8] c"[-] Failed to load %s library\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @initLib(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%9 = load ptr, ptr %7, align 8
%10 = load ptr, ptr %9, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %32, label %12
12: ; preds = %4
%13 = load ptr, ptr %6, align 8
%14 = icmp eq ptr %13, null
br i1 %14, label %19, label %15
15: ; preds = %12
%16 = load ptr, ptr %6, align 8
%17 = call i32 @strlen(ptr noundef %16)
%18 = icmp slt i32 %17, 1
br i1 %18, label %19, label %21
19: ; preds = %15, %12
%20 = call ptr (...) @getMozLibPath()
store ptr %20, ptr %6, align 8
br label %21
21: ; preds = %19, %15
%22 = load ptr, ptr %6, align 8
%23 = load ptr, ptr %8, align 8
%24 = call ptr @loadLibrary(ptr noundef %22, ptr noundef %23)
%25 = load ptr, ptr %7, align 8
store ptr %24, ptr %25, align 8
%26 = icmp ne ptr %24, null
br i1 %26, label %31, label %27
27: ; preds = %21
%28 = load ptr, ptr %5, align 8
%29 = call i32 @printf(ptr noundef @.str, ptr noundef %28)
%30 = call i32 @exit(i32 noundef 1) #3
unreachable
31: ; preds = %21
br label %32
32: ; preds = %31, %4
ret void
}
declare i32 @strlen(ptr noundef) #1
declare ptr @getMozLibPath(...) #1
declare ptr @loadLibrary(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpykn5jpnv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [31 x i8] c"[-] Failed to load %s library\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @initLib(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%9 = load ptr, ptr %7, align 8
%10 = load ptr, ptr %9, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %32, label %12
12: ; preds = %4
%13 = load ptr, ptr %6, align 8
%14 = icmp eq ptr %13, null
br i1 %14, label %19, label %15
15: ; preds = %12
%16 = load ptr, ptr %6, align 8
%17 = call i32 @strlen(ptr noundef %16)
%18 = icmp slt i32 %17, 1
br i1 %18, label %19, label %21
19: ; preds = %15, %12
%20 = call ptr (...) @getMozLibPath()
store ptr %20, ptr %6, align 8
br label %21
21: ; preds = %19, %15
%22 = load ptr, ptr %6, align 8
%23 = load ptr, ptr %8, align 8
%24 = call ptr @loadLibrary(ptr noundef %22, ptr noundef %23)
%25 = load ptr, ptr %7, align 8
store ptr %24, ptr %25, align 8
%26 = icmp ne ptr %24, null
br i1 %26, label %31, label %27
27: ; preds = %21
%28 = load ptr, ptr %5, align 8
%29 = call i32 @printf(ptr noundef @.str, ptr noundef %28)
%30 = call i32 @exit(i32 noundef 1) #3
unreachable
31: ; preds = %21
br label %32
32: ; preds = %31, %4
ret void
}
declare i32 @strlen(ptr noundef) #1
declare ptr @getMozLibPath(...) #1
declare ptr @loadLibrary(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8d0ffv1o.c'
source_filename = "/tmp/tmp8d0ffv1o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 i32] [i32 65, i32 77, i32 0], align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @_WLocale_am_str(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
ret ptr @.str
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8d0ffv1o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 i32] [i32 65, i32 77, i32 0], align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @_WLocale_am_str(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
ret ptr @.str
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjwy5q1cr.c'
source_filename = "/tmp/tmpjwy5q1cr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [44 x i8] c"\0AI'm the parent and I'll wait for my child.\00", align 1
@.str.1 = private unnamed_addr constant [42 x i8] c"\0AI'm the parent and I'm finished waiting.\00", align 1
@.str.2 = private unnamed_addr constant [43 x i8] c"\0AI'm the child and I'll derp for my herp.\00", align 1
@.str.3 = private unnamed_addr constant [42 x i8] c"\0AI'm the child and I'm finished derping.\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 (...) @fork()
store i32 %3, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = icmp ne i32 %4, 0
br i1 %5, label %6, label %10
6: ; preds = %0
%7 = call i32 @puts(ptr noundef @.str)
%8 = call i32 @wait(i32 noundef 0)
%9 = call i32 @puts(ptr noundef @.str.1)
br label %15
10: ; preds = %0
%11 = call i32 @sleep(i32 noundef 1)
%12 = call i32 @puts(ptr noundef @.str.2)
%13 = call i32 @sleep(i32 noundef 1)
%14 = call i32 @puts(ptr noundef @.str.3)
br label %15
15: ; preds = %10, %6
ret i32 0
}
declare i32 @fork(...) #1
declare i32 @puts(ptr noundef) #1
declare i32 @wait(i32 noundef) #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/tmpjwy5q1cr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [44 x i8] c"\0AI'm the parent and I'll wait for my child.\00", align 1
@.str.1 = private unnamed_addr constant [42 x i8] c"\0AI'm the parent and I'm finished waiting.\00", align 1
@.str.2 = private unnamed_addr constant [43 x i8] c"\0AI'm the child and I'll derp for my herp.\00", align 1
@.str.3 = private unnamed_addr constant [42 x i8] c"\0AI'm the child and I'm finished derping.\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 (...) @fork()
store i32 %3, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = icmp ne i32 %4, 0
br i1 %5, label %6, label %10
6: ; preds = %0
%7 = call i32 @puts(ptr noundef @.str)
%8 = call i32 @wait(i32 noundef 0)
%9 = call i32 @puts(ptr noundef @.str.1)
br label %15
10: ; preds = %0
%11 = call i32 @sleep(i32 noundef 1)
%12 = call i32 @puts(ptr noundef @.str.2)
%13 = call i32 @sleep(i32 noundef 1)
%14 = call i32 @puts(ptr noundef @.str.3)
br label %15
15: ; preds = %10, %6
ret i32 0
}
declare i32 @fork(...) #1
declare i32 @puts(ptr noundef) #1
declare i32 @wait(i32 noundef) #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/tmpeth8yvts.c'
source_filename = "/tmp/tmpeth8yvts.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sgi_image_decode(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpeth8yvts.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sgi_image_decode(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_vuozh5k.c'
source_filename = "/tmp/tmp_vuozh5k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Please enter a command (i, p, m, d, f, q): \00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c" %c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @Get_command() #0 {
%1 = alloca i8, align 1
%2 = call i32 @printf(ptr noundef @.str)
%3 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %1)
%4 = load i8, ptr %1, align 1
ret i8 %4
}
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/tmp_vuozh5k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Please enter a command (i, p, m, d, f, q): \00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c" %c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @Get_command() #0 {
%1 = alloca i8, align 1
%2 = call i32 @printf(ptr noundef @.str)
%3 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %1)
%4 = load i8, ptr %1, align 1
ret i8 %4
}
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/tmp0_7ltk7r.c'
source_filename = "/tmp/tmp0_7ltk7r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0D\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @putchar(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp eq i32 %3, 10
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = call i32 @serial_puts(ptr noundef @.str)
br label %10
7: ; preds = %1
%8 = load i32, ptr %2, align 4
%9 = call i32 @serial_write(i32 noundef %8)
br label %10
10: ; preds = %7, %5
%11 = load i32, ptr %2, align 4
ret i32 %11
}
declare i32 @serial_puts(ptr noundef) #1
declare i32 @serial_write(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/tmp0_7ltk7r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0D\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @putchar(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp eq i32 %3, 10
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = call i32 @serial_puts(ptr noundef @.str)
br label %10
7: ; preds = %1
%8 = load i32, ptr %2, align 4
%9 = call i32 @serial_write(i32 noundef %8)
br label %10
10: ; preds = %7, %5
%11 = load i32, ptr %2, align 4
ret i32 %11
}
declare i32 @serial_puts(ptr noundef) #1
declare i32 @serial_write(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/tmp1thaclv6.c'
source_filename = "/tmp/tmp1thaclv6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [28 x i8] c"Routine %s called in %s, %d\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"gmx_rx\00", align 1
@.str.2 = private unnamed_addr constant [148 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Chadi-akel/cere/refs/heads/master/tests/test_07/network.c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @gmx_rx(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = call i32 @fatal_error(i32 noundef 0, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 118)
ret void
}
declare i32 @fatal_error(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/tmp1thaclv6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [28 x i8] c"Routine %s called in %s, %d\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"gmx_rx\00", align 1
@.str.2 = private unnamed_addr constant [148 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Chadi-akel/cere/refs/heads/master/tests/test_07/network.c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @gmx_rx(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = call i32 @fatal_error(i32 noundef 0, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 118)
ret void
}
declare i32 @fatal_error(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/tmpft7mx64t.c'
source_filename = "/tmp/tmpft7mx64t.c"
target datalayout = "e-m:e-p270: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/tmpft7mx64t.c"
target datalayout = "e-m:e-p270: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/tmpvwada7pf.c'
source_filename = "/tmp/tmpvwada7pf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sen_put_len(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%11 = load ptr, ptr %5, align 8
%12 = call i32 @strlen(ptr noundef %11)
store i32 %12, ptr %9, align 4
%13 = load ptr, ptr %6, align 8
%14 = call i32 @strlen(ptr noundef %13)
store i32 %14, ptr %10, align 4
%15 = load i32, ptr %9, align 4
%16 = load i32, ptr %10, align 4
%17 = icmp sgt i32 %15, %16
br i1 %17, label %18, label %23
18: ; preds = %4
%19 = load ptr, ptr %6, align 8
%20 = load ptr, ptr %7, align 8
store ptr %19, ptr %20, align 8
%21 = load ptr, ptr %5, align 8
%22 = load ptr, ptr %8, align 8
store ptr %21, ptr %22, align 8
br label %28
23: ; preds = %4
%24 = load ptr, ptr %5, align 8
%25 = load ptr, ptr %7, align 8
store ptr %24, ptr %25, align 8
%26 = load ptr, ptr %6, align 8
%27 = load ptr, ptr %8, align 8
store ptr %26, ptr %27, align 8
br label %28
28: ; preds = %23, %18
ret void
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvwada7pf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sen_put_len(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%11 = load ptr, ptr %5, align 8
%12 = call i32 @strlen(ptr noundef %11)
store i32 %12, ptr %9, align 4
%13 = load ptr, ptr %6, align 8
%14 = call i32 @strlen(ptr noundef %13)
store i32 %14, ptr %10, align 4
%15 = load i32, ptr %9, align 4
%16 = load i32, ptr %10, align 4
%17 = icmp sgt i32 %15, %16
br i1 %17, label %18, label %23
18: ; preds = %4
%19 = load ptr, ptr %6, align 8
%20 = load ptr, ptr %7, align 8
store ptr %19, ptr %20, align 8
%21 = load ptr, ptr %5, align 8
%22 = load ptr, ptr %8, align 8
store ptr %21, ptr %22, align 8
br label %28
23: ; preds = %4
%24 = load ptr, ptr %5, align 8
%25 = load ptr, ptr %7, align 8
store ptr %24, ptr %25, align 8
%26 = load ptr, ptr %6, align 8
%27 = load ptr, ptr %8, align 8
store ptr %26, ptr %27, align 8
br label %28
28: ; preds = %23, %18
ret void
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_hufp6e2.c'
source_filename = "/tmp/tmp_hufp6e2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"???\00", align 1
@.str.1 = private unnamed_addr constant [37 x i8] c"bad argument #%d to function `%.50s'\00", align 1
@.str.2 = private unnamed_addr constant [46 x i8] c"bad argument #%d to function `%.50s' (%.100s)\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @luaL_argerror(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%6 = call i32 @lua_stackedfunction(i32 noundef 0)
%7 = call i32 @lua_getobjname(i32 noundef %6, ptr noundef %5)
%8 = load ptr, ptr %5, align 8
%9 = icmp eq ptr %8, null
br i1 %9, label %10, label %11
10: ; preds = %2
store ptr @.str, ptr %5, align 8
br label %11
11: ; preds = %10, %2
%12 = load ptr, ptr %4, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %18
14: ; preds = %11
%15 = load i32, ptr %3, align 4
%16 = load ptr, ptr %5, align 8
%17 = call i32 (ptr, i32, ptr, ...) @luaL_verror(ptr noundef @.str.1, i32 noundef %15, ptr noundef %16)
br label %23
18: ; preds = %11
%19 = load i32, ptr %3, align 4
%20 = load ptr, ptr %5, align 8
%21 = load ptr, ptr %4, align 8
%22 = call i32 (ptr, i32, ptr, ...) @luaL_verror(ptr noundef @.str.2, i32 noundef %19, ptr noundef %20, ptr noundef %21)
br label %23
23: ; preds = %18, %14
ret void
}
declare i32 @lua_getobjname(i32 noundef, ptr noundef) #1
declare i32 @lua_stackedfunction(i32 noundef) #1
declare i32 @luaL_verror(ptr noundef, i32 noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_hufp6e2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"???\00", align 1
@.str.1 = private unnamed_addr constant [37 x i8] c"bad argument #%d to function `%.50s'\00", align 1
@.str.2 = private unnamed_addr constant [46 x i8] c"bad argument #%d to function `%.50s' (%.100s)\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @luaL_argerror(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%6 = call i32 @lua_stackedfunction(i32 noundef 0)
%7 = call i32 @lua_getobjname(i32 noundef %6, ptr noundef %5)
%8 = load ptr, ptr %5, align 8
%9 = icmp eq ptr %8, null
br i1 %9, label %10, label %11
10: ; preds = %2
store ptr @.str, ptr %5, align 8
br label %11
11: ; preds = %10, %2
%12 = load ptr, ptr %4, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %18
14: ; preds = %11
%15 = load i32, ptr %3, align 4
%16 = load ptr, ptr %5, align 8
%17 = call i32 (ptr, i32, ptr, ...) @luaL_verror(ptr noundef @.str.1, i32 noundef %15, ptr noundef %16)
br label %23
18: ; preds = %11
%19 = load i32, ptr %3, align 4
%20 = load ptr, ptr %5, align 8
%21 = load ptr, ptr %4, align 8
%22 = call i32 (ptr, i32, ptr, ...) @luaL_verror(ptr noundef @.str.2, i32 noundef %19, ptr noundef %20, ptr noundef %21)
br label %23
23: ; preds = %18, %14
ret void
}
declare i32 @lua_getobjname(i32 noundef, ptr noundef) #1
declare i32 @lua_stackedfunction(i32 noundef) #1
declare i32 @luaL_verror(ptr noundef, i32 noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmprwo2_8h7.c'
source_filename = "/tmp/tmprwo2_8h7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.addrinfo = type { i32, i32, i32, i32, i32, ptr }
@AF_UNSPEC = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [17 x i8] c"getaddrinfo: %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"client: socket\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"client: connect\00", align 1
@.str.3 = private unnamed_addr constant [27 x i8] c"client: failed to connect\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @openSocketConnection(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 %struct.addrinfo, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%11 = call i32 @memset(ptr noundef %7, i32 noundef 0, i32 noundef 32)
%12 = load i32, ptr @AF_UNSPEC, align 4
%13 = getelementptr inbounds %struct.addrinfo, ptr %7, i32 0, i32 0
store i32 %12, ptr %13, align 8
%14 = load i32, ptr @SOCK_STREAM, align 4
%15 = getelementptr inbounds %struct.addrinfo, ptr %7, i32 0, i32 1
store i32 %14, ptr %15, align 4
%16 = load ptr, ptr %4, align 8
%17 = load ptr, ptr %5, align 8
%18 = call i32 @getaddrinfo(ptr noundef %16, ptr noundef %17, ptr noundef %7, ptr noundef %8)
store i32 %18, ptr %10, align 4
%19 = icmp ne i32 %18, 0
br i1 %19, label %20, label %25
20: ; preds = %2
%21 = load i32, ptr @stderr, align 4
%22 = load i32, ptr %10, align 4
%23 = call ptr @gai_strerror(i32 noundef %22)
%24 = call i64 (i32, ptr, ...) @fprintf(i32 noundef %21, ptr noundef @.str, ptr noundef %23)
store i32 -1, ptr %3, align 4
br label %71
25: ; preds = %2
%26 = load ptr, ptr %8, align 8
store ptr %26, ptr %9, align 8
br label %27
27: ; preds = %59, %25
%28 = load ptr, ptr %9, align 8
%29 = icmp ne ptr %28, null
br i1 %29, label %30, label %63
30: ; preds = %27
%31 = load ptr, ptr %9, align 8
%32 = getelementptr inbounds %struct.addrinfo, ptr %31, i32 0, i32 0
%33 = load i32, ptr %32, align 8
%34 = load ptr, ptr %9, align 8
%35 = getelementptr inbounds %struct.addrinfo, ptr %34, i32 0, i32 1
%36 = load i32, ptr %35, align 4
%37 = load ptr, ptr %9, align 8
%38 = getelementptr inbounds %struct.addrinfo, ptr %37, i32 0, i32 2
%39 = load i32, ptr %38, align 8
%40 = call i32 @socket(i32 noundef %33, i32 noundef %36, i32 noundef %39)
store i32 %40, ptr %6, align 4
%41 = icmp eq i32 %40, -1
br i1 %41, label %42, label %44
42: ; preds = %30
%43 = call i32 @perror(ptr noundef @.str.1)
br label %59
44: ; preds = %30
%45 = load i32, ptr %6, align 4
%46 = load ptr, ptr %9, align 8
%47 = getelementptr inbounds %struct.addrinfo, ptr %46, i32 0, i32 4
%48 = load i32, ptr %47, align 8
%49 = load ptr, ptr %9, align 8
%50 = getelementptr inbounds %struct.addrinfo, ptr %49, i32 0, i32 3
%51 = load i32, ptr %50, align 4
%52 = call i32 @connect(i32 noundef %45, i32 noundef %48, i32 noundef %51)
%53 = icmp eq i32 %52, -1
br i1 %53, label %54, label %58
54: ; preds = %44
%55 = call i32 @perror(ptr noundef @.str.2)
%56 = load i32, ptr %6, align 4
%57 = call i32 @close(i32 noundef %56)
br label %59
58: ; preds = %44
br label %63
59: ; preds = %54, %42
%60 = load ptr, ptr %9, align 8
%61 = getelementptr inbounds %struct.addrinfo, ptr %60, i32 0, i32 5
%62 = load ptr, ptr %61, align 8
store ptr %62, ptr %9, align 8
br label %27, !llvm.loop !6
63: ; preds = %58, %27
%64 = load ptr, ptr %9, align 8
%65 = icmp eq ptr %64, null
br i1 %65, label %66, label %69
66: ; preds = %63
%67 = load i32, ptr @stderr, align 4
%68 = call i64 (i32, ptr, ...) @fprintf(i32 noundef %67, ptr noundef @.str.3)
store i32 -1, ptr %3, align 4
br label %71
69: ; preds = %63
%70 = load i32, ptr %6, align 4
store i32 %70, ptr %3, align 4
br label %71
71: ; preds = %69, %66, %20
%72 = load i32, ptr %3, align 4
ret i32 %72
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @getaddrinfo(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @fprintf(i32 noundef, ptr noundef, ...) #1
declare ptr @gai_strerror(i32 noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @connect(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmprwo2_8h7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.addrinfo = type { i32, i32, i32, i32, i32, ptr }
@AF_UNSPEC = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [17 x i8] c"getaddrinfo: %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"client: socket\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"client: connect\00", align 1
@.str.3 = private unnamed_addr constant [27 x i8] c"client: failed to connect\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @openSocketConnection(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 %struct.addrinfo, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%11 = call i32 @memset(ptr noundef %7, i32 noundef 0, i32 noundef 32)
%12 = load i32, ptr @AF_UNSPEC, align 4
%13 = getelementptr inbounds %struct.addrinfo, ptr %7, i32 0, i32 0
store i32 %12, ptr %13, align 8
%14 = load i32, ptr @SOCK_STREAM, align 4
%15 = getelementptr inbounds %struct.addrinfo, ptr %7, i32 0, i32 1
store i32 %14, ptr %15, align 4
%16 = load ptr, ptr %4, align 8
%17 = load ptr, ptr %5, align 8
%18 = call i32 @getaddrinfo(ptr noundef %16, ptr noundef %17, ptr noundef %7, ptr noundef %8)
store i32 %18, ptr %10, align 4
%19 = icmp ne i32 %18, 0
br i1 %19, label %20, label %25
20: ; preds = %2
%21 = load i32, ptr @stderr, align 4
%22 = load i32, ptr %10, align 4
%23 = call ptr @gai_strerror(i32 noundef %22)
%24 = call i64 (i32, ptr, ...) @fprintf(i32 noundef %21, ptr noundef @.str, ptr noundef %23)
store i32 -1, ptr %3, align 4
br label %72
25: ; preds = %2
%26 = load ptr, ptr %8, align 8
store ptr %26, ptr %9, align 8
%27 = load ptr, ptr %9, align 8
%28 = icmp ne ptr %27, null
br i1 %28, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %25
br label %29
29: ; preds = %.lr.ph, %58
%30 = load ptr, ptr %9, align 8
%31 = getelementptr inbounds %struct.addrinfo, ptr %30, i32 0, i32 0
%32 = load i32, ptr %31, align 8
%33 = load ptr, ptr %9, align 8
%34 = getelementptr inbounds %struct.addrinfo, ptr %33, i32 0, i32 1
%35 = load i32, ptr %34, align 4
%36 = load ptr, ptr %9, align 8
%37 = getelementptr inbounds %struct.addrinfo, ptr %36, i32 0, i32 2
%38 = load i32, ptr %37, align 8
%39 = call i32 @socket(i32 noundef %32, i32 noundef %35, i32 noundef %38)
store i32 %39, ptr %6, align 4
%40 = icmp eq i32 %39, -1
br i1 %40, label %41, label %43
41: ; preds = %29
%42 = call i32 @perror(ptr noundef @.str.1)
br label %58
43: ; preds = %29
%44 = load i32, ptr %6, align 4
%45 = load ptr, ptr %9, align 8
%46 = getelementptr inbounds %struct.addrinfo, ptr %45, i32 0, i32 4
%47 = load i32, ptr %46, align 8
%48 = load ptr, ptr %9, align 8
%49 = getelementptr inbounds %struct.addrinfo, ptr %48, i32 0, i32 3
%50 = load i32, ptr %49, align 4
%51 = call i32 @connect(i32 noundef %44, i32 noundef %47, i32 noundef %50)
%52 = icmp eq i32 %51, -1
br i1 %52, label %53, label %57
53: ; preds = %43
%54 = call i32 @perror(ptr noundef @.str.2)
%55 = load i32, ptr %6, align 4
%56 = call i32 @close(i32 noundef %55)
br label %58
57: ; preds = %43
br label %64
58: ; preds = %53, %41
%59 = load ptr, ptr %9, align 8
%60 = getelementptr inbounds %struct.addrinfo, ptr %59, i32 0, i32 5
%61 = load ptr, ptr %60, align 8
store ptr %61, ptr %9, align 8
%62 = load ptr, ptr %9, align 8
%63 = icmp ne ptr %62, null
br i1 %63, label %29, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %58
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %25
br label %64
64: ; preds = %.loopexit, %57
%65 = load ptr, ptr %9, align 8
%66 = icmp eq ptr %65, null
br i1 %66, label %67, label %70
67: ; preds = %64
%68 = load i32, ptr @stderr, align 4
%69 = call i64 (i32, ptr, ...) @fprintf(i32 noundef %68, ptr noundef @.str.3)
store i32 -1, ptr %3, align 4
br label %72
70: ; preds = %64
%71 = load i32, ptr %6, align 4
store i32 %71, ptr %3, align 4
br label %72
72: ; preds = %70, %67, %20
%73 = load i32, ptr %3, align 4
ret i32 %73
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @getaddrinfo(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @fprintf(i32 noundef, ptr noundef, ...) #1
declare ptr @gai_strerror(i32 noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @connect(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp0fbmkula.c'
source_filename = "/tmp/tmp0fbmkula.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @Slater_4S_1S(double noundef %0, double noundef %1, double noundef %2) #0 {
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
store double %0, ptr %4, align 8
store double %1, ptr %5, align 8
store double %2, ptr %6, align 8
%7 = load double, ptr %4, align 8
%8 = load double, ptr %6, align 8
%9 = load double, ptr %5, align 8
%10 = call double @Slater_1S_4S(double noundef %7, double noundef %8, double noundef %9)
ret double %10
}
declare double @Slater_1S_4S(double noundef, double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0fbmkula.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @Slater_4S_1S(double noundef %0, double noundef %1, double noundef %2) #0 {
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
store double %0, ptr %4, align 8
store double %1, ptr %5, align 8
store double %2, ptr %6, align 8
%7 = load double, ptr %4, align 8
%8 = load double, ptr %6, align 8
%9 = load double, ptr %5, align 8
%10 = call double @Slater_1S_4S(double noundef %7, double noundef %8, double noundef %9)
ret double %10
}
declare double @Slater_1S_4S(double noundef, double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1e69p86z.c'
source_filename = "/tmp/tmp1e69p86z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@TRUE = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1e69p86z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@TRUE = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpvgxdvaly.c'
source_filename = "/tmp/tmpvgxdvaly.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c".\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"/\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @path_get_dirname(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i32 @find_last_path_separator(ptr noundef %6)
store i32 %7, ptr %5, align 4
%8 = load i32, ptr %5, align 4
%9 = icmp eq i32 %8, -1
br i1 %9, label %10, label %12
10: ; preds = %1
%11 = call ptr @strdup(ptr noundef @.str)
store ptr %11, ptr %2, align 8
br label %31
12: ; preds = %1
%13 = load i32, ptr %5, align 4
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %12
%16 = call ptr @strdup(ptr noundef @.str.1)
store ptr %16, ptr %2, align 8
br label %31
17: ; preds = %12
%18 = load i32, ptr %5, align 4
%19 = add nsw i32 %18, 1
%20 = call i64 @safe_malloc(i32 noundef %19)
%21 = inttoptr i64 %20 to ptr
store ptr %21, ptr %4, align 8
%22 = load ptr, ptr %4, align 8
%23 = load ptr, ptr %3, align 8
%24 = load i32, ptr %5, align 4
%25 = call i32 @strncpy(ptr noundef %22, ptr noundef %23, i32 noundef %24)
%26 = load ptr, ptr %4, align 8
%27 = load i32, ptr %5, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, ptr %26, i64 %28
store i8 0, ptr %29, align 1
%30 = load ptr, ptr %4, align 8
store ptr %30, ptr %2, align 8
br label %31
31: ; preds = %17, %15, %10
%32 = load ptr, ptr %2, align 8
ret ptr %32
}
declare i32 @find_last_path_separator(ptr noundef) #1
declare ptr @strdup(ptr noundef) #1
declare i64 @safe_malloc(i32 noundef) #1
declare i32 @strncpy(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/tmpvgxdvaly.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c".\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"/\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @path_get_dirname(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i32 @find_last_path_separator(ptr noundef %6)
store i32 %7, ptr %5, align 4
%8 = load i32, ptr %5, align 4
%9 = icmp eq i32 %8, -1
br i1 %9, label %10, label %12
10: ; preds = %1
%11 = call ptr @strdup(ptr noundef @.str)
store ptr %11, ptr %2, align 8
br label %31
12: ; preds = %1
%13 = load i32, ptr %5, align 4
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %12
%16 = call ptr @strdup(ptr noundef @.str.1)
store ptr %16, ptr %2, align 8
br label %31
17: ; preds = %12
%18 = load i32, ptr %5, align 4
%19 = add nsw i32 %18, 1
%20 = call i64 @safe_malloc(i32 noundef %19)
%21 = inttoptr i64 %20 to ptr
store ptr %21, ptr %4, align 8
%22 = load ptr, ptr %4, align 8
%23 = load ptr, ptr %3, align 8
%24 = load i32, ptr %5, align 4
%25 = call i32 @strncpy(ptr noundef %22, ptr noundef %23, i32 noundef %24)
%26 = load ptr, ptr %4, align 8
%27 = load i32, ptr %5, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, ptr %26, i64 %28
store i8 0, ptr %29, align 1
%30 = load ptr, ptr %4, align 8
store ptr %30, ptr %2, align 8
br label %31
31: ; preds = %17, %15, %10
%32 = load ptr, ptr %2, align 8
ret ptr %32
}
declare i32 @find_last_path_separator(ptr noundef) #1
declare ptr @strdup(ptr noundef) #1
declare i64 @safe_malloc(i32 noundef) #1
declare i32 @strncpy(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/tmp8_tnt_sj.c'
source_filename = "/tmp/tmp8_tnt_sj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dump_ln(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = icmp slt i32 %5, 1
br i1 %6, label %7, label %8
7: ; preds = %2
store i32 1, ptr %4, align 4
br label %8
8: ; preds = %7, %2
%9 = load i32, ptr %4, align 4
%10 = icmp sgt i32 %9, 1024
br i1 %10, label %11, label %12
11: ; preds = %8
store i32 1024, ptr %4, align 4
br label %12
12: ; preds = %11, %8
%13 = load ptr, ptr %3, align 8
%14 = load i32, ptr %4, align 4
%15 = add nsw i32 %14, 3
%16 = sdiv i32 %15, 4
%17 = call i32 @dump_l(ptr noundef %13, i32 noundef %16)
ret void
}
declare i32 @dump_l(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/tmp8_tnt_sj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dump_ln(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = icmp slt i32 %5, 1
br i1 %6, label %7, label %8
7: ; preds = %2
store i32 1, ptr %4, align 4
br label %8
8: ; preds = %7, %2
%9 = load i32, ptr %4, align 4
%10 = icmp sgt i32 %9, 1024
br i1 %10, label %11, label %12
11: ; preds = %8
store i32 1024, ptr %4, align 4
br label %12
12: ; preds = %11, %8
%13 = load ptr, ptr %3, align 8
%14 = load i32, ptr %4, align 4
%15 = add nsw i32 %14, 3
%16 = sdiv i32 %15, 4
%17 = call i32 @dump_l(ptr noundef %13, i32 noundef %16)
ret void
}
declare i32 @dump_l(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/tmpxx5chvwk.c'
source_filename = "/tmp/tmpxx5chvwk.c"
target datalayout = "e-m:e-p270: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/tmpxx5chvwk.c"
target datalayout = "e-m:e-p270: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/tmpfrqepo0g.c'
source_filename = "/tmp/tmpfrqepo0g.c"
target datalayout = "e-m:e-p270: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/tmpfrqepo0g.c"
target datalayout = "e-m:e-p270: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/tmpbuvhyv_b.c'
source_filename = "/tmp/tmpbuvhyv_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 ptr @add_arr_free(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = load ptr, ptr %4, align 8
%8 = call ptr @add_arr(ptr noundef %6, ptr noundef %7)
store ptr %8, ptr %5, align 8
%9 = load ptr, ptr %3, align 8
%10 = call i32 @free_strings(ptr noundef %9)
%11 = load ptr, ptr %4, align 8
%12 = call i32 @free_strings(ptr noundef %11)
%13 = load ptr, ptr %5, align 8
ret ptr %13
}
declare ptr @add_arr(ptr noundef, ptr noundef) #1
declare i32 @free_strings(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbuvhyv_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 ptr @add_arr_free(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = load ptr, ptr %4, align 8
%8 = call ptr @add_arr(ptr noundef %6, ptr noundef %7)
store ptr %8, ptr %5, align 8
%9 = load ptr, ptr %3, align 8
%10 = call i32 @free_strings(ptr noundef %9)
%11 = load ptr, ptr %4, align 8
%12 = call i32 @free_strings(ptr noundef %11)
%13 = load ptr, ptr %5, align 8
ret ptr %13
}
declare ptr @add_arr(ptr noundef, ptr noundef) #1
declare i32 @free_strings(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpml60byu0.c'
source_filename = "/tmp/tmpml60byu0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"SELECT * FROM users WHERE username=\22\00", align 1
@.str.1 = private unnamed_addr constant [17 x i8] c"\22 and password=\22\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"\22;\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @compose_validate_user(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = call ptr @malloc(i32 noundef 200)
store ptr %6, ptr %5, align 8
%7 = load ptr, ptr %5, align 8
%8 = call i32 @strcpy(ptr noundef %7, ptr noundef @.str)
%9 = load ptr, ptr %5, align 8
%10 = load ptr, ptr %3, align 8
%11 = call i32 @strcat(ptr noundef %9, ptr noundef %10)
%12 = load ptr, ptr %5, align 8
%13 = call i32 @strcat(ptr noundef %12, ptr noundef @.str.1)
%14 = load ptr, ptr %5, align 8
%15 = load ptr, ptr %4, align 8
%16 = call i32 @strcat(ptr noundef %14, ptr noundef %15)
%17 = load ptr, ptr %5, align 8
%18 = call i32 @strcat(ptr noundef %17, ptr noundef @.str.2)
%19 = load ptr, ptr %5, align 8
ret ptr %19
}
declare ptr @malloc(i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(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/tmpml60byu0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"SELECT * FROM users WHERE username=\22\00", align 1
@.str.1 = private unnamed_addr constant [17 x i8] c"\22 and password=\22\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"\22;\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @compose_validate_user(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = call ptr @malloc(i32 noundef 200)
store ptr %6, ptr %5, align 8
%7 = load ptr, ptr %5, align 8
%8 = call i32 @strcpy(ptr noundef %7, ptr noundef @.str)
%9 = load ptr, ptr %5, align 8
%10 = load ptr, ptr %3, align 8
%11 = call i32 @strcat(ptr noundef %9, ptr noundef %10)
%12 = load ptr, ptr %5, align 8
%13 = call i32 @strcat(ptr noundef %12, ptr noundef @.str.1)
%14 = load ptr, ptr %5, align 8
%15 = load ptr, ptr %4, align 8
%16 = call i32 @strcat(ptr noundef %14, ptr noundef %15)
%17 = load ptr, ptr %5, align 8
%18 = call i32 @strcat(ptr noundef %17, ptr noundef @.str.2)
%19 = load ptr, ptr %5, align 8
ret ptr %19
}
declare ptr @malloc(i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(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/tmpo4m3gnk_.c'
source_filename = "/tmp/tmpo4m3gnk_.c"
target datalayout = "e-m:e-p270: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/tmpo4m3gnk_.c"
target datalayout = "e-m:e-p270: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/tmpwi3shs5c.c'
source_filename = "/tmp/tmpwi3shs5c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @EMACWoLEnter(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp eq i32 %3, 1074708480
%5 = zext i1 %4 to i32
%6 = call i32 @ASSERT(i32 noundef %5)
br label %7
7: ; preds = %14, %1
%8 = load i32, ptr %2, align 4
%9 = add nsw i32 %8, 3092
%10 = sext i32 %9 to i64
%11 = inttoptr i64 %10 to ptr
%12 = load volatile i32, ptr %11, align 4
%13 = icmp eq i32 %12, 1
br i1 %13, label %14, label %15
14: ; preds = %7
br label %7, !llvm.loop !6
15: ; preds = %7
%16 = load i32, ptr %2, align 4
%17 = add nsw i32 %16, 0
%18 = sext i32 %17 to i64
%19 = inttoptr i64 %18 to ptr
%20 = load volatile i32, ptr %19, align 4
%21 = and i32 %20, -9
store volatile i32 %21, ptr %19, align 4
%22 = load i32, ptr %2, align 4
%23 = add nsw i32 %22, 3096
%24 = sext i32 %23 to i64
%25 = inttoptr i64 %24 to ptr
%26 = load volatile i32, ptr %25, align 4
%27 = and i32 %26, -8193
store volatile i32 %27, ptr %25, align 4
br label %28
28: ; preds = %36, %15
%29 = load i32, ptr %2, align 4
%30 = add nsw i32 %29, 36
%31 = sext i32 %30 to i64
%32 = inttoptr i64 %31 to ptr
%33 = load volatile i32, ptr %32, align 4
%34 = and i32 %33, 768
%35 = icmp eq i32 %34, 0
br i1 %35, label %36, label %37
36: ; preds = %28
br label %28, !llvm.loop !8
37: ; preds = %28
%38 = load i32, ptr %2, align 4
%39 = add nsw i32 %38, 3096
%40 = sext i32 %39 to i64
%41 = inttoptr i64 %40 to ptr
%42 = load volatile i32, ptr %41, align 4
%43 = and i32 %42, -3
store volatile i32 %43, ptr %41, align 4
ret void
}
declare i32 @ASSERT(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwi3shs5c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @EMACWoLEnter(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp eq i32 %3, 1074708480
%5 = zext i1 %4 to i32
%6 = call i32 @ASSERT(i32 noundef %5)
br label %7
7: ; preds = %7, %1
%8 = load i32, ptr %2, align 4
%9 = add nsw i32 %8, 3092
%10 = sext i32 %9 to i64
%11 = inttoptr i64 %10 to ptr
%12 = load volatile i32, ptr %11, align 4
%13 = icmp eq i32 %12, 1
br i1 %13, label %7, label %14, !llvm.loop !6
14: ; preds = %7
%15 = load i32, ptr %2, align 4
%16 = add nsw i32 %15, 0
%17 = sext i32 %16 to i64
%18 = inttoptr i64 %17 to ptr
%19 = load volatile i32, ptr %18, align 4
%20 = and i32 %19, -9
store volatile i32 %20, ptr %18, align 4
%21 = load i32, ptr %2, align 4
%22 = add nsw i32 %21, 3096
%23 = sext i32 %22 to i64
%24 = inttoptr i64 %23 to ptr
%25 = load volatile i32, ptr %24, align 4
%26 = and i32 %25, -8193
store volatile i32 %26, ptr %24, align 4
br label %27
27: ; preds = %27, %14
%28 = load i32, ptr %2, align 4
%29 = add nsw i32 %28, 36
%30 = sext i32 %29 to i64
%31 = inttoptr i64 %30 to ptr
%32 = load volatile i32, ptr %31, align 4
%33 = and i32 %32, 768
%34 = icmp eq i32 %33, 0
br i1 %34, label %27, label %35, !llvm.loop !8
35: ; preds = %27
%36 = load i32, ptr %2, align 4
%37 = add nsw i32 %36, 3096
%38 = sext i32 %37 to i64
%39 = inttoptr i64 %38 to ptr
%40 = load volatile i32, ptr %39, align 4
%41 = and i32 %40, -3
store volatile i32 %41, ptr %39, align 4
ret void
}
declare i32 @ASSERT(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmprrf56_fd.c'
source_filename = "/tmp/tmprrf56_fd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@F_GETFL = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [19 x i8] c"fcntl(F_GETFL): %s\00", align 1
@errno = dso_local global i32 0, align 4
@F_SETFL = dso_local global i32 0, align 4
@O_NONBLOCK = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [30 x i8] c"fcntl(F_SETFL,O_NONBLOCK): %s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @set_nonblock(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr @F_GETFL, align 4
%9 = call i32 (i32, i32, ...) @fcntl(i32 noundef %7, i32 noundef %8)
store i32 %9, ptr %6, align 4
%10 = icmp eq i32 %9, -1
br i1 %10, label %11, label %16
11: ; preds = %2
%12 = load ptr, ptr %4, align 8
%13 = load i32, ptr @errno, align 4
%14 = call i32 @strerror(i32 noundef %13)
%15 = call i32 @socket_error(ptr noundef %12, ptr noundef @.str, i32 noundef %14)
store i32 -1, ptr %3, align 4
br label %30
16: ; preds = %2
%17 = load i32, ptr %5, align 4
%18 = load i32, ptr @F_SETFL, align 4
%19 = load i32, ptr %6, align 4
%20 = load i32, ptr @O_NONBLOCK, align 4
%21 = or i32 %19, %20
%22 = call i32 (i32, i32, ...) @fcntl(i32 noundef %17, i32 noundef %18, i32 noundef %21)
%23 = icmp eq i32 %22, -1
br i1 %23, label %24, label %29
24: ; preds = %16
%25 = load ptr, ptr %4, align 8
%26 = load i32, ptr @errno, align 4
%27 = call i32 @strerror(i32 noundef %26)
%28 = call i32 @socket_error(ptr noundef %25, ptr noundef @.str.1, i32 noundef %27)
store i32 -1, ptr %3, align 4
br label %30
29: ; preds = %16
store i32 0, ptr %3, align 4
br label %30
30: ; preds = %29, %24, %11
%31 = load i32, ptr %3, align 4
ret i32 %31
}
declare i32 @fcntl(i32 noundef, i32 noundef, ...) #1
declare i32 @socket_error(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @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/tmprrf56_fd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@F_GETFL = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [19 x i8] c"fcntl(F_GETFL): %s\00", align 1
@errno = dso_local global i32 0, align 4
@F_SETFL = dso_local global i32 0, align 4
@O_NONBLOCK = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [30 x i8] c"fcntl(F_SETFL,O_NONBLOCK): %s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @set_nonblock(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr @F_GETFL, align 4
%9 = call i32 (i32, i32, ...) @fcntl(i32 noundef %7, i32 noundef %8)
store i32 %9, ptr %6, align 4
%10 = icmp eq i32 %9, -1
br i1 %10, label %11, label %16
11: ; preds = %2
%12 = load ptr, ptr %4, align 8
%13 = load i32, ptr @errno, align 4
%14 = call i32 @strerror(i32 noundef %13)
%15 = call i32 @socket_error(ptr noundef %12, ptr noundef @.str, i32 noundef %14)
store i32 -1, ptr %3, align 4
br label %30
16: ; preds = %2
%17 = load i32, ptr %5, align 4
%18 = load i32, ptr @F_SETFL, align 4
%19 = load i32, ptr %6, align 4
%20 = load i32, ptr @O_NONBLOCK, align 4
%21 = or i32 %19, %20
%22 = call i32 (i32, i32, ...) @fcntl(i32 noundef %17, i32 noundef %18, i32 noundef %21)
%23 = icmp eq i32 %22, -1
br i1 %23, label %24, label %29
24: ; preds = %16
%25 = load ptr, ptr %4, align 8
%26 = load i32, ptr @errno, align 4
%27 = call i32 @strerror(i32 noundef %26)
%28 = call i32 @socket_error(ptr noundef %25, ptr noundef @.str.1, i32 noundef %27)
store i32 -1, ptr %3, align 4
br label %30
29: ; preds = %16
store i32 0, ptr %3, align 4
br label %30
30: ; preds = %29, %24, %11
%31 = load i32, ptr %3, align 4
ret i32 %31
}
declare i32 @fcntl(i32 noundef, i32 noundef, ...) #1
declare i32 @socket_error(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @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/tmpcfu74qor.c'
source_filename = "/tmp/tmpcfu74qor.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @c(double noundef 0.000000e+00, double noundef 1.000000e+00)
ret i32 %2
}
declare i32 @c(double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcfu74qor.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @c(double noundef 0.000000e+00, double noundef 1.000000e+00)
ret i32 %2
}
declare i32 @c(double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmppgs3wsgo.c'
source_filename = "/tmp/tmppgs3wsgo.c"
target datalayout = "e-m:e-p270: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.foo = private unnamed_addr constant [4 x i8] c"foo\00", align 1
@__const.main.bar = private unnamed_addr constant [4 x i8] c"bar\00", align 1
@.str = private unnamed_addr constant [31 x i8] c"foo:%s\0Abar:%s\0Aconcatenated:%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [4 x i8], align 1
%3 = alloca [4 x i8], align 1
%4 = alloca ptr, align 8
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %2, ptr align 1 @__const.main.foo, i64 4, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %3, ptr align 1 @__const.main.bar, i64 4, i1 false)
store ptr null, ptr %4, align 8
%5 = getelementptr inbounds [4 x i8], ptr %2, i64 0, i64 0
%6 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 0
%7 = call ptr @pl_cat(ptr noundef %5, ptr noundef %6)
store ptr %7, ptr %4, align 8
%8 = load ptr, ptr %4, align 8
%9 = icmp ne ptr %8, null
br i1 %9, label %10, label %15
10: ; preds = %0
%11 = getelementptr inbounds [4 x i8], ptr %2, i64 0, i64 0
%12 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 0
%13 = load ptr, ptr %4, align 8
%14 = call i32 @printf(ptr noundef @.str, ptr noundef %11, ptr noundef %12, ptr noundef %13)
br label %15
15: ; preds = %10, %0
%16 = load ptr, ptr %4, align 8
%17 = call i32 @free(ptr noundef %16)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare ptr @pl_cat(ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @free(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmppgs3wsgo.c"
target datalayout = "e-m:e-p270: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.foo = private unnamed_addr constant [4 x i8] c"foo\00", align 1
@__const.main.bar = private unnamed_addr constant [4 x i8] c"bar\00", align 1
@.str = private unnamed_addr constant [31 x i8] c"foo:%s\0Abar:%s\0Aconcatenated:%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [4 x i8], align 1
%3 = alloca [4 x i8], align 1
%4 = alloca ptr, align 8
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %2, ptr align 1 @__const.main.foo, i64 4, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %3, ptr align 1 @__const.main.bar, i64 4, i1 false)
store ptr null, ptr %4, align 8
%5 = getelementptr inbounds [4 x i8], ptr %2, i64 0, i64 0
%6 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 0
%7 = call ptr @pl_cat(ptr noundef %5, ptr noundef %6)
store ptr %7, ptr %4, align 8
%8 = load ptr, ptr %4, align 8
%9 = icmp ne ptr %8, null
br i1 %9, label %10, label %15
10: ; preds = %0
%11 = getelementptr inbounds [4 x i8], ptr %2, i64 0, i64 0
%12 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 0
%13 = load ptr, ptr %4, align 8
%14 = call i32 @printf(ptr noundef @.str, ptr noundef %11, ptr noundef %12, ptr noundef %13)
br label %15
15: ; preds = %10, %0
%16 = load ptr, ptr %4, align 8
%17 = call i32 @free(ptr noundef %16)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare ptr @pl_cat(ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @free(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8niu8tnt.c'
source_filename = "/tmp/tmp8niu8tnt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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" direcciones miembros: \00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%lx \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_long(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %3, align 4
br label %5
5: ; preds = %15, %1
%6 = load i32, ptr %3, align 4
%7 = icmp slt i32 %6, 5
br i1 %7, label %8, label %18
8: ; preds = %5
%9 = load ptr, ptr %2, align 8
%10 = load i32, ptr %3, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds i64, ptr %9, i64 %11
%13 = ptrtoint ptr %12 to i64
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i64 noundef %13)
br label %15
15: ; preds = %8
%16 = load i32, ptr %3, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %3, align 4
br label %5, !llvm.loop !6
18: ; preds = %5
%19 = load ptr, ptr %2, align 8
%20 = getelementptr inbounds i64, ptr %19, i64 0
%21 = ptrtoint ptr %20 to i64
%22 = call i32 @print_diff(i64 noundef %21)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @print_diff(i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8niu8tnt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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" direcciones miembros: \00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%lx \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_long(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %3, align 4
%5 = load i32, ptr %3, align 4
%6 = icmp slt i32 %5, 5
br i1 %6, label %.lr.ph, label %19
.lr.ph: ; preds = %1
br label %7
7: ; preds = %.lr.ph, %14
%8 = load ptr, ptr %2, align 8
%9 = load i32, ptr %3, align 4
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds i64, ptr %8, i64 %10
%12 = ptrtoint ptr %11 to i64
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i64 noundef %12)
br label %14
14: ; preds = %7
%15 = load i32, ptr %3, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %3, align 4
%17 = load i32, ptr %3, align 4
%18 = icmp slt i32 %17, 5
br i1 %18, label %7, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %14
br label %19
19: ; preds = %._crit_edge, %1
%20 = load ptr, ptr %2, align 8
%21 = getelementptr inbounds i64, ptr %20, i64 0
%22 = ptrtoint ptr %21 to i64
%23 = call i32 @print_diff(i64 noundef %22)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @print_diff(i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp5z8nf8u9.c'
source_filename = "/tmp/tmp5z8nf8u9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"zlog is initialized\0A\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"Command line: \0A\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"argv[%d]: %s \0A\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
@.str.4 = private unnamed_addr constant [32 x i8] c"I flush the buffer explicitly.\0A\00", align 1
@.str.5 = private unnamed_addr constant [185 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/approximator/FlightGear_S-function/refs/heads/master/S-Function/Src/third_party/zlog/example.c\00", align 1
@.str.6 = private unnamed_addr constant [14 x i8] c"more logs...\0A\00", align 1
@.str.7 = private unnamed_addr constant [18 x i8] c"and more logs...\0A\00", align 1
@.str.8 = private unnamed_addr constant [62 x i8] c"FOR TEST: I will sleep for 600 seconds... Please be patient.\0A\00", align 1
@.str.9 = private unnamed_addr constant [19 x i8] c"finish using zlog\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
%7 = call i32 (...) @zlog_init_stdout()
%8 = call i32 (...) @zlog_init_flush_thread()
%9 = call i32 @zlogf_time(ptr noundef @.str)
%10 = call i32 (ptr, ...) @zlogf(ptr noundef @.str.1)
store i32 0, ptr %6, align 4
br label %11
11: ; preds = %23, %2
%12 = load i32, ptr %6, align 4
%13 = load i32, ptr %4, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %15, label %26
15: ; preds = %11
%16 = load i32, ptr %6, align 4
%17 = load ptr, ptr %5, align 8
%18 = load i32, ptr %6, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds ptr, ptr %17, i64 %19
%21 = load ptr, ptr %20, align 8
%22 = call i32 (ptr, ...) @zlogf(ptr noundef @.str.2, i32 noundef %16, ptr noundef %21)
br label %23
23: ; preds = %15
%24 = load i32, ptr %6, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %6, align 4
br label %11, !llvm.loop !6
26: ; preds = %11
%27 = call i32 (ptr, ...) @zlogf(ptr noundef @.str.3)
%28 = call i32 @zlogf_time(ptr noundef @.str.4)
%29 = call i32 (...) @zlog_flush_buffer()
%30 = call i32 @zlog_time(ptr noundef @.str.5, i32 noundef 45, ptr noundef @.str.6)
%31 = call i32 @zlog(ptr noundef @.str.5, i32 noundef 48, ptr noundef @.str.7)
%32 = call i32 @printf(ptr noundef @.str.8)
%33 = call i32 @sleep(i32 noundef 600)
%34 = call i32 @zlogf_time(ptr noundef @.str.9)
%35 = call i32 (...) @zlog_finish()
ret i32 0
}
declare i32 @zlog_init_stdout(...) #1
declare i32 @zlog_init_flush_thread(...) #1
declare i32 @zlogf_time(ptr noundef) #1
declare i32 @zlogf(ptr noundef, ...) #1
declare i32 @zlog_flush_buffer(...) #1
declare i32 @zlog_time(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @zlog(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @sleep(i32 noundef) #1
declare i32 @zlog_finish(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp5z8nf8u9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"zlog is initialized\0A\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"Command line: \0A\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"argv[%d]: %s \0A\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
@.str.4 = private unnamed_addr constant [32 x i8] c"I flush the buffer explicitly.\0A\00", align 1
@.str.5 = private unnamed_addr constant [185 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/approximator/FlightGear_S-function/refs/heads/master/S-Function/Src/third_party/zlog/example.c\00", align 1
@.str.6 = private unnamed_addr constant [14 x i8] c"more logs...\0A\00", align 1
@.str.7 = private unnamed_addr constant [18 x i8] c"and more logs...\0A\00", align 1
@.str.8 = private unnamed_addr constant [62 x i8] c"FOR TEST: I will sleep for 600 seconds... Please be patient.\0A\00", align 1
@.str.9 = private unnamed_addr constant [19 x i8] c"finish using zlog\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
%7 = call i32 (...) @zlog_init_stdout()
%8 = call i32 (...) @zlog_init_flush_thread()
%9 = call i32 @zlogf_time(ptr noundef @.str)
%10 = call i32 (ptr, ...) @zlogf(ptr noundef @.str.1)
store i32 0, ptr %6, align 4
%11 = load i32, ptr %6, align 4
%12 = load i32, ptr %4, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %.lr.ph, label %28
.lr.ph: ; preds = %2
br label %14
14: ; preds = %.lr.ph, %22
%15 = load i32, ptr %6, align 4
%16 = load ptr, ptr %5, align 8
%17 = load i32, ptr %6, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds ptr, ptr %16, i64 %18
%20 = load ptr, ptr %19, align 8
%21 = call i32 (ptr, ...) @zlogf(ptr noundef @.str.2, i32 noundef %15, ptr noundef %20)
br label %22
22: ; preds = %14
%23 = load i32, ptr %6, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %6, align 4
%25 = load i32, ptr %6, align 4
%26 = load i32, ptr %4, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %22
br label %28
28: ; preds = %._crit_edge, %2
%29 = call i32 (ptr, ...) @zlogf(ptr noundef @.str.3)
%30 = call i32 @zlogf_time(ptr noundef @.str.4)
%31 = call i32 (...) @zlog_flush_buffer()
%32 = call i32 @zlog_time(ptr noundef @.str.5, i32 noundef 45, ptr noundef @.str.6)
%33 = call i32 @zlog(ptr noundef @.str.5, i32 noundef 48, ptr noundef @.str.7)
%34 = call i32 @printf(ptr noundef @.str.8)
%35 = call i32 @sleep(i32 noundef 600)
%36 = call i32 @zlogf_time(ptr noundef @.str.9)
%37 = call i32 (...) @zlog_finish()
ret i32 0
}
declare i32 @zlog_init_stdout(...) #1
declare i32 @zlog_init_flush_thread(...) #1
declare i32 @zlogf_time(ptr noundef) #1
declare i32 @zlogf(ptr noundef, ...) #1
declare i32 @zlog_flush_buffer(...) #1
declare i32 @zlog_time(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @zlog(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @sleep(i32 noundef) #1
declare i32 @zlog_finish(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpxs29_f8u.c'
source_filename = "/tmp/tmpxs29_f8u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"\E6\B0\B4\E4\BB\99\E6\95\B0\E6\9C\89\EF\BC\9A\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 100, ptr %5, align 4
br label %7
7: ; preds = %43, %0
%8 = load i32, ptr %5, align 4
%9 = icmp slt i32 %8, 1000
br i1 %9, label %10, label %46
10: ; preds = %7
%11 = load i32, ptr %5, align 4
%12 = sdiv i32 %11, 100
store i32 %12, ptr %2, align 4
%13 = load i32, ptr %5, align 4
%14 = sdiv i32 %13, 10
%15 = load i32, ptr %2, align 4
%16 = mul nsw i32 %15, 10
%17 = sub nsw i32 %14, %16
store i32 %17, ptr %3, align 4
%18 = load i32, ptr %5, align 4
%19 = srem i32 %18, 10
store i32 %19, ptr %4, align 4
%20 = load i32, ptr %5, align 4
%21 = load i32, ptr %2, align 4
%22 = load i32, ptr %2, align 4
%23 = mul nsw i32 %21, %22
%24 = load i32, ptr %2, align 4
%25 = mul nsw i32 %23, %24
%26 = load i32, ptr %4, align 4
%27 = load i32, ptr %4, align 4
%28 = mul nsw i32 %26, %27
%29 = load i32, ptr %4, align 4
%30 = mul nsw i32 %28, %29
%31 = add nsw i32 %25, %30
%32 = load i32, ptr %3, align 4
%33 = load i32, ptr %3, align 4
%34 = mul nsw i32 %32, %33
%35 = load i32, ptr %3, align 4
%36 = mul nsw i32 %34, %35
%37 = add nsw i32 %31, %36
%38 = icmp eq i32 %20, %37
br i1 %38, label %39, label %42
39: ; preds = %10
%40 = load i32, ptr %5, align 4
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %40)
br label %42
42: ; preds = %39, %10
br label %43
43: ; preds = %42
%44 = load i32, ptr %5, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %5, align 4
br label %7, !llvm.loop !6
46: ; preds = %7
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/tmpxs29_f8u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"\E6\B0\B4\E4\BB\99\E6\95\B0\E6\9C\89\EF\BC\9A\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 100, ptr %5, align 4
%7 = load i32, ptr %5, align 4
%8 = icmp slt i32 %7, 1000
br i1 %8, label %.lr.ph, label %47
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %42
%10 = load i32, ptr %5, align 4
%11 = sdiv i32 %10, 100
store i32 %11, ptr %2, align 4
%12 = load i32, ptr %5, align 4
%13 = sdiv i32 %12, 10
%14 = load i32, ptr %2, align 4
%15 = mul nsw i32 %14, 10
%16 = sub nsw i32 %13, %15
store i32 %16, ptr %3, align 4
%17 = load i32, ptr %5, align 4
%18 = srem i32 %17, 10
store i32 %18, ptr %4, align 4
%19 = load i32, ptr %5, align 4
%20 = load i32, ptr %2, align 4
%21 = load i32, ptr %2, align 4
%22 = mul nsw i32 %20, %21
%23 = load i32, ptr %2, align 4
%24 = mul nsw i32 %22, %23
%25 = load i32, ptr %4, align 4
%26 = load i32, ptr %4, align 4
%27 = mul nsw i32 %25, %26
%28 = load i32, ptr %4, align 4
%29 = mul nsw i32 %27, %28
%30 = add nsw i32 %24, %29
%31 = load i32, ptr %3, align 4
%32 = load i32, ptr %3, align 4
%33 = mul nsw i32 %31, %32
%34 = load i32, ptr %3, align 4
%35 = mul nsw i32 %33, %34
%36 = add nsw i32 %30, %35
%37 = icmp eq i32 %19, %36
br i1 %37, label %38, label %41
38: ; preds = %9
%39 = load i32, ptr %5, align 4
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %39)
br label %41
41: ; preds = %38, %9
br label %42
42: ; preds = %41
%43 = load i32, ptr %5, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %5, align 4
%45 = load i32, ptr %5, align 4
%46 = icmp slt i32 %45, 1000
br i1 %46, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %42
br label %47
47: ; 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/tmp301e37p8.c'
source_filename = "/tmp/tmp301e37p8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [26 x i8] c"Enter number to reverse:\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"The reverse of %d 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 i32, align 4
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 %2)
%6 = load i32, ptr %2, align 4
%7 = call i32 @reverse(i32 noundef %6)
store i32 %7, ptr %3, align 4
%8 = load i32, ptr %2, align 4
%9 = load i32, ptr %3, align 4
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %8, i32 noundef %9)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @reverse(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/tmp301e37p8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [26 x i8] c"Enter number to reverse:\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"The reverse of %d 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 i32, align 4
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 %2)
%6 = load i32, ptr %2, align 4
%7 = call i32 @reverse(i32 noundef %6)
store i32 %7, ptr %3, align 4
%8 = load i32, ptr %2, align 4
%9 = load i32, ptr %3, align 4
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %8, i32 noundef %9)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @reverse(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/tmp419uzgd2.c'
source_filename = "/tmp/tmp419uzgd2.c"
target datalayout = "e-m:e-p270: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/tmp419uzgd2.c"
target datalayout = "e-m:e-p270: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/tmpw_uchmuj.c'
source_filename = "/tmp/tmpw_uchmuj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s%d.pid\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"/var/run/hostapd_ath\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"kill `cat %s`\00", align 1
@.str.3 = private unnamed_addr constant [11 x i8] c"\1B[1;33;40m\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"\1B[0m\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.6 = private unnamed_addr constant [25 x i8] c"Get VAP status failure!\0A\00", align 1
@.str.7 = private unnamed_addr constant [10 x i8] c"%s%d.conf\00", align 1
@.str.8 = private unnamed_addr constant [9 x i8] c"/tmp/ath\00", align 1
@.str.9 = private unnamed_addr constant [20 x i8] c"hostapd -B %s -P %s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @start_hostapd(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca [64 x i8], align 16
%9 = alloca [64 x i8], align 16
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
call void @llvm.memset.p0.i64(ptr align 16 %8, i8 0, i64 64, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %9, i8 0, i64 64, i1 false)
store i32 0, ptr %10, align 4
%13 = load i32, ptr %4, align 4
%14 = load i32, ptr %5, align 4
%15 = call i32 @convert_vap_id(i32 noundef %13, i32 noundef %14)
store i32 %15, ptr %6, align 4
%16 = getelementptr inbounds [64 x i8], ptr %9, i64 0, i64 0
%17 = load i32, ptr %6, align 4
%18 = call i32 (ptr, ptr, ptr, ...) @sprintf(ptr noundef %16, ptr noundef @.str, ptr noundef @.str.1, i32 noundef %17)
br label %19
19: ; preds = %2
%20 = call i64 @malloc(i32 noundef 128)
%21 = inttoptr i64 %20 to ptr
store ptr %21, ptr %11, align 8
%22 = load ptr, ptr %11, align 8
%23 = getelementptr inbounds [64 x i8], ptr %9, i64 0, i64 0
%24 = call i32 (ptr, ptr, ptr, ...) @sprintf(ptr noundef %22, ptr noundef @.str.2, ptr noundef %23)
%25 = call i32 @printf(ptr noundef @.str.3)
%26 = load ptr, ptr %11, align 8
%27 = call i32 @printf(ptr noundef %26)
%28 = call i32 @printf(ptr noundef @.str.4)
%29 = call i32 @printf(ptr noundef @.str.5)
%30 = load ptr, ptr %11, align 8
%31 = call i32 @system(ptr noundef %30)
%32 = load ptr, ptr %11, align 8
%33 = call i32 @free(ptr noundef %32)
br label %34
34: ; preds = %19
%35 = load i32, ptr %4, align 4
%36 = load i32, ptr %5, align 4
%37 = call i32 @nvram_get_vap_status(i32 noundef %35, i32 noundef %36, ptr noundef %10)
store i32 %37, ptr %7, align 4
%38 = load i32, ptr %7, align 4
%39 = icmp eq i32 -1, %38
br i1 %39, label %40, label %43
40: ; preds = %34
%41 = load i32, ptr @stderr, align 4
%42 = call i32 @fprintf(i32 noundef %41, ptr noundef @.str.6)
store i32 -1, ptr %3, align 4
br label %68
43: ; preds = %34
%44 = load i32, ptr %10, align 4
%45 = icmp ne i32 %44, 0
br i1 %45, label %46, label %67
46: ; preds = %43
%47 = getelementptr inbounds [64 x i8], ptr %8, i64 0, i64 0
%48 = load i32, ptr %6, align 4
%49 = call i32 (ptr, ptr, ptr, ...) @sprintf(ptr noundef %47, ptr noundef @.str.7, ptr noundef @.str.8, i32 noundef %48)
br label %50
50: ; preds = %46
%51 = call i64 @malloc(i32 noundef 128)
%52 = inttoptr i64 %51 to ptr
store ptr %52, ptr %12, align 8
%53 = load ptr, ptr %12, align 8
%54 = getelementptr inbounds [64 x i8], ptr %8, i64 0, i64 0
%55 = getelementptr inbounds [64 x i8], ptr %9, i64 0, i64 0
%56 = call i32 (ptr, ptr, ptr, ...) @sprintf(ptr noundef %53, ptr noundef @.str.9, ptr noundef %54, ptr noundef %55)
%57 = call i32 @printf(ptr noundef @.str.3)
%58 = load ptr, ptr %12, align 8
%59 = call i32 @printf(ptr noundef %58)
%60 = call i32 @printf(ptr noundef @.str.4)
%61 = call i32 @printf(ptr noundef @.str.5)
%62 = load ptr, ptr %12, align 8
%63 = call i32 @system(ptr noundef %62)
%64 = load ptr, ptr %12, align 8
%65 = call i32 @free(ptr noundef %64)
br label %66
66: ; preds = %50
br label %67
67: ; preds = %66, %43
store i32 0, ptr %3, align 4
br label %68
68: ; preds = %67, %40
%69 = load i32, ptr %3, align 4
ret i32 %69
}
; 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 @convert_vap_id(i32 noundef, i32 noundef) #2
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef, ...) #2
declare i64 @malloc(i32 noundef) #2
declare i32 @printf(ptr noundef) #2
declare i32 @system(ptr noundef) #2
declare i32 @free(ptr noundef) #2
declare i32 @nvram_get_vap_status(i32 noundef, i32 noundef, ptr noundef) #2
declare i32 @fprintf(i32 noundef, 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"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpw_uchmuj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s%d.pid\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"/var/run/hostapd_ath\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"kill `cat %s`\00", align 1
@.str.3 = private unnamed_addr constant [11 x i8] c"\1B[1;33;40m\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"\1B[0m\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.6 = private unnamed_addr constant [25 x i8] c"Get VAP status failure!\0A\00", align 1
@.str.7 = private unnamed_addr constant [10 x i8] c"%s%d.conf\00", align 1
@.str.8 = private unnamed_addr constant [9 x i8] c"/tmp/ath\00", align 1
@.str.9 = private unnamed_addr constant [20 x i8] c"hostapd -B %s -P %s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @start_hostapd(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca [64 x i8], align 16
%9 = alloca [64 x i8], align 16
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
call void @llvm.memset.p0.i64(ptr align 16 %8, i8 0, i64 64, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %9, i8 0, i64 64, i1 false)
store i32 0, ptr %10, align 4
%13 = load i32, ptr %4, align 4
%14 = load i32, ptr %5, align 4
%15 = call i32 @convert_vap_id(i32 noundef %13, i32 noundef %14)
store i32 %15, ptr %6, align 4
%16 = getelementptr inbounds [64 x i8], ptr %9, i64 0, i64 0
%17 = load i32, ptr %6, align 4
%18 = call i32 (ptr, ptr, ptr, ...) @sprintf(ptr noundef %16, ptr noundef @.str, ptr noundef @.str.1, i32 noundef %17)
br label %19
19: ; preds = %2
%20 = call i64 @malloc(i32 noundef 128)
%21 = inttoptr i64 %20 to ptr
store ptr %21, ptr %11, align 8
%22 = load ptr, ptr %11, align 8
%23 = getelementptr inbounds [64 x i8], ptr %9, i64 0, i64 0
%24 = call i32 (ptr, ptr, ptr, ...) @sprintf(ptr noundef %22, ptr noundef @.str.2, ptr noundef %23)
%25 = call i32 @printf(ptr noundef @.str.3)
%26 = load ptr, ptr %11, align 8
%27 = call i32 @printf(ptr noundef %26)
%28 = call i32 @printf(ptr noundef @.str.4)
%29 = call i32 @printf(ptr noundef @.str.5)
%30 = load ptr, ptr %11, align 8
%31 = call i32 @system(ptr noundef %30)
%32 = load ptr, ptr %11, align 8
%33 = call i32 @free(ptr noundef %32)
br label %34
34: ; preds = %19
%35 = load i32, ptr %4, align 4
%36 = load i32, ptr %5, align 4
%37 = call i32 @nvram_get_vap_status(i32 noundef %35, i32 noundef %36, ptr noundef %10)
store i32 %37, ptr %7, align 4
%38 = load i32, ptr %7, align 4
%39 = icmp eq i32 -1, %38
br i1 %39, label %40, label %43
40: ; preds = %34
%41 = load i32, ptr @stderr, align 4
%42 = call i32 @fprintf(i32 noundef %41, ptr noundef @.str.6)
store i32 -1, ptr %3, align 4
br label %68
43: ; preds = %34
%44 = load i32, ptr %10, align 4
%45 = icmp ne i32 %44, 0
br i1 %45, label %46, label %67
46: ; preds = %43
%47 = getelementptr inbounds [64 x i8], ptr %8, i64 0, i64 0
%48 = load i32, ptr %6, align 4
%49 = call i32 (ptr, ptr, ptr, ...) @sprintf(ptr noundef %47, ptr noundef @.str.7, ptr noundef @.str.8, i32 noundef %48)
br label %50
50: ; preds = %46
%51 = call i64 @malloc(i32 noundef 128)
%52 = inttoptr i64 %51 to ptr
store ptr %52, ptr %12, align 8
%53 = load ptr, ptr %12, align 8
%54 = getelementptr inbounds [64 x i8], ptr %8, i64 0, i64 0
%55 = getelementptr inbounds [64 x i8], ptr %9, i64 0, i64 0
%56 = call i32 (ptr, ptr, ptr, ...) @sprintf(ptr noundef %53, ptr noundef @.str.9, ptr noundef %54, ptr noundef %55)
%57 = call i32 @printf(ptr noundef @.str.3)
%58 = load ptr, ptr %12, align 8
%59 = call i32 @printf(ptr noundef %58)
%60 = call i32 @printf(ptr noundef @.str.4)
%61 = call i32 @printf(ptr noundef @.str.5)
%62 = load ptr, ptr %12, align 8
%63 = call i32 @system(ptr noundef %62)
%64 = load ptr, ptr %12, align 8
%65 = call i32 @free(ptr noundef %64)
br label %66
66: ; preds = %50
br label %67
67: ; preds = %66, %43
store i32 0, ptr %3, align 4
br label %68
68: ; preds = %67, %40
%69 = load i32, ptr %3, align 4
ret i32 %69
}
; 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 @convert_vap_id(i32 noundef, i32 noundef) #2
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef, ...) #2
declare i64 @malloc(i32 noundef) #2
declare i32 @printf(ptr noundef) #2
declare i32 @system(ptr noundef) #2
declare i32 @free(ptr noundef) #2
declare i32 @nvram_get_vap_status(i32 noundef, i32 noundef, ptr noundef) #2
declare i32 @fprintf(i32 noundef, 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"}
|
; ModuleID = '/tmp/tmp9qfrtmx0.c'
source_filename = "/tmp/tmp9qfrtmx0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_7(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = getelementptr inbounds i32, ptr %3, i64 3
%5 = load i32, ptr %4, align 4
%6 = icmp eq i32 %5, 42
%7 = zext i1 %6 to i32
%8 = call i32 @__analyzer_eval(i32 noundef %7)
%9 = load ptr, ptr %2, align 8
%10 = getelementptr inbounds i32, ptr %9, i64 3
store i32 42, ptr %10, align 4
%11 = load ptr, ptr %2, align 8
%12 = getelementptr inbounds i32, ptr %11, i64 3
%13 = load i32, ptr %12, align 4
%14 = icmp eq i32 %13, 42
%15 = zext i1 %14 to i32
%16 = call i32 @__analyzer_eval(i32 noundef %15)
ret void
}
declare i32 @__analyzer_eval(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9qfrtmx0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_7(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = getelementptr inbounds i32, ptr %3, i64 3
%5 = load i32, ptr %4, align 4
%6 = icmp eq i32 %5, 42
%7 = zext i1 %6 to i32
%8 = call i32 @__analyzer_eval(i32 noundef %7)
%9 = load ptr, ptr %2, align 8
%10 = getelementptr inbounds i32, ptr %9, i64 3
store i32 42, ptr %10, align 4
%11 = load ptr, ptr %2, align 8
%12 = getelementptr inbounds i32, ptr %11, i64 3
%13 = load i32, ptr %12, align 4
%14 = icmp eq i32 %13, 42
%15 = zext i1 %14 to i32
%16 = call i32 @__analyzer_eval(i32 noundef %15)
ret void
}
declare i32 @__analyzer_eval(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpppjwvopo.c'
source_filename = "/tmp/tmpppjwvopo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @merge_sort(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %10, 2
br i1 %11, label %12, label %13
12: ; preds = %2
br label %142
13: ; preds = %2
%14 = load i32, ptr %4, align 4
%15 = sdiv i32 %14, 2
store i32 %15, ptr %5, align 4
%16 = load i32, ptr %5, align 4
%17 = sext i32 %16 to i64
%18 = mul i64 %17, 4
%19 = trunc i64 %18 to i32
%20 = call i64 @malloc(i32 noundef %19)
%21 = inttoptr i64 %20 to ptr
store ptr %21, ptr %6, align 8
%22 = load i32, ptr %4, align 4
%23 = load i32, ptr %5, align 4
%24 = sub nsw i32 %22, %23
%25 = sext i32 %24 to i64
%26 = mul i64 %25, 4
%27 = trunc i64 %26 to i32
%28 = call i64 @malloc(i32 noundef %27)
%29 = inttoptr i64 %28 to ptr
store ptr %29, ptr %7, align 8
%30 = load ptr, ptr %3, align 8
%31 = load ptr, ptr %6, align 8
%32 = load i32, ptr %5, align 4
%33 = call i32 @copy_array(ptr noundef %30, ptr noundef %31, i32 noundef %32)
%34 = load ptr, ptr %3, align 8
%35 = load i32, ptr %5, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i32, ptr %34, i64 %36
%38 = load ptr, ptr %7, align 8
%39 = load i32, ptr %4, align 4
%40 = load i32, ptr %5, align 4
%41 = sub nsw i32 %39, %40
%42 = call i32 @copy_array(ptr noundef %37, ptr noundef %38, i32 noundef %41)
%43 = load ptr, ptr %6, align 8
%44 = load i32, ptr %5, align 4
call void @merge_sort(ptr noundef %43, i32 noundef %44)
%45 = load ptr, ptr %7, align 8
%46 = load i32, ptr %4, align 4
%47 = load i32, ptr %5, align 4
%48 = sub nsw i32 %46, %47
call void @merge_sort(ptr noundef %45, i32 noundef %48)
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
br label %49
49: ; preds = %87, %13
%50 = load i32, ptr %8, align 4
%51 = load i32, ptr %5, align 4
%52 = icmp slt i32 %50, %51
br i1 %52, label %53, label %59
53: ; preds = %49
%54 = load i32, ptr %9, align 4
%55 = load i32, ptr %4, align 4
%56 = load i32, ptr %5, align 4
%57 = sub nsw i32 %55, %56
%58 = icmp slt i32 %54, %57
br label %59
59: ; preds = %53, %49
%60 = phi i1 [ false, %49 ], [ %58, %53 ]
br i1 %60, label %61, label %95
61: ; preds = %59
%62 = load ptr, ptr %6, align 8
%63 = load i32, ptr %8, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds i32, ptr %62, i64 %64
%66 = load i32, ptr %65, align 4
%67 = load ptr, ptr %7, align 8
%68 = load i32, ptr %9, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds i32, ptr %67, i64 %69
%71 = load i32, ptr %70, align 4
%72 = icmp sle i32 %66, %71
br i1 %72, label %73, label %80
73: ; preds = %61
%74 = load ptr, ptr %6, align 8
%75 = load i32, ptr %8, align 4
%76 = add nsw i32 %75, 1
store i32 %76, ptr %8, align 4
%77 = sext i32 %75 to i64
%78 = getelementptr inbounds i32, ptr %74, i64 %77
%79 = load i32, ptr %78, align 4
br label %87
80: ; preds = %61
%81 = load ptr, ptr %7, align 8
%82 = load i32, ptr %9, align 4
%83 = add nsw i32 %82, 1
store i32 %83, ptr %9, align 4
%84 = sext i32 %82 to i64
%85 = getelementptr inbounds i32, ptr %81, i64 %84
%86 = load i32, ptr %85, align 4
br label %87
87: ; preds = %80, %73
%88 = phi i32 [ %79, %73 ], [ %86, %80 ]
%89 = load ptr, ptr %3, align 8
%90 = load i32, ptr %8, align 4
%91 = load i32, ptr %9, align 4
%92 = add nsw i32 %90, %91
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds i32, ptr %89, i64 %93
store i32 %88, ptr %94, align 4
br label %49, !llvm.loop !6
95: ; preds = %59
br label %96
96: ; preds = %112, %95
%97 = load i32, ptr %8, align 4
%98 = load i32, ptr %5, align 4
%99 = icmp slt i32 %97, %98
br i1 %99, label %100, label %115
100: ; preds = %96
%101 = load ptr, ptr %6, align 8
%102 = load i32, ptr %8, align 4
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds i32, ptr %101, i64 %103
%105 = load i32, ptr %104, align 4
%106 = load ptr, ptr %3, align 8
%107 = load i32, ptr %8, align 4
%108 = load i32, ptr %9, align 4
%109 = add nsw i32 %107, %108
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds i32, ptr %106, i64 %110
store i32 %105, ptr %111, align 4
br label %112
112: ; preds = %100
%113 = load i32, ptr %8, align 4
%114 = add nsw i32 %113, 1
store i32 %114, ptr %8, align 4
br label %96, !llvm.loop !8
115: ; preds = %96
br label %116
116: ; preds = %134, %115
%117 = load i32, ptr %9, align 4
%118 = load i32, ptr %4, align 4
%119 = load i32, ptr %5, align 4
%120 = sub nsw i32 %118, %119
%121 = icmp slt i32 %117, %120
br i1 %121, label %122, label %137
122: ; preds = %116
%123 = load ptr, ptr %7, align 8
%124 = load i32, ptr %9, align 4
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds i32, ptr %123, i64 %125
%127 = load i32, ptr %126, align 4
%128 = load ptr, ptr %3, align 8
%129 = load i32, ptr %8, align 4
%130 = load i32, ptr %9, align 4
%131 = add nsw i32 %129, %130
%132 = sext i32 %131 to i64
%133 = getelementptr inbounds i32, ptr %128, i64 %132
store i32 %127, ptr %133, align 4
br label %134
134: ; preds = %122
%135 = load i32, ptr %9, align 4
%136 = add nsw i32 %135, 1
store i32 %136, ptr %9, align 4
br label %116, !llvm.loop !9
137: ; preds = %116
%138 = load ptr, ptr %6, align 8
%139 = call i32 @free(ptr noundef %138)
%140 = load ptr, ptr %7, align 8
%141 = call i32 @free(ptr noundef %140)
br label %142
142: ; preds = %137, %12
ret void
}
declare i64 @malloc(i32 noundef) #1
declare i32 @copy_array(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpppjwvopo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @merge_sort(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %10, 2
br i1 %11, label %12, label %13
12: ; preds = %2
br label %148
13: ; preds = %2
%14 = load i32, ptr %4, align 4
%15 = sdiv i32 %14, 2
store i32 %15, ptr %5, align 4
%16 = load i32, ptr %5, align 4
%17 = sext i32 %16 to i64
%18 = mul i64 %17, 4
%19 = trunc i64 %18 to i32
%20 = call i64 @malloc(i32 noundef %19)
%21 = inttoptr i64 %20 to ptr
store ptr %21, ptr %6, align 8
%22 = load i32, ptr %4, align 4
%23 = load i32, ptr %5, align 4
%24 = sub nsw i32 %22, %23
%25 = sext i32 %24 to i64
%26 = mul i64 %25, 4
%27 = trunc i64 %26 to i32
%28 = call i64 @malloc(i32 noundef %27)
%29 = inttoptr i64 %28 to ptr
store ptr %29, ptr %7, align 8
%30 = load ptr, ptr %3, align 8
%31 = load ptr, ptr %6, align 8
%32 = load i32, ptr %5, align 4
%33 = call i32 @copy_array(ptr noundef %30, ptr noundef %31, i32 noundef %32)
%34 = load ptr, ptr %3, align 8
%35 = load i32, ptr %5, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i32, ptr %34, i64 %36
%38 = load ptr, ptr %7, align 8
%39 = load i32, ptr %4, align 4
%40 = load i32, ptr %5, align 4
%41 = sub nsw i32 %39, %40
%42 = call i32 @copy_array(ptr noundef %37, ptr noundef %38, i32 noundef %41)
%43 = load ptr, ptr %6, align 8
%44 = load i32, ptr %5, align 4
call void @merge_sort(ptr noundef %43, i32 noundef %44)
%45 = load ptr, ptr %7, align 8
%46 = load i32, ptr %4, align 4
%47 = load i32, ptr %5, align 4
%48 = sub nsw i32 %46, %47
call void @merge_sort(ptr noundef %45, i32 noundef %48)
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
br label %49
49: ; preds = %87, %13
%50 = load i32, ptr %8, align 4
%51 = load i32, ptr %5, align 4
%52 = icmp slt i32 %50, %51
br i1 %52, label %53, label %59
53: ; preds = %49
%54 = load i32, ptr %9, align 4
%55 = load i32, ptr %4, align 4
%56 = load i32, ptr %5, align 4
%57 = sub nsw i32 %55, %56
%58 = icmp slt i32 %54, %57
br label %59
59: ; preds = %53, %49
%60 = phi i1 [ false, %49 ], [ %58, %53 ]
br i1 %60, label %61, label %95
61: ; preds = %59
%62 = load ptr, ptr %6, align 8
%63 = load i32, ptr %8, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds i32, ptr %62, i64 %64
%66 = load i32, ptr %65, align 4
%67 = load ptr, ptr %7, align 8
%68 = load i32, ptr %9, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds i32, ptr %67, i64 %69
%71 = load i32, ptr %70, align 4
%72 = icmp sle i32 %66, %71
br i1 %72, label %73, label %80
73: ; preds = %61
%74 = load ptr, ptr %6, align 8
%75 = load i32, ptr %8, align 4
%76 = add nsw i32 %75, 1
store i32 %76, ptr %8, align 4
%77 = sext i32 %75 to i64
%78 = getelementptr inbounds i32, ptr %74, i64 %77
%79 = load i32, ptr %78, align 4
br label %87
80: ; preds = %61
%81 = load ptr, ptr %7, align 8
%82 = load i32, ptr %9, align 4
%83 = add nsw i32 %82, 1
store i32 %83, ptr %9, align 4
%84 = sext i32 %82 to i64
%85 = getelementptr inbounds i32, ptr %81, i64 %84
%86 = load i32, ptr %85, align 4
br label %87
87: ; preds = %80, %73
%88 = phi i32 [ %79, %73 ], [ %86, %80 ]
%89 = load ptr, ptr %3, align 8
%90 = load i32, ptr %8, align 4
%91 = load i32, ptr %9, align 4
%92 = add nsw i32 %90, %91
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds i32, ptr %89, i64 %93
store i32 %88, ptr %94, align 4
br label %49, !llvm.loop !6
95: ; preds = %59
%96 = load i32, ptr %8, align 4
%97 = load i32, ptr %5, align 4
%98 = icmp slt i32 %96, %97
br i1 %98, label %.lr.ph, label %117
.lr.ph: ; preds = %95
br label %99
99: ; preds = %.lr.ph, %111
%100 = load ptr, ptr %6, align 8
%101 = load i32, ptr %8, align 4
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds i32, ptr %100, i64 %102
%104 = load i32, ptr %103, align 4
%105 = load ptr, ptr %3, align 8
%106 = load i32, ptr %8, align 4
%107 = load i32, ptr %9, align 4
%108 = add nsw i32 %106, %107
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds i32, ptr %105, i64 %109
store i32 %104, ptr %110, align 4
br label %111
111: ; preds = %99
%112 = load i32, ptr %8, align 4
%113 = add nsw i32 %112, 1
store i32 %113, ptr %8, align 4
%114 = load i32, ptr %8, align 4
%115 = load i32, ptr %5, align 4
%116 = icmp slt i32 %114, %115
br i1 %116, label %99, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %111
br label %117
117: ; preds = %._crit_edge, %95
%118 = load i32, ptr %9, align 4
%119 = load i32, ptr %4, align 4
%120 = load i32, ptr %5, align 4
%121 = sub nsw i32 %119, %120
%122 = icmp slt i32 %118, %121
br i1 %122, label %.lr.ph2, label %143
.lr.ph2: ; preds = %117
br label %123
123: ; preds = %.lr.ph2, %135
%124 = load ptr, ptr %7, align 8
%125 = load i32, ptr %9, align 4
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds i32, ptr %124, i64 %126
%128 = load i32, ptr %127, align 4
%129 = load ptr, ptr %3, align 8
%130 = load i32, ptr %8, align 4
%131 = load i32, ptr %9, align 4
%132 = add nsw i32 %130, %131
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds i32, ptr %129, i64 %133
store i32 %128, ptr %134, align 4
br label %135
135: ; preds = %123
%136 = load i32, ptr %9, align 4
%137 = add nsw i32 %136, 1
store i32 %137, ptr %9, align 4
%138 = load i32, ptr %9, align 4
%139 = load i32, ptr %4, align 4
%140 = load i32, ptr %5, align 4
%141 = sub nsw i32 %139, %140
%142 = icmp slt i32 %138, %141
br i1 %142, label %123, label %._crit_edge3, !llvm.loop !9
._crit_edge3: ; preds = %135
br label %143
143: ; preds = %._crit_edge3, %117
%144 = load ptr, ptr %6, align 8
%145 = call i32 @free(ptr noundef %144)
%146 = load ptr, ptr %7, align 8
%147 = call i32 @free(ptr noundef %146)
br label %148
148: ; preds = %143, %12
ret void
}
declare i64 @malloc(i32 noundef) #1
declare i32 @copy_array(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpebr86u0k.c'
source_filename = "/tmp/tmpebr86u0k.c"
target datalayout = "e-m:e-p270: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/tmpebr86u0k.c"
target datalayout = "e-m:e-p270: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/tmpxg0567oq.c'
source_filename = "/tmp/tmpxg0567oq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [38 x i8] c"should get 65 (since 65 == 'A')\0Agot: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"should get 8\0Agot: \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i8, align 1
%3 = call i32 @print_string(ptr noundef @.str)
%4 = call i32 (...) @charFunc()
%5 = call i32 @print_int(i32 noundef %4)
%6 = call i32 @print_string(ptr noundef @.str.1)
%7 = call i32 (...) @charFunc()
%8 = trunc i32 %7 to i8
store i8 %8, ptr %2, align 1
%9 = call i32 @print_string(ptr noundef @.str)
%10 = load i8, ptr %2, align 1
%11 = sext i8 %10 to i32
%12 = call i32 @print_int(i32 noundef %11)
%13 = call i32 @print_string(ptr noundef @.str.1)
%14 = call i32 @print_string(ptr noundef @.str.2)
%15 = call i32 (...) @intFunc()
%16 = call i32 @print_int(i32 noundef %15)
%17 = call i32 @print_string(ptr noundef @.str.1)
%18 = call i32 (...) @intFunc()
store i32 %18, ptr %1, align 4
%19 = call i32 @print_string(ptr noundef @.str.2)
%20 = load i32, ptr %1, align 4
%21 = call i32 @print_int(i32 noundef %20)
%22 = call i32 @print_string(ptr noundef @.str.1)
ret void
}
declare i32 @print_string(ptr noundef) #1
declare i32 @print_int(i32 noundef) #1
declare i32 @charFunc(...) #1
declare i32 @intFunc(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxg0567oq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [38 x i8] c"should get 65 (since 65 == 'A')\0Agot: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"should get 8\0Agot: \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i8, align 1
%3 = call i32 @print_string(ptr noundef @.str)
%4 = call i32 (...) @charFunc()
%5 = call i32 @print_int(i32 noundef %4)
%6 = call i32 @print_string(ptr noundef @.str.1)
%7 = call i32 (...) @charFunc()
%8 = trunc i32 %7 to i8
store i8 %8, ptr %2, align 1
%9 = call i32 @print_string(ptr noundef @.str)
%10 = load i8, ptr %2, align 1
%11 = sext i8 %10 to i32
%12 = call i32 @print_int(i32 noundef %11)
%13 = call i32 @print_string(ptr noundef @.str.1)
%14 = call i32 @print_string(ptr noundef @.str.2)
%15 = call i32 (...) @intFunc()
%16 = call i32 @print_int(i32 noundef %15)
%17 = call i32 @print_string(ptr noundef @.str.1)
%18 = call i32 (...) @intFunc()
store i32 %18, ptr %1, align 4
%19 = call i32 @print_string(ptr noundef @.str.2)
%20 = load i32, ptr %1, align 4
%21 = call i32 @print_int(i32 noundef %20)
%22 = call i32 @print_string(ptr noundef @.str.1)
ret void
}
declare i32 @print_string(ptr noundef) #1
declare i32 @print_int(i32 noundef) #1
declare i32 @charFunc(...) #1
declare i32 @intFunc(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.