llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
|---|---|
; ModuleID = '/tmp/tmpusb8c4k9.c'
source_filename = "/tmp/tmpusb8c4k9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @isDigit10(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 @isDigit(ptr noundef %5, ptr noundef %6)
ret i32 %7
}
declare i32 @isDigit(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/tmpusb8c4k9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @isDigit10(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 @isDigit(ptr noundef %5, ptr noundef %6)
ret i32 %7
}
declare i32 @isDigit(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/tmpe814mh7n.c'
source_filename = "/tmp/tmpe814mh7n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpe814mh7n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8y_6pugr.c'
source_filename = "/tmp/tmp8y_6pugr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, %struct.in_addr, i32, i32 }
%struct.in_addr = type { i32 }
%struct.hostent = type { ptr }
@.str = private unnamed_addr constant [10 x i8] c"localhost\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"gethostbyname\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [40 x i8] c"Cannot get IP address for domain: '%s'\0A\00", align 1
@PF_INET = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @set_socket(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = call ptr @gethostbyname(ptr noundef @.str)
store ptr %4, ptr %3, align 8
%5 = icmp eq ptr %4, null
br i1 %5, label %6, label %11
6: ; preds = %1
%7 = call i32 @perror(ptr noundef @.str.1)
%8 = load i32, ptr @stderr, align 4
%9 = call i32 @fprintf(i32 noundef %8, ptr noundef @.str.2, ptr noundef @.str)
%10 = call i32 (...) @abort() #4
unreachable
11: ; preds = %1
%12 = load i32, ptr @PF_INET, align 4
%13 = load ptr, ptr %2, align 8
%14 = getelementptr inbounds %struct.sockaddr_in, ptr %13, i32 0, i32 3
store i32 %12, ptr %14, align 4
%15 = call i32 @htons(i32 noundef 6667)
%16 = load ptr, ptr %2, align 8
%17 = getelementptr inbounds %struct.sockaddr_in, ptr %16, i32 0, i32 2
store i32 %15, ptr %17, align 4
%18 = load ptr, ptr %2, align 8
%19 = getelementptr inbounds %struct.sockaddr_in, ptr %18, i32 0, i32 1
%20 = load ptr, ptr %3, align 8
%21 = getelementptr inbounds %struct.hostent, ptr %20, i32 0, i32 0
%22 = load ptr, ptr %21, align 8
%23 = getelementptr inbounds i64, ptr %22, i64 0
%24 = load i64, ptr %23, align 8
%25 = inttoptr i64 %24 to ptr
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 4 %25, i64 4, i1 false)
%26 = load ptr, ptr %2, align 8
%27 = getelementptr inbounds %struct.sockaddr_in, ptr %26, i32 0, i32 0
%28 = call i32 @memset(ptr noundef %27, i8 noundef signext 0, i32 noundef 2)
ret void
}
declare ptr @gethostbyname(ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
declare i32 @htons(i32 noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3
declare i32 @memset(ptr noundef, i8 noundef signext, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8y_6pugr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, %struct.in_addr, i32, i32 }
%struct.in_addr = type { i32 }
%struct.hostent = type { ptr }
@.str = private unnamed_addr constant [10 x i8] c"localhost\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"gethostbyname\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [40 x i8] c"Cannot get IP address for domain: '%s'\0A\00", align 1
@PF_INET = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @set_socket(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = call ptr @gethostbyname(ptr noundef @.str)
store ptr %4, ptr %3, align 8
%5 = icmp eq ptr %4, null
br i1 %5, label %6, label %11
6: ; preds = %1
%7 = call i32 @perror(ptr noundef @.str.1)
%8 = load i32, ptr @stderr, align 4
%9 = call i32 @fprintf(i32 noundef %8, ptr noundef @.str.2, ptr noundef @.str)
%10 = call i32 (...) @abort() #4
unreachable
11: ; preds = %1
%12 = load i32, ptr @PF_INET, align 4
%13 = load ptr, ptr %2, align 8
%14 = getelementptr inbounds %struct.sockaddr_in, ptr %13, i32 0, i32 3
store i32 %12, ptr %14, align 4
%15 = call i32 @htons(i32 noundef 6667)
%16 = load ptr, ptr %2, align 8
%17 = getelementptr inbounds %struct.sockaddr_in, ptr %16, i32 0, i32 2
store i32 %15, ptr %17, align 4
%18 = load ptr, ptr %2, align 8
%19 = getelementptr inbounds %struct.sockaddr_in, ptr %18, i32 0, i32 1
%20 = load ptr, ptr %3, align 8
%21 = getelementptr inbounds %struct.hostent, ptr %20, i32 0, i32 0
%22 = load ptr, ptr %21, align 8
%23 = getelementptr inbounds i64, ptr %22, i64 0
%24 = load i64, ptr %23, align 8
%25 = inttoptr i64 %24 to ptr
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 4 %25, i64 4, i1 false)
%26 = load ptr, ptr %2, align 8
%27 = getelementptr inbounds %struct.sockaddr_in, ptr %26, i32 0, i32 0
%28 = call i32 @memset(ptr noundef %27, i8 noundef signext 0, i32 noundef 2)
ret void
}
declare ptr @gethostbyname(ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
declare i32 @htons(i32 noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3
declare i32 @memset(ptr noundef, i8 noundef signext, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_4n10obq.c'
source_filename = "/tmp/tmp_4n10obq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"= Aufgabe 18.2 =\0A\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c"const int p => %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @boo(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 20, ptr %3, align 4
store ptr %3, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = load i32, ptr %5, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %6)
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/tmp_4n10obq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"= Aufgabe 18.2 =\0A\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c"const int p => %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @boo(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 20, ptr %3, align 4
store ptr %3, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = load i32, ptr %5, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %6)
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/tmpy39vq7z5.c'
source_filename = "/tmp/tmpy39vq7z5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [22 x i8] c"Usage:%s -h -n -p -s\0A\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"-h print help info\0A\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"-n null pointer\0A\00", align 1
@.str.3 = private unnamed_addr constant [19 x i8] c"-p panic\0A\00", align 1
@.str.4 = private unnamed_addr constant [27 x i8] c"-s spinlock hang\0A\00", align 1
@.str.5 = private unnamed_addr constant [35 x i8] c"-a kernel stack overflow\0A\00", align 1
@.str.6 = private unnamed_addr constant [40 x i8] c"-m kernel thread null pointer\0A\00", align 1
@.str.7 = private unnamed_addr constant [32 x i8] c"-g general protection\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = load ptr, ptr %2, align 8
%5 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef %4)
%6 = load i32, ptr @stderr, align 4
%7 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %6, ptr noundef @.str.1)
%8 = load i32, ptr @stderr, align 4
%9 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %8, ptr noundef @.str.2)
%10 = load i32, ptr @stderr, align 4
%11 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %10, ptr noundef @.str.3)
%12 = load i32, ptr @stderr, align 4
%13 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %12, ptr noundef @.str.4)
%14 = load i32, ptr @stderr, align 4
%15 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %14, ptr noundef @.str.5)
%16 = load i32, ptr @stderr, align 4
%17 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %16, ptr noundef @.str.6)
%18 = load i32, ptr @stderr, align 4
%19 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %18, ptr noundef @.str.7)
ret void
}
declare i32 @fprintf(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/tmpy39vq7z5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [22 x i8] c"Usage:%s -h -n -p -s\0A\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"-h print help info\0A\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"-n null pointer\0A\00", align 1
@.str.3 = private unnamed_addr constant [19 x i8] c"-p panic\0A\00", align 1
@.str.4 = private unnamed_addr constant [27 x i8] c"-s spinlock hang\0A\00", align 1
@.str.5 = private unnamed_addr constant [35 x i8] c"-a kernel stack overflow\0A\00", align 1
@.str.6 = private unnamed_addr constant [40 x i8] c"-m kernel thread null pointer\0A\00", align 1
@.str.7 = private unnamed_addr constant [32 x i8] c"-g general protection\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @stderr, align 4
%4 = load ptr, ptr %2, align 8
%5 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %3, ptr noundef @.str, ptr noundef %4)
%6 = load i32, ptr @stderr, align 4
%7 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %6, ptr noundef @.str.1)
%8 = load i32, ptr @stderr, align 4
%9 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %8, ptr noundef @.str.2)
%10 = load i32, ptr @stderr, align 4
%11 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %10, ptr noundef @.str.3)
%12 = load i32, ptr @stderr, align 4
%13 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %12, ptr noundef @.str.4)
%14 = load i32, ptr @stderr, align 4
%15 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %14, ptr noundef @.str.5)
%16 = load i32, ptr @stderr, align 4
%17 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %16, ptr noundef @.str.6)
%18 = load i32, ptr @stderr, align 4
%19 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %18, ptr noundef @.str.7)
ret void
}
declare i32 @fprintf(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/tmpq4gv_dvo.c'
source_filename = "/tmp/tmpq4gv_dvo.c"
target datalayout = "e-m:e-p270: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/tmpq4gv_dvo.c"
target datalayout = "e-m:e-p270: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/tmpd9t18xh2.c'
source_filename = "/tmp/tmpd9t18xh2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Rx(float noundef %0, ptr noundef %1) #0 {
%3 = alloca float, align 4
%4 = alloca ptr, align 8
%5 = alloca double, align 8
store float %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%6 = load float, ptr %3, align 4
%7 = fpext float %6 to double
%8 = fmul double %7, 0x3F91DF46A1FAE712
store double %8, ptr %5, align 8
%9 = load ptr, ptr %4, align 8
%10 = getelementptr inbounds [4 x float], ptr %9, i64 0
%11 = getelementptr inbounds [4 x float], ptr %10, i64 0, i64 0
store float 1.000000e+00, ptr %11, align 4
%12 = load ptr, ptr %4, align 8
%13 = getelementptr inbounds [4 x float], ptr %12, i64 0
%14 = getelementptr inbounds [4 x float], ptr %13, i64 0, i64 1
store float 0.000000e+00, ptr %14, align 4
%15 = load ptr, ptr %4, align 8
%16 = getelementptr inbounds [4 x float], ptr %15, i64 0
%17 = getelementptr inbounds [4 x float], ptr %16, i64 0, i64 2
store float 0.000000e+00, ptr %17, align 4
%18 = load ptr, ptr %4, align 8
%19 = getelementptr inbounds [4 x float], ptr %18, i64 0
%20 = getelementptr inbounds [4 x float], ptr %19, i64 0, i64 3
store float 0.000000e+00, ptr %20, align 4
%21 = load ptr, ptr %4, align 8
%22 = getelementptr inbounds [4 x float], ptr %21, i64 1
%23 = getelementptr inbounds [4 x float], ptr %22, i64 0, i64 0
store float 0.000000e+00, ptr %23, align 4
%24 = load double, ptr %5, align 8
%25 = call float @cos(double noundef %24)
%26 = load ptr, ptr %4, align 8
%27 = getelementptr inbounds [4 x float], ptr %26, i64 1
%28 = getelementptr inbounds [4 x float], ptr %27, i64 0, i64 1
store float %25, ptr %28, align 4
%29 = load double, ptr %5, align 8
%30 = call float @sin(double noundef %29)
%31 = fneg float %30
%32 = load ptr, ptr %4, align 8
%33 = getelementptr inbounds [4 x float], ptr %32, i64 1
%34 = getelementptr inbounds [4 x float], ptr %33, i64 0, i64 2
store float %31, ptr %34, align 4
%35 = load ptr, ptr %4, align 8
%36 = getelementptr inbounds [4 x float], ptr %35, i64 1
%37 = getelementptr inbounds [4 x float], ptr %36, i64 0, i64 3
store float 0.000000e+00, ptr %37, align 4
%38 = load ptr, ptr %4, align 8
%39 = getelementptr inbounds [4 x float], ptr %38, i64 2
%40 = getelementptr inbounds [4 x float], ptr %39, i64 0, i64 0
store float 0.000000e+00, ptr %40, align 4
%41 = load double, ptr %5, align 8
%42 = call float @sin(double noundef %41)
%43 = load ptr, ptr %4, align 8
%44 = getelementptr inbounds [4 x float], ptr %43, i64 2
%45 = getelementptr inbounds [4 x float], ptr %44, i64 0, i64 1
store float %42, ptr %45, align 4
%46 = load double, ptr %5, align 8
%47 = call float @cos(double noundef %46)
%48 = load ptr, ptr %4, align 8
%49 = getelementptr inbounds [4 x float], ptr %48, i64 2
%50 = getelementptr inbounds [4 x float], ptr %49, i64 0, i64 2
store float %47, ptr %50, align 4
%51 = load ptr, ptr %4, align 8
%52 = getelementptr inbounds [4 x float], ptr %51, i64 2
%53 = getelementptr inbounds [4 x float], ptr %52, i64 0, i64 3
store float 0.000000e+00, ptr %53, align 4
%54 = load ptr, ptr %4, align 8
%55 = getelementptr inbounds [4 x float], ptr %54, i64 3
%56 = getelementptr inbounds [4 x float], ptr %55, i64 0, i64 0
store float 0.000000e+00, ptr %56, align 4
%57 = load ptr, ptr %4, align 8
%58 = getelementptr inbounds [4 x float], ptr %57, i64 3
%59 = getelementptr inbounds [4 x float], ptr %58, i64 0, i64 1
store float 0.000000e+00, ptr %59, align 4
%60 = load ptr, ptr %4, align 8
%61 = getelementptr inbounds [4 x float], ptr %60, i64 3
%62 = getelementptr inbounds [4 x float], ptr %61, i64 0, i64 2
store float 0.000000e+00, ptr %62, align 4
%63 = load ptr, ptr %4, align 8
%64 = getelementptr inbounds [4 x float], ptr %63, i64 3
%65 = getelementptr inbounds [4 x float], ptr %64, i64 0, i64 3
store float 1.000000e+00, ptr %65, align 4
ret void
}
declare float @cos(double noundef) #1
declare float @sin(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/tmpd9t18xh2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Rx(float noundef %0, ptr noundef %1) #0 {
%3 = alloca float, align 4
%4 = alloca ptr, align 8
%5 = alloca double, align 8
store float %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%6 = load float, ptr %3, align 4
%7 = fpext float %6 to double
%8 = fmul double %7, 0x3F91DF46A1FAE712
store double %8, ptr %5, align 8
%9 = load ptr, ptr %4, align 8
%10 = getelementptr inbounds [4 x float], ptr %9, i64 0
%11 = getelementptr inbounds [4 x float], ptr %10, i64 0, i64 0
store float 1.000000e+00, ptr %11, align 4
%12 = load ptr, ptr %4, align 8
%13 = getelementptr inbounds [4 x float], ptr %12, i64 0
%14 = getelementptr inbounds [4 x float], ptr %13, i64 0, i64 1
store float 0.000000e+00, ptr %14, align 4
%15 = load ptr, ptr %4, align 8
%16 = getelementptr inbounds [4 x float], ptr %15, i64 0
%17 = getelementptr inbounds [4 x float], ptr %16, i64 0, i64 2
store float 0.000000e+00, ptr %17, align 4
%18 = load ptr, ptr %4, align 8
%19 = getelementptr inbounds [4 x float], ptr %18, i64 0
%20 = getelementptr inbounds [4 x float], ptr %19, i64 0, i64 3
store float 0.000000e+00, ptr %20, align 4
%21 = load ptr, ptr %4, align 8
%22 = getelementptr inbounds [4 x float], ptr %21, i64 1
%23 = getelementptr inbounds [4 x float], ptr %22, i64 0, i64 0
store float 0.000000e+00, ptr %23, align 4
%24 = load double, ptr %5, align 8
%25 = call float @cos(double noundef %24)
%26 = load ptr, ptr %4, align 8
%27 = getelementptr inbounds [4 x float], ptr %26, i64 1
%28 = getelementptr inbounds [4 x float], ptr %27, i64 0, i64 1
store float %25, ptr %28, align 4
%29 = load double, ptr %5, align 8
%30 = call float @sin(double noundef %29)
%31 = fneg float %30
%32 = load ptr, ptr %4, align 8
%33 = getelementptr inbounds [4 x float], ptr %32, i64 1
%34 = getelementptr inbounds [4 x float], ptr %33, i64 0, i64 2
store float %31, ptr %34, align 4
%35 = load ptr, ptr %4, align 8
%36 = getelementptr inbounds [4 x float], ptr %35, i64 1
%37 = getelementptr inbounds [4 x float], ptr %36, i64 0, i64 3
store float 0.000000e+00, ptr %37, align 4
%38 = load ptr, ptr %4, align 8
%39 = getelementptr inbounds [4 x float], ptr %38, i64 2
%40 = getelementptr inbounds [4 x float], ptr %39, i64 0, i64 0
store float 0.000000e+00, ptr %40, align 4
%41 = load double, ptr %5, align 8
%42 = call float @sin(double noundef %41)
%43 = load ptr, ptr %4, align 8
%44 = getelementptr inbounds [4 x float], ptr %43, i64 2
%45 = getelementptr inbounds [4 x float], ptr %44, i64 0, i64 1
store float %42, ptr %45, align 4
%46 = load double, ptr %5, align 8
%47 = call float @cos(double noundef %46)
%48 = load ptr, ptr %4, align 8
%49 = getelementptr inbounds [4 x float], ptr %48, i64 2
%50 = getelementptr inbounds [4 x float], ptr %49, i64 0, i64 2
store float %47, ptr %50, align 4
%51 = load ptr, ptr %4, align 8
%52 = getelementptr inbounds [4 x float], ptr %51, i64 2
%53 = getelementptr inbounds [4 x float], ptr %52, i64 0, i64 3
store float 0.000000e+00, ptr %53, align 4
%54 = load ptr, ptr %4, align 8
%55 = getelementptr inbounds [4 x float], ptr %54, i64 3
%56 = getelementptr inbounds [4 x float], ptr %55, i64 0, i64 0
store float 0.000000e+00, ptr %56, align 4
%57 = load ptr, ptr %4, align 8
%58 = getelementptr inbounds [4 x float], ptr %57, i64 3
%59 = getelementptr inbounds [4 x float], ptr %58, i64 0, i64 1
store float 0.000000e+00, ptr %59, align 4
%60 = load ptr, ptr %4, align 8
%61 = getelementptr inbounds [4 x float], ptr %60, i64 3
%62 = getelementptr inbounds [4 x float], ptr %61, i64 0, i64 2
store float 0.000000e+00, ptr %62, align 4
%63 = load ptr, ptr %4, align 8
%64 = getelementptr inbounds [4 x float], ptr %63, i64 3
%65 = getelementptr inbounds [4 x float], ptr %64, i64 0, i64 3
store float 1.000000e+00, ptr %65, align 4
ret void
}
declare float @cos(double noundef) #1
declare float @sin(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/tmpcnia67fk.c'
source_filename = "/tmp/tmpcnia67fk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENOSYS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @__sprofil(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store ptr %2, ptr %8, align 8
store i32 %3, ptr %9, align 4
%10 = load i32, ptr %7, align 4
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %13
12: ; preds = %4
store i32 0, ptr %5, align 4
br label %16
13: ; preds = %4
%14 = load i32, ptr @ENOSYS, align 4
%15 = call i32 @__set_errno(i32 noundef %14)
store i32 -1, ptr %5, align 4
br label %16
16: ; preds = %13, %12
%17 = load i32, ptr %5, align 4
ret i32 %17
}
declare i32 @__set_errno(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/tmpcnia67fk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENOSYS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @__sprofil(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store ptr %2, ptr %8, align 8
store i32 %3, ptr %9, align 4
%10 = load i32, ptr %7, align 4
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %13
12: ; preds = %4
store i32 0, ptr %5, align 4
br label %16
13: ; preds = %4
%14 = load i32, ptr @ENOSYS, align 4
%15 = call i32 @__set_errno(i32 noundef %14)
store i32 -1, ptr %5, align 4
br label %16
16: ; preds = %13, %12
%17 = load i32, ptr %5, align 4
ret i32 %17
}
declare i32 @__set_errno(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/tmp7y8jnfxk.c'
source_filename = "/tmp/tmp7y8jnfxk.c"
target datalayout = "e-m:e-p270: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/tmp7y8jnfxk.c"
target datalayout = "e-m:e-p270: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/tmpuzkpktvs.c'
source_filename = "/tmp/tmpuzkpktvs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@S_IFDIR = dso_local global i32 0, align 4
@S_IFMT = 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/tmpuzkpktvs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@S_IFDIR = dso_local global i32 0, align 4
@S_IFMT = 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/tmpv5j25ep0.c'
source_filename = "/tmp/tmpv5j25ep0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 poison, ptr %3, align 4
%5 = load i32, ptr %2, align 4
%6 = add nsw i32 %5, 32
%7 = shl i32 1, %6
store i32 %7, ptr %4, align 4
%8 = load i32, ptr %3, align 4
%9 = icmp eq i32 %8, 0
%10 = zext i1 %9 to i32
%11 = call i32 @assert(i32 noundef %10)
%12 = load i32, ptr %4, align 4
%13 = icmp eq i32 %12, 1
%14 = zext i1 %13 to i32
%15 = call i32 @assert(i32 noundef %14)
ret i32 0
}
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/tmpv5j25ep0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 poison, ptr %3, align 4
%5 = load i32, ptr %2, align 4
%6 = add nsw i32 %5, 32
%7 = shl i32 1, %6
store i32 %7, ptr %4, align 4
%8 = load i32, ptr %3, align 4
%9 = icmp eq i32 %8, 0
%10 = zext i1 %9 to i32
%11 = call i32 @assert(i32 noundef %10)
%12 = load i32, ptr %4, align 4
%13 = icmp eq i32 %12, 1
%14 = zext i1 %13 to i32
%15 = call i32 @assert(i32 noundef %14)
ret i32 0
}
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/tmpymu2dj9o.c'
source_filename = "/tmp/tmpymu2dj9o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Exit called with %d\0A\00", align 1
; Function Attrs: noinline noreturn nounwind sspstrong uwtable
define dso_local void @exit(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @printf(ptr noundef @.str, i32 noundef %3)
%5 = call i32 (...) @runtime_exit()
unreachable
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @runtime_exit(...) #1
attributes #0 = { noinline noreturn nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpymu2dj9o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Exit called with %d\0A\00", align 1
; Function Attrs: noinline noreturn nounwind sspstrong uwtable
define dso_local void @exit(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @printf(ptr noundef @.str, i32 noundef %3)
%5 = call i32 (...) @runtime_exit()
unreachable
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @runtime_exit(...) #1
attributes #0 = { noinline noreturn nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmppcu4xxd7.c'
source_filename = "/tmp/tmppcu4xxd7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @close_database(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 @sqlite3_close(ptr noundef %3)
ret void
}
declare i32 @sqlite3_close(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmppcu4xxd7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @close_database(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 @sqlite3_close(ptr noundef %3)
ret void
}
declare i32 @sqlite3_close(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmps3htr9xa.c'
source_filename = "/tmp/tmps3htr9xa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @foo_s64(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store i64 %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load i64, ptr %3, align 8
%6 = load i64, ptr %4, align 8
%7 = sub nsw i64 0, %6
%8 = icmp eq i64 %5, %7
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = call i32 (...) @abort() #2
unreachable
11: ; preds = %2
ret void
}
; Function Attrs: noreturn
declare i32 @abort(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmps3htr9xa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @foo_s64(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store i64 %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load i64, ptr %3, align 8
%6 = load i64, ptr %4, align 8
%7 = sub nsw i64 0, %6
%8 = icmp eq i64 %5, %7
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = call i32 (...) @abort() #2
unreachable
11: ; preds = %2
ret void
}
; Function Attrs: noreturn
declare i32 @abort(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpabllq7nh.c'
source_filename = "/tmp/tmpabllq7nh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @map_post_func_2(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 @json_value_free(ptr noundef %3)
ret void
}
declare i32 @json_value_free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpabllq7nh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @map_post_func_2(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 @json_value_free(ptr noundef %3)
ret void
}
declare i32 @json_value_free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp94tkhe2z.c'
source_filename = "/tmp/tmp94tkhe2z.c"
target datalayout = "e-m:e-p270: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/tmp94tkhe2z.c"
target datalayout = "e-m:e-p270: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/tmp1fpime5z.c'
source_filename = "/tmp/tmp1fpime5z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Normal Write.\0A\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"Forced Write.\0A\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [26 x i8] c"Could not open the file.\0A\00", align 1
@.str.3 = private unnamed_addr constant [39 x i8] c"Could not write to the file normally.\0A\00", align 1
@.str.4 = private unnamed_addr constant [36 x i8] c"Could not force write to the file.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%12 = load i32, ptr %4, align 4
%13 = icmp slt i32 %12, 2
br i1 %13, label %14, label %16
14: ; preds = %2
%15 = call i32 (...) @usage()
br label %16
16: ; preds = %14, %2
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds ptr, ptr %17, i64 1
%19 = load ptr, ptr %18, align 8
store ptr %19, ptr %6, align 8
store ptr @.str, ptr %7, align 8
%20 = load ptr, ptr %7, align 8
%21 = call i32 @strlen(ptr noundef %20)
%22 = add nsw i32 %21, 1
%23 = sext i32 %22 to i64
%24 = mul i64 %23, 1
%25 = trunc i64 %24 to i32
store i32 %25, ptr %8, align 4
store ptr @.str.1, ptr %9, align 8
%26 = load ptr, ptr %9, align 8
%27 = call i32 @strlen(ptr noundef %26)
%28 = add nsw i32 %27, 1
%29 = sext i32 %28 to i64
%30 = mul i64 %29, 1
%31 = trunc i64 %30 to i32
store i32 %31, ptr %10, align 4
%32 = load ptr, ptr %6, align 8
%33 = load i32, ptr @O_RDONLY, align 4
%34 = call i32 @open(ptr noundef %32, i32 noundef %33)
store i32 %34, ptr %11, align 4
%35 = load i32, ptr %11, align 4
%36 = icmp slt i32 %35, 0
br i1 %36, label %37, label %39
37: ; preds = %16
%38 = call i32 @printf(ptr noundef @.str.2)
store i32 -1, ptr %3, align 4
br label %58
39: ; preds = %16
%40 = load i32, ptr %11, align 4
%41 = load ptr, ptr %7, align 8
%42 = load i32, ptr %8, align 4
%43 = call i32 @write(i32 noundef %40, ptr noundef %41, i32 noundef %42)
%44 = load i32, ptr %8, align 4
%45 = icmp ne i32 %43, %44
br i1 %45, label %46, label %48
46: ; preds = %39
%47 = call i32 @printf(ptr noundef @.str.3)
br label %48
48: ; preds = %46, %39
%49 = load i32, ptr %11, align 4
%50 = load ptr, ptr %9, align 8
%51 = load i32, ptr %10, align 4
%52 = call i32 @syscall(i32 noundef 291, i32 noundef %49, ptr noundef %50, i32 noundef %51)
%53 = load i32, ptr %10, align 4
%54 = icmp ne i32 %52, %53
br i1 %54, label %55, label %57
55: ; preds = %48
%56 = call i32 @printf(ptr noundef @.str.4)
store i32 -1, ptr %3, align 4
br label %58
57: ; preds = %48
store i32 0, ptr %3, align 4
br label %58
58: ; preds = %57, %55, %37
%59 = load i32, ptr %3, align 4
ret i32 %59
}
declare i32 @usage(...) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @syscall(i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1fpime5z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Normal Write.\0A\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"Forced Write.\0A\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [26 x i8] c"Could not open the file.\0A\00", align 1
@.str.3 = private unnamed_addr constant [39 x i8] c"Could not write to the file normally.\0A\00", align 1
@.str.4 = private unnamed_addr constant [36 x i8] c"Could not force write to the file.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%12 = load i32, ptr %4, align 4
%13 = icmp slt i32 %12, 2
br i1 %13, label %14, label %16
14: ; preds = %2
%15 = call i32 (...) @usage()
br label %16
16: ; preds = %14, %2
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds ptr, ptr %17, i64 1
%19 = load ptr, ptr %18, align 8
store ptr %19, ptr %6, align 8
store ptr @.str, ptr %7, align 8
%20 = load ptr, ptr %7, align 8
%21 = call i32 @strlen(ptr noundef %20)
%22 = add nsw i32 %21, 1
%23 = sext i32 %22 to i64
%24 = mul i64 %23, 1
%25 = trunc i64 %24 to i32
store i32 %25, ptr %8, align 4
store ptr @.str.1, ptr %9, align 8
%26 = load ptr, ptr %9, align 8
%27 = call i32 @strlen(ptr noundef %26)
%28 = add nsw i32 %27, 1
%29 = sext i32 %28 to i64
%30 = mul i64 %29, 1
%31 = trunc i64 %30 to i32
store i32 %31, ptr %10, align 4
%32 = load ptr, ptr %6, align 8
%33 = load i32, ptr @O_RDONLY, align 4
%34 = call i32 @open(ptr noundef %32, i32 noundef %33)
store i32 %34, ptr %11, align 4
%35 = load i32, ptr %11, align 4
%36 = icmp slt i32 %35, 0
br i1 %36, label %37, label %39
37: ; preds = %16
%38 = call i32 @printf(ptr noundef @.str.2)
store i32 -1, ptr %3, align 4
br label %58
39: ; preds = %16
%40 = load i32, ptr %11, align 4
%41 = load ptr, ptr %7, align 8
%42 = load i32, ptr %8, align 4
%43 = call i32 @write(i32 noundef %40, ptr noundef %41, i32 noundef %42)
%44 = load i32, ptr %8, align 4
%45 = icmp ne i32 %43, %44
br i1 %45, label %46, label %48
46: ; preds = %39
%47 = call i32 @printf(ptr noundef @.str.3)
br label %48
48: ; preds = %46, %39
%49 = load i32, ptr %11, align 4
%50 = load ptr, ptr %9, align 8
%51 = load i32, ptr %10, align 4
%52 = call i32 @syscall(i32 noundef 291, i32 noundef %49, ptr noundef %50, i32 noundef %51)
%53 = load i32, ptr %10, align 4
%54 = icmp ne i32 %52, %53
br i1 %54, label %55, label %57
55: ; preds = %48
%56 = call i32 @printf(ptr noundef @.str.4)
store i32 -1, ptr %3, align 4
br label %58
57: ; preds = %48
store i32 0, ptr %3, align 4
br label %58
58: ; preds = %57, %55, %37
%59 = load i32, ptr %3, align 4
ret i32 %59
}
declare i32 @usage(...) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @syscall(i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpk30iy4aa.c'
source_filename = "/tmp/tmpk30iy4aa.c"
target datalayout = "e-m:e-p270: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/tmpk30iy4aa.c"
target datalayout = "e-m:e-p270: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/tmp4p7w2oqb.c'
source_filename = "/tmp/tmp4p7w2oqb.c"
target datalayout = "e-m:e-p270: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/tmp4p7w2oqb.c"
target datalayout = "e-m:e-p270: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/tmpcj9ocss9.c'
source_filename = "/tmp/tmpcj9ocss9.c"
target datalayout = "e-m:e-p270: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/tmpcj9ocss9.c"
target datalayout = "e-m:e-p270: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/tmp2v5f82e4.c'
source_filename = "/tmp/tmp2v5f82e4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ehnlc_strchr(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
br label %6
6: ; preds = %20, %2
%7 = load ptr, ptr %4, align 8
%8 = load i8, ptr %7, align 1
%9 = sext i8 %8 to i32
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %17
11: ; preds = %6
%12 = load ptr, ptr %4, align 8
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = load i32, ptr %5, align 4
%16 = icmp ne i32 %14, %15
br label %17
17: ; preds = %11, %6
%18 = phi i1 [ false, %6 ], [ %16, %11 ]
br i1 %18, label %19, label %23
19: ; preds = %17
br label %20
20: ; preds = %19
%21 = load ptr, ptr %4, align 8
%22 = getelementptr inbounds i8, ptr %21, i32 1
store ptr %22, ptr %4, align 8
br label %6, !llvm.loop !6
23: ; preds = %17
%24 = load ptr, ptr %4, align 8
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
%27 = icmp eq i32 %26, 0
br i1 %27, label %28, label %32
28: ; preds = %23
%29 = load i32, ptr %5, align 4
%30 = icmp ne i32 %29, 0
br i1 %30, label %31, label %32
31: ; preds = %28
store ptr null, ptr %3, align 8
br label %34
32: ; preds = %28, %23
%33 = load ptr, ptr %4, align 8
store ptr %33, ptr %3, align 8
br label %34
34: ; preds = %32, %31
%35 = load ptr, ptr %3, align 8
ret ptr %35
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp2v5f82e4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ehnlc_strchr(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
br label %6
6: ; preds = %20, %2
%7 = load ptr, ptr %4, align 8
%8 = load i8, ptr %7, align 1
%9 = sext i8 %8 to i32
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %17
11: ; preds = %6
%12 = load ptr, ptr %4, align 8
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = load i32, ptr %5, align 4
%16 = icmp ne i32 %14, %15
br label %17
17: ; preds = %11, %6
%18 = phi i1 [ false, %6 ], [ %16, %11 ]
br i1 %18, label %19, label %23
19: ; preds = %17
br label %20
20: ; preds = %19
%21 = load ptr, ptr %4, align 8
%22 = getelementptr inbounds i8, ptr %21, i32 1
store ptr %22, ptr %4, align 8
br label %6, !llvm.loop !6
23: ; preds = %17
%24 = load ptr, ptr %4, align 8
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
%27 = icmp eq i32 %26, 0
br i1 %27, label %28, label %32
28: ; preds = %23
%29 = load i32, ptr %5, align 4
%30 = icmp ne i32 %29, 0
br i1 %30, label %31, label %32
31: ; preds = %28
store ptr null, ptr %3, align 8
br label %34
32: ; preds = %28, %23
%33 = load ptr, ptr %4, align 8
store ptr %33, ptr %3, align 8
br label %34
34: ; preds = %32, %31
%35 = load ptr, ptr %3, align 8
ret ptr %35
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpjg9skkss.c'
source_filename = "/tmp/tmpjg9skkss.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Usage:\0A\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c" ./main [FILE]\0A\00", align 1
@.str.2 = private unnamed_addr constant [46 x i8] c"where FILE is the file for TOPL to interpret\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @help() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @printf(ptr noundef @.str.1)
%3 = call i32 @printf(ptr noundef @.str.2)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjg9skkss.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Usage:\0A\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c" ./main [FILE]\0A\00", align 1
@.str.2 = private unnamed_addr constant [46 x i8] c"where FILE is the file for TOPL to interpret\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @help() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @printf(ptr noundef @.str.1)
%3 = call i32 @printf(ptr noundef @.str.2)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmliv2toz.c'
source_filename = "/tmp/tmpmliv2toz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @tanger_stm_calloc(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
store i64 %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%6 = load i64, ptr %3, align 8
%7 = load i64, ptr %4, align 8
%8 = mul i64 %6, %7
%9 = call ptr @_ITM_malloc(i64 noundef %8)
store ptr %9, ptr %5, align 8
%10 = load ptr, ptr %5, align 8
%11 = load i64, ptr %3, align 8
%12 = load i64, ptr %4, align 8
%13 = mul i64 %11, %12
%14 = call i32 @memset(ptr noundef %10, i32 noundef 0, i64 noundef %13)
%15 = load ptr, ptr %5, align 8
ret ptr %15
}
declare ptr @_ITM_malloc(i64 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmliv2toz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @tanger_stm_calloc(i64 noundef %0, i64 noundef %1) #0 {
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
store i64 %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%6 = load i64, ptr %3, align 8
%7 = load i64, ptr %4, align 8
%8 = mul i64 %6, %7
%9 = call ptr @_ITM_malloc(i64 noundef %8)
store ptr %9, ptr %5, align 8
%10 = load ptr, ptr %5, align 8
%11 = load i64, ptr %3, align 8
%12 = load i64, ptr %4, align 8
%13 = mul i64 %11, %12
%14 = call i32 @memset(ptr noundef %10, i32 noundef 0, i64 noundef %13)
%15 = load ptr, ptr %5, align 8
ret ptr %15
}
declare ptr @_ITM_malloc(i64 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3lkw6s7d.c'
source_filename = "/tmp/tmp3lkw6s7d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%d lines, %d chars, %d matched chars\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [80 x i8], align 16
%3 = alloca [80 x i8], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memset.p0.i64(ptr align 16 %2, i8 0, i64 80, i1 false)
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
br label %8
8: ; preds = %30, %0
%9 = getelementptr inbounds [80 x i8], ptr %3, i64 0, i64 0
%10 = call i64 @gets(ptr noundef %9)
%11 = icmp ne i64 %10, 0
br i1 %11, label %12, label %46
12: ; preds = %8
store i32 0, ptr %7, align 4
br label %13
13: ; preds = %27, %12
%14 = load i32, ptr %7, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [80 x i8], ptr %3, i64 0, i64 %15
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = load i32, ptr %7, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 %20
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = icmp ne i32 %18, %23
br i1 %24, label %25, label %26
25: ; preds = %13
br label %30
26: ; preds = %13
br label %27
27: ; preds = %26
%28 = load i32, ptr %7, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %7, align 4
br label %13
30: ; preds = %25
%31 = load i32, ptr %4, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %4, align 4
%33 = getelementptr inbounds [80 x i8], ptr %3, i64 0, i64 0
%34 = call i64 @strlen(ptr noundef %33)
%35 = add nsw i64 %34, 1
%36 = load i32, ptr %5, align 4
%37 = sext i32 %36 to i64
%38 = add nsw i64 %37, %35
%39 = trunc i64 %38 to i32
store i32 %39, ptr %5, align 4
%40 = load i32, ptr %7, align 4
%41 = load i32, ptr %6, align 4
%42 = add nsw i32 %41, %40
store i32 %42, ptr %6, align 4
%43 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 0
%44 = getelementptr inbounds [80 x i8], ptr %3, i64 0, i64 0
%45 = call i32 @strcpy(ptr noundef %43, ptr noundef %44)
br label %8, !llvm.loop !6
46: ; preds = %8
%47 = load i32, ptr %4, align 4
%48 = load i32, ptr %5, align 4
%49 = load i32, ptr %6, align 4
%50 = call i32 @printf(ptr noundef @.str, i32 noundef %47, i32 noundef %48, i32 noundef %49)
%51 = call i32 @exit(i32 noundef 0) #4
unreachable
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i64 @gets(ptr noundef) #2
declare i64 @strlen(ptr noundef) #2
declare i32 @strcpy(ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3lkw6s7d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%d lines, %d chars, %d matched chars\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [80 x i8], align 16
%3 = alloca [80 x i8], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memset.p0.i64(ptr align 16 %2, i8 0, i64 80, i1 false)
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
%8 = getelementptr inbounds [80 x i8], ptr %3, i64 0, i64 0
%9 = call i64 @gets(ptr noundef %8)
%10 = icmp ne i64 %9, 0
br i1 %10, label %.lr.ph2, label %57
.lr.ph2: ; preds = %0
br label %11
11: ; preds = %.lr.ph2, %39
store i32 0, ptr %7, align 4
%12 = load i32, ptr %7, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [80 x i8], ptr %3, i64 0, i64 %13
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
%17 = load i32, ptr %7, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 %18
%20 = load i8, ptr %19, align 1
%21 = sext i8 %20 to i32
%22 = icmp ne i32 %16, %21
br i1 %22, label %23, label %.lr.ph
.lr.ph: ; preds = %11
br label %24
._crit_edge: ; preds = %25
br label %23
23: ; preds = %._crit_edge, %11
br label %39
24: ; preds = %.lr.ph, %25
br label %25
25: ; preds = %24
%26 = load i32, ptr %7, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %7, align 4
%28 = load i32, ptr %7, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [80 x i8], ptr %3, i64 0, i64 %29
%31 = load i8, ptr %30, align 1
%32 = sext i8 %31 to i32
%33 = load i32, ptr %7, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 %34
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = icmp ne i32 %32, %37
br i1 %38, label %._crit_edge, label %24
39: ; preds = %23
%40 = load i32, ptr %4, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %4, align 4
%42 = getelementptr inbounds [80 x i8], ptr %3, i64 0, i64 0
%43 = call i64 @strlen(ptr noundef %42)
%44 = add nsw i64 %43, 1
%45 = load i32, ptr %5, align 4
%46 = sext i32 %45 to i64
%47 = add nsw i64 %46, %44
%48 = trunc i64 %47 to i32
store i32 %48, ptr %5, align 4
%49 = load i32, ptr %7, align 4
%50 = load i32, ptr %6, align 4
%51 = add nsw i32 %50, %49
store i32 %51, ptr %6, align 4
%52 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 0
%53 = getelementptr inbounds [80 x i8], ptr %3, i64 0, i64 0
%54 = call i32 @strcpy(ptr noundef %52, ptr noundef %53)
%55 = call i64 @gets(ptr noundef %8)
%56 = icmp ne i64 %55, 0
br i1 %56, label %11, label %._crit_edge3, !llvm.loop !6
._crit_edge3: ; preds = %39
br label %57
57: ; preds = %._crit_edge3, %0
%58 = load i32, ptr %4, align 4
%59 = load i32, ptr %5, align 4
%60 = load i32, ptr %6, align 4
%61 = call i32 @printf(ptr noundef @.str, i32 noundef %58, i32 noundef %59, i32 noundef %60)
%62 = call i32 @exit(i32 noundef 0) #4
unreachable
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i64 @gets(ptr noundef) #2
declare i64 @strlen(ptr noundef) #2
declare i32 @strcpy(ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp6xbb1mw9.c'
source_filename = "/tmp/tmp6xbb1mw9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @stringReplace(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca 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 null, ptr %8, align 8
%10 = load ptr, ptr %5, align 8
%11 = load ptr, ptr %6, align 8
%12 = call ptr @strstr(ptr noundef %10, ptr noundef %11)
store ptr %12, ptr %9, align 8
%13 = load ptr, ptr %9, align 8
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %18
15: ; preds = %3
%16 = load ptr, ptr %5, align 8
%17 = call ptr @strdup(ptr noundef %16)
store ptr %17, ptr %4, align 8
br label %100
18: ; preds = %3
%19 = load ptr, ptr %5, align 8
%20 = call i32 @strlen(ptr noundef %19)
%21 = load ptr, ptr %6, align 8
%22 = call i32 @strlen(ptr noundef %21)
%23 = sub nsw i32 %20, %22
%24 = load ptr, ptr %7, align 8
%25 = call i32 @strlen(ptr noundef %24)
%26 = add nsw i32 %23, %25
%27 = add nsw i32 %26, 1
%28 = call i64 @calloc(i32 noundef %27, i32 noundef 1)
%29 = inttoptr i64 %28 to ptr
store ptr %29, ptr %8, align 8
%30 = load ptr, ptr %8, align 8
%31 = icmp eq ptr %30, null
br i1 %31, label %32, label %33
32: ; preds = %18
store ptr null, ptr %4, align 8
br label %100
33: ; preds = %18
%34 = load ptr, ptr %8, align 8
%35 = load ptr, ptr %5, align 8
%36 = load ptr, ptr %9, align 8
%37 = load ptr, ptr %5, align 8
%38 = ptrtoint ptr %36 to i64
%39 = ptrtoint ptr %37 to i64
%40 = sub i64 %38, %39
%41 = trunc i64 %40 to i32
%42 = call i32 @memcpy(ptr noundef %34, ptr noundef %35, i32 noundef %41)
%43 = load ptr, ptr %8, align 8
%44 = load ptr, ptr %9, align 8
%45 = load ptr, ptr %5, align 8
%46 = ptrtoint ptr %44 to i64
%47 = ptrtoint ptr %45 to i64
%48 = sub i64 %46, %47
%49 = getelementptr inbounds i8, ptr %43, i64 %48
%50 = load ptr, ptr %7, align 8
%51 = load ptr, ptr %7, align 8
%52 = call i32 @strlen(ptr noundef %51)
%53 = call i32 @memcpy(ptr noundef %49, ptr noundef %50, i32 noundef %52)
%54 = load ptr, ptr %8, align 8
%55 = load ptr, ptr %9, align 8
%56 = load ptr, ptr %5, align 8
%57 = ptrtoint ptr %55 to i64
%58 = ptrtoint ptr %56 to i64
%59 = sub i64 %57, %58
%60 = getelementptr inbounds i8, ptr %54, i64 %59
%61 = load ptr, ptr %7, align 8
%62 = call i32 @strlen(ptr noundef %61)
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds i8, ptr %60, i64 %63
%65 = load ptr, ptr %9, align 8
%66 = load ptr, ptr %6, align 8
%67 = call i32 @strlen(ptr noundef %66)
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds i8, ptr %65, i64 %68
%70 = load ptr, ptr %5, align 8
%71 = call i32 @strlen(ptr noundef %70)
%72 = load ptr, ptr %6, align 8
%73 = call i32 @strlen(ptr noundef %72)
%74 = sub nsw i32 %71, %73
%75 = sext i32 %74 to i64
%76 = load ptr, ptr %9, align 8
%77 = load ptr, ptr %5, align 8
%78 = ptrtoint ptr %76 to i64
%79 = ptrtoint ptr %77 to i64
%80 = sub i64 %78, %79
%81 = sub nsw i64 %75, %80
%82 = trunc i64 %81 to i32
%83 = call i32 @memcpy(ptr noundef %64, ptr noundef %69, i32 noundef %82)
%84 = load ptr, ptr %8, align 8
%85 = load ptr, ptr %5, align 8
%86 = call i32 @strlen(ptr noundef %85)
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds i8, ptr %84, i64 %87
%89 = load ptr, ptr %6, align 8
%90 = call i32 @strlen(ptr noundef %89)
%91 = sext i32 %90 to i64
%92 = sub i64 0, %91
%93 = getelementptr inbounds i8, ptr %88, i64 %92
%94 = load ptr, ptr %7, align 8
%95 = call i32 @strlen(ptr noundef %94)
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds i8, ptr %93, i64 %96
%98 = call i32 @memset(ptr noundef %97, i32 noundef 0, i32 noundef 1)
%99 = load ptr, ptr %8, align 8
store ptr %99, ptr %4, align 8
br label %100
100: ; preds = %33, %32, %15
%101 = load ptr, ptr %4, align 8
ret ptr %101
}
declare ptr @strstr(ptr noundef, ptr noundef) #1
declare ptr @strdup(ptr noundef) #1
declare i64 @calloc(i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6xbb1mw9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @stringReplace(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca 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 null, ptr %8, align 8
%10 = load ptr, ptr %5, align 8
%11 = load ptr, ptr %6, align 8
%12 = call ptr @strstr(ptr noundef %10, ptr noundef %11)
store ptr %12, ptr %9, align 8
%13 = load ptr, ptr %9, align 8
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %18
15: ; preds = %3
%16 = load ptr, ptr %5, align 8
%17 = call ptr @strdup(ptr noundef %16)
store ptr %17, ptr %4, align 8
br label %100
18: ; preds = %3
%19 = load ptr, ptr %5, align 8
%20 = call i32 @strlen(ptr noundef %19)
%21 = load ptr, ptr %6, align 8
%22 = call i32 @strlen(ptr noundef %21)
%23 = sub nsw i32 %20, %22
%24 = load ptr, ptr %7, align 8
%25 = call i32 @strlen(ptr noundef %24)
%26 = add nsw i32 %23, %25
%27 = add nsw i32 %26, 1
%28 = call i64 @calloc(i32 noundef %27, i32 noundef 1)
%29 = inttoptr i64 %28 to ptr
store ptr %29, ptr %8, align 8
%30 = load ptr, ptr %8, align 8
%31 = icmp eq ptr %30, null
br i1 %31, label %32, label %33
32: ; preds = %18
store ptr null, ptr %4, align 8
br label %100
33: ; preds = %18
%34 = load ptr, ptr %8, align 8
%35 = load ptr, ptr %5, align 8
%36 = load ptr, ptr %9, align 8
%37 = load ptr, ptr %5, align 8
%38 = ptrtoint ptr %36 to i64
%39 = ptrtoint ptr %37 to i64
%40 = sub i64 %38, %39
%41 = trunc i64 %40 to i32
%42 = call i32 @memcpy(ptr noundef %34, ptr noundef %35, i32 noundef %41)
%43 = load ptr, ptr %8, align 8
%44 = load ptr, ptr %9, align 8
%45 = load ptr, ptr %5, align 8
%46 = ptrtoint ptr %44 to i64
%47 = ptrtoint ptr %45 to i64
%48 = sub i64 %46, %47
%49 = getelementptr inbounds i8, ptr %43, i64 %48
%50 = load ptr, ptr %7, align 8
%51 = load ptr, ptr %7, align 8
%52 = call i32 @strlen(ptr noundef %51)
%53 = call i32 @memcpy(ptr noundef %49, ptr noundef %50, i32 noundef %52)
%54 = load ptr, ptr %8, align 8
%55 = load ptr, ptr %9, align 8
%56 = load ptr, ptr %5, align 8
%57 = ptrtoint ptr %55 to i64
%58 = ptrtoint ptr %56 to i64
%59 = sub i64 %57, %58
%60 = getelementptr inbounds i8, ptr %54, i64 %59
%61 = load ptr, ptr %7, align 8
%62 = call i32 @strlen(ptr noundef %61)
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds i8, ptr %60, i64 %63
%65 = load ptr, ptr %9, align 8
%66 = load ptr, ptr %6, align 8
%67 = call i32 @strlen(ptr noundef %66)
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds i8, ptr %65, i64 %68
%70 = load ptr, ptr %5, align 8
%71 = call i32 @strlen(ptr noundef %70)
%72 = load ptr, ptr %6, align 8
%73 = call i32 @strlen(ptr noundef %72)
%74 = sub nsw i32 %71, %73
%75 = sext i32 %74 to i64
%76 = load ptr, ptr %9, align 8
%77 = load ptr, ptr %5, align 8
%78 = ptrtoint ptr %76 to i64
%79 = ptrtoint ptr %77 to i64
%80 = sub i64 %78, %79
%81 = sub nsw i64 %75, %80
%82 = trunc i64 %81 to i32
%83 = call i32 @memcpy(ptr noundef %64, ptr noundef %69, i32 noundef %82)
%84 = load ptr, ptr %8, align 8
%85 = load ptr, ptr %5, align 8
%86 = call i32 @strlen(ptr noundef %85)
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds i8, ptr %84, i64 %87
%89 = load ptr, ptr %6, align 8
%90 = call i32 @strlen(ptr noundef %89)
%91 = sext i32 %90 to i64
%92 = sub i64 0, %91
%93 = getelementptr inbounds i8, ptr %88, i64 %92
%94 = load ptr, ptr %7, align 8
%95 = call i32 @strlen(ptr noundef %94)
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds i8, ptr %93, i64 %96
%98 = call i32 @memset(ptr noundef %97, i32 noundef 0, i32 noundef 1)
%99 = load ptr, ptr %8, align 8
store ptr %99, ptr %4, align 8
br label %100
100: ; preds = %33, %32, %15
%101 = load ptr, ptr %4, align 8
ret ptr %101
}
declare ptr @strstr(ptr noundef, ptr noundef) #1
declare ptr @strdup(ptr noundef) #1
declare i64 @calloc(i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE 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_9ihk6yt.c'
source_filename = "/tmp/tmp_9ihk6yt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%lld\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%lld\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
store i32 0, ptr %1, align 4
store i64 0, ptr %4, align 8
%6 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
store i64 0, ptr %5, align 8
br label %7
7: ; preds = %16, %0
%8 = load i64, ptr %5, align 8
%9 = load i64, ptr %2, align 8
%10 = icmp slt i64 %8, %9
br i1 %10, label %11, label %19
11: ; preds = %7
%12 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%13 = load i64, ptr %3, align 8
%14 = load i64, ptr %4, align 8
%15 = add nsw i64 %14, %13
store i64 %15, ptr %4, align 8
br label %16
16: ; preds = %11
%17 = load i64, ptr %5, align 8
%18 = add nsw i64 %17, 1
store i64 %18, ptr %5, align 8
br label %7, !llvm.loop !6
19: ; preds = %7
%20 = load i64, ptr %4, align 8
%21 = load i64, ptr %2, align 8
%22 = sdiv i64 %20, %21
%23 = call i32 @printf(ptr noundef @.str, i64 noundef %22)
ret i32 0
}
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/tmp_9ihk6yt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%lld\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%lld\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
store i32 0, ptr %1, align 4
store i64 0, ptr %4, align 8
%6 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
store i64 0, ptr %5, align 8
%7 = load i64, ptr %5, align 8
%8 = load i64, ptr %2, align 8
%9 = icmp slt i64 %7, %8
br i1 %9, label %.lr.ph, label %21
.lr.ph: ; preds = %0
br label %10
10: ; preds = %.lr.ph, %15
%11 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%12 = load i64, ptr %3, align 8
%13 = load i64, ptr %4, align 8
%14 = add nsw i64 %13, %12
store i64 %14, ptr %4, align 8
br label %15
15: ; preds = %10
%16 = load i64, ptr %5, align 8
%17 = add nsw i64 %16, 1
store i64 %17, ptr %5, align 8
%18 = load i64, ptr %5, align 8
%19 = load i64, ptr %2, align 8
%20 = icmp slt i64 %18, %19
br i1 %20, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %15
br label %21
21: ; preds = %._crit_edge, %0
%22 = load i64, ptr %4, align 8
%23 = load i64, ptr %2, align 8
%24 = sdiv i64 %22, %23
%25 = call i32 @printf(ptr noundef @.str, i64 noundef %24)
ret i32 0
}
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/tmp8tqugf49.c'
source_filename = "/tmp/tmp8tqugf49.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_FAILURE = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8tqugf49.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_FAILURE = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmplsqc_ozm.c'
source_filename = "/tmp/tmplsqc_ozm.c"
target datalayout = "e-m:e-p270: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/tmplsqc_ozm.c"
target datalayout = "e-m:e-p270: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_wiaefr8.c'
source_filename = "/tmp/tmp_wiaefr8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ellipse(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
store i32 %0, ptr %6, align 4
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
store i32 %4, ptr %10, align 4
%20 = load i32, ptr %8, align 4
%21 = mul nsw i32 2, %20
%22 = load i32, ptr %8, align 4
%23 = mul nsw i32 %21, %22
store i32 %23, ptr %16, align 4
%24 = load i32, ptr %9, align 4
%25 = mul nsw i32 2, %24
%26 = load i32, ptr %9, align 4
%27 = mul nsw i32 %25, %26
store i32 %27, ptr %17, align 4
%28 = load i32, ptr %8, align 4
store i32 %28, ptr %11, align 4
store i32 0, ptr %12, align 4
%29 = load i32, ptr %9, align 4
%30 = load i32, ptr %9, align 4
%31 = mul nsw i32 %29, %30
%32 = load i32, ptr %8, align 4
%33 = mul nsw i32 2, %32
%34 = sub nsw i32 1, %33
%35 = mul nsw i32 %31, %34
store i32 %35, ptr %13, align 4
%36 = load i32, ptr %8, align 4
%37 = load i32, ptr %8, align 4
%38 = mul nsw i32 %36, %37
store i32 %38, ptr %14, align 4
store i32 0, ptr %15, align 4
%39 = load i32, ptr %17, align 4
%40 = load i32, ptr %8, align 4
%41 = mul nsw i32 %39, %40
store i32 %41, ptr %18, align 4
store i32 0, ptr %19, align 4
br label %42
42: ; preds = %81, %5
%43 = load i32, ptr %18, align 4
%44 = load i32, ptr %19, align 4
%45 = icmp sge i32 %43, %44
br i1 %45, label %46, label %82
46: ; preds = %42
%47 = load i32, ptr %6, align 4
%48 = load i32, ptr %7, align 4
%49 = load i32, ptr %11, align 4
%50 = load i32, ptr %12, align 4
%51 = load i32, ptr %10, align 4
%52 = call i32 @plot4ellipsePoints(i32 noundef %47, i32 noundef %48, i32 noundef %49, i32 noundef %50, i32 noundef %51)
%53 = load i32, ptr %12, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %12, align 4
%55 = load i32, ptr %16, align 4
%56 = load i32, ptr %19, align 4
%57 = add nsw i32 %56, %55
store i32 %57, ptr %19, align 4
%58 = load i32, ptr %14, align 4
%59 = load i32, ptr %15, align 4
%60 = add nsw i32 %59, %58
store i32 %60, ptr %15, align 4
%61 = load i32, ptr %16, align 4
%62 = load i32, ptr %14, align 4
%63 = add nsw i32 %62, %61
store i32 %63, ptr %14, align 4
%64 = load i32, ptr %15, align 4
%65 = mul nsw i32 2, %64
%66 = load i32, ptr %13, align 4
%67 = add nsw i32 %65, %66
%68 = icmp sgt i32 %67, 0
br i1 %68, label %69, label %81
69: ; preds = %46
%70 = load i32, ptr %11, align 4
%71 = add nsw i32 %70, -1
store i32 %71, ptr %11, align 4
%72 = load i32, ptr %17, align 4
%73 = load i32, ptr %18, align 4
%74 = sub nsw i32 %73, %72
store i32 %74, ptr %18, align 4
%75 = load i32, ptr %13, align 4
%76 = load i32, ptr %15, align 4
%77 = add nsw i32 %76, %75
store i32 %77, ptr %15, align 4
%78 = load i32, ptr %17, align 4
%79 = load i32, ptr %13, align 4
%80 = add nsw i32 %79, %78
store i32 %80, ptr %13, align 4
br label %81
81: ; preds = %69, %46
br label %42, !llvm.loop !6
82: ; preds = %42
store i32 0, ptr %11, align 4
%83 = load i32, ptr %9, align 4
store i32 %83, ptr %12, align 4
%84 = load i32, ptr %9, align 4
%85 = load i32, ptr %9, align 4
%86 = mul nsw i32 %84, %85
store i32 %86, ptr %13, align 4
%87 = load i32, ptr %8, align 4
%88 = load i32, ptr %8, align 4
%89 = mul nsw i32 %87, %88
%90 = load i32, ptr %9, align 4
%91 = mul nsw i32 2, %90
%92 = sub nsw i32 1, %91
%93 = mul nsw i32 %89, %92
store i32 %93, ptr %14, align 4
store i32 0, ptr %15, align 4
store i32 0, ptr %18, align 4
%94 = load i32, ptr %16, align 4
%95 = load i32, ptr %9, align 4
%96 = mul nsw i32 %94, %95
store i32 %96, ptr %19, align 4
br label %97
97: ; preds = %136, %82
%98 = load i32, ptr %18, align 4
%99 = load i32, ptr %19, align 4
%100 = icmp sle i32 %98, %99
br i1 %100, label %101, label %137
101: ; preds = %97
%102 = load i32, ptr %6, align 4
%103 = load i32, ptr %7, align 4
%104 = load i32, ptr %11, align 4
%105 = load i32, ptr %12, align 4
%106 = load i32, ptr %10, align 4
%107 = call i32 @plot4ellipsePoints(i32 noundef %102, i32 noundef %103, i32 noundef %104, i32 noundef %105, i32 noundef %106)
%108 = load i32, ptr %11, align 4
%109 = add nsw i32 %108, 1
store i32 %109, ptr %11, align 4
%110 = load i32, ptr %17, align 4
%111 = load i32, ptr %18, align 4
%112 = add nsw i32 %111, %110
store i32 %112, ptr %18, align 4
%113 = load i32, ptr %13, align 4
%114 = load i32, ptr %15, align 4
%115 = add nsw i32 %114, %113
store i32 %115, ptr %15, align 4
%116 = load i32, ptr %17, align 4
%117 = load i32, ptr %13, align 4
%118 = add nsw i32 %117, %116
store i32 %118, ptr %13, align 4
%119 = load i32, ptr %15, align 4
%120 = mul nsw i32 2, %119
%121 = load i32, ptr %14, align 4
%122 = add nsw i32 %120, %121
%123 = icmp sgt i32 %122, 0
br i1 %123, label %124, label %136
124: ; preds = %101
%125 = load i32, ptr %12, align 4
%126 = add nsw i32 %125, -1
store i32 %126, ptr %12, align 4
%127 = load i32, ptr %16, align 4
%128 = load i32, ptr %19, align 4
%129 = sub nsw i32 %128, %127
store i32 %129, ptr %19, align 4
%130 = load i32, ptr %14, align 4
%131 = load i32, ptr %15, align 4
%132 = add nsw i32 %131, %130
store i32 %132, ptr %15, align 4
%133 = load i32, ptr %16, align 4
%134 = load i32, ptr %14, align 4
%135 = add nsw i32 %134, %133
store i32 %135, ptr %14, align 4
br label %136
136: ; preds = %124, %101
br label %97, !llvm.loop !8
137: ; preds = %97
ret void
}
declare i32 @plot4ellipsePoints(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_wiaefr8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ellipse(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
store i32 %0, ptr %6, align 4
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
store i32 %4, ptr %10, align 4
%20 = load i32, ptr %8, align 4
%21 = mul nsw i32 2, %20
%22 = load i32, ptr %8, align 4
%23 = mul nsw i32 %21, %22
store i32 %23, ptr %16, align 4
%24 = load i32, ptr %9, align 4
%25 = mul nsw i32 2, %24
%26 = load i32, ptr %9, align 4
%27 = mul nsw i32 %25, %26
store i32 %27, ptr %17, align 4
%28 = load i32, ptr %8, align 4
store i32 %28, ptr %11, align 4
store i32 0, ptr %12, align 4
%29 = load i32, ptr %9, align 4
%30 = load i32, ptr %9, align 4
%31 = mul nsw i32 %29, %30
%32 = load i32, ptr %8, align 4
%33 = mul nsw i32 2, %32
%34 = sub nsw i32 1, %33
%35 = mul nsw i32 %31, %34
store i32 %35, ptr %13, align 4
%36 = load i32, ptr %8, align 4
%37 = load i32, ptr %8, align 4
%38 = mul nsw i32 %36, %37
store i32 %38, ptr %14, align 4
store i32 0, ptr %15, align 4
%39 = load i32, ptr %17, align 4
%40 = load i32, ptr %8, align 4
%41 = mul nsw i32 %39, %40
store i32 %41, ptr %18, align 4
store i32 0, ptr %19, align 4
%42 = load i32, ptr %18, align 4
%43 = load i32, ptr %19, align 4
%44 = icmp sge i32 %42, %43
br i1 %44, label %.lr.ph, label %84
.lr.ph: ; preds = %5
br label %45
45: ; preds = %.lr.ph, %80
%46 = load i32, ptr %6, align 4
%47 = load i32, ptr %7, align 4
%48 = load i32, ptr %11, align 4
%49 = load i32, ptr %12, align 4
%50 = load i32, ptr %10, align 4
%51 = call i32 @plot4ellipsePoints(i32 noundef %46, i32 noundef %47, i32 noundef %48, i32 noundef %49, i32 noundef %50)
%52 = load i32, ptr %12, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %12, align 4
%54 = load i32, ptr %16, align 4
%55 = load i32, ptr %19, align 4
%56 = add nsw i32 %55, %54
store i32 %56, ptr %19, align 4
%57 = load i32, ptr %14, align 4
%58 = load i32, ptr %15, align 4
%59 = add nsw i32 %58, %57
store i32 %59, ptr %15, align 4
%60 = load i32, ptr %16, align 4
%61 = load i32, ptr %14, align 4
%62 = add nsw i32 %61, %60
store i32 %62, ptr %14, align 4
%63 = load i32, ptr %15, align 4
%64 = mul nsw i32 2, %63
%65 = load i32, ptr %13, align 4
%66 = add nsw i32 %64, %65
%67 = icmp sgt i32 %66, 0
br i1 %67, label %68, label %80
68: ; preds = %45
%69 = load i32, ptr %11, align 4
%70 = add nsw i32 %69, -1
store i32 %70, ptr %11, align 4
%71 = load i32, ptr %17, align 4
%72 = load i32, ptr %18, align 4
%73 = sub nsw i32 %72, %71
store i32 %73, ptr %18, align 4
%74 = load i32, ptr %13, align 4
%75 = load i32, ptr %15, align 4
%76 = add nsw i32 %75, %74
store i32 %76, ptr %15, align 4
%77 = load i32, ptr %17, align 4
%78 = load i32, ptr %13, align 4
%79 = add nsw i32 %78, %77
store i32 %79, ptr %13, align 4
br label %80
80: ; preds = %68, %45
%81 = load i32, ptr %18, align 4
%82 = load i32, ptr %19, align 4
%83 = icmp sge i32 %81, %82
br i1 %83, label %45, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %80
br label %84
84: ; preds = %._crit_edge, %5
store i32 0, ptr %11, align 4
%85 = load i32, ptr %9, align 4
store i32 %85, ptr %12, align 4
%86 = load i32, ptr %9, align 4
%87 = load i32, ptr %9, align 4
%88 = mul nsw i32 %86, %87
store i32 %88, ptr %13, align 4
%89 = load i32, ptr %8, align 4
%90 = load i32, ptr %8, align 4
%91 = mul nsw i32 %89, %90
%92 = load i32, ptr %9, align 4
%93 = mul nsw i32 2, %92
%94 = sub nsw i32 1, %93
%95 = mul nsw i32 %91, %94
store i32 %95, ptr %14, align 4
store i32 0, ptr %15, align 4
store i32 0, ptr %18, align 4
%96 = load i32, ptr %16, align 4
%97 = load i32, ptr %9, align 4
%98 = mul nsw i32 %96, %97
store i32 %98, ptr %19, align 4
%99 = load i32, ptr %18, align 4
%100 = load i32, ptr %19, align 4
%101 = icmp sle i32 %99, %100
br i1 %101, label %.lr.ph2, label %141
.lr.ph2: ; preds = %84
br label %102
102: ; preds = %.lr.ph2, %137
%103 = load i32, ptr %6, align 4
%104 = load i32, ptr %7, align 4
%105 = load i32, ptr %11, align 4
%106 = load i32, ptr %12, align 4
%107 = load i32, ptr %10, align 4
%108 = call i32 @plot4ellipsePoints(i32 noundef %103, i32 noundef %104, i32 noundef %105, i32 noundef %106, i32 noundef %107)
%109 = load i32, ptr %11, align 4
%110 = add nsw i32 %109, 1
store i32 %110, ptr %11, align 4
%111 = load i32, ptr %17, align 4
%112 = load i32, ptr %18, align 4
%113 = add nsw i32 %112, %111
store i32 %113, ptr %18, align 4
%114 = load i32, ptr %13, align 4
%115 = load i32, ptr %15, align 4
%116 = add nsw i32 %115, %114
store i32 %116, ptr %15, align 4
%117 = load i32, ptr %17, align 4
%118 = load i32, ptr %13, align 4
%119 = add nsw i32 %118, %117
store i32 %119, ptr %13, align 4
%120 = load i32, ptr %15, align 4
%121 = mul nsw i32 2, %120
%122 = load i32, ptr %14, align 4
%123 = add nsw i32 %121, %122
%124 = icmp sgt i32 %123, 0
br i1 %124, label %125, label %137
125: ; preds = %102
%126 = load i32, ptr %12, align 4
%127 = add nsw i32 %126, -1
store i32 %127, ptr %12, align 4
%128 = load i32, ptr %16, align 4
%129 = load i32, ptr %19, align 4
%130 = sub nsw i32 %129, %128
store i32 %130, ptr %19, align 4
%131 = load i32, ptr %14, align 4
%132 = load i32, ptr %15, align 4
%133 = add nsw i32 %132, %131
store i32 %133, ptr %15, align 4
%134 = load i32, ptr %16, align 4
%135 = load i32, ptr %14, align 4
%136 = add nsw i32 %135, %134
store i32 %136, ptr %14, align 4
br label %137
137: ; preds = %125, %102
%138 = load i32, ptr %18, align 4
%139 = load i32, ptr %19, align 4
%140 = icmp sle i32 %138, %139
br i1 %140, label %102, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %137
br label %141
141: ; preds = %._crit_edge3, %84
ret void
}
declare i32 @plot4ellipsePoints(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp3xoh6f1_.c'
source_filename = "/tmp/tmp3xoh6f1_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ECHILD = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@stdout = 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/tmp3xoh6f1_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ECHILD = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@stdout = 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/tmp7w0kjy_k.c'
source_filename = "/tmp/tmp7w0kjy_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"
@.str = private unnamed_addr constant [80 x i8] c"n\0A\0A\0A==============================ATTENZIONE==================================\0A\00", align 1
@.str.1 = private unnamed_addr constant [142 x i8] c"Per moltiplicare 2 matrici, il numero di righe della seconda matrice devono essere uguali alle colonne della prima, prego reinserire i dati. \00", align 1
@.str.2 = private unnamed_addr constant [80 x i8] c"\0A==============================ATTENZIONE==================================\0A\0A\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @MatriceMoltiplicazione(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca float, align 4
%14 = alloca [100 x float], align 16
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
store i32 0, ptr %11, align 4
store i32 0, ptr %12, align 4
store float 0.000000e+00, ptr %13, align 4
call void @llvm.memset.p0.i64(ptr align 16 %14, i8 0, i64 400, i1 false)
br label %15
15: ; preds = %58, %3
%16 = load ptr, ptr %4, align 8
%17 = load i32, ptr %11, align 4
%18 = load i32, ptr %12, align 4
%19 = add nsw i32 %18, 1
%20 = call float @LetturaElemento(ptr noundef %16, i32 noundef %17, i32 noundef %19)
%21 = load ptr, ptr %5, align 8
%22 = load i32, ptr %11, align 4
%23 = load i32, ptr %12, align 4
%24 = call float @LetturaElemento(ptr noundef %21, i32 noundef %22, i32 noundef %23)
%25 = fcmp une float %20, %24
br i1 %25, label %56, label %26
26: ; preds = %15
%27 = load ptr, ptr %4, align 8
%28 = load i32, ptr %11, align 4
%29 = load i32, ptr %12, align 4
%30 = call float @LetturaElemento(ptr noundef %27, i32 noundef %28, i32 noundef %29)
%31 = fpext float %30 to double
%32 = fcmp oeq double %31, 0.000000e+00
br i1 %32, label %56, label %33
33: ; preds = %26
%34 = load ptr, ptr %5, align 8
%35 = load i32, ptr %11, align 4
%36 = load i32, ptr %12, align 4
%37 = call float @LetturaElemento(ptr noundef %34, i32 noundef %35, i32 noundef %36)
%38 = fpext float %37 to double
%39 = fcmp oeq double %38, 0.000000e+00
br i1 %39, label %56, label %40
40: ; preds = %33
%41 = load ptr, ptr %4, align 8
%42 = load i32, ptr %11, align 4
%43 = load i32, ptr %12, align 4
%44 = add nsw i32 %43, 1
%45 = call float @LetturaElemento(ptr noundef %41, i32 noundef %42, i32 noundef %44)
%46 = fpext float %45 to double
%47 = fcmp oeq double %46, 0.000000e+00
br i1 %47, label %56, label %48
48: ; preds = %40
%49 = load ptr, ptr %5, align 8
%50 = load i32, ptr %11, align 4
%51 = load i32, ptr %12, align 4
%52 = add nsw i32 %51, 1
%53 = call float @LetturaElemento(ptr noundef %49, i32 noundef %50, i32 noundef %52)
%54 = fpext float %53 to double
%55 = fcmp oeq double %54, 0.000000e+00
br label %56
56: ; preds = %48, %40, %33, %26, %15
%57 = phi i1 [ true, %40 ], [ true, %33 ], [ true, %26 ], [ true, %15 ], [ %55, %48 ]
br i1 %57, label %58, label %68
58: ; preds = %56
%59 = call i32 @printf(ptr noundef @.str)
%60 = call i32 @printf(ptr noundef @.str.1)
%61 = call i32 @printf(ptr noundef @.str.2)
store i32 1, ptr %7, align 4
%62 = load ptr, ptr %4, align 8
%63 = load i32, ptr %7, align 4
%64 = call i32 @InserimentoNumeroRigheEColonne(ptr noundef %62, i32 noundef %63)
store i32 2, ptr %7, align 4
%65 = load ptr, ptr %5, align 8
%66 = load i32, ptr %7, align 4
%67 = call i32 @InserimentoNumeroRigheEColonne(ptr noundef %65, i32 noundef %66)
br label %15, !llvm.loop !6
68: ; preds = %56
store i32 1, ptr %7, align 4
%69 = load ptr, ptr %4, align 8
%70 = load i32, ptr %7, align 4
%71 = call i32 @InserimentoElementiMatrice(ptr noundef %69, i32 noundef %70)
store i32 2, ptr %7, align 4
%72 = load ptr, ptr %5, align 8
%73 = load i32, ptr %7, align 4
%74 = call i32 @InserimentoElementiMatrice(ptr noundef %72, i32 noundef %73)
%75 = load ptr, ptr %4, align 8
%76 = load ptr, ptr %6, align 8
%77 = call i32 @CopiaIndici(ptr noundef %75, ptr noundef %76)
store i32 0, ptr %8, align 4
br label %78
78: ; preds = %142, %68
%79 = load i32, ptr %8, align 4
%80 = sitofp i32 %79 to float
%81 = load ptr, ptr %4, align 8
%82 = load i32, ptr %11, align 4
%83 = load i32, ptr %12, align 4
%84 = call float @LetturaElemento(ptr noundef %81, i32 noundef %82, i32 noundef %83)
%85 = fcmp olt float %80, %84
br i1 %85, label %86, label %145
86: ; preds = %78
store i32 0, ptr %9, align 4
br label %87
87: ; preds = %139, %86
%88 = load i32, ptr %9, align 4
%89 = sitofp i32 %88 to float
%90 = load ptr, ptr %4, align 8
%91 = load i32, ptr %11, align 4
%92 = load i32, ptr %12, align 4
%93 = add nsw i32 %92, 1
%94 = call float @LetturaElemento(ptr noundef %90, i32 noundef %91, i32 noundef %93)
%95 = fcmp olt float %89, %94
br i1 %95, label %96, label %142
96: ; preds = %87
store i32 0, ptr %10, align 4
br label %97
97: ; preds = %106, %96
%98 = load i32, ptr %10, align 4
%99 = sitofp i32 %98 to float
%100 = load ptr, ptr %4, align 8
%101 = load i32, ptr %11, align 4
%102 = load i32, ptr %12, align 4
%103 = add nsw i32 %102, 1
%104 = call float @LetturaElemento(ptr noundef %100, i32 noundef %101, i32 noundef %103)
%105 = fcmp olt float %99, %104
br i1 %105, label %106, label %139
106: ; preds = %97
%107 = load ptr, ptr %4, align 8
%108 = load i32, ptr %8, align 4
%109 = load i32, ptr %10, align 4
%110 = add nsw i32 %109, 2
%111 = call float @LetturaElemento(ptr noundef %107, i32 noundef %108, i32 noundef %110)
%112 = load ptr, ptr %5, align 8
%113 = load i32, ptr %10, align 4
%114 = load i32, ptr %9, align 4
%115 = add nsw i32 %114, 2
%116 = call float @LetturaElemento(ptr noundef %112, i32 noundef %113, i32 noundef %115)
%117 = fmul float %111, %116
%118 = load i32, ptr %10, align 4
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds [100 x float], ptr %14, i64 0, i64 %119
store float %117, ptr %120, align 4
%121 = load ptr, ptr %6, align 8
%122 = load i32, ptr %8, align 4
%123 = load i32, ptr %9, align 4
%124 = add nsw i32 %123, 2
%125 = call float @LetturaElemento(ptr noundef %121, i32 noundef %122, i32 noundef %124)
%126 = load i32, ptr %10, align 4
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds [100 x float], ptr %14, i64 0, i64 %127
%129 = load float, ptr %128, align 4
%130 = fadd float %125, %129
store float %130, ptr %13, align 4
%131 = load ptr, ptr %6, align 8
%132 = load i32, ptr %8, align 4
%133 = load i32, ptr %9, align 4
%134 = add nsw i32 %133, 2
%135 = load float, ptr %13, align 4
%136 = call i32 @ScrivereElemento(ptr noundef %131, i32 noundef %132, i32 noundef %134, float noundef %135)
%137 = load i32, ptr %10, align 4
%138 = add nsw i32 %137, 1
store i32 %138, ptr %10, align 4
br label %97, !llvm.loop !8
139: ; preds = %97
%140 = load i32, ptr %9, align 4
%141 = add nsw i32 %140, 1
store i32 %141, ptr %9, align 4
br label %87, !llvm.loop !9
142: ; preds = %87
%143 = load i32, ptr %8, align 4
%144 = add nsw i32 %143, 1
store i32 %144, ptr %8, align 4
br label %78, !llvm.loop !10
145: ; preds = %78
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare float @LetturaElemento(ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @printf(ptr noundef) #2
declare i32 @InserimentoNumeroRigheEColonne(ptr noundef, i32 noundef) #2
declare i32 @InserimentoElementiMatrice(ptr noundef, i32 noundef) #2
declare i32 @CopiaIndici(ptr noundef, ptr noundef) #2
declare i32 @ScrivereElemento(ptr noundef, i32 noundef, i32 noundef, float noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7w0kjy_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"
@.str = private unnamed_addr constant [80 x i8] c"n\0A\0A\0A==============================ATTENZIONE==================================\0A\00", align 1
@.str.1 = private unnamed_addr constant [142 x i8] c"Per moltiplicare 2 matrici, il numero di righe della seconda matrice devono essere uguali alle colonne della prima, prego reinserire i dati. \00", align 1
@.str.2 = private unnamed_addr constant [80 x i8] c"\0A==============================ATTENZIONE==================================\0A\0A\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @MatriceMoltiplicazione(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca float, align 4
%14 = alloca [100 x float], align 16
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %10, align 4
store i32 0, ptr %11, align 4
store i32 0, ptr %12, align 4
store float 0.000000e+00, ptr %13, align 4
call void @llvm.memset.p0.i64(ptr align 16 %14, i8 0, i64 400, i1 false)
br label %15
15: ; preds = %58, %3
%16 = load ptr, ptr %4, align 8
%17 = load i32, ptr %11, align 4
%18 = load i32, ptr %12, align 4
%19 = add nsw i32 %18, 1
%20 = call float @LetturaElemento(ptr noundef %16, i32 noundef %17, i32 noundef %19)
%21 = load ptr, ptr %5, align 8
%22 = load i32, ptr %11, align 4
%23 = load i32, ptr %12, align 4
%24 = call float @LetturaElemento(ptr noundef %21, i32 noundef %22, i32 noundef %23)
%25 = fcmp une float %20, %24
br i1 %25, label %56, label %26
26: ; preds = %15
%27 = load ptr, ptr %4, align 8
%28 = load i32, ptr %11, align 4
%29 = load i32, ptr %12, align 4
%30 = call float @LetturaElemento(ptr noundef %27, i32 noundef %28, i32 noundef %29)
%31 = fpext float %30 to double
%32 = fcmp oeq double %31, 0.000000e+00
br i1 %32, label %56, label %33
33: ; preds = %26
%34 = load ptr, ptr %5, align 8
%35 = load i32, ptr %11, align 4
%36 = load i32, ptr %12, align 4
%37 = call float @LetturaElemento(ptr noundef %34, i32 noundef %35, i32 noundef %36)
%38 = fpext float %37 to double
%39 = fcmp oeq double %38, 0.000000e+00
br i1 %39, label %56, label %40
40: ; preds = %33
%41 = load ptr, ptr %4, align 8
%42 = load i32, ptr %11, align 4
%43 = load i32, ptr %12, align 4
%44 = add nsw i32 %43, 1
%45 = call float @LetturaElemento(ptr noundef %41, i32 noundef %42, i32 noundef %44)
%46 = fpext float %45 to double
%47 = fcmp oeq double %46, 0.000000e+00
br i1 %47, label %56, label %48
48: ; preds = %40
%49 = load ptr, ptr %5, align 8
%50 = load i32, ptr %11, align 4
%51 = load i32, ptr %12, align 4
%52 = add nsw i32 %51, 1
%53 = call float @LetturaElemento(ptr noundef %49, i32 noundef %50, i32 noundef %52)
%54 = fpext float %53 to double
%55 = fcmp oeq double %54, 0.000000e+00
br label %56
56: ; preds = %48, %40, %33, %26, %15
%57 = phi i1 [ true, %40 ], [ true, %33 ], [ true, %26 ], [ true, %15 ], [ %55, %48 ]
br i1 %57, label %58, label %68
58: ; preds = %56
%59 = call i32 @printf(ptr noundef @.str)
%60 = call i32 @printf(ptr noundef @.str.1)
%61 = call i32 @printf(ptr noundef @.str.2)
store i32 1, ptr %7, align 4
%62 = load ptr, ptr %4, align 8
%63 = load i32, ptr %7, align 4
%64 = call i32 @InserimentoNumeroRigheEColonne(ptr noundef %62, i32 noundef %63)
store i32 2, ptr %7, align 4
%65 = load ptr, ptr %5, align 8
%66 = load i32, ptr %7, align 4
%67 = call i32 @InserimentoNumeroRigheEColonne(ptr noundef %65, i32 noundef %66)
br label %15, !llvm.loop !6
68: ; preds = %56
store i32 1, ptr %7, align 4
%69 = load ptr, ptr %4, align 8
%70 = load i32, ptr %7, align 4
%71 = call i32 @InserimentoElementiMatrice(ptr noundef %69, i32 noundef %70)
store i32 2, ptr %7, align 4
%72 = load ptr, ptr %5, align 8
%73 = load i32, ptr %7, align 4
%74 = call i32 @InserimentoElementiMatrice(ptr noundef %72, i32 noundef %73)
%75 = load ptr, ptr %4, align 8
%76 = load ptr, ptr %6, align 8
%77 = call i32 @CopiaIndici(ptr noundef %75, ptr noundef %76)
store i32 0, ptr %8, align 4
%78 = load i32, ptr %8, align 4
%79 = sitofp i32 %78 to float
%80 = load ptr, ptr %4, align 8
%81 = load i32, ptr %11, align 4
%82 = load i32, ptr %12, align 4
%83 = call float @LetturaElemento(ptr noundef %80, i32 noundef %81, i32 noundef %82)
%84 = fcmp olt float %79, %83
br i1 %84, label %.lr.ph5, label %165
.lr.ph5: ; preds = %68
br label %85
85: ; preds = %.lr.ph5, %155
store i32 0, ptr %9, align 4
%86 = load i32, ptr %9, align 4
%87 = sitofp i32 %86 to float
%88 = load ptr, ptr %4, align 8
%89 = load i32, ptr %11, align 4
%90 = load i32, ptr %12, align 4
%91 = add nsw i32 %90, 1
%92 = call float @LetturaElemento(ptr noundef %88, i32 noundef %89, i32 noundef %91)
%93 = fcmp olt float %87, %92
br i1 %93, label %.lr.ph2, label %155
.lr.ph2: ; preds = %85
br label %94
94: ; preds = %.lr.ph2, %144
store i32 0, ptr %10, align 4
%95 = load i32, ptr %10, align 4
%96 = sitofp i32 %95 to float
%97 = load ptr, ptr %4, align 8
%98 = load i32, ptr %11, align 4
%99 = load i32, ptr %12, align 4
%100 = add nsw i32 %99, 1
%101 = call float @LetturaElemento(ptr noundef %97, i32 noundef %98, i32 noundef %100)
%102 = fcmp olt float %96, %101
br i1 %102, label %.lr.ph, label %144
.lr.ph: ; preds = %94
br label %103
103: ; preds = %.lr.ph, %103
%104 = load ptr, ptr %4, align 8
%105 = load i32, ptr %8, align 4
%106 = load i32, ptr %10, align 4
%107 = add nsw i32 %106, 2
%108 = call float @LetturaElemento(ptr noundef %104, i32 noundef %105, i32 noundef %107)
%109 = load ptr, ptr %5, align 8
%110 = load i32, ptr %10, align 4
%111 = load i32, ptr %9, align 4
%112 = add nsw i32 %111, 2
%113 = call float @LetturaElemento(ptr noundef %109, i32 noundef %110, i32 noundef %112)
%114 = fmul float %108, %113
%115 = load i32, ptr %10, align 4
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds [100 x float], ptr %14, i64 0, i64 %116
store float %114, ptr %117, align 4
%118 = load ptr, ptr %6, align 8
%119 = load i32, ptr %8, align 4
%120 = load i32, ptr %9, align 4
%121 = add nsw i32 %120, 2
%122 = call float @LetturaElemento(ptr noundef %118, i32 noundef %119, i32 noundef %121)
%123 = load i32, ptr %10, align 4
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds [100 x float], ptr %14, i64 0, i64 %124
%126 = load float, ptr %125, align 4
%127 = fadd float %122, %126
store float %127, ptr %13, align 4
%128 = load ptr, ptr %6, align 8
%129 = load i32, ptr %8, align 4
%130 = load i32, ptr %9, align 4
%131 = add nsw i32 %130, 2
%132 = load float, ptr %13, align 4
%133 = call i32 @ScrivereElemento(ptr noundef %128, i32 noundef %129, i32 noundef %131, float noundef %132)
%134 = load i32, ptr %10, align 4
%135 = add nsw i32 %134, 1
store i32 %135, ptr %10, align 4
%136 = load i32, ptr %10, align 4
%137 = sitofp i32 %136 to float
%138 = load ptr, ptr %4, align 8
%139 = load i32, ptr %11, align 4
%140 = load i32, ptr %12, align 4
%141 = add nsw i32 %140, 1
%142 = call float @LetturaElemento(ptr noundef %138, i32 noundef %139, i32 noundef %141)
%143 = fcmp olt float %137, %142
br i1 %143, label %103, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %103
br label %144
144: ; preds = %._crit_edge, %94
%145 = load i32, ptr %9, align 4
%146 = add nsw i32 %145, 1
store i32 %146, ptr %9, align 4
%147 = load i32, ptr %9, align 4
%148 = sitofp i32 %147 to float
%149 = load ptr, ptr %4, align 8
%150 = load i32, ptr %11, align 4
%151 = load i32, ptr %12, align 4
%152 = add nsw i32 %151, 1
%153 = call float @LetturaElemento(ptr noundef %149, i32 noundef %150, i32 noundef %152)
%154 = fcmp olt float %148, %153
br i1 %154, label %94, label %._crit_edge3, !llvm.loop !9
._crit_edge3: ; preds = %144
br label %155
155: ; preds = %._crit_edge3, %85
%156 = load i32, ptr %8, align 4
%157 = add nsw i32 %156, 1
store i32 %157, ptr %8, align 4
%158 = load i32, ptr %8, align 4
%159 = sitofp i32 %158 to float
%160 = load ptr, ptr %4, align 8
%161 = load i32, ptr %11, align 4
%162 = load i32, ptr %12, align 4
%163 = call float @LetturaElemento(ptr noundef %160, i32 noundef %161, i32 noundef %162)
%164 = fcmp olt float %159, %163
br i1 %164, label %85, label %._crit_edge6, !llvm.loop !10
._crit_edge6: ; preds = %155
br label %165
165: ; preds = %._crit_edge6, %68
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare float @LetturaElemento(ptr noundef, i32 noundef, i32 noundef) #2
declare i32 @printf(ptr noundef) #2
declare i32 @InserimentoNumeroRigheEColonne(ptr noundef, i32 noundef) #2
declare i32 @InserimentoElementiMatrice(ptr noundef, i32 noundef) #2
declare i32 @CopiaIndici(ptr noundef, ptr noundef) #2
declare i32 @ScrivereElemento(ptr noundef, i32 noundef, i32 noundef, float noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmp0apnbtyk.c'
source_filename = "/tmp/tmp0apnbtyk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @q() #0 {
%1 = alloca i32, align 4
%2 = call i32 (...) @t()
store i32 %2, ptr %1, align 4
%3 = load i32, ptr %1, align 4
%4 = icmp ne i32 %3, 0
br i1 %4, label %7, label %5
5: ; preds = %0
%6 = call i32 (...) @t()
store i32 %6, ptr %1, align 4
br label %7
7: ; preds = %5, %0
ret void
}
declare i32 @t(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0apnbtyk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @q() #0 {
%1 = alloca i32, align 4
%2 = call i32 (...) @t()
store i32 %2, ptr %1, align 4
%3 = load i32, ptr %1, align 4
%4 = icmp ne i32 %3, 0
br i1 %4, label %7, label %5
5: ; preds = %0
%6 = call i32 (...) @t()
store i32 %6, ptr %1, align 4
br label %7
7: ; preds = %5, %0
ret void
}
declare i32 @t(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmporb2afzc.c'
source_filename = "/tmp/tmporb2afzc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@linea = external global [0 x i8], align 1
@linea_max = external global [0 x i8], align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @voltea() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 @strlen(ptr noundef @linea)
%4 = sub nsw i32 %3, 1
store i32 %4, ptr %2, align 4
br label %5
5: ; preds = %8, %0
%6 = load i32, ptr %2, align 4
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %20
8: ; preds = %5
%9 = load i32, ptr %2, align 4
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds i8, ptr @linea, i64 %10
%12 = load i8, ptr %11, align 1
%13 = load i32, ptr %1, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i8, ptr @linea_max, i64 %14
store i8 %12, ptr %15, align 1
%16 = load i32, ptr %1, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %1, align 4
%18 = load i32, ptr %2, align 4
%19 = add nsw i32 %18, -1
store i32 %19, ptr %2, align 4
br label %5, !llvm.loop !6
20: ; preds = %5
ret void
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmporb2afzc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@linea = external global [0 x i8], align 1
@linea_max = external global [0 x i8], align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @voltea() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 @strlen(ptr noundef @linea)
%4 = sub nsw i32 %3, 1
store i32 %4, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = icmp ne i32 %5, 0
br i1 %6, label %.lr.ph, label %21
.lr.ph: ; preds = %0
br label %7
7: ; preds = %.lr.ph, %7
%8 = load i32, ptr %2, align 4
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds i8, ptr @linea, i64 %9
%11 = load i8, ptr %10, align 1
%12 = load i32, ptr %1, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i8, ptr @linea_max, i64 %13
store i8 %11, ptr %14, align 1
%15 = load i32, ptr %1, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %1, align 4
%17 = load i32, ptr %2, align 4
%18 = add nsw i32 %17, -1
store i32 %18, ptr %2, align 4
%19 = load i32, ptr %2, align 4
%20 = icmp ne i32 %19, 0
br i1 %20, label %7, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %7
br label %21
21: ; preds = %._crit_edge, %0
ret void
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpnh6o828m.c'
source_filename = "/tmp/tmpnh6o828m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @imprimir_vetor(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/tmpnh6o828m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @imprimir_vetor(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/tmpb59_1s_b.c'
source_filename = "/tmp/tmpb59_1s_b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @go_horiz(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp sgt i32 %3, 0
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i32, ptr %2, align 4
%7 = call i32 @go_right(i32 noundef %6)
br label %16
8: ; preds = %1
%9 = load i32, ptr %2, align 4
%10 = icmp slt i32 %9, 0
br i1 %10, label %11, label %15
11: ; preds = %8
%12 = load i32, ptr %2, align 4
%13 = sub nsw i32 0, %12
%14 = call i32 @go_left(i32 noundef %13)
br label %15
15: ; preds = %11, %8
br label %16
16: ; preds = %15, %5
ret void
}
declare i32 @go_right(i32 noundef) #1
declare i32 @go_left(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/tmpb59_1s_b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @go_horiz(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp sgt i32 %3, 0
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i32, ptr %2, align 4
%7 = call i32 @go_right(i32 noundef %6)
br label %16
8: ; preds = %1
%9 = load i32, ptr %2, align 4
%10 = icmp slt i32 %9, 0
br i1 %10, label %11, label %15
11: ; preds = %8
%12 = load i32, ptr %2, align 4
%13 = sub nsw i32 0, %12
%14 = call i32 @go_left(i32 noundef %13)
br label %15
15: ; preds = %11, %8
br label %16
16: ; preds = %15, %5
ret void
}
declare i32 @go_right(i32 noundef) #1
declare i32 @go_left(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/tmptaazq3y0.c'
source_filename = "/tmp/tmptaazq3y0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 (...) @unaryOps()
%3 = call i32 (...) @binaryOps()
%4 = call i32 (...) @comparisonOps()
%5 = call i32 (...) @testBranching()
%6 = call i32 (...) @testParameterPassing()
ret i32 0
}
declare i32 @unaryOps(...) #1
declare i32 @binaryOps(...) #1
declare i32 @comparisonOps(...) #1
declare i32 @testBranching(...) #1
declare i32 @testParameterPassing(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmptaazq3y0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 (...) @unaryOps()
%3 = call i32 (...) @binaryOps()
%4 = call i32 (...) @comparisonOps()
%5 = call i32 (...) @testBranching()
%6 = call i32 (...) @testParameterPassing()
ret i32 0
}
declare i32 @unaryOps(...) #1
declare i32 @binaryOps(...) #1
declare i32 @comparisonOps(...) #1
declare i32 @testBranching(...) #1
declare i32 @testParameterPassing(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp601nan7y.c'
source_filename = "/tmp/tmp601nan7y.c"
target datalayout = "e-m:e-p270: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.sched_param = type { i32 }
@SCHED_FIFO = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @gpio_max_priority() #0 {
%1 = alloca %struct.sched_param, align 4
%2 = call i32 @memset(ptr noundef %1, i32 noundef 0, i32 noundef 4)
%3 = load i32, ptr @SCHED_FIFO, align 4
%4 = call i32 @sched_get_priority_max(i32 noundef %3)
%5 = getelementptr inbounds %struct.sched_param, ptr %1, i32 0, i32 0
store i32 %4, ptr %5, align 4
%6 = load i32, ptr @SCHED_FIFO, align 4
%7 = call i32 @sched_setscheduler(i32 noundef 0, i32 noundef %6, ptr noundef %1)
ret void
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @sched_get_priority_max(i32 noundef) #1
declare i32 @sched_setscheduler(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp601nan7y.c"
target datalayout = "e-m:e-p270: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.sched_param = type { i32 }
@SCHED_FIFO = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @gpio_max_priority() #0 {
%1 = alloca %struct.sched_param, align 4
%2 = call i32 @memset(ptr noundef %1, i32 noundef 0, i32 noundef 4)
%3 = load i32, ptr @SCHED_FIFO, align 4
%4 = call i32 @sched_get_priority_max(i32 noundef %3)
%5 = getelementptr inbounds %struct.sched_param, ptr %1, i32 0, i32 0
store i32 %4, ptr %5, align 4
%6 = load i32, ptr @SCHED_FIFO, align 4
%7 = call i32 @sched_setscheduler(i32 noundef 0, i32 noundef %6, ptr noundef %1)
ret void
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @sched_get_priority_max(i32 noundef) #1
declare i32 @sched_setscheduler(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6eey6hz8.c'
source_filename = "/tmp/tmp6eey6hz8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mcnet_read_bool(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load i64, ptr %3, align 8
%5 = icmp eq i64 %4, 0
%6 = zext i1 %5 to i64
%7 = select i1 %5, i32 0, i32 1
%8 = sext i32 %7 to i64
ret i64 %8
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6eey6hz8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mcnet_read_bool(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load i64, ptr %3, align 8
%5 = icmp eq i64 %4, 0
%6 = zext i1 %5 to i64
%7 = select i1 %5, i32 0, i32 1
%8 = sext i32 %7 to i64
ret i64 %8
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqg6gtuxq.c'
source_filename = "/tmp/tmpqg6gtuxq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @put_string(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @strcpy(ptr noundef %5, ptr noundef %6)
%8 = load ptr, ptr %3, align 8
%9 = load ptr, ptr %4, align 8
%10 = call i32 @strlen(ptr noundef %9)
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds i8, ptr %8, i64 %11
%13 = getelementptr inbounds i8, ptr %12, i64 1
ret ptr %13
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqg6gtuxq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @put_string(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @strcpy(ptr noundef %5, ptr noundef %6)
%8 = load ptr, ptr %3, align 8
%9 = load ptr, ptr %4, align 8
%10 = call i32 @strlen(ptr noundef %9)
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds i8, ptr %8, i64 %11
%13 = getelementptr inbounds i8, ptr %12, i64 1
ret ptr %13
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxsnjoffi.c'
source_filename = "/tmp/tmpxsnjoffi.c"
target datalayout = "e-m:e-p270: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/tmpxsnjoffi.c"
target datalayout = "e-m:e-p270: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/tmp4brd65xs.c'
source_filename = "/tmp/tmp4brd65xs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @run_long_tests(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = mul i32 %5, 60
store i32 %6, ptr %4, align 4
store i32 0, ptr %3, align 4
br label %7
7: ; preds = %14, %1
%8 = load i32, ptr %3, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp ult i32 %8, %9
br i1 %10, label %11, label %17
11: ; preds = %7
%12 = call i32 @run_short_tests(i32 noundef 1000)
%13 = call i32 @sleep(i32 noundef 1)
br label %14
14: ; preds = %11
%15 = load i32, ptr %3, align 4
%16 = add i32 %15, 1
store i32 %16, ptr %3, align 4
br label %7, !llvm.loop !6
17: ; preds = %7
ret void
}
declare i32 @run_short_tests(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4brd65xs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @run_long_tests(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = mul i32 %5, 60
store i32 %6, ptr %4, align 4
store i32 0, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp ult i32 %7, %8
br i1 %9, label %.lr.ph, label %19
.lr.ph: ; preds = %1
br label %10
10: ; preds = %.lr.ph, %13
%11 = call i32 @run_short_tests(i32 noundef 1000)
%12 = call i32 @sleep(i32 noundef 1)
br label %13
13: ; preds = %10
%14 = load i32, ptr %3, align 4
%15 = add i32 %14, 1
store i32 %15, ptr %3, align 4
%16 = load i32, ptr %3, align 4
%17 = load i32, ptr %4, align 4
%18 = icmp ult i32 %16, %17
br i1 %18, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %13
br label %19
19: ; preds = %._crit_edge, %1
ret void
}
declare i32 @run_short_tests(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpdlzzpnl0.c'
source_filename = "/tmp/tmpdlzzpnl0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"wb\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c"OutputFile Not Found\0A\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"%c%c\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.5 = private unnamed_addr constant [6 x i8] c"%c%c\0A\00", align 1
@.str.6 = private unnamed_addr constant [7 x i8] c"%d %d\0A\00", align 1
@.str.7 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @iie_save_PGM(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 [2 x i8], align 1
%9 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%10 = load ptr, ptr %4, align 8
%11 = call ptr @fopen(ptr noundef %10, ptr noundef @.str)
store ptr %11, ptr %9, align 8
%12 = icmp eq ptr %11, null
br i1 %12, label %13, label %16
13: ; preds = %2
%14 = call i32 @printf(ptr noundef @.str.1)
%15 = call i32 @exit(i32 noundef 1) #3
unreachable
16: ; preds = %2
%17 = load ptr, ptr %9, align 8
%18 = getelementptr inbounds [2 x i8], ptr %8, i64 0, i64 0
%19 = getelementptr inbounds [2 x i8], ptr %8, i64 0, i64 1
%20 = call i32 (ptr, ptr, ...) @fscanf(ptr noundef %17, ptr noundef @.str.2, ptr noundef %18, ptr noundef %19)
%21 = load ptr, ptr %9, align 8
%22 = call i32 (ptr, ptr, ...) @fscanf(ptr noundef %21, ptr noundef @.str.3, ptr noundef %6, ptr noundef %5)
%23 = load ptr, ptr %9, align 8
%24 = call i32 (ptr, ptr, ...) @fscanf(ptr noundef %23, ptr noundef @.str.4, ptr noundef %7)
%25 = load ptr, ptr %9, align 8
%26 = getelementptr inbounds [2 x i8], ptr %8, i64 0, i64 0
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = getelementptr inbounds [2 x i8], ptr %8, i64 0, i64 1
store i8 53, ptr %29, align 1
%30 = call i32 (ptr, ptr, i32, ...) @fprintf(ptr noundef %25, ptr noundef @.str.5, i32 noundef %28, i32 noundef 53)
%31 = load ptr, ptr %9, align 8
%32 = load i32, ptr %6, align 4
%33 = load i32, ptr %5, align 4
%34 = call i32 (ptr, ptr, i32, ...) @fprintf(ptr noundef %31, ptr noundef @.str.6, i32 noundef %32, i32 noundef %33)
%35 = load ptr, ptr %9, align 8
%36 = load i32, ptr %7, align 4
%37 = call i32 (ptr, ptr, i32, ...) @fprintf(ptr noundef %35, ptr noundef @.str.7, i32 noundef %36)
%38 = load ptr, ptr %3, align 8
%39 = load ptr, ptr %9, align 8
%40 = call i32 @fwrite(ptr noundef %38, i32 noundef 1, i32 noundef 65536, ptr noundef %39)
%41 = load ptr, ptr %9, align 8
%42 = call i32 @fclose(ptr noundef %41)
ret void
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @fscanf(ptr noundef, ptr noundef, ...) #1
declare i32 @fprintf(ptr noundef, ptr noundef, i32 noundef, ...) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpdlzzpnl0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"wb\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c"OutputFile Not Found\0A\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"%c%c\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.5 = private unnamed_addr constant [6 x i8] c"%c%c\0A\00", align 1
@.str.6 = private unnamed_addr constant [7 x i8] c"%d %d\0A\00", align 1
@.str.7 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @iie_save_PGM(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 [2 x i8], align 1
%9 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%10 = load ptr, ptr %4, align 8
%11 = call ptr @fopen(ptr noundef %10, ptr noundef @.str)
store ptr %11, ptr %9, align 8
%12 = icmp eq ptr %11, null
br i1 %12, label %13, label %16
13: ; preds = %2
%14 = call i32 @printf(ptr noundef @.str.1)
%15 = call i32 @exit(i32 noundef 1) #3
unreachable
16: ; preds = %2
%17 = load ptr, ptr %9, align 8
%18 = getelementptr inbounds [2 x i8], ptr %8, i64 0, i64 0
%19 = getelementptr inbounds [2 x i8], ptr %8, i64 0, i64 1
%20 = call i32 (ptr, ptr, ...) @fscanf(ptr noundef %17, ptr noundef @.str.2, ptr noundef %18, ptr noundef %19)
%21 = load ptr, ptr %9, align 8
%22 = call i32 (ptr, ptr, ...) @fscanf(ptr noundef %21, ptr noundef @.str.3, ptr noundef %6, ptr noundef %5)
%23 = load ptr, ptr %9, align 8
%24 = call i32 (ptr, ptr, ...) @fscanf(ptr noundef %23, ptr noundef @.str.4, ptr noundef %7)
%25 = load ptr, ptr %9, align 8
%26 = getelementptr inbounds [2 x i8], ptr %8, i64 0, i64 0
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = getelementptr inbounds [2 x i8], ptr %8, i64 0, i64 1
store i8 53, ptr %29, align 1
%30 = call i32 (ptr, ptr, i32, ...) @fprintf(ptr noundef %25, ptr noundef @.str.5, i32 noundef %28, i32 noundef 53)
%31 = load ptr, ptr %9, align 8
%32 = load i32, ptr %6, align 4
%33 = load i32, ptr %5, align 4
%34 = call i32 (ptr, ptr, i32, ...) @fprintf(ptr noundef %31, ptr noundef @.str.6, i32 noundef %32, i32 noundef %33)
%35 = load ptr, ptr %9, align 8
%36 = load i32, ptr %7, align 4
%37 = call i32 (ptr, ptr, i32, ...) @fprintf(ptr noundef %35, ptr noundef @.str.7, i32 noundef %36)
%38 = load ptr, ptr %3, align 8
%39 = load ptr, ptr %9, align 8
%40 = call i32 @fwrite(ptr noundef %38, i32 noundef 1, i32 noundef 65536, ptr noundef %39)
%41 = load ptr, ptr %9, align 8
%42 = call i32 @fclose(ptr noundef %41)
ret void
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @fscanf(ptr noundef, ptr noundef, ...) #1
declare i32 @fprintf(ptr noundef, ptr noundef, i32 noundef, ...) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpa19ey83v.c'
source_filename = "/tmp/tmpa19ey83v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [20 x i8] c"[CLIENTE] SOCKET OK\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"[CLIENTE] CONECTADO\00", align 1
@.str.2 = private unnamed_addr constant [29 x i8] c"[CLIENTE] RECIBIENDO ARCHIVO\00", align 1
@.str.3 = private unnamed_addr constant [28 x i8] c"[CLIENTE] ERROR AL CONECTAR\00", align 1
@.str.4 = private unnamed_addr constant [35 x i8] c"[CLIENTE] ERROR AL CREAR EL SOCKET\00", align 1
@.str.5 = private unnamed_addr constant [74 x i8] c"ARGUMENTOS: <DIRECCION IP> <ARCHIVO SOLICITADO> <NOMBRE ARCHIVO GUARDADO>\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 %struct.sockaddr_in, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = load i32, ptr %4, align 4
%10 = icmp eq i32 %9, 4
br i1 %10, label %11, label %54
11: ; preds = %2
%12 = load i32, ptr @AF_INET, align 4
%13 = load i32, ptr @SOCK_STREAM, align 4
%14 = call i32 @socket(i32 noundef %12, i32 noundef %13, i32 noundef 0)
store i32 %14, ptr %6, align 4
%15 = icmp sgt i32 %14, 0
br i1 %15, label %16, label %51
16: ; preds = %11
%17 = call i32 @puts(ptr noundef @.str)
%18 = load i32, ptr @AF_INET, align 4
%19 = getelementptr inbounds %struct.sockaddr_in, ptr %8, i32 0, i32 2
store i32 %18, ptr %19, align 4
%20 = call i32 @htons(i32 noundef 9999)
%21 = getelementptr inbounds %struct.sockaddr_in, ptr %8, i32 0, i32 1
store i32 %20, ptr %21, align 4
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 1
%24 = load ptr, ptr %23, align 8
%25 = call i32 @inet_addr(ptr noundef %24)
%26 = getelementptr inbounds %struct.sockaddr_in, ptr %8, i32 0, i32 0
%27 = getelementptr inbounds %struct.TYPE_2__, ptr %26, i32 0, i32 0
store i32 %25, ptr %27, align 4
%28 = load i32, ptr %6, align 4
%29 = call i32 @connect(i32 noundef %28, ptr noundef %8, i32 noundef 4)
store i32 %29, ptr %7, align 4
%30 = icmp ne i32 %29, -1
br i1 %30, label %31, label %46
31: ; preds = %16
%32 = call i32 @puts(ptr noundef @.str.1)
%33 = load i32, ptr %6, align 4
%34 = load ptr, ptr %5, align 8
%35 = getelementptr inbounds ptr, ptr %34, i64 2
%36 = load ptr, ptr %35, align 8
%37 = call i32 @write(i32 noundef %33, ptr noundef %36, i32 noundef 512)
%38 = call i32 @puts(ptr noundef @.str.2)
%39 = load ptr, ptr %5, align 8
%40 = getelementptr inbounds ptr, ptr %39, i64 3
%41 = load ptr, ptr %40, align 8
%42 = load i32, ptr %6, align 4
%43 = call i32 @receiveFile(ptr noundef %41, i32 noundef %42)
%44 = load i32, ptr %7, align 4
%45 = call i32 @close(i32 noundef %44)
br label %48
46: ; preds = %16
%47 = call i32 @puts(ptr noundef @.str.3)
br label %48
48: ; preds = %46, %31
%49 = load i32, ptr %6, align 4
%50 = call i32 @close(i32 noundef %49)
br label %53
51: ; preds = %11
%52 = call i32 @puts(ptr noundef @.str.4)
br label %53
53: ; preds = %51, %48
br label %56
54: ; preds = %2
%55 = call i32 @puts(ptr noundef @.str.5)
br label %56
56: ; preds = %54, %53
ret i32 0
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @puts(ptr noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @inet_addr(ptr noundef) #1
declare i32 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @receiveFile(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/tmpa19ey83v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [20 x i8] c"[CLIENTE] SOCKET OK\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"[CLIENTE] CONECTADO\00", align 1
@.str.2 = private unnamed_addr constant [29 x i8] c"[CLIENTE] RECIBIENDO ARCHIVO\00", align 1
@.str.3 = private unnamed_addr constant [28 x i8] c"[CLIENTE] ERROR AL CONECTAR\00", align 1
@.str.4 = private unnamed_addr constant [35 x i8] c"[CLIENTE] ERROR AL CREAR EL SOCKET\00", align 1
@.str.5 = private unnamed_addr constant [74 x i8] c"ARGUMENTOS: <DIRECCION IP> <ARCHIVO SOLICITADO> <NOMBRE ARCHIVO GUARDADO>\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 %struct.sockaddr_in, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = load i32, ptr %4, align 4
%10 = icmp eq i32 %9, 4
br i1 %10, label %11, label %54
11: ; preds = %2
%12 = load i32, ptr @AF_INET, align 4
%13 = load i32, ptr @SOCK_STREAM, align 4
%14 = call i32 @socket(i32 noundef %12, i32 noundef %13, i32 noundef 0)
store i32 %14, ptr %6, align 4
%15 = icmp sgt i32 %14, 0
br i1 %15, label %16, label %51
16: ; preds = %11
%17 = call i32 @puts(ptr noundef @.str)
%18 = load i32, ptr @AF_INET, align 4
%19 = getelementptr inbounds %struct.sockaddr_in, ptr %8, i32 0, i32 2
store i32 %18, ptr %19, align 4
%20 = call i32 @htons(i32 noundef 9999)
%21 = getelementptr inbounds %struct.sockaddr_in, ptr %8, i32 0, i32 1
store i32 %20, ptr %21, align 4
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 1
%24 = load ptr, ptr %23, align 8
%25 = call i32 @inet_addr(ptr noundef %24)
%26 = getelementptr inbounds %struct.sockaddr_in, ptr %8, i32 0, i32 0
%27 = getelementptr inbounds %struct.TYPE_2__, ptr %26, i32 0, i32 0
store i32 %25, ptr %27, align 4
%28 = load i32, ptr %6, align 4
%29 = call i32 @connect(i32 noundef %28, ptr noundef %8, i32 noundef 4)
store i32 %29, ptr %7, align 4
%30 = icmp ne i32 %29, -1
br i1 %30, label %31, label %46
31: ; preds = %16
%32 = call i32 @puts(ptr noundef @.str.1)
%33 = load i32, ptr %6, align 4
%34 = load ptr, ptr %5, align 8
%35 = getelementptr inbounds ptr, ptr %34, i64 2
%36 = load ptr, ptr %35, align 8
%37 = call i32 @write(i32 noundef %33, ptr noundef %36, i32 noundef 512)
%38 = call i32 @puts(ptr noundef @.str.2)
%39 = load ptr, ptr %5, align 8
%40 = getelementptr inbounds ptr, ptr %39, i64 3
%41 = load ptr, ptr %40, align 8
%42 = load i32, ptr %6, align 4
%43 = call i32 @receiveFile(ptr noundef %41, i32 noundef %42)
%44 = load i32, ptr %7, align 4
%45 = call i32 @close(i32 noundef %44)
br label %48
46: ; preds = %16
%47 = call i32 @puts(ptr noundef @.str.3)
br label %48
48: ; preds = %46, %31
%49 = load i32, ptr %6, align 4
%50 = call i32 @close(i32 noundef %49)
br label %53
51: ; preds = %11
%52 = call i32 @puts(ptr noundef @.str.4)
br label %53
53: ; preds = %51, %48
br label %56
54: ; preds = %2
%55 = call i32 @puts(ptr noundef @.str.5)
br label %56
56: ; preds = %54, %53
ret i32 0
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @puts(ptr noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @inet_addr(ptr noundef) #1
declare i32 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @receiveFile(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/tmpmjyuf29j.c'
source_filename = "/tmp/tmpmjyuf29j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @utf8_strso(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
store ptr %0, ptr %2, align 8
store i64 0, ptr %3, align 8
br label %6
6: ; preds = %11, %1
%7 = load ptr, ptr %2, align 8
%8 = load i8, ptr %7, align 1
%9 = sext i8 %8 to i32
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %27
11: ; preds = %6
%12 = load ptr, ptr %2, align 8
%13 = call i64 @utf8_chrw(ptr noundef %12)
store i64 %13, ptr %4, align 8
%14 = load ptr, ptr %2, align 8
%15 = load i64, ptr %4, align 8
%16 = call i64 @chrsw(ptr noundef %14, i64 noundef %15)
store i64 %16, ptr %5, align 8
%17 = load i64, ptr %4, align 8
%18 = load ptr, ptr %2, align 8
%19 = getelementptr inbounds i8, ptr %18, i64 %17
store ptr %19, ptr %2, align 8
%20 = load i64, ptr %4, align 8
%21 = sub i64 %20, 1
%22 = load i64, ptr %5, align 8
%23 = sub i64 %22, 1
%24 = sub i64 %21, %23
%25 = load i64, ptr %3, align 8
%26 = add i64 %25, %24
store i64 %26, ptr %3, align 8
br label %6, !llvm.loop !6
27: ; preds = %6
%28 = load i64, ptr %3, align 8
ret i64 %28
}
declare i64 @utf8_chrw(ptr noundef) #1
declare i64 @chrsw(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/tmpmjyuf29j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @utf8_strso(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
store ptr %0, ptr %2, align 8
store i64 0, ptr %3, align 8
%6 = load ptr, ptr %2, align 8
%7 = load i8, ptr %6, align 1
%8 = sext i8 %7 to i32
%9 = icmp ne i32 %8, 0
br i1 %9, label %.lr.ph, label %30
.lr.ph: ; preds = %1
br label %10
10: ; preds = %.lr.ph, %10
%11 = load ptr, ptr %2, align 8
%12 = call i64 @utf8_chrw(ptr noundef %11)
store i64 %12, ptr %4, align 8
%13 = load ptr, ptr %2, align 8
%14 = load i64, ptr %4, align 8
%15 = call i64 @chrsw(ptr noundef %13, i64 noundef %14)
store i64 %15, ptr %5, align 8
%16 = load i64, ptr %4, align 8
%17 = load ptr, ptr %2, align 8
%18 = getelementptr inbounds i8, ptr %17, i64 %16
store ptr %18, ptr %2, align 8
%19 = load i64, ptr %4, align 8
%20 = sub i64 %19, 1
%21 = load i64, ptr %5, align 8
%22 = sub i64 %21, 1
%23 = sub i64 %20, %22
%24 = load i64, ptr %3, align 8
%25 = add i64 %24, %23
store i64 %25, ptr %3, align 8
%26 = load ptr, ptr %2, align 8
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = icmp ne i32 %28, 0
br i1 %29, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %10
br label %30
30: ; preds = %._crit_edge, %1
%31 = load i64, ptr %3, align 8
ret i64 %31
}
declare i64 @utf8_chrw(ptr noundef) #1
declare i64 @chrsw(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/tmpaeylcm74.c'
source_filename = "/tmp/tmpaeylcm74.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %4, ptr %2, align 4
%5 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %5, ptr %3, align 4
br label %6
6: ; preds = %21, %0
%7 = load i32, ptr %2, align 4
%8 = icmp slt i32 %7, 5
br i1 %8, label %9, label %24
9: ; preds = %6
store i32 0, ptr %3, align 4
br label %10
10: ; preds = %18, %9
%11 = load i32, ptr %2, align 4
%12 = icmp sgt i32 %11, 2
br i1 %12, label %13, label %16
13: ; preds = %10
%14 = load i32, ptr %3, align 4
%15 = icmp sle i32 %14, 9
br label %16
16: ; preds = %13, %10
%17 = phi i1 [ false, %10 ], [ %15, %13 ]
br i1 %17, label %18, label %21
18: ; preds = %16
%19 = load i32, ptr %3, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %3, align 4
br label %10, !llvm.loop !6
21: ; preds = %16
%22 = load i32, ptr %2, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %2, align 4
br label %6, !llvm.loop !8
24: ; preds = %6
ret i32 0
}
declare i32 @__VERIFIER_nondet_int(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpaeylcm74.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %4, ptr %2, align 4
%5 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %2, align 4
%7 = icmp slt i32 %6, 5
br i1 %7, label %.lr.ph, label %25
.lr.ph: ; preds = %0
br label %8
8: ; preds = %.lr.ph, %20
store i32 0, ptr %3, align 4
br label %9
9: ; preds = %17, %8
%10 = load i32, ptr %2, align 4
%11 = icmp sgt i32 %10, 2
br i1 %11, label %12, label %15
12: ; preds = %9
%13 = load i32, ptr %3, align 4
%14 = icmp sle i32 %13, 9
br label %15
15: ; preds = %12, %9
%16 = phi i1 [ false, %9 ], [ %14, %12 ]
br i1 %16, label %17, label %20
17: ; preds = %15
%18 = load i32, ptr %3, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %3, align 4
br label %9, !llvm.loop !6
20: ; preds = %15
%21 = load i32, ptr %2, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %2, align 4
%23 = load i32, ptr %2, align 4
%24 = icmp slt i32 %23, 5
br i1 %24, label %8, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %20
br label %25
25: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @__VERIFIER_nondet_int(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpd5bs1nrr.c'
source_filename = "/tmp/tmpd5bs1nrr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"%06o\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%05u\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"%04x\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"%03o\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @outnum(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%6 = load i32, ptr %3, align 4
store i32 %6, ptr %5, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp eq i32 %7, 8
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = load i32, ptr %5, align 4
%11 = call i32 @printf(ptr noundef @.str, i32 noundef %10)
br label %33
12: ; preds = %2
%13 = load i32, ptr %4, align 4
%14 = icmp eq i32 %13, 10
br i1 %14, label %15, label %18
15: ; preds = %12
%16 = load i32, ptr %5, align 4
%17 = call i32 @printf(ptr noundef @.str.1, i32 noundef %16)
br label %32
18: ; preds = %12
%19 = load i32, ptr %4, align 4
%20 = icmp eq i32 %19, 16
br i1 %20, label %21, label %24
21: ; preds = %18
%22 = load i32, ptr %5, align 4
%23 = call i32 @printf(ptr noundef @.str.2, i32 noundef %22)
br label %31
24: ; preds = %18
%25 = load i32, ptr %4, align 4
%26 = icmp eq i32 %25, 7
br i1 %26, label %27, label %30
27: ; preds = %24
%28 = load i32, ptr %5, align 4
%29 = call i32 @printf(ptr noundef @.str.3, i32 noundef %28)
br label %30
30: ; preds = %27, %24
br label %31
31: ; preds = %30, %21
br label %32
32: ; preds = %31, %15
br label %33
33: ; preds = %32, %9
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"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpd5bs1nrr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c"%06o\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%05u\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"%04x\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"%03o\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @outnum(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%6 = load i32, ptr %3, align 4
store i32 %6, ptr %5, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp eq i32 %7, 8
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = load i32, ptr %5, align 4
%11 = call i32 @printf(ptr noundef @.str, i32 noundef %10)
br label %33
12: ; preds = %2
%13 = load i32, ptr %4, align 4
%14 = icmp eq i32 %13, 10
br i1 %14, label %15, label %18
15: ; preds = %12
%16 = load i32, ptr %5, align 4
%17 = call i32 @printf(ptr noundef @.str.1, i32 noundef %16)
br label %32
18: ; preds = %12
%19 = load i32, ptr %4, align 4
%20 = icmp eq i32 %19, 16
br i1 %20, label %21, label %24
21: ; preds = %18
%22 = load i32, ptr %5, align 4
%23 = call i32 @printf(ptr noundef @.str.2, i32 noundef %22)
br label %31
24: ; preds = %18
%25 = load i32, ptr %4, align 4
%26 = icmp eq i32 %25, 7
br i1 %26, label %27, label %30
27: ; preds = %24
%28 = load i32, ptr %5, align 4
%29 = call i32 @printf(ptr noundef @.str.3, i32 noundef %28)
br label %30
30: ; preds = %27, %24
br label %31
31: ; preds = %30, %21
br label %32
32: ; preds = %31, %15
br label %33
33: ; preds = %32, %9
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"}
|
; ModuleID = '/tmp/tmp1nnp68mx.c'
source_filename = "/tmp/tmp1nnp68mx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"irc.unixhub.net\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"6697\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"blunt\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [19 x i8] c"irc_open() failed\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = call ptr @irc_open(ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.2, ptr noundef @.str.2, ptr noundef @.str.2)
store ptr %7, ptr %6, align 8
%8 = load ptr, ptr %6, align 8
%9 = icmp eq ptr %8, null
br i1 %9, label %10, label %13
10: ; preds = %2
%11 = load i32, ptr @stderr, align 4
%12 = call i32 @fprintf(i32 noundef %11, ptr noundef @.str.3)
store i32 1, ptr %3, align 4
br label %14
13: ; preds = %2
store i32 0, ptr %3, align 4
br label %14
14: ; preds = %13, %10
%15 = load i32, ptr %3, align 4
ret i32 %15
}
declare ptr @irc_open(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fprintf(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/tmp1nnp68mx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"irc.unixhub.net\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"6697\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"blunt\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [19 x i8] c"irc_open() failed\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = call ptr @irc_open(ptr noundef @.str, ptr noundef @.str.1, ptr noundef @.str.2, ptr noundef @.str.2, ptr noundef @.str.2)
store ptr %7, ptr %6, align 8
%8 = load ptr, ptr %6, align 8
%9 = icmp eq ptr %8, null
br i1 %9, label %10, label %13
10: ; preds = %2
%11 = load i32, ptr @stderr, align 4
%12 = call i32 @fprintf(i32 noundef %11, ptr noundef @.str.3)
store i32 1, ptr %3, align 4
br label %14
13: ; preds = %2
store i32 0, ptr %3, align 4
br label %14
14: ; preds = %13, %10
%15 = load i32, ptr %3, align 4
ret i32 %15
}
declare ptr @irc_open(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fprintf(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/tmpost9lwvk.c'
source_filename = "/tmp/tmpost9lwvk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @uninitvar_strspn() #0 {
%1 = alloca ptr, align 8
%2 = alloca ptr, align 8
%3 = load ptr, ptr %1, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i32 @strspn(ptr noundef %3, ptr noundef %4)
ret void
}
declare i32 @strspn(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/tmpost9lwvk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @uninitvar_strspn() #0 {
%1 = alloca ptr, align 8
%2 = alloca ptr, align 8
%3 = load ptr, ptr %1, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i32 @strspn(ptr noundef %3, ptr noundef %4)
ret void
}
declare i32 @strspn(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/tmpb_8l9n66.c'
source_filename = "/tmp/tmpb_8l9n66.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [29 x i8] c"can't get bookmark filename\0A\00", align 1
@stderr = dso_local global i32 0, align 4
@errno = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@LOCK_SH = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [16 x i8] c"%s; fclose: %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"%s; fopen: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @bm_read_bookmark(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %10
9: ; preds = %1
store i32 -1, ptr %2, align 4
br label %54
10: ; preds = %1
%11 = call ptr (...) @get_bookmark_path()
store ptr %11, ptr %4, align 8
%12 = load ptr, ptr %4, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %17
14: ; preds = %10
%15 = load i32, ptr @stderr, align 4
%16 = call i32 @fputs(ptr noundef @.str, i32 noundef %15)
store i32 -1, ptr %2, align 4
br label %54
17: ; preds = %10
store i32 -1, ptr %5, align 4
store i64 0, ptr @errno, align 8
%18 = load ptr, ptr %4, align 8
%19 = call ptr @fopen(ptr noundef %18, ptr noundef @.str.1)
store ptr %19, ptr %6, align 8
%20 = load ptr, ptr %6, align 8
%21 = icmp ne ptr %20, null
br i1 %21, label %22, label %44
22: ; preds = %17
%23 = load ptr, ptr %6, align 8
%24 = load i32, ptr @LOCK_SH, align 4
%25 = call i64 @file_lock(ptr noundef %23, i32 noundef %24)
%26 = icmp ne i64 %25, 0
br i1 %26, label %27, label %33
27: ; preds = %22
%28 = load ptr, ptr %6, align 8
%29 = load ptr, ptr %3, align 8
%30 = call i32 @get_pageno(ptr noundef %28, ptr noundef %29)
store i32 %30, ptr %5, align 4
%31 = load ptr, ptr %6, align 8
%32 = call i32 @file_unlock(ptr noundef %31)
br label %33
33: ; preds = %27, %22
%34 = load ptr, ptr %6, align 8
%35 = call i64 @fclose(ptr noundef %34)
%36 = icmp ne i64 %35, 0
br i1 %36, label %37, label %43
37: ; preds = %33
%38 = load i32, ptr @stderr, align 4
%39 = load ptr, ptr %4, align 8
%40 = load i64, ptr @errno, align 8
%41 = call ptr @strerror(i64 noundef %40)
%42 = call i32 @fprintf(i32 noundef %38, ptr noundef @.str.2, ptr noundef %39, ptr noundef %41)
br label %43
43: ; preds = %37, %33
br label %50
44: ; preds = %17
%45 = load i32, ptr @stderr, align 4
%46 = load ptr, ptr %4, align 8
%47 = load i64, ptr @errno, align 8
%48 = call ptr @strerror(i64 noundef %47)
%49 = call i32 @fprintf(i32 noundef %45, ptr noundef @.str.3, ptr noundef %46, ptr noundef %48)
br label %50
50: ; preds = %44, %43
%51 = load ptr, ptr %4, align 8
%52 = call i32 @free(ptr noundef %51)
%53 = load i32, ptr %5, align 4
store i32 %53, ptr %2, align 4
br label %54
54: ; preds = %50, %14, %9
%55 = load i32, ptr %2, align 4
ret i32 %55
}
declare ptr @get_bookmark_path(...) #1
declare i32 @fputs(ptr noundef, i32 noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i64 @file_lock(ptr noundef, i32 noundef) #1
declare i32 @get_pageno(ptr noundef, ptr noundef) #1
declare i32 @file_unlock(ptr noundef) #1
declare i64 @fclose(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @strerror(i64 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpb_8l9n66.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [29 x i8] c"can't get bookmark filename\0A\00", align 1
@stderr = dso_local global i32 0, align 4
@errno = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@LOCK_SH = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [16 x i8] c"%s; fclose: %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [15 x i8] c"%s; fopen: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @bm_read_bookmark(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %10
9: ; preds = %1
store i32 -1, ptr %2, align 4
br label %54
10: ; preds = %1
%11 = call ptr (...) @get_bookmark_path()
store ptr %11, ptr %4, align 8
%12 = load ptr, ptr %4, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %17
14: ; preds = %10
%15 = load i32, ptr @stderr, align 4
%16 = call i32 @fputs(ptr noundef @.str, i32 noundef %15)
store i32 -1, ptr %2, align 4
br label %54
17: ; preds = %10
store i32 -1, ptr %5, align 4
store i64 0, ptr @errno, align 8
%18 = load ptr, ptr %4, align 8
%19 = call ptr @fopen(ptr noundef %18, ptr noundef @.str.1)
store ptr %19, ptr %6, align 8
%20 = load ptr, ptr %6, align 8
%21 = icmp ne ptr %20, null
br i1 %21, label %22, label %44
22: ; preds = %17
%23 = load ptr, ptr %6, align 8
%24 = load i32, ptr @LOCK_SH, align 4
%25 = call i64 @file_lock(ptr noundef %23, i32 noundef %24)
%26 = icmp ne i64 %25, 0
br i1 %26, label %27, label %33
27: ; preds = %22
%28 = load ptr, ptr %6, align 8
%29 = load ptr, ptr %3, align 8
%30 = call i32 @get_pageno(ptr noundef %28, ptr noundef %29)
store i32 %30, ptr %5, align 4
%31 = load ptr, ptr %6, align 8
%32 = call i32 @file_unlock(ptr noundef %31)
br label %33
33: ; preds = %27, %22
%34 = load ptr, ptr %6, align 8
%35 = call i64 @fclose(ptr noundef %34)
%36 = icmp ne i64 %35, 0
br i1 %36, label %37, label %43
37: ; preds = %33
%38 = load i32, ptr @stderr, align 4
%39 = load ptr, ptr %4, align 8
%40 = load i64, ptr @errno, align 8
%41 = call ptr @strerror(i64 noundef %40)
%42 = call i32 @fprintf(i32 noundef %38, ptr noundef @.str.2, ptr noundef %39, ptr noundef %41)
br label %43
43: ; preds = %37, %33
br label %50
44: ; preds = %17
%45 = load i32, ptr @stderr, align 4
%46 = load ptr, ptr %4, align 8
%47 = load i64, ptr @errno, align 8
%48 = call ptr @strerror(i64 noundef %47)
%49 = call i32 @fprintf(i32 noundef %45, ptr noundef @.str.3, ptr noundef %46, ptr noundef %48)
br label %50
50: ; preds = %44, %43
%51 = load ptr, ptr %4, align 8
%52 = call i32 @free(ptr noundef %51)
%53 = load i32, ptr %5, align 4
store i32 %53, ptr %2, align 4
br label %54
54: ; preds = %50, %14, %9
%55 = load i32, ptr %2, align 4
ret i32 %55
}
declare ptr @get_bookmark_path(...) #1
declare i32 @fputs(ptr noundef, i32 noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i64 @file_lock(ptr noundef, i32 noundef) #1
declare i32 @get_pageno(ptr noundef, ptr noundef) #1
declare i32 @file_unlock(ptr noundef) #1
declare i64 @fclose(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @strerror(i64 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmplb1h_y00.c'
source_filename = "/tmp/tmplb1h_y00.c"
target datalayout = "e-m:e-p270: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/tmplb1h_y00.c"
target datalayout = "e-m:e-p270: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/tmpos8mmau5.c'
source_filename = "/tmp/tmpos8mmau5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%X %X %X %X\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
store i32 305419896, ptr %1, align 4
store ptr %1, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = getelementptr inbounds i8, ptr %3, i64 0
%5 = load i8, ptr %4, align 1
%6 = load ptr, ptr %2, align 8
%7 = getelementptr inbounds i8, ptr %6, i64 1
%8 = load i8, ptr %7, align 1
%9 = load ptr, ptr %2, align 8
%10 = getelementptr inbounds i8, ptr %9, i64 2
%11 = load i8, ptr %10, align 1
%12 = load ptr, ptr %2, align 8
%13 = getelementptr inbounds i8, ptr %12, i64 3
%14 = load i8, ptr %13, align 1
%15 = call i32 @printf(ptr noundef @.str, i8 noundef zeroext %5, i8 noundef zeroext %8, i8 noundef zeroext %11, i8 noundef zeroext %14)
%16 = load i32, ptr %1, align 4
%17 = call i32 @htonl(i32 noundef %16)
store i32 %17, ptr %1, align 4
store ptr %1, ptr %2, align 8
%18 = load ptr, ptr %2, align 8
%19 = getelementptr inbounds i8, ptr %18, i64 0
%20 = load i8, ptr %19, align 1
%21 = load ptr, ptr %2, align 8
%22 = getelementptr inbounds i8, ptr %21, i64 1
%23 = load i8, ptr %22, align 1
%24 = load ptr, ptr %2, align 8
%25 = getelementptr inbounds i8, ptr %24, i64 2
%26 = load i8, ptr %25, align 1
%27 = load ptr, ptr %2, align 8
%28 = getelementptr inbounds i8, ptr %27, i64 3
%29 = load i8, ptr %28, align 1
%30 = call i32 @printf(ptr noundef @.str, i8 noundef zeroext %20, i8 noundef zeroext %23, i8 noundef zeroext %26, i8 noundef zeroext %29)
ret i32 0
}
declare i32 @printf(ptr noundef, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) #1
declare i32 @htonl(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/tmpos8mmau5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%X %X %X %X\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
store i32 305419896, ptr %1, align 4
store ptr %1, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = getelementptr inbounds i8, ptr %3, i64 0
%5 = load i8, ptr %4, align 1
%6 = load ptr, ptr %2, align 8
%7 = getelementptr inbounds i8, ptr %6, i64 1
%8 = load i8, ptr %7, align 1
%9 = load ptr, ptr %2, align 8
%10 = getelementptr inbounds i8, ptr %9, i64 2
%11 = load i8, ptr %10, align 1
%12 = load ptr, ptr %2, align 8
%13 = getelementptr inbounds i8, ptr %12, i64 3
%14 = load i8, ptr %13, align 1
%15 = call i32 @printf(ptr noundef @.str, i8 noundef zeroext %5, i8 noundef zeroext %8, i8 noundef zeroext %11, i8 noundef zeroext %14)
%16 = load i32, ptr %1, align 4
%17 = call i32 @htonl(i32 noundef %16)
store i32 %17, ptr %1, align 4
store ptr %1, ptr %2, align 8
%18 = load ptr, ptr %2, align 8
%19 = getelementptr inbounds i8, ptr %18, i64 0
%20 = load i8, ptr %19, align 1
%21 = load ptr, ptr %2, align 8
%22 = getelementptr inbounds i8, ptr %21, i64 1
%23 = load i8, ptr %22, align 1
%24 = load ptr, ptr %2, align 8
%25 = getelementptr inbounds i8, ptr %24, i64 2
%26 = load i8, ptr %25, align 1
%27 = load ptr, ptr %2, align 8
%28 = getelementptr inbounds i8, ptr %27, i64 3
%29 = load i8, ptr %28, align 1
%30 = call i32 @printf(ptr noundef @.str, i8 noundef zeroext %20, i8 noundef zeroext %23, i8 noundef zeroext %26, i8 noundef zeroext %29)
ret i32 0
}
declare i32 @printf(ptr noundef, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) #1
declare i32 @htonl(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/tmp140ebn4l.c'
source_filename = "/tmp/tmp140ebn4l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@M_PI = dso_local global float 0.000000e+00, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @lw6sys_math_rad2deg(float noundef %0) #0 {
%2 = alloca float, align 4
store float %0, ptr %2, align 4
%3 = load float, ptr %2, align 4
%4 = fmul float %3, 1.800000e+02
%5 = load float, ptr @M_PI, align 4
%6 = fdiv float %4, %5
ret float %6
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp140ebn4l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@M_PI = dso_local global float 0.000000e+00, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @lw6sys_math_rad2deg(float noundef %0) #0 {
%2 = alloca float, align 4
store float %0, ptr %2, align 4
%3 = load float, ptr %2, align 4
%4 = fmul float %3, 1.800000e+02
%5 = load float, ptr @M_PI, align 4
%6 = fdiv float %4, %5
ret float %6
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp17clo8ur.c'
source_filename = "/tmp/tmp17clo8ur.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"A:%.3f, B:%.3f, C:%.3f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
store i32 0, ptr %1, align 4
store float 0x40450FDF40000000, ptr %2, align 4
store float 0x40590EB860000000, ptr %3, align 4
store float 0x400920C4A0000000, ptr %4, align 4
%5 = load float, ptr %2, align 4
%6 = load float, ptr %3, align 4
%7 = load float, ptr %4, align 4
%8 = call i32 @printf(ptr noundef @.str, float noundef %5, float noundef %6, float noundef %7)
%9 = call i32 @sort3(ptr noundef %2, ptr noundef %3, ptr noundef %4)
%10 = load float, ptr %2, align 4
%11 = load float, ptr %3, align 4
%12 = load float, ptr %4, align 4
%13 = call i32 @printf(ptr noundef @.str, float noundef %10, float noundef %11, float noundef %12)
ret i32 0
}
declare i32 @printf(ptr noundef, float noundef, float noundef, float noundef) #1
declare i32 @sort3(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/tmp17clo8ur.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"A:%.3f, B:%.3f, C:%.3f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
store i32 0, ptr %1, align 4
store float 0x40450FDF40000000, ptr %2, align 4
store float 0x40590EB860000000, ptr %3, align 4
store float 0x400920C4A0000000, ptr %4, align 4
%5 = load float, ptr %2, align 4
%6 = load float, ptr %3, align 4
%7 = load float, ptr %4, align 4
%8 = call i32 @printf(ptr noundef @.str, float noundef %5, float noundef %6, float noundef %7)
%9 = call i32 @sort3(ptr noundef %2, ptr noundef %3, ptr noundef %4)
%10 = load float, ptr %2, align 4
%11 = load float, ptr %3, align 4
%12 = load float, ptr %4, align 4
%13 = call i32 @printf(ptr noundef @.str, float noundef %10, float noundef %11, float noundef %12)
ret i32 0
}
declare i32 @printf(ptr noundef, float noundef, float noundef, float noundef) #1
declare i32 @sort3(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/tmpcw_yo191.c'
source_filename = "/tmp/tmpcw_yo191.c"
target datalayout = "e-m:e-p270: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/tmpcw_yo191.c"
target datalayout = "e-m:e-p270: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/tmphzr7ak32.c'
source_filename = "/tmp/tmphzr7ak32.c"
target datalayout = "e-m:e-p270: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/tmphzr7ak32.c"
target datalayout = "e-m:e-p270: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/tmpp1y90qjr.c'
source_filename = "/tmp/tmpp1y90qjr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [70 x i8] c"Usage - original_file destination_file color_component color_change.\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"w+\00", align 1
@.str.3 = private unnamed_addr constant [28 x i8] c"Cannot open original file.\0A\00", align 1
@.str.4 = private unnamed_addr constant [31 x i8] c"Cannot open destination file.\0A\00", align 1
@.str.5 = private unnamed_addr constant [7 x i8] c"%d %d\0A\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c"P6\0A\00", align 1
@.str.7 = private unnamed_addr constant [29 x i8] c"#Modified file by as292510.\0A\00", align 1
@.str.8 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.9 = private unnamed_addr constant [61 x i8] c"Wrong color component number. It should be between 1 and 3.\0A\00", align 1
@.str.10 = private unnamed_addr constant [13 x i8] c"end of file\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i8, align 1
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = 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
%18 = load i32, ptr %4, align 4
%19 = icmp ne i32 %18, 5
br i1 %19, label %20, label %22
20: ; preds = %2
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 1, ptr %3, align 4
br label %227
22: ; preds = %2
%23 = load ptr, ptr %5, align 8
%24 = getelementptr inbounds ptr, ptr %23, i64 1
%25 = load ptr, ptr %24, align 8
%26 = call ptr @fopen(ptr noundef %25, ptr noundef @.str.1)
store ptr %26, ptr %6, align 8
%27 = load ptr, ptr %5, align 8
%28 = getelementptr inbounds ptr, ptr %27, i64 2
%29 = load ptr, ptr %28, align 8
%30 = call ptr @fopen(ptr noundef %29, ptr noundef @.str.2)
store ptr %30, ptr %7, align 8
%31 = load ptr, ptr %6, align 8
%32 = icmp eq ptr %31, null
br i1 %32, label %33, label %35
33: ; preds = %22
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 1, ptr %3, align 4
br label %227
35: ; preds = %22
%36 = load ptr, ptr %7, align 8
%37 = icmp eq ptr %36, null
br i1 %37, label %38, label %40
38: ; preds = %35
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 1, ptr %3, align 4
br label %227
40: ; preds = %35
%41 = load ptr, ptr %5, align 8
%42 = getelementptr inbounds ptr, ptr %41, i64 3
%43 = load ptr, ptr %42, align 8
%44 = call i32 @atoi(ptr noundef %43)
store i32 %44, ptr %8, align 4
%45 = load ptr, ptr %5, align 8
%46 = getelementptr inbounds ptr, ptr %45, i64 4
%47 = load ptr, ptr %46, align 8
%48 = call i32 @atoi(ptr noundef %47)
store i32 %48, ptr %9, align 4
%49 = load i32, ptr %8, align 4
%50 = load i32, ptr %9, align 4
%51 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %49, i32 noundef %50)
br label %52
52: ; preds = %57, %40
%53 = load ptr, ptr %6, align 8
%54 = call zeroext i8 @fgetc(ptr noundef %53)
store i8 %54, ptr %14, align 1
%55 = zext i8 %54 to i32
%56 = icmp ne i32 %55, 10
br i1 %56, label %57, label %58
57: ; preds = %52
br label %52, !llvm.loop !6
58: ; preds = %52
%59 = load ptr, ptr %7, align 8
%60 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %59, ptr noundef @.str.6)
br label %61
61: ; preds = %66, %58
%62 = load ptr, ptr %6, align 8
%63 = call zeroext i8 @fgetc(ptr noundef %62)
store i8 %63, ptr %14, align 1
%64 = zext i8 %63 to i32
%65 = icmp ne i32 %64, 10
br i1 %65, label %66, label %67
66: ; preds = %61
br label %61, !llvm.loop !8
67: ; preds = %61
%68 = load ptr, ptr %7, align 8
%69 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %68, ptr noundef @.str.7)
%70 = load ptr, ptr %6, align 8
%71 = call i32 (ptr, ptr, ptr, ...) @fscanf(ptr noundef %70, ptr noundef @.str.5, ptr noundef %11, ptr noundef %12)
%72 = load i32, ptr %11, align 4
%73 = load i32, ptr %12, align 4
%74 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %72, i32 noundef %73)
%75 = load ptr, ptr %7, align 8
%76 = load i32, ptr %11, align 4
%77 = load i32, ptr %12, align 4
%78 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %75, ptr noundef @.str.5, i32 noundef %76, i32 noundef %77)
%79 = load ptr, ptr %6, align 8
%80 = call i32 (ptr, ptr, ptr, ...) @fscanf(ptr noundef %79, ptr noundef @.str.8, ptr noundef %13)
%81 = load i32, ptr %13, align 4
%82 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %81)
%83 = load i32, ptr %8, align 4
%84 = icmp sgt i32 %83, 3
br i1 %84, label %88, label %85
85: ; preds = %67
%86 = load i32, ptr %8, align 4
%87 = icmp slt i32 %86, 1
br i1 %87, label %88, label %90
88: ; preds = %85, %67
%89 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
store i32 1, ptr %3, align 4
br label %227
90: ; preds = %85
%91 = load ptr, ptr %7, align 8
%92 = load i32, ptr %13, align 4
%93 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %91, ptr noundef @.str.8, i32 noundef %92)
%94 = load i32, ptr %11, align 4
%95 = sext i32 %94 to i64
%96 = mul i64 4, %95
%97 = load i32, ptr %12, align 4
%98 = sext i32 %97 to i64
%99 = mul i64 %96, %98
%100 = mul i64 %99, 3
%101 = trunc i64 %100 to i32
%102 = call i64 @malloc(i32 noundef %101)
%103 = inttoptr i64 %102 to ptr
store ptr %103, ptr %10, align 8
store i32 0, ptr %15, align 4
br label %104
104: ; preds = %151, %90
%105 = load i32, ptr %15, align 4
%106 = load i32, ptr %12, align 4
%107 = icmp slt i32 %105, %106
br i1 %107, label %108, label %154
108: ; preds = %104
store i32 0, ptr %16, align 4
br label %109
109: ; preds = %147, %108
%110 = load i32, ptr %16, align 4
%111 = load i32, ptr %11, align 4
%112 = icmp slt i32 %110, %111
br i1 %112, label %113, label %150
113: ; preds = %109
%114 = load i32, ptr %15, align 4
%115 = load i32, ptr %11, align 4
%116 = mul nsw i32 %115, 3
%117 = mul nsw i32 %114, %116
%118 = load i32, ptr %16, align 4
%119 = mul nsw i32 %118, 3
%120 = add nsw i32 %117, %119
store i32 %120, ptr %17, align 4
%121 = load ptr, ptr %6, align 8
%122 = call i32 @fread(ptr noundef %14, i32 noundef 1, i32 noundef 1, ptr noundef %121)
%123 = load i8, ptr %14, align 1
%124 = zext i8 %123 to i32
%125 = load ptr, ptr %10, align 8
%126 = load i32, ptr %17, align 4
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds i32, ptr %125, i64 %127
store i32 %124, ptr %128, align 4
%129 = load ptr, ptr %6, align 8
%130 = call i32 @fread(ptr noundef %14, i32 noundef 1, i32 noundef 1, ptr noundef %129)
%131 = load i8, ptr %14, align 1
%132 = zext i8 %131 to i32
%133 = load ptr, ptr %10, align 8
%134 = load i32, ptr %17, align 4
%135 = add nsw i32 %134, 1
%136 = sext i32 %135 to i64
%137 = getelementptr inbounds i32, ptr %133, i64 %136
store i32 %132, ptr %137, align 4
%138 = load ptr, ptr %6, align 8
%139 = call i32 @fread(ptr noundef %14, i32 noundef 1, i32 noundef 1, ptr noundef %138)
%140 = load i8, ptr %14, align 1
%141 = zext i8 %140 to i32
%142 = load ptr, ptr %10, align 8
%143 = load i32, ptr %17, align 4
%144 = add nsw i32 %143, 2
%145 = sext i32 %144 to i64
%146 = getelementptr inbounds i32, ptr %142, i64 %145
store i32 %141, ptr %146, align 4
br label %147
147: ; preds = %113
%148 = load i32, ptr %16, align 4
%149 = add nsw i32 %148, 1
store i32 %149, ptr %16, align 4
br label %109, !llvm.loop !9
150: ; preds = %109
br label %151
151: ; preds = %150
%152 = load i32, ptr %15, align 4
%153 = add nsw i32 %152, 1
store i32 %153, ptr %15, align 4
br label %104, !llvm.loop !10
154: ; preds = %104
%155 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
store i32 0, ptr %15, align 4
br label %156
156: ; preds = %172, %154
%157 = load i32, ptr %15, align 4
%158 = load i32, ptr %11, align 4
%159 = load i32, ptr %12, align 4
%160 = mul nsw i32 %158, %159
%161 = mul nsw i32 %160, 3
%162 = icmp slt i32 %157, %161
br i1 %162, label %163, label %175
163: ; preds = %156
%164 = load ptr, ptr %10, align 8
%165 = load i32, ptr %15, align 4
%166 = sext i32 %165 to i64
%167 = getelementptr inbounds i32, ptr %164, i64 %166
%168 = load i32, ptr %167, align 4
%169 = icmp sge i32 %168, 0
%170 = zext i1 %169 to i32
%171 = call i32 @assert(i32 noundef %170)
br label %172
172: ; preds = %163
%173 = load i32, ptr %15, align 4
%174 = add nsw i32 %173, 1
store i32 %174, ptr %15, align 4
br label %156, !llvm.loop !11
175: ; preds = %156
%176 = load ptr, ptr %10, align 8
%177 = load i32, ptr %11, align 4
%178 = load i32, ptr %12, align 4
%179 = load i32, ptr %8, align 4
%180 = sub nsw i32 %179, 1
%181 = load i32, ptr %9, align 4
%182 = call i32 @convert_ppm(ptr noundef %176, i32 noundef %177, i32 noundef %178, i32 noundef %180, i32 noundef %181)
store i32 0, ptr %15, align 4
br label %183
183: ; preds = %199, %175
%184 = load i32, ptr %15, align 4
%185 = load i32, ptr %11, align 4
%186 = load i32, ptr %12, align 4
%187 = mul nsw i32 %185, %186
%188 = mul nsw i32 %187, 3
%189 = icmp slt i32 %184, %188
br i1 %189, label %190, label %202
190: ; preds = %183
%191 = load ptr, ptr %10, align 8
%192 = load i32, ptr %15, align 4
%193 = sext i32 %192 to i64
%194 = getelementptr inbounds i32, ptr %191, i64 %193
%195 = load i32, ptr %194, align 4
%196 = icmp sge i32 %195, 0
%197 = zext i1 %196 to i32
%198 = call i32 @assert(i32 noundef %197)
br label %199
199: ; preds = %190
%200 = load i32, ptr %15, align 4
%201 = add nsw i32 %200, 1
store i32 %201, ptr %15, align 4
br label %183, !llvm.loop !12
202: ; preds = %183
store i32 0, ptr %15, align 4
br label %203
203: ; preds = %219, %202
%204 = load i32, ptr %15, align 4
%205 = load i32, ptr %11, align 4
%206 = load i32, ptr %12, align 4
%207 = mul nsw i32 %205, %206
%208 = mul nsw i32 %207, 3
%209 = icmp slt i32 %204, %208
br i1 %209, label %210, label %222
210: ; preds = %203
%211 = load ptr, ptr %10, align 8
%212 = load i32, ptr %15, align 4
%213 = sext i32 %212 to i64
%214 = getelementptr inbounds i32, ptr %211, i64 %213
%215 = load i32, ptr %214, align 4
%216 = trunc i32 %215 to i8
store i8 %216, ptr %14, align 1
%217 = load ptr, ptr %7, align 8
%218 = call i32 @fwrite(ptr noundef %14, i32 noundef 1, i32 noundef 1, ptr noundef %217)
br label %219
219: ; preds = %210
%220 = load i32, ptr %15, align 4
%221 = add nsw i32 %220, 1
store i32 %221, ptr %15, align 4
br label %203, !llvm.loop !13
222: ; preds = %203
%223 = load ptr, ptr %6, align 8
%224 = call i32 @fclose(ptr noundef %223)
%225 = load ptr, ptr %7, align 8
%226 = call i32 @fclose(ptr noundef %225)
store i32 0, ptr %3, align 4
br label %227
227: ; preds = %222, %88, %38, %33, %20
%228 = load i32, ptr %3, align 4
ret i32 %228
}
declare i32 @printf(ptr noundef, ...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
declare zeroext i8 @fgetc(ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1
declare i32 @fscanf(ptr noundef, ptr noundef, ptr noundef, ...) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @assert(i32 noundef) #1
declare i32 @convert_ppm(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpp1y90qjr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [70 x i8] c"Usage - original_file destination_file color_component color_change.\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"w+\00", align 1
@.str.3 = private unnamed_addr constant [28 x i8] c"Cannot open original file.\0A\00", align 1
@.str.4 = private unnamed_addr constant [31 x i8] c"Cannot open destination file.\0A\00", align 1
@.str.5 = private unnamed_addr constant [7 x i8] c"%d %d\0A\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c"P6\0A\00", align 1
@.str.7 = private unnamed_addr constant [29 x i8] c"#Modified file by as292510.\0A\00", align 1
@.str.8 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.9 = private unnamed_addr constant [61 x i8] c"Wrong color component number. It should be between 1 and 3.\0A\00", align 1
@.str.10 = private unnamed_addr constant [13 x i8] c"end of file\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i8, align 1
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = 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
%18 = load i32, ptr %4, align 4
%19 = icmp ne i32 %18, 5
br i1 %19, label %20, label %22
20: ; preds = %2
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 1, ptr %3, align 4
br label %244
22: ; preds = %2
%23 = load ptr, ptr %5, align 8
%24 = getelementptr inbounds ptr, ptr %23, i64 1
%25 = load ptr, ptr %24, align 8
%26 = call ptr @fopen(ptr noundef %25, ptr noundef @.str.1)
store ptr %26, ptr %6, align 8
%27 = load ptr, ptr %5, align 8
%28 = getelementptr inbounds ptr, ptr %27, i64 2
%29 = load ptr, ptr %28, align 8
%30 = call ptr @fopen(ptr noundef %29, ptr noundef @.str.2)
store ptr %30, ptr %7, align 8
%31 = load ptr, ptr %6, align 8
%32 = icmp eq ptr %31, null
br i1 %32, label %33, label %35
33: ; preds = %22
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 1, ptr %3, align 4
br label %244
35: ; preds = %22
%36 = load ptr, ptr %7, align 8
%37 = icmp eq ptr %36, null
br i1 %37, label %38, label %40
38: ; preds = %35
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 1, ptr %3, align 4
br label %244
40: ; preds = %35
%41 = load ptr, ptr %5, align 8
%42 = getelementptr inbounds ptr, ptr %41, i64 3
%43 = load ptr, ptr %42, align 8
%44 = call i32 @atoi(ptr noundef %43)
store i32 %44, ptr %8, align 4
%45 = load ptr, ptr %5, align 8
%46 = getelementptr inbounds ptr, ptr %45, i64 4
%47 = load ptr, ptr %46, align 8
%48 = call i32 @atoi(ptr noundef %47)
store i32 %48, ptr %9, align 4
%49 = load i32, ptr %8, align 4
%50 = load i32, ptr %9, align 4
%51 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %49, i32 noundef %50)
br label %52
52: ; preds = %52, %40
%53 = load ptr, ptr %6, align 8
%54 = call zeroext i8 @fgetc(ptr noundef %53)
store i8 %54, ptr %14, align 1
%55 = zext i8 %54 to i32
%56 = icmp ne i32 %55, 10
br i1 %56, label %52, label %57, !llvm.loop !6
57: ; preds = %52
%58 = load ptr, ptr %7, align 8
%59 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %58, ptr noundef @.str.6)
br label %60
60: ; preds = %60, %57
%61 = load ptr, ptr %6, align 8
%62 = call zeroext i8 @fgetc(ptr noundef %61)
store i8 %62, ptr %14, align 1
%63 = zext i8 %62 to i32
%64 = icmp ne i32 %63, 10
br i1 %64, label %60, label %65, !llvm.loop !8
65: ; preds = %60
%66 = load ptr, ptr %7, align 8
%67 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %66, ptr noundef @.str.7)
%68 = load ptr, ptr %6, align 8
%69 = call i32 (ptr, ptr, ptr, ...) @fscanf(ptr noundef %68, ptr noundef @.str.5, ptr noundef %11, ptr noundef %12)
%70 = load i32, ptr %11, align 4
%71 = load i32, ptr %12, align 4
%72 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %70, i32 noundef %71)
%73 = load ptr, ptr %7, align 8
%74 = load i32, ptr %11, align 4
%75 = load i32, ptr %12, align 4
%76 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %73, ptr noundef @.str.5, i32 noundef %74, i32 noundef %75)
%77 = load ptr, ptr %6, align 8
%78 = call i32 (ptr, ptr, ptr, ...) @fscanf(ptr noundef %77, ptr noundef @.str.8, ptr noundef %13)
%79 = load i32, ptr %13, align 4
%80 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %79)
%81 = load i32, ptr %8, align 4
%82 = icmp sgt i32 %81, 3
br i1 %82, label %86, label %83
83: ; preds = %65
%84 = load i32, ptr %8, align 4
%85 = icmp slt i32 %84, 1
br i1 %85, label %86, label %88
86: ; preds = %83, %65
%87 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
store i32 1, ptr %3, align 4
br label %244
88: ; preds = %83
%89 = load ptr, ptr %7, align 8
%90 = load i32, ptr %13, align 4
%91 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %89, ptr noundef @.str.8, i32 noundef %90)
%92 = load i32, ptr %11, align 4
%93 = sext i32 %92 to i64
%94 = mul i64 4, %93
%95 = load i32, ptr %12, align 4
%96 = sext i32 %95 to i64
%97 = mul i64 %94, %96
%98 = mul i64 %97, 3
%99 = trunc i64 %98 to i32
%100 = call i64 @malloc(i32 noundef %99)
%101 = inttoptr i64 %100 to ptr
store ptr %101, ptr %10, align 8
store i32 0, ptr %15, align 4
%102 = load i32, ptr %15, align 4
%103 = load i32, ptr %12, align 4
%104 = icmp slt i32 %102, %103
br i1 %104, label %.lr.ph2, label %156
.lr.ph2: ; preds = %88
br label %105
105: ; preds = %.lr.ph2, %150
store i32 0, ptr %16, align 4
%106 = load i32, ptr %16, align 4
%107 = load i32, ptr %11, align 4
%108 = icmp slt i32 %106, %107
br i1 %108, label %.lr.ph, label %149
.lr.ph: ; preds = %105
br label %109
109: ; preds = %.lr.ph, %143
%110 = load i32, ptr %15, align 4
%111 = load i32, ptr %11, align 4
%112 = mul nsw i32 %111, 3
%113 = mul nsw i32 %110, %112
%114 = load i32, ptr %16, align 4
%115 = mul nsw i32 %114, 3
%116 = add nsw i32 %113, %115
store i32 %116, ptr %17, align 4
%117 = load ptr, ptr %6, align 8
%118 = call i32 @fread(ptr noundef %14, i32 noundef 1, i32 noundef 1, ptr noundef %117)
%119 = load i8, ptr %14, align 1
%120 = zext i8 %119 to i32
%121 = load ptr, ptr %10, align 8
%122 = load i32, ptr %17, align 4
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds i32, ptr %121, i64 %123
store i32 %120, ptr %124, align 4
%125 = load ptr, ptr %6, align 8
%126 = call i32 @fread(ptr noundef %14, i32 noundef 1, i32 noundef 1, ptr noundef %125)
%127 = load i8, ptr %14, align 1
%128 = zext i8 %127 to i32
%129 = load ptr, ptr %10, align 8
%130 = load i32, ptr %17, align 4
%131 = add nsw i32 %130, 1
%132 = sext i32 %131 to i64
%133 = getelementptr inbounds i32, ptr %129, i64 %132
store i32 %128, ptr %133, align 4
%134 = load ptr, ptr %6, align 8
%135 = call i32 @fread(ptr noundef %14, i32 noundef 1, i32 noundef 1, ptr noundef %134)
%136 = load i8, ptr %14, align 1
%137 = zext i8 %136 to i32
%138 = load ptr, ptr %10, align 8
%139 = load i32, ptr %17, align 4
%140 = add nsw i32 %139, 2
%141 = sext i32 %140 to i64
%142 = getelementptr inbounds i32, ptr %138, i64 %141
store i32 %137, ptr %142, align 4
br label %143
143: ; preds = %109
%144 = load i32, ptr %16, align 4
%145 = add nsw i32 %144, 1
store i32 %145, ptr %16, align 4
%146 = load i32, ptr %16, align 4
%147 = load i32, ptr %11, align 4
%148 = icmp slt i32 %146, %147
br i1 %148, label %109, label %._crit_edge, !llvm.loop !9
._crit_edge: ; preds = %143
br label %149
149: ; preds = %._crit_edge, %105
br label %150
150: ; preds = %149
%151 = load i32, ptr %15, align 4
%152 = add nsw i32 %151, 1
store i32 %152, ptr %15, align 4
%153 = load i32, ptr %15, align 4
%154 = load i32, ptr %12, align 4
%155 = icmp slt i32 %153, %154
br i1 %155, label %105, label %._crit_edge3, !llvm.loop !10
._crit_edge3: ; preds = %150
br label %156
156: ; preds = %._crit_edge3, %88
%157 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
store i32 0, ptr %15, align 4
%158 = load i32, ptr %15, align 4
%159 = load i32, ptr %11, align 4
%160 = load i32, ptr %12, align 4
%161 = mul nsw i32 %159, %160
%162 = mul nsw i32 %161, 3
%163 = icmp slt i32 %158, %162
br i1 %163, label %.lr.ph5, label %182
.lr.ph5: ; preds = %156
br label %164
164: ; preds = %.lr.ph5, %173
%165 = load ptr, ptr %10, align 8
%166 = load i32, ptr %15, align 4
%167 = sext i32 %166 to i64
%168 = getelementptr inbounds i32, ptr %165, i64 %167
%169 = load i32, ptr %168, align 4
%170 = icmp sge i32 %169, 0
%171 = zext i1 %170 to i32
%172 = call i32 @assert(i32 noundef %171)
br label %173
173: ; preds = %164
%174 = load i32, ptr %15, align 4
%175 = add nsw i32 %174, 1
store i32 %175, ptr %15, align 4
%176 = load i32, ptr %15, align 4
%177 = load i32, ptr %11, align 4
%178 = load i32, ptr %12, align 4
%179 = mul nsw i32 %177, %178
%180 = mul nsw i32 %179, 3
%181 = icmp slt i32 %176, %180
br i1 %181, label %164, label %._crit_edge6, !llvm.loop !11
._crit_edge6: ; preds = %173
br label %182
182: ; preds = %._crit_edge6, %156
%183 = load ptr, ptr %10, align 8
%184 = load i32, ptr %11, align 4
%185 = load i32, ptr %12, align 4
%186 = load i32, ptr %8, align 4
%187 = sub nsw i32 %186, 1
%188 = load i32, ptr %9, align 4
%189 = call i32 @convert_ppm(ptr noundef %183, i32 noundef %184, i32 noundef %185, i32 noundef %187, i32 noundef %188)
store i32 0, ptr %15, align 4
%190 = load i32, ptr %15, align 4
%191 = load i32, ptr %11, align 4
%192 = load i32, ptr %12, align 4
%193 = mul nsw i32 %191, %192
%194 = mul nsw i32 %193, 3
%195 = icmp slt i32 %190, %194
br i1 %195, label %.lr.ph8, label %214
.lr.ph8: ; preds = %182
br label %196
196: ; preds = %.lr.ph8, %205
%197 = load ptr, ptr %10, align 8
%198 = load i32, ptr %15, align 4
%199 = sext i32 %198 to i64
%200 = getelementptr inbounds i32, ptr %197, i64 %199
%201 = load i32, ptr %200, align 4
%202 = icmp sge i32 %201, 0
%203 = zext i1 %202 to i32
%204 = call i32 @assert(i32 noundef %203)
br label %205
205: ; preds = %196
%206 = load i32, ptr %15, align 4
%207 = add nsw i32 %206, 1
store i32 %207, ptr %15, align 4
%208 = load i32, ptr %15, align 4
%209 = load i32, ptr %11, align 4
%210 = load i32, ptr %12, align 4
%211 = mul nsw i32 %209, %210
%212 = mul nsw i32 %211, 3
%213 = icmp slt i32 %208, %212
br i1 %213, label %196, label %._crit_edge9, !llvm.loop !12
._crit_edge9: ; preds = %205
br label %214
214: ; preds = %._crit_edge9, %182
store i32 0, ptr %15, align 4
%215 = load i32, ptr %15, align 4
%216 = load i32, ptr %11, align 4
%217 = load i32, ptr %12, align 4
%218 = mul nsw i32 %216, %217
%219 = mul nsw i32 %218, 3
%220 = icmp slt i32 %215, %219
br i1 %220, label %.lr.ph11, label %239
.lr.ph11: ; preds = %214
br label %221
221: ; preds = %.lr.ph11, %230
%222 = load ptr, ptr %10, align 8
%223 = load i32, ptr %15, align 4
%224 = sext i32 %223 to i64
%225 = getelementptr inbounds i32, ptr %222, i64 %224
%226 = load i32, ptr %225, align 4
%227 = trunc i32 %226 to i8
store i8 %227, ptr %14, align 1
%228 = load ptr, ptr %7, align 8
%229 = call i32 @fwrite(ptr noundef %14, i32 noundef 1, i32 noundef 1, ptr noundef %228)
br label %230
230: ; preds = %221
%231 = load i32, ptr %15, align 4
%232 = add nsw i32 %231, 1
store i32 %232, ptr %15, align 4
%233 = load i32, ptr %15, align 4
%234 = load i32, ptr %11, align 4
%235 = load i32, ptr %12, align 4
%236 = mul nsw i32 %234, %235
%237 = mul nsw i32 %236, 3
%238 = icmp slt i32 %233, %237
br i1 %238, label %221, label %._crit_edge12, !llvm.loop !13
._crit_edge12: ; preds = %230
br label %239
239: ; preds = %._crit_edge12, %214
%240 = load ptr, ptr %6, align 8
%241 = call i32 @fclose(ptr noundef %240)
%242 = load ptr, ptr %7, align 8
%243 = call i32 @fclose(ptr noundef %242)
store i32 0, ptr %3, align 4
br label %244
244: ; preds = %239, %86, %38, %33, %20
%245 = load i32, ptr %3, align 4
ret i32 %245
}
declare i32 @printf(ptr noundef, ...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
declare zeroext i8 @fgetc(ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1
declare i32 @fscanf(ptr noundef, ptr noundef, ptr noundef, ...) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @assert(i32 noundef) #1
declare i32 @convert_ppm(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
|
; ModuleID = '/tmp/tmpqbm3bxck.c'
source_filename = "/tmp/tmpqbm3bxck.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"func(): &li:%p\0A\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"func(): &lc:%p\0A\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"func(): &lf:%p\0A\00", align 1
@.str.3 = private unnamed_addr constant [16 x i8] c"func(): &ld:%p\0A\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @func() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i8, align 1
%4 = alloca ptr, align 8
%5 = alloca float, align 4
%6 = alloca ptr, align 8
%7 = alloca double, align 8
%8 = alloca ptr, align 8
store ptr %1, ptr %2, align 8
store ptr %3, ptr %4, align 8
store ptr %5, ptr %6, align 8
store ptr %7, ptr %8, align 8
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %2)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %4)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %6)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %8)
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
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/tmpqbm3bxck.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"func(): &li:%p\0A\00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"func(): &lc:%p\0A\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"func(): &lf:%p\0A\00", align 1
@.str.3 = private unnamed_addr constant [16 x i8] c"func(): &ld:%p\0A\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @func() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i8, align 1
%4 = alloca ptr, align 8
%5 = alloca float, align 4
%6 = alloca ptr, align 8
%7 = alloca double, align 8
%8 = alloca ptr, align 8
store ptr %1, ptr %2, align 8
store ptr %3, ptr %4, align 8
store ptr %5, ptr %6, align 8
store ptr %7, ptr %8, align 8
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %2)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %4)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %6)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %8)
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
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/tmp879i663u.c'
source_filename = "/tmp/tmp879i663u.c"
target datalayout = "e-m:e-p270: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/tmp879i663u.c"
target datalayout = "e-m:e-p270: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/tmpeitkvms4.c'
source_filename = "/tmp/tmpeitkvms4.c"
target datalayout = "e-m:e-p270: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.check_run_files.buf = private unnamed_addr constant [4 x i8] c"rc0\00", align 1
@.str = private unnamed_addr constant [5 x i8] c"boot\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"rcS\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"start\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @check_run_files(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca [4 x i8], align 1
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %7, ptr align 1 @__const.check_run_files.buf, i64 4, i1 false)
%8 = load ptr, ptr %4, align 8
%9 = call i32 @strcmp(ptr noundef %8, ptr noundef @.str)
%10 = icmp ne i32 %9, 0
br i1 %10, label %13, label %11
11: ; preds = %3
%12 = call i32 @filter_files(ptr noundef @.str.1, i8 noundef signext 83, i32 noundef 0)
br label %40
13: ; preds = %3
%14 = load ptr, ptr %4, align 8
%15 = call i32 @strcmp(ptr noundef %14, ptr noundef @.str.2)
%16 = icmp ne i32 %15, 0
br i1 %16, label %28, label %17
17: ; preds = %13
%18 = load ptr, ptr %5, align 8
%19 = load i8, ptr %18, align 1
%20 = getelementptr inbounds [4 x i8], ptr %7, i64 0, i64 2
store i8 %19, ptr %20, align 1
%21 = getelementptr inbounds [4 x i8], ptr %7, i64 0, i64 0
%22 = call i32 @filter_files(ptr noundef %21, i8 noundef signext 83, i32 noundef 1)
%23 = load ptr, ptr %6, align 8
%24 = load i8, ptr %23, align 1
%25 = getelementptr inbounds [4 x i8], ptr %7, i64 0, i64 2
store i8 %24, ptr %25, align 1
%26 = getelementptr inbounds [4 x i8], ptr %7, i64 0, i64 0
%27 = call i32 @filter_files(ptr noundef %26, i8 noundef signext 83, i32 noundef 0)
br label %39
28: ; preds = %13
%29 = load ptr, ptr %5, align 8
%30 = load i8, ptr %29, align 1
%31 = getelementptr inbounds [4 x i8], ptr %7, i64 0, i64 2
store i8 %30, ptr %31, align 1
%32 = getelementptr inbounds [4 x i8], ptr %7, i64 0, i64 0
%33 = call i32 @filter_files(ptr noundef %32, i8 noundef signext 75, i32 noundef 1)
%34 = load ptr, ptr %6, align 8
%35 = load i8, ptr %34, align 1
%36 = getelementptr inbounds [4 x i8], ptr %7, i64 0, i64 2
store i8 %35, ptr %36, align 1
%37 = getelementptr inbounds [4 x i8], ptr %7, i64 0, i64 0
%38 = call i32 @filter_files(ptr noundef %37, i8 noundef signext 75, i32 noundef 0)
br label %39
39: ; preds = %28, %17
br label %40
40: ; preds = %39, %11
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @strcmp(ptr noundef, ptr noundef) #2
declare i32 @filter_files(ptr noundef, i8 noundef signext, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpeitkvms4.c"
target datalayout = "e-m:e-p270: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.check_run_files.buf = private unnamed_addr constant [4 x i8] c"rc0\00", align 1
@.str = private unnamed_addr constant [5 x i8] c"boot\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"rcS\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"start\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @check_run_files(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca [4 x i8], align 1
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %7, ptr align 1 @__const.check_run_files.buf, i64 4, i1 false)
%8 = load ptr, ptr %4, align 8
%9 = call i32 @strcmp(ptr noundef %8, ptr noundef @.str)
%10 = icmp ne i32 %9, 0
br i1 %10, label %13, label %11
11: ; preds = %3
%12 = call i32 @filter_files(ptr noundef @.str.1, i8 noundef signext 83, i32 noundef 0)
br label %40
13: ; preds = %3
%14 = load ptr, ptr %4, align 8
%15 = call i32 @strcmp(ptr noundef %14, ptr noundef @.str.2)
%16 = icmp ne i32 %15, 0
br i1 %16, label %28, label %17
17: ; preds = %13
%18 = load ptr, ptr %5, align 8
%19 = load i8, ptr %18, align 1
%20 = getelementptr inbounds [4 x i8], ptr %7, i64 0, i64 2
store i8 %19, ptr %20, align 1
%21 = getelementptr inbounds [4 x i8], ptr %7, i64 0, i64 0
%22 = call i32 @filter_files(ptr noundef %21, i8 noundef signext 83, i32 noundef 1)
%23 = load ptr, ptr %6, align 8
%24 = load i8, ptr %23, align 1
%25 = getelementptr inbounds [4 x i8], ptr %7, i64 0, i64 2
store i8 %24, ptr %25, align 1
%26 = getelementptr inbounds [4 x i8], ptr %7, i64 0, i64 0
%27 = call i32 @filter_files(ptr noundef %26, i8 noundef signext 83, i32 noundef 0)
br label %39
28: ; preds = %13
%29 = load ptr, ptr %5, align 8
%30 = load i8, ptr %29, align 1
%31 = getelementptr inbounds [4 x i8], ptr %7, i64 0, i64 2
store i8 %30, ptr %31, align 1
%32 = getelementptr inbounds [4 x i8], ptr %7, i64 0, i64 0
%33 = call i32 @filter_files(ptr noundef %32, i8 noundef signext 75, i32 noundef 1)
%34 = load ptr, ptr %6, align 8
%35 = load i8, ptr %34, align 1
%36 = getelementptr inbounds [4 x i8], ptr %7, i64 0, i64 2
store i8 %35, ptr %36, align 1
%37 = getelementptr inbounds [4 x i8], ptr %7, i64 0, i64 0
%38 = call i32 @filter_files(ptr noundef %37, i8 noundef signext 75, i32 noundef 0)
br label %39
39: ; preds = %28, %17
br label %40
40: ; preds = %39, %11
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @strcmp(ptr noundef, ptr noundef) #2
declare i32 @filter_files(ptr noundef, i8 noundef signext, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpm3ffiixt.c'
source_filename = "/tmp/tmpm3ffiixt.c"
target datalayout = "e-m:e-p270: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/tmpm3ffiixt.c"
target datalayout = "e-m:e-p270: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/tmpn88j_zx6.c'
source_filename = "/tmp/tmpn88j_zx6.c"
target datalayout = "e-m:e-p270: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/tmpn88j_zx6.c"
target datalayout = "e-m:e-p270: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/tmpluz_g_ir.c'
source_filename = "/tmp/tmpluz_g_ir.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0A\0AHighest grade: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @menuMaximum(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
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %6, align 4
%10 = call i32 @maximum(ptr noundef %7, i32 noundef %8, i32 noundef %9)
%11 = call i32 @printf(ptr noundef @.str, i32 noundef %10)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @maximum(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/tmpluz_g_ir.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0A\0AHighest grade: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @menuMaximum(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
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %6, align 4
%10 = call i32 @maximum(ptr noundef %7, i32 noundef %8, i32 noundef %9)
%11 = call i32 @printf(ptr noundef @.str, i32 noundef %10)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @maximum(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/tmp5fqtbl7n.c'
source_filename = "/tmp/tmp5fqtbl7n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Cyc_scan_exp_opt(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = ptrtoint ptr %6 to i32
%8 = icmp ne i32 %7, 0
br i1 %8, label %9, label %14
9: ; preds = %2
%10 = load ptr, ptr %3, align 8
%11 = load ptr, ptr %4, align 8
%12 = call i32 @Cyc_scan_exp(ptr noundef %10, ptr noundef %11)
store i32 %12, ptr %5, align 4
%13 = load i32, ptr %5, align 4
br label %14
14: ; preds = %9, %2
ret void
}
declare i32 @Cyc_scan_exp(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/tmp5fqtbl7n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Cyc_scan_exp_opt(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = ptrtoint ptr %6 to i32
%8 = icmp ne i32 %7, 0
br i1 %8, label %9, label %14
9: ; preds = %2
%10 = load ptr, ptr %3, align 8
%11 = load ptr, ptr %4, align 8
%12 = call i32 @Cyc_scan_exp(ptr noundef %10, ptr noundef %11)
store i32 %12, ptr %5, align 4
%13 = load i32, ptr %5, align 4
br label %14
14: ; preds = %9, %2
ret void
}
declare i32 @Cyc_scan_exp(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/tmpv7xzvhtq.c'
source_filename = "/tmp/tmpv7xzvhtq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Reset_SVG_Frame() #0 {
%1 = call i32 (...) @reset_svg_frame()
ret void
}
declare i32 @reset_svg_frame(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpv7xzvhtq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Reset_SVG_Frame() #0 {
%1 = call i32 (...) @reset_svg_frame()
ret void
}
declare i32 @reset_svg_frame(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpj3azb_8l.c'
source_filename = "/tmp/tmpj3azb_8l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @tgammaf(float noundef %0) #0 {
%2 = alloca float, align 4
store float %0, ptr %2, align 4
%3 = load float, ptr %2, align 4
%4 = call float @__nv_tgammaf(float noundef %3)
ret float %4
}
declare float @__nv_tgammaf(float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpj3azb_8l.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @tgammaf(float noundef %0) #0 {
%2 = alloca float, align 4
store float %0, ptr %2, align 4
%3 = load float, ptr %2, align 4
%4 = call float @__nv_tgammaf(float noundef %3)
ret float %4
}
declare float @__nv_tgammaf(float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpehrky9mf.c'
source_filename = "/tmp/tmpehrky9mf.c"
target datalayout = "e-m:e-p270: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/tmpehrky9mf.c"
target datalayout = "e-m:e-p270: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/tmpqbb3abjw.c'
source_filename = "/tmp/tmpqbb3abjw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"skipped\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call 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/tmpqbb3abjw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"skipped\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call 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/tmpesdh5cih.c'
source_filename = "/tmp/tmpesdh5cih.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"CMP_EXACT\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"CMP_MATCH\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"CMP_LONGEST\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 ptr @ccnl_matchMode2str(i32 noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
switch i32 %4, label %14 [
i32 0, label %5
i32 1, label %8
i32 2, label %11
]
5: ; preds = %1
%6 = call i32 @PSTR(ptr noundef @.str)
%7 = call ptr @ccnl_arduino_getPROGMEMstr(i32 noundef %6)
store ptr %7, ptr %2, align 8
br label %17
8: ; preds = %1
%9 = call i32 @PSTR(ptr noundef @.str.1)
%10 = call ptr @ccnl_arduino_getPROGMEMstr(i32 noundef %9)
store ptr %10, ptr %2, align 8
br label %17
11: ; preds = %1
%12 = call i32 @PSTR(ptr noundef @.str.2)
%13 = call ptr @ccnl_arduino_getPROGMEMstr(i32 noundef %12)
store ptr %13, ptr %2, align 8
br label %17
14: ; preds = %1
%15 = call i32 @PSTR(ptr noundef @.str.3)
%16 = call ptr @ccnl_arduino_getPROGMEMstr(i32 noundef %15)
store ptr %16, ptr %2, align 8
br label %17
17: ; preds = %14, %11, %8, %5
%18 = load ptr, ptr %2, align 8
ret ptr %18
}
declare ptr @ccnl_arduino_getPROGMEMstr(i32 noundef) #1
declare i32 @PSTR(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpesdh5cih.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"CMP_EXACT\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"CMP_MATCH\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"CMP_LONGEST\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 ptr @ccnl_matchMode2str(i32 noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
switch i32 %4, label %14 [
i32 0, label %5
i32 1, label %8
i32 2, label %11
]
5: ; preds = %1
%6 = call i32 @PSTR(ptr noundef @.str)
%7 = call ptr @ccnl_arduino_getPROGMEMstr(i32 noundef %6)
store ptr %7, ptr %2, align 8
br label %17
8: ; preds = %1
%9 = call i32 @PSTR(ptr noundef @.str.1)
%10 = call ptr @ccnl_arduino_getPROGMEMstr(i32 noundef %9)
store ptr %10, ptr %2, align 8
br label %17
11: ; preds = %1
%12 = call i32 @PSTR(ptr noundef @.str.2)
%13 = call ptr @ccnl_arduino_getPROGMEMstr(i32 noundef %12)
store ptr %13, ptr %2, align 8
br label %17
14: ; preds = %1
%15 = call i32 @PSTR(ptr noundef @.str.3)
%16 = call ptr @ccnl_arduino_getPROGMEMstr(i32 noundef %15)
store ptr %16, ptr %2, align 8
br label %17
17: ; preds = %14, %11, %8, %5
%18 = load ptr, ptr %2, align 8
ret ptr %18
}
declare ptr @ccnl_arduino_getPROGMEMstr(i32 noundef) #1
declare i32 @PSTR(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmppqcc1n7k.c'
source_filename = "/tmp/tmppqcc1n7k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @fichier_existe(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = call ptr @fopen(ptr noundef %5, ptr noundef @.str)
store ptr %6, ptr %4, align 8
%7 = load ptr, ptr %4, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %9, label %12
9: ; preds = %1
%10 = load ptr, ptr %4, align 8
%11 = call i32 @fclose(ptr noundef %10)
store i32 1, ptr %2, align 4
br label %13
12: ; preds = %1
store i32 0, ptr %2, align 4
br label %13
13: ; preds = %12, %9
%14 = load i32, ptr %2, align 4
ret i32 %14
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmppqcc1n7k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @fichier_existe(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = call ptr @fopen(ptr noundef %5, ptr noundef @.str)
store ptr %6, ptr %4, align 8
%7 = load ptr, ptr %4, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %9, label %12
9: ; preds = %1
%10 = load ptr, ptr %4, align 8
%11 = call i32 @fclose(ptr noundef %10)
store i32 1, ptr %2, align 4
br label %13
12: ; preds = %1
store i32 0, ptr %2, align 4
br label %13
13: ; preds = %12, %9
%14 = load i32, ptr %2, align 4
ret i32 %14
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpc4jxmddy.c'
source_filename = "/tmp/tmpc4jxmddy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @send_msg_recv_ret(i32 noundef %0, i32 noundef %1, i32 noundef %2, i64 noundef %3, ptr noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i64, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store i32 %0, ptr %6, align 4
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store i64 %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
%13 = load i32, ptr %6, align 4
%14 = load i32, ptr %7, align 4
%15 = load i32, ptr %8, align 4
%16 = load i64, ptr %9, align 8
%17 = load ptr, ptr %10, align 8
%18 = call i32 @send_msg(i32 noundef %13, i32 noundef %14, i32 noundef %15, i64 noundef %16, ptr noundef %17)
store i32 %18, ptr %11, align 4
%19 = load i32, ptr %11, align 4
%20 = icmp ne i32 %19, 0
br i1 %20, label %31, label %21
21: ; preds = %5
%22 = load i32, ptr %6, align 4
%23 = call i32 @recv_safe(i32 noundef %22, ptr noundef %12, i32 noundef 4)
store i32 %23, ptr %11, align 4
%24 = load i32, ptr %11, align 4
%25 = icmp ne i32 %24, 0
br i1 %25, label %30, label %26
26: ; preds = %21
%27 = load i32, ptr %12, align 4
%28 = call i32 @ntohl(i32 noundef %27)
%29 = sub nsw i32 0, %28
store i32 %29, ptr %11, align 4
br label %30
30: ; preds = %26, %21
br label %31
31: ; preds = %30, %5
%32 = load i32, ptr %11, align 4
ret i32 %32
}
declare i32 @send_msg(i32 noundef, i32 noundef, i32 noundef, i64 noundef, ptr noundef) #1
declare i32 @recv_safe(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @ntohl(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/tmpc4jxmddy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @send_msg_recv_ret(i32 noundef %0, i32 noundef %1, i32 noundef %2, i64 noundef %3, ptr noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i64, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store i32 %0, ptr %6, align 4
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store i64 %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
%13 = load i32, ptr %6, align 4
%14 = load i32, ptr %7, align 4
%15 = load i32, ptr %8, align 4
%16 = load i64, ptr %9, align 8
%17 = load ptr, ptr %10, align 8
%18 = call i32 @send_msg(i32 noundef %13, i32 noundef %14, i32 noundef %15, i64 noundef %16, ptr noundef %17)
store i32 %18, ptr %11, align 4
%19 = load i32, ptr %11, align 4
%20 = icmp ne i32 %19, 0
br i1 %20, label %31, label %21
21: ; preds = %5
%22 = load i32, ptr %6, align 4
%23 = call i32 @recv_safe(i32 noundef %22, ptr noundef %12, i32 noundef 4)
store i32 %23, ptr %11, align 4
%24 = load i32, ptr %11, align 4
%25 = icmp ne i32 %24, 0
br i1 %25, label %30, label %26
26: ; preds = %21
%27 = load i32, ptr %12, align 4
%28 = call i32 @ntohl(i32 noundef %27)
%29 = sub nsw i32 0, %28
store i32 %29, ptr %11, align 4
br label %30
30: ; preds = %26, %21
br label %31
31: ; preds = %30, %5
%32 = load i32, ptr %11, align 4
ret i32 %32
}
declare i32 @send_msg(i32 noundef, i32 noundef, i32 noundef, i64 noundef, ptr noundef) #1
declare i32 @recv_safe(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @ntohl(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/tmpdqwzoh7g.c'
source_filename = "/tmp/tmpdqwzoh7g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @explicit_escape_sequence(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = icmp eq i32 %4, 9
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = call i32 @putchar(i32 noundef 92)
%8 = call i32 @putchar(i32 noundef 116)
br label %26
9: ; preds = %1
%10 = load i32, ptr %3, align 4
%11 = icmp eq i32 %10, 8
br i1 %11, label %12, label %15
12: ; preds = %9
%13 = call i32 @putchar(i32 noundef 92)
%14 = call i32 @putchar(i32 noundef 98)
br label %25
15: ; preds = %9
%16 = load i32, ptr %3, align 4
%17 = icmp eq i32 %16, 92
br i1 %17, label %18, label %21
18: ; preds = %15
%19 = call i32 @putchar(i32 noundef 92)
%20 = call i32 @putchar(i32 noundef 92)
br label %24
21: ; preds = %15
%22 = load i32, ptr %3, align 4
%23 = call i32 @putchar(i32 noundef %22)
br label %24
24: ; preds = %21, %18
br label %25
25: ; preds = %24, %12
br label %26
26: ; preds = %25, %6
%27 = load i32, ptr %2, align 4
ret i32 %27
}
declare i32 @putchar(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdqwzoh7g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @explicit_escape_sequence(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = icmp eq i32 %4, 9
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = call i32 @putchar(i32 noundef 92)
%8 = call i32 @putchar(i32 noundef 116)
br label %26
9: ; preds = %1
%10 = load i32, ptr %3, align 4
%11 = icmp eq i32 %10, 8
br i1 %11, label %12, label %15
12: ; preds = %9
%13 = call i32 @putchar(i32 noundef 92)
%14 = call i32 @putchar(i32 noundef 98)
br label %25
15: ; preds = %9
%16 = load i32, ptr %3, align 4
%17 = icmp eq i32 %16, 92
br i1 %17, label %18, label %21
18: ; preds = %15
%19 = call i32 @putchar(i32 noundef 92)
%20 = call i32 @putchar(i32 noundef 92)
br label %24
21: ; preds = %15
%22 = load i32, ptr %3, align 4
%23 = call i32 @putchar(i32 noundef %22)
br label %24
24: ; preds = %21, %18
br label %25
25: ; preds = %24, %12
br label %26
26: ; preds = %25, %6
%27 = load i32, ptr %2, align 4
ret i32 %27
}
declare i32 @putchar(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbb2a13wp.c'
source_filename = "/tmp/tmpbb2a13wp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"sig_cleanup (PID: %d)\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @sig_cleanup(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 (...) @getpid()
%5 = call i32 @debug(ptr noundef @.str, i32 noundef %4)
%6 = call i32 (...) @cleanup()
ret void
}
declare i32 @debug(ptr noundef, i32 noundef) #1
declare i32 @getpid(...) #1
declare i32 @cleanup(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbb2a13wp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"sig_cleanup (PID: %d)\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @sig_cleanup(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 (...) @getpid()
%5 = call i32 @debug(ptr noundef @.str, i32 noundef %4)
%6 = call i32 (...) @cleanup()
ret void
}
declare i32 @debug(ptr noundef, i32 noundef) #1
declare i32 @getpid(...) #1
declare i32 @cleanup(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqu_b1p0q.c'
source_filename = "/tmp/tmpqu_b1p0q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"echosrv\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"-d\00", align 1
@.str.2 = private unnamed_addr constant [47 x i8] c"Forked vsock echo daemon listening on port %d\0A\00", align 1
@STDIN_FILENO = dso_local global i32 0, align 4
@STDOUT_FILENO = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [5 x i8] c"echo\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %10, 3
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = call i32 (...) @print_usage()
store i32 %13, ptr %3, align 4
br label %103
14: ; preds = %2
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 1
%17 = load ptr, ptr %16, align 8
%18 = call i64 @strcmp(ptr noundef %17, ptr noundef @.str)
%19 = icmp eq i64 %18, 0
br i1 %19, label %20, label %70
20: ; preds = %14
%21 = load ptr, ptr %5, align 8
%22 = getelementptr inbounds ptr, ptr %21, i64 2
%23 = load ptr, ptr %22, align 8
%24 = call i64 @strcmp(ptr noundef %23, ptr noundef @.str.1)
%25 = icmp eq i64 %24, 0
br i1 %25, label %26, label %57
26: ; preds = %20
%27 = load i32, ptr %4, align 4
%28 = icmp slt i32 %27, 4
br i1 %28, label %29, label %31
29: ; preds = %26
%30 = call i32 (...) @print_usage()
store i32 %30, ptr %3, align 4
br label %103
31: ; preds = %26
%32 = load ptr, ptr %5, align 8
%33 = getelementptr inbounds ptr, ptr %32, i64 3
%34 = load ptr, ptr %33, align 8
%35 = call i32 @atoi(ptr noundef %34)
store i32 %35, ptr %6, align 4
%36 = load i32, ptr %6, align 4
%37 = icmp ne i32 %36, 0
br i1 %37, label %40, label %38
38: ; preds = %31
%39 = call i32 (...) @print_usage()
store i32 %39, ptr %3, align 4
br label %103
40: ; preds = %31
%41 = call i32 (...) @fork()
store i32 %41, ptr %7, align 4
%42 = load i32, ptr %7, align 4
%43 = icmp slt i32 %42, 0
br i1 %43, label %44, label %45
44: ; preds = %40
store i32 -1, ptr %3, align 4
br label %103
45: ; preds = %40
%46 = load i32, ptr %7, align 4
%47 = icmp ne i32 %46, 0
br i1 %47, label %48, label %51
48: ; preds = %45
%49 = load i32, ptr %6, align 4
%50 = call i32 @printf(ptr noundef @.str.2, i32 noundef %49)
store i32 0, ptr %3, align 4
br label %103
51: ; preds = %45
%52 = call i32 (...) @setsid()
%53 = load i32, ptr @STDIN_FILENO, align 4
%54 = call i32 @close(i32 noundef %53)
%55 = load i32, ptr @STDOUT_FILENO, align 4
%56 = call i32 @close(i32 noundef %55)
br label %67
57: ; preds = %20
%58 = load ptr, ptr %5, align 8
%59 = getelementptr inbounds ptr, ptr %58, i64 2
%60 = load ptr, ptr %59, align 8
%61 = call i32 @atoi(ptr noundef %60)
store i32 %61, ptr %6, align 4
%62 = load i32, ptr %6, align 4
%63 = icmp ne i32 %62, 0
br i1 %63, label %66, label %64
64: ; preds = %57
%65 = call i32 (...) @print_usage()
store i32 %65, ptr %3, align 4
br label %103
66: ; preds = %57
br label %67
67: ; preds = %66, %51
%68 = load i32, ptr %6, align 4
%69 = call i32 @run_echosrv(i32 noundef %68)
store i32 %69, ptr %3, align 4
br label %103
70: ; preds = %14
%71 = load ptr, ptr %5, align 8
%72 = getelementptr inbounds ptr, ptr %71, i64 1
%73 = load ptr, ptr %72, align 8
%74 = call i64 @strcmp(ptr noundef %73, ptr noundef @.str.3)
%75 = icmp eq i64 %74, 0
br i1 %75, label %76, label %101
76: ; preds = %70
%77 = load i32, ptr %4, align 4
%78 = icmp ne i32 %77, 4
br i1 %78, label %79, label %81
79: ; preds = %76
%80 = call i32 (...) @print_usage()
store i32 %80, ptr %3, align 4
br label %103
81: ; preds = %76
%82 = load ptr, ptr %5, align 8
%83 = getelementptr inbounds ptr, ptr %82, i64 2
%84 = load ptr, ptr %83, align 8
%85 = call i32 @atoi(ptr noundef %84)
store i32 %85, ptr %8, align 4
%86 = load ptr, ptr %5, align 8
%87 = getelementptr inbounds ptr, ptr %86, i64 3
%88 = load ptr, ptr %87, align 8
%89 = call i32 @atoi(ptr noundef %88)
store i32 %89, ptr %9, align 4
%90 = load i32, ptr %8, align 4
%91 = icmp ne i32 %90, 0
br i1 %91, label %92, label %95
92: ; preds = %81
%93 = load i32, ptr %9, align 4
%94 = icmp ne i32 %93, 0
br i1 %94, label %97, label %95
95: ; preds = %92, %81
%96 = call i32 (...) @print_usage()
store i32 %96, ptr %3, align 4
br label %103
97: ; preds = %92
%98 = load i32, ptr %8, align 4
%99 = load i32, ptr %9, align 4
%100 = call i32 @run_echo(i32 noundef %98, i32 noundef %99)
store i32 %100, ptr %3, align 4
br label %103
101: ; preds = %70
%102 = call i32 (...) @print_usage()
store i32 %102, ptr %3, align 4
br label %103
103: ; preds = %101, %97, %95, %79, %67, %64, %48, %44, %38, %29, %12
%104 = load i32, ptr %3, align 4
ret i32 %104
}
declare i32 @print_usage(...) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @fork(...) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @setsid(...) #1
declare i32 @close(i32 noundef) #1
declare i32 @run_echosrv(i32 noundef) #1
declare i32 @run_echo(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/tmpqu_b1p0q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"echosrv\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"-d\00", align 1
@.str.2 = private unnamed_addr constant [47 x i8] c"Forked vsock echo daemon listening on port %d\0A\00", align 1
@STDIN_FILENO = dso_local global i32 0, align 4
@STDOUT_FILENO = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [5 x i8] c"echo\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %10, 3
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = call i32 (...) @print_usage()
store i32 %13, ptr %3, align 4
br label %103
14: ; preds = %2
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 1
%17 = load ptr, ptr %16, align 8
%18 = call i64 @strcmp(ptr noundef %17, ptr noundef @.str)
%19 = icmp eq i64 %18, 0
br i1 %19, label %20, label %70
20: ; preds = %14
%21 = load ptr, ptr %5, align 8
%22 = getelementptr inbounds ptr, ptr %21, i64 2
%23 = load ptr, ptr %22, align 8
%24 = call i64 @strcmp(ptr noundef %23, ptr noundef @.str.1)
%25 = icmp eq i64 %24, 0
br i1 %25, label %26, label %57
26: ; preds = %20
%27 = load i32, ptr %4, align 4
%28 = icmp slt i32 %27, 4
br i1 %28, label %29, label %31
29: ; preds = %26
%30 = call i32 (...) @print_usage()
store i32 %30, ptr %3, align 4
br label %103
31: ; preds = %26
%32 = load ptr, ptr %5, align 8
%33 = getelementptr inbounds ptr, ptr %32, i64 3
%34 = load ptr, ptr %33, align 8
%35 = call i32 @atoi(ptr noundef %34)
store i32 %35, ptr %6, align 4
%36 = load i32, ptr %6, align 4
%37 = icmp ne i32 %36, 0
br i1 %37, label %40, label %38
38: ; preds = %31
%39 = call i32 (...) @print_usage()
store i32 %39, ptr %3, align 4
br label %103
40: ; preds = %31
%41 = call i32 (...) @fork()
store i32 %41, ptr %7, align 4
%42 = load i32, ptr %7, align 4
%43 = icmp slt i32 %42, 0
br i1 %43, label %44, label %45
44: ; preds = %40
store i32 -1, ptr %3, align 4
br label %103
45: ; preds = %40
%46 = load i32, ptr %7, align 4
%47 = icmp ne i32 %46, 0
br i1 %47, label %48, label %51
48: ; preds = %45
%49 = load i32, ptr %6, align 4
%50 = call i32 @printf(ptr noundef @.str.2, i32 noundef %49)
store i32 0, ptr %3, align 4
br label %103
51: ; preds = %45
%52 = call i32 (...) @setsid()
%53 = load i32, ptr @STDIN_FILENO, align 4
%54 = call i32 @close(i32 noundef %53)
%55 = load i32, ptr @STDOUT_FILENO, align 4
%56 = call i32 @close(i32 noundef %55)
br label %67
57: ; preds = %20
%58 = load ptr, ptr %5, align 8
%59 = getelementptr inbounds ptr, ptr %58, i64 2
%60 = load ptr, ptr %59, align 8
%61 = call i32 @atoi(ptr noundef %60)
store i32 %61, ptr %6, align 4
%62 = load i32, ptr %6, align 4
%63 = icmp ne i32 %62, 0
br i1 %63, label %66, label %64
64: ; preds = %57
%65 = call i32 (...) @print_usage()
store i32 %65, ptr %3, align 4
br label %103
66: ; preds = %57
br label %67
67: ; preds = %66, %51
%68 = load i32, ptr %6, align 4
%69 = call i32 @run_echosrv(i32 noundef %68)
store i32 %69, ptr %3, align 4
br label %103
70: ; preds = %14
%71 = load ptr, ptr %5, align 8
%72 = getelementptr inbounds ptr, ptr %71, i64 1
%73 = load ptr, ptr %72, align 8
%74 = call i64 @strcmp(ptr noundef %73, ptr noundef @.str.3)
%75 = icmp eq i64 %74, 0
br i1 %75, label %76, label %101
76: ; preds = %70
%77 = load i32, ptr %4, align 4
%78 = icmp ne i32 %77, 4
br i1 %78, label %79, label %81
79: ; preds = %76
%80 = call i32 (...) @print_usage()
store i32 %80, ptr %3, align 4
br label %103
81: ; preds = %76
%82 = load ptr, ptr %5, align 8
%83 = getelementptr inbounds ptr, ptr %82, i64 2
%84 = load ptr, ptr %83, align 8
%85 = call i32 @atoi(ptr noundef %84)
store i32 %85, ptr %8, align 4
%86 = load ptr, ptr %5, align 8
%87 = getelementptr inbounds ptr, ptr %86, i64 3
%88 = load ptr, ptr %87, align 8
%89 = call i32 @atoi(ptr noundef %88)
store i32 %89, ptr %9, align 4
%90 = load i32, ptr %8, align 4
%91 = icmp ne i32 %90, 0
br i1 %91, label %92, label %95
92: ; preds = %81
%93 = load i32, ptr %9, align 4
%94 = icmp ne i32 %93, 0
br i1 %94, label %97, label %95
95: ; preds = %92, %81
%96 = call i32 (...) @print_usage()
store i32 %96, ptr %3, align 4
br label %103
97: ; preds = %92
%98 = load i32, ptr %8, align 4
%99 = load i32, ptr %9, align 4
%100 = call i32 @run_echo(i32 noundef %98, i32 noundef %99)
store i32 %100, ptr %3, align 4
br label %103
101: ; preds = %70
%102 = call i32 (...) @print_usage()
store i32 %102, ptr %3, align 4
br label %103
103: ; preds = %101, %97, %95, %79, %67, %64, %48, %44, %38, %29, %12
%104 = load i32, ptr %3, align 4
ret i32 %104
}
declare i32 @print_usage(...) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @fork(...) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @setsid(...) #1
declare i32 @close(i32 noundef) #1
declare i32 @run_echosrv(i32 noundef) #1
declare i32 @run_echo(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/tmplpvtiyli.c'
source_filename = "/tmp/tmplpvtiyli.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"NT_GNU_\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @outnote(ptr noundef %0, i64 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%13 = load ptr, ptr %4, align 8
store ptr %13, ptr %7, align 8
%14 = load i64, ptr %5, align 8
%15 = udiv i64 %14, 4
store i64 %15, ptr %8, align 8
%16 = load i32, ptr %6, align 4
%17 = call i64 (...) @iscorefile()
%18 = icmp ne i64 %17, 0
br i1 %18, label %19, label %34
19: ; preds = %3
%20 = call i64 (...) @iself64()
%21 = icmp ne i64 %20, 0
br i1 %21, label %22, label %27
22: ; preds = %19
%23 = load ptr, ptr %4, align 8
%24 = load i64, ptr %5, align 8
%25 = load i32, ptr %6, align 4
%26 = call i32 @outnote64(ptr noundef %23, i64 noundef %24, i32 noundef %25)
br label %32
27: ; preds = %19
%28 = load ptr, ptr %4, align 8
%29 = load i64, ptr %5, align 8
%30 = load i32, ptr %6, align 4
%31 = call i32 @outnote32(ptr noundef %28, i64 noundef %29, i32 noundef %30)
br label %32
32: ; preds = %27, %22
%33 = phi i32 [ %26, %22 ], [ %31, %27 ]
br label %121
34: ; preds = %3
%35 = call i32 @beginblock(i32 noundef 1)
store i64 0, ptr %9, align 8
br label %36
36: ; preds = %118, %98, %34
%37 = load i64, ptr %9, align 8
%38 = load i64, ptr %8, align 8
%39 = icmp slt i64 %37, %38
br i1 %39, label %40, label %119
40: ; preds = %36
%41 = load ptr, ptr %7, align 8
%42 = load i64, ptr %9, align 8
%43 = getelementptr inbounds i32, ptr %41, i64 %42
%44 = load i32, ptr %43, align 4
%45 = add nsw i32 %44, 3
%46 = sdiv i32 %45, 4
store i32 %46, ptr %10, align 4
%47 = load ptr, ptr %7, align 8
%48 = load i64, ptr %9, align 8
%49 = add nsw i64 %48, 1
%50 = getelementptr inbounds i32, ptr %47, i64 %49
%51 = load i32, ptr %50, align 4
%52 = add nsw i32 %51, 3
%53 = sdiv i32 %52, 4
store i32 %53, ptr %11, align 4
%54 = call i32 (...) @linebreak()
%55 = load ptr, ptr %7, align 8
%56 = load i64, ptr %9, align 8
%57 = add nsw i64 %56, 1
store i64 %57, ptr %9, align 8
%58 = getelementptr inbounds i32, ptr %55, i64 %56
%59 = load i32, ptr %58, align 4
%60 = call i32 @strdec(i32 noundef %59)
%61 = call i32 @out(i32 noundef %60)
%62 = load ptr, ptr %7, align 8
%63 = load i64, ptr %9, align 8
%64 = add nsw i64 %63, 1
store i64 %64, ptr %9, align 8
%65 = getelementptr inbounds i32, ptr %62, i64 %63
%66 = load i32, ptr %65, align 4
%67 = call i32 @strdec(i32 noundef %66)
%68 = call i32 @out(i32 noundef %67)
%69 = load ptr, ptr %7, align 8
%70 = load i64, ptr %9, align 8
%71 = add nsw i64 %70, 1
store i64 %71, ptr %9, align 8
%72 = getelementptr inbounds i32, ptr %69, i64 %70
%73 = load i32, ptr %72, align 4
store i32 %73, ptr %12, align 4
%74 = load i32, ptr %12, align 4
%75 = call i32 @strdefint(i32 noundef %74, ptr noundef @.str)
%76 = call i32 @out(i32 noundef %75)
br label %77
77: ; preds = %87, %40
%78 = load i32, ptr %10, align 4
%79 = add nsw i32 %78, -1
store i32 %79, ptr %10, align 4
%80 = icmp ne i32 %78, 0
br i1 %80, label %81, label %85
81: ; preds = %77
%82 = load i64, ptr %9, align 8
%83 = load i64, ptr %8, align 8
%84 = icmp slt i64 %82, %83
br label %85
85: ; preds = %81, %77
%86 = phi i1 [ false, %77 ], [ %84, %81 ]
br i1 %86, label %87, label %95
87: ; preds = %85
%88 = load ptr, ptr %7, align 8
%89 = load i64, ptr %9, align 8
%90 = add nsw i64 %89, 1
store i64 %90, ptr %9, align 8
%91 = getelementptr inbounds i32, ptr %88, i64 %89
%92 = load i32, ptr %91, align 4
%93 = call i32 @strhex(i32 noundef %92)
%94 = call i32 @out(i32 noundef %93)
br label %77, !llvm.loop !6
95: ; preds = %85
%96 = load i32, ptr %11, align 4
%97 = icmp eq i32 %96, 0
br i1 %97, label %98, label %99
98: ; preds = %95
br label %36, !llvm.loop !8
99: ; preds = %95
br label %100
100: ; preds = %110, %99
%101 = load i32, ptr %11, align 4
%102 = add nsw i32 %101, -1
store i32 %102, ptr %11, align 4
%103 = icmp ne i32 %101, 0
br i1 %103, label %104, label %108
104: ; preds = %100
%105 = load i64, ptr %9, align 8
%106 = load i64, ptr %8, align 8
%107 = icmp slt i64 %105, %106
br label %108
108: ; preds = %104, %100
%109 = phi i1 [ false, %100 ], [ %107, %104 ]
br i1 %109, label %110, label %118
110: ; preds = %108
%111 = load ptr, ptr %7, align 8
%112 = load i64, ptr %9, align 8
%113 = add nsw i64 %112, 1
store i64 %113, ptr %9, align 8
%114 = getelementptr inbounds i32, ptr %111, i64 %112
%115 = load i32, ptr %114, align 4
%116 = call i32 @strhex(i32 noundef %115)
%117 = call i32 @out(i32 noundef %116)
br label %100, !llvm.loop !9
118: ; preds = %108
br label %36, !llvm.loop !8
119: ; preds = %36
%120 = call i32 (...) @endblock()
br label %121
121: ; preds = %119, %32
ret void
}
declare i64 @iscorefile(...) #1
declare i64 @iself64(...) #1
declare i32 @outnote64(ptr noundef, i64 noundef, i32 noundef) #1
declare i32 @outnote32(ptr noundef, i64 noundef, i32 noundef) #1
declare i32 @beginblock(i32 noundef) #1
declare i32 @linebreak(...) #1
declare i32 @out(i32 noundef) #1
declare i32 @strdec(i32 noundef) #1
declare i32 @strdefint(i32 noundef, ptr noundef) #1
declare i32 @strhex(i32 noundef) #1
declare i32 @endblock(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmplpvtiyli.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"NT_GNU_\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @outnote(ptr noundef %0, i64 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%13 = load ptr, ptr %4, align 8
store ptr %13, ptr %7, align 8
%14 = load i64, ptr %5, align 8
%15 = udiv i64 %14, 4
store i64 %15, ptr %8, align 8
%16 = load i32, ptr %6, align 4
%17 = call i64 (...) @iscorefile()
%18 = icmp ne i64 %17, 0
br i1 %18, label %19, label %34
19: ; preds = %3
%20 = call i64 (...) @iself64()
%21 = icmp ne i64 %20, 0
br i1 %21, label %22, label %27
22: ; preds = %19
%23 = load ptr, ptr %4, align 8
%24 = load i64, ptr %5, align 8
%25 = load i32, ptr %6, align 4
%26 = call i32 @outnote64(ptr noundef %23, i64 noundef %24, i32 noundef %25)
br label %32
27: ; preds = %19
%28 = load ptr, ptr %4, align 8
%29 = load i64, ptr %5, align 8
%30 = load i32, ptr %6, align 4
%31 = call i32 @outnote32(ptr noundef %28, i64 noundef %29, i32 noundef %30)
br label %32
32: ; preds = %27, %22
%33 = phi i32 [ %26, %22 ], [ %31, %27 ]
br label %123
34: ; preds = %3
%35 = call i32 @beginblock(i32 noundef 1)
store i64 0, ptr %9, align 8
%36 = load i64, ptr %9, align 8
%37 = load i64, ptr %8, align 8
%38 = icmp slt i64 %36, %37
br i1 %38, label %.lr.ph, label %121
.lr.ph: ; preds = %34
br label %39
39: ; preds = %.lr.ph, %.backedge
%40 = load ptr, ptr %7, align 8
%41 = load i64, ptr %9, align 8
%42 = getelementptr inbounds i32, ptr %40, i64 %41
%43 = load i32, ptr %42, align 4
%44 = add nsw i32 %43, 3
%45 = sdiv i32 %44, 4
store i32 %45, ptr %10, align 4
%46 = load ptr, ptr %7, align 8
%47 = load i64, ptr %9, align 8
%48 = add nsw i64 %47, 1
%49 = getelementptr inbounds i32, ptr %46, i64 %48
%50 = load i32, ptr %49, align 4
%51 = add nsw i32 %50, 3
%52 = sdiv i32 %51, 4
store i32 %52, ptr %11, align 4
%53 = call i32 (...) @linebreak()
%54 = load ptr, ptr %7, align 8
%55 = load i64, ptr %9, align 8
%56 = add nsw i64 %55, 1
store i64 %56, ptr %9, align 8
%57 = getelementptr inbounds i32, ptr %54, i64 %55
%58 = load i32, ptr %57, align 4
%59 = call i32 @strdec(i32 noundef %58)
%60 = call i32 @out(i32 noundef %59)
%61 = load ptr, ptr %7, align 8
%62 = load i64, ptr %9, align 8
%63 = add nsw i64 %62, 1
store i64 %63, ptr %9, align 8
%64 = getelementptr inbounds i32, ptr %61, i64 %62
%65 = load i32, ptr %64, align 4
%66 = call i32 @strdec(i32 noundef %65)
%67 = call i32 @out(i32 noundef %66)
%68 = load ptr, ptr %7, align 8
%69 = load i64, ptr %9, align 8
%70 = add nsw i64 %69, 1
store i64 %70, ptr %9, align 8
%71 = getelementptr inbounds i32, ptr %68, i64 %69
%72 = load i32, ptr %71, align 4
store i32 %72, ptr %12, align 4
%73 = load i32, ptr %12, align 4
%74 = call i32 @strdefint(i32 noundef %73, ptr noundef @.str)
%75 = call i32 @out(i32 noundef %74)
br label %76
76: ; preds = %86, %39
%77 = load i32, ptr %10, align 4
%78 = add nsw i32 %77, -1
store i32 %78, ptr %10, align 4
%79 = icmp ne i32 %77, 0
br i1 %79, label %80, label %84
80: ; preds = %76
%81 = load i64, ptr %9, align 8
%82 = load i64, ptr %8, align 8
%83 = icmp slt i64 %81, %82
br label %84
84: ; preds = %80, %76
%85 = phi i1 [ false, %76 ], [ %83, %80 ]
br i1 %85, label %86, label %94
86: ; preds = %84
%87 = load ptr, ptr %7, align 8
%88 = load i64, ptr %9, align 8
%89 = add nsw i64 %88, 1
store i64 %89, ptr %9, align 8
%90 = getelementptr inbounds i32, ptr %87, i64 %88
%91 = load i32, ptr %90, align 4
%92 = call i32 @strhex(i32 noundef %91)
%93 = call i32 @out(i32 noundef %92)
br label %76, !llvm.loop !6
94: ; preds = %84
%95 = load i32, ptr %11, align 4
%96 = icmp eq i32 %95, 0
br i1 %96, label %97, label %101
97: ; preds = %94
br label %.backedge
.backedge: ; preds = %97, %120
%98 = load i64, ptr %9, align 8
%99 = load i64, ptr %8, align 8
%100 = icmp slt i64 %98, %99
br i1 %100, label %39, label %._crit_edge, !llvm.loop !8
101: ; preds = %94
br label %102
102: ; preds = %112, %101
%103 = load i32, ptr %11, align 4
%104 = add nsw i32 %103, -1
store i32 %104, ptr %11, align 4
%105 = icmp ne i32 %103, 0
br i1 %105, label %106, label %110
106: ; preds = %102
%107 = load i64, ptr %9, align 8
%108 = load i64, ptr %8, align 8
%109 = icmp slt i64 %107, %108
br label %110
110: ; preds = %106, %102
%111 = phi i1 [ false, %102 ], [ %109, %106 ]
br i1 %111, label %112, label %120
112: ; preds = %110
%113 = load ptr, ptr %7, align 8
%114 = load i64, ptr %9, align 8
%115 = add nsw i64 %114, 1
store i64 %115, ptr %9, align 8
%116 = getelementptr inbounds i32, ptr %113, i64 %114
%117 = load i32, ptr %116, align 4
%118 = call i32 @strhex(i32 noundef %117)
%119 = call i32 @out(i32 noundef %118)
br label %102, !llvm.loop !9
120: ; preds = %110
br label %.backedge
._crit_edge: ; preds = %.backedge
br label %121
121: ; preds = %._crit_edge, %34
%122 = call i32 (...) @endblock()
br label %123
123: ; preds = %121, %32
ret void
}
declare i64 @iscorefile(...) #1
declare i64 @iself64(...) #1
declare i32 @outnote64(ptr noundef, i64 noundef, i32 noundef) #1
declare i32 @outnote32(ptr noundef, i64 noundef, i32 noundef) #1
declare i32 @beginblock(i32 noundef) #1
declare i32 @linebreak(...) #1
declare i32 @out(i32 noundef) #1
declare i32 @strdec(i32 noundef) #1
declare i32 @strdefint(i32 noundef, ptr noundef) #1
declare i32 @strhex(i32 noundef) #1
declare i32 @endblock(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp69w34pi6.c'
source_filename = "/tmp/tmp69w34pi6.c"
target datalayout = "e-m:e-p270: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/tmp69w34pi6.c"
target datalayout = "e-m:e-p270: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/tmp0xekrivo.c'
source_filename = "/tmp/tmp0xekrivo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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*\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"*%2d*\0A\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"*%10d*\0A\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"*%-10d*\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str, i32 noundef 931)
%3 = call i32 @printf(ptr noundef @.str.1, i32 noundef 931)
%4 = call i32 @printf(ptr noundef @.str.2, i32 noundef 931)
%5 = call i32 @printf(ptr noundef @.str.3, i32 noundef 931)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0xekrivo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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*\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"*%2d*\0A\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"*%10d*\0A\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"*%-10d*\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str, i32 noundef 931)
%3 = call i32 @printf(ptr noundef @.str.1, i32 noundef 931)
%4 = call i32 @printf(ptr noundef @.str.2, i32 noundef 931)
%5 = call i32 @printf(ptr noundef @.str.3, i32 noundef 931)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6nvsq0be.c'
source_filename = "/tmp/tmp6nvsq0be.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gbuf_swrite(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%8 = load ptr, ptr %4, align 8
%9 = icmp ne ptr %8, null
%10 = zext i1 %9 to i32
%11 = call i32 @assert(i32 noundef %10)
%12 = load ptr, ptr %4, align 8
%13 = load i64, ptr %6, align 8
%14 = call ptr @gbuf_salloc(ptr noundef %12, i64 noundef %13)
store ptr %14, ptr %7, align 8
%15 = load ptr, ptr %7, align 8
%16 = icmp ne ptr %15, null
br i1 %16, label %17, label %21
17: ; preds = %3
%18 = load ptr, ptr %7, align 8
%19 = load ptr, ptr %5, align 8
%20 = load i64, ptr %6, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %18, ptr align 1 %19, i64 %20, i1 false)
br label %22
21: ; preds = %3
br label %22
22: ; preds = %21, %17
%23 = phi ptr [ %18, %17 ], [ null, %21 ]
ret ptr %23
}
declare i32 @assert(i32 noundef) #1
declare ptr @gbuf_salloc(ptr noundef, i64 noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6nvsq0be.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gbuf_swrite(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%8 = load ptr, ptr %4, align 8
%9 = icmp ne ptr %8, null
%10 = zext i1 %9 to i32
%11 = call i32 @assert(i32 noundef %10)
%12 = load ptr, ptr %4, align 8
%13 = load i64, ptr %6, align 8
%14 = call ptr @gbuf_salloc(ptr noundef %12, i64 noundef %13)
store ptr %14, ptr %7, align 8
%15 = load ptr, ptr %7, align 8
%16 = icmp ne ptr %15, null
br i1 %16, label %17, label %21
17: ; preds = %3
%18 = load ptr, ptr %7, align 8
%19 = load ptr, ptr %5, align 8
%20 = load i64, ptr %6, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %18, ptr align 1 %19, i64 %20, i1 false)
br label %22
21: ; preds = %3
br label %22
22: ; preds = %21, %17
%23 = phi ptr [ %18, %17 ], [ null, %21 ]
ret ptr %23
}
declare i32 @assert(i32 noundef) #1
declare ptr @gbuf_salloc(ptr noundef, i64 noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3ihuvwzr.c'
source_filename = "/tmp/tmp3ihuvwzr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @main() #0 {
%1 = alloca [16 x ptr], align 16
%2 = alloca i32, align 4
store i32 0, ptr %2, align 4
br label %3
3: ; preds = %11, %0
%4 = load i32, ptr %2, align 4
%5 = icmp slt i32 %4, 16
br i1 %5, label %6, label %14
6: ; preds = %3
%7 = call ptr (...) @new_table_vport()
%8 = load i32, ptr %2, align 4
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds [16 x ptr], ptr %1, i64 0, i64 %9
store ptr %7, ptr %10, align 8
br label %11
11: ; preds = %6
%12 = load i32, ptr %2, align 4
%13 = add nsw i32 %12, 1
store i32 %13, ptr %2, align 4
br label %3, !llvm.loop !6
14: ; preds = %3
ret void
}
declare ptr @new_table_vport(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp3ihuvwzr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @main() #0 {
%1 = alloca [16 x ptr], align 16
%2 = alloca i32, align 4
store i32 0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp slt i32 %3, 16
br i1 %4, label %.lr.ph, label %15
.lr.ph: ; preds = %0
br label %5
5: ; preds = %.lr.ph, %10
%6 = call ptr (...) @new_table_vport()
%7 = load i32, ptr %2, align 4
%8 = sext i32 %7 to i64
%9 = getelementptr inbounds [16 x ptr], ptr %1, i64 0, i64 %8
store ptr %6, ptr %9, align 8
br label %10
10: ; preds = %5
%11 = load i32, ptr %2, align 4
%12 = add nsw i32 %11, 1
store i32 %12, ptr %2, align 4
%13 = load i32, ptr %2, align 4
%14 = icmp slt i32 %13, 16
br i1 %14, label %5, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %10
br label %15
15: ; preds = %._crit_edge, %0
ret void
}
declare ptr @new_table_vport(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpvzg4lc1h.c'
source_filename = "/tmp/tmpvzg4lc1h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"sched_setaffinity\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @setaffinity_oncpu(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%5 = call i32 @CPU_ZERO(ptr noundef %3)
%6 = load i32, ptr %2, align 4
%7 = call i32 @CPU_SET(i32 noundef %6, ptr noundef %3)
%8 = call i32 @sched_setaffinity(i32 noundef 0, i32 noundef 4, ptr noundef %3)
store i32 %8, ptr %4, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %14
11: ; preds = %1
%12 = call i32 @perror(ptr noundef @.str)
%13 = call i32 @exit(i32 noundef 1) #3
unreachable
14: ; preds = %1
ret void
}
declare i32 @CPU_ZERO(ptr noundef) #1
declare i32 @CPU_SET(i32 noundef, ptr noundef) #1
declare i32 @sched_setaffinity(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvzg4lc1h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"sched_setaffinity\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @setaffinity_oncpu(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%5 = call i32 @CPU_ZERO(ptr noundef %3)
%6 = load i32, ptr %2, align 4
%7 = call i32 @CPU_SET(i32 noundef %6, ptr noundef %3)
%8 = call i32 @sched_setaffinity(i32 noundef 0, i32 noundef 4, ptr noundef %3)
store i32 %8, ptr %4, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %14
11: ; preds = %1
%12 = call i32 @perror(ptr noundef @.str)
%13 = call i32 @exit(i32 noundef 1) #3
unreachable
14: ; preds = %1
ret void
}
declare i32 @CPU_ZERO(ptr noundef) #1
declare i32 @CPU_SET(i32 noundef, ptr noundef) #1
declare i32 @sched_setaffinity(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdn5xbkds.c'
source_filename = "/tmp/tmpdn5xbkds.c"
target datalayout = "e-m:e-p270: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.group = type { ptr }
%struct.passwd = type { i64, i32 }
@errno = dso_local global i64 0, align 8
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [25 x i8] c"getpwnam(%s) failed: %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"user not found\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @list_secondary_group_members(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = getelementptr inbounds %struct.group, ptr %5, i32 0, i32 0
%7 = load ptr, ptr %6, align 8
store ptr %7, ptr %3, align 8
br label %8
8: ; preds = %40, %1
%9 = load ptr, ptr %3, align 8
%10 = load ptr, ptr %9, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %12, label %43
12: ; preds = %8
store i64 0, ptr @errno, align 8
%13 = load ptr, ptr %3, align 8
%14 = load ptr, ptr %13, align 8
%15 = call ptr @getpwnam(ptr noundef %14)
store ptr %15, ptr %4, align 8
%16 = load ptr, ptr %4, align 8
%17 = icmp ne ptr %16, null
br i1 %17, label %18, label %26
18: ; preds = %12
%19 = load ptr, ptr %4, align 8
%20 = getelementptr inbounds %struct.passwd, ptr %19, i32 0, i32 1
%21 = load i32, ptr %20, align 8
%22 = load ptr, ptr %4, align 8
%23 = getelementptr inbounds %struct.passwd, ptr %22, i32 0, i32 0
%24 = load i64, ptr %23, align 8
%25 = call i32 @print_entry(i32 noundef %21, i64 noundef %24)
br label %39
26: ; preds = %12
%27 = load i32, ptr @stderr, align 4
%28 = load ptr, ptr %3, align 8
%29 = load ptr, ptr %28, align 8
%30 = load i64, ptr @errno, align 8
%31 = icmp ne i64 %30, 0
br i1 %31, label %32, label %35
32: ; preds = %26
%33 = load i64, ptr @errno, align 8
%34 = call ptr @strerror(i64 noundef %33)
br label %36
35: ; preds = %26
br label %36
36: ; preds = %35, %32
%37 = phi ptr [ %34, %32 ], [ @.str.1, %35 ]
%38 = call i32 @fprintf(i32 noundef %27, ptr noundef @.str, ptr noundef %29, ptr noundef %37)
br label %39
39: ; preds = %36, %18
br label %40
40: ; preds = %39
%41 = load ptr, ptr %3, align 8
%42 = getelementptr inbounds ptr, ptr %41, i32 1
store ptr %42, ptr %3, align 8
br label %8, !llvm.loop !6
43: ; preds = %8
ret void
}
declare ptr @getpwnam(ptr noundef) #1
declare i32 @print_entry(i32 noundef, i64 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @strerror(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/tmpdn5xbkds.c"
target datalayout = "e-m:e-p270: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.group = type { ptr }
%struct.passwd = type { i64, i32 }
@errno = dso_local global i64 0, align 8
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [25 x i8] c"getpwnam(%s) failed: %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [15 x i8] c"user not found\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @list_secondary_group_members(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = getelementptr inbounds %struct.group, ptr %5, i32 0, i32 0
%7 = load ptr, ptr %6, align 8
store ptr %7, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = load ptr, ptr %8, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %.lr.ph, label %45
.lr.ph: ; preds = %1
br label %11
11: ; preds = %.lr.ph, %39
store i64 0, ptr @errno, align 8
%12 = load ptr, ptr %3, align 8
%13 = load ptr, ptr %12, align 8
%14 = call ptr @getpwnam(ptr noundef %13)
store ptr %14, ptr %4, align 8
%15 = load ptr, ptr %4, align 8
%16 = icmp ne ptr %15, null
br i1 %16, label %17, label %25
17: ; preds = %11
%18 = load ptr, ptr %4, align 8
%19 = getelementptr inbounds %struct.passwd, ptr %18, i32 0, i32 1
%20 = load i32, ptr %19, align 8
%21 = load ptr, ptr %4, align 8
%22 = getelementptr inbounds %struct.passwd, ptr %21, i32 0, i32 0
%23 = load i64, ptr %22, align 8
%24 = call i32 @print_entry(i32 noundef %20, i64 noundef %23)
br label %38
25: ; preds = %11
%26 = load i32, ptr @stderr, align 4
%27 = load ptr, ptr %3, align 8
%28 = load ptr, ptr %27, align 8
%29 = load i64, ptr @errno, align 8
%30 = icmp ne i64 %29, 0
br i1 %30, label %31, label %34
31: ; preds = %25
%32 = load i64, ptr @errno, align 8
%33 = call ptr @strerror(i64 noundef %32)
br label %35
34: ; preds = %25
br label %35
35: ; preds = %34, %31
%36 = phi ptr [ %33, %31 ], [ @.str.1, %34 ]
%37 = call i32 @fprintf(i32 noundef %26, ptr noundef @.str, ptr noundef %28, ptr noundef %36)
br label %38
38: ; preds = %35, %17
br label %39
39: ; preds = %38
%40 = load ptr, ptr %3, align 8
%41 = getelementptr inbounds ptr, ptr %40, i32 1
store ptr %41, ptr %3, align 8
%42 = load ptr, ptr %3, align 8
%43 = load ptr, ptr %42, align 8
%44 = icmp ne ptr %43, null
br i1 %44, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %39
br label %45
45: ; preds = %._crit_edge, %1
ret void
}
declare ptr @getpwnam(ptr noundef) #1
declare i32 @print_entry(i32 noundef, i64 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @strerror(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/tmpc26xea0s.c'
source_filename = "/tmp/tmpc26xea0s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [108 x i8] c"2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder.\0A\00", align 1
@.str.1 = private unnamed_addr constant [131 x i8] c"please provide a number and the smallest multiple that can be created using a sequence from one to the number will be calculated.\0A\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"number: \00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"%lu\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 i64, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%10 = load ptr, ptr %2, align 8
%11 = call i32 @scanf(ptr noundef @.str.3, ptr noundef %10)
store i32 0, ptr %3, align 4
store i64 0, ptr %4, align 8
store i32 0, ptr %5, align 4
br label %12
12: ; preds = %40, %0
%13 = load i32, ptr %5, align 4
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %41
15: ; preds = %12
%16 = load i32, ptr %3, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %3, align 4
store i32 1, ptr %6, align 4
store i32 1, ptr %5, align 4
%18 = load i32, ptr %6, align 4
br label %19
19: ; preds = %31, %15
%20 = load i32, ptr %6, align 4
%21 = load ptr, ptr %2, align 8
%22 = load i32, ptr %21, align 4
%23 = icmp slt i32 %20, %22
br i1 %23, label %24, label %34
24: ; preds = %19
%25 = load i32, ptr %3, align 4
%26 = load i32, ptr %6, align 4
%27 = srem i32 %25, %26
%28 = icmp ne i32 %27, 0
br i1 %28, label %29, label %30
29: ; preds = %24
store i32 0, ptr %5, align 4
br label %34
30: ; preds = %24
br label %31
31: ; preds = %30
%32 = load i32, ptr %6, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %6, align 4
br label %19, !llvm.loop !6
34: ; preds = %29, %19
%35 = load i32, ptr %5, align 4
%36 = icmp eq i32 %35, 1
br i1 %36, label %37, label %40
37: ; preds = %34
%38 = load i32, ptr %3, align 4
%39 = sext i32 %38 to i64
store i64 %39, ptr %4, align 8
br label %40
40: ; preds = %37, %34
br label %12, !llvm.loop !8
41: ; preds = %12
%42 = load i64, ptr %4, align 8
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i64 noundef %42)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpc26xea0s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [108 x i8] c"2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder.\0A\00", align 1
@.str.1 = private unnamed_addr constant [131 x i8] c"please provide a number and the smallest multiple that can be created using a sequence from one to the number will be calculated.\0A\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"number: \00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"%lu\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 i64, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%10 = load ptr, ptr %2, align 8
%11 = call i32 @scanf(ptr noundef @.str.3, ptr noundef %10)
store i32 0, ptr %3, align 4
store i64 0, ptr %4, align 8
store i32 0, ptr %5, align 4
%12 = load i32, ptr %5, align 4
%13 = icmp eq i32 %12, 0
br i1 %13, label %.lr.ph1, label %45
.lr.ph1: ; preds = %0
br label %14
14: ; preds = %.lr.ph1, %42
%15 = load i32, ptr %3, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %3, align 4
store i32 1, ptr %6, align 4
store i32 1, ptr %5, align 4
%17 = load i32, ptr %6, align 4
%18 = load i32, ptr %6, align 4
%19 = load ptr, ptr %2, align 8
%20 = load i32, ptr %19, align 4
%21 = icmp slt i32 %18, %20
br i1 %21, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %14
br label %22
22: ; preds = %.lr.ph, %29
%23 = load i32, ptr %3, align 4
%24 = load i32, ptr %6, align 4
%25 = srem i32 %23, %24
%26 = icmp ne i32 %25, 0
br i1 %26, label %27, label %28
27: ; preds = %22
store i32 0, ptr %5, align 4
br label %36
28: ; preds = %22
br label %29
29: ; preds = %28
%30 = load i32, ptr %6, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %6, align 4
%32 = load i32, ptr %6, align 4
%33 = load ptr, ptr %2, align 8
%34 = load i32, ptr %33, align 4
%35 = icmp slt i32 %32, %34
br i1 %35, label %22, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %29
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %14
br label %36
36: ; preds = %.loopexit, %27
%37 = load i32, ptr %5, align 4
%38 = icmp eq i32 %37, 1
br i1 %38, label %39, label %42
39: ; preds = %36
%40 = load i32, ptr %3, align 4
%41 = sext i32 %40 to i64
store i64 %41, ptr %4, align 8
br label %42
42: ; preds = %39, %36
%43 = load i32, ptr %5, align 4
%44 = icmp eq i32 %43, 0
br i1 %44, label %14, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %42
br label %45
45: ; preds = %._crit_edge, %0
%46 = load i64, ptr %4, align 8
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i64 noundef %46)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpwordecc0.c'
source_filename = "/tmp/tmpwordecc0.c"
target datalayout = "e-m:e-p270: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/tmpwordecc0.c"
target datalayout = "e-m:e-p270: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/tmpffgbpm1p.c'
source_filename = "/tmp/tmpffgbpm1p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = dso_local global i32 0, align 4
@EOF = dso_local global i32 0, align 4
@stdout = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [14 x i8] c"output error\0A\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"input error\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %3
3: ; preds = %24, %0
%4 = load i32, ptr @stdin, align 4
%5 = call i32 @getc(i32 noundef %4)
store i32 %5, ptr %2, align 4
%6 = load i32, ptr @EOF, align 4
%7 = icmp ne i32 %5, %6
br i1 %7, label %8, label %25
8: ; preds = %3
%9 = load i32, ptr %2, align 4
%10 = load i32, ptr @stdout, align 4
%11 = call i32 @putc(i32 noundef %9, i32 noundef %10)
%12 = load i32, ptr @EOF, align 4
%13 = icmp eq i32 %11, %12
br i1 %13, label %14, label %17
14: ; preds = %8
%15 = call i32 @printf(ptr noundef @.str)
%16 = call i32 @exit(i32 noundef 1) #3
unreachable
17: ; preds = %8
%18 = load i32, ptr @stdin, align 4
%19 = call i64 @ferror(i32 noundef %18)
%20 = icmp ne i64 %19, 0
br i1 %20, label %21, label %24
21: ; preds = %17
%22 = call i32 @printf(ptr noundef @.str.1)
%23 = call i32 @exit(i32 noundef 2) #3
unreachable
24: ; preds = %17
br label %3, !llvm.loop !6
25: ; preds = %3
%26 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @getc(i32 noundef) #1
declare i32 @putc(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @ferror(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpffgbpm1p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = dso_local global i32 0, align 4
@EOF = dso_local global i32 0, align 4
@stdout = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [14 x i8] c"output error\0A\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"input error\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 = load i32, ptr @stdin, align 4
%4 = call i32 @getc(i32 noundef %3)
store i32 %4, ptr %2, align 4
%5 = load i32, ptr @EOF, align 4
%6 = icmp ne i32 %4, %5
br i1 %6, label %.lr.ph, label %28
.lr.ph: ; preds = %0
br label %12
7: ; preds = %21
%8 = load i32, ptr @stdin, align 4
%9 = call i32 @getc(i32 noundef %8)
store i32 %9, ptr %2, align 4
%10 = load i32, ptr @EOF, align 4
%11 = icmp ne i32 %9, %10
br i1 %11, label %12, label %._crit_edge, !llvm.loop !6
12: ; preds = %.lr.ph, %7
%13 = load i32, ptr %2, align 4
%14 = load i32, ptr @stdout, align 4
%15 = call i32 @putc(i32 noundef %13, i32 noundef %14)
%16 = load i32, ptr @EOF, align 4
%17 = icmp eq i32 %15, %16
br i1 %17, label %18, label %21
18: ; preds = %12
%19 = call i32 @printf(ptr noundef @.str)
%20 = call i32 @exit(i32 noundef 1) #3
unreachable
21: ; preds = %12
%22 = load i32, ptr @stdin, align 4
%23 = call i64 @ferror(i32 noundef %22)
%24 = icmp ne i64 %23, 0
br i1 %24, label %25, label %7
25: ; preds = %21
%26 = call i32 @printf(ptr noundef @.str.1)
%27 = call i32 @exit(i32 noundef 2) #3
unreachable
._crit_edge: ; preds = %7
br label %28
28: ; preds = %._crit_edge, %0
%29 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @getc(i32 noundef) #1
declare i32 @putc(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @ferror(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp3l801hij.c'
source_filename = "/tmp/tmp3l801hij.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rb_is_full(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = icmp ne ptr %4, null
br i1 %5, label %7, label %6
6: ; preds = %1
store i32 1, ptr %2, align 4
br label %12
7: ; preds = %1
%8 = load ptr, ptr %3, align 8
%9 = call i64 @calc_unused_space(ptr noundef %8, i32 noundef 0)
%10 = icmp eq i64 %9, 0
%11 = zext i1 %10 to i32
store i32 %11, ptr %2, align 4
br label %12
12: ; preds = %7, %6
%13 = load i32, ptr %2, align 4
ret i32 %13
}
declare i64 @calc_unused_space(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/tmp3l801hij.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rb_is_full(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = icmp ne ptr %4, null
br i1 %5, label %7, label %6
6: ; preds = %1
store i32 1, ptr %2, align 4
br label %12
7: ; preds = %1
%8 = load ptr, ptr %3, align 8
%9 = call i64 @calc_unused_space(ptr noundef %8, i32 noundef 0)
%10 = icmp eq i64 %9, 0
%11 = zext i1 %10 to i32
store i32 %11, ptr %2, align 4
br label %12
12: ; preds = %7, %6
%13 = load i32, ptr %2, align 4
ret i32 %13
}
declare i64 @calc_unused_space(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/tmplq2upcpt.c'
source_filename = "/tmp/tmplq2upcpt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Starting to test.\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"\0ACompleted all tests.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = call i32 (...) @start_testing()
%4 = call i32 @printf(ptr noundef @.str.1)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @start_testing(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmplq2upcpt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Starting to test.\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"\0ACompleted all tests.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = call i32 (...) @start_testing()
%4 = call i32 @printf(ptr noundef @.str.1)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @start_testing(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE 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_nj5nyb9.c'
source_filename = "/tmp/tmp_nj5nyb9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rtext_width(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
%6 = load ptr, ptr %2, align 8
%7 = call i32 @rtext_senditup(ptr noundef %6, i32 noundef 0, ptr noundef %3, ptr noundef %4, ptr noundef %5)
%8 = load i32, ptr %3, align 4
ret i32 %8
}
declare i32 @rtext_senditup(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_nj5nyb9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rtext_width(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
%6 = load ptr, ptr %2, align 8
%7 = call i32 @rtext_senditup(ptr noundef %6, i32 noundef 0, ptr noundef %3, ptr noundef %4, ptr noundef %5)
%8 = load i32, ptr %3, align 4
ret i32 %8
}
declare i32 @rtext_senditup(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpinvzjiis.c'
source_filename = "/tmp/tmpinvzjiis.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c" %2d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c" -\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @MATRIXprint(i32 noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
store i32 0, ptr %7, align 4
br label %9
9: ; preds = %48, %3
%10 = load i32, ptr %7, align 4
%11 = load i32, ptr %4, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %51
13: ; preds = %9
store i32 0, ptr %8, align 4
br label %14
14: ; preds = %43, %13
%15 = load i32, ptr %8, align 4
%16 = load i32, ptr %5, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %46
18: ; preds = %14
%19 = load ptr, ptr %6, align 8
%20 = load i32, ptr %7, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds ptr, ptr %19, i64 %21
%23 = load ptr, ptr %22, align 8
%24 = load i32, ptr %8, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i32, ptr %23, i64 %25
%27 = load i32, ptr %26, align 4
%28 = icmp sge i32 %27, 0
br i1 %28, label %29, label %40
29: ; preds = %18
%30 = load ptr, ptr %6, align 8
%31 = load i32, ptr %7, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds ptr, ptr %30, i64 %32
%34 = load ptr, ptr %33, align 8
%35 = load i32, ptr %8, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i32, ptr %34, i64 %36
%38 = load i32, ptr %37, align 4
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %38)
br label %42
40: ; preds = %18
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %42
42: ; preds = %40, %29
br label %43
43: ; preds = %42
%44 = load i32, ptr %8, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %8, align 4
br label %14, !llvm.loop !6
46: ; preds = %14
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %48
48: ; preds = %46
%49 = load i32, ptr %7, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %7, align 4
br label %9, !llvm.loop !8
51: ; preds = %9
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpinvzjiis.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [5 x i8] c" %2d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c" -\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @MATRIXprint(i32 noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
store i32 0, ptr %7, align 4
%9 = load i32, ptr %7, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %.lr.ph2, label %55
.lr.ph2: ; preds = %3
br label %12
12: ; preds = %.lr.ph2, %49
store i32 0, ptr %8, align 4
%13 = load i32, ptr %8, align 4
%14 = load i32, ptr %5, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %.lr.ph, label %47
.lr.ph: ; preds = %12
br label %16
16: ; preds = %.lr.ph, %41
%17 = load ptr, ptr %6, align 8
%18 = load i32, ptr %7, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds ptr, ptr %17, i64 %19
%21 = load ptr, ptr %20, align 8
%22 = load i32, ptr %8, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i32, ptr %21, i64 %23
%25 = load i32, ptr %24, align 4
%26 = icmp sge i32 %25, 0
br i1 %26, label %27, label %38
27: ; preds = %16
%28 = load ptr, ptr %6, align 8
%29 = load i32, ptr %7, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds ptr, ptr %28, i64 %30
%32 = load ptr, ptr %31, align 8
%33 = load i32, ptr %8, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i32, ptr %32, i64 %34
%36 = load i32, ptr %35, align 4
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %36)
br label %40
38: ; preds = %16
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %40
40: ; preds = %38, %27
br label %41
41: ; preds = %40
%42 = load i32, ptr %8, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %8, align 4
%44 = load i32, ptr %8, align 4
%45 = load i32, ptr %5, align 4
%46 = icmp slt i32 %44, %45
br i1 %46, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %41
br label %47
47: ; preds = %._crit_edge, %12
%48 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %49
49: ; preds = %47
%50 = load i32, ptr %7, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %7, align 4
%52 = load i32, ptr %7, align 4
%53 = load i32, ptr %4, align 4
%54 = icmp slt i32 %52, %53
br i1 %54, label %12, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %49
br label %55
55: ; preds = %._crit_edge3, %3
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpoqneha5q.c'
source_filename = "/tmp/tmpoqneha5q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i64 }
@.str = private unnamed_addr constant [25 x i8] c"\09gettimeofday: %s%d ns\0D\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"<=\00", align 1
@.str.2 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @measure_gettimeofday() #0 {
%1 = alloca %struct.timeval, align 8
%2 = alloca %struct.timeval, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %4, align 4
%5 = call i32 @gettimeofday(ptr noundef %1, i32 noundef 0)
call void @llvm.memcpy.p0.p0.i64(ptr align 8 %2, ptr align 8 %1, i64 8, i1 false)
br label %6
6: ; preds = %12, %0
%7 = getelementptr inbounds %struct.timeval, ptr %2, i32 0, i32 0
%8 = load i64, ptr %7, align 8
%9 = getelementptr inbounds %struct.timeval, ptr %1, i32 0, i32 0
%10 = load i64, ptr %9, align 8
%11 = icmp eq i64 %8, %10
br i1 %11, label %12, label %16
12: ; preds = %6
%13 = call i32 @gettimeofday(ptr noundef %1, i32 noundef 0)
%14 = load i32, ptr %4, align 4
%15 = add nsw i32 %14, 1
store i32 %15, ptr %4, align 4
br label %6, !llvm.loop !6
16: ; preds = %6
%17 = call i32 @diff_timeval(ptr noundef %2, ptr noundef %1)
store i32 %17, ptr %3, align 4
%18 = load i32, ptr %4, align 4
%19 = icmp eq i32 %18, 1
br i1 %19, label %20, label %23
20: ; preds = %16
%21 = load i32, ptr %3, align 4
%22 = icmp ne i32 %21, 1000
br label %23
23: ; preds = %20, %16
%24 = phi i1 [ false, %16 ], [ %22, %20 ]
%25 = zext i1 %24 to i64
%26 = select i1 %24, ptr @.str.1, ptr @.str.2
%27 = load i32, ptr %3, align 4
%28 = call i32 @printf(ptr noundef @.str, ptr noundef %26, i32 noundef %27)
ret void
}
declare i32 @gettimeofday(ptr noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
declare i32 @diff_timeval(ptr noundef, ptr noundef) #1
declare i32 @printf(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" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpoqneha5q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i64 }
@.str = private unnamed_addr constant [25 x i8] c"\09gettimeofday: %s%d ns\0D\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"<=\00", align 1
@.str.2 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @measure_gettimeofday() #0 {
%1 = alloca %struct.timeval, align 8
%2 = alloca %struct.timeval, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %4, align 4
%5 = call i32 @gettimeofday(ptr noundef %1, i32 noundef 0)
call void @llvm.memcpy.p0.p0.i64(ptr align 8 %2, ptr align 8 %1, i64 8, i1 false)
%6 = getelementptr inbounds %struct.timeval, ptr %2, i32 0, i32 0
%7 = load i64, ptr %6, align 8
%8 = getelementptr inbounds %struct.timeval, ptr %1, i32 0, i32 0
%9 = load i64, ptr %8, align 8
%10 = icmp eq i64 %7, %9
br i1 %10, label %.lr.ph, label %18
.lr.ph: ; preds = %0
br label %11
11: ; preds = %.lr.ph, %11
%12 = call i32 @gettimeofday(ptr noundef %1, i32 noundef 0)
%13 = load i32, ptr %4, align 4
%14 = add nsw i32 %13, 1
store i32 %14, ptr %4, align 4
%15 = load i64, ptr %6, align 8
%16 = load i64, ptr %8, align 8
%17 = icmp eq i64 %15, %16
br i1 %17, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %11
br label %18
18: ; preds = %._crit_edge, %0
%19 = call i32 @diff_timeval(ptr noundef %2, ptr noundef %1)
store i32 %19, ptr %3, align 4
%20 = load i32, ptr %4, align 4
%21 = icmp eq i32 %20, 1
br i1 %21, label %22, label %25
22: ; preds = %18
%23 = load i32, ptr %3, align 4
%24 = icmp ne i32 %23, 1000
br label %25
25: ; preds = %22, %18
%26 = phi i1 [ false, %18 ], [ %24, %22 ]
%27 = zext i1 %26 to i64
%28 = select i1 %26, ptr @.str.1, ptr @.str.2
%29 = load i32, ptr %3, align 4
%30 = call i32 @printf(ptr noundef @.str, ptr noundef %28, i32 noundef %29)
ret void
}
declare i32 @gettimeofday(ptr noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
declare i32 @diff_timeval(ptr noundef, ptr noundef) #1
declare i32 @printf(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" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpz3qlw4s3.c'
source_filename = "/tmp/tmpz3qlw4s3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"child process\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"ls\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"-lart\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"/home\00", align 1
@__const.main.argv_list = private unnamed_addr constant [4 x ptr] [ptr @.str.1, ptr @.str.2, ptr @.str.3, ptr null], align 16
@.str.4 = private unnamed_addr constant [8 x i8] c"/bin/ls\00", align 1
@.str.5 = private unnamed_addr constant [10 x i8] c"ls before\00", align 1
@.str.6 = private unnamed_addr constant [32 x i8] c"parent process child pid is %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i32, align 4
%4 = alloca [4 x ptr], align 16
store i32 0, ptr %1, align 4
%5 = call i64 (...) @fork()
store i64 %5, ptr %2, align 8
%6 = load i64, ptr %2, align 8
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %14
8: ; preds = %0
%9 = call i32 @puts(ptr noundef @.str)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const.main.argv_list, i64 32, i1 false)
%10 = getelementptr inbounds [4 x ptr], ptr %4, i64 0, i64 0
%11 = call i32 @execv(ptr noundef @.str.4, ptr noundef %10)
%12 = call i32 @puts(ptr noundef @.str.5)
%13 = call i32 @exit(i32 noundef 0) #4
unreachable
14: ; preds = %0
%15 = load i64, ptr %2, align 8
%16 = call i32 @printf(ptr noundef @.str.6, i64 noundef %15)
%17 = load i64, ptr %2, align 8
%18 = call i32 @waitpid(i64 noundef %17, ptr noundef %3, i32 noundef 0)
%19 = call i32 @exit(i32 noundef 0) #4
unreachable
}
declare i64 @fork(...) #1
declare i32 @puts(ptr noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
declare i32 @execv(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
declare i32 @printf(ptr noundef, i64 noundef) #1
declare i32 @waitpid(i64 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpz3qlw4s3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"child process\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"ls\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"-lart\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"/home\00", align 1
@__const.main.argv_list = private unnamed_addr constant [4 x ptr] [ptr @.str.1, ptr @.str.2, ptr @.str.3, ptr null], align 16
@.str.4 = private unnamed_addr constant [8 x i8] c"/bin/ls\00", align 1
@.str.5 = private unnamed_addr constant [10 x i8] c"ls before\00", align 1
@.str.6 = private unnamed_addr constant [32 x i8] c"parent process child pid is %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
%3 = alloca i32, align 4
%4 = alloca [4 x ptr], align 16
store i32 0, ptr %1, align 4
%5 = call i64 (...) @fork()
store i64 %5, ptr %2, align 8
%6 = load i64, ptr %2, align 8
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %14
8: ; preds = %0
%9 = call i32 @puts(ptr noundef @.str)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const.main.argv_list, i64 32, i1 false)
%10 = getelementptr inbounds [4 x ptr], ptr %4, i64 0, i64 0
%11 = call i32 @execv(ptr noundef @.str.4, ptr noundef %10)
%12 = call i32 @puts(ptr noundef @.str.5)
%13 = call i32 @exit(i32 noundef 0) #4
unreachable
14: ; preds = %0
%15 = load i64, ptr %2, align 8
%16 = call i32 @printf(ptr noundef @.str.6, i64 noundef %15)
%17 = load i64, ptr %2, align 8
%18 = call i32 @waitpid(i64 noundef %17, ptr noundef %3, i32 noundef 0)
%19 = call i32 @exit(i32 noundef 0) #4
unreachable
}
declare i64 @fork(...) #1
declare i32 @puts(ptr noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
declare i32 @execv(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
declare i32 @printf(ptr noundef, i64 noundef) #1
declare i32 @waitpid(i64 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_3tyb61g.c'
source_filename = "/tmp/tmp_3tyb61g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [51 x i8] c"Attempt to read beyond end of file, corrupt file?\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @read_int(ptr noundef %0, i64 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
%7 = alloca i8, align 1
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
store i8 0, ptr %7, align 1
%9 = load ptr, ptr %4, align 8
%10 = load ptr, ptr %9, align 8
%11 = load i64, ptr %5, align 8
%12 = getelementptr inbounds i8, ptr %10, i64 %11
%13 = load ptr, ptr %6, align 8
%14 = icmp ugt ptr %12, %13
br i1 %14, label %15, label %19
15: ; preds = %3
%16 = call i32 @msg(i32 noundef -3, ptr noundef @.str)
%17 = load i32, ptr @EXIT_FAILURE, align 4
%18 = call i32 @exit(i32 noundef %17) #3
unreachable
19: ; preds = %3
store i32 0, ptr %8, align 4
br label %20
20: ; preds = %41, %19
%21 = load i32, ptr %8, align 4
%22 = sext i32 %21 to i64
%23 = load i64, ptr %5, align 8
%24 = icmp ult i64 %22, %23
br i1 %24, label %25, label %44
25: ; preds = %20
%26 = load ptr, ptr %4, align 8
%27 = load ptr, ptr %26, align 8
%28 = load i32, ptr %8, 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 = and i32 %32, 255
%34 = load i32, ptr %8, align 4
%35 = mul nsw i32 8, %34
%36 = shl i32 %33, %35
%37 = load i8, ptr %7, align 1
%38 = sext i8 %37 to i32
%39 = add nsw i32 %38, %36
%40 = trunc i32 %39 to i8
store i8 %40, ptr %7, align 1
br label %41
41: ; preds = %25
%42 = load i32, ptr %8, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %8, align 4
br label %20, !llvm.loop !6
44: ; preds = %20
%45 = load i64, ptr %5, align 8
%46 = load ptr, ptr %4, align 8
%47 = load ptr, ptr %46, align 8
%48 = getelementptr inbounds i8, ptr %47, i64 %45
store ptr %48, ptr %46, align 8
%49 = load i8, ptr %7, align 1
ret i8 %49
}
declare i32 @msg(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_3tyb61g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [51 x i8] c"Attempt to read beyond end of file, corrupt file?\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @read_int(ptr noundef %0, i64 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
%7 = alloca i8, align 1
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
store i8 0, ptr %7, align 1
%9 = load ptr, ptr %4, align 8
%10 = load ptr, ptr %9, align 8
%11 = load i64, ptr %5, align 8
%12 = getelementptr inbounds i8, ptr %10, i64 %11
%13 = load ptr, ptr %6, align 8
%14 = icmp ugt ptr %12, %13
br i1 %14, label %15, label %19
15: ; preds = %3
%16 = call i32 @msg(i32 noundef -3, ptr noundef @.str)
%17 = load i32, ptr @EXIT_FAILURE, align 4
%18 = call i32 @exit(i32 noundef %17) #3
unreachable
19: ; preds = %3
store i32 0, ptr %8, align 4
%20 = load i32, ptr %8, align 4
%21 = sext i32 %20 to i64
%22 = load i64, ptr %5, align 8
%23 = icmp ult i64 %21, %22
br i1 %23, label %.lr.ph, label %47
.lr.ph: ; preds = %19
br label %24
24: ; preds = %.lr.ph, %40
%25 = load ptr, ptr %4, align 8
%26 = load ptr, ptr %25, align 8
%27 = load i32, ptr %8, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, ptr %26, i64 %28
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
%32 = and i32 %31, 255
%33 = load i32, ptr %8, align 4
%34 = mul nsw i32 8, %33
%35 = shl i32 %32, %34
%36 = load i8, ptr %7, align 1
%37 = sext i8 %36 to i32
%38 = add nsw i32 %37, %35
%39 = trunc i32 %38 to i8
store i8 %39, ptr %7, align 1
br label %40
40: ; preds = %24
%41 = load i32, ptr %8, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %8, align 4
%43 = load i32, ptr %8, align 4
%44 = sext i32 %43 to i64
%45 = load i64, ptr %5, align 8
%46 = icmp ult i64 %44, %45
br i1 %46, label %24, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %40
br label %47
47: ; preds = %._crit_edge, %19
%48 = load i64, ptr %5, align 8
%49 = load ptr, ptr %4, align 8
%50 = load ptr, ptr %49, align 8
%51 = getelementptr inbounds i8, ptr %50, i64 %48
store ptr %51, ptr %49, align 8
%52 = load i8, ptr %7, align 1
ret i8 %52
}
declare i32 @msg(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmps83xdf9a.c'
source_filename = "/tmp/tmps83xdf9a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @aes256_decrypt_block(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca [240 x i8], align 16
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%9 = load ptr, ptr %6, align 8
%10 = load ptr, ptr %4, align 8
%11 = call i32 @memcpy(ptr noundef %9, ptr noundef %10, i32 noundef 16)
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds [240 x i8], ptr %8, i64 0, i64 0
%14 = call i32 @aes256_key_schedule(ptr noundef %12, ptr noundef %13)
%15 = load ptr, ptr %6, align 8
%16 = getelementptr inbounds [240 x i8], ptr %8, i64 0, i64 0
%17 = getelementptr inbounds i8, ptr %16, i64 224
%18 = call i32 @aes256_inv_initial_round(ptr noundef %15, ptr noundef %17)
store i32 13, ptr %7, align 4
br label %19
19: ; preds = %32, %3
%20 = load i32, ptr %7, align 4
%21 = icmp sgt i32 %20, 0
br i1 %21, label %22, label %35
22: ; preds = %19
%23 = load ptr, ptr %6, align 8
%24 = getelementptr inbounds [240 x i8], ptr %8, i64 0, i64 0
%25 = load i32, ptr %7, align 4
%26 = mul nsw i32 16, %25
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8, ptr %24, i64 %27
%29 = call i32 @aes256_add_round_key(ptr noundef %23, ptr noundef %28)
%30 = load ptr, ptr %6, align 8
%31 = call i32 @aes256_inv_full_round(ptr noundef %30)
br label %32
32: ; preds = %22
%33 = load i32, ptr %7, align 4
%34 = add nsw i32 %33, -1
store i32 %34, ptr %7, align 4
br label %19, !llvm.loop !6
35: ; preds = %19
%36 = load ptr, ptr %6, align 8
%37 = getelementptr inbounds [240 x i8], ptr %8, i64 0, i64 0
%38 = call i32 @aes256_add_round_key(ptr noundef %36, ptr noundef %37)
ret void
}
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @aes256_key_schedule(ptr noundef, ptr noundef) #1
declare i32 @aes256_inv_initial_round(ptr noundef, ptr noundef) #1
declare i32 @aes256_add_round_key(ptr noundef, ptr noundef) #1
declare i32 @aes256_inv_full_round(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmps83xdf9a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @aes256_decrypt_block(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca [240 x i8], align 16
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%9 = load ptr, ptr %6, align 8
%10 = load ptr, ptr %4, align 8
%11 = call i32 @memcpy(ptr noundef %9, ptr noundef %10, i32 noundef 16)
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds [240 x i8], ptr %8, i64 0, i64 0
%14 = call i32 @aes256_key_schedule(ptr noundef %12, ptr noundef %13)
%15 = load ptr, ptr %6, align 8
%16 = getelementptr inbounds [240 x i8], ptr %8, i64 0, i64 0
%17 = getelementptr inbounds i8, ptr %16, i64 224
%18 = call i32 @aes256_inv_initial_round(ptr noundef %15, ptr noundef %17)
store i32 13, ptr %7, align 4
%19 = load i32, ptr %7, align 4
%20 = icmp sgt i32 %19, 0
br i1 %20, label %.lr.ph, label %36
.lr.ph: ; preds = %3
br label %21
21: ; preds = %.lr.ph, %31
%22 = load ptr, ptr %6, align 8
%23 = getelementptr inbounds [240 x i8], ptr %8, i64 0, i64 0
%24 = load i32, ptr %7, align 4
%25 = mul nsw i32 16, %24
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i8, ptr %23, i64 %26
%28 = call i32 @aes256_add_round_key(ptr noundef %22, ptr noundef %27)
%29 = load ptr, ptr %6, align 8
%30 = call i32 @aes256_inv_full_round(ptr noundef %29)
br label %31
31: ; preds = %21
%32 = load i32, ptr %7, align 4
%33 = add nsw i32 %32, -1
store i32 %33, ptr %7, align 4
%34 = load i32, ptr %7, align 4
%35 = icmp sgt i32 %34, 0
br i1 %35, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %31
br label %36
36: ; preds = %._crit_edge, %3
%37 = load ptr, ptr %6, align 8
%38 = getelementptr inbounds [240 x i8], ptr %8, i64 0, i64 0
%39 = call i32 @aes256_add_round_key(ptr noundef %37, ptr noundef %38)
ret void
}
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @aes256_key_schedule(ptr noundef, ptr noundef) #1
declare i32 @aes256_inv_initial_round(ptr noundef, ptr noundef) #1
declare i32 @aes256_add_round_key(ptr noundef, ptr noundef) #1
declare i32 @aes256_inv_full_round(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpm2hbc38g.c'
source_filename = "/tmp/tmpm2hbc38g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @srl_bytes_to_int32(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
br label %8
8: ; preds = %28, %2
%9 = load i32, ptr %6, align 4
%10 = icmp slt i32 %9, 4
br i1 %10, label %11, label %31
11: ; preds = %8
%12 = load ptr, ptr %3, align 8
%13 = load i32, ptr %6, align 4
%14 = sext i32 %13 to i64
%15 = load i64, ptr %4, align 8
%16 = add i64 %14, %15
%17 = getelementptr inbounds i8, ptr %12, i64 %16
%18 = load i8, ptr %17, align 1
%19 = zext i8 %18 to i32
store i32 %19, ptr %7, align 4
%20 = load i32, ptr %6, align 4
%21 = mul nsw i32 %20, 8
%22 = sub nsw i32 24, %21
%23 = load i32, ptr %7, align 4
%24 = shl i32 %23, %22
store i32 %24, ptr %7, align 4
%25 = load i32, ptr %7, align 4
%26 = load i32, ptr %5, align 4
%27 = or i32 %26, %25
store i32 %27, ptr %5, align 4
br label %28
28: ; preds = %11
%29 = load i32, ptr %6, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %6, align 4
br label %8, !llvm.loop !6
31: ; preds = %8
%32 = load i32, ptr %5, align 4
ret i32 %32
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpm2hbc38g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @srl_bytes_to_int32(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
%8 = load i32, ptr %6, align 4
%9 = icmp slt i32 %8, 4
br i1 %9, label %.lr.ph, label %32
.lr.ph: ; preds = %2
br label %10
10: ; preds = %.lr.ph, %27
%11 = load ptr, ptr %3, align 8
%12 = load i32, ptr %6, align 4
%13 = sext i32 %12 to i64
%14 = load i64, ptr %4, align 8
%15 = add i64 %13, %14
%16 = getelementptr inbounds i8, ptr %11, i64 %15
%17 = load i8, ptr %16, align 1
%18 = zext i8 %17 to i32
store i32 %18, ptr %7, align 4
%19 = load i32, ptr %6, align 4
%20 = mul nsw i32 %19, 8
%21 = sub nsw i32 24, %20
%22 = load i32, ptr %7, align 4
%23 = shl i32 %22, %21
store i32 %23, ptr %7, align 4
%24 = load i32, ptr %7, align 4
%25 = load i32, ptr %5, align 4
%26 = or i32 %25, %24
store i32 %26, ptr %5, align 4
br label %27
27: ; preds = %10
%28 = load i32, ptr %6, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %6, align 4
%30 = load i32, ptr %6, align 4
%31 = icmp slt i32 %30, 4
br i1 %31, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %27
br label %32
32: ; preds = %._crit_edge, %2
%33 = load i32, ptr %5, align 4
ret i32 %33
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpixhpvtkf.c'
source_filename = "/tmp/tmpixhpvtkf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @tlib_realloc(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load i64, ptr %4, align 8
%7 = call ptr @realloc(ptr noundef %5, i64 noundef %6) #2
ret ptr %7
}
; Function Attrs: allocsize(1)
declare ptr @realloc(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 = { allocsize(1) "frame-pointer"="all" "no-trapping-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 = { allocsize(1) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpixhpvtkf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @tlib_realloc(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load i64, ptr %4, align 8
%7 = call ptr @realloc(ptr noundef %5, i64 noundef %6) #2
ret ptr %7
}
; Function Attrs: allocsize(1)
declare ptr @realloc(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 = { allocsize(1) "frame-pointer"="all" "no-trapping-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 = { allocsize(1) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpiy_ir7v6.c'
source_filename = "/tmp/tmpiy_ir7v6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @SysTickIntRegister(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 @IntRegister(i32 noundef 15, ptr noundef %3)
%5 = load volatile i64, ptr inttoptr (i64 3758153744 to ptr), align 8
%6 = or i64 %5, 2
store volatile i64 %6, ptr inttoptr (i64 3758153744 to ptr), align 8
ret void
}
declare i32 @IntRegister(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/tmpiy_ir7v6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @SysTickIntRegister(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 @IntRegister(i32 noundef 15, ptr noundef %3)
%5 = load volatile i64, ptr inttoptr (i64 3758153744 to ptr), align 8
%6 = or i64 %5, 2
store volatile i64 %6, ptr inttoptr (i64 3758153744 to ptr), align 8
ret void
}
declare i32 @IntRegister(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/tmpoo_dzp_2.c'
source_filename = "/tmp/tmpoo_dzp_2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [26 x i8] c"Memory allocation error.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @reallocBool(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store ptr null, ptr %5, align 8
%6 = load i64, ptr %4, align 8
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %11
8: ; preds = %2
%9 = load ptr, ptr %3, align 8
%10 = call i32 @free(ptr noundef %9)
br label %21
11: ; preds = %2
%12 = load ptr, ptr %3, align 8
%13 = load i64, ptr %4, align 8
%14 = mul i64 %13, 4
%15 = call ptr @realloc(ptr noundef %12, i64 noundef %14)
store ptr %15, ptr %5, align 8
%16 = load ptr, ptr %5, align 8
%17 = icmp eq ptr %16, null
br i1 %17, label %18, label %20
18: ; preds = %11
%19 = call i32 @fatal(ptr noundef @.str)
br label %20
20: ; preds = %18, %11
br label %21
21: ; preds = %20, %8
%22 = load ptr, ptr %5, align 8
ret ptr %22
}
declare i32 @free(ptr noundef) #1
declare ptr @realloc(ptr noundef, i64 noundef) #1
declare i32 @fatal(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpoo_dzp_2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [26 x i8] c"Memory allocation error.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @reallocBool(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store ptr null, ptr %5, align 8
%6 = load i64, ptr %4, align 8
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %11
8: ; preds = %2
%9 = load ptr, ptr %3, align 8
%10 = call i32 @free(ptr noundef %9)
br label %21
11: ; preds = %2
%12 = load ptr, ptr %3, align 8
%13 = load i64, ptr %4, align 8
%14 = mul i64 %13, 4
%15 = call ptr @realloc(ptr noundef %12, i64 noundef %14)
store ptr %15, ptr %5, align 8
%16 = load ptr, ptr %5, align 8
%17 = icmp eq ptr %16, null
br i1 %17, label %18, label %20
18: ; preds = %11
%19 = call i32 @fatal(ptr noundef @.str)
br label %20
20: ; preds = %18, %11
br label %21
21: ; preds = %20, %8
%22 = load ptr, ptr %5, align 8
ret ptr %22
}
declare i32 @free(ptr noundef) #1
declare ptr @realloc(ptr noundef, i64 noundef) #1
declare i32 @fatal(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmwwvjwpe.c'
source_filename = "/tmp/tmpmwwvjwpe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [3 x i8] c"%d\00", align 1
@EOF = dso_local global i64 0, align 8
@.str.2 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [100 x [3 x i32]], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memset.p0.i64(ptr align 16 %2, i8 0, i64 1200, i1 false)
store i32 0, ptr %8, align 4
br label %9
9: ; preds = %0, %17
%10 = call i64 (ptr, ptr, ...) @scanf(ptr noundef @.str, ptr noundef %3, ptr noundef %4)
%11 = load i32, ptr %3, align 4
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %17
13: ; preds = %9
%14 = load i32, ptr %4, align 4
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %13
br label %30
17: ; preds = %13, %9
%18 = load i32, ptr %3, align 4
%19 = load i32, ptr %8, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [100 x [3 x i32]], ptr %2, i64 0, i64 %20
%22 = getelementptr inbounds [3 x i32], ptr %21, i64 0, i64 0
store i32 %18, ptr %22, align 4
%23 = load i32, ptr %4, align 4
%24 = load i32, ptr %8, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [100 x [3 x i32]], ptr %2, i64 0, i64 %25
%27 = getelementptr inbounds [3 x i32], ptr %26, i64 0, i64 1
store i32 %23, ptr %27, align 4
%28 = load i32, ptr %8, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %8, align 4
br label %9
30: ; preds = %16
store i32 0, ptr %5, align 4
br label %31
31: ; preds = %104, %30
%32 = load i32, ptr %5, align 4
%33 = load i32, ptr %8, align 4
%34 = icmp slt i32 %32, %33
br i1 %34, label %35, label %107
35: ; preds = %31
store i32 0, ptr %6, align 4
br label %36
36: ; preds = %100, %35
%37 = load i32, ptr %6, align 4
%38 = load i32, ptr %8, align 4
%39 = load i32, ptr %5, align 4
%40 = sub nsw i32 %38, %39
%41 = sub nsw i32 %40, 1
%42 = icmp slt i32 %37, %41
br i1 %42, label %43, label %103
43: ; preds = %36
%44 = load i32, ptr %6, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [100 x [3 x i32]], ptr %2, i64 0, i64 %45
%47 = getelementptr inbounds [3 x i32], ptr %46, i64 0, i64 1
%48 = load i32, ptr %47, align 4
%49 = load i32, ptr %6, align 4
%50 = add nsw i32 %49, 1
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [100 x [3 x i32]], ptr %2, i64 0, i64 %51
%53 = getelementptr inbounds [3 x i32], ptr %52, i64 0, i64 1
%54 = load i32, ptr %53, align 4
%55 = icmp slt i32 %48, %54
br i1 %55, label %56, label %99
56: ; preds = %43
%57 = load i32, ptr %6, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds [100 x [3 x i32]], ptr %2, i64 0, i64 %58
%60 = getelementptr inbounds [3 x i32], ptr %59, i64 0, i64 1
%61 = load i32, ptr %60, align 4
store i32 %61, ptr %7, align 4
%62 = load i32, ptr %6, align 4
%63 = add nsw i32 %62, 1
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [100 x [3 x i32]], ptr %2, i64 0, i64 %64
%66 = getelementptr inbounds [3 x i32], ptr %65, i64 0, i64 1
%67 = load i32, ptr %66, align 4
%68 = load i32, ptr %6, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds [100 x [3 x i32]], ptr %2, i64 0, i64 %69
%71 = getelementptr inbounds [3 x i32], ptr %70, i64 0, i64 1
store i32 %67, ptr %71, align 4
%72 = load i32, ptr %7, align 4
%73 = load i32, ptr %6, align 4
%74 = add nsw i32 %73, 1
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds [100 x [3 x i32]], ptr %2, i64 0, i64 %75
%77 = getelementptr inbounds [3 x i32], ptr %76, i64 0, i64 1
store i32 %72, ptr %77, align 4
%78 = load i32, ptr %6, align 4
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds [100 x [3 x i32]], ptr %2, i64 0, i64 %79
%81 = getelementptr inbounds [3 x i32], ptr %80, i64 0, i64 0
%82 = load i32, ptr %81, align 4
store i32 %82, ptr %7, align 4
%83 = load i32, ptr %6, align 4
%84 = add nsw i32 %83, 1
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds [100 x [3 x i32]], ptr %2, i64 0, i64 %85
%87 = getelementptr inbounds [3 x i32], ptr %86, i64 0, i64 0
%88 = load i32, ptr %87, align 4
%89 = load i32, ptr %6, align 4
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds [100 x [3 x i32]], ptr %2, i64 0, i64 %90
%92 = getelementptr inbounds [3 x i32], ptr %91, i64 0, i64 0
store i32 %88, ptr %92, align 4
%93 = load i32, ptr %7, align 4
%94 = load i32, ptr %6, align 4
%95 = add nsw i32 %94, 1
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds [100 x [3 x i32]], ptr %2, i64 0, i64 %96
%98 = getelementptr inbounds [3 x i32], ptr %97, i64 0, i64 0
store i32 %93, ptr %98, align 4
br label %99
99: ; preds = %56, %43
br label %100
100: ; preds = %99
%101 = load i32, ptr %6, align 4
%102 = add nsw i32 %101, 1
store i32 %102, ptr %6, align 4
br label %36, !llvm.loop !6
103: ; preds = %36
br label %104
104: ; preds = %103
%105 = load i32, ptr %5, align 4
%106 = add nsw i32 %105, 1
store i32 %106, ptr %5, align 4
br label %31, !llvm.loop !8
107: ; preds = %31
store i32 0, ptr %5, align 4
br label %108
108: ; preds = %158, %107
%109 = load i32, ptr %5, align 4
%110 = load i32, ptr %8, align 4
%111 = icmp slt i32 %109, %110
br i1 %111, label %112, label %161
112: ; preds = %108
%113 = load i32, ptr %5, align 4
%114 = icmp eq i32 %113, 0
br i1 %114, label %115, label %120
115: ; preds = %112
%116 = load i32, ptr %5, align 4
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds [100 x [3 x i32]], ptr %2, i64 0, i64 %117
%119 = getelementptr inbounds [3 x i32], ptr %118, i64 0, i64 2
store i32 1, ptr %119, align 4
br label %157
120: ; preds = %112
%121 = load i32, ptr %5, align 4
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds [100 x [3 x i32]], ptr %2, i64 0, i64 %122
%124 = getelementptr inbounds [3 x i32], ptr %123, i64 0, i64 1
%125 = load i32, ptr %124, align 4
%126 = load i32, ptr %5, align 4
%127 = sub nsw i32 %126, 1
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds [100 x [3 x i32]], ptr %2, i64 0, i64 %128
%130 = getelementptr inbounds [3 x i32], ptr %129, i64 0, i64 1
%131 = load i32, ptr %130, align 4
%132 = icmp eq i32 %125, %131
br i1 %132, label %133, label %144
133: ; preds = %120
%134 = load i32, ptr %5, align 4
%135 = sub nsw i32 %134, 1
%136 = sext i32 %135 to i64
%137 = getelementptr inbounds [100 x [3 x i32]], ptr %2, i64 0, i64 %136
%138 = getelementptr inbounds [3 x i32], ptr %137, i64 0, i64 2
%139 = load i32, ptr %138, align 4
%140 = load i32, ptr %5, align 4
%141 = sext i32 %140 to i64
%142 = getelementptr inbounds [100 x [3 x i32]], ptr %2, i64 0, i64 %141
%143 = getelementptr inbounds [3 x i32], ptr %142, i64 0, i64 2
store i32 %139, ptr %143, align 4
br label %156
144: ; preds = %120
%145 = load i32, ptr %5, align 4
%146 = sub nsw i32 %145, 1
%147 = sext i32 %146 to i64
%148 = getelementptr inbounds [100 x [3 x i32]], ptr %2, i64 0, i64 %147
%149 = getelementptr inbounds [3 x i32], ptr %148, i64 0, i64 2
%150 = load i32, ptr %149, align 4
%151 = add nsw i32 %150, 1
%152 = load i32, ptr %5, align 4
%153 = sext i32 %152 to i64
%154 = getelementptr inbounds [100 x [3 x i32]], ptr %2, i64 0, i64 %153
%155 = getelementptr inbounds [3 x i32], ptr %154, i64 0, i64 2
store i32 %151, ptr %155, align 4
br label %156
156: ; preds = %144, %133
br label %157
157: ; preds = %156, %115
br label %158
158: ; preds = %157
%159 = load i32, ptr %5, align 4
%160 = add nsw i32 %159, 1
store i32 %160, ptr %5, align 4
br label %108, !llvm.loop !9
161: ; preds = %108
br label %162
162: ; preds = %186, %161
%163 = call i64 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %3)
%164 = load i64, ptr @EOF, align 8
%165 = icmp ne i64 %163, %164
br i1 %165, label %166, label %187
166: ; preds = %162
store i32 0, ptr %5, align 4
br label %167
167: ; preds = %183, %166
%168 = load i32, ptr %5, align 4
%169 = sext i32 %168 to i64
%170 = getelementptr inbounds [100 x [3 x i32]], ptr %2, i64 0, i64 %169
%171 = getelementptr inbounds [3 x i32], ptr %170, i64 0, i64 0
%172 = load i32, ptr %171, align 4
%173 = load i32, ptr %3, align 4
%174 = icmp eq i32 %172, %173
br i1 %174, label %175, label %182
175: ; preds = %167
%176 = load i32, ptr %5, align 4
%177 = sext i32 %176 to i64
%178 = getelementptr inbounds [100 x [3 x i32]], ptr %2, i64 0, i64 %177
%179 = getelementptr inbounds [3 x i32], ptr %178, i64 0, i64 2
%180 = load i32, ptr %179, align 4
%181 = call i32 @printf(ptr noundef @.str.2, i32 noundef %180)
br label %186
182: ; preds = %167
br label %183
183: ; preds = %182
%184 = load i32, ptr %5, align 4
%185 = add nsw i32 %184, 1
store i32 %185, ptr %5, align 4
br label %167
186: ; preds = %175
br label %162, !llvm.loop !10
187: ; preds = %162
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i64 @scanf(ptr noundef, ptr noundef, ...) #2
declare i32 @printf(ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmwwvjwpe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [3 x i8] c"%d\00", align 1
@EOF = dso_local global i64 0, align 8
@.str.2 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [100 x [3 x i32]], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memset.p0.i64(ptr align 16 %2, i8 0, i64 1200, i1 false)
store i32 0, ptr %8, align 4
br label %9
9: ; preds = %17, %0
%10 = call i64 (ptr, ptr, ...) @scanf(ptr noundef @.str, ptr noundef %3, ptr noundef %4)
%11 = load i32, ptr %3, align 4
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %17
13: ; preds = %9
%14 = load i32, ptr %4, align 4
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %13
br label %30
17: ; preds = %13, %9
%18 = load i32, ptr %3, align 4
%19 = load i32, ptr %8, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [100 x [3 x i32]], ptr %2, i64 0, i64 %20
%22 = getelementptr inbounds [3 x i32], ptr %21, i64 0, i64 0
store i32 %18, ptr %22, align 4
%23 = load i32, ptr %4, align 4
%24 = load i32, ptr %8, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [100 x [3 x i32]], ptr %2, i64 0, i64 %25
%27 = getelementptr inbounds [3 x i32], ptr %26, i64 0, i64 1
store i32 %23, ptr %27, align 4
%28 = load i32, ptr %8, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %8, align 4
br label %9
30: ; preds = %16
store i32 0, ptr %5, align 4
%31 = load i32, ptr %5, align 4
%32 = load i32, ptr %8, align 4
%33 = icmp slt i32 %31, %32
br i1 %33, label %.lr.ph2, label %114
.lr.ph2: ; preds = %30
br label %34
34: ; preds = %.lr.ph2, %108
store i32 0, ptr %6, align 4
%35 = load i32, ptr %6, align 4
%36 = load i32, ptr %8, align 4
%37 = load i32, ptr %5, align 4
%38 = sub nsw i32 %36, %37
%39 = sub nsw i32 %38, 1
%40 = icmp slt i32 %35, %39
br i1 %40, label %.lr.ph, label %107
.lr.ph: ; preds = %34
br label %41
41: ; preds = %.lr.ph, %98
%42 = load i32, ptr %6, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds [100 x [3 x i32]], ptr %2, i64 0, i64 %43
%45 = getelementptr inbounds [3 x i32], ptr %44, i64 0, i64 1
%46 = load i32, ptr %45, align 4
%47 = load i32, ptr %6, align 4
%48 = add nsw i32 %47, 1
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [100 x [3 x i32]], ptr %2, i64 0, i64 %49
%51 = getelementptr inbounds [3 x i32], ptr %50, i64 0, i64 1
%52 = load i32, ptr %51, align 4
%53 = icmp slt i32 %46, %52
br i1 %53, label %54, label %97
54: ; preds = %41
%55 = load i32, ptr %6, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [100 x [3 x i32]], ptr %2, i64 0, i64 %56
%58 = getelementptr inbounds [3 x i32], ptr %57, i64 0, i64 1
%59 = load i32, ptr %58, align 4
store i32 %59, ptr %7, align 4
%60 = load i32, ptr %6, align 4
%61 = add nsw i32 %60, 1
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [100 x [3 x i32]], ptr %2, i64 0, i64 %62
%64 = getelementptr inbounds [3 x i32], ptr %63, i64 0, i64 1
%65 = load i32, ptr %64, align 4
%66 = load i32, ptr %6, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds [100 x [3 x i32]], ptr %2, i64 0, i64 %67
%69 = getelementptr inbounds [3 x i32], ptr %68, i64 0, i64 1
store i32 %65, ptr %69, align 4
%70 = load i32, ptr %7, align 4
%71 = load i32, ptr %6, align 4
%72 = add nsw i32 %71, 1
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [100 x [3 x i32]], ptr %2, i64 0, i64 %73
%75 = getelementptr inbounds [3 x i32], ptr %74, i64 0, i64 1
store i32 %70, ptr %75, align 4
%76 = load i32, ptr %6, align 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds [100 x [3 x i32]], ptr %2, i64 0, i64 %77
%79 = getelementptr inbounds [3 x i32], ptr %78, i64 0, i64 0
%80 = load i32, ptr %79, align 4
store i32 %80, ptr %7, align 4
%81 = load i32, ptr %6, align 4
%82 = add nsw i32 %81, 1
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds [100 x [3 x i32]], ptr %2, i64 0, i64 %83
%85 = getelementptr inbounds [3 x i32], ptr %84, i64 0, i64 0
%86 = load i32, ptr %85, align 4
%87 = load i32, ptr %6, align 4
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds [100 x [3 x i32]], ptr %2, i64 0, i64 %88
%90 = getelementptr inbounds [3 x i32], ptr %89, i64 0, i64 0
store i32 %86, ptr %90, align 4
%91 = load i32, ptr %7, align 4
%92 = load i32, ptr %6, align 4
%93 = add nsw i32 %92, 1
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds [100 x [3 x i32]], ptr %2, i64 0, i64 %94
%96 = getelementptr inbounds [3 x i32], ptr %95, i64 0, i64 0
store i32 %91, ptr %96, align 4
br label %97
97: ; preds = %54, %41
br label %98
98: ; preds = %97
%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 %8, align 4
%103 = load i32, ptr %5, align 4
%104 = sub nsw i32 %102, %103
%105 = sub nsw i32 %104, 1
%106 = icmp slt i32 %101, %105
br i1 %106, label %41, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %98
br label %107
107: ; preds = %._crit_edge, %34
br label %108
108: ; preds = %107
%109 = load i32, ptr %5, align 4
%110 = add nsw i32 %109, 1
store i32 %110, ptr %5, align 4
%111 = load i32, ptr %5, align 4
%112 = load i32, ptr %8, align 4
%113 = icmp slt i32 %111, %112
br i1 %113, label %34, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %108
br label %114
114: ; preds = %._crit_edge3, %30
store i32 0, ptr %5, align 4
%115 = load i32, ptr %5, align 4
%116 = load i32, ptr %8, align 4
%117 = icmp slt i32 %115, %116
br i1 %117, label %.lr.ph5, label %170
.lr.ph5: ; preds = %114
br label %118
118: ; preds = %.lr.ph5, %164
%119 = load i32, ptr %5, align 4
%120 = icmp eq i32 %119, 0
br i1 %120, label %121, label %126
121: ; preds = %118
%122 = load i32, ptr %5, align 4
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds [100 x [3 x i32]], ptr %2, i64 0, i64 %123
%125 = getelementptr inbounds [3 x i32], ptr %124, i64 0, i64 2
store i32 1, ptr %125, align 4
br label %163
126: ; preds = %118
%127 = load i32, ptr %5, align 4
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds [100 x [3 x i32]], ptr %2, i64 0, i64 %128
%130 = getelementptr inbounds [3 x i32], ptr %129, i64 0, i64 1
%131 = load i32, ptr %130, align 4
%132 = load i32, ptr %5, align 4
%133 = sub nsw i32 %132, 1
%134 = sext i32 %133 to i64
%135 = getelementptr inbounds [100 x [3 x i32]], ptr %2, i64 0, i64 %134
%136 = getelementptr inbounds [3 x i32], ptr %135, i64 0, i64 1
%137 = load i32, ptr %136, align 4
%138 = icmp eq i32 %131, %137
br i1 %138, label %139, label %150
139: ; preds = %126
%140 = load i32, ptr %5, align 4
%141 = sub nsw i32 %140, 1
%142 = sext i32 %141 to i64
%143 = getelementptr inbounds [100 x [3 x i32]], ptr %2, i64 0, i64 %142
%144 = getelementptr inbounds [3 x i32], ptr %143, i64 0, i64 2
%145 = load i32, ptr %144, align 4
%146 = load i32, ptr %5, align 4
%147 = sext i32 %146 to i64
%148 = getelementptr inbounds [100 x [3 x i32]], ptr %2, i64 0, i64 %147
%149 = getelementptr inbounds [3 x i32], ptr %148, i64 0, i64 2
store i32 %145, ptr %149, align 4
br label %162
150: ; preds = %126
%151 = load i32, ptr %5, align 4
%152 = sub nsw i32 %151, 1
%153 = sext i32 %152 to i64
%154 = getelementptr inbounds [100 x [3 x i32]], ptr %2, i64 0, i64 %153
%155 = getelementptr inbounds [3 x i32], ptr %154, i64 0, i64 2
%156 = load i32, ptr %155, align 4
%157 = add nsw i32 %156, 1
%158 = load i32, ptr %5, align 4
%159 = sext i32 %158 to i64
%160 = getelementptr inbounds [100 x [3 x i32]], ptr %2, i64 0, i64 %159
%161 = getelementptr inbounds [3 x i32], ptr %160, i64 0, i64 2
store i32 %157, ptr %161, align 4
br label %162
162: ; preds = %150, %139
br label %163
163: ; preds = %162, %121
br label %164
164: ; preds = %163
%165 = load i32, ptr %5, align 4
%166 = add nsw i32 %165, 1
store i32 %166, ptr %5, align 4
%167 = load i32, ptr %5, align 4
%168 = load i32, ptr %8, align 4
%169 = icmp slt i32 %167, %168
br i1 %169, label %118, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %164
br label %170
170: ; preds = %._crit_edge6, %114
%171 = call i64 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %3)
%172 = load i64, ptr @EOF, align 8
%173 = icmp ne i64 %171, %172
br i1 %173, label %.lr.ph11, label %203
.lr.ph11: ; preds = %170
br label %174
174: ; preds = %.lr.ph11, %199
store i32 0, ptr %5, align 4
%175 = load i32, ptr %5, align 4
%176 = sext i32 %175 to i64
%177 = getelementptr inbounds [100 x [3 x i32]], ptr %2, i64 0, i64 %176
%178 = load i32, ptr %177, align 4
%179 = load i32, ptr %3, align 4
%180 = icmp eq i32 %178, %179
br i1 %180, label %181, label %.lr.ph8
.lr.ph8: ; preds = %174
br label %188
._crit_edge9: ; preds = %189
br label %181
181: ; preds = %._crit_edge9, %174
%182 = load i32, ptr %5, align 4
%183 = sext i32 %182 to i64
%184 = getelementptr inbounds [100 x [3 x i32]], ptr %2, i64 0, i64 %183
%185 = getelementptr inbounds [3 x i32], ptr %184, i64 0, i64 2
%186 = load i32, ptr %185, align 4
%187 = call i32 @printf(ptr noundef @.str.2, i32 noundef %186)
br label %199
188: ; preds = %.lr.ph8, %189
br label %189
189: ; preds = %188
%190 = load i32, ptr %5, align 4
%191 = add nsw i32 %190, 1
store i32 %191, ptr %5, align 4
%192 = load i32, ptr %5, align 4
%193 = sext i32 %192 to i64
%194 = getelementptr inbounds [100 x [3 x i32]], ptr %2, i64 0, i64 %193
%195 = getelementptr inbounds [3 x i32], ptr %194, i64 0, i64 0
%196 = load i32, ptr %195, align 4
%197 = load i32, ptr %3, align 4
%198 = icmp eq i32 %196, %197
br i1 %198, label %._crit_edge9, label %188
199: ; preds = %181
%200 = call i64 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %3)
%201 = load i64, ptr @EOF, align 8
%202 = icmp ne i64 %200, %201
br i1 %202, label %174, label %._crit_edge12, !llvm.loop !10
._crit_edge12: ; preds = %199
br label %203
203: ; preds = %._crit_edge12, %170
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i64 @scanf(ptr noundef, ptr noundef, ...) #2
declare i32 @printf(ptr noundef, i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpmhcv28ws.c'
source_filename = "/tmp/tmpmhcv28ws.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @get_arg_plusone_pos(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store i32 0, ptr %8, align 4
br label %9
9: ; preds = %32, %3
%10 = load i32, ptr %8, align 4
%11 = load i32, ptr %6, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %35
13: ; preds = %9
%14 = load ptr, ptr %5, align 8
%15 = load i32, ptr %8, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds ptr, ptr %14, i64 %16
%18 = load ptr, ptr %17, align 8
%19 = load ptr, ptr %7, align 8
%20 = call i64 @strcmp(ptr noundef %18, ptr noundef %19)
%21 = icmp eq i64 %20, 0
br i1 %21, label %22, label %31
22: ; preds = %13
%23 = load i32, ptr %8, align 4
%24 = add nsw i32 %23, 1
%25 = load i32, ptr %6, align 4
%26 = icmp slt i32 %24, %25
br i1 %26, label %27, label %30
27: ; preds = %22
%28 = load i32, ptr %8, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %4, align 4
br label %36
30: ; preds = %22
store i32 0, ptr %4, align 4
br label %36
31: ; preds = %13
br label %32
32: ; preds = %31
%33 = load i32, ptr %8, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %8, align 4
br label %9, !llvm.loop !6
35: ; preds = %9
store i32 0, ptr %4, align 4
br label %36
36: ; preds = %35, %30, %27
%37 = load i32, ptr %4, align 4
ret i32 %37
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmhcv28ws.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @get_arg_plusone_pos(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store i32 0, ptr %8, align 4
%9 = load i32, ptr %8, align 4
%10 = load i32, ptr %6, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %.lr.ph, label %37
.lr.ph: ; preds = %3
br label %12
12: ; preds = %.lr.ph, %31
%13 = load ptr, ptr %5, align 8
%14 = load i32, ptr %8, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds ptr, ptr %13, i64 %15
%17 = load ptr, ptr %16, align 8
%18 = load ptr, ptr %7, align 8
%19 = call i64 @strcmp(ptr noundef %17, ptr noundef %18)
%20 = icmp eq i64 %19, 0
br i1 %20, label %21, label %30
21: ; preds = %12
%22 = load i32, ptr %8, align 4
%23 = add nsw i32 %22, 1
%24 = load i32, ptr %6, align 4
%25 = icmp slt i32 %23, %24
br i1 %25, label %26, label %29
26: ; preds = %21
%27 = load i32, ptr %8, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %4, align 4
br label %38
29: ; preds = %21
store i32 0, ptr %4, align 4
br label %38
30: ; preds = %12
br label %31
31: ; preds = %30
%32 = load i32, ptr %8, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %8, align 4
%34 = load i32, ptr %8, align 4
%35 = load i32, ptr %6, align 4
%36 = icmp slt i32 %34, %35
br i1 %36, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %31
br label %37
37: ; preds = %._crit_edge, %3
store i32 0, ptr %4, align 4
br label %38
38: ; preds = %37, %29, %26
%39 = load i32, ptr %4, align 4
ret i32 %39
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpch330x94.c'
source_filename = "/tmp/tmpch330x94.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong willreturn memory(read) uwtable
define dso_local i32 @toupper(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i64 @islower(i32 noundef %3)
%5 = icmp ne i64 %4, 0
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = load i32, ptr %2, align 4
%8 = add nsw i32 %7, -32
br label %11
9: ; preds = %1
%10 = load i32, ptr %2, align 4
br label %11
11: ; preds = %9, %6
%12 = phi i32 [ %8, %6 ], [ %10, %9 ]
ret i32 %12
}
declare i64 @islower(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong willreturn memory(read) uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmpch330x94.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong willreturn memory(read) uwtable
define dso_local i32 @toupper(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i64 @islower(i32 noundef %3)
%5 = icmp ne i64 %4, 0
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = load i32, ptr %2, align 4
%8 = add nsw i32 %7, -32
br label %11
9: ; preds = %1
%10 = load i32, ptr %2, align 4
br label %11
11: ; preds = %9, %6
%12 = phi i32 [ %8, %6 ], [ %10, %9 ]
ret i32 %12
}
declare i64 @islower(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong willreturn memory(read) uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5v35i278.c'
source_filename = "/tmp/tmp5v35i278.c"
target datalayout = "e-m:e-p270: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/tmp5v35i278.c"
target datalayout = "e-m:e-p270: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/tmp4wc_afks.c'
source_filename = "/tmp/tmp4wc_afks.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @maple_leaf(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%6 = load i32, ptr %2, align 4
%7 = mul nsw i32 2, %6
%8 = sext i32 %7 to i64
%9 = mul i64 %8, 8
%10 = trunc i64 %9 to i32
%11 = call ptr @malloc(i32 noundef %10)
store ptr %11, ptr %5, align 8
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds double, ptr %12, i64 0
store double 0.000000e+00, ptr %13, align 8
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds double, ptr %14, i64 1
store double 0.000000e+00, ptr %15, align 8
%16 = call i32 @time(ptr noundef null)
%17 = call i32 @srand(i32 noundef %16)
store i32 2, ptr %3, align 4
br label %18
18: ; preds = %198, %1
%19 = load i32, ptr %3, align 4
%20 = load i32, ptr %2, align 4
%21 = mul nsw i32 2, %20
%22 = icmp slt i32 %19, %21
br i1 %22, label %23, label %201
23: ; preds = %18
%24 = call i32 (...) @rand()
%25 = srem i32 %24, 100
store i32 %25, ptr %4, align 4
%26 = load i32, ptr %4, align 4
%27 = icmp slt i32 %26, 10
br i1 %27, label %28, label %68
28: ; preds = %23
%29 = load ptr, ptr %5, align 8
%30 = load i32, ptr %3, align 4
%31 = sub nsw i32 %30, 2
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds double, ptr %29, i64 %32
%34 = load double, ptr %33, align 8
%35 = load ptr, ptr %5, align 8
%36 = load i32, ptr %3, align 4
%37 = sub nsw i32 %36, 1
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds double, ptr %35, i64 %38
%40 = load double, ptr %39, align 8
%41 = fmul double 1.000000e-02, %40
%42 = call double @llvm.fmuladd.f64(double 1.400000e-01, double %34, double %41)
%43 = fsub double %42, 8.000000e-02
%44 = load ptr, ptr %5, align 8
%45 = load i32, ptr %3, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds double, ptr %44, i64 %46
store double %43, ptr %47, align 8
%48 = load ptr, ptr %5, align 8
%49 = load i32, ptr %3, align 4
%50 = sub nsw i32 %49, 2
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds double, ptr %48, i64 %51
%53 = load double, ptr %52, align 8
%54 = load ptr, ptr %5, align 8
%55 = load i32, ptr %3, align 4
%56 = sub nsw i32 %55, 1
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds double, ptr %54, i64 %57
%59 = load double, ptr %58, align 8
%60 = fmul double 5.100000e-01, %59
%61 = call double @llvm.fmuladd.f64(double 0.000000e+00, double %53, double %60)
%62 = fsub double %61, 1.310000e+00
%63 = load ptr, ptr %5, align 8
%64 = load i32, ptr %3, align 4
%65 = add nsw i32 %64, 1
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds double, ptr %63, i64 %66
store double %62, ptr %67, align 8
br label %197
68: ; preds = %23
%69 = load i32, ptr %4, align 4
%70 = icmp slt i32 %69, 45
br i1 %70, label %71, label %111
71: ; preds = %68
%72 = load ptr, ptr %5, align 8
%73 = load i32, ptr %3, align 4
%74 = sub nsw i32 %73, 2
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds double, ptr %72, i64 %75
%77 = load double, ptr %76, align 8
%78 = load ptr, ptr %5, align 8
%79 = load i32, ptr %3, align 4
%80 = sub nsw i32 %79, 1
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds double, ptr %78, i64 %81
%83 = load double, ptr %82, align 8
%84 = fmul double 5.200000e-01, %83
%85 = call double @llvm.fmuladd.f64(double 4.300000e-01, double %77, double %84)
%86 = fadd double %85, 1.490000e+00
%87 = load ptr, ptr %5, align 8
%88 = load i32, ptr %3, align 4
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds double, ptr %87, i64 %89
store double %86, ptr %90, align 8
%91 = load ptr, ptr %5, align 8
%92 = load i32, ptr %3, align 4
%93 = sub nsw i32 %92, 2
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds double, ptr %91, i64 %94
%96 = load double, ptr %95, align 8
%97 = load ptr, ptr %5, align 8
%98 = load i32, ptr %3, align 4
%99 = sub nsw i32 %98, 1
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds double, ptr %97, i64 %100
%102 = load double, ptr %101, align 8
%103 = fmul double 5.000000e-01, %102
%104 = call double @llvm.fmuladd.f64(double -4.500000e-01, double %96, double %103)
%105 = fsub double %104, 7.500000e-01
%106 = load ptr, ptr %5, align 8
%107 = load i32, ptr %3, align 4
%108 = add nsw i32 %107, 1
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds double, ptr %106, i64 %109
store double %105, ptr %110, align 8
br label %196
111: ; preds = %68
%112 = load i32, ptr %4, align 4
%113 = icmp slt i32 %112, 80
br i1 %113, label %114, label %155
114: ; preds = %111
%115 = load ptr, ptr %5, align 8
%116 = load i32, ptr %3, align 4
%117 = sub nsw i32 %116, 2
%118 = sext i32 %117 to i64
%119 = getelementptr inbounds double, ptr %115, i64 %118
%120 = load double, ptr %119, align 8
%121 = load ptr, ptr %5, align 8
%122 = load i32, ptr %3, align 4
%123 = sub nsw i32 %122, 1
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds double, ptr %121, i64 %124
%126 = load double, ptr %125, align 8
%127 = fmul double 4.900000e-01, %126
%128 = fneg double %127
%129 = call double @llvm.fmuladd.f64(double 4.500000e-01, double %120, double %128)
%130 = fsub double %129, 1.620000e+00
%131 = load ptr, ptr %5, align 8
%132 = load i32, ptr %3, align 4
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds double, ptr %131, i64 %133
store double %130, ptr %134, align 8
%135 = load ptr, ptr %5, align 8
%136 = load i32, ptr %3, align 4
%137 = sub nsw i32 %136, 2
%138 = sext i32 %137 to i64
%139 = getelementptr inbounds double, ptr %135, i64 %138
%140 = load double, ptr %139, align 8
%141 = load ptr, ptr %5, align 8
%142 = load i32, ptr %3, align 4
%143 = sub nsw i32 %142, 1
%144 = sext i32 %143 to i64
%145 = getelementptr inbounds double, ptr %141, i64 %144
%146 = load double, ptr %145, align 8
%147 = fmul double 4.700000e-01, %146
%148 = call double @llvm.fmuladd.f64(double 4.700000e-01, double %140, double %147)
%149 = fsub double %148, 0x3FE7AE147AE147AE
%150 = load ptr, ptr %5, align 8
%151 = load i32, ptr %3, align 4
%152 = add nsw i32 %151, 1
%153 = sext i32 %152 to i64
%154 = getelementptr inbounds double, ptr %150, i64 %153
store double %149, ptr %154, align 8
br label %195
155: ; preds = %111
%156 = load ptr, ptr %5, align 8
%157 = load i32, ptr %3, align 4
%158 = sub nsw i32 %157, 2
%159 = sext i32 %158 to i64
%160 = getelementptr inbounds double, ptr %156, i64 %159
%161 = load double, ptr %160, align 8
%162 = load ptr, ptr %5, align 8
%163 = load i32, ptr %3, align 4
%164 = sub nsw i32 %163, 1
%165 = sext i32 %164 to i64
%166 = getelementptr inbounds double, ptr %162, i64 %165
%167 = load double, ptr %166, align 8
%168 = fmul double 0.000000e+00, %167
%169 = call double @llvm.fmuladd.f64(double 4.900000e-01, double %161, double %168)
%170 = fadd double %169, 2.000000e-02
%171 = load ptr, ptr %5, align 8
%172 = load i32, ptr %3, align 4
%173 = sext i32 %172 to i64
%174 = getelementptr inbounds double, ptr %171, i64 %173
store double %170, ptr %174, align 8
%175 = load ptr, ptr %5, align 8
%176 = load i32, ptr %3, align 4
%177 = sub nsw i32 %176, 2
%178 = sext i32 %177 to i64
%179 = getelementptr inbounds double, ptr %175, i64 %178
%180 = load double, ptr %179, align 8
%181 = load ptr, ptr %5, align 8
%182 = load i32, ptr %3, align 4
%183 = sub nsw i32 %182, 1
%184 = sext i32 %183 to i64
%185 = getelementptr inbounds double, ptr %181, i64 %184
%186 = load double, ptr %185, align 8
%187 = fmul double 5.100000e-01, %186
%188 = call double @llvm.fmuladd.f64(double 0.000000e+00, double %180, double %187)
%189 = fadd double %188, 1.620000e+00
%190 = load ptr, ptr %5, align 8
%191 = load i32, ptr %3, align 4
%192 = add nsw i32 %191, 1
%193 = sext i32 %192 to i64
%194 = getelementptr inbounds double, ptr %190, i64 %193
store double %189, ptr %194, align 8
br label %195
195: ; preds = %155, %114
br label %196
196: ; preds = %195, %71
br label %197
197: ; preds = %196, %28
br label %198
198: ; preds = %197
%199 = load i32, ptr %3, align 4
%200 = add nsw i32 %199, 2
store i32 %200, ptr %3, align 4
br label %18, !llvm.loop !6
201: ; preds = %18
%202 = load ptr, ptr %5, align 8
ret ptr %202
}
declare ptr @malloc(i32 noundef) #1
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @rand(...) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4wc_afks.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @maple_leaf(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%6 = load i32, ptr %2, align 4
%7 = mul nsw i32 2, %6
%8 = sext i32 %7 to i64
%9 = mul i64 %8, 8
%10 = trunc i64 %9 to i32
%11 = call ptr @malloc(i32 noundef %10)
store ptr %11, ptr %5, align 8
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds double, ptr %12, i64 0
store double 0.000000e+00, ptr %13, align 8
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds double, ptr %14, i64 1
store double 0.000000e+00, ptr %15, align 8
%16 = call i32 @time(ptr noundef null)
%17 = call i32 @srand(i32 noundef %16)
store i32 2, ptr %3, align 4
%18 = load i32, ptr %3, align 4
%19 = load i32, ptr %2, align 4
%20 = mul nsw i32 2, %19
%21 = icmp slt i32 %18, %20
br i1 %21, label %.lr.ph, label %204
.lr.ph: ; preds = %1
br label %22
22: ; preds = %.lr.ph, %197
%23 = call i32 (...) @rand()
%24 = srem i32 %23, 100
store i32 %24, ptr %4, align 4
%25 = load i32, ptr %4, align 4
%26 = icmp slt i32 %25, 10
br i1 %26, label %27, label %67
27: ; preds = %22
%28 = load ptr, ptr %5, align 8
%29 = load i32, ptr %3, align 4
%30 = sub nsw i32 %29, 2
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds double, ptr %28, i64 %31
%33 = load double, ptr %32, align 8
%34 = load ptr, ptr %5, align 8
%35 = load i32, ptr %3, align 4
%36 = sub nsw i32 %35, 1
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds double, ptr %34, i64 %37
%39 = load double, ptr %38, align 8
%40 = fmul double 1.000000e-02, %39
%41 = call double @llvm.fmuladd.f64(double 1.400000e-01, double %33, double %40)
%42 = fsub double %41, 8.000000e-02
%43 = load ptr, ptr %5, align 8
%44 = load i32, ptr %3, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds double, ptr %43, i64 %45
store double %42, ptr %46, align 8
%47 = load ptr, ptr %5, align 8
%48 = load i32, ptr %3, align 4
%49 = sub nsw i32 %48, 2
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds double, ptr %47, i64 %50
%52 = load double, ptr %51, align 8
%53 = load ptr, ptr %5, align 8
%54 = load i32, ptr %3, align 4
%55 = sub nsw i32 %54, 1
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds double, ptr %53, i64 %56
%58 = load double, ptr %57, align 8
%59 = fmul double 5.100000e-01, %58
%60 = call double @llvm.fmuladd.f64(double 0.000000e+00, double %52, double %59)
%61 = fsub double %60, 1.310000e+00
%62 = load ptr, ptr %5, align 8
%63 = load i32, ptr %3, align 4
%64 = add nsw i32 %63, 1
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds double, ptr %62, i64 %65
store double %61, ptr %66, align 8
br label %196
67: ; preds = %22
%68 = load i32, ptr %4, align 4
%69 = icmp slt i32 %68, 45
br i1 %69, label %70, label %110
70: ; preds = %67
%71 = load ptr, ptr %5, align 8
%72 = load i32, ptr %3, align 4
%73 = sub nsw i32 %72, 2
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds double, ptr %71, i64 %74
%76 = load double, ptr %75, align 8
%77 = load ptr, ptr %5, align 8
%78 = load i32, ptr %3, align 4
%79 = sub nsw i32 %78, 1
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds double, ptr %77, i64 %80
%82 = load double, ptr %81, align 8
%83 = fmul double 5.200000e-01, %82
%84 = call double @llvm.fmuladd.f64(double 4.300000e-01, double %76, double %83)
%85 = fadd double %84, 1.490000e+00
%86 = load ptr, ptr %5, align 8
%87 = load i32, ptr %3, align 4
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds double, ptr %86, i64 %88
store double %85, ptr %89, align 8
%90 = load ptr, ptr %5, align 8
%91 = load i32, ptr %3, align 4
%92 = sub nsw i32 %91, 2
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds double, ptr %90, i64 %93
%95 = load double, ptr %94, align 8
%96 = load ptr, ptr %5, align 8
%97 = load i32, ptr %3, align 4
%98 = sub nsw i32 %97, 1
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds double, ptr %96, i64 %99
%101 = load double, ptr %100, align 8
%102 = fmul double 5.000000e-01, %101
%103 = call double @llvm.fmuladd.f64(double -4.500000e-01, double %95, double %102)
%104 = fsub double %103, 7.500000e-01
%105 = load ptr, ptr %5, align 8
%106 = load i32, ptr %3, align 4
%107 = add nsw i32 %106, 1
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds double, ptr %105, i64 %108
store double %104, ptr %109, align 8
br label %195
110: ; preds = %67
%111 = load i32, ptr %4, align 4
%112 = icmp slt i32 %111, 80
br i1 %112, label %113, label %154
113: ; preds = %110
%114 = load ptr, ptr %5, align 8
%115 = load i32, ptr %3, align 4
%116 = sub nsw i32 %115, 2
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds double, ptr %114, i64 %117
%119 = load double, ptr %118, align 8
%120 = load ptr, ptr %5, align 8
%121 = load i32, ptr %3, align 4
%122 = sub nsw i32 %121, 1
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds double, ptr %120, i64 %123
%125 = load double, ptr %124, align 8
%126 = fmul double 4.900000e-01, %125
%127 = fneg double %126
%128 = call double @llvm.fmuladd.f64(double 4.500000e-01, double %119, double %127)
%129 = fsub double %128, 1.620000e+00
%130 = load ptr, ptr %5, align 8
%131 = load i32, ptr %3, align 4
%132 = sext i32 %131 to i64
%133 = getelementptr inbounds double, ptr %130, i64 %132
store double %129, ptr %133, align 8
%134 = load ptr, ptr %5, align 8
%135 = load i32, ptr %3, align 4
%136 = sub nsw i32 %135, 2
%137 = sext i32 %136 to i64
%138 = getelementptr inbounds double, ptr %134, i64 %137
%139 = load double, ptr %138, align 8
%140 = load ptr, ptr %5, align 8
%141 = load i32, ptr %3, align 4
%142 = sub nsw i32 %141, 1
%143 = sext i32 %142 to i64
%144 = getelementptr inbounds double, ptr %140, i64 %143
%145 = load double, ptr %144, align 8
%146 = fmul double 4.700000e-01, %145
%147 = call double @llvm.fmuladd.f64(double 4.700000e-01, double %139, double %146)
%148 = fsub double %147, 0x3FE7AE147AE147AE
%149 = load ptr, ptr %5, align 8
%150 = load i32, ptr %3, align 4
%151 = add nsw i32 %150, 1
%152 = sext i32 %151 to i64
%153 = getelementptr inbounds double, ptr %149, i64 %152
store double %148, ptr %153, align 8
br label %194
154: ; preds = %110
%155 = load ptr, ptr %5, align 8
%156 = load i32, ptr %3, align 4
%157 = sub nsw i32 %156, 2
%158 = sext i32 %157 to i64
%159 = getelementptr inbounds double, ptr %155, i64 %158
%160 = load double, ptr %159, align 8
%161 = load ptr, ptr %5, align 8
%162 = load i32, ptr %3, align 4
%163 = sub nsw i32 %162, 1
%164 = sext i32 %163 to i64
%165 = getelementptr inbounds double, ptr %161, i64 %164
%166 = load double, ptr %165, align 8
%167 = fmul double 0.000000e+00, %166
%168 = call double @llvm.fmuladd.f64(double 4.900000e-01, double %160, double %167)
%169 = fadd double %168, 2.000000e-02
%170 = load ptr, ptr %5, align 8
%171 = load i32, ptr %3, align 4
%172 = sext i32 %171 to i64
%173 = getelementptr inbounds double, ptr %170, i64 %172
store double %169, ptr %173, align 8
%174 = load ptr, ptr %5, align 8
%175 = load i32, ptr %3, align 4
%176 = sub nsw i32 %175, 2
%177 = sext i32 %176 to i64
%178 = getelementptr inbounds double, ptr %174, i64 %177
%179 = load double, ptr %178, align 8
%180 = load ptr, ptr %5, align 8
%181 = load i32, ptr %3, align 4
%182 = sub nsw i32 %181, 1
%183 = sext i32 %182 to i64
%184 = getelementptr inbounds double, ptr %180, i64 %183
%185 = load double, ptr %184, align 8
%186 = fmul double 5.100000e-01, %185
%187 = call double @llvm.fmuladd.f64(double 0.000000e+00, double %179, double %186)
%188 = fadd double %187, 1.620000e+00
%189 = load ptr, ptr %5, align 8
%190 = load i32, ptr %3, align 4
%191 = add nsw i32 %190, 1
%192 = sext i32 %191 to i64
%193 = getelementptr inbounds double, ptr %189, i64 %192
store double %188, ptr %193, align 8
br label %194
194: ; preds = %154, %113
br label %195
195: ; preds = %194, %70
br label %196
196: ; preds = %195, %27
br label %197
197: ; preds = %196
%198 = load i32, ptr %3, align 4
%199 = add nsw i32 %198, 2
store i32 %199, ptr %3, align 4
%200 = load i32, ptr %3, align 4
%201 = load i32, ptr %2, align 4
%202 = mul nsw i32 2, %201
%203 = icmp slt i32 %200, %202
br i1 %203, label %22, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %197
br label %204
204: ; preds = %._crit_edge, %1
%205 = load ptr, ptr %5, align 8
ret ptr %205
}
declare ptr @malloc(i32 noundef) #1
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @rand(...) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.