llvm-ir stringlengths 479 303k | llvm-optimized-ir stringlengths 468 303k |
|---|---|
; ModuleID = '/tmp/tmppn7az496.c'
source_filename = "/tmp/tmppn7az496.c"
target datalayout = "e-m:e-p270: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/tmppn7az496.c"
target datalayout = "e-m:e-p270: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/tmpidco0798.c'
source_filename = "/tmp/tmpidco0798.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sim_isspace(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 slt i32 %3, 0
br i1 %4, label %8, label %5
5: ; preds = %1
%6 = load i32, ptr %2, align 4
%7 = icmp sge i32 %6, 128
br i1 %7, label %8, label %9
8: ; preds = %5, %1
br label %12
9: ; preds = %5
%10 = load i32, ptr %2, align 4
%11 = call i32 @isspace(i32 noundef %10) #2
br label %12
12: ; preds = %9, %8
%13 = phi i32 [ 0, %8 ], [ %11, %9 ]
ret i32 %13
}
; Function Attrs: nounwind willreturn memory(read)
declare i32 @isspace(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind willreturn memory(read) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind willreturn memory(read) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpidco0798.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sim_isspace(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 slt i32 %3, 0
br i1 %4, label %8, label %5
5: ; preds = %1
%6 = load i32, ptr %2, align 4
%7 = icmp sge i32 %6, 128
br i1 %7, label %8, label %9
8: ; preds = %5, %1
br label %12
9: ; preds = %5
%10 = load i32, ptr %2, align 4
%11 = call i32 @isspace(i32 noundef %10) #2
br label %12
12: ; preds = %9, %8
%13 = phi i32 [ 0, %8 ], [ %11, %9 ]
ret i32 %13
}
; Function Attrs: nounwind willreturn memory(read)
declare i32 @isspace(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind willreturn memory(read) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind willreturn memory(read) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgpfbj9_h.c'
source_filename = "/tmp/tmpgpfbj9_h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.termios = type { i32 }
@.str = private unnamed_addr constant [19 x i8] c"tcgetattr() failed\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@ECHO = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [12 x i8] c"echo is on\0A\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"echo is off\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 %struct.termios, align 4
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = call i32 @tcgetattr(i32 noundef 0, ptr noundef %6)
store i32 %8, ptr %7, align 4
%9 = load i32, ptr %7, align 4
%10 = icmp eq i32 %9, -1
br i1 %10, label %11, label %15
11: ; preds = %2
%12 = call i32 @perror(ptr noundef @.str)
%13 = load i32, ptr @EXIT_FAILURE, align 4
%14 = call i32 @exit(i32 noundef %13) #3
unreachable
15: ; preds = %2
%16 = getelementptr inbounds %struct.termios, ptr %6, i32 0, i32 0
%17 = load i32, ptr %16, align 4
%18 = load i32, ptr @ECHO, align 4
%19 = and i32 %17, %18
%20 = icmp ne i32 %19, 0
br i1 %20, label %21, label %23
21: ; preds = %15
%22 = call i32 @printf(ptr noundef @.str.1)
br label %25
23: ; preds = %15
%24 = call i32 @printf(ptr noundef @.str.2)
br label %25
25: ; preds = %23, %21
ret i32 0
}
declare i32 @tcgetattr(i32 noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgpfbj9_h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.termios = type { i32 }
@.str = private unnamed_addr constant [19 x i8] c"tcgetattr() failed\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@ECHO = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [12 x i8] c"echo is on\0A\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"echo is off\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 %struct.termios, align 4
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = call i32 @tcgetattr(i32 noundef 0, ptr noundef %6)
store i32 %8, ptr %7, align 4
%9 = load i32, ptr %7, align 4
%10 = icmp eq i32 %9, -1
br i1 %10, label %11, label %15
11: ; preds = %2
%12 = call i32 @perror(ptr noundef @.str)
%13 = load i32, ptr @EXIT_FAILURE, align 4
%14 = call i32 @exit(i32 noundef %13) #3
unreachable
15: ; preds = %2
%16 = getelementptr inbounds %struct.termios, ptr %6, i32 0, i32 0
%17 = load i32, ptr %16, align 4
%18 = load i32, ptr @ECHO, align 4
%19 = and i32 %17, %18
%20 = icmp ne i32 %19, 0
br i1 %20, label %21, label %23
21: ; preds = %15
%22 = call i32 @printf(ptr noundef @.str.1)
br label %25
23: ; preds = %15
%24 = call i32 @printf(ptr noundef @.str.2)
br label %25
25: ; preds = %23, %21
ret i32 0
}
declare i32 @tcgetattr(i32 noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjk7gucbc.c'
source_filename = "/tmp/tmpjk7gucbc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, i32, i32 }
@.str = private unnamed_addr constant [29 x i8] c"usage: ./client <server_ip>\0A\00", align 1
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [18 x i8] c"socket error: %s\0A\00", align 1
@errno = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [31 x i8] c"inet_pton error: %s, ip is %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [19 x i8] c"connect error: %s\0A\00", align 1
@.str.4 = private unnamed_addr constant [81 x i8] c"\0Ainput a character:\0A\09alphabet - convert between upper and lower\0A\09digit 0 - quit\0A\00", align 1
@.str.5 = private unnamed_addr constant [18 x i8] c"\0A\09your characer: \00", align 1
@.str.6 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.7 = private unnamed_addr constant [2 x i8] c"0\00", align 1
@.str.8 = private unnamed_addr constant [6 x i8] c"quit\0A\00", align 1
@.str.9 = private unnamed_addr constant [16 x i8] c"send error: %s\0A\00", align 1
@.str.10 = private unnamed_addr constant [16 x i8] c"recv error: %s\0A\00", align 1
@.str.11 = private unnamed_addr constant [20 x i8] c"\09from [%c] to [%c]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca %struct.sockaddr_in, align 4
%8 = alloca i8, align 1
%9 = alloca i8, align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = load i32, ptr %4, align 4
%11 = icmp ne i32 %10, 2
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 -1, ptr %3, align 4
br label %90
14: ; preds = %2
%15 = load i32, ptr @AF_INET, align 4
%16 = load i32, ptr @SOCK_STREAM, align 4
%17 = call i32 @socket(i32 noundef %15, i32 noundef %16, i32 noundef 0)
store i32 %17, ptr %6, align 4
%18 = icmp slt i32 %17, 0
br i1 %18, label %19, label %23
19: ; preds = %14
%20 = load i32, ptr @errno, align 4
%21 = call ptr @strerror(i32 noundef %20)
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %21)
store i32 -1, ptr %3, align 4
br label %90
23: ; preds = %14
%24 = call i32 @memset(ptr noundef %7, i32 noundef 0, i32 noundef 12)
%25 = load i32, ptr @AF_INET, align 4
%26 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 2
store i32 %25, ptr %26, align 4
%27 = call i32 @htons(i32 noundef 8000)
%28 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 1
store i32 %27, ptr %28, align 4
%29 = load i32, ptr @AF_INET, align 4
%30 = load ptr, ptr %5, align 8
%31 = getelementptr inbounds ptr, ptr %30, i64 1
%32 = load ptr, ptr %31, align 8
%33 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 0
%34 = call i64 @inet_pton(i32 noundef %29, ptr noundef %32, ptr noundef %33)
%35 = icmp sle i64 %34, 0
br i1 %35, label %36, label %45
36: ; preds = %23
%37 = load i32, ptr @errno, align 4
%38 = call ptr @strerror(i32 noundef %37)
%39 = load ptr, ptr %5, align 8
%40 = getelementptr inbounds ptr, ptr %39, i64 1
%41 = load ptr, ptr %40, align 8
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %38, ptr noundef %41)
%43 = load i32, ptr %6, align 4
%44 = call i32 @close(i32 noundef %43)
store i32 -1, ptr %3, align 4
br label %90
45: ; preds = %23
%46 = load i32, ptr %6, align 4
%47 = call i32 @connect(i32 noundef %46, ptr noundef %7, i32 noundef 12)
%48 = icmp eq i32 %47, -1
br i1 %48, label %49, label %55
49: ; preds = %45
%50 = load i32, ptr @errno, align 4
%51 = call ptr @strerror(i32 noundef %50)
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %51)
%53 = load i32, ptr %6, align 4
%54 = call i32 @close(i32 noundef %53)
store i32 -1, ptr %3, align 4
br label %90
55: ; preds = %45
br label %56
56: ; preds = %55, %81
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%59 = call i32 @scanf(ptr noundef @.str.6, ptr noundef %8)
%60 = call i32 (...) @getchar()
%61 = call i64 @strncmp(ptr noundef %8, ptr noundef @.str.7, i32 noundef 1)
%62 = icmp eq i64 %61, 0
br i1 %62, label %63, label %65
63: ; preds = %56
%64 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
br label %87
65: ; preds = %56
%66 = load i32, ptr %6, align 4
%67 = call i32 @send(i32 noundef %66, ptr noundef %8, i32 noundef 1, i32 noundef 0)
%68 = icmp eq i32 %67, -1
br i1 %68, label %69, label %73
69: ; preds = %65
%70 = load i32, ptr @errno, align 4
%71 = call ptr @strerror(i32 noundef %70)
%72 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef %71)
br label %87
73: ; preds = %65
%74 = load i32, ptr %6, align 4
%75 = call i32 @recv(i32 noundef %74, ptr noundef %9, i32 noundef 1, i32 noundef 0)
%76 = icmp eq i32 %75, -1
br i1 %76, label %77, label %81
77: ; preds = %73
%78 = load i32, ptr @errno, align 4
%79 = call ptr @strerror(i32 noundef %78)
%80 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, ptr noundef %79)
br label %87
81: ; preds = %73
%82 = load i8, ptr %8, align 1
%83 = sext i8 %82 to i32
%84 = load i8, ptr %9, align 1
%85 = sext i8 %84 to i32
%86 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef %83, i32 noundef %85)
br label %56
87: ; preds = %77, %69, %63
%88 = load i32, ptr %6, align 4
%89 = call i32 @close(i32 noundef %88)
store i32 0, ptr %3, align 4
br label %90
90: ; preds = %87, %49, %36, %19, %12
%91 = load i32, ptr %3, align 4
ret i32 %91
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare ptr @strerror(i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i64 @inet_pton(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @getchar(...) #1
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @send(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @recv(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjk7gucbc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, i32, i32 }
@.str = private unnamed_addr constant [29 x i8] c"usage: ./client <server_ip>\0A\00", align 1
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [18 x i8] c"socket error: %s\0A\00", align 1
@errno = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [31 x i8] c"inet_pton error: %s, ip is %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [19 x i8] c"connect error: %s\0A\00", align 1
@.str.4 = private unnamed_addr constant [81 x i8] c"\0Ainput a character:\0A\09alphabet - convert between upper and lower\0A\09digit 0 - quit\0A\00", align 1
@.str.5 = private unnamed_addr constant [18 x i8] c"\0A\09your characer: \00", align 1
@.str.6 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.7 = private unnamed_addr constant [2 x i8] c"0\00", align 1
@.str.8 = private unnamed_addr constant [6 x i8] c"quit\0A\00", align 1
@.str.9 = private unnamed_addr constant [16 x i8] c"send error: %s\0A\00", align 1
@.str.10 = private unnamed_addr constant [16 x i8] c"recv error: %s\0A\00", align 1
@.str.11 = private unnamed_addr constant [20 x i8] c"\09from [%c] to [%c]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca %struct.sockaddr_in, align 4
%8 = alloca i8, align 1
%9 = alloca i8, align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = load i32, ptr %4, align 4
%11 = icmp ne i32 %10, 2
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 -1, ptr %3, align 4
br label %95
14: ; preds = %2
%15 = load i32, ptr @AF_INET, align 4
%16 = load i32, ptr @SOCK_STREAM, align 4
%17 = call i32 @socket(i32 noundef %15, i32 noundef %16, i32 noundef 0)
store i32 %17, ptr %6, align 4
%18 = icmp slt i32 %17, 0
br i1 %18, label %19, label %23
19: ; preds = %14
%20 = load i32, ptr @errno, align 4
%21 = call ptr @strerror(i32 noundef %20)
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %21)
store i32 -1, ptr %3, align 4
br label %95
23: ; preds = %14
%24 = call i32 @memset(ptr noundef %7, i32 noundef 0, i32 noundef 12)
%25 = load i32, ptr @AF_INET, align 4
%26 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 2
store i32 %25, ptr %26, align 4
%27 = call i32 @htons(i32 noundef 8000)
%28 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 1
store i32 %27, ptr %28, align 4
%29 = load i32, ptr @AF_INET, align 4
%30 = load ptr, ptr %5, align 8
%31 = getelementptr inbounds ptr, ptr %30, i64 1
%32 = load ptr, ptr %31, align 8
%33 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 0
%34 = call i64 @inet_pton(i32 noundef %29, ptr noundef %32, ptr noundef %33)
%35 = icmp sle i64 %34, 0
br i1 %35, label %36, label %45
36: ; preds = %23
%37 = load i32, ptr @errno, align 4
%38 = call ptr @strerror(i32 noundef %37)
%39 = load ptr, ptr %5, align 8
%40 = getelementptr inbounds ptr, ptr %39, i64 1
%41 = load ptr, ptr %40, align 8
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %38, ptr noundef %41)
%43 = load i32, ptr %6, align 4
%44 = call i32 @close(i32 noundef %43)
store i32 -1, ptr %3, align 4
br label %95
45: ; preds = %23
%46 = load i32, ptr %6, align 4
%47 = call i32 @connect(i32 noundef %46, ptr noundef %7, i32 noundef 12)
%48 = icmp eq i32 %47, -1
br i1 %48, label %49, label %55
49: ; preds = %45
%50 = load i32, ptr @errno, align 4
%51 = call ptr @strerror(i32 noundef %50)
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %51)
%53 = load i32, ptr %6, align 4
%54 = call i32 @close(i32 noundef %53)
store i32 -1, ptr %3, align 4
br label %95
55: ; preds = %45
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%58 = call i32 @scanf(ptr noundef @.str.6, ptr noundef %8)
%59 = call i32 (...) @getchar()
%60 = call i64 @strncmp(ptr noundef %8, ptr noundef @.str.7, i32 noundef 1)
%61 = icmp eq i64 %60, 0
br i1 %61, label %62, label %.lr.ph
.lr.ph: ; preds = %55
br label %64
._crit_edge: ; preds = %80
br label %62
62: ; preds = %._crit_edge, %55
%63 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
br label %92
64: ; preds = %.lr.ph, %80
%65 = load i32, ptr %6, align 4
%66 = call i32 @send(i32 noundef %65, ptr noundef %8, i32 noundef 1, i32 noundef 0)
%67 = icmp eq i32 %66, -1
br i1 %67, label %68, label %72
68: ; preds = %64
%69 = load i32, ptr @errno, align 4
%70 = call ptr @strerror(i32 noundef %69)
%71 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef %70)
br label %92
72: ; preds = %64
%73 = load i32, ptr %6, align 4
%74 = call i32 @recv(i32 noundef %73, ptr noundef %9, i32 noundef 1, i32 noundef 0)
%75 = icmp eq i32 %74, -1
br i1 %75, label %76, label %80
76: ; preds = %72
%77 = load i32, ptr @errno, align 4
%78 = call ptr @strerror(i32 noundef %77)
%79 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, ptr noundef %78)
br label %92
80: ; preds = %72
%81 = load i8, ptr %8, align 1
%82 = sext i8 %81 to i32
%83 = load i8, ptr %9, align 1
%84 = sext i8 %83 to i32
%85 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef %82, i32 noundef %84)
%86 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%87 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%88 = call i32 @scanf(ptr noundef @.str.6, ptr noundef %8)
%89 = call i32 (...) @getchar()
%90 = call i64 @strncmp(ptr noundef %8, ptr noundef @.str.7, i32 noundef 1)
%91 = icmp eq i64 %90, 0
br i1 %91, label %._crit_edge, label %64
92: ; preds = %76, %68, %62
%93 = load i32, ptr %6, align 4
%94 = call i32 @close(i32 noundef %93)
store i32 0, ptr %3, align 4
br label %95
95: ; preds = %92, %49, %36, %19, %12
%96 = load i32, ptr %3, align 4
ret i32 %96
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare ptr @strerror(i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i64 @inet_pton(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @getchar(...) #1
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @send(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @recv(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpg5sn2u83.c'
source_filename = "/tmp/tmpg5sn2u83.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s/%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @buildPath(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%6 = load ptr, ptr %4, align 8
%7 = load ptr, ptr %4, align 8
%8 = call i32 @strlen(ptr noundef %7)
%9 = sub nsw i32 %8, 1
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds i8, ptr %6, i64 %10
%12 = load i8, ptr %11, align 1
%13 = sext i8 %12 to i32
%14 = icmp eq i32 %13, 47
br i1 %14, label %15, label %19
15: ; preds = %2
%16 = load ptr, ptr %4, align 8
%17 = load ptr, ptr %5, align 8
%18 = call ptr @astrcat(ptr noundef %16, ptr noundef %17)
store ptr %18, ptr %3, align 8
br label %23
19: ; preds = %2
%20 = load ptr, ptr %4, align 8
%21 = load ptr, ptr %5, align 8
%22 = call ptr @asprintf(ptr noundef @.str, ptr noundef %20, ptr noundef %21)
store ptr %22, ptr %3, align 8
br label %23
23: ; preds = %19, %15
%24 = load ptr, ptr %3, align 8
ret ptr %24
}
declare i32 @strlen(ptr noundef) #1
declare ptr @astrcat(ptr noundef, ptr noundef) #1
declare ptr @asprintf(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/tmpg5sn2u83.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s/%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @buildPath(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%6 = load ptr, ptr %4, align 8
%7 = load ptr, ptr %4, align 8
%8 = call i32 @strlen(ptr noundef %7)
%9 = sub nsw i32 %8, 1
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds i8, ptr %6, i64 %10
%12 = load i8, ptr %11, align 1
%13 = sext i8 %12 to i32
%14 = icmp eq i32 %13, 47
br i1 %14, label %15, label %19
15: ; preds = %2
%16 = load ptr, ptr %4, align 8
%17 = load ptr, ptr %5, align 8
%18 = call ptr @astrcat(ptr noundef %16, ptr noundef %17)
store ptr %18, ptr %3, align 8
br label %23
19: ; preds = %2
%20 = load ptr, ptr %4, align 8
%21 = load ptr, ptr %5, align 8
%22 = call ptr @asprintf(ptr noundef @.str, ptr noundef %20, ptr noundef %21)
store ptr %22, ptr %3, align 8
br label %23
23: ; preds = %19, %15
%24 = load ptr, ptr %3, align 8
ret ptr %24
}
declare i32 @strlen(ptr noundef) #1
declare ptr @astrcat(ptr noundef, ptr noundef) #1
declare ptr @asprintf(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/tmp76lia_dv.c'
source_filename = "/tmp/tmp76lia_dv.c"
target datalayout = "e-m:e-p270: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/tmp76lia_dv.c"
target datalayout = "e-m:e-p270: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/tmp74yk5mhu.c'
source_filename = "/tmp/tmp74yk5mhu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENOENT = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @mknod(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 i32, ptr @ENOENT, align 4
store i32 %7, ptr @errno, align 4
ret i32 -1
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp74yk5mhu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENOENT = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @mknod(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 i32, ptr @ENOENT, align 4
store i32 %7, ptr @errno, align 4
ret i32 -1
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqs4gwenx.c'
source_filename = "/tmp/tmpqs4gwenx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @USBEndpointDataGet(i32 noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store i32 %0, ptr %6, align 4
store i32 %1, ptr %7, align 4
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
%13 = load i32, ptr %6, align 4
%14 = icmp eq i32 %13, 1074069504
%15 = zext i1 %14 to i32
%16 = call i32 @ASSERT(i32 noundef %15)
%17 = load i32, ptr %7, align 4
%18 = icmp eq i32 %17, 0
br i1 %18, label %40, label %19
19: ; preds = %4
%20 = load i32, ptr %7, align 4
%21 = icmp eq i32 %20, 16
br i1 %21, label %40, label %22
22: ; preds = %19
%23 = load i32, ptr %7, align 4
%24 = icmp eq i32 %23, 32
br i1 %24, label %40, label %25
25: ; preds = %22
%26 = load i32, ptr %7, align 4
%27 = icmp eq i32 %26, 48
br i1 %27, label %40, label %28
28: ; preds = %25
%29 = load i32, ptr %7, align 4
%30 = icmp eq i32 %29, 64
br i1 %30, label %40, label %31
31: ; preds = %28
%32 = load i32, ptr %7, align 4
%33 = icmp eq i32 %32, 80
br i1 %33, label %40, label %34
34: ; preds = %31
%35 = load i32, ptr %7, align 4
%36 = icmp eq i32 %35, 96
br i1 %36, label %40, label %37
37: ; preds = %34
%38 = load i32, ptr %7, align 4
%39 = icmp eq i32 %38, 112
br label %40
40: ; preds = %37, %34, %31, %28, %25, %22, %19, %4
%41 = phi i1 [ true, %34 ], [ true, %31 ], [ true, %28 ], [ true, %25 ], [ true, %22 ], [ true, %19 ], [ true, %4 ], [ %39, %37 ]
%42 = zext i1 %41 to i32
%43 = call i32 @ASSERT(i32 noundef %42)
%44 = load i32, ptr %7, align 4
%45 = icmp eq i32 %44, 0
br i1 %45, label %46, label %47
46: ; preds = %40
store i32 258, ptr %10, align 4
br label %51
47: ; preds = %40
%48 = load i32, ptr %7, align 4
%49 = sub nsw i32 %48, 16
%50 = add nsw i32 278, %49
store i32 %50, ptr %10, align 4
br label %51
51: ; preds = %47, %46
%52 = load i32, ptr %6, align 4
%53 = load i32, ptr %10, align 4
%54 = add nsw i32 %52, %53
%55 = sext i32 %54 to i64
%56 = inttoptr i64 %55 to ptr
%57 = load volatile i32, ptr %56, align 4
%58 = and i32 %57, 1
%59 = icmp eq i32 %58, 0
br i1 %59, label %60, label %62
60: ; preds = %51
%61 = load ptr, ptr %9, align 8
store i32 0, ptr %61, align 4
store i32 -1, ptr %5, align 4
br label %102
62: ; preds = %51
%63 = load i32, ptr %6, align 4
%64 = add nsw i32 %63, 264
%65 = load i32, ptr %7, align 4
%66 = add nsw i32 %64, %65
%67 = sext i32 %66 to i64
%68 = inttoptr i64 %67 to ptr
%69 = load volatile i32, ptr %68, align 4
store i32 %69, ptr %11, align 4
%70 = load i32, ptr %11, align 4
%71 = load ptr, ptr %9, align 8
%72 = load i32, ptr %71, align 4
%73 = icmp slt i32 %70, %72
br i1 %73, label %74, label %76
74: ; preds = %62
%75 = load i32, ptr %11, align 4
br label %79
76: ; preds = %62
%77 = load ptr, ptr %9, align 8
%78 = load i32, ptr %77, align 4
br label %79
79: ; preds = %76, %74
%80 = phi i32 [ %75, %74 ], [ %78, %76 ]
store i32 %80, ptr %11, align 4
%81 = load i32, ptr %11, align 4
%82 = load ptr, ptr %9, align 8
store i32 %81, ptr %82, align 4
%83 = load i32, ptr %6, align 4
%84 = add nsw i32 %83, 32
%85 = load i32, ptr %7, align 4
%86 = ashr i32 %85, 2
%87 = add nsw i32 %84, %86
store i32 %87, ptr %12, align 4
br label %88
88: ; preds = %98, %79
%89 = load i32, ptr %11, align 4
%90 = icmp sgt i32 %89, 0
br i1 %90, label %91, label %101
91: ; preds = %88
%92 = load i32, ptr %12, align 4
%93 = sext i32 %92 to i64
%94 = inttoptr i64 %93 to ptr
%95 = load volatile i32, ptr %94, align 4
%96 = load ptr, ptr %8, align 8
%97 = getelementptr inbounds i32, ptr %96, i32 1
store ptr %97, ptr %8, align 8
store i32 %95, ptr %96, align 4
br label %98
98: ; preds = %91
%99 = load i32, ptr %11, align 4
%100 = add nsw i32 %99, -1
store i32 %100, ptr %11, align 4
br label %88, !llvm.loop !6
101: ; preds = %88
store i32 0, ptr %5, align 4
br label %102
102: ; preds = %101, %60
%103 = load i32, ptr %5, align 4
ret i32 %103
}
declare i32 @ASSERT(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqs4gwenx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @USBEndpointDataGet(i32 noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store i32 %0, ptr %6, align 4
store i32 %1, ptr %7, align 4
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
%13 = load i32, ptr %6, align 4
%14 = icmp eq i32 %13, 1074069504
%15 = zext i1 %14 to i32
%16 = call i32 @ASSERT(i32 noundef %15)
%17 = load i32, ptr %7, align 4
%18 = icmp eq i32 %17, 0
br i1 %18, label %40, label %19
19: ; preds = %4
%20 = load i32, ptr %7, align 4
%21 = icmp eq i32 %20, 16
br i1 %21, label %40, label %22
22: ; preds = %19
%23 = load i32, ptr %7, align 4
%24 = icmp eq i32 %23, 32
br i1 %24, label %40, label %25
25: ; preds = %22
%26 = load i32, ptr %7, align 4
%27 = icmp eq i32 %26, 48
br i1 %27, label %40, label %28
28: ; preds = %25
%29 = load i32, ptr %7, align 4
%30 = icmp eq i32 %29, 64
br i1 %30, label %40, label %31
31: ; preds = %28
%32 = load i32, ptr %7, align 4
%33 = icmp eq i32 %32, 80
br i1 %33, label %40, label %34
34: ; preds = %31
%35 = load i32, ptr %7, align 4
%36 = icmp eq i32 %35, 96
br i1 %36, label %40, label %37
37: ; preds = %34
%38 = load i32, ptr %7, align 4
%39 = icmp eq i32 %38, 112
br label %40
40: ; preds = %37, %34, %31, %28, %25, %22, %19, %4
%41 = phi i1 [ true, %34 ], [ true, %31 ], [ true, %28 ], [ true, %25 ], [ true, %22 ], [ true, %19 ], [ true, %4 ], [ %39, %37 ]
%42 = zext i1 %41 to i32
%43 = call i32 @ASSERT(i32 noundef %42)
%44 = load i32, ptr %7, align 4
%45 = icmp eq i32 %44, 0
br i1 %45, label %46, label %47
46: ; preds = %40
store i32 258, ptr %10, align 4
br label %51
47: ; preds = %40
%48 = load i32, ptr %7, align 4
%49 = sub nsw i32 %48, 16
%50 = add nsw i32 278, %49
store i32 %50, ptr %10, align 4
br label %51
51: ; preds = %47, %46
%52 = load i32, ptr %6, align 4
%53 = load i32, ptr %10, align 4
%54 = add nsw i32 %52, %53
%55 = sext i32 %54 to i64
%56 = inttoptr i64 %55 to ptr
%57 = load volatile i32, ptr %56, align 4
%58 = and i32 %57, 1
%59 = icmp eq i32 %58, 0
br i1 %59, label %60, label %62
60: ; preds = %51
%61 = load ptr, ptr %9, align 8
store i32 0, ptr %61, align 4
store i32 -1, ptr %5, align 4
br label %103
62: ; preds = %51
%63 = load i32, ptr %6, align 4
%64 = add nsw i32 %63, 264
%65 = load i32, ptr %7, align 4
%66 = add nsw i32 %64, %65
%67 = sext i32 %66 to i64
%68 = inttoptr i64 %67 to ptr
%69 = load volatile i32, ptr %68, align 4
store i32 %69, ptr %11, align 4
%70 = load i32, ptr %11, align 4
%71 = load ptr, ptr %9, align 8
%72 = load i32, ptr %71, align 4
%73 = icmp slt i32 %70, %72
br i1 %73, label %74, label %76
74: ; preds = %62
%75 = load i32, ptr %11, align 4
br label %79
76: ; preds = %62
%77 = load ptr, ptr %9, align 8
%78 = load i32, ptr %77, align 4
br label %79
79: ; preds = %76, %74
%80 = phi i32 [ %75, %74 ], [ %78, %76 ]
store i32 %80, ptr %11, align 4
%81 = load i32, ptr %11, align 4
%82 = load ptr, ptr %9, align 8
store i32 %81, ptr %82, align 4
%83 = load i32, ptr %6, align 4
%84 = add nsw i32 %83, 32
%85 = load i32, ptr %7, align 4
%86 = ashr i32 %85, 2
%87 = add nsw i32 %84, %86
store i32 %87, ptr %12, align 4
%88 = load i32, ptr %11, align 4
%89 = icmp sgt i32 %88, 0
br i1 %89, label %.lr.ph, label %102
.lr.ph: ; preds = %79
br label %90
90: ; preds = %.lr.ph, %97
%91 = load i32, ptr %12, align 4
%92 = sext i32 %91 to i64
%93 = inttoptr i64 %92 to ptr
%94 = load volatile i32, ptr %93, align 4
%95 = load ptr, ptr %8, align 8
%96 = getelementptr inbounds i32, ptr %95, i32 1
store ptr %96, ptr %8, align 8
store i32 %94, ptr %95, align 4
br label %97
97: ; preds = %90
%98 = load i32, ptr %11, align 4
%99 = add nsw i32 %98, -1
store i32 %99, ptr %11, align 4
%100 = load i32, ptr %11, align 4
%101 = icmp sgt i32 %100, 0
br i1 %101, label %90, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %97
br label %102
102: ; preds = %._crit_edge, %79
store i32 0, ptr %5, align 4
br label %103
103: ; preds = %102, %60
%104 = load i32, ptr %5, align 4
ret i32 %104
}
declare i32 @ASSERT(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp8u77mfka.c'
source_filename = "/tmp/tmp8u77mfka.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"Enter x y: \00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"\0A%d + %d = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%4 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %1, ptr noundef %2)
%5 = load i32, ptr %1, align 4
%6 = load i32, ptr %2, align 4
%7 = load i32, ptr %1, align 4
%8 = load i32, ptr %2, align 4
%9 = call i32 @add(i32 noundef %7, i32 noundef %8)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %5, i32 noundef %6, i32 noundef %9)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @add(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/tmp8u77mfka.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"Enter x y: \00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%d %d\00", align 1
@.str.2 = private unnamed_addr constant [16 x i8] c"\0A%d + %d = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%4 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %1, ptr noundef %2)
%5 = load i32, ptr %1, align 4
%6 = load i32, ptr %2, align 4
%7 = load i32, ptr %1, align 4
%8 = load i32, ptr %2, align 4
%9 = call i32 @add(i32 noundef %7, i32 noundef %8)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %5, i32 noundef %6, i32 noundef %9)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @add(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/tmpif1dan1k.c'
source_filename = "/tmp/tmpif1dan1k.c"
target datalayout = "e-m:e-p270: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/tmpif1dan1k.c"
target datalayout = "e-m:e-p270: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/tmpi0k8r005.c'
source_filename = "/tmp/tmpi0k8r005.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%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 i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca [50 x i8], align 16
store i32 0, ptr %1, align 4
%4 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
%5 = getelementptr inbounds [50 x i8], ptr %3, i64 0, i64 0
%6 = call i32 @strlen(ptr noundef %5)
%7 = sub nsw i32 %6, 1
store i32 %7, ptr %2, align 4
br label %8
8: ; preds = %11, %0
%9 = load i32, ptr %2, align 4
%10 = icmp sge i32 %9, 0
br i1 %10, label %11, label %20
11: ; preds = %8
%12 = load i32, ptr %2, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [50 x i8], ptr %3, i64 0, i64 %13
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %16)
%18 = load i32, ptr %2, align 4
%19 = add nsw i32 %18, -1
store i32 %19, ptr %2, align 4
br label %8, !llvm.loop !6
20: ; preds = %8
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpi0k8r005.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%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 i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca [50 x i8], align 16
store i32 0, ptr %1, align 4
%4 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
%5 = getelementptr inbounds [50 x i8], ptr %3, i64 0, i64 0
%6 = call i32 @strlen(ptr noundef %5)
%7 = sub nsw i32 %6, 1
store i32 %7, ptr %2, align 4
%8 = load i32, ptr %2, align 4
%9 = icmp sge i32 %8, 0
br i1 %9, label %.lr.ph, label %21
.lr.ph: ; preds = %0
br label %10
10: ; preds = %.lr.ph, %10
%11 = load i32, ptr %2, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds [50 x i8], ptr %3, i64 0, i64 %12
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %15)
%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 sge i32 %19, 0
br i1 %20, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %10
br label %21
21: ; preds = %._crit_edge, %0
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp06_weoji.c'
source_filename = "/tmp/tmp06_weoji.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Random trash: %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"(a + b) = %d\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 (...) @function_receive_and_return_void()
%7 = call i32 @function_receive_something_return_void(i32 noundef 3, i32 noundef 4)
%8 = call i32 (...) @function_receive_void_return_something()
%9 = call i32 @printf(ptr noundef @.str, i32 noundef %8)
%10 = call i32 @function_receive_and_return_something(i32 noundef 10, i32 noundef 7)
%11 = call i32 @printf(ptr noundef @.str.1, i32 noundef %10)
%12 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %12
}
declare i32 @function_receive_and_return_void(...) #1
declare i32 @function_receive_something_return_void(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @function_receive_void_return_something(...) #1
declare i32 @function_receive_and_return_something(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/tmp06_weoji.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Random trash: %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"(a + b) = %d\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 (...) @function_receive_and_return_void()
%7 = call i32 @function_receive_something_return_void(i32 noundef 3, i32 noundef 4)
%8 = call i32 (...) @function_receive_void_return_something()
%9 = call i32 @printf(ptr noundef @.str, i32 noundef %8)
%10 = call i32 @function_receive_and_return_something(i32 noundef 10, i32 noundef 7)
%11 = call i32 @printf(ptr noundef @.str.1, i32 noundef %10)
%12 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %12
}
declare i32 @function_receive_and_return_void(...) #1
declare i32 @function_receive_something_return_void(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @function_receive_void_return_something(...) #1
declare i32 @function_receive_and_return_something(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/tmp7375tksz.c'
source_filename = "/tmp/tmp7375tksz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"-l\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"-ld\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"memwatch\00", align 1
@.str.3 = private unnamed_addr constant [58 x i8] c"Index %2d %18s Sent %2d Received %2d, Data size of %2d\0A\00", align 1
@.str.4 = private unnamed_addr constant [20 x i8] c"No such process %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca 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 [20 x i8], align 16
%13 = 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
store i32 0, ptr %9, align 4
%14 = getelementptr inbounds [20 x i8], ptr %12, i64 0, i64 0
%15 = call i32 @memset(ptr noundef %14, i8 noundef signext 0, i32 noundef 20)
%16 = load i32, ptr %4, align 4
%17 = icmp slt i32 %16, 2
br i1 %17, label %18, label %21
18: ; preds = %2
%19 = call i32 (...) @print_usage()
%20 = call i32 @exit(i32 noundef 2) #3
unreachable
21: ; preds = %2
%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 @strcmp(ptr noundef %24, ptr noundef @.str)
%26 = icmp ne i32 %25, 0
br i1 %26, label %34, label %27
27: ; preds = %21
%28 = load i32, ptr %4, align 4
%29 = icmp ne i32 %28, 2
br i1 %29, label %30, label %33
30: ; preds = %27
%31 = call i32 (...) @print_usage()
%32 = call i32 @exit(i32 noundef 2) #3
unreachable
33: ; preds = %27
store i32 1, ptr %9, align 4
br label %53
34: ; preds = %21
%35 = load ptr, ptr %5, align 8
%36 = getelementptr inbounds ptr, ptr %35, i64 1
%37 = load ptr, ptr %36, align 8
%38 = call i32 @strcmp(ptr noundef %37, ptr noundef @.str.1)
%39 = icmp ne i32 %38, 0
br i1 %39, label %52, label %40
40: ; preds = %34
%41 = load i32, ptr %4, align 4
%42 = icmp ne i32 %41, 3
br i1 %42, label %43, label %46
43: ; preds = %40
%44 = call i32 (...) @print_usage()
%45 = call i32 @exit(i32 noundef 2) #3
unreachable
46: ; preds = %40
store i32 2, ptr %9, align 4
%47 = getelementptr inbounds [20 x i8], ptr %12, i64 0, i64 0
%48 = load ptr, ptr %5, align 8
%49 = getelementptr inbounds ptr, ptr %48, i64 2
%50 = load ptr, ptr %49, align 8
%51 = call i32 @strncpy(ptr noundef %47, ptr noundef %50, i32 noundef 19)
br label %52
52: ; preds = %46, %34
br label %53
53: ; preds = %52, %33
%54 = load i32, ptr %9, align 4
%55 = icmp eq i32 %54, 0
br i1 %55, label %56, label %59
56: ; preds = %53
%57 = call i32 (...) @print_usage()
%58 = call i32 @exit(i32 noundef 3) #3
unreachable
59: ; preds = %53
%60 = call i32 @init_memshare(ptr noundef @.str.2, i32 noundef 0, i32 noundef 0)
%61 = load i32, ptr %9, align 4
switch i32 %61, label %103 [
i32 2, label %62
i32 1, label %80
]
62: ; preds = %59
%63 = getelementptr inbounds [20 x i8], ptr %12, i64 0, i64 0
%64 = call i32 @get_index_for_proc(ptr noundef %63)
store i32 %64, ptr %10, align 4
%65 = icmp ne i32 %64, -1
br i1 %65, label %66, label %76
66: ; preds = %62
%67 = load i32, ptr %10, align 4
%68 = call i32 @get_proc_info(i32 noundef %67, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %13)
%69 = load i32, ptr %10, align 4
%70 = load ptr, ptr %13, align 8
%71 = load i32, ptr %6, align 4
%72 = load i32, ptr %7, align 4
%73 = load i32, ptr %8, align 4
%74 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %69, ptr noundef %70, i32 noundef %71, i32 noundef %72, i32 noundef %73)
%75 = call i32 @exit(i32 noundef 0) #3
unreachable
76: ; preds = %62
%77 = getelementptr inbounds [20 x i8], ptr %12, i64 0, i64 0
%78 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %77)
%79 = call i32 @exit(i32 noundef 1) #3
unreachable
80: ; preds = %59
store i32 0, ptr %11, align 4
br label %81
81: ; preds = %98, %80
%82 = load i32, ptr %11, align 4
%83 = icmp slt i32 %82, 20
br i1 %83, label %84, label %101
84: ; preds = %81
%85 = load i32, ptr %11, align 4
%86 = call i32 @check_proc_at_index(i32 noundef %85)
%87 = icmp ne i32 %86, 0
br i1 %87, label %88, label %97
88: ; preds = %84
%89 = load i32, ptr %11, align 4
%90 = call i32 @get_proc_info(i32 noundef %89, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %13)
%91 = load i32, ptr %11, align 4
%92 = load ptr, ptr %13, align 8
%93 = load i32, ptr %6, align 4
%94 = load i32, ptr %7, align 4
%95 = load i32, ptr %8, align 4
%96 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %91, ptr noundef %92, i32 noundef %93, i32 noundef %94, i32 noundef %95)
br label %97
97: ; preds = %88, %84
br label %98
98: ; preds = %97
%99 = load i32, ptr %11, align 4
%100 = add nsw i32 %99, 1
store i32 %100, ptr %11, align 4
br label %81, !llvm.loop !6
101: ; preds = %81
%102 = call i32 @exit(i32 noundef 0) #3
unreachable
103: ; preds = %59
br label %104
104: ; preds = %103
%105 = call i32 @exit(i32 noundef 2) #3
unreachable
}
declare i32 @memset(ptr noundef, i8 noundef signext, i32 noundef) #1
declare i32 @print_usage(...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @init_memshare(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @get_index_for_proc(ptr noundef) #1
declare i32 @get_proc_info(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @check_proc_at_index(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/tmp7375tksz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"-l\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"-ld\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"memwatch\00", align 1
@.str.3 = private unnamed_addr constant [58 x i8] c"Index %2d %18s Sent %2d Received %2d, Data size of %2d\0A\00", align 1
@.str.4 = private unnamed_addr constant [20 x i8] c"No such process %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca 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 [20 x i8], align 16
%13 = 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
store i32 0, ptr %9, align 4
%14 = getelementptr inbounds [20 x i8], ptr %12, i64 0, i64 0
%15 = call i32 @memset(ptr noundef %14, i8 noundef signext 0, i32 noundef 20)
%16 = load i32, ptr %4, align 4
%17 = icmp slt i32 %16, 2
br i1 %17, label %18, label %21
18: ; preds = %2
%19 = call i32 (...) @print_usage()
%20 = call i32 @exit(i32 noundef 2) #3
unreachable
21: ; preds = %2
%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 @strcmp(ptr noundef %24, ptr noundef @.str)
%26 = icmp ne i32 %25, 0
br i1 %26, label %34, label %27
27: ; preds = %21
%28 = load i32, ptr %4, align 4
%29 = icmp ne i32 %28, 2
br i1 %29, label %30, label %33
30: ; preds = %27
%31 = call i32 (...) @print_usage()
%32 = call i32 @exit(i32 noundef 2) #3
unreachable
33: ; preds = %27
store i32 1, ptr %9, align 4
br label %53
34: ; preds = %21
%35 = load ptr, ptr %5, align 8
%36 = getelementptr inbounds ptr, ptr %35, i64 1
%37 = load ptr, ptr %36, align 8
%38 = call i32 @strcmp(ptr noundef %37, ptr noundef @.str.1)
%39 = icmp ne i32 %38, 0
br i1 %39, label %52, label %40
40: ; preds = %34
%41 = load i32, ptr %4, align 4
%42 = icmp ne i32 %41, 3
br i1 %42, label %43, label %46
43: ; preds = %40
%44 = call i32 (...) @print_usage()
%45 = call i32 @exit(i32 noundef 2) #3
unreachable
46: ; preds = %40
store i32 2, ptr %9, align 4
%47 = getelementptr inbounds [20 x i8], ptr %12, i64 0, i64 0
%48 = load ptr, ptr %5, align 8
%49 = getelementptr inbounds ptr, ptr %48, i64 2
%50 = load ptr, ptr %49, align 8
%51 = call i32 @strncpy(ptr noundef %47, ptr noundef %50, i32 noundef 19)
br label %52
52: ; preds = %46, %34
br label %53
53: ; preds = %52, %33
%54 = load i32, ptr %9, align 4
%55 = icmp eq i32 %54, 0
br i1 %55, label %56, label %59
56: ; preds = %53
%57 = call i32 (...) @print_usage()
%58 = call i32 @exit(i32 noundef 3) #3
unreachable
59: ; preds = %53
%60 = call i32 @init_memshare(ptr noundef @.str.2, i32 noundef 0, i32 noundef 0)
%61 = load i32, ptr %9, align 4
switch i32 %61, label %104 [
i32 2, label %62
i32 1, label %80
]
62: ; preds = %59
%63 = getelementptr inbounds [20 x i8], ptr %12, i64 0, i64 0
%64 = call i32 @get_index_for_proc(ptr noundef %63)
store i32 %64, ptr %10, align 4
%65 = icmp ne i32 %64, -1
br i1 %65, label %66, label %76
66: ; preds = %62
%67 = load i32, ptr %10, align 4
%68 = call i32 @get_proc_info(i32 noundef %67, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %13)
%69 = load i32, ptr %10, align 4
%70 = load ptr, ptr %13, align 8
%71 = load i32, ptr %6, align 4
%72 = load i32, ptr %7, align 4
%73 = load i32, ptr %8, align 4
%74 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %69, ptr noundef %70, i32 noundef %71, i32 noundef %72, i32 noundef %73)
%75 = call i32 @exit(i32 noundef 0) #3
unreachable
76: ; preds = %62
%77 = getelementptr inbounds [20 x i8], ptr %12, i64 0, i64 0
%78 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %77)
%79 = call i32 @exit(i32 noundef 1) #3
unreachable
80: ; preds = %59
store i32 0, ptr %11, align 4
%81 = load i32, ptr %11, align 4
%82 = icmp slt i32 %81, 20
br i1 %82, label %.lr.ph, label %102
.lr.ph: ; preds = %80
br label %83
83: ; preds = %.lr.ph, %97
%84 = load i32, ptr %11, align 4
%85 = call i32 @check_proc_at_index(i32 noundef %84)
%86 = icmp ne i32 %85, 0
br i1 %86, label %87, label %96
87: ; preds = %83
%88 = load i32, ptr %11, align 4
%89 = call i32 @get_proc_info(i32 noundef %88, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %13)
%90 = load i32, ptr %11, align 4
%91 = load ptr, ptr %13, align 8
%92 = load i32, ptr %6, align 4
%93 = load i32, ptr %7, align 4
%94 = load i32, ptr %8, align 4
%95 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %90, ptr noundef %91, i32 noundef %92, i32 noundef %93, i32 noundef %94)
br label %96
96: ; preds = %87, %83
br label %97
97: ; preds = %96
%98 = load i32, ptr %11, align 4
%99 = add nsw i32 %98, 1
store i32 %99, ptr %11, align 4
%100 = load i32, ptr %11, align 4
%101 = icmp slt i32 %100, 20
br i1 %101, label %83, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %97
br label %102
102: ; preds = %._crit_edge, %80
%103 = call i32 @exit(i32 noundef 0) #3
unreachable
104: ; preds = %59
br label %105
105: ; preds = %104
%106 = call i32 @exit(i32 noundef 2) #3
unreachable
}
declare i32 @memset(ptr noundef, i8 noundef signext, i32 noundef) #1
declare i32 @print_usage(...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @init_memshare(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @get_index_for_proc(ptr noundef) #1
declare i32 @get_proc_info(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @check_proc_at_index(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/tmpc65vordg.c'
source_filename = "/tmp/tmpc65vordg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %3, ptr %2, align 4
br label %4
4: ; preds = %35, %0
%5 = load i32, ptr %2, align 4
%6 = icmp sge i32 %5, 0
br i1 %6, label %7, label %36
7: ; preds = %4
%8 = call i32 (...) @__VERIFIER_nondet_int()
%9 = icmp ne i32 %8, 0
br i1 %9, label %10, label %13
10: ; preds = %7
%11 = load i32, ptr %2, align 4
%12 = add nsw i32 %11, 1
store i32 %12, ptr %2, align 4
br label %35
13: ; preds = %7
%14 = call i32 (...) @__VERIFIER_nondet_int()
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %19
16: ; preds = %13
%17 = load i32, ptr %2, align 4
%18 = add nsw i32 %17, 2
store i32 %18, ptr %2, align 4
br label %34
19: ; preds = %13
%20 = call i32 (...) @__VERIFIER_nondet_int()
%21 = icmp ne i32 %20, 0
br i1 %21, label %22, label %25
22: ; preds = %19
%23 = load i32, ptr %2, align 4
%24 = add nsw i32 %23, 3
store i32 %24, ptr %2, align 4
br label %33
25: ; preds = %19
%26 = call i32 (...) @__VERIFIER_nondet_int()
%27 = icmp ne i32 %26, 0
br i1 %27, label %28, label %31
28: ; preds = %25
%29 = load i32, ptr %2, align 4
%30 = add nsw i32 %29, 4
store i32 %30, ptr %2, align 4
br label %32
31: ; preds = %25
br label %36
32: ; preds = %28
br label %33
33: ; preds = %32, %22
br label %34
34: ; preds = %33, %16
br label %35
35: ; preds = %34, %10
br label %4, !llvm.loop !6
36: ; preds = %31, %4
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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpc65vordg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %3, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = icmp sge i32 %4, 0
br i1 %5, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %0
br label %6
6: ; preds = %.lr.ph, %34
%7 = call i32 (...) @__VERIFIER_nondet_int()
%8 = icmp ne i32 %7, 0
br i1 %8, label %9, label %12
9: ; preds = %6
%10 = load i32, ptr %2, align 4
%11 = add nsw i32 %10, 1
store i32 %11, ptr %2, align 4
br label %34
12: ; preds = %6
%13 = call i32 (...) @__VERIFIER_nondet_int()
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %18
15: ; preds = %12
%16 = load i32, ptr %2, align 4
%17 = add nsw i32 %16, 2
store i32 %17, ptr %2, align 4
br label %33
18: ; preds = %12
%19 = call i32 (...) @__VERIFIER_nondet_int()
%20 = icmp ne i32 %19, 0
br i1 %20, label %21, label %24
21: ; preds = %18
%22 = load i32, ptr %2, align 4
%23 = add nsw i32 %22, 3
store i32 %23, ptr %2, align 4
br label %32
24: ; preds = %18
%25 = call i32 (...) @__VERIFIER_nondet_int()
%26 = icmp ne i32 %25, 0
br i1 %26, label %27, label %30
27: ; preds = %24
%28 = load i32, ptr %2, align 4
%29 = add nsw i32 %28, 4
store i32 %29, ptr %2, align 4
br label %31
30: ; preds = %24
br label %37
31: ; preds = %27
br label %32
32: ; preds = %31, %21
br label %33
33: ; preds = %32, %15
br label %34
34: ; preds = %33, %9
%35 = load i32, ptr %2, align 4
%36 = icmp sge i32 %35, 0
br i1 %36, label %6, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %34
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %0
br label %37
37: ; preds = %.loopexit, %30
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"}
|
; ModuleID = '/tmp/tmp3xqznzs4.c'
source_filename = "/tmp/tmp3xqznzs4.c"
target datalayout = "e-m:e-p270: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/tmp3xqznzs4.c"
target datalayout = "e-m:e-p270: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/tmpjeo7z1co.c'
source_filename = "/tmp/tmpjeo7z1co.c"
target datalayout = "e-m:e-p270: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/tmpjeo7z1co.c"
target datalayout = "e-m:e-p270: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/tmpsdzdxdnv.c'
source_filename = "/tmp/tmpsdzdxdnv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 (...) @nearly_main()
%3 = call i32 (...) @nearly_main()
ret i32 0
}
declare i32 @nearly_main(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsdzdxdnv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 (...) @nearly_main()
%3 = call i32 (...) @nearly_main()
ret i32 0
}
declare i32 @nearly_main(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbe9z9wzq.c'
source_filename = "/tmp/tmpbe9z9wzq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [43 x i8] c"%s: [-l] <n> <min_hd> <min_iso> [<a_len>]\0A\00", align 1
@.str.1 = private unnamed_addr constant [28 x i8] c"\09-l Find the longest code\0A\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"\09MAX_N = %d\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, i32 noundef 16)
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/tmpbe9z9wzq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [43 x i8] c"%s: [-l] <n> <min_hd> <min_iso> [<a_len>]\0A\00", align 1
@.str.1 = private unnamed_addr constant [28 x i8] c"\09-l Find the longest code\0A\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"\09MAX_N = %d\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, i32 noundef 16)
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/tmp83yngvih.c'
source_filename = "/tmp/tmp83yngvih.c"
target datalayout = "e-m:e-p270: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 { i32, i32 }
@__const.main.nettype = private unnamed_addr constant [16 x i8] c"udp\00\00\00\00\00\00\00\00\00\00\00\00\00", align 16
@.str = private unnamed_addr constant [13 x i8] c"Server : %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"Server # %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"Net : %s\0A\00", align 1
@xdr_int = dso_local global i64 0, align 8
@.str.3 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca [16 x i8], align 16
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca %struct.timeval, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
store i32 1, ptr %7, align 4
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 2
%16 = load ptr, ptr %15, align 8
%17 = call i32 @atoi(ptr noundef %16)
store i32 %17, ptr %8, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %9, ptr align 16 @__const.main.nettype, i64 16, i1 false)
store ptr null, ptr %10, align 8
store i32 -1, ptr %12, align 4
%18 = load i32, ptr %6, align 4
%19 = icmp eq i32 %18, 1
br i1 %19, label %20, label %29
20: ; preds = %2
%21 = load ptr, ptr %5, align 8
%22 = getelementptr inbounds ptr, ptr %21, i64 1
%23 = load ptr, ptr %22, align 8
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %23)
%25 = load i32, ptr %8, align 4
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %25)
%27 = getelementptr inbounds [16 x i8], ptr %9, i64 0, i64 0
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %27)
br label %29
29: ; preds = %20, %2
%30 = getelementptr inbounds %struct.timeval, ptr %13, i32 0, i32 0
store i32 1, ptr %30, align 4
%31 = getelementptr inbounds %struct.timeval, ptr %13, i32 0, i32 1
store i32 1, ptr %31, align 4
%32 = load ptr, ptr %5, align 8
%33 = getelementptr inbounds ptr, ptr %32, i64 1
%34 = load ptr, ptr %33, align 8
%35 = load i32, ptr %8, align 4
%36 = getelementptr inbounds [16 x i8], ptr %9, i64 0, i64 0
%37 = call ptr @clnt_create(ptr noundef %34, i32 noundef %35, i32 noundef 1, ptr noundef %36)
store ptr %37, ptr %10, align 8
%38 = load ptr, ptr %10, align 8
%39 = load i64, ptr @xdr_int, align 8
%40 = trunc i64 %39 to i32
%41 = load i64, ptr @xdr_int, align 8
%42 = trunc i64 %41 to i32
%43 = load i64, ptr %13, align 4
%44 = call i32 @clnt_call(ptr noundef %38, i32 noundef 1, i32 noundef %40, ptr noundef %12, i32 noundef %42, ptr noundef %12, i64 %43)
store i32 %44, ptr %11, align 4
%45 = load i32, ptr %11, align 4
%46 = call i32 @clnt_perrno(i32 noundef %45)
store i32 0, ptr %7, align 4
%47 = load i32, ptr %7, align 4
%48 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %47)
%49 = load i32, ptr %7, align 4
ret i32 %49
}
declare i32 @atoi(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 @printf(ptr noundef, ...) #1
declare ptr @clnt_create(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @clnt_call(ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i64) #1
declare i32 @clnt_perrno(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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp83yngvih.c"
target datalayout = "e-m:e-p270: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 { i32, i32 }
@__const.main.nettype = private unnamed_addr constant [16 x i8] c"udp\00\00\00\00\00\00\00\00\00\00\00\00\00", align 16
@.str = private unnamed_addr constant [13 x i8] c"Server : %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"Server # %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"Net : %s\0A\00", align 1
@xdr_int = dso_local global i64 0, align 8
@.str.3 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca [16 x i8], align 16
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca %struct.timeval, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
store i32 1, ptr %7, align 4
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 2
%16 = load ptr, ptr %15, align 8
%17 = call i32 @atoi(ptr noundef %16)
store i32 %17, ptr %8, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %9, ptr align 16 @__const.main.nettype, i64 16, i1 false)
store ptr null, ptr %10, align 8
store i32 -1, ptr %12, align 4
%18 = load i32, ptr %6, align 4
%19 = icmp eq i32 %18, 1
br i1 %19, label %20, label %29
20: ; preds = %2
%21 = load ptr, ptr %5, align 8
%22 = getelementptr inbounds ptr, ptr %21, i64 1
%23 = load ptr, ptr %22, align 8
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %23)
%25 = load i32, ptr %8, align 4
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %25)
%27 = getelementptr inbounds [16 x i8], ptr %9, i64 0, i64 0
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %27)
br label %29
29: ; preds = %20, %2
%30 = getelementptr inbounds %struct.timeval, ptr %13, i32 0, i32 0
store i32 1, ptr %30, align 4
%31 = getelementptr inbounds %struct.timeval, ptr %13, i32 0, i32 1
store i32 1, ptr %31, align 4
%32 = load ptr, ptr %5, align 8
%33 = getelementptr inbounds ptr, ptr %32, i64 1
%34 = load ptr, ptr %33, align 8
%35 = load i32, ptr %8, align 4
%36 = getelementptr inbounds [16 x i8], ptr %9, i64 0, i64 0
%37 = call ptr @clnt_create(ptr noundef %34, i32 noundef %35, i32 noundef 1, ptr noundef %36)
store ptr %37, ptr %10, align 8
%38 = load ptr, ptr %10, align 8
%39 = load i64, ptr @xdr_int, align 8
%40 = trunc i64 %39 to i32
%41 = load i64, ptr @xdr_int, align 8
%42 = trunc i64 %41 to i32
%43 = load i64, ptr %13, align 4
%44 = call i32 @clnt_call(ptr noundef %38, i32 noundef 1, i32 noundef %40, ptr noundef %12, i32 noundef %42, ptr noundef %12, i64 %43)
store i32 %44, ptr %11, align 4
%45 = load i32, ptr %11, align 4
%46 = call i32 @clnt_perrno(i32 noundef %45)
store i32 0, ptr %7, align 4
%47 = load i32, ptr %7, align 4
%48 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %47)
%49 = load i32, ptr %7, align 4
ret i32 %49
}
declare i32 @atoi(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 @printf(ptr noundef, ...) #1
declare ptr @clnt_create(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @clnt_call(ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i64) #1
declare i32 @clnt_perrno(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"}
|
; ModuleID = '/tmp/tmp0vx_eczw.c'
source_filename = "/tmp/tmp0vx_eczw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @keyer_init() #0 {
%1 = call i32 (...) @beep_init()
ret void
}
declare i32 @beep_init(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0vx_eczw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @keyer_init() #0 {
%1 = call i32 (...) @beep_init()
ret void
}
declare i32 @beep_init(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE 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_hihjth6.c'
source_filename = "/tmp/tmp_hihjth6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_hihjth6.c"
target datalayout = "e-m:e-p270: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/tmp4pn3lm4y.c'
source_filename = "/tmp/tmp4pn3lm4y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"kill -9 %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @sAlrm() #0 {
%1 = alloca i32, align 4
%2 = alloca [256 x i8], align 16
store i32 0, ptr %1, align 4
%3 = getelementptr inbounds [256 x i8], ptr %2, i64 0, i64 0
%4 = call i32 (...) @getpid()
%5 = call i32 @sprintf(ptr noundef %3, ptr noundef @.str, i32 noundef %4)
%6 = getelementptr inbounds [256 x i8], ptr %2, i64 0, i64 0
%7 = call i32 @system(ptr noundef %6)
store i32 %7, ptr %1, align 4
ret void
}
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @getpid(...) #1
declare i32 @system(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4pn3lm4y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"kill -9 %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @sAlrm() #0 {
%1 = alloca i32, align 4
%2 = alloca [256 x i8], align 16
store i32 0, ptr %1, align 4
%3 = getelementptr inbounds [256 x i8], ptr %2, i64 0, i64 0
%4 = call i32 (...) @getpid()
%5 = call i32 @sprintf(ptr noundef %3, ptr noundef @.str, i32 noundef %4)
%6 = getelementptr inbounds [256 x i8], ptr %2, i64 0, i64 0
%7 = call i32 @system(ptr noundef %6)
store i32 %7, ptr %1, align 4
ret void
}
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @getpid(...) #1
declare i32 @system(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpj5r3y_uz.c'
source_filename = "/tmp/tmpj5r3y_uz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @copy_quaddobl_target_system_to_container() #0 {
%1 = alloca ptr, align 8
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = load ptr, ptr %1, align 8
%6 = load ptr, ptr %2, align 8
%7 = load ptr, ptr %4, align 8
%8 = call i32 @_ada_use_c2phc4c(i32 noundef 261, ptr noundef %5, ptr noundef %6, ptr noundef %7, i32 noundef 0)
store i32 %8, ptr %3, align 4
%9 = load i32, ptr %3, align 4
ret i32 %9
}
declare i32 @_ada_use_c2phc4c(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpj5r3y_uz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @copy_quaddobl_target_system_to_container() #0 {
%1 = alloca ptr, align 8
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = load ptr, ptr %1, align 8
%6 = load ptr, ptr %2, align 8
%7 = load ptr, ptr %4, align 8
%8 = call i32 @_ada_use_c2phc4c(i32 noundef 261, ptr noundef %5, ptr noundef %6, ptr noundef %7, i32 noundef 0)
store i32 %8, ptr %3, align 4
%9 = load i32, ptr %3, align 4
ret i32 %9
}
declare i32 @_ada_use_c2phc4c(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpsx7xqkf7.c'
source_filename = "/tmp/tmpsx7xqkf7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @__libc_pwrite(i32 noundef %0, ptr noundef %1, i64 noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%9 = load i32, ptr %5, align 4
%10 = load ptr, ptr %6, align 8
%11 = load i64, ptr %7, align 8
%12 = load i32, ptr %8, align 4
%13 = call i32 @__fake_pread_write(i32 noundef %9, ptr noundef %10, i64 noundef %11, i32 noundef %12, i32 noundef 1)
ret i32 %13
}
declare i32 @__fake_pread_write(i32 noundef, ptr noundef, i64 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/tmpsx7xqkf7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @__libc_pwrite(i32 noundef %0, ptr noundef %1, i64 noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%9 = load i32, ptr %5, align 4
%10 = load ptr, ptr %6, align 8
%11 = load i64, ptr %7, align 8
%12 = load i32, ptr %8, align 4
%13 = call i32 @__fake_pread_write(i32 noundef %9, ptr noundef %10, i64 noundef %11, i32 noundef %12, i32 noundef 1)
ret i32 %13
}
declare i32 @__fake_pread_write(i32 noundef, ptr noundef, i64 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/tmpdhft1qjb.c'
source_filename = "/tmp/tmpdhft1qjb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @g_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
%6 = load ptr, ptr %4, align 8
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %9
8: ; preds = %2
store ptr null, ptr %3, align 8
br label %13
9: ; preds = %2
%10 = load ptr, ptr %4, align 8
%11 = load i32, ptr %5, align 4
%12 = call ptr @strchr(ptr noundef %10, i32 noundef %11)
store ptr %12, ptr %3, align 8
br label %13
13: ; preds = %9, %8
%14 = load ptr, ptr %3, align 8
ret ptr %14
}
declare ptr @strchr(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/tmpdhft1qjb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @g_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
%6 = load ptr, ptr %4, align 8
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %9
8: ; preds = %2
store ptr null, ptr %3, align 8
br label %13
9: ; preds = %2
%10 = load ptr, ptr %4, align 8
%11 = load i32, ptr %5, align 4
%12 = call ptr @strchr(ptr noundef %10, i32 noundef %11)
store ptr %12, ptr %3, align 8
br label %13
13: ; preds = %9, %8
%14 = load ptr, ptr %3, align 8
ret ptr %14
}
declare ptr @strchr(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/tmp2fd4w87e.c'
source_filename = "/tmp/tmp2fd4w87e.c"
target datalayout = "e-m:e-p270: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/tmp2fd4w87e.c"
target datalayout = "e-m:e-p270: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/tmps_zorvd_.c'
source_filename = "/tmp/tmps_zorvd_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%4li %4li\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c" %s\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 @print_stat(i64 noundef %0, i64 noundef %1, ptr noundef %2) #0 {
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
store i64 %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load i64, ptr %5, align 8
%8 = load i64, ptr %4, align 8
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str, i64 noundef %7, i64 noundef %8)
%10 = load ptr, ptr %6, align 8
%11 = call i64 @strlen(ptr noundef %10)
%12 = icmp ne i64 %11, 0
br i1 %12, label %13, label %16
13: ; preds = %3
%14 = load ptr, ptr %6, align 8
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %14)
br label %16
16: ; preds = %13, %3
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i64 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmps_zorvd_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%4li %4li\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c" %s\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 @print_stat(i64 noundef %0, i64 noundef %1, ptr noundef %2) #0 {
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
store i64 %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load i64, ptr %5, align 8
%8 = load i64, ptr %4, align 8
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str, i64 noundef %7, i64 noundef %8)
%10 = load ptr, ptr %6, align 8
%11 = call i64 @strlen(ptr noundef %10)
%12 = icmp ne i64 %11, 0
br i1 %12, label %13, label %16
13: ; preds = %3
%14 = load ptr, ptr %6, align 8
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %14)
br label %16
16: ; preds = %13, %3
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
declare i64 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpuib76ayk.c'
source_filename = "/tmp/tmpuib76ayk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fd_nrf8001_dispatch_set_key_response(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp ne i32 %7, 0
br i1 %8, label %9, label %12
9: ; preds = %3
%10 = load i32, ptr %4, align 4
%11 = call i32 @fd_nrf8001_set_key_error(i32 noundef %10)
br label %14
12: ; preds = %3
%13 = call i32 (...) @fd_nrf8001_set_key_success()
br label %14
14: ; preds = %12, %9
ret void
}
declare i32 @fd_nrf8001_set_key_error(i32 noundef) #1
declare i32 @fd_nrf8001_set_key_success(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpuib76ayk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fd_nrf8001_dispatch_set_key_response(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp ne i32 %7, 0
br i1 %8, label %9, label %12
9: ; preds = %3
%10 = load i32, ptr %4, align 4
%11 = call i32 @fd_nrf8001_set_key_error(i32 noundef %10)
br label %14
12: ; preds = %3
%13 = call i32 (...) @fd_nrf8001_set_key_success()
br label %14
14: ; preds = %12, %9
ret void
}
declare i32 @fd_nrf8001_set_key_error(i32 noundef) #1
declare i32 @fd_nrf8001_set_key_success(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE 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_51dw3mo.c'
source_filename = "/tmp/tmp_51dw3mo.c"
target datalayout = "e-m:e-p270: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 = type { i32 }
%struct.sockaddr_in6 = type { %struct.TYPE_3__ }
%struct.TYPE_3__ = type { i32 }
%struct.sockaddr_in = type { %struct.TYPE_4__ }
%struct.TYPE_4__ = type { i32 }
@.str = private unnamed_addr constant [50 x i8] c"sockaddr_addrdata: unsupported protocol family %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @sockaddr_addrdata(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = getelementptr inbounds %struct.sockaddr, ptr %4, i32 0, i32 0
%6 = load i32, ptr %5, align 4
switch i32 %6, label %15 [
i32 128, label %7
i32 129, label %11
]
7: ; preds = %1
%8 = load ptr, ptr %3, align 8
%9 = getelementptr inbounds %struct.sockaddr_in6, ptr %8, i32 0, i32 0
%10 = getelementptr inbounds %struct.TYPE_3__, ptr %9, i32 0, i32 0
store ptr %10, ptr %2, align 8
br label %20
11: ; preds = %1
%12 = load ptr, ptr %3, align 8
%13 = getelementptr inbounds %struct.sockaddr_in, ptr %12, i32 0, i32 0
%14 = getelementptr inbounds %struct.TYPE_4__, ptr %13, i32 0, i32 0
store ptr %14, ptr %2, align 8
br label %20
15: ; preds = %1
%16 = load ptr, ptr %3, align 8
%17 = getelementptr inbounds %struct.sockaddr, ptr %16, i32 0, i32 0
%18 = load i32, ptr %17, align 4
%19 = call i32 @log_print(ptr noundef @.str, i32 noundef %18)
store ptr null, ptr %2, align 8
br label %20
20: ; preds = %15, %11, %7
%21 = load ptr, ptr %2, align 8
ret ptr %21
}
declare i32 @log_print(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_51dw3mo.c"
target datalayout = "e-m:e-p270: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 = type { i32 }
%struct.sockaddr_in6 = type { %struct.TYPE_3__ }
%struct.TYPE_3__ = type { i32 }
%struct.sockaddr_in = type { %struct.TYPE_4__ }
%struct.TYPE_4__ = type { i32 }
@.str = private unnamed_addr constant [50 x i8] c"sockaddr_addrdata: unsupported protocol family %d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @sockaddr_addrdata(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = getelementptr inbounds %struct.sockaddr, ptr %4, i32 0, i32 0
%6 = load i32, ptr %5, align 4
switch i32 %6, label %15 [
i32 128, label %7
i32 129, label %11
]
7: ; preds = %1
%8 = load ptr, ptr %3, align 8
%9 = getelementptr inbounds %struct.sockaddr_in6, ptr %8, i32 0, i32 0
%10 = getelementptr inbounds %struct.TYPE_3__, ptr %9, i32 0, i32 0
store ptr %10, ptr %2, align 8
br label %20
11: ; preds = %1
%12 = load ptr, ptr %3, align 8
%13 = getelementptr inbounds %struct.sockaddr_in, ptr %12, i32 0, i32 0
%14 = getelementptr inbounds %struct.TYPE_4__, ptr %13, i32 0, i32 0
store ptr %14, ptr %2, align 8
br label %20
15: ; preds = %1
%16 = load ptr, ptr %3, align 8
%17 = getelementptr inbounds %struct.sockaddr, ptr %16, i32 0, i32 0
%18 = load i32, ptr %17, align 4
%19 = call i32 @log_print(ptr noundef @.str, i32 noundef %18)
store ptr null, ptr %2, align 8
br label %20
20: ; preds = %15, %11, %7
%21 = load ptr, ptr %2, align 8
ret ptr %21
}
declare i32 @log_print(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/tmpv_81rkn6.c'
source_filename = "/tmp/tmpv_81rkn6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printMessage(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i64 0, ptr %5, align 8
br label %6
6: ; preds = %18, %2
%7 = load i64, ptr %5, align 8
%8 = load i32, ptr %4, align 4
%9 = sext i32 %8 to i64
%10 = icmp ult i64 %7, %9
br i1 %10, label %11, label %21
11: ; preds = %6
%12 = load ptr, ptr %3, align 8
%13 = load i64, ptr %5, align 8
%14 = getelementptr inbounds i8, ptr %12, i64 %13
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %16)
br label %18
18: ; preds = %11
%19 = load i64, ptr %5, align 8
%20 = add i64 %19, 1
store i64 %20, ptr %5, align 8
br label %6, !llvm.loop !6
21: ; preds = %6
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpv_81rkn6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printMessage(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i64 0, ptr %5, align 8
%6 = load i64, ptr %5, align 8
%7 = load i32, ptr %4, align 4
%8 = sext i32 %7 to i64
%9 = icmp ult i64 %6, %8
br i1 %9, label %.lr.ph, label %24
.lr.ph: ; preds = %2
br label %10
10: ; preds = %.lr.ph, %17
%11 = load ptr, ptr %3, align 8
%12 = load i64, ptr %5, align 8
%13 = getelementptr inbounds i8, ptr %11, i64 %12
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %15)
br label %17
17: ; preds = %10
%18 = load i64, ptr %5, align 8
%19 = add i64 %18, 1
store i64 %19, ptr %5, align 8
%20 = load i64, ptr %5, align 8
%21 = load i32, ptr %4, align 4
%22 = sext i32 %21 to i64
%23 = icmp ult i64 %20, %22
br i1 %23, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %24
24: ; preds = %._crit_edge, %2
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpx7myg8rv.c'
source_filename = "/tmp/tmpx7myg8rv.c"
target datalayout = "e-m:e-p270: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/tmpx7myg8rv.c"
target datalayout = "e-m:e-p270: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/tmpmmdh_ts4.c'
source_filename = "/tmp/tmpmmdh_ts4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"domains\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @be_migrate_thread_to_domain(i64 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i64, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
store i64 %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%9 = load i32, ptr %5, align 4
%10 = call i32 @read_mapping(i32 noundef %9, ptr noundef @.str, ptr noundef %7, ptr noundef %8)
store i32 %10, ptr %6, align 4
%11 = load i32, ptr %6, align 4
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %2
%14 = load i32, ptr %6, align 4
store i32 %14, ptr %3, align 4
br label %28
15: ; preds = %2
%16 = load i64, ptr %4, align 8
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %15
%19 = call i64 (...) @gettid()
store i64 %19, ptr %4, align 8
br label %20
20: ; preds = %18, %15
%21 = load i64, ptr %4, align 8
%22 = load i64, ptr %8, align 8
%23 = load ptr, ptr %7, align 8
%24 = call i32 @sched_setaffinity(i64 noundef %21, i64 noundef %22, ptr noundef %23)
store i32 %24, ptr %6, align 4
%25 = load ptr, ptr %7, align 8
%26 = call i32 @CPU_FREE(ptr noundef %25)
%27 = load i32, ptr %6, align 4
store i32 %27, ptr %3, align 4
br label %28
28: ; preds = %20, %13
%29 = load i32, ptr %3, align 4
ret i32 %29
}
declare i32 @read_mapping(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @gettid(...) #1
declare i32 @sched_setaffinity(i64 noundef, i64 noundef, ptr noundef) #1
declare i32 @CPU_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/tmpmmdh_ts4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"domains\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @be_migrate_thread_to_domain(i64 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i64, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
store i64 %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%9 = load i32, ptr %5, align 4
%10 = call i32 @read_mapping(i32 noundef %9, ptr noundef @.str, ptr noundef %7, ptr noundef %8)
store i32 %10, ptr %6, align 4
%11 = load i32, ptr %6, align 4
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %2
%14 = load i32, ptr %6, align 4
store i32 %14, ptr %3, align 4
br label %28
15: ; preds = %2
%16 = load i64, ptr %4, align 8
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %15
%19 = call i64 (...) @gettid()
store i64 %19, ptr %4, align 8
br label %20
20: ; preds = %18, %15
%21 = load i64, ptr %4, align 8
%22 = load i64, ptr %8, align 8
%23 = load ptr, ptr %7, align 8
%24 = call i32 @sched_setaffinity(i64 noundef %21, i64 noundef %22, ptr noundef %23)
store i32 %24, ptr %6, align 4
%25 = load ptr, ptr %7, align 8
%26 = call i32 @CPU_FREE(ptr noundef %25)
%27 = load i32, ptr %6, align 4
store i32 %27, ptr %3, align 4
br label %28
28: ; preds = %20, %13
%29 = load i32, ptr %3, align 4
ret i32 %29
}
declare i32 @read_mapping(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @gettid(...) #1
declare i32 @sched_setaffinity(i64 noundef, i64 noundef, ptr noundef) #1
declare i32 @CPU_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/tmp5vnoxtik.c'
source_filename = "/tmp/tmp5vnoxtik.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @PECIConfigSet(i64 noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, i64 noundef %4, i64 noundef %5) #0 {
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
%13 = alloca i64, align 8
%14 = alloca i64, align 8
store i64 %0, ptr %7, align 8
store i64 %1, ptr %8, align 8
store i64 %2, ptr %9, align 8
store i64 %3, ptr %10, align 8
store i64 %4, ptr %11, align 8
store i64 %5, ptr %12, align 8
%15 = load i64, ptr %7, align 8
%16 = icmp eq i64 %15, 1074462720
%17 = zext i1 %16 to i32
%18 = call i32 @DEBUG_ASSERT(i32 noundef %17)
%19 = load i64, ptr %8, align 8
%20 = icmp ne i64 %19, 0
%21 = zext i1 %20 to i32
%22 = call i32 @DEBUG_ASSERT(i32 noundef %21)
%23 = load i64, ptr %9, align 8
%24 = icmp ne i64 %23, 0
br i1 %24, label %25, label %43
25: ; preds = %6
%26 = load i64, ptr %9, align 8
%27 = icmp ule i64 %26, 4000000
br i1 %27, label %28, label %43
28: ; preds = %25
%29 = load i64, ptr %9, align 8
%30 = icmp uge i64 %29, 2000
br i1 %30, label %31, label %43
31: ; preds = %28
%32 = load i64, ptr %9, align 8
%33 = mul i64 %32, 4
%34 = load volatile i64, ptr inttoptr (i64 1074782208 to ptr), align 8
%35 = and i64 %34, 1895759872
%36 = icmp eq i64 %35, 268763136
%37 = zext i1 %36 to i64
%38 = select i1 %36, i32 10, i32 1
%39 = sext i32 %38 to i64
%40 = mul i64 %33, %39
%41 = load i64, ptr %8, align 8
%42 = icmp ult i64 %40, %41
br label %43
43: ; preds = %31, %28, %25, %6
%44 = phi i1 [ false, %28 ], [ false, %25 ], [ false, %6 ], [ %42, %31 ]
%45 = zext i1 %44 to i32
%46 = call i32 @DEBUG_ASSERT(i32 noundef %45)
%47 = load i64, ptr %10, align 8
%48 = icmp eq i64 %47, 0
br i1 %48, label %57, label %49
49: ; preds = %43
%50 = load i64, ptr %10, align 8
%51 = icmp uge i64 %50, 2
br i1 %51, label %52, label %55
52: ; preds = %49
%53 = load i64, ptr %10, align 8
%54 = icmp ule i64 %53, 1000
br label %55
55: ; preds = %52, %49
%56 = phi i1 [ false, %49 ], [ %54, %52 ]
br label %57
57: ; preds = %55, %43
%58 = phi i1 [ true, %43 ], [ %56, %55 ]
%59 = zext i1 %58 to i32
%60 = call i32 @DEBUG_ASSERT(i32 noundef %59)
%61 = load i64, ptr %11, align 8
%62 = shl i64 %61, 16
%63 = and i64 %62, 4294901760
store i64 %63, ptr %13, align 8
%64 = load i64, ptr %12, align 8
%65 = shl i64 %64, 12
%66 = and i64 %65, 28672
%67 = load i64, ptr %13, align 8
%68 = or i64 %67, %66
store i64 %68, ptr %13, align 8
%69 = load i64, ptr %13, align 8
%70 = load i64, ptr %7, align 8
%71 = add i64 %70, 0
%72 = inttoptr i64 %71 to ptr
store volatile i64 %69, ptr %72, align 8
%73 = load i64, ptr %8, align 8
%74 = load i64, ptr %9, align 8
%75 = mul i64 4, %74
%76 = add i64 %73, %75
%77 = sub i64 %76, 1
%78 = load i64, ptr %9, align 8
%79 = mul i64 4, %78
%80 = udiv i64 %77, %79
store i64 %80, ptr %14, align 8
%81 = load i64, ptr %14, align 8
%82 = load volatile i64, ptr inttoptr (i64 1074782208 to ptr), align 8
%83 = and i64 %82, 1895759872
%84 = icmp eq i64 %83, 268763136
%85 = zext i1 %84 to i64
%86 = select i1 %84, i32 10, i32 1
%87 = sext i32 %86 to i64
%88 = icmp ult i64 %81, %87
br i1 %88, label %89, label %96
89: ; preds = %57
%90 = load volatile i64, ptr inttoptr (i64 1074782208 to ptr), align 8
%91 = and i64 %90, 1895759872
%92 = icmp eq i64 %91, 268763136
%93 = zext i1 %92 to i64
%94 = select i1 %92, i32 10, i32 1
%95 = sext i32 %94 to i64
br label %98
96: ; preds = %57
%97 = load i64, ptr %14, align 8
br label %98
98: ; preds = %96, %89
%99 = phi i64 [ %95, %89 ], [ %97, %96 ]
store i64 %99, ptr %14, align 8
%100 = load i64, ptr %14, align 8
%101 = icmp ugt i64 %100, 65535
br i1 %101, label %102, label %103
102: ; preds = %98
br label %105
103: ; preds = %98
%104 = load i64, ptr %14, align 8
br label %105
105: ; preds = %103, %102
%106 = phi i64 [ 65535, %102 ], [ %104, %103 ]
store i64 %106, ptr %14, align 8
%107 = load i64, ptr %14, align 8
%108 = shl i64 %107, 16
%109 = and i64 %108, 4294901760
store i64 %109, ptr %13, align 8
%110 = load i64, ptr %10, align 8
%111 = icmp eq i64 %110, 0
br i1 %111, label %112, label %113
112: ; preds = %105
br label %120
113: ; preds = %105
%114 = load i64, ptr %8, align 8
%115 = udiv i64 %114, 1000
%116 = load i64, ptr %10, align 8
%117 = mul i64 %115, %116
%118 = add i64 %117, 4095
%119 = udiv i64 %118, 4096
br label %120
120: ; preds = %113, %112
%121 = phi i64 [ 0, %112 ], [ %119, %113 ]
store i64 %121, ptr %14, align 8
%122 = load i64, ptr %14, align 8
%123 = shl i64 %122, 0
%124 = and i64 %123, 65535
%125 = load i64, ptr %13, align 8
%126 = or i64 %125, %124
store i64 %126, ptr %13, align 8
%127 = load i64, ptr %13, align 8
%128 = load i64, ptr %7, align 8
%129 = add i64 %128, 4
%130 = inttoptr i64 %129 to ptr
store volatile i64 %127, ptr %130, align 8
ret void
}
declare i32 @DEBUG_ASSERT(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5vnoxtik.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @PECIConfigSet(i64 noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, i64 noundef %4, i64 noundef %5) #0 {
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca i64, align 8
%12 = alloca i64, align 8
%13 = alloca i64, align 8
%14 = alloca i64, align 8
store i64 %0, ptr %7, align 8
store i64 %1, ptr %8, align 8
store i64 %2, ptr %9, align 8
store i64 %3, ptr %10, align 8
store i64 %4, ptr %11, align 8
store i64 %5, ptr %12, align 8
%15 = load i64, ptr %7, align 8
%16 = icmp eq i64 %15, 1074462720
%17 = zext i1 %16 to i32
%18 = call i32 @DEBUG_ASSERT(i32 noundef %17)
%19 = load i64, ptr %8, align 8
%20 = icmp ne i64 %19, 0
%21 = zext i1 %20 to i32
%22 = call i32 @DEBUG_ASSERT(i32 noundef %21)
%23 = load i64, ptr %9, align 8
%24 = icmp ne i64 %23, 0
br i1 %24, label %25, label %43
25: ; preds = %6
%26 = load i64, ptr %9, align 8
%27 = icmp ule i64 %26, 4000000
br i1 %27, label %28, label %43
28: ; preds = %25
%29 = load i64, ptr %9, align 8
%30 = icmp uge i64 %29, 2000
br i1 %30, label %31, label %43
31: ; preds = %28
%32 = load i64, ptr %9, align 8
%33 = mul i64 %32, 4
%34 = load volatile i64, ptr inttoptr (i64 1074782208 to ptr), align 8
%35 = and i64 %34, 1895759872
%36 = icmp eq i64 %35, 268763136
%37 = zext i1 %36 to i64
%38 = select i1 %36, i32 10, i32 1
%39 = sext i32 %38 to i64
%40 = mul i64 %33, %39
%41 = load i64, ptr %8, align 8
%42 = icmp ult i64 %40, %41
br label %43
43: ; preds = %31, %28, %25, %6
%44 = phi i1 [ false, %28 ], [ false, %25 ], [ false, %6 ], [ %42, %31 ]
%45 = zext i1 %44 to i32
%46 = call i32 @DEBUG_ASSERT(i32 noundef %45)
%47 = load i64, ptr %10, align 8
%48 = icmp eq i64 %47, 0
br i1 %48, label %57, label %49
49: ; preds = %43
%50 = load i64, ptr %10, align 8
%51 = icmp uge i64 %50, 2
br i1 %51, label %52, label %55
52: ; preds = %49
%53 = load i64, ptr %10, align 8
%54 = icmp ule i64 %53, 1000
br label %55
55: ; preds = %52, %49
%56 = phi i1 [ false, %49 ], [ %54, %52 ]
br label %57
57: ; preds = %55, %43
%58 = phi i1 [ true, %43 ], [ %56, %55 ]
%59 = zext i1 %58 to i32
%60 = call i32 @DEBUG_ASSERT(i32 noundef %59)
%61 = load i64, ptr %11, align 8
%62 = shl i64 %61, 16
%63 = and i64 %62, 4294901760
store i64 %63, ptr %13, align 8
%64 = load i64, ptr %12, align 8
%65 = shl i64 %64, 12
%66 = and i64 %65, 28672
%67 = load i64, ptr %13, align 8
%68 = or i64 %67, %66
store i64 %68, ptr %13, align 8
%69 = load i64, ptr %13, align 8
%70 = load i64, ptr %7, align 8
%71 = add i64 %70, 0
%72 = inttoptr i64 %71 to ptr
store volatile i64 %69, ptr %72, align 8
%73 = load i64, ptr %8, align 8
%74 = load i64, ptr %9, align 8
%75 = mul i64 4, %74
%76 = add i64 %73, %75
%77 = sub i64 %76, 1
%78 = load i64, ptr %9, align 8
%79 = mul i64 4, %78
%80 = udiv i64 %77, %79
store i64 %80, ptr %14, align 8
%81 = load i64, ptr %14, align 8
%82 = load volatile i64, ptr inttoptr (i64 1074782208 to ptr), align 8
%83 = and i64 %82, 1895759872
%84 = icmp eq i64 %83, 268763136
%85 = zext i1 %84 to i64
%86 = select i1 %84, i32 10, i32 1
%87 = sext i32 %86 to i64
%88 = icmp ult i64 %81, %87
br i1 %88, label %89, label %96
89: ; preds = %57
%90 = load volatile i64, ptr inttoptr (i64 1074782208 to ptr), align 8
%91 = and i64 %90, 1895759872
%92 = icmp eq i64 %91, 268763136
%93 = zext i1 %92 to i64
%94 = select i1 %92, i32 10, i32 1
%95 = sext i32 %94 to i64
br label %98
96: ; preds = %57
%97 = load i64, ptr %14, align 8
br label %98
98: ; preds = %96, %89
%99 = phi i64 [ %95, %89 ], [ %97, %96 ]
store i64 %99, ptr %14, align 8
%100 = load i64, ptr %14, align 8
%101 = icmp ugt i64 %100, 65535
br i1 %101, label %102, label %103
102: ; preds = %98
br label %105
103: ; preds = %98
%104 = load i64, ptr %14, align 8
br label %105
105: ; preds = %103, %102
%106 = phi i64 [ 65535, %102 ], [ %104, %103 ]
store i64 %106, ptr %14, align 8
%107 = load i64, ptr %14, align 8
%108 = shl i64 %107, 16
%109 = and i64 %108, 4294901760
store i64 %109, ptr %13, align 8
%110 = load i64, ptr %10, align 8
%111 = icmp eq i64 %110, 0
br i1 %111, label %112, label %113
112: ; preds = %105
br label %120
113: ; preds = %105
%114 = load i64, ptr %8, align 8
%115 = udiv i64 %114, 1000
%116 = load i64, ptr %10, align 8
%117 = mul i64 %115, %116
%118 = add i64 %117, 4095
%119 = udiv i64 %118, 4096
br label %120
120: ; preds = %113, %112
%121 = phi i64 [ 0, %112 ], [ %119, %113 ]
store i64 %121, ptr %14, align 8
%122 = load i64, ptr %14, align 8
%123 = shl i64 %122, 0
%124 = and i64 %123, 65535
%125 = load i64, ptr %13, align 8
%126 = or i64 %125, %124
store i64 %126, ptr %13, align 8
%127 = load i64, ptr %13, align 8
%128 = load i64, ptr %7, align 8
%129 = add i64 %128, 4
%130 = inttoptr i64 %129 to ptr
store volatile i64 %127, ptr %130, align 8
ret void
}
declare i32 @DEBUG_ASSERT(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp83v9qzgf.c'
source_filename = "/tmp/tmp83v9qzgf.c"
target datalayout = "e-m:e-p270: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/tmp83v9qzgf.c"
target datalayout = "e-m:e-p270: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/tmpxqehpj9a.c'
source_filename = "/tmp/tmpxqehpj9a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @threereg() #0 {
%1 = call i32 (...) @ldbc()
%2 = call i32 (...) @addbc()
%3 = call i32 (...) @addbc()
ret void
}
declare i32 @ldbc(...) #1
declare i32 @addbc(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxqehpj9a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @threereg() #0 {
%1 = call i32 (...) @ldbc()
%2 = call i32 (...) @addbc()
%3 = call i32 (...) @addbc()
ret void
}
declare i32 @ldbc(...) #1
declare i32 @addbc(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpp6lznd7m.c'
source_filename = "/tmp/tmpp6lznd7m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"HTS_realloc: Cannot allocate memory.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @HTS_realloc(ptr noundef %0, i64 noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load i64, ptr %5, align 8
%9 = load i64, ptr %6, align 8
%10 = mul i64 %8, %9
%11 = call i64 @realloc(ptr noundef %7, i64 noundef %10)
%12 = inttoptr i64 %11 to ptr
store ptr %12, ptr %4, align 8
%13 = load ptr, ptr %4, align 8
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %17
15: ; preds = %3
%16 = call i32 @HTS_error(i32 noundef 1, ptr noundef @.str)
br label %17
17: ; preds = %15, %3
%18 = load ptr, ptr %4, align 8
ret ptr %18
}
declare i64 @realloc(ptr noundef, i64 noundef) #1
declare i32 @HTS_error(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/tmpp6lznd7m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"HTS_realloc: Cannot allocate memory.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @HTS_realloc(ptr noundef %0, i64 noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load i64, ptr %5, align 8
%9 = load i64, ptr %6, align 8
%10 = mul i64 %8, %9
%11 = call i64 @realloc(ptr noundef %7, i64 noundef %10)
%12 = inttoptr i64 %11 to ptr
store ptr %12, ptr %4, align 8
%13 = load ptr, ptr %4, align 8
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %17
15: ; preds = %3
%16 = call i32 @HTS_error(i32 noundef 1, ptr noundef @.str)
br label %17
17: ; preds = %15, %3
%18 = load ptr, ptr %4, align 8
ret ptr %18
}
declare i64 @realloc(ptr noundef, i64 noundef) #1
declare i32 @HTS_error(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/tmp7ka539bb.c'
source_filename = "/tmp/tmp7ka539bb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"Not implemented.\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"Invalid argument for test\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @run(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = getelementptr inbounds ptr, ptr %3, i64 1
%5 = load ptr, ptr %4, align 8
%6 = call i32 @atoi(ptr noundef %5)
switch i32 %6, label %15 [
i32 0, label %7
i32 1, label %9
i32 2, label %11
i32 3, label %13
]
7: ; preds = %1
%8 = call i32 (...) @sequential()
br label %19
9: ; preds = %1
%10 = call i32 (...) @parallel_pthreads()
br label %19
11: ; preds = %1
%12 = call i32 (...) @parallel_openMP()
br label %19
13: ; preds = %1
%14 = call i32 @printf(ptr noundef @.str)
br label %19
15: ; preds = %1
%16 = call i32 @printf(ptr noundef @.str.1)
%17 = call i32 (...) @usage()
%18 = call i32 @exit(i32 noundef 1) #3
unreachable
19: ; preds = %13, %11, %9, %7
ret void
}
declare i32 @atoi(ptr noundef) #1
declare i32 @sequential(...) #1
declare i32 @parallel_pthreads(...) #1
declare i32 @parallel_openMP(...) #1
declare i32 @printf(ptr noundef) #1
declare i32 @usage(...) #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/tmp7ka539bb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"Not implemented.\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"Invalid argument for test\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @run(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = getelementptr inbounds ptr, ptr %3, i64 1
%5 = load ptr, ptr %4, align 8
%6 = call i32 @atoi(ptr noundef %5)
switch i32 %6, label %15 [
i32 0, label %7
i32 1, label %9
i32 2, label %11
i32 3, label %13
]
7: ; preds = %1
%8 = call i32 (...) @sequential()
br label %19
9: ; preds = %1
%10 = call i32 (...) @parallel_pthreads()
br label %19
11: ; preds = %1
%12 = call i32 (...) @parallel_openMP()
br label %19
13: ; preds = %1
%14 = call i32 @printf(ptr noundef @.str)
br label %19
15: ; preds = %1
%16 = call i32 @printf(ptr noundef @.str.1)
%17 = call i32 (...) @usage()
%18 = call i32 @exit(i32 noundef 1) #3
unreachable
19: ; preds = %13, %11, %9, %7
ret void
}
declare i32 @atoi(ptr noundef) #1
declare i32 @sequential(...) #1
declare i32 @parallel_pthreads(...) #1
declare i32 @parallel_openMP(...) #1
declare i32 @printf(ptr noundef) #1
declare i32 @usage(...) #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/tmpjxq3g8wi.c'
source_filename = "/tmp/tmpjxq3g8wi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [34 x i8] c"\0APressione ENTER para continuar.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @pausa() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 (...) @getchar()
ret void
}
declare i32 @printf(ptr noundef) #1
declare i32 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjxq3g8wi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [34 x i8] c"\0APressione ENTER para continuar.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @pausa() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 (...) @getchar()
ret void
}
declare i32 @printf(ptr noundef) #1
declare i32 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1qfg7lnn.c'
source_filename = "/tmp/tmp1qfg7lnn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"hey \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/tmp1qfg7lnn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"hey \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/tmpfxur0w7b.c'
source_filename = "/tmp/tmpfxur0w7b.c"
target datalayout = "e-m:e-p270: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/tmpfxur0w7b.c"
target datalayout = "e-m:e-p270: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/tmpu1h56kfg.c'
source_filename = "/tmp/tmpu1h56kfg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @receiver(i8 noundef signext %0, i8 noundef signext %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca i8, align 1
%8 = alloca i8, align 1
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca i8, align 1
%17 = alloca ptr, align 8
%18 = alloca ptr, align 8
%19 = alloca ptr, align 8
%20 = alloca ptr, align 8
%21 = alloca ptr, align 8
%22 = alloca ptr, align 8
%23 = alloca ptr, align 8
%24 = alloca ptr, align 8
%25 = alloca ptr, align 8
%26 = alloca ptr, align 8
%27 = alloca ptr, align 8
store i8 %0, ptr %7, align 1
store i8 %1, ptr %8, align 1
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
%28 = call ptr @network_bind_and_accept(i32 noundef 345345)
store ptr %28, ptr %13, align 8
%29 = call ptr @create_data_item(ptr noundef %7, i32 noundef 1)
store ptr %29, ptr %14, align 8
%30 = load ptr, ptr %13, align 8
%31 = call ptr @network_receive(ptr noundef %30)
store ptr %31, ptr %15, align 8
%32 = load ptr, ptr %15, align 8
%33 = call i32 @check_is_data(ptr noundef %32)
%34 = load ptr, ptr %15, align 8
%35 = call signext i8 @item_get_data_as_char(ptr noundef %34)
store i8 %35, ptr %16, align 1
%36 = load i8, ptr %16, align 1
%37 = load ptr, ptr %10, align 8
%38 = call ptr @retreive_public_key(i8 noundef signext %36, ptr noundef %37, i32 noundef 234234)
store ptr %38, ptr %17, align 8
%39 = load ptr, ptr %17, align 8
%40 = call i32 @check_is_public_key(ptr noundef %39)
store ptr null, ptr %18, align 8
%41 = load ptr, ptr %13, align 8
%42 = call ptr @network_receive(ptr noundef %41)
store ptr %42, ptr %19, align 8
%43 = load i8, ptr %7, align 1
%44 = load ptr, ptr %17, align 8
%45 = load ptr, ptr %9, align 8
%46 = load ptr, ptr %19, align 8
%47 = call ptr @asymmetric_authenticated_decryption(i8 noundef signext %43, ptr noundef %44, ptr noundef %45, ptr noundef %46)
store ptr %47, ptr %20, align 8
%48 = load ptr, ptr %20, align 8
%49 = call ptr @pair_get_first(ptr noundef %48)
store ptr %49, ptr %21, align 8
%50 = load ptr, ptr %15, align 8
%51 = load ptr, ptr %21, align 8
%52 = call i32 @item_equals(ptr noundef %50, ptr noundef %51)
%53 = icmp ne i32 %52, 0
br i1 %53, label %56, label %54
54: ; preds = %6
%55 = call i32 (...) @abort() #3
unreachable
56: ; preds = %6
%57 = load ptr, ptr %20, align 8
%58 = call ptr @pair_get_second(ptr noundef %57)
store ptr %58, ptr %18, align 8
%59 = load ptr, ptr %18, align 8
%60 = call i32 @check_is_nonce(ptr noundef %59)
%61 = load ptr, ptr %19, align 8
%62 = call i32 @item_free(ptr noundef %61)
%63 = load ptr, ptr %20, align 8
%64 = call i32 @item_free(ptr noundef %63)
%65 = load ptr, ptr %21, align 8
%66 = call i32 @item_free(ptr noundef %65)
%67 = call ptr (...) @create_nonce()
store ptr %67, ptr %22, align 8
%68 = load ptr, ptr %18, align 8
%69 = load ptr, ptr %22, align 8
%70 = call ptr @create_pair(ptr noundef %68, ptr noundef %69)
store ptr %70, ptr %23, align 8
%71 = load ptr, ptr %14, align 8
%72 = load ptr, ptr %23, align 8
%73 = call ptr @create_pair(ptr noundef %71, ptr noundef %72)
store ptr %73, ptr %24, align 8
%74 = load i8, ptr %16, align 1
%75 = load ptr, ptr %17, align 8
%76 = load ptr, ptr %9, align 8
%77 = load ptr, ptr %24, align 8
%78 = call ptr @asymmetric_authenticated_encryption(i8 noundef signext %74, ptr noundef %75, ptr noundef %76, ptr noundef %77)
store ptr %78, ptr %25, align 8
%79 = load ptr, ptr %13, align 8
%80 = load ptr, ptr %25, align 8
%81 = call i32 @network_send(ptr noundef %79, ptr noundef %80)
%82 = load ptr, ptr %25, align 8
%83 = call i32 @item_free(ptr noundef %82)
%84 = load ptr, ptr %23, align 8
%85 = call i32 @item_free(ptr noundef %84)
%86 = load ptr, ptr %24, align 8
%87 = call i32 @item_free(ptr noundef %86)
%88 = load ptr, ptr %13, align 8
%89 = call ptr @network_receive(ptr noundef %88)
store ptr %89, ptr %26, align 8
%90 = load i8, ptr %7, align 1
%91 = load ptr, ptr %17, align 8
%92 = load ptr, ptr %9, align 8
%93 = load ptr, ptr %26, align 8
%94 = call ptr @asymmetric_authenticated_decryption(i8 noundef signext %90, ptr noundef %91, ptr noundef %92, ptr noundef %93)
store ptr %94, ptr %27, align 8
%95 = load ptr, ptr %22, align 8
%96 = load ptr, ptr %27, align 8
%97 = call i32 @item_equals(ptr noundef %95, ptr noundef %96)
%98 = icmp ne i32 %97, 0
br i1 %98, label %101, label %99
99: ; preds = %56
%100 = call i32 (...) @abort() #3
unreachable
101: ; preds = %56
%102 = load ptr, ptr %26, align 8
%103 = call i32 @item_free(ptr noundef %102)
%104 = load ptr, ptr %27, align 8
%105 = call i32 @item_free(ptr noundef %104)
%106 = load ptr, ptr %15, align 8
%107 = call i32 @item_free(ptr noundef %106)
%108 = load ptr, ptr %14, align 8
%109 = call i32 @item_free(ptr noundef %108)
%110 = load ptr, ptr %17, align 8
%111 = call i32 @item_free(ptr noundef %110)
%112 = load ptr, ptr %18, align 8
%113 = load ptr, ptr %11, align 8
store ptr %112, ptr %113, align 8
%114 = load ptr, ptr %22, align 8
%115 = load ptr, ptr %12, align 8
store ptr %114, ptr %115, align 8
%116 = load ptr, ptr %13, align 8
%117 = call i32 @network_disconnect(ptr noundef %116)
%118 = load i8, ptr %16, align 1
%119 = sext i8 %118 to i32
ret i32 %119
}
declare ptr @network_bind_and_accept(i32 noundef) #1
declare ptr @create_data_item(ptr noundef, i32 noundef) #1
declare ptr @network_receive(ptr noundef) #1
declare i32 @check_is_data(ptr noundef) #1
declare signext i8 @item_get_data_as_char(ptr noundef) #1
declare ptr @retreive_public_key(i8 noundef signext, ptr noundef, i32 noundef) #1
declare i32 @check_is_public_key(ptr noundef) #1
declare ptr @asymmetric_authenticated_decryption(i8 noundef signext, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @pair_get_first(ptr noundef) #1
declare i32 @item_equals(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
declare ptr @pair_get_second(ptr noundef) #1
declare i32 @check_is_nonce(ptr noundef) #1
declare i32 @item_free(ptr noundef) #1
declare ptr @create_nonce(...) #1
declare ptr @create_pair(ptr noundef, ptr noundef) #1
declare ptr @asymmetric_authenticated_encryption(i8 noundef signext, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @network_send(ptr noundef, ptr noundef) #1
declare i32 @network_disconnect(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpu1h56kfg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @receiver(i8 noundef signext %0, i8 noundef signext %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca i8, align 1
%8 = alloca i8, align 1
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca i8, align 1
%17 = alloca ptr, align 8
%18 = alloca ptr, align 8
%19 = alloca ptr, align 8
%20 = alloca ptr, align 8
%21 = alloca ptr, align 8
%22 = alloca ptr, align 8
%23 = alloca ptr, align 8
%24 = alloca ptr, align 8
%25 = alloca ptr, align 8
%26 = alloca ptr, align 8
%27 = alloca ptr, align 8
store i8 %0, ptr %7, align 1
store i8 %1, ptr %8, align 1
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
%28 = call ptr @network_bind_and_accept(i32 noundef 345345)
store ptr %28, ptr %13, align 8
%29 = call ptr @create_data_item(ptr noundef %7, i32 noundef 1)
store ptr %29, ptr %14, align 8
%30 = load ptr, ptr %13, align 8
%31 = call ptr @network_receive(ptr noundef %30)
store ptr %31, ptr %15, align 8
%32 = load ptr, ptr %15, align 8
%33 = call i32 @check_is_data(ptr noundef %32)
%34 = load ptr, ptr %15, align 8
%35 = call signext i8 @item_get_data_as_char(ptr noundef %34)
store i8 %35, ptr %16, align 1
%36 = load i8, ptr %16, align 1
%37 = load ptr, ptr %10, align 8
%38 = call ptr @retreive_public_key(i8 noundef signext %36, ptr noundef %37, i32 noundef 234234)
store ptr %38, ptr %17, align 8
%39 = load ptr, ptr %17, align 8
%40 = call i32 @check_is_public_key(ptr noundef %39)
store ptr null, ptr %18, align 8
%41 = load ptr, ptr %13, align 8
%42 = call ptr @network_receive(ptr noundef %41)
store ptr %42, ptr %19, align 8
%43 = load i8, ptr %7, align 1
%44 = load ptr, ptr %17, align 8
%45 = load ptr, ptr %9, align 8
%46 = load ptr, ptr %19, align 8
%47 = call ptr @asymmetric_authenticated_decryption(i8 noundef signext %43, ptr noundef %44, ptr noundef %45, ptr noundef %46)
store ptr %47, ptr %20, align 8
%48 = load ptr, ptr %20, align 8
%49 = call ptr @pair_get_first(ptr noundef %48)
store ptr %49, ptr %21, align 8
%50 = load ptr, ptr %15, align 8
%51 = load ptr, ptr %21, align 8
%52 = call i32 @item_equals(ptr noundef %50, ptr noundef %51)
%53 = icmp ne i32 %52, 0
br i1 %53, label %56, label %54
54: ; preds = %6
%55 = call i32 (...) @abort() #3
unreachable
56: ; preds = %6
%57 = load ptr, ptr %20, align 8
%58 = call ptr @pair_get_second(ptr noundef %57)
store ptr %58, ptr %18, align 8
%59 = load ptr, ptr %18, align 8
%60 = call i32 @check_is_nonce(ptr noundef %59)
%61 = load ptr, ptr %19, align 8
%62 = call i32 @item_free(ptr noundef %61)
%63 = load ptr, ptr %20, align 8
%64 = call i32 @item_free(ptr noundef %63)
%65 = load ptr, ptr %21, align 8
%66 = call i32 @item_free(ptr noundef %65)
%67 = call ptr (...) @create_nonce()
store ptr %67, ptr %22, align 8
%68 = load ptr, ptr %18, align 8
%69 = load ptr, ptr %22, align 8
%70 = call ptr @create_pair(ptr noundef %68, ptr noundef %69)
store ptr %70, ptr %23, align 8
%71 = load ptr, ptr %14, align 8
%72 = load ptr, ptr %23, align 8
%73 = call ptr @create_pair(ptr noundef %71, ptr noundef %72)
store ptr %73, ptr %24, align 8
%74 = load i8, ptr %16, align 1
%75 = load ptr, ptr %17, align 8
%76 = load ptr, ptr %9, align 8
%77 = load ptr, ptr %24, align 8
%78 = call ptr @asymmetric_authenticated_encryption(i8 noundef signext %74, ptr noundef %75, ptr noundef %76, ptr noundef %77)
store ptr %78, ptr %25, align 8
%79 = load ptr, ptr %13, align 8
%80 = load ptr, ptr %25, align 8
%81 = call i32 @network_send(ptr noundef %79, ptr noundef %80)
%82 = load ptr, ptr %25, align 8
%83 = call i32 @item_free(ptr noundef %82)
%84 = load ptr, ptr %23, align 8
%85 = call i32 @item_free(ptr noundef %84)
%86 = load ptr, ptr %24, align 8
%87 = call i32 @item_free(ptr noundef %86)
%88 = load ptr, ptr %13, align 8
%89 = call ptr @network_receive(ptr noundef %88)
store ptr %89, ptr %26, align 8
%90 = load i8, ptr %7, align 1
%91 = load ptr, ptr %17, align 8
%92 = load ptr, ptr %9, align 8
%93 = load ptr, ptr %26, align 8
%94 = call ptr @asymmetric_authenticated_decryption(i8 noundef signext %90, ptr noundef %91, ptr noundef %92, ptr noundef %93)
store ptr %94, ptr %27, align 8
%95 = load ptr, ptr %22, align 8
%96 = load ptr, ptr %27, align 8
%97 = call i32 @item_equals(ptr noundef %95, ptr noundef %96)
%98 = icmp ne i32 %97, 0
br i1 %98, label %101, label %99
99: ; preds = %56
%100 = call i32 (...) @abort() #3
unreachable
101: ; preds = %56
%102 = load ptr, ptr %26, align 8
%103 = call i32 @item_free(ptr noundef %102)
%104 = load ptr, ptr %27, align 8
%105 = call i32 @item_free(ptr noundef %104)
%106 = load ptr, ptr %15, align 8
%107 = call i32 @item_free(ptr noundef %106)
%108 = load ptr, ptr %14, align 8
%109 = call i32 @item_free(ptr noundef %108)
%110 = load ptr, ptr %17, align 8
%111 = call i32 @item_free(ptr noundef %110)
%112 = load ptr, ptr %18, align 8
%113 = load ptr, ptr %11, align 8
store ptr %112, ptr %113, align 8
%114 = load ptr, ptr %22, align 8
%115 = load ptr, ptr %12, align 8
store ptr %114, ptr %115, align 8
%116 = load ptr, ptr %13, align 8
%117 = call i32 @network_disconnect(ptr noundef %116)
%118 = load i8, ptr %16, align 1
%119 = sext i8 %118 to i32
ret i32 %119
}
declare ptr @network_bind_and_accept(i32 noundef) #1
declare ptr @create_data_item(ptr noundef, i32 noundef) #1
declare ptr @network_receive(ptr noundef) #1
declare i32 @check_is_data(ptr noundef) #1
declare signext i8 @item_get_data_as_char(ptr noundef) #1
declare ptr @retreive_public_key(i8 noundef signext, ptr noundef, i32 noundef) #1
declare i32 @check_is_public_key(ptr noundef) #1
declare ptr @asymmetric_authenticated_decryption(i8 noundef signext, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @pair_get_first(ptr noundef) #1
declare i32 @item_equals(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
declare ptr @pair_get_second(ptr noundef) #1
declare i32 @check_is_nonce(ptr noundef) #1
declare i32 @item_free(ptr noundef) #1
declare ptr @create_nonce(...) #1
declare ptr @create_pair(ptr noundef, ptr noundef) #1
declare ptr @asymmetric_authenticated_encryption(i8 noundef signext, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @network_send(ptr noundef, ptr noundef) #1
declare i32 @network_disconnect(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmp47086gj9.c'
source_filename = "/tmp/tmp47086gj9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @__SLIC_local_irq_enable() #0 {
%1 = call i32 (...) @__SLIC_fun_local_irq_enable_call()
%2 = call i32 (...) @__SLIC_fun_local_irq_enable_entry()
%3 = call i32 (...) @__SLIC_fun_local_irq_enable_exit()
%4 = call i32 (...) @__SLIC_fun_local_irq_enable_return()
ret void
}
declare i32 @__SLIC_fun_local_irq_enable_call(...) #1
declare i32 @__SLIC_fun_local_irq_enable_entry(...) #1
declare i32 @__SLIC_fun_local_irq_enable_exit(...) #1
declare i32 @__SLIC_fun_local_irq_enable_return(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp47086gj9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @__SLIC_local_irq_enable() #0 {
%1 = call i32 (...) @__SLIC_fun_local_irq_enable_call()
%2 = call i32 (...) @__SLIC_fun_local_irq_enable_entry()
%3 = call i32 (...) @__SLIC_fun_local_irq_enable_exit()
%4 = call i32 (...) @__SLIC_fun_local_irq_enable_return()
ret void
}
declare i32 @__SLIC_fun_local_irq_enable_call(...) #1
declare i32 @__SLIC_fun_local_irq_enable_entry(...) #1
declare i32 @__SLIC_fun_local_irq_enable_exit(...) #1
declare i32 @__SLIC_fun_local_irq_enable_return(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpnwqk9dmf.c'
source_filename = "/tmp/tmpnwqk9dmf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"ripright\00", align 1
@LOG_DAEMON = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @LogInit() #0 {
%1 = load i32, ptr @LOG_DAEMON, align 4
%2 = call i32 @openlog(ptr noundef @.str, i32 noundef 0, i32 noundef %1)
ret void
}
declare i32 @openlog(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/tmpnwqk9dmf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"ripright\00", align 1
@LOG_DAEMON = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @LogInit() #0 {
%1 = load i32, ptr @LOG_DAEMON, align 4
%2 = call i32 @openlog(ptr noundef @.str, i32 noundef 0, i32 noundef %1)
ret void
}
declare i32 @openlog(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/tmp28m9chj3.c'
source_filename = "/tmp/tmp28m9chj3.c"
target datalayout = "e-m:e-p270: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.passwd = type { ptr }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @username_from_id(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = call ptr @getpwuid(i32 noundef %4)
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %9
8: ; preds = %1
br label %13
9: ; preds = %1
%10 = load ptr, ptr %3, align 8
%11 = getelementptr inbounds %struct.passwd, ptr %10, i32 0, i32 0
%12 = load ptr, ptr %11, align 8
br label %13
13: ; preds = %9, %8
%14 = phi ptr [ null, %8 ], [ %12, %9 ]
ret ptr %14
}
declare ptr @getpwuid(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/tmp28m9chj3.c"
target datalayout = "e-m:e-p270: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.passwd = type { ptr }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @username_from_id(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = call ptr @getpwuid(i32 noundef %4)
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %9
8: ; preds = %1
br label %13
9: ; preds = %1
%10 = load ptr, ptr %3, align 8
%11 = getelementptr inbounds %struct.passwd, ptr %10, i32 0, i32 0
%12 = load ptr, ptr %11, align 8
br label %13
13: ; preds = %9, %8
%14 = phi ptr [ null, %8 ], [ %12, %9 ]
ret ptr %14
}
declare ptr @getpwuid(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_sdr3rjo.c'
source_filename = "/tmp/tmp_sdr3rjo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [35 x i8] c"Please enter a positive integer. \0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [33 x i8] c"The binary representation is %d.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%11 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
br label %12
12: ; preds = %15, %0
%13 = load i32, ptr %2, align 4
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %26
15: ; preds = %12
%16 = load i32, ptr %2, align 4
%17 = srem i32 %16, 2
store i32 %17, ptr %3, align 4
%18 = load i32, ptr %2, align 4
%19 = sdiv i32 %18, 2
store i32 %19, ptr %2, align 4
%20 = load i32, ptr %4, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %4, align 4
%22 = load i32, ptr %6, align 4
%23 = mul nsw i32 %22, 10
%24 = load i32, ptr %3, align 4
%25 = add nsw i32 %23, %24
store i32 %25, ptr %6, align 4
br label %12, !llvm.loop !6
26: ; preds = %12
%27 = load i32, ptr %6, align 4
store i32 %27, ptr %9, align 4
br label %28
28: ; preds = %31, %26
%29 = load i32, ptr %6, align 4
%30 = icmp ne i32 %29, 0
br i1 %30, label %31, label %36
31: ; preds = %28
%32 = load i32, ptr %6, align 4
%33 = sdiv i32 %32, 10
store i32 %33, ptr %6, align 4
%34 = load i32, ptr %7, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %7, align 4
br label %28, !llvm.loop !8
36: ; preds = %28
%37 = load i32, ptr %4, align 4
%38 = load i32, ptr %7, align 4
%39 = sub nsw i32 %37, %38
store i32 %39, ptr %5, align 4
br label %40
40: ; preds = %43, %36
%41 = load i32, ptr %9, align 4
%42 = icmp ne i32 %41, 0
br i1 %42, label %43, label %52
43: ; preds = %40
%44 = load i32, ptr %9, align 4
%45 = srem i32 %44, 10
store i32 %45, ptr %3, align 4
%46 = load i32, ptr %9, align 4
%47 = sdiv i32 %46, 10
store i32 %47, ptr %9, align 4
%48 = load i32, ptr %8, align 4
%49 = mul nsw i32 %48, 10
%50 = load i32, ptr %3, align 4
%51 = add nsw i32 %49, %50
store i32 %51, ptr %8, align 4
br label %40, !llvm.loop !9
52: ; preds = %40
%53 = load i32, ptr %8, align 4
%54 = load i32, ptr %5, align 4
%55 = call i32 @pow(i32 noundef 10, i32 noundef %54)
%56 = mul nsw i32 %53, %55
store i32 %56, ptr %8, align 4
%57 = load i32, ptr %8, align 4
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %57)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @pow(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}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_sdr3rjo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [35 x i8] c"Please enter a positive integer. \0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [33 x i8] c"The binary representation is %d.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
store i32 0, ptr %9, align 4
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%11 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%12 = load i32, ptr %2, align 4
%13 = icmp ne i32 %12, 0
br i1 %13, label %.lr.ph, label %27
.lr.ph: ; preds = %0
br label %14
14: ; preds = %.lr.ph, %14
%15 = load i32, ptr %2, align 4
%16 = srem i32 %15, 2
store i32 %16, ptr %3, align 4
%17 = load i32, ptr %2, align 4
%18 = sdiv i32 %17, 2
store i32 %18, ptr %2, align 4
%19 = load i32, ptr %4, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %4, align 4
%21 = load i32, ptr %6, align 4
%22 = mul nsw i32 %21, 10
%23 = load i32, ptr %3, align 4
%24 = add nsw i32 %22, %23
store i32 %24, ptr %6, align 4
%25 = load i32, ptr %2, align 4
%26 = icmp ne i32 %25, 0
br i1 %26, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %14
br label %27
27: ; preds = %._crit_edge, %0
%28 = load i32, ptr %6, align 4
store i32 %28, ptr %9, align 4
%29 = load i32, ptr %6, align 4
%30 = icmp ne i32 %29, 0
br i1 %30, label %.lr.ph2, label %38
.lr.ph2: ; preds = %27
br label %31
31: ; preds = %.lr.ph2, %31
%32 = load i32, ptr %6, align 4
%33 = sdiv i32 %32, 10
store i32 %33, ptr %6, align 4
%34 = load i32, ptr %7, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %7, align 4
%36 = load i32, ptr %6, align 4
%37 = icmp ne i32 %36, 0
br i1 %37, label %31, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %31
br label %38
38: ; preds = %._crit_edge3, %27
%39 = load i32, ptr %4, align 4
%40 = load i32, ptr %7, align 4
%41 = sub nsw i32 %39, %40
store i32 %41, ptr %5, align 4
%42 = load i32, ptr %9, align 4
%43 = icmp ne i32 %42, 0
br i1 %43, label %.lr.ph5, label %55
.lr.ph5: ; preds = %38
br label %44
44: ; preds = %.lr.ph5, %44
%45 = load i32, ptr %9, align 4
%46 = srem i32 %45, 10
store i32 %46, ptr %3, align 4
%47 = load i32, ptr %9, align 4
%48 = sdiv i32 %47, 10
store i32 %48, ptr %9, align 4
%49 = load i32, ptr %8, align 4
%50 = mul nsw i32 %49, 10
%51 = load i32, ptr %3, align 4
%52 = add nsw i32 %50, %51
store i32 %52, ptr %8, align 4
%53 = load i32, ptr %9, align 4
%54 = icmp ne i32 %53, 0
br i1 %54, label %44, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %44
br label %55
55: ; preds = %._crit_edge6, %38
%56 = load i32, ptr %8, align 4
%57 = load i32, ptr %5, align 4
%58 = call i32 @pow(i32 noundef 10, i32 noundef %57)
%59 = mul nsw i32 %56, %58
store i32 %59, ptr %8, align 4
%60 = load i32, ptr %8, align 4
%61 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %60)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @pow(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}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpp1wif_ks.c'
source_filename = "/tmp/tmpp1wif_ks.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"hello.txt\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [26 x i8] c"Error in open: errno=%d.\0A\00", align 1
@errno = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [20 x i8] c"open() successful.\0A\00", align 1
@.str.3 = private unnamed_addr constant [17 x i8] c"Read: %d bytes.\0A\00", align 1
@.str.4 = private unnamed_addr constant [26 x i8] c"Error in read: errno=%d.\0A\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.6 = private unnamed_addr constant [27 x i8] c"Error in close: errno=%d.\0A\00", align 1
@.str.7 = private unnamed_addr constant [21 x i8] c"close() successful.\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 [1024 x i8], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store ptr @.str, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = load i32, ptr @O_RDONLY, align 4
%8 = call i32 @open(ptr noundef %6, i32 noundef %7)
store i32 %8, ptr %4, align 4
store i32 0, ptr %5, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp eq i32 %9, -1
br i1 %10, label %11, label %14
11: ; preds = %0
%12 = load i32, ptr @errno, align 4
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %12)
br label %46
14: ; preds = %0
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %16
16: ; preds = %33, %14
%17 = load i32, ptr %4, align 4
%18 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%19 = call i32 @read(i32 noundef %17, ptr noundef %18, i32 noundef 1024)
store i32 %19, ptr %5, align 4
%20 = load i32, ptr %5, align 4
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %20)
%22 = load i32, ptr %5, align 4
%23 = icmp eq i32 %22, -1
br i1 %23, label %24, label %27
24: ; preds = %16
%25 = load i32, ptr @errno, align 4
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %25)
br label %36
27: ; preds = %16
%28 = load i32, ptr %5, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 %29
store i8 0, ptr %30, align 1
%31 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %31)
br label %33
33: ; preds = %27
%34 = load i32, ptr %5, align 4
%35 = icmp sgt i32 %34, 0
br i1 %35, label %16, label %36, !llvm.loop !6
36: ; preds = %33, %24
%37 = load i32, ptr %4, align 4
%38 = call i64 @close(i32 noundef %37)
%39 = icmp ne i64 %38, 0
br i1 %39, label %40, label %43
40: ; preds = %36
%41 = load i32, ptr @errno, align 4
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %41)
br label %45
43: ; preds = %36
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %45
45: ; preds = %43, %40
br label %46
46: ; preds = %45, %11
ret i32 0
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpp1wif_ks.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"hello.txt\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [26 x i8] c"Error in open: errno=%d.\0A\00", align 1
@errno = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [20 x i8] c"open() successful.\0A\00", align 1
@.str.3 = private unnamed_addr constant [17 x i8] c"Read: %d bytes.\0A\00", align 1
@.str.4 = private unnamed_addr constant [26 x i8] c"Error in read: errno=%d.\0A\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.6 = private unnamed_addr constant [27 x i8] c"Error in close: errno=%d.\0A\00", align 1
@.str.7 = private unnamed_addr constant [21 x i8] c"close() successful.\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 [1024 x i8], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store ptr @.str, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = load i32, ptr @O_RDONLY, align 4
%8 = call i32 @open(ptr noundef %6, i32 noundef %7)
store i32 %8, ptr %4, align 4
store i32 0, ptr %5, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp eq i32 %9, -1
br i1 %10, label %11, label %14
11: ; preds = %0
%12 = load i32, ptr @errno, align 4
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %12)
br label %46
14: ; preds = %0
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %16
16: ; preds = %33, %14
%17 = load i32, ptr %4, align 4
%18 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%19 = call i32 @read(i32 noundef %17, ptr noundef %18, i32 noundef 1024)
store i32 %19, ptr %5, align 4
%20 = load i32, ptr %5, align 4
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %20)
%22 = load i32, ptr %5, align 4
%23 = icmp eq i32 %22, -1
br i1 %23, label %24, label %27
24: ; preds = %16
%25 = load i32, ptr @errno, align 4
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %25)
br label %36
27: ; preds = %16
%28 = load i32, ptr %5, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 %29
store i8 0, ptr %30, align 1
%31 = getelementptr inbounds [1024 x i8], ptr %3, i64 0, i64 0
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %31)
br label %33
33: ; preds = %27
%34 = load i32, ptr %5, align 4
%35 = icmp sgt i32 %34, 0
br i1 %35, label %16, label %.loopexit, !llvm.loop !6
.loopexit: ; preds = %33
br label %36
36: ; preds = %.loopexit, %24
%37 = load i32, ptr %4, align 4
%38 = call i64 @close(i32 noundef %37)
%39 = icmp ne i64 %38, 0
br i1 %39, label %40, label %43
40: ; preds = %36
%41 = load i32, ptr @errno, align 4
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %41)
br label %45
43: ; preds = %36
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %45
45: ; preds = %43, %40
br label %46
46: ; preds = %45, %11
ret i32 0
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpta3o5zj1.c'
source_filename = "/tmp/tmpta3o5zj1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @computeChordDist(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
store double %0, ptr %3, align 8
store double %1, ptr %4, align 8
%6 = load double, ptr %4, align 8
%7 = call double @convertFromDegToRad(double noundef %6)
store double %7, ptr %5, align 8
%8 = load double, ptr %3, align 8
%9 = fmul double 2.000000e+00, %8
%10 = load double, ptr %5, align 8
%11 = fdiv double %10, 2.000000e+00
%12 = call double @sin(double noundef %11) #3
%13 = fmul double %9, %12
ret double %13
}
declare double @convertFromDegToRad(double noundef) #1
; Function Attrs: nounwind
declare double @sin(double noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpta3o5zj1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @computeChordDist(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
store double %0, ptr %3, align 8
store double %1, ptr %4, align 8
%6 = load double, ptr %4, align 8
%7 = call double @convertFromDegToRad(double noundef %6)
store double %7, ptr %5, align 8
%8 = load double, ptr %3, align 8
%9 = fmul double 2.000000e+00, %8
%10 = load double, ptr %5, align 8
%11 = fdiv double %10, 2.000000e+00
%12 = call double @sin(double noundef %11) #3
%13 = fmul double %9, %12
ret double %13
}
declare double @convertFromDegToRad(double noundef) #1
; Function Attrs: nounwind
declare double @sin(double noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdan78mud.c'
source_filename = "/tmp/tmpdan78mud.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @quatVectorf(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%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 i32, align 4
%11 = alloca [3 x float], align 4
%12 = alloca [3 x float], align 4
%13 = alloca [3 x float], align 4
%14 = alloca float, align 4
%15 = alloca [3 x float], align 4
%16 = alloca float, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%17 = load i32, ptr %8, align 4
%18 = sitofp i32 %17 to float
store float %18, ptr %16, align 4
%19 = load ptr, ptr %5, align 8
%20 = getelementptr inbounds float, ptr %19, i64 0
%21 = load float, ptr %20, align 4
store float %21, ptr %14, align 4
%22 = load float, ptr %16, align 4
%23 = load ptr, ptr %5, align 8
%24 = getelementptr inbounds float, ptr %23, i64 1
%25 = load float, ptr %24, align 4
%26 = fmul float %22, %25
%27 = getelementptr inbounds [3 x float], ptr %13, i64 0, i64 0
store float %26, ptr %27, align 4
%28 = load float, ptr %16, align 4
%29 = load ptr, ptr %5, align 8
%30 = getelementptr inbounds float, ptr %29, i64 2
%31 = load float, ptr %30, align 4
%32 = fmul float %28, %31
%33 = getelementptr inbounds [3 x float], ptr %13, i64 0, i64 1
store float %32, ptr %33, align 4
%34 = load float, ptr %16, align 4
%35 = load ptr, ptr %5, align 8
%36 = getelementptr inbounds float, ptr %35, i64 3
%37 = load float, ptr %36, align 4
%38 = fmul float %34, %37
%39 = getelementptr inbounds [3 x float], ptr %13, i64 0, i64 2
store float %38, ptr %39, align 4
store i32 0, ptr %9, align 4
br label %40
40: ; preds = %52, %4
%41 = load i32, ptr %9, align 4
%42 = icmp slt i32 %41, 3
br i1 %42, label %43, label %55
43: ; preds = %40
%44 = load ptr, ptr %6, align 8
%45 = load i32, ptr %9, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds float, ptr %44, i64 %46
%48 = load float, ptr %47, align 4
%49 = load i32, ptr %9, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [3 x float], ptr %11, i64 0, i64 %50
store float %48, ptr %51, align 4
br label %52
52: ; preds = %43
%53 = load i32, ptr %9, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %9, align 4
br label %40, !llvm.loop !6
55: ; preds = %40
%56 = getelementptr inbounds [3 x float], ptr %13, i64 0, i64 0
%57 = getelementptr inbounds [3 x float], ptr %11, i64 0, i64 0
%58 = getelementptr inbounds [3 x float], ptr %12, i64 0, i64 0
%59 = call i32 @crosspf(ptr noundef %56, ptr noundef %57, ptr noundef %58)
store i32 %59, ptr %10, align 4
store i32 0, ptr %9, align 4
br label %60
60: ; preds = %74, %55
%61 = load i32, ptr %9, align 4
%62 = icmp slt i32 %61, 3
br i1 %62, label %63, label %77
63: ; preds = %60
%64 = load float, ptr %14, align 4
%65 = load i32, ptr %9, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [3 x float], ptr %11, i64 0, i64 %66
%68 = load float, ptr %67, align 4
%69 = load i32, ptr %9, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [3 x float], ptr %12, i64 0, i64 %70
%72 = load float, ptr %71, align 4
%73 = call float @llvm.fmuladd.f32(float %64, float %68, float %72)
store float %73, ptr %71, align 4
br label %74
74: ; preds = %63
%75 = load i32, ptr %9, align 4
%76 = add nsw i32 %75, 1
store i32 %76, ptr %9, align 4
br label %60, !llvm.loop !8
77: ; preds = %60
%78 = getelementptr inbounds [3 x float], ptr %13, i64 0, i64 0
%79 = getelementptr inbounds [3 x float], ptr %12, i64 0, i64 0
%80 = getelementptr inbounds [3 x float], ptr %15, i64 0, i64 0
%81 = call i32 @crosspf(ptr noundef %78, ptr noundef %79, ptr noundef %80)
store i32 %81, ptr %10, align 4
store i32 0, ptr %9, align 4
br label %82
82: ; preds = %102, %77
%83 = load i32, ptr %9, align 4
%84 = icmp slt i32 %83, 3
br i1 %84, label %85, label %105
85: ; preds = %82
%86 = load i32, ptr %9, align 4
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds [3 x float], ptr %15, i64 0, i64 %87
%89 = load float, ptr %88, align 4
%90 = fpext float %89 to double
%91 = load i32, ptr %9, align 4
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds [3 x float], ptr %11, i64 0, i64 %92
%94 = load float, ptr %93, align 4
%95 = fpext float %94 to double
%96 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %90, double %95)
%97 = fptrunc double %96 to float
%98 = load ptr, ptr %7, align 8
%99 = load i32, ptr %9, align 4
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds float, ptr %98, i64 %100
store float %97, ptr %101, align 4
br label %102
102: ; preds = %85
%103 = load i32, ptr %9, align 4
%104 = add nsw i32 %103, 1
store i32 %104, ptr %9, align 4
br label %82, !llvm.loop !9
105: ; preds = %82
ret i32 1
}
declare i32 @crosspf(ptr noundef, ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
; 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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdan78mud.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @quatVectorf(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%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 i32, align 4
%11 = alloca [3 x float], align 4
%12 = alloca [3 x float], align 4
%13 = alloca [3 x float], align 4
%14 = alloca float, align 4
%15 = alloca [3 x float], align 4
%16 = alloca float, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%17 = load i32, ptr %8, align 4
%18 = sitofp i32 %17 to float
store float %18, ptr %16, align 4
%19 = load ptr, ptr %5, align 8
%20 = getelementptr inbounds float, ptr %19, i64 0
%21 = load float, ptr %20, align 4
store float %21, ptr %14, align 4
%22 = load float, ptr %16, align 4
%23 = load ptr, ptr %5, align 8
%24 = getelementptr inbounds float, ptr %23, i64 1
%25 = load float, ptr %24, align 4
%26 = fmul float %22, %25
%27 = getelementptr inbounds [3 x float], ptr %13, i64 0, i64 0
store float %26, ptr %27, align 4
%28 = load float, ptr %16, align 4
%29 = load ptr, ptr %5, align 8
%30 = getelementptr inbounds float, ptr %29, i64 2
%31 = load float, ptr %30, align 4
%32 = fmul float %28, %31
%33 = getelementptr inbounds [3 x float], ptr %13, i64 0, i64 1
store float %32, ptr %33, align 4
%34 = load float, ptr %16, align 4
%35 = load ptr, ptr %5, align 8
%36 = getelementptr inbounds float, ptr %35, i64 3
%37 = load float, ptr %36, align 4
%38 = fmul float %34, %37
%39 = getelementptr inbounds [3 x float], ptr %13, i64 0, i64 2
store float %38, ptr %39, align 4
store i32 0, ptr %9, align 4
%40 = load i32, ptr %9, align 4
%41 = icmp slt i32 %40, 3
br i1 %41, label %.lr.ph, label %56
.lr.ph: ; preds = %4
br label %42
42: ; preds = %.lr.ph, %51
%43 = load ptr, ptr %6, align 8
%44 = load i32, ptr %9, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds float, ptr %43, i64 %45
%47 = load float, ptr %46, align 4
%48 = load i32, ptr %9, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [3 x float], ptr %11, i64 0, i64 %49
store float %47, ptr %50, align 4
br label %51
51: ; preds = %42
%52 = load i32, ptr %9, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %9, align 4
%54 = load i32, ptr %9, align 4
%55 = icmp slt i32 %54, 3
br i1 %55, label %42, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %51
br label %56
56: ; preds = %._crit_edge, %4
%57 = getelementptr inbounds [3 x float], ptr %13, i64 0, i64 0
%58 = getelementptr inbounds [3 x float], ptr %11, i64 0, i64 0
%59 = getelementptr inbounds [3 x float], ptr %12, i64 0, i64 0
%60 = call i32 @crosspf(ptr noundef %57, ptr noundef %58, ptr noundef %59)
store i32 %60, ptr %10, align 4
store i32 0, ptr %9, align 4
%61 = load i32, ptr %9, align 4
%62 = icmp slt i32 %61, 3
br i1 %62, label %.lr.ph2, label %79
.lr.ph2: ; preds = %56
br label %63
63: ; preds = %.lr.ph2, %74
%64 = load float, ptr %14, align 4
%65 = load i32, ptr %9, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [3 x float], ptr %11, i64 0, i64 %66
%68 = load float, ptr %67, align 4
%69 = load i32, ptr %9, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [3 x float], ptr %12, i64 0, i64 %70
%72 = load float, ptr %71, align 4
%73 = call float @llvm.fmuladd.f32(float %64, float %68, float %72)
store float %73, ptr %71, align 4
br label %74
74: ; preds = %63
%75 = load i32, ptr %9, align 4
%76 = add nsw i32 %75, 1
store i32 %76, ptr %9, align 4
%77 = load i32, ptr %9, align 4
%78 = icmp slt i32 %77, 3
br i1 %78, label %63, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %74
br label %79
79: ; preds = %._crit_edge3, %56
%80 = getelementptr inbounds [3 x float], ptr %13, i64 0, i64 0
%81 = getelementptr inbounds [3 x float], ptr %12, i64 0, i64 0
%82 = getelementptr inbounds [3 x float], ptr %15, i64 0, i64 0
%83 = call i32 @crosspf(ptr noundef %80, ptr noundef %81, ptr noundef %82)
store i32 %83, ptr %10, align 4
store i32 0, ptr %9, align 4
%84 = load i32, ptr %9, align 4
%85 = icmp slt i32 %84, 3
br i1 %85, label %.lr.ph5, label %108
.lr.ph5: ; preds = %79
br label %86
86: ; preds = %.lr.ph5, %103
%87 = load i32, ptr %9, align 4
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds [3 x float], ptr %15, i64 0, i64 %88
%90 = load float, ptr %89, align 4
%91 = fpext float %90 to double
%92 = load i32, ptr %9, align 4
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds [3 x float], ptr %11, i64 0, i64 %93
%95 = load float, ptr %94, align 4
%96 = fpext float %95 to double
%97 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %91, double %96)
%98 = fptrunc double %97 to float
%99 = load ptr, ptr %7, align 8
%100 = load i32, ptr %9, align 4
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds float, ptr %99, i64 %101
store float %98, ptr %102, align 4
br label %103
103: ; preds = %86
%104 = load i32, ptr %9, align 4
%105 = add nsw i32 %104, 1
store i32 %105, ptr %9, align 4
%106 = load i32, ptr %9, align 4
%107 = icmp slt i32 %106, 3
br i1 %107, label %86, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %103
br label %108
108: ; preds = %._crit_edge6, %79
ret i32 1
}
declare i32 @crosspf(ptr noundef, ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
; 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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpjvwbb717.c'
source_filename = "/tmp/tmpjvwbb717.c"
target datalayout = "e-m:e-p270: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/tmpjvwbb717.c"
target datalayout = "e-m:e-p270: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/tmpsna8sgd2.c'
source_filename = "/tmp/tmpsna8sgd2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [34 x i8] c"This is string.h library function\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [50 x i8], align 16
store i32 0, ptr %1, align 4
%3 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 0
%4 = call i32 @strcpy(ptr noundef %3, ptr noundef @.str)
%5 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 0
%6 = call i32 @puts(ptr noundef %5)
%7 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 0
%8 = call i32 @memset(ptr noundef %7, i8 noundef signext 36, i32 noundef 7)
%9 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 0
%10 = call i32 @puts(ptr noundef %9)
ret i32 0
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @puts(ptr noundef) #1
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" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsna8sgd2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [34 x i8] c"This is string.h library function\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [50 x i8], align 16
store i32 0, ptr %1, align 4
%3 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 0
%4 = call i32 @strcpy(ptr noundef %3, ptr noundef @.str)
%5 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 0
%6 = call i32 @puts(ptr noundef %5)
%7 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 0
%8 = call i32 @memset(ptr noundef %7, i8 noundef signext 36, i32 noundef 7)
%9 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 0
%10 = call i32 @puts(ptr noundef %9)
ret i32 0
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @puts(ptr noundef) #1
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" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpca2i2wfj.c'
source_filename = "/tmp/tmpca2i2wfj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @HEX64_readHEX(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
store i32 0, ptr %7, align 4
br label %8
8: ; preds = %56, %3
%9 = load ptr, ptr %5, align 8
%10 = load i32, ptr %7, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds i8, ptr %9, i64 %11
%13 = load i8, ptr %12, align 1
%14 = call i64 @_is_hex_digit(i8 noundef signext %13)
%15 = icmp ne i64 %14, 0
br i1 %15, label %16, label %57
16: ; preds = %8
%17 = load i32, ptr %7, align 4
%18 = srem i32 %17, 2
%19 = icmp ne i32 %18, 0
br i1 %19, label %20, label %36
20: ; preds = %16
%21 = load ptr, ptr %5, align 8
%22 = load i32, ptr %7, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i8, ptr %21, i64 %23
%25 = load i8, ptr %24, align 1
%26 = call i32 @_get_hex_value(i8 noundef signext %25)
%27 = load ptr, ptr %4, align 8
%28 = load i32, ptr %7, align 4
%29 = sdiv i32 %28, 2
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i8, ptr %27, i64 %30
%32 = load i8, ptr %31, align 1
%33 = zext i8 %32 to i32
%34 = add nsw i32 %33, %26
%35 = trunc i32 %34 to i8
store i8 %35, ptr %31, align 1
br label %50
36: ; preds = %16
%37 = load ptr, ptr %5, align 8
%38 = load i32, ptr %7, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i8, ptr %37, i64 %39
%41 = load i8, ptr %40, align 1
%42 = call i32 @_get_hex_value(i8 noundef signext %41)
%43 = shl i32 %42, 4
%44 = trunc i32 %43 to i8
%45 = load ptr, ptr %4, align 8
%46 = load i32, ptr %7, align 4
%47 = sdiv i32 %46, 2
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i8, ptr %45, i64 %48
store i8 %44, ptr %49, align 1
br label %50
50: ; preds = %36, %20
%51 = load i32, ptr %7, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %7, align 4
%53 = load i32, ptr %6, align 4
%54 = icmp eq i32 %52, %53
br i1 %54, label %55, label %56
55: ; preds = %50
br label %57
56: ; preds = %50
br label %8, !llvm.loop !6
57: ; preds = %55, %8
%58 = load i32, ptr %7, align 4
%59 = add nsw i32 %58, 1
%60 = sdiv i32 %59, 2
ret i32 %60
}
declare i64 @_is_hex_digit(i8 noundef signext) #1
declare i32 @_get_hex_value(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpca2i2wfj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @HEX64_readHEX(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
store i32 0, ptr %7, align 4
%8 = load ptr, ptr %5, align 8
%9 = load i32, ptr %7, align 4
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds i8, ptr %8, i64 %10
%12 = load i8, ptr %11, align 1
%13 = call i64 @_is_hex_digit(i8 noundef signext %12)
%14 = icmp ne i64 %13, 0
br i1 %14, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %3
br label %23
15: ; preds = %57
%16 = load ptr, ptr %5, align 8
%17 = load i32, ptr %7, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i8, ptr %16, i64 %18
%20 = load i8, ptr %19, align 1
%21 = call i64 @_is_hex_digit(i8 noundef signext %20)
%22 = icmp ne i64 %21, 0
br i1 %22, label %23, label %..loopexit_crit_edge, !llvm.loop !6
23: ; preds = %.lr.ph, %15
%24 = load i32, ptr %7, align 4
%25 = srem i32 %24, 2
%26 = icmp ne i32 %25, 0
br i1 %26, label %27, label %43
27: ; preds = %23
%28 = load ptr, ptr %5, align 8
%29 = load i32, ptr %7, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i8, ptr %28, i64 %30
%32 = load i8, ptr %31, align 1
%33 = call i32 @_get_hex_value(i8 noundef signext %32)
%34 = load ptr, ptr %4, align 8
%35 = load i32, ptr %7, align 4
%36 = sdiv i32 %35, 2
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i8, ptr %34, i64 %37
%39 = load i8, ptr %38, align 1
%40 = zext i8 %39 to i32
%41 = add nsw i32 %40, %33
%42 = trunc i32 %41 to i8
store i8 %42, ptr %38, align 1
br label %57
43: ; preds = %23
%44 = load ptr, ptr %5, align 8
%45 = load i32, ptr %7, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds i8, ptr %44, i64 %46
%48 = load i8, ptr %47, align 1
%49 = call i32 @_get_hex_value(i8 noundef signext %48)
%50 = shl i32 %49, 4
%51 = trunc i32 %50 to i8
%52 = load ptr, ptr %4, align 8
%53 = load i32, ptr %7, align 4
%54 = sdiv i32 %53, 2
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i8, ptr %52, i64 %55
store i8 %51, ptr %56, align 1
br label %57
57: ; preds = %43, %27
%58 = load i32, ptr %7, align 4
%59 = add nsw i32 %58, 1
store i32 %59, ptr %7, align 4
%60 = load i32, ptr %6, align 4
%61 = icmp eq i32 %59, %60
br i1 %61, label %62, label %15
62: ; preds = %57
br label %63
..loopexit_crit_edge: ; preds = %15
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %3
br label %63
63: ; preds = %.loopexit, %62
%64 = load i32, ptr %7, align 4
%65 = add nsw i32 %64, 1
%66 = sdiv i32 %65, 2
ret i32 %66
}
declare i64 @_is_hex_digit(i8 noundef signext) #1
declare i32 @_get_hex_value(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpkf9iscnp.c'
source_filename = "/tmp/tmpkf9iscnp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [30 x i8] c"Integral (%d to %d) of 1/x \0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"Expected result = %.11f\0A\00", align 1
@.str.2 = private unnamed_addr constant [27 x i8] c"Estimated result = %.11f\0A\00", align 1
@.str.3 = private unnamed_addr constant [35 x i8] c" -------------\0A\00", align 1
@.str.4 = private unnamed_addr constant [27 x i8] c"Difference = %.11f\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 double, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca i32, align 4
%13 = alloca double, align 8
%14 = alloca double, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 1, ptr %7, align 4
store i32 6, ptr %8, align 4
store i32 2000, ptr %9, align 4
%15 = load i32, ptr %8, align 4
%16 = load i32, ptr %7, align 4
%17 = sub nsw i32 %15, %16
%18 = sitofp i32 %17 to double
%19 = load i32, ptr %9, align 4
%20 = sitofp i32 %19 to double
%21 = fdiv double %18, %20
store double %21, ptr %10, align 8
%22 = load i32, ptr %7, align 4
%23 = sitofp i32 %22 to double
%24 = call double @f(double noundef %23)
%25 = load i32, ptr %8, align 4
%26 = sitofp i32 %25 to double
%27 = call double @f(double noundef %26)
%28 = fadd double %24, %27
%29 = fdiv double %28, 2.000000e+00
store double %29, ptr %6, align 8
%30 = load i32, ptr %7, align 4
%31 = sitofp i32 %30 to double
store double %31, ptr %11, align 8
store i32 1, ptr %12, align 4
br label %32
32: ; preds = %44, %2
%33 = load i32, ptr %12, align 4
%34 = load i32, ptr %9, align 4
%35 = icmp slt i32 %33, %34
br i1 %35, label %36, label %47
36: ; preds = %32
%37 = load double, ptr %11, align 8
%38 = load double, ptr %10, align 8
%39 = fadd double %37, %38
store double %39, ptr %11, align 8
%40 = load double, ptr %6, align 8
%41 = load double, ptr %11, align 8
%42 = call double @f(double noundef %41)
%43 = fadd double %40, %42
store double %43, ptr %6, align 8
br label %44
44: ; preds = %36
%45 = load i32, ptr %12, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %12, align 4
br label %32, !llvm.loop !6
47: ; preds = %32
%48 = load double, ptr %6, align 8
%49 = load double, ptr %10, align 8
%50 = fmul double %48, %49
store double %50, ptr %6, align 8
store double 0x3FFCAB0BFA2A423A, ptr %13, align 8
%51 = load i32, ptr %7, align 4
%52 = load i32, ptr %8, align 4
%53 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %51, i32 noundef %52)
%54 = load double, ptr %13, align 8
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %54)
%56 = load double, ptr %6, align 8
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %56)
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%59 = load double, ptr %13, align 8
%60 = load double, ptr %6, align 8
%61 = fsub double %59, %60
store double %61, ptr %14, align 8
%62 = load double, ptr %14, align 8
%63 = call double @fabsf(double noundef %62)
store double %63, ptr %14, align 8
%64 = load double, ptr %14, align 8
%65 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %64)
ret i32 0
}
declare double @f(double noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare double @fabsf(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkf9iscnp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [30 x i8] c"Integral (%d to %d) of 1/x \0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"Expected result = %.11f\0A\00", align 1
@.str.2 = private unnamed_addr constant [27 x i8] c"Estimated result = %.11f\0A\00", align 1
@.str.3 = private unnamed_addr constant [35 x i8] c" -------------\0A\00", align 1
@.str.4 = private unnamed_addr constant [27 x i8] c"Difference = %.11f\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 double, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca i32, align 4
%13 = alloca double, align 8
%14 = alloca double, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 1, ptr %7, align 4
store i32 6, ptr %8, align 4
store i32 2000, ptr %9, align 4
%15 = load i32, ptr %8, align 4
%16 = load i32, ptr %7, align 4
%17 = sub nsw i32 %15, %16
%18 = sitofp i32 %17 to double
%19 = load i32, ptr %9, align 4
%20 = sitofp i32 %19 to double
%21 = fdiv double %18, %20
store double %21, ptr %10, align 8
%22 = load i32, ptr %7, align 4
%23 = sitofp i32 %22 to double
%24 = call double @f(double noundef %23)
%25 = load i32, ptr %8, align 4
%26 = sitofp i32 %25 to double
%27 = call double @f(double noundef %26)
%28 = fadd double %24, %27
%29 = fdiv double %28, 2.000000e+00
store double %29, ptr %6, align 8
%30 = load i32, ptr %7, align 4
%31 = sitofp i32 %30 to double
store double %31, ptr %11, align 8
store i32 1, ptr %12, align 4
%32 = load i32, ptr %12, align 4
%33 = load i32, ptr %9, align 4
%34 = icmp slt i32 %32, %33
br i1 %34, label %.lr.ph, label %49
.lr.ph: ; preds = %2
br label %35
35: ; preds = %.lr.ph, %43
%36 = load double, ptr %11, align 8
%37 = load double, ptr %10, align 8
%38 = fadd double %36, %37
store double %38, ptr %11, align 8
%39 = load double, ptr %6, align 8
%40 = load double, ptr %11, align 8
%41 = call double @f(double noundef %40)
%42 = fadd double %39, %41
store double %42, ptr %6, align 8
br label %43
43: ; preds = %35
%44 = load i32, ptr %12, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %12, align 4
%46 = load i32, ptr %12, align 4
%47 = load i32, ptr %9, align 4
%48 = icmp slt i32 %46, %47
br i1 %48, label %35, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %43
br label %49
49: ; preds = %._crit_edge, %2
%50 = load double, ptr %6, align 8
%51 = load double, ptr %10, align 8
%52 = fmul double %50, %51
store double %52, ptr %6, align 8
store double 0x3FFCAB0BFA2A423A, ptr %13, align 8
%53 = load i32, ptr %7, align 4
%54 = load i32, ptr %8, align 4
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %53, i32 noundef %54)
%56 = load double, ptr %13, align 8
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %56)
%58 = load double, ptr %6, align 8
%59 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %58)
%60 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%61 = load double, ptr %13, align 8
%62 = load double, ptr %6, align 8
%63 = fsub double %61, %62
store double %63, ptr %14, align 8
%64 = load double, ptr %14, align 8
%65 = call double @fabsf(double noundef %64)
store double %65, ptr %14, align 8
%66 = load double, ptr %14, align 8
%67 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %66)
ret i32 0
}
declare double @f(double noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare double @fabsf(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpbluh9uu3.c'
source_filename = "/tmp/tmpbluh9uu3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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(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 ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 1, ptr %6, align 4
br label %8
8: ; preds = %22, %2
%9 = load i32, ptr %6, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %25
12: ; preds = %8
%13 = load ptr, ptr %5, align 8
%14 = load i32, ptr %6, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds ptr, ptr %13, i64 %15
%17 = load ptr, ptr %16, align 8
%18 = call i32 @atoi(ptr noundef %17)
%19 = call ptr @mymalloc(i32 noundef %18)
store ptr %19, ptr %7, align 8
%20 = load ptr, ptr %7, align 8
%21 = call i32 @myfree(ptr noundef %20)
br label %22
22: ; preds = %12
%23 = load i32, ptr %6, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %6, align 4
br label %8, !llvm.loop !6
25: ; preds = %8
ret i32 0
}
declare ptr @mymalloc(i32 noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @myfree(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpbluh9uu3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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(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 ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 1, ptr %6, align 4
%8 = load i32, ptr %6, align 4
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %.lr.ph, label %27
.lr.ph: ; preds = %2
br label %11
11: ; preds = %.lr.ph, %21
%12 = load ptr, ptr %5, align 8
%13 = load i32, ptr %6, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds ptr, ptr %12, i64 %14
%16 = load ptr, ptr %15, align 8
%17 = call i32 @atoi(ptr noundef %16)
%18 = call ptr @mymalloc(i32 noundef %17)
store ptr %18, ptr %7, align 8
%19 = load ptr, ptr %7, align 8
%20 = call i32 @myfree(ptr noundef %19)
br label %21
21: ; preds = %11
%22 = load i32, ptr %6, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %6, align 4
%24 = load i32, ptr %6, align 4
%25 = load i32, ptr %4, align 4
%26 = icmp slt i32 %24, %25
br i1 %26, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %27
27: ; preds = %._crit_edge, %2
ret i32 0
}
declare ptr @mymalloc(i32 noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @myfree(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpp3mtqr_a.c'
source_filename = "/tmp/tmpp3mtqr_a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rtext_draw(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 1, ptr noundef %3, ptr noundef %4, ptr noundef %5)
ret void
}
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/tmpp3mtqr_a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rtext_draw(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 1, ptr noundef %3, ptr noundef %4, ptr noundef %5)
ret void
}
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/tmpxs8_aeb0.c'
source_filename = "/tmp/tmpxs8_aeb0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @testTortureExecute() #0 {
%1 = call i32 @f(i32 noundef -5, i32 noundef 5)
ret void
}
declare i32 @f(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/tmpxs8_aeb0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @testTortureExecute() #0 {
%1 = call i32 @f(i32 noundef -5, i32 noundef 5)
ret void
}
declare i32 @f(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/tmpekzf99h0.c'
source_filename = "/tmp/tmpekzf99h0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Start from myentry\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @myentry(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = call i32 @printf(ptr noundef @.str)
%6 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(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/tmpekzf99h0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Start from myentry\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @myentry(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = call i32 @printf(ptr noundef @.str)
%6 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(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/tmp7ppgfttd.c'
source_filename = "/tmp/tmp7ppgfttd.c"
target datalayout = "e-m:e-p270: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/tmp7ppgfttd.c"
target datalayout = "e-m:e-p270: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/tmpxcc1_quu.c'
source_filename = "/tmp/tmpxcc1_quu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_5__ = type { i32, i32 }
@X509V3_F_X509V3_EXT_ADD_ALIAS = dso_local global i32 0, align 4
@X509V3_R_EXTENSION_NOT_FOUND = dso_local global i32 0, align 4
@ERR_R_MALLOC_FAILURE = dso_local global i32 0, align 4
@X509V3_EXT_DYNAMIC = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @X509V3_EXT_add_alias(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
%8 = load i32, ptr %5, align 4
%9 = call ptr @X509V3_EXT_get_nid(i32 noundef %8)
store ptr %9, ptr %6, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %15, label %11
11: ; preds = %2
%12 = load i32, ptr @X509V3_F_X509V3_EXT_ADD_ALIAS, align 4
%13 = load i32, ptr @X509V3_R_EXTENSION_NOT_FOUND, align 4
%14 = call i32 @X509V3err(i32 noundef %12, i32 noundef %13)
store i32 0, ptr %3, align 4
br label %35
15: ; preds = %2
%16 = call ptr @malloc(i32 noundef 8)
store ptr %16, ptr %7, align 8
%17 = icmp ne ptr %16, null
br i1 %17, label %22, label %18
18: ; preds = %15
%19 = load i32, ptr @X509V3_F_X509V3_EXT_ADD_ALIAS, align 4
%20 = load i32, ptr @ERR_R_MALLOC_FAILURE, align 4
%21 = call i32 @X509V3err(i32 noundef %19, i32 noundef %20)
store i32 0, ptr %3, align 4
br label %35
22: ; preds = %15
%23 = load ptr, ptr %7, align 8
%24 = load ptr, ptr %6, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %24, i64 8, i1 false)
%25 = load i32, ptr %4, align 4
%26 = load ptr, ptr %7, align 8
%27 = getelementptr inbounds %struct.TYPE_5__, ptr %26, i32 0, i32 0
store i32 %25, ptr %27, align 4
%28 = load i32, ptr @X509V3_EXT_DYNAMIC, align 4
%29 = load ptr, ptr %7, align 8
%30 = getelementptr inbounds %struct.TYPE_5__, ptr %29, i32 0, i32 1
%31 = load i32, ptr %30, align 4
%32 = or i32 %31, %28
store i32 %32, ptr %30, align 4
%33 = load ptr, ptr %7, align 8
%34 = call i32 @X509V3_EXT_add(ptr noundef %33)
store i32 %34, ptr %3, align 4
br label %35
35: ; preds = %22, %18, %11
%36 = load i32, ptr %3, align 4
ret i32 %36
}
declare ptr @X509V3_EXT_get_nid(i32 noundef) #1
declare i32 @X509V3err(i32 noundef, i32 noundef) #1
declare ptr @malloc(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 @X509V3_EXT_add(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmpxcc1_quu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.TYPE_5__ = type { i32, i32 }
@X509V3_F_X509V3_EXT_ADD_ALIAS = dso_local global i32 0, align 4
@X509V3_R_EXTENSION_NOT_FOUND = dso_local global i32 0, align 4
@ERR_R_MALLOC_FAILURE = dso_local global i32 0, align 4
@X509V3_EXT_DYNAMIC = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @X509V3_EXT_add_alias(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
%8 = load i32, ptr %5, align 4
%9 = call ptr @X509V3_EXT_get_nid(i32 noundef %8)
store ptr %9, ptr %6, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %15, label %11
11: ; preds = %2
%12 = load i32, ptr @X509V3_F_X509V3_EXT_ADD_ALIAS, align 4
%13 = load i32, ptr @X509V3_R_EXTENSION_NOT_FOUND, align 4
%14 = call i32 @X509V3err(i32 noundef %12, i32 noundef %13)
store i32 0, ptr %3, align 4
br label %35
15: ; preds = %2
%16 = call ptr @malloc(i32 noundef 8)
store ptr %16, ptr %7, align 8
%17 = icmp ne ptr %16, null
br i1 %17, label %22, label %18
18: ; preds = %15
%19 = load i32, ptr @X509V3_F_X509V3_EXT_ADD_ALIAS, align 4
%20 = load i32, ptr @ERR_R_MALLOC_FAILURE, align 4
%21 = call i32 @X509V3err(i32 noundef %19, i32 noundef %20)
store i32 0, ptr %3, align 4
br label %35
22: ; preds = %15
%23 = load ptr, ptr %7, align 8
%24 = load ptr, ptr %6, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %24, i64 8, i1 false)
%25 = load i32, ptr %4, align 4
%26 = load ptr, ptr %7, align 8
%27 = getelementptr inbounds %struct.TYPE_5__, ptr %26, i32 0, i32 0
store i32 %25, ptr %27, align 4
%28 = load i32, ptr @X509V3_EXT_DYNAMIC, align 4
%29 = load ptr, ptr %7, align 8
%30 = getelementptr inbounds %struct.TYPE_5__, ptr %29, i32 0, i32 1
%31 = load i32, ptr %30, align 4
%32 = or i32 %31, %28
store i32 %32, ptr %30, align 4
%33 = load ptr, ptr %7, align 8
%34 = call i32 @X509V3_EXT_add(ptr noundef %33)
store i32 %34, ptr %3, align 4
br label %35
35: ; preds = %22, %18, %11
%36 = load i32, ptr %3, align 4
ret i32 %36
}
declare ptr @X509V3_EXT_get_nid(i32 noundef) #1
declare i32 @X509V3err(i32 noundef, i32 noundef) #1
declare ptr @malloc(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 @X509V3_EXT_add(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmplhgktjsg.c'
source_filename = "/tmp/tmplhgktjsg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EMLINK = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @_link(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load i32, ptr @EMLINK, align 4
store i32 %5, ptr @errno, align 4
ret i32 -1
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplhgktjsg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EMLINK = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @_link(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load i32, ptr @EMLINK, align 4
store i32 %5, ptr @errno, align 4
ret i32 -1
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2no94vwo.c'
source_filename = "/tmp/tmp2no94vwo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [19 x i8] c"Should be X: '%c'\0A\00", align 1
@.str.1 = private unnamed_addr constant [36 x i8] c"I'm going to eat you little fishie!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = call ptr @malloc(i32 noundef 123)
store ptr %8, ptr %6, align 8
%9 = call ptr @malloc(i32 noundef 124)
store ptr %9, ptr %6, align 8
%10 = load ptr, ptr %6, align 8
store i8 88, ptr %10, align 1
%11 = load ptr, ptr %6, align 8
%12 = call i32 @free(ptr noundef %11)
%13 = load ptr, ptr %6, align 8
%14 = load i8, ptr %13, align 1
%15 = call i32 @printf(ptr noundef @.str, i8 noundef signext %14)
%16 = load ptr, ptr %6, align 8
%17 = call i32 @free(ptr noundef %16)
%18 = call ptr @malloc(i32 noundef 125)
store ptr %18, ptr %6, align 8
%19 = load ptr, ptr %6, align 8
%20 = call ptr @realloc(ptr noundef %19, i32 noundef 126)
store ptr %20, ptr %7, align 8
%21 = load ptr, ptr %6, align 8
store i8 88, ptr %21, align 1
%22 = load ptr, ptr %7, align 8
%23 = call i32 @free(ptr noundef %22)
%24 = call ptr @malloc(i32 noundef 127)
store ptr %24, ptr %6, align 8
%25 = load ptr, ptr %6, align 8
%26 = getelementptr inbounds i8, ptr %25, i64 -1
store i8 90, ptr %26, align 1
%27 = load ptr, ptr %6, align 8
%28 = call i32 @free(ptr noundef %27)
store ptr @.str.1, ptr %7, align 8
%29 = load ptr, ptr %7, align 8
%30 = call i32 @strlen(ptr noundef %29)
%31 = call ptr @malloc(i32 noundef %30)
store ptr %31, ptr %6, align 8
%32 = load ptr, ptr %6, align 8
%33 = load ptr, ptr %7, align 8
%34 = call i32 @strcpy(ptr noundef %32, ptr noundef %33)
%35 = load ptr, ptr %6, align 8
%36 = call i32 @free(ptr noundef %35)
%37 = load ptr, ptr %7, align 8
%38 = call i32 @free(ptr noundef %37)
ret i32 42
}
declare ptr @malloc(i32 noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @printf(ptr noundef, i8 noundef signext) #1
declare ptr @realloc(ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @strcpy(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/tmp2no94vwo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [19 x i8] c"Should be X: '%c'\0A\00", align 1
@.str.1 = private unnamed_addr constant [36 x i8] c"I'm going to eat you little fishie!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = call ptr @malloc(i32 noundef 123)
store ptr %8, ptr %6, align 8
%9 = call ptr @malloc(i32 noundef 124)
store ptr %9, ptr %6, align 8
%10 = load ptr, ptr %6, align 8
store i8 88, ptr %10, align 1
%11 = load ptr, ptr %6, align 8
%12 = call i32 @free(ptr noundef %11)
%13 = load ptr, ptr %6, align 8
%14 = load i8, ptr %13, align 1
%15 = call i32 @printf(ptr noundef @.str, i8 noundef signext %14)
%16 = load ptr, ptr %6, align 8
%17 = call i32 @free(ptr noundef %16)
%18 = call ptr @malloc(i32 noundef 125)
store ptr %18, ptr %6, align 8
%19 = load ptr, ptr %6, align 8
%20 = call ptr @realloc(ptr noundef %19, i32 noundef 126)
store ptr %20, ptr %7, align 8
%21 = load ptr, ptr %6, align 8
store i8 88, ptr %21, align 1
%22 = load ptr, ptr %7, align 8
%23 = call i32 @free(ptr noundef %22)
%24 = call ptr @malloc(i32 noundef 127)
store ptr %24, ptr %6, align 8
%25 = load ptr, ptr %6, align 8
%26 = getelementptr inbounds i8, ptr %25, i64 -1
store i8 90, ptr %26, align 1
%27 = load ptr, ptr %6, align 8
%28 = call i32 @free(ptr noundef %27)
store ptr @.str.1, ptr %7, align 8
%29 = load ptr, ptr %7, align 8
%30 = call i32 @strlen(ptr noundef %29)
%31 = call ptr @malloc(i32 noundef %30)
store ptr %31, ptr %6, align 8
%32 = load ptr, ptr %6, align 8
%33 = load ptr, ptr %7, align 8
%34 = call i32 @strcpy(ptr noundef %32, ptr noundef %33)
%35 = load ptr, ptr %6, align 8
%36 = call i32 @free(ptr noundef %35)
%37 = load ptr, ptr %7, align 8
%38 = call i32 @free(ptr noundef %37)
ret i32 42
}
declare ptr @malloc(i32 noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @printf(ptr noundef, i8 noundef signext) #1
declare ptr @realloc(ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @strcpy(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/tmpohheuugh.c'
source_filename = "/tmp/tmpohheuugh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, i32, i32 }
@AF_INET = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [20 x i8] c"Invalid address: %s\00", align 1
@SOCK_STREAM = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [7 x i8] c"socket\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"connect\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @gdb_begin_inet(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca %struct.sockaddr_in, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%7 = getelementptr inbounds %struct.sockaddr_in, ptr %5, i32 0, i32 0
store i32 0, ptr %7, align 4
%8 = getelementptr inbounds %struct.sockaddr_in, ptr %5, i32 0, i32 1
%9 = load i32, ptr %4, align 4
%10 = call i32 @htons(i32 noundef %9)
store i32 %10, ptr %8, align 4
%11 = getelementptr inbounds %struct.sockaddr_in, ptr %5, i32 0, i32 2
%12 = load i32, ptr @AF_INET, align 4
store i32 %12, ptr %11, align 4
%13 = load ptr, ptr %3, align 8
%14 = getelementptr inbounds %struct.sockaddr_in, ptr %5, i32 0, i32 0
%15 = call i64 @inet_aton(ptr noundef %13, ptr noundef %14)
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %20
17: ; preds = %2
%18 = load ptr, ptr %3, align 8
%19 = call i32 @errx(i32 noundef 1, ptr noundef @.str, ptr noundef %18)
br label %20
20: ; preds = %17, %2
%21 = load i32, ptr @AF_INET, align 4
%22 = load i32, ptr @SOCK_STREAM, align 4
%23 = call i32 @socket(i32 noundef %21, i32 noundef %22, i32 noundef 0)
store i32 %23, ptr %6, align 4
%24 = load i32, ptr %6, align 4
%25 = icmp slt i32 %24, 0
br i1 %25, label %26, label %28
26: ; preds = %20
%27 = call i32 @err(i32 noundef 1, ptr noundef @.str.1)
br label %28
28: ; preds = %26, %20
%29 = load i32, ptr %6, align 4
%30 = call i64 @connect(i32 noundef %29, ptr noundef %5, i32 noundef 12)
%31 = icmp ne i64 %30, 0
br i1 %31, label %32, label %34
32: ; preds = %28
%33 = call i32 @err(i32 noundef 1, ptr noundef @.str.2)
br label %34
34: ; preds = %32, %28
%35 = load i32, ptr %6, align 4
%36 = call ptr @gdb_begin(i32 noundef %35)
ret ptr %36
}
declare i32 @htons(i32 noundef) #1
declare i64 @inet_aton(ptr noundef, ptr noundef) #1
declare i32 @errx(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @err(i32 noundef, ptr noundef) #1
declare i64 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare ptr @gdb_begin(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/tmpohheuugh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, i32, i32 }
@AF_INET = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [20 x i8] c"Invalid address: %s\00", align 1
@SOCK_STREAM = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [7 x i8] c"socket\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"connect\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @gdb_begin_inet(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca %struct.sockaddr_in, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%7 = getelementptr inbounds %struct.sockaddr_in, ptr %5, i32 0, i32 0
store i32 0, ptr %7, align 4
%8 = getelementptr inbounds %struct.sockaddr_in, ptr %5, i32 0, i32 1
%9 = load i32, ptr %4, align 4
%10 = call i32 @htons(i32 noundef %9)
store i32 %10, ptr %8, align 4
%11 = getelementptr inbounds %struct.sockaddr_in, ptr %5, i32 0, i32 2
%12 = load i32, ptr @AF_INET, align 4
store i32 %12, ptr %11, align 4
%13 = load ptr, ptr %3, align 8
%14 = getelementptr inbounds %struct.sockaddr_in, ptr %5, i32 0, i32 0
%15 = call i64 @inet_aton(ptr noundef %13, ptr noundef %14)
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %20
17: ; preds = %2
%18 = load ptr, ptr %3, align 8
%19 = call i32 @errx(i32 noundef 1, ptr noundef @.str, ptr noundef %18)
br label %20
20: ; preds = %17, %2
%21 = load i32, ptr @AF_INET, align 4
%22 = load i32, ptr @SOCK_STREAM, align 4
%23 = call i32 @socket(i32 noundef %21, i32 noundef %22, i32 noundef 0)
store i32 %23, ptr %6, align 4
%24 = load i32, ptr %6, align 4
%25 = icmp slt i32 %24, 0
br i1 %25, label %26, label %28
26: ; preds = %20
%27 = call i32 @err(i32 noundef 1, ptr noundef @.str.1)
br label %28
28: ; preds = %26, %20
%29 = load i32, ptr %6, align 4
%30 = call i64 @connect(i32 noundef %29, ptr noundef %5, i32 noundef 12)
%31 = icmp ne i64 %30, 0
br i1 %31, label %32, label %34
32: ; preds = %28
%33 = call i32 @err(i32 noundef 1, ptr noundef @.str.2)
br label %34
34: ; preds = %32, %28
%35 = load i32, ptr %6, align 4
%36 = call ptr @gdb_begin(i32 noundef %35)
ret ptr %36
}
declare i32 @htons(i32 noundef) #1
declare i64 @inet_aton(ptr noundef, ptr noundef) #1
declare i32 @errx(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @err(i32 noundef, ptr noundef) #1
declare i64 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare ptr @gdb_begin(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/tmpmx43my8i.c'
source_filename = "/tmp/tmpmx43my8i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EAGAIN = dso_local global i64 0, align 8
@ECONNRESET = dso_local global i64 0, align 8
@EINTR = dso_local global i64 0, align 8
@STDIN_FILENO = dso_local global i32 0, align 4
@errno = dso_local global i64 0, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmx43my8i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EAGAIN = dso_local global i64 0, align 8
@ECONNRESET = dso_local global i64 0, align 8
@EINTR = dso_local global i64 0, align 8
@STDIN_FILENO = dso_local global i32 0, align 4
@errno = dso_local global i64 0, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp25r1jz8b.c'
source_filename = "/tmp/tmp25r1jz8b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @doubletoIEEE754(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store double %0, ptr %2, align 8
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
%8 = load double, ptr %2, align 8
%9 = fcmp olt double %8, 0.000000e+00
br i1 %9, label %10, label %13
10: ; preds = %1
store i32 1, ptr %3, align 4
%11 = load double, ptr %2, align 8
%12 = fneg double %11
store double %12, ptr %2, align 8
br label %13
13: ; preds = %10, %1
%14 = load double, ptr %2, align 8
%15 = fcmp une double %14, 0.000000e+00
br i1 %15, label %16, label %44
16: ; preds = %13
%17 = load double, ptr %2, align 8
%18 = call i32 @log(double noundef %17)
%19 = call i32 @log(double noundef 2.000000e+00)
%20 = sdiv i32 %18, %19
%21 = call i64 @floor(i32 noundef %20)
%22 = trunc i64 %21 to i32
store i32 %22, ptr %7, align 4
%23 = load i32, ptr %7, align 4
%24 = icmp slt i32 %23, -126
br i1 %24, label %25, label %26
25: ; preds = %16
store i32 -126, ptr %7, align 4
br label %26
26: ; preds = %25, %16
%27 = load i32, ptr %7, align 4
%28 = sitofp i32 %27 to double
%29 = call double @pow(double noundef 5.000000e-01, double noundef %28) #4
%30 = load double, ptr %2, align 8
%31 = fmul double %30, %29
store double %31, ptr %2, align 8
%32 = load i32, ptr %7, align 4
%33 = add nsw i32 %32, 127
store i32 %33, ptr %7, align 4
%34 = load i32, ptr %7, align 4
%35 = icmp slt i32 %34, 1
br i1 %35, label %36, label %37
36: ; preds = %26
store i32 0, ptr %7, align 4
br label %42
37: ; preds = %26
%38 = load i32, ptr %7, align 4
%39 = icmp sgt i32 %38, 254
br i1 %39, label %40, label %41
40: ; preds = %37
store i32 255, ptr %7, align 4
store double 0.000000e+00, ptr %2, align 8
br label %41
41: ; preds = %40, %37
br label %42
42: ; preds = %41, %36
%43 = load i32, ptr %7, align 4
store i32 %43, ptr %4, align 4
br label %45
44: ; preds = %13
store i32 0, ptr %4, align 4
br label %45
45: ; preds = %44, %42
%46 = load double, ptr %2, align 8
%47 = call double @llvm.fmuladd.f64(double %46, double 0x4160000000000000, double 5.000000e-01)
%48 = fptoui double %47 to i32
%49 = and i32 %48, 8388607
store i32 %49, ptr %5, align 4
%50 = load i32, ptr %3, align 4
%51 = shl i32 %50, 31
%52 = load i32, ptr %4, align 4
%53 = shl i32 %52, 23
%54 = or i32 %51, %53
%55 = load i32, ptr %5, align 4
%56 = or i32 %54, %55
store i32 %56, ptr %6, align 4
%57 = load i32, ptr %6, align 4
ret i32 %57
}
declare i64 @floor(i32 noundef) #1
declare i32 @log(double noundef) #1
; Function Attrs: nounwind
declare double @pow(double noundef, double noundef) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp25r1jz8b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @doubletoIEEE754(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store double %0, ptr %2, align 8
store i32 0, ptr %3, align 4
store i32 0, ptr %4, align 4
%8 = load double, ptr %2, align 8
%9 = fcmp olt double %8, 0.000000e+00
br i1 %9, label %10, label %13
10: ; preds = %1
store i32 1, ptr %3, align 4
%11 = load double, ptr %2, align 8
%12 = fneg double %11
store double %12, ptr %2, align 8
br label %13
13: ; preds = %10, %1
%14 = load double, ptr %2, align 8
%15 = fcmp une double %14, 0.000000e+00
br i1 %15, label %16, label %44
16: ; preds = %13
%17 = load double, ptr %2, align 8
%18 = call i32 @log(double noundef %17)
%19 = call i32 @log(double noundef 2.000000e+00)
%20 = sdiv i32 %18, %19
%21 = call i64 @floor(i32 noundef %20)
%22 = trunc i64 %21 to i32
store i32 %22, ptr %7, align 4
%23 = load i32, ptr %7, align 4
%24 = icmp slt i32 %23, -126
br i1 %24, label %25, label %26
25: ; preds = %16
store i32 -126, ptr %7, align 4
br label %26
26: ; preds = %25, %16
%27 = load i32, ptr %7, align 4
%28 = sitofp i32 %27 to double
%29 = call double @pow(double noundef 5.000000e-01, double noundef %28) #4
%30 = load double, ptr %2, align 8
%31 = fmul double %30, %29
store double %31, ptr %2, align 8
%32 = load i32, ptr %7, align 4
%33 = add nsw i32 %32, 127
store i32 %33, ptr %7, align 4
%34 = load i32, ptr %7, align 4
%35 = icmp slt i32 %34, 1
br i1 %35, label %36, label %37
36: ; preds = %26
store i32 0, ptr %7, align 4
br label %42
37: ; preds = %26
%38 = load i32, ptr %7, align 4
%39 = icmp sgt i32 %38, 254
br i1 %39, label %40, label %41
40: ; preds = %37
store i32 255, ptr %7, align 4
store double 0.000000e+00, ptr %2, align 8
br label %41
41: ; preds = %40, %37
br label %42
42: ; preds = %41, %36
%43 = load i32, ptr %7, align 4
store i32 %43, ptr %4, align 4
br label %45
44: ; preds = %13
store i32 0, ptr %4, align 4
br label %45
45: ; preds = %44, %42
%46 = load double, ptr %2, align 8
%47 = call double @llvm.fmuladd.f64(double %46, double 0x4160000000000000, double 5.000000e-01)
%48 = fptoui double %47 to i32
%49 = and i32 %48, 8388607
store i32 %49, ptr %5, align 4
%50 = load i32, ptr %3, align 4
%51 = shl i32 %50, 31
%52 = load i32, ptr %4, align 4
%53 = shl i32 %52, 23
%54 = or i32 %51, %53
%55 = load i32, ptr %5, align 4
%56 = or i32 %54, %55
store i32 %56, ptr %6, align 4
%57 = load i32, ptr %6, align 4
ret i32 %57
}
declare i64 @floor(i32 noundef) #1
declare i32 @log(double noundef) #1
; Function Attrs: nounwind
declare double @pow(double noundef, double noundef) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0b4of526.c'
source_filename = "/tmp/tmp0b4of526.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @read_quaddobl_start_system() #0 {
%1 = alloca ptr, align 8
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = load ptr, ptr %1, align 8
%6 = load ptr, ptr %2, align 8
%7 = load ptr, ptr %4, align 8
%8 = call i32 @_ada_use_c2phc(i32 noundef 243, ptr noundef %5, ptr noundef %6, ptr noundef %7, i32 noundef 0)
store i32 %8, ptr %3, align 4
%9 = load i32, ptr %3, align 4
ret i32 %9
}
declare i32 @_ada_use_c2phc(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0b4of526.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @read_quaddobl_start_system() #0 {
%1 = alloca ptr, align 8
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = load ptr, ptr %1, align 8
%6 = load ptr, ptr %2, align 8
%7 = load ptr, ptr %4, align 8
%8 = call i32 @_ada_use_c2phc(i32 noundef 243, ptr noundef %5, ptr noundef %6, ptr noundef %7, i32 noundef 0)
store i32 %8, ptr %3, align 4
%9 = load i32, ptr %3, align 4
ret i32 %9
}
declare i32 @_ada_use_c2phc(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0lj3yunu.c'
source_filename = "/tmp/tmp0lj3yunu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"orab ,s\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"oraa 1,s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @gen_or() #0 {
%1 = call i32 @output_line(ptr noundef @.str)
%2 = call i32 @output_line(ptr noundef @.str.1)
%3 = call i32 (...) @gen_pop()
ret void
}
declare i32 @output_line(ptr noundef) #1
declare i32 @gen_pop(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0lj3yunu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"orab ,s\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"oraa 1,s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @gen_or() #0 {
%1 = call i32 @output_line(ptr noundef @.str)
%2 = call i32 @output_line(ptr noundef @.str.1)
%3 = call i32 (...) @gen_pop()
ret void
}
declare i32 @output_line(ptr noundef) #1
declare i32 @gen_pop(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpevn7z8rw.c'
source_filename = "/tmp/tmpevn7z8rw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"Call this program with %i arguments\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"You win!\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%u\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [1 x i16], align 2
%7 = alloca [1 x i16], align 2
%8 = alloca i32, align 4
%9 = alloca i16, align 2
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = call i32 (...) @megaInit()
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef 1)
%16 = call i32 @exit(i32 noundef -1) #3
unreachable
17: ; preds = %2
br label %18
18: ; preds = %17
store i32 0, ptr %8, align 4
br label %19
19: ; preds = %22, %18
%20 = load i32, ptr %8, align 4
%21 = icmp slt i32 %20, 1
br i1 %21, label %22, label %37
22: ; preds = %19
%23 = load ptr, ptr %5, align 8
%24 = load i32, ptr %8, align 4
%25 = add nsw i32 %24, 1
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds ptr, ptr %23, i64 %26
%28 = load ptr, ptr %27, align 8
%29 = call i64 @strtoul(ptr noundef %28, i32 noundef 0, i32 noundef 10)
%30 = trunc i64 %29 to i16
store i16 %30, ptr %9, align 2
%31 = load i16, ptr %9, align 2
%32 = load i32, ptr %8, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [1 x i16], ptr %6, i64 0, i64 %33
store i16 %31, ptr %34, align 2
%35 = load i32, ptr %8, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %8, align 4
br label %19, !llvm.loop !6
37: ; preds = %19
%38 = getelementptr inbounds [1 x i16], ptr %6, i64 0, i64 0
%39 = getelementptr inbounds [1 x i16], ptr %7, i64 0, i64 0
%40 = call i32 @RandomFunc(ptr noundef %38, ptr noundef %39)
%41 = getelementptr inbounds [1 x i16], ptr %7, i64 0, i64 0
%42 = load i16, ptr %41, align 2
%43 = zext i16 %42 to i32
%44 = icmp eq i32 %43, 34165
br i1 %44, label %45, label %47
45: ; preds = %37
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %48
47: ; preds = %37
br label %48
48: ; preds = %47, %45
store i32 0, ptr %10, align 4
br label %49
49: ; preds = %52, %48
%50 = load i32, ptr %10, align 4
%51 = icmp slt i32 %50, 1
br i1 %51, label %52, label %61
52: ; preds = %49
%53 = load i32, ptr %10, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [1 x i16], ptr %7, i64 0, i64 %54
%56 = load i16, ptr %55, align 2
%57 = zext i16 %56 to i32
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %57)
%59 = load i32, ptr %10, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %10, align 4
br label %49, !llvm.loop !8
61: ; preds = %49
%62 = load i32, ptr %3, align 4
ret i32 %62
}
declare i32 @megaInit(...) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @strtoul(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @RandomFunc(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpevn7z8rw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"Call this program with %i arguments\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"You win!\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%u\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [1 x i16], align 2
%7 = alloca [1 x i16], align 2
%8 = alloca i32, align 4
%9 = alloca i16, align 2
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = call i32 (...) @megaInit()
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef 1)
%16 = call i32 @exit(i32 noundef -1) #3
unreachable
17: ; preds = %2
br label %18
18: ; preds = %17
store i32 0, ptr %8, align 4
%19 = load i32, ptr %8, align 4
%20 = icmp slt i32 %19, 1
br i1 %20, label %.lr.ph, label %38
.lr.ph: ; preds = %18
br label %21
21: ; preds = %.lr.ph, %21
%22 = load ptr, ptr %5, align 8
%23 = load i32, ptr %8, align 4
%24 = add nsw i32 %23, 1
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds ptr, ptr %22, i64 %25
%27 = load ptr, ptr %26, align 8
%28 = call i64 @strtoul(ptr noundef %27, i32 noundef 0, i32 noundef 10)
%29 = trunc i64 %28 to i16
store i16 %29, ptr %9, align 2
%30 = load i16, ptr %9, align 2
%31 = load i32, ptr %8, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [1 x i16], ptr %6, i64 0, i64 %32
store i16 %30, ptr %33, align 2
%34 = load i32, ptr %8, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %8, align 4
%36 = load i32, ptr %8, align 4
%37 = icmp slt i32 %36, 1
br i1 %37, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %38
38: ; preds = %._crit_edge, %18
%39 = getelementptr inbounds [1 x i16], ptr %6, i64 0, i64 0
%40 = getelementptr inbounds [1 x i16], ptr %7, i64 0, i64 0
%41 = call i32 @RandomFunc(ptr noundef %39, ptr noundef %40)
%42 = getelementptr inbounds [1 x i16], ptr %7, i64 0, i64 0
%43 = load i16, ptr %42, align 2
%44 = zext i16 %43 to i32
%45 = icmp eq i32 %44, 34165
br i1 %45, label %46, label %48
46: ; preds = %38
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %49
48: ; preds = %38
br label %49
49: ; preds = %48, %46
store i32 0, ptr %10, align 4
%50 = load i32, ptr %10, align 4
%51 = icmp slt i32 %50, 1
br i1 %51, label %.lr.ph2, label %63
.lr.ph2: ; preds = %49
br label %52
52: ; preds = %.lr.ph2, %52
%53 = load i32, ptr %10, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [1 x i16], ptr %7, i64 0, i64 %54
%56 = load i16, ptr %55, align 2
%57 = zext i16 %56 to i32
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %57)
%59 = load i32, ptr %10, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %10, align 4
%61 = load i32, ptr %10, align 4
%62 = icmp slt i32 %61, 1
br i1 %62, label %52, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %52
br label %63
63: ; preds = %._crit_edge3, %49
%64 = load i32, ptr %3, align 4
ret i32 %64
}
declare i32 @megaInit(...) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @strtoul(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @RandomFunc(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp_8tg_vpy.c'
source_filename = "/tmp/tmp_8tg_vpy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"player_model_file aircrafts/\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"hh60.3d\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"hh65.3d\00", align 1
@.str.3 = private unnamed_addr constant [8 x i8] c"ka27.3d\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"v22.3d\00", align 1
@.str.5 = private unnamed_addr constant [9 x i8] c"as350.3d\00", align 1
@.str.6 = private unnamed_addr constant [7 x i8] c"b47.3d\00", align 1
@.str.7 = private unnamed_addr constant [7 x i8] c"s64.3d\00", align 1
@.str.8 = private unnamed_addr constant [8 x i8] c"uh1d.3d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @Create_Campaign_Aircraft(i32 noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%6 = call i64 @calloc(i32 noundef 128, i32 noundef 1)
%7 = inttoptr i64 %6 to ptr
store ptr %7, ptr %4, align 8
%8 = load ptr, ptr %4, align 8
%9 = icmp ne ptr %8, null
br i1 %9, label %11, label %10
10: ; preds = %1
store ptr null, ptr %2, align 8
br label %50
11: ; preds = %1
%12 = load ptr, ptr %4, align 8
%13 = call i32 @strcpy(ptr noundef %12, ptr noundef @.str)
%14 = load i32, ptr %3, align 4
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %19
16: ; preds = %11
%17 = call i32 (...) @rand()
%18 = srem i32 %17, 8
store i32 %18, ptr %5, align 4
br label %22
19: ; preds = %11
%20 = call i32 (...) @rand()
%21 = srem i32 %20, 4
store i32 %21, ptr %5, align 4
br label %22
22: ; preds = %19, %16
%23 = load i32, ptr %5, align 4
switch i32 %23, label %48 [
i32 0, label %24
i32 1, label %27
i32 2, label %30
i32 3, label %33
i32 4, label %36
i32 5, label %39
i32 6, label %42
i32 7, label %45
]
24: ; preds = %22
%25 = load ptr, ptr %4, align 8
%26 = call i32 @strcat(ptr noundef %25, ptr noundef @.str.1)
br label %48
27: ; preds = %22
%28 = load ptr, ptr %4, align 8
%29 = call i32 @strcat(ptr noundef %28, ptr noundef @.str.2)
br label %48
30: ; preds = %22
%31 = load ptr, ptr %4, align 8
%32 = call i32 @strcat(ptr noundef %31, ptr noundef @.str.3)
br label %48
33: ; preds = %22
%34 = load ptr, ptr %4, align 8
%35 = call i32 @strcat(ptr noundef %34, ptr noundef @.str.4)
br label %48
36: ; preds = %22
%37 = load ptr, ptr %4, align 8
%38 = call i32 @strcat(ptr noundef %37, ptr noundef @.str.5)
br label %48
39: ; preds = %22
%40 = load ptr, ptr %4, align 8
%41 = call i32 @strcat(ptr noundef %40, ptr noundef @.str.6)
br label %48
42: ; preds = %22
%43 = load ptr, ptr %4, align 8
%44 = call i32 @strcat(ptr noundef %43, ptr noundef @.str.7)
br label %48
45: ; preds = %22
%46 = load ptr, ptr %4, align 8
%47 = call i32 @strcat(ptr noundef %46, ptr noundef @.str.8)
br label %48
48: ; preds = %22, %45, %42, %39, %36, %33, %30, %27, %24
%49 = load ptr, ptr %4, align 8
store ptr %49, ptr %2, align 8
br label %50
50: ; preds = %48, %10
%51 = load ptr, ptr %2, align 8
ret ptr %51
}
declare i64 @calloc(i32 noundef, i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @rand(...) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_8tg_vpy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"player_model_file aircrafts/\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"hh60.3d\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"hh65.3d\00", align 1
@.str.3 = private unnamed_addr constant [8 x i8] c"ka27.3d\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"v22.3d\00", align 1
@.str.5 = private unnamed_addr constant [9 x i8] c"as350.3d\00", align 1
@.str.6 = private unnamed_addr constant [7 x i8] c"b47.3d\00", align 1
@.str.7 = private unnamed_addr constant [7 x i8] c"s64.3d\00", align 1
@.str.8 = private unnamed_addr constant [8 x i8] c"uh1d.3d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @Create_Campaign_Aircraft(i32 noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
%6 = call i64 @calloc(i32 noundef 128, i32 noundef 1)
%7 = inttoptr i64 %6 to ptr
store ptr %7, ptr %4, align 8
%8 = load ptr, ptr %4, align 8
%9 = icmp ne ptr %8, null
br i1 %9, label %11, label %10
10: ; preds = %1
store ptr null, ptr %2, align 8
br label %50
11: ; preds = %1
%12 = load ptr, ptr %4, align 8
%13 = call i32 @strcpy(ptr noundef %12, ptr noundef @.str)
%14 = load i32, ptr %3, align 4
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %19
16: ; preds = %11
%17 = call i32 (...) @rand()
%18 = srem i32 %17, 8
store i32 %18, ptr %5, align 4
br label %22
19: ; preds = %11
%20 = call i32 (...) @rand()
%21 = srem i32 %20, 4
store i32 %21, ptr %5, align 4
br label %22
22: ; preds = %19, %16
%23 = load i32, ptr %5, align 4
switch i32 %23, label %48 [
i32 0, label %24
i32 1, label %27
i32 2, label %30
i32 3, label %33
i32 4, label %36
i32 5, label %39
i32 6, label %42
i32 7, label %45
]
24: ; preds = %22
%25 = load ptr, ptr %4, align 8
%26 = call i32 @strcat(ptr noundef %25, ptr noundef @.str.1)
br label %48
27: ; preds = %22
%28 = load ptr, ptr %4, align 8
%29 = call i32 @strcat(ptr noundef %28, ptr noundef @.str.2)
br label %48
30: ; preds = %22
%31 = load ptr, ptr %4, align 8
%32 = call i32 @strcat(ptr noundef %31, ptr noundef @.str.3)
br label %48
33: ; preds = %22
%34 = load ptr, ptr %4, align 8
%35 = call i32 @strcat(ptr noundef %34, ptr noundef @.str.4)
br label %48
36: ; preds = %22
%37 = load ptr, ptr %4, align 8
%38 = call i32 @strcat(ptr noundef %37, ptr noundef @.str.5)
br label %48
39: ; preds = %22
%40 = load ptr, ptr %4, align 8
%41 = call i32 @strcat(ptr noundef %40, ptr noundef @.str.6)
br label %48
42: ; preds = %22
%43 = load ptr, ptr %4, align 8
%44 = call i32 @strcat(ptr noundef %43, ptr noundef @.str.7)
br label %48
45: ; preds = %22
%46 = load ptr, ptr %4, align 8
%47 = call i32 @strcat(ptr noundef %46, ptr noundef @.str.8)
br label %48
48: ; preds = %45, %42, %39, %36, %33, %30, %27, %24, %22
%49 = load ptr, ptr %4, align 8
store ptr %49, ptr %2, align 8
br label %50
50: ; preds = %48, %10
%51 = load ptr, ptr %2, align 8
ret ptr %51
}
declare i64 @calloc(i32 noundef, i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @rand(...) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqoj9jp9g.c'
source_filename = "/tmp/tmpqoj9jp9g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @calc_dist_float(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 float, align 4
%8 = alloca float, align 4
%9 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
store float 0.000000e+00, ptr %7, align 4
store i64 0, ptr %9, align 8
br label %10
10: ; preds = %28, %3
%11 = load i64, ptr %9, align 8
%12 = load i64, ptr %6, align 8
%13 = icmp ult i64 %11, %12
br i1 %13, label %14, label %31
14: ; preds = %10
%15 = load ptr, ptr %5, align 8
%16 = load i64, ptr %9, align 8
%17 = getelementptr inbounds float, ptr %15, i64 %16
%18 = load float, ptr %17, align 4
%19 = load ptr, ptr %4, align 8
%20 = load i64, ptr %9, align 8
%21 = getelementptr inbounds float, ptr %19, i64 %20
%22 = load float, ptr %21, align 4
%23 = fsub float %18, %22
store float %23, ptr %8, align 4
%24 = load float, ptr %8, align 4
%25 = load float, ptr %8, align 4
%26 = load float, ptr %7, align 4
%27 = call float @llvm.fmuladd.f32(float %24, float %25, float %26)
store float %27, ptr %7, align 4
br label %28
28: ; preds = %14
%29 = load i64, ptr %9, align 8
%30 = add i64 %29, 1
store i64 %30, ptr %9, align 8
br label %10, !llvm.loop !6
31: ; preds = %10
%32 = load float, ptr %7, align 4
ret float %32
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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/tmpqoj9jp9g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @calc_dist_float(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 float, align 4
%8 = alloca float, align 4
%9 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
store float 0.000000e+00, ptr %7, align 4
store i64 0, ptr %9, align 8
%10 = load i64, ptr %9, align 8
%11 = load i64, ptr %6, align 8
%12 = icmp ult i64 %10, %11
br i1 %12, label %.lr.ph, label %33
.lr.ph: ; preds = %3
br label %13
13: ; preds = %.lr.ph, %27
%14 = load ptr, ptr %5, align 8
%15 = load i64, ptr %9, align 8
%16 = getelementptr inbounds float, ptr %14, i64 %15
%17 = load float, ptr %16, align 4
%18 = load ptr, ptr %4, align 8
%19 = load i64, ptr %9, align 8
%20 = getelementptr inbounds float, ptr %18, i64 %19
%21 = load float, ptr %20, align 4
%22 = fsub float %17, %21
store float %22, ptr %8, align 4
%23 = load float, ptr %8, align 4
%24 = load float, ptr %8, align 4
%25 = load float, ptr %7, align 4
%26 = call float @llvm.fmuladd.f32(float %23, float %24, float %25)
store float %26, ptr %7, align 4
br label %27
27: ; preds = %13
%28 = load i64, ptr %9, align 8
%29 = add i64 %28, 1
store i64 %29, ptr %9, align 8
%30 = load i64, ptr %9, align 8
%31 = load i64, ptr %6, align 8
%32 = icmp ult i64 %30, %31
br i1 %32, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %27
br label %33
33: ; preds = %._crit_edge, %3
%34 = load float, ptr %7, align 4
ret float %34
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpos_g4s0y.c'
source_filename = "/tmp/tmpos_g4s0y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [50 x i8] c"\0Amax time: %8.4f\0Amin time: %8.4f\0Aavg time: %8.4f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @reactionReport(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%9 = load ptr, ptr %3, align 8
%10 = getelementptr inbounds i64, ptr %9, i64 0
%11 = load i64, ptr %10, align 8
%12 = call i32 @printTime(i64 noundef %11, i32 noundef 1)
%13 = load ptr, ptr %3, align 8
%14 = getelementptr inbounds i64, ptr %13, i64 0
%15 = load i64, ptr %14, align 8
store i64 %15, ptr %6, align 8
store i64 %15, ptr %8, align 8
store i64 %15, ptr %7, align 8
store i32 1, ptr %5, align 4
br label %16
16: ; preds = %64, %2
%17 = load i32, ptr %5, align 4
%18 = load i32, ptr %4, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %20, label %67
20: ; preds = %16
%21 = load ptr, ptr %3, align 8
%22 = load i32, ptr %5, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i64, ptr %21, i64 %23
%25 = load i64, ptr %24, align 8
%26 = load i32, ptr %5, align 4
%27 = add nsw i32 %26, 1
%28 = call i32 @printTime(i64 noundef %25, i32 noundef %27)
%29 = load ptr, ptr %3, align 8
%30 = load i32, ptr %5, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i64, ptr %29, i64 %31
%33 = load i64, ptr %32, align 8
%34 = load i64, ptr %8, align 8
%35 = icmp sgt i64 %33, %34
br i1 %35, label %36, label %42
36: ; preds = %20
%37 = load ptr, ptr %3, align 8
%38 = load i32, ptr %5, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i64, ptr %37, i64 %39
%41 = load i64, ptr %40, align 8
store i64 %41, ptr %8, align 8
br label %42
42: ; preds = %36, %20
%43 = load ptr, ptr %3, align 8
%44 = load i32, ptr %5, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i64, ptr %43, i64 %45
%47 = load i64, ptr %46, align 8
%48 = load i64, ptr %7, align 8
%49 = icmp slt i64 %47, %48
br i1 %49, label %50, label %56
50: ; preds = %42
%51 = load ptr, ptr %3, align 8
%52 = load i32, ptr %5, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i64, ptr %51, i64 %53
%55 = load i64, ptr %54, align 8
store i64 %55, ptr %7, align 8
br label %56
56: ; preds = %50, %42
%57 = load ptr, ptr %3, align 8
%58 = load i32, ptr %5, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i64, ptr %57, i64 %59
%61 = load i64, ptr %60, align 8
%62 = load i64, ptr %6, align 8
%63 = add nsw i64 %62, %61
store i64 %63, ptr %6, align 8
br label %64
64: ; preds = %56
%65 = load i32, ptr %5, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %5, align 4
br label %16, !llvm.loop !6
67: ; preds = %16
%68 = load i64, ptr %8, align 8
%69 = sitofp i64 %68 to double
%70 = fdiv double %69, 1.000000e+06
%71 = fptosi double %70 to i64
%72 = load i64, ptr %7, align 8
%73 = sitofp i64 %72 to double
%74 = fdiv double %73, 1.000000e+06
%75 = fptosi double %74 to i64
%76 = load i64, ptr %6, align 8
%77 = sitofp i64 %76 to double
%78 = fdiv double %77, 1.000000e+06
%79 = load i32, ptr %4, align 4
%80 = sitofp i32 %79 to double
%81 = fmul double %78, %80
%82 = fptosi double %81 to i64
%83 = call i32 @printf(ptr noundef @.str, i64 noundef %71, i64 noundef %75, i64 noundef %82)
ret void
}
declare i32 @printTime(i64 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i64 noundef, i64 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/tmpos_g4s0y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [50 x i8] c"\0Amax time: %8.4f\0Amin time: %8.4f\0Aavg time: %8.4f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @reactionReport(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i64, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%9 = load ptr, ptr %3, align 8
%10 = getelementptr inbounds i64, ptr %9, i64 0
%11 = load i64, ptr %10, align 8
%12 = call i32 @printTime(i64 noundef %11, i32 noundef 1)
%13 = load ptr, ptr %3, align 8
%14 = getelementptr inbounds i64, ptr %13, i64 0
%15 = load i64, ptr %14, align 8
store i64 %15, ptr %6, align 8
store i64 %15, ptr %8, align 8
store i64 %15, ptr %7, align 8
store i32 1, ptr %5, align 4
%16 = load i32, ptr %5, align 4
%17 = load i32, ptr %4, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %.lr.ph, label %69
.lr.ph: ; preds = %2
br label %19
19: ; preds = %.lr.ph, %63
%20 = load ptr, ptr %3, align 8
%21 = load i32, ptr %5, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i64, ptr %20, i64 %22
%24 = load i64, ptr %23, align 8
%25 = load i32, ptr %5, align 4
%26 = add nsw i32 %25, 1
%27 = call i32 @printTime(i64 noundef %24, i32 noundef %26)
%28 = load ptr, ptr %3, align 8
%29 = load i32, ptr %5, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i64, ptr %28, i64 %30
%32 = load i64, ptr %31, align 8
%33 = load i64, ptr %8, align 8
%34 = icmp sgt i64 %32, %33
br i1 %34, label %35, label %41
35: ; preds = %19
%36 = load ptr, ptr %3, align 8
%37 = load i32, ptr %5, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i64, ptr %36, i64 %38
%40 = load i64, ptr %39, align 8
store i64 %40, ptr %8, align 8
br label %41
41: ; preds = %35, %19
%42 = load ptr, ptr %3, align 8
%43 = load i32, ptr %5, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i64, ptr %42, i64 %44
%46 = load i64, ptr %45, align 8
%47 = load i64, ptr %7, align 8
%48 = icmp slt i64 %46, %47
br i1 %48, label %49, label %55
49: ; preds = %41
%50 = load ptr, ptr %3, align 8
%51 = load i32, ptr %5, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i64, ptr %50, i64 %52
%54 = load i64, ptr %53, align 8
store i64 %54, ptr %7, align 8
br label %55
55: ; preds = %49, %41
%56 = load ptr, ptr %3, align 8
%57 = load i32, ptr %5, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds i64, ptr %56, i64 %58
%60 = load i64, ptr %59, align 8
%61 = load i64, ptr %6, align 8
%62 = add nsw i64 %61, %60
store i64 %62, ptr %6, align 8
br label %63
63: ; preds = %55
%64 = load i32, ptr %5, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %5, align 4
%66 = load i32, ptr %5, align 4
%67 = load i32, ptr %4, align 4
%68 = icmp slt i32 %66, %67
br i1 %68, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %63
br label %69
69: ; preds = %._crit_edge, %2
%70 = load i64, ptr %8, align 8
%71 = sitofp i64 %70 to double
%72 = fdiv double %71, 1.000000e+06
%73 = fptosi double %72 to i64
%74 = load i64, ptr %7, align 8
%75 = sitofp i64 %74 to double
%76 = fdiv double %75, 1.000000e+06
%77 = fptosi double %76 to i64
%78 = load i64, ptr %6, align 8
%79 = sitofp i64 %78 to double
%80 = fdiv double %79, 1.000000e+06
%81 = load i32, ptr %4, align 4
%82 = sitofp i32 %81 to double
%83 = fmul double %80, %82
%84 = fptosi double %83 to i64
%85 = call i32 @printf(ptr noundef @.str, i64 noundef %73, i64 noundef %77, i64 noundef %84)
ret void
}
declare i32 @printTime(i64 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i64 noundef, i64 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/tmpjkwhqq7y.c'
source_filename = "/tmp/tmpjkwhqq7y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_quick_sort(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %6, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %24
11: ; preds = %3
%12 = load ptr, ptr %4, align 8
%13 = load i32, ptr %5, align 4
%14 = load i32, ptr %6, align 4
%15 = call i32 @partition(ptr noundef %12, i32 noundef %13, i32 noundef %14)
store i32 %15, ptr %7, align 4
%16 = load ptr, ptr %4, align 8
%17 = load i32, ptr %5, align 4
%18 = load i32, ptr %7, align 4
%19 = sub nsw i32 %18, 1
call void @_quick_sort(ptr noundef %16, i32 noundef %17, i32 noundef %19)
%20 = load ptr, ptr %4, align 8
%21 = load i32, ptr %7, align 4
%22 = add nsw i32 %21, 1
%23 = load i32, ptr %6, align 4
call void @_quick_sort(ptr noundef %20, i32 noundef %22, i32 noundef %23)
br label %24
24: ; preds = %11, %3
ret void
}
declare i32 @partition(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/tmpjkwhqq7y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_quick_sort(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%8 = load i32, ptr %5, align 4
%9 = load i32, ptr %6, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %24
11: ; preds = %3
%12 = load ptr, ptr %4, align 8
%13 = load i32, ptr %5, align 4
%14 = load i32, ptr %6, align 4
%15 = call i32 @partition(ptr noundef %12, i32 noundef %13, i32 noundef %14)
store i32 %15, ptr %7, align 4
%16 = load ptr, ptr %4, align 8
%17 = load i32, ptr %5, align 4
%18 = load i32, ptr %7, align 4
%19 = sub nsw i32 %18, 1
call void @_quick_sort(ptr noundef %16, i32 noundef %17, i32 noundef %19)
%20 = load ptr, ptr %4, align 8
%21 = load i32, ptr %7, align 4
%22 = add nsw i32 %21, 1
%23 = load i32, ptr %6, align 4
call void @_quick_sort(ptr noundef %20, i32 noundef %22, i32 noundef %23)
br label %24
24: ; preds = %11, %3
ret void
}
declare i32 @partition(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/tmps54sypwl.c'
source_filename = "/tmp/tmps54sypwl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SEEK_END = dso_local global i32 0, align 4
@SEEK_SET = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_file_size(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = icmp eq ptr %5, null
br i1 %6, label %7, label %8
7: ; preds = %1
store i32 0, ptr %2, align 4
br label %19
8: ; preds = %1
%9 = load ptr, ptr %3, align 8
%10 = load i32, ptr @SEEK_END, align 4
%11 = call i32 @fseek(ptr noundef %9, i64 noundef 0, i32 noundef %10)
%12 = load ptr, ptr %3, align 8
%13 = call i64 @ftell(ptr noundef %12)
%14 = trunc i64 %13 to i32
store i32 %14, ptr %4, align 4
%15 = load ptr, ptr %3, align 8
%16 = load i32, ptr @SEEK_SET, align 4
%17 = call i32 @fseek(ptr noundef %15, i64 noundef 0, i32 noundef %16)
%18 = load i32, ptr %4, align 4
store i32 %18, ptr %2, align 4
br label %19
19: ; preds = %8, %7
%20 = load i32, ptr %2, align 4
ret i32 %20
}
declare i32 @fseek(ptr noundef, i64 noundef, i32 noundef) #1
declare i64 @ftell(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmps54sypwl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SEEK_END = dso_local global i32 0, align 4
@SEEK_SET = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_file_size(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = icmp eq ptr %5, null
br i1 %6, label %7, label %8
7: ; preds = %1
store i32 0, ptr %2, align 4
br label %19
8: ; preds = %1
%9 = load ptr, ptr %3, align 8
%10 = load i32, ptr @SEEK_END, align 4
%11 = call i32 @fseek(ptr noundef %9, i64 noundef 0, i32 noundef %10)
%12 = load ptr, ptr %3, align 8
%13 = call i64 @ftell(ptr noundef %12)
%14 = trunc i64 %13 to i32
store i32 %14, ptr %4, align 4
%15 = load ptr, ptr %3, align 8
%16 = load i32, ptr @SEEK_SET, align 4
%17 = call i32 @fseek(ptr noundef %15, i64 noundef 0, i32 noundef %16)
%18 = load i32, ptr %4, align 4
store i32 %18, ptr %2, align 4
br label %19
19: ; preds = %8, %7
%20 = load i32, ptr %2, align 4
ret i32 %20
}
declare i32 @fseek(ptr noundef, i64 noundef, i32 noundef) #1
declare i64 @ftell(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjtf6izko.c'
source_filename = "/tmp/tmpjtf6izko.c"
target datalayout = "e-m:e-p270: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/tmpjtf6izko.c"
target datalayout = "e-m:e-p270: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/tmprj1yjlgd.c'
source_filename = "/tmp/tmprj1yjlgd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Convert \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"to base \00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = call i32 @printf(ptr noundef @.str)
%9 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %6)
%10 = call i32 @printf(ptr noundef @.str.2)
%11 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %7)
%12 = load i32, ptr %6, align 4
%13 = load i32, ptr %7, align 4
%14 = call i32 @convert(i32 noundef %12, i32 noundef %13)
%15 = call i32 @printf(ptr noundef @.str.3)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @convert(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/tmprj1yjlgd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Convert \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"to base \00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = call i32 @printf(ptr noundef @.str)
%9 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %6)
%10 = call i32 @printf(ptr noundef @.str.2)
%11 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %7)
%12 = load i32, ptr %6, align 4
%13 = load i32, ptr %7, align 4
%14 = call i32 @convert(i32 noundef %12, i32 noundef %13)
%15 = call i32 @printf(ptr noundef @.str.3)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @convert(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/tmpzrkce5wh.c'
source_filename = "/tmp/tmpzrkce5wh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @vector_malloc(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = sext i32 %4 to i64
%6 = mul i64 %5, 8
%7 = trunc i64 %6 to i32
%8 = call i64 @malloc(i32 noundef %7)
%9 = inttoptr i64 %8 to ptr
store ptr %9, ptr %3, align 8
%10 = load ptr, ptr %3, align 8
ret ptr %10
}
declare i64 @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzrkce5wh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @vector_malloc(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = sext i32 %4 to i64
%6 = mul i64 %5, 8
%7 = trunc i64 %6 to i32
%8 = call i64 @malloc(i32 noundef %7)
%9 = inttoptr i64 %8 to ptr
store ptr %9, ptr %3, align 8
%10 = load ptr, ptr %3, align 8
ret ptr %10
}
declare i64 @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpigr0jnql.c'
source_filename = "/tmp/tmpigr0jnql.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @stupid_sincos_x86_fpu(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
store double %0, ptr %2, align 8
%5 = load double, ptr %2, align 8
%6 = call i32 @sincos_x86_fpu(double noundef %5, ptr noundef %3, ptr noundef %4)
%7 = load double, ptr %3, align 8
%8 = load double, ptr %4, align 8
%9 = fadd double %7, %8
ret double %9
}
declare i32 @sincos_x86_fpu(double 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/tmpigr0jnql.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @stupid_sincos_x86_fpu(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
store double %0, ptr %2, align 8
%5 = load double, ptr %2, align 8
%6 = call i32 @sincos_x86_fpu(double noundef %5, ptr noundef %3, ptr noundef %4)
%7 = load double, ptr %3, align 8
%8 = load double, ptr %4, align 8
%9 = fadd double %7, %8
ret double %9
}
declare i32 @sincos_x86_fpu(double 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/tmp2gf8asst.c'
source_filename = "/tmp/tmp2gf8asst.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 1, ptr %6, align 4
br label %7
7: ; preds = %14, %2
%8 = load i32, ptr %6, align 4
%9 = icmp sle i32 %8, 10
br i1 %9, label %10, label %17
10: ; preds = %7
%11 = load i32, ptr %6, align 4
%12 = call i32 @fibonacci(i32 noundef %11)
%13 = call i32 @printf(ptr noundef @.str, i32 noundef %12)
br label %14
14: ; preds = %10
%15 = load i32, ptr %6, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %6, align 4
br label %7, !llvm.loop !6
17: ; preds = %7
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @fibonacci(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/tmp2gf8asst.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 1, ptr %6, align 4
%7 = load i32, ptr %6, align 4
%8 = icmp sle i32 %7, 10
br i1 %8, label %.lr.ph, label %18
.lr.ph: ; preds = %2
br label %9
9: ; preds = %.lr.ph, %13
%10 = load i32, ptr %6, align 4
%11 = call i32 @fibonacci(i32 noundef %10)
%12 = call i32 @printf(ptr noundef @.str, i32 noundef %11)
br label %13
13: ; preds = %9
%14 = load i32, ptr %6, align 4
%15 = add nsw i32 %14, 1
store i32 %15, ptr %6, align 4
%16 = load i32, ptr %6, align 4
%17 = icmp sle i32 %16, 10
br i1 %17, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %13
br label %18
18: ; preds = %._crit_edge, %2
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @fibonacci(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/tmpsm8e7r7f.c'
source_filename = "/tmp/tmpsm8e7r7f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @func2(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 3, ptr %3, align 4
store i32 0, ptr %4, align 4
br label %7
7: ; preds = %17, %1
%8 = load i32, ptr %4, align 4
%9 = load i32, ptr %2, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %20
11: ; preds = %7
%12 = load i32, ptr %4, align 4
store i32 %12, ptr %5, align 4
%13 = load i32, ptr %5, align 4
%14 = add nsw i32 %13, 1
store i32 %14, ptr %6, align 4
%15 = load i32, ptr %6, align 4
%16 = call i32 @func1(i32 noundef %15)
br label %17
17: ; preds = %11
%18 = load i32, ptr %4, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %4, align 4
br label %7, !llvm.loop !6
20: ; preds = %7
%21 = load i32, ptr %3, align 4
ret i32 %21
}
declare i32 @func1(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/tmpsm8e7r7f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @func2(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 3, ptr %3, align 4
store i32 0, ptr %4, align 4
%7 = load i32, ptr %4, align 4
%8 = load i32, ptr %2, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %.lr.ph, label %22
.lr.ph: ; preds = %1
br label %10
10: ; preds = %.lr.ph, %16
%11 = load i32, ptr %4, align 4
store i32 %11, ptr %5, align 4
%12 = load i32, ptr %5, align 4
%13 = add nsw i32 %12, 1
store i32 %13, ptr %6, align 4
%14 = load i32, ptr %6, align 4
%15 = call i32 @func1(i32 noundef %14)
br label %16
16: ; preds = %10
%17 = load i32, ptr %4, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %4, align 4
%19 = load i32, ptr %4, align 4
%20 = load i32, ptr %2, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %16
br label %22
22: ; preds = %._crit_edge, %1
%23 = load i32, ptr %3, align 4
ret i32 %23
}
declare i32 @func1(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/tmpofuw4v5t.c'
source_filename = "/tmp/tmpofuw4v5t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpofuw4v5t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_8pgdfkb.c'
source_filename = "/tmp/tmp_8pgdfkb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [65 x i8] c"::::::vnStatXML %s by Wu Zhangjin <wuzhangjin@gmail.com>::::::\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"0.1\00", align 1
@.str.2 = private unnamed_addr constant [34 x i8] c" -h show hours\0A\00", align 1
@.str.3 = private unnamed_addr constant [33 x i8] c" -d show days\0A\00", align 1
@.str.4 = private unnamed_addr constant [35 x i8] c" -m show months\0A\00", align 1
@.str.5 = private unnamed_addr constant [34 x i8] c" -w show weeks\0A\00", align 1
@.str.6 = private unnamed_addr constant [34 x i8] c" -t show top10\0A\00", align 1
@.str.7 = private unnamed_addr constant [40 x i8] c" -s use short output\0A\00", align 1
@.str.8 = private unnamed_addr constant [57 x i8] c" -a show database in parseable format\0A\00", align 1
@.str.9 = private unnamed_addr constant [41 x i8] c" -i set the interface\0A\00", align 1
@.str.10 = private unnamed_addr constant [60 x i8] c" -c set the database directory of vnstat\0A\00", align 1
@.str.11 = private unnamed_addr constant [34 x i8] c" -? short help\0A\00", align 1
@.str.12 = private unnamed_addr constant [37 x i8] c" -v show version\0A\0A\00", align 1
@.str.13 = private unnamed_addr constant [58 x i8] c"NOTE: vnStatXML %s not support -a, -s and -w currently.\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
%1 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1)
%2 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, ptr noundef @.str.1)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_8pgdfkb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [65 x i8] c"::::::vnStatXML %s by Wu Zhangjin <wuzhangjin@gmail.com>::::::\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"0.1\00", align 1
@.str.2 = private unnamed_addr constant [34 x i8] c" -h show hours\0A\00", align 1
@.str.3 = private unnamed_addr constant [33 x i8] c" -d show days\0A\00", align 1
@.str.4 = private unnamed_addr constant [35 x i8] c" -m show months\0A\00", align 1
@.str.5 = private unnamed_addr constant [34 x i8] c" -w show weeks\0A\00", align 1
@.str.6 = private unnamed_addr constant [34 x i8] c" -t show top10\0A\00", align 1
@.str.7 = private unnamed_addr constant [40 x i8] c" -s use short output\0A\00", align 1
@.str.8 = private unnamed_addr constant [57 x i8] c" -a show database in parseable format\0A\00", align 1
@.str.9 = private unnamed_addr constant [41 x i8] c" -i set the interface\0A\00", align 1
@.str.10 = private unnamed_addr constant [60 x i8] c" -c set the database directory of vnstat\0A\00", align 1
@.str.11 = private unnamed_addr constant [34 x i8] c" -? short help\0A\00", align 1
@.str.12 = private unnamed_addr constant [37 x i8] c" -v show version\0A\0A\00", align 1
@.str.13 = private unnamed_addr constant [58 x i8] c"NOTE: vnStatXML %s not support -a, -s and -w currently.\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
%1 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1)
%2 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%3 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, ptr noundef @.str.1)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpu9kthwdr.c'
source_filename = "/tmp/tmpu9kthwdr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sendTagBuffer(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = getelementptr inbounds i32, ptr %5, i64 0
%7 = load volatile i32, ptr %6, align 4
%8 = zext i32 %7 to i64
%9 = getelementptr i8, ptr %4, i64 %8
%10 = call i32 @flush_range(ptr noundef %3, ptr noundef %9)
%11 = load ptr, ptr %2, align 8
%12 = ptrtoint ptr %11 to i32
%13 = and i32 %12, -16
%14 = or i32 %13, 8
%15 = call i32 @mailboxSend(i32 noundef %14)
%16 = call i32 (...) @mailboxRecv()
%17 = call i32 (...) @dmb()
ret void
}
declare i32 @flush_range(ptr noundef, ptr noundef) #1
declare i32 @mailboxSend(i32 noundef) #1
declare i32 @mailboxRecv(...) #1
declare i32 @dmb(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpu9kthwdr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sendTagBuffer(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = getelementptr inbounds i32, ptr %5, i64 0
%7 = load volatile i32, ptr %6, align 4
%8 = zext i32 %7 to i64
%9 = getelementptr i8, ptr %4, i64 %8
%10 = call i32 @flush_range(ptr noundef %3, ptr noundef %9)
%11 = load ptr, ptr %2, align 8
%12 = ptrtoint ptr %11 to i32
%13 = and i32 %12, -16
%14 = or i32 %13, 8
%15 = call i32 @mailboxSend(i32 noundef %14)
%16 = call i32 (...) @mailboxRecv()
%17 = call i32 (...) @dmb()
ret void
}
declare i32 @flush_range(ptr noundef, ptr noundef) #1
declare i32 @mailboxSend(i32 noundef) #1
declare i32 @mailboxRecv(...) #1
declare i32 @dmb(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgo8h8qfw.c'
source_filename = "/tmp/tmpgo8h8qfw.c"
target datalayout = "e-m:e-p270: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/tmpgo8h8qfw.c"
target datalayout = "e-m:e-p270: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/tmp2h0u8bip.c'
source_filename = "/tmp/tmp2h0u8bip.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @S1(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 @rotr(i32 noundef %3, i32 noundef 6)
%5 = load i32, ptr %2, align 4
%6 = call i32 @rotr(i32 noundef %5, i32 noundef 11)
%7 = xor i32 %4, %6
%8 = load i32, ptr %2, align 4
%9 = call i32 @rotr(i32 noundef %8, i32 noundef 25)
%10 = xor i32 %7, %9
ret i32 %10
}
declare i32 @rotr(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/tmp2h0u8bip.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @S1(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 @rotr(i32 noundef %3, i32 noundef 6)
%5 = load i32, ptr %2, align 4
%6 = call i32 @rotr(i32 noundef %5, i32 noundef 11)
%7 = xor i32 %4, %6
%8 = load i32, ptr %2, align 4
%9 = call i32 @rotr(i32 noundef %8, i32 noundef 25)
%10 = xor i32 %7, %9
ret i32 %10
}
declare i32 @rotr(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/tmpcddzbbp3.c'
source_filename = "/tmp/tmpcddzbbp3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%d:%d:%d\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"%d::%d\00", align 1
@INT_MAX = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [45 x i8] c"parse_loop: expected start:end:step found %s\00", align 1
@.str.3 = private unnamed_addr constant [26 x i8] c"parse_loop: start <= 0 %s\00", align 1
@.str.4 = private unnamed_addr constant [27 x i8] c"parse_loop: end < start %s\00", align 1
@.str.5 = private unnamed_addr constant [25 x i8] c"parse_loop: step <= 0 %s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @parse_loop(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%10 = load ptr, ptr %5, align 8
%11 = load ptr, ptr %6, align 8
%12 = load ptr, ptr %7, align 8
%13 = load ptr, ptr %8, align 8
%14 = call i32 (ptr, ptr, ptr, ptr, ...) @sscanf(ptr noundef %10, ptr noundef @.str, ptr noundef %11, ptr noundef %12, ptr noundef %13)
store i32 %14, ptr %9, align 4
%15 = load i32, ptr %9, align 4
%16 = icmp eq i32 %15, 2
br i1 %16, label %17, label %19
17: ; preds = %4
%18 = load ptr, ptr %8, align 8
store i32 1, ptr %18, align 4
br label %45
19: ; preds = %4
%20 = load i32, ptr %9, align 4
%21 = icmp eq i32 %20, 1
br i1 %21, label %22, label %37
22: ; preds = %19
%23 = load ptr, ptr %5, align 8
%24 = load ptr, ptr %6, align 8
%25 = load ptr, ptr %8, align 8
%26 = call i32 (ptr, ptr, ptr, ptr, ...) @sscanf(ptr noundef %23, ptr noundef @.str.1, ptr noundef %24, ptr noundef %25)
store i32 %26, ptr %9, align 4
%27 = load i32, ptr %9, align 4
%28 = icmp eq i32 %27, 2
br i1 %28, label %29, label %32
29: ; preds = %22
%30 = load i32, ptr @INT_MAX, align 4
%31 = load ptr, ptr %7, align 8
store i32 %30, ptr %31, align 4
br label %36
32: ; preds = %22
%33 = load ptr, ptr %8, align 8
store i32 1, ptr %33, align 4
%34 = load i32, ptr @INT_MAX, align 4
%35 = load ptr, ptr %7, align 8
store i32 %34, ptr %35, align 4
br label %36
36: ; preds = %32, %29
br label %44
37: ; preds = %19
%38 = load i32, ptr %9, align 4
%39 = icmp ne i32 %38, 3
br i1 %39, label %40, label %43
40: ; preds = %37
%41 = load ptr, ptr %5, align 8
%42 = call i32 @fatal_error(ptr noundef @.str.2, ptr noundef %41)
br label %43
43: ; preds = %40, %37
br label %44
44: ; preds = %43, %36
br label %45
45: ; preds = %44, %17
%46 = load ptr, ptr %6, align 8
%47 = load i32, ptr %46, align 4
%48 = icmp sle i32 %47, 0
br i1 %48, label %49, label %52
49: ; preds = %45
%50 = load ptr, ptr %5, align 8
%51 = call i32 @fatal_error(ptr noundef @.str.3, ptr noundef %50)
br label %52
52: ; preds = %49, %45
%53 = load ptr, ptr %7, align 8
%54 = load i32, ptr %53, align 4
%55 = load ptr, ptr %6, align 8
%56 = load i32, ptr %55, align 4
%57 = icmp slt i32 %54, %56
br i1 %57, label %58, label %61
58: ; preds = %52
%59 = load ptr, ptr %5, align 8
%60 = call i32 @fatal_error(ptr noundef @.str.4, ptr noundef %59)
br label %61
61: ; preds = %58, %52
%62 = load ptr, ptr %8, align 8
%63 = load i32, ptr %62, align 4
%64 = icmp sle i32 %63, 0
br i1 %64, label %65, label %68
65: ; preds = %61
%66 = load ptr, ptr %5, align 8
%67 = call i32 @fatal_error(ptr noundef @.str.5, ptr noundef %66)
br label %68
68: ; preds = %65, %61
ret i32 0
}
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ...) #1
declare i32 @fatal_error(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/tmpcddzbbp3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%d:%d:%d\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"%d::%d\00", align 1
@INT_MAX = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [45 x i8] c"parse_loop: expected start:end:step found %s\00", align 1
@.str.3 = private unnamed_addr constant [26 x i8] c"parse_loop: start <= 0 %s\00", align 1
@.str.4 = private unnamed_addr constant [27 x i8] c"parse_loop: end < start %s\00", align 1
@.str.5 = private unnamed_addr constant [25 x i8] c"parse_loop: step <= 0 %s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @parse_loop(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%10 = load ptr, ptr %5, align 8
%11 = load ptr, ptr %6, align 8
%12 = load ptr, ptr %7, align 8
%13 = load ptr, ptr %8, align 8
%14 = call i32 (ptr, ptr, ptr, ptr, ...) @sscanf(ptr noundef %10, ptr noundef @.str, ptr noundef %11, ptr noundef %12, ptr noundef %13)
store i32 %14, ptr %9, align 4
%15 = load i32, ptr %9, align 4
%16 = icmp eq i32 %15, 2
br i1 %16, label %17, label %19
17: ; preds = %4
%18 = load ptr, ptr %8, align 8
store i32 1, ptr %18, align 4
br label %45
19: ; preds = %4
%20 = load i32, ptr %9, align 4
%21 = icmp eq i32 %20, 1
br i1 %21, label %22, label %37
22: ; preds = %19
%23 = load ptr, ptr %5, align 8
%24 = load ptr, ptr %6, align 8
%25 = load ptr, ptr %8, align 8
%26 = call i32 (ptr, ptr, ptr, ptr, ...) @sscanf(ptr noundef %23, ptr noundef @.str.1, ptr noundef %24, ptr noundef %25)
store i32 %26, ptr %9, align 4
%27 = load i32, ptr %9, align 4
%28 = icmp eq i32 %27, 2
br i1 %28, label %29, label %32
29: ; preds = %22
%30 = load i32, ptr @INT_MAX, align 4
%31 = load ptr, ptr %7, align 8
store i32 %30, ptr %31, align 4
br label %36
32: ; preds = %22
%33 = load ptr, ptr %8, align 8
store i32 1, ptr %33, align 4
%34 = load i32, ptr @INT_MAX, align 4
%35 = load ptr, ptr %7, align 8
store i32 %34, ptr %35, align 4
br label %36
36: ; preds = %32, %29
br label %44
37: ; preds = %19
%38 = load i32, ptr %9, align 4
%39 = icmp ne i32 %38, 3
br i1 %39, label %40, label %43
40: ; preds = %37
%41 = load ptr, ptr %5, align 8
%42 = call i32 @fatal_error(ptr noundef @.str.2, ptr noundef %41)
br label %43
43: ; preds = %40, %37
br label %44
44: ; preds = %43, %36
br label %45
45: ; preds = %44, %17
%46 = load ptr, ptr %6, align 8
%47 = load i32, ptr %46, align 4
%48 = icmp sle i32 %47, 0
br i1 %48, label %49, label %52
49: ; preds = %45
%50 = load ptr, ptr %5, align 8
%51 = call i32 @fatal_error(ptr noundef @.str.3, ptr noundef %50)
br label %52
52: ; preds = %49, %45
%53 = load ptr, ptr %7, align 8
%54 = load i32, ptr %53, align 4
%55 = load ptr, ptr %6, align 8
%56 = load i32, ptr %55, align 4
%57 = icmp slt i32 %54, %56
br i1 %57, label %58, label %61
58: ; preds = %52
%59 = load ptr, ptr %5, align 8
%60 = call i32 @fatal_error(ptr noundef @.str.4, ptr noundef %59)
br label %61
61: ; preds = %58, %52
%62 = load ptr, ptr %8, align 8
%63 = load i32, ptr %62, align 4
%64 = icmp sle i32 %63, 0
br i1 %64, label %65, label %68
65: ; preds = %61
%66 = load ptr, ptr %5, align 8
%67 = call i32 @fatal_error(ptr noundef @.str.5, ptr noundef %66)
br label %68
68: ; preds = %65, %61
ret i32 0
}
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ...) #1
declare i32 @fatal_error(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/tmpvlv8rl6i.c'
source_filename = "/tmp/tmpvlv8rl6i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 ptr, align 8
%5 = alloca ptr, align 8
store i32 0, ptr %1, align 4
store ptr %2, ptr %4, align 8
store ptr %2, ptr %5, align 8
%6 = load ptr, ptr %4, align 8
%7 = load ptr, ptr %5, align 8
%8 = icmp ne ptr %6, %7
br i1 %8, label %9, label %10
9: ; preds = %0
br label %11
10: ; preds = %0
ret i32 0
11: ; preds = %9
%12 = call i32 (...) @reach_error()
%13 = call i32 (...) @abort() #3
unreachable
}
declare i32 @reach_error(...) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvlv8rl6i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 ptr, align 8
%5 = alloca ptr, align 8
store i32 0, ptr %1, align 4
store ptr %2, ptr %4, align 8
store ptr %2, ptr %5, align 8
%6 = load ptr, ptr %4, align 8
%7 = load ptr, ptr %5, align 8
%8 = icmp ne ptr %6, %7
br i1 %8, label %9, label %10
9: ; preds = %0
br label %11
10: ; preds = %0
ret i32 0
11: ; preds = %9
%12 = call i32 (...) @reach_error()
%13 = call i32 (...) @abort() #3
unreachable
}
declare i32 @reach_error(...) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpp3msg4k8.c'
source_filename = "/tmp/tmpp3msg4k8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"5678\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 i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 3, ptr %7, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp sgt i32 %8, 1
br i1 %9, label %10, label %15
10: ; preds = %2
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds ptr, ptr %11, i64 1
%13 = load ptr, ptr %12, align 8
%14 = call i32 @atoi(ptr noundef %13)
store i32 %14, ptr %7, align 4
br label %15
15: ; preds = %10, %2
%16 = load i32, ptr %7, align 4
%17 = add nsw i32 %16, 1
%18 = sext i32 %17 to i64
%19 = mul i64 %18, 1
%20 = trunc i64 %19 to i32
%21 = call i64 @malloc(i32 noundef %20)
%22 = inttoptr i64 %21 to ptr
store ptr %22, ptr %6, align 8
%23 = load ptr, ptr %6, align 8
%24 = load i32, ptr %7, align 4
%25 = call i32 @add(ptr noundef %23, ptr noundef @.str, i32 noundef 4, i32 noundef 0, i32 noundef %24)
ret i32 0
}
declare i32 @atoi(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @add(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpp3msg4k8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"5678\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 i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 3, ptr %7, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp sgt i32 %8, 1
br i1 %9, label %10, label %15
10: ; preds = %2
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds ptr, ptr %11, i64 1
%13 = load ptr, ptr %12, align 8
%14 = call i32 @atoi(ptr noundef %13)
store i32 %14, ptr %7, align 4
br label %15
15: ; preds = %10, %2
%16 = load i32, ptr %7, align 4
%17 = add nsw i32 %16, 1
%18 = sext i32 %17 to i64
%19 = mul i64 %18, 1
%20 = trunc i64 %19 to i32
%21 = call i64 @malloc(i32 noundef %20)
%22 = inttoptr i64 %21 to ptr
store ptr %22, ptr %6, align 8
%23 = load ptr, ptr %6, align 8
%24 = load i32, ptr %7, align 4
%25 = call i32 @add(ptr noundef %23, ptr noundef @.str, i32 noundef 4, i32 noundef 0, i32 noundef %24)
ret i32 0
}
declare i32 @atoi(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @add(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqh6qyqya.c'
source_filename = "/tmp/tmpqh6qyqya.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @size2() #0 {
%1 = call i32 @set_size(i32 noundef 2)
ret void
}
declare i32 @set_size(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/tmpqh6qyqya.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @size2() #0 {
%1 = call i32 @set_size(i32 noundef 2)
ret void
}
declare i32 @set_size(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/tmpkzaajt53.c'
source_filename = "/tmp/tmpkzaajt53.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @stdlib_strided_sdsnansum(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = load ptr, ptr %5, align 8
%9 = load i32, ptr %6, align 4
%10 = call float @stdlib_strided_sdsnansumpw(i32 noundef %7, ptr noundef %8, i32 noundef %9)
ret float %10
}
declare float @stdlib_strided_sdsnansumpw(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/tmpkzaajt53.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @stdlib_strided_sdsnansum(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = load ptr, ptr %5, align 8
%9 = load i32, ptr %6, align 4
%10 = call float @stdlib_strided_sdsnansumpw(i32 noundef %7, ptr noundef %8, i32 noundef %9)
ret float %10
}
declare float @stdlib_strided_sdsnansumpw(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/tmpete32o1n.c'
source_filename = "/tmp/tmpete32o1n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [31 x i8] c"------- End MergeSort -------\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @err(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 @printf(ptr noundef %3)
%5 = call i32 @printf(ptr noundef @.str)
%6 = load i32, ptr @EXIT_FAILURE, align 4
%7 = call i32 @exit(i32 noundef %6) #3
unreachable
}
declare i32 @printf(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/tmpete32o1n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [31 x i8] c"------- End MergeSort -------\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @err(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 @printf(ptr noundef %3)
%5 = call i32 @printf(ptr noundef @.str)
%6 = load i32, ptr @EXIT_FAILURE, align 4
%7 = call i32 @exit(i32 noundef %6) #3
unreachable
}
declare i32 @printf(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/tmpl8e_3vce.c'
source_filename = "/tmp/tmpl8e_3vce.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 (...) @getint()
store i32 %4, ptr %2, align 4
%5 = call i32 (...) @getint()
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %2, align 4
%7 = load i32, ptr %3, align 4
%8 = icmp sgt i32 %6, %7
br i1 %8, label %9, label %15
9: ; preds = %0
%10 = load i32, ptr %2, align 4
%11 = load i32, ptr %3, align 4
%12 = add nsw i32 %10, %11
%13 = call i32 @putint(i32 noundef %12)
%14 = call i32 @putchar(i32 noundef 10)
br label %15
15: ; preds = %9, %0
%16 = load i32, ptr %2, align 4
%17 = load i32, ptr %3, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %19, label %25
19: ; preds = %15
%20 = load i32, ptr %2, align 4
%21 = load i32, ptr %3, align 4
%22 = sub nsw i32 %20, %21
%23 = call i32 @putint(i32 noundef %22)
%24 = call i32 @putchar(i32 noundef 10)
br label %25
25: ; preds = %19, %15
%26 = load i32, ptr %2, align 4
%27 = load i32, ptr %3, align 4
%28 = icmp eq i32 %26, %27
br i1 %28, label %29, label %35
29: ; preds = %25
%30 = load i32, ptr %2, align 4
%31 = load i32, ptr %3, align 4
%32 = mul nsw i32 %30, %31
%33 = call i32 @putint(i32 noundef %32)
%34 = call i32 @putchar(i32 noundef 10)
br label %35
35: ; preds = %29, %25
%36 = load i32, ptr %2, align 4
%37 = load i32, ptr %3, align 4
%38 = icmp ne i32 %36, %37
br i1 %38, label %39, label %45
39: ; preds = %35
%40 = load i32, ptr %2, align 4
%41 = load i32, ptr %3, align 4
%42 = sdiv i32 %40, %41
%43 = call i32 @putint(i32 noundef %42)
%44 = call i32 @putchar(i32 noundef 10)
br label %45
45: ; preds = %39, %35
ret i32 0
}
declare i32 @getint(...) #1
declare i32 @putint(i32 noundef) #1
declare i32 @putchar(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpl8e_3vce.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 (...) @getint()
store i32 %4, ptr %2, align 4
%5 = call i32 (...) @getint()
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %2, align 4
%7 = load i32, ptr %3, align 4
%8 = icmp sgt i32 %6, %7
br i1 %8, label %9, label %15
9: ; preds = %0
%10 = load i32, ptr %2, align 4
%11 = load i32, ptr %3, align 4
%12 = add nsw i32 %10, %11
%13 = call i32 @putint(i32 noundef %12)
%14 = call i32 @putchar(i32 noundef 10)
br label %15
15: ; preds = %9, %0
%16 = load i32, ptr %2, align 4
%17 = load i32, ptr %3, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %19, label %25
19: ; preds = %15
%20 = load i32, ptr %2, align 4
%21 = load i32, ptr %3, align 4
%22 = sub nsw i32 %20, %21
%23 = call i32 @putint(i32 noundef %22)
%24 = call i32 @putchar(i32 noundef 10)
br label %25
25: ; preds = %19, %15
%26 = load i32, ptr %2, align 4
%27 = load i32, ptr %3, align 4
%28 = icmp eq i32 %26, %27
br i1 %28, label %29, label %35
29: ; preds = %25
%30 = load i32, ptr %2, align 4
%31 = load i32, ptr %3, align 4
%32 = mul nsw i32 %30, %31
%33 = call i32 @putint(i32 noundef %32)
%34 = call i32 @putchar(i32 noundef 10)
br label %35
35: ; preds = %29, %25
%36 = load i32, ptr %2, align 4
%37 = load i32, ptr %3, align 4
%38 = icmp ne i32 %36, %37
br i1 %38, label %39, label %45
39: ; preds = %35
%40 = load i32, ptr %2, align 4
%41 = load i32, ptr %3, align 4
%42 = sdiv i32 %40, %41
%43 = call i32 @putint(i32 noundef %42)
%44 = call i32 @putchar(i32 noundef 10)
br label %45
45: ; preds = %39, %35
ret i32 0
}
declare i32 @getint(...) #1
declare i32 @putint(i32 noundef) #1
declare i32 @putchar(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp69_vqx4f.c'
source_filename = "/tmp/tmp69_vqx4f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ft_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
%6 = load ptr, ptr %4, 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 %10, label %22
10: ; preds = %2
%11 = load ptr, ptr %4, align 8
%12 = getelementptr inbounds i8, ptr %11, i32 1
store ptr %12, ptr %4, align 8
%13 = load i8, ptr %11, align 1
%14 = sext i8 %13 to i32
%15 = load i32, ptr %5, align 4
%16 = trunc i32 %15 to i8
%17 = sext i8 %16 to i32
%18 = icmp eq i32 %14, %17
br i1 %18, label %19, label %22
19: ; preds = %10
%20 = load ptr, ptr %4, align 8
%21 = getelementptr inbounds i8, ptr %20, i32 -1
store ptr %21, ptr %4, align 8
store ptr %21, ptr %3, align 8
br label %48
22: ; preds = %10, %2
br label %23
23: ; preds = %46, %22
%24 = load ptr, ptr %4, align 8
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
%27 = icmp ne i32 %26, 0
br i1 %27, label %28, label %34
28: ; preds = %23
%29 = load ptr, ptr %4, align 8
%30 = getelementptr inbounds i8, ptr %29, i32 1
store ptr %30, ptr %4, align 8
%31 = load i8, ptr %29, align 1
%32 = sext i8 %31 to i32
%33 = icmp ne i32 %32, 0
br label %34
34: ; preds = %28, %23
%35 = phi i1 [ false, %23 ], [ %33, %28 ]
br i1 %35, label %36, label %47
36: ; preds = %34
%37 = load ptr, ptr %4, align 8
%38 = load i8, ptr %37, align 1
%39 = sext i8 %38 to i32
%40 = load i32, ptr %5, align 4
%41 = trunc i32 %40 to i8
%42 = sext i8 %41 to i32
%43 = icmp eq i32 %39, %42
br i1 %43, label %44, label %46
44: ; preds = %36
%45 = load ptr, ptr %4, align 8
store ptr %45, ptr %3, align 8
br label %48
46: ; preds = %36
br label %23, !llvm.loop !6
47: ; preds = %34
store ptr null, ptr %3, align 8
br label %48
48: ; preds = %47, %44, %19
%49 = load ptr, ptr %3, align 8
ret ptr %49
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp69_vqx4f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ft_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
%6 = load ptr, ptr %4, 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 %10, label %22
10: ; preds = %2
%11 = load ptr, ptr %4, align 8
%12 = getelementptr inbounds i8, ptr %11, i32 1
store ptr %12, ptr %4, align 8
%13 = load i8, ptr %11, align 1
%14 = sext i8 %13 to i32
%15 = load i32, ptr %5, align 4
%16 = trunc i32 %15 to i8
%17 = sext i8 %16 to i32
%18 = icmp eq i32 %14, %17
br i1 %18, label %19, label %22
19: ; preds = %10
%20 = load ptr, ptr %4, align 8
%21 = getelementptr inbounds i8, ptr %20, i32 -1
store ptr %21, ptr %4, align 8
store ptr %21, ptr %3, align 8
br label %47
22: ; preds = %10, %2
br label %23
23: ; preds = %36, %22
%24 = load ptr, ptr %4, align 8
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
%27 = icmp ne i32 %26, 0
br i1 %27, label %28, label %34
28: ; preds = %23
%29 = load ptr, ptr %4, align 8
%30 = getelementptr inbounds i8, ptr %29, i32 1
store ptr %30, ptr %4, align 8
%31 = load i8, ptr %29, align 1
%32 = sext i8 %31 to i32
%33 = icmp ne i32 %32, 0
br label %34
34: ; preds = %28, %23
%35 = phi i1 [ false, %23 ], [ %33, %28 ]
br i1 %35, label %36, label %46
36: ; preds = %34
%37 = load ptr, ptr %4, align 8
%38 = load i8, ptr %37, align 1
%39 = sext i8 %38 to i32
%40 = load i32, ptr %5, align 4
%41 = trunc i32 %40 to i8
%42 = sext i8 %41 to i32
%43 = icmp eq i32 %39, %42
br i1 %43, label %44, label %23, !llvm.loop !6
44: ; preds = %36
%45 = load ptr, ptr %4, align 8
store ptr %45, ptr %3, align 8
br label %47
46: ; preds = %34
store ptr null, ptr %3, align 8
br label %47
47: ; preds = %46, %44, %19
%48 = load ptr, ptr %3, align 8
ret ptr %48
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpbi2lxdr0.c'
source_filename = "/tmp/tmpbi2lxdr0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"BAD ARGUMENT\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cmd_move(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%7 = load i32, ptr %3, align 4
%8 = call i32 @check_arg_count(i32 noundef %7, i32 noundef 2)
%9 = icmp eq i32 %8, 1
br i1 %9, label %10, label %11
10: ; preds = %2
br label %35
11: ; preds = %2
%12 = load ptr, ptr %4, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 0
%14 = load ptr, ptr %13, align 8
%15 = call i64 @sscanf(ptr noundef %14, ptr noundef @.str, ptr noundef %5)
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %20
17: ; preds = %11
%18 = call i32 @report_count(i32 noundef 1)
%19 = call i32 @report_error(ptr noundef @.str.1)
br label %35
20: ; preds = %11
%21 = load ptr, ptr %4, align 8
%22 = getelementptr inbounds ptr, ptr %21, i64 1
%23 = load ptr, ptr %22, align 8
%24 = call i64 @sscanf(ptr noundef %23, ptr noundef @.str, ptr noundef %6)
%25 = icmp eq i64 %24, 0
br i1 %25, label %26, label %29
26: ; preds = %20
%27 = call i32 @report_count(i32 noundef 1)
%28 = call i32 @report_error(ptr noundef @.str.1)
br label %35
29: ; preds = %20
%30 = call i32 @report_count(i32 noundef 1)
%31 = load i32, ptr %5, align 4
%32 = load i32, ptr %6, align 4
%33 = call i32 @move(i32 noundef %31, i32 noundef %32)
%34 = call i32 @report_return(i32 noundef %33)
br label %35
35: ; preds = %29, %26, %17, %10
ret void
}
declare i32 @check_arg_count(i32 noundef, i32 noundef) #1
declare i64 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @report_count(i32 noundef) #1
declare i32 @report_error(ptr noundef) #1
declare i32 @report_return(i32 noundef) #1
declare i32 @move(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/tmpbi2lxdr0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"BAD ARGUMENT\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cmd_move(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%7 = load i32, ptr %3, align 4
%8 = call i32 @check_arg_count(i32 noundef %7, i32 noundef 2)
%9 = icmp eq i32 %8, 1
br i1 %9, label %10, label %11
10: ; preds = %2
br label %35
11: ; preds = %2
%12 = load ptr, ptr %4, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 0
%14 = load ptr, ptr %13, align 8
%15 = call i64 @sscanf(ptr noundef %14, ptr noundef @.str, ptr noundef %5)
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %20
17: ; preds = %11
%18 = call i32 @report_count(i32 noundef 1)
%19 = call i32 @report_error(ptr noundef @.str.1)
br label %35
20: ; preds = %11
%21 = load ptr, ptr %4, align 8
%22 = getelementptr inbounds ptr, ptr %21, i64 1
%23 = load ptr, ptr %22, align 8
%24 = call i64 @sscanf(ptr noundef %23, ptr noundef @.str, ptr noundef %6)
%25 = icmp eq i64 %24, 0
br i1 %25, label %26, label %29
26: ; preds = %20
%27 = call i32 @report_count(i32 noundef 1)
%28 = call i32 @report_error(ptr noundef @.str.1)
br label %35
29: ; preds = %20
%30 = call i32 @report_count(i32 noundef 1)
%31 = load i32, ptr %5, align 4
%32 = load i32, ptr %6, align 4
%33 = call i32 @move(i32 noundef %31, i32 noundef %32)
%34 = call i32 @report_return(i32 noundef %33)
br label %35
35: ; preds = %29, %26, %17, %10
ret void
}
declare i32 @check_arg_count(i32 noundef, i32 noundef) #1
declare i64 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @report_count(i32 noundef) #1
declare i32 @report_error(ptr noundef) #1
declare i32 @report_return(i32 noundef) #1
declare i32 @move(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/tmp5d35qtng.c'
source_filename = "/tmp/tmp5d35qtng.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @socket_set_int(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %6, align 4
%11 = load i32, ptr %7, align 4
%12 = call i32 @socket_set(i32 noundef %9, i32 noundef %10, i32 noundef %11, ptr noundef %8, i32 noundef 4)
ret i32 %12
}
declare i32 @socket_set(i32 noundef, 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/tmp5d35qtng.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @socket_set_int(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %6, align 4
%11 = load i32, ptr %7, align 4
%12 = call i32 @socket_set(i32 noundef %9, i32 noundef %10, i32 noundef %11, ptr noundef %8, i32 noundef 4)
ret i32 %12
}
declare i32 @socket_set(i32 noundef, 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/tmpmmw4wztj.c'
source_filename = "/tmp/tmpmmw4wztj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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" \09\0D\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @next_arg(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%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 = load ptr, ptr %5, align 8
store ptr %6, ptr %4, align 8
%7 = load ptr, ptr %4, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %10, label %9
9: ; preds = %1
store ptr null, ptr %2, align 8
br label %67
10: ; preds = %1
br label %11
11: ; preds = %16, %10
%12 = load ptr, ptr %4, align 8
%13 = load i8, ptr %12, align 1
%14 = call i64 @isspace(i8 noundef zeroext %13)
%15 = icmp ne i64 %14, 0
br i1 %15, label %16, label %19
16: ; preds = %11
%17 = load ptr, ptr %4, align 8
%18 = getelementptr inbounds i8, ptr %17, i32 1
store ptr %18, ptr %4, align 8
br label %11, !llvm.loop !6
19: ; preds = %11
%20 = load ptr, ptr %4, align 8
%21 = load i8, ptr %20, align 1
%22 = icmp ne i8 %21, 0
br i1 %22, label %24, label %23
23: ; preds = %19
store ptr null, ptr %2, align 8
br label %67
24: ; preds = %19
%25 = load ptr, ptr %4, align 8
%26 = load i8, ptr %25, align 1
%27 = sext i8 %26 to i32
%28 = icmp eq i32 %27, 34
br i1 %28, label %29, label %35
29: ; preds = %24
%30 = load ptr, ptr %4, align 8
%31 = getelementptr inbounds i8, ptr %30, i32 1
store ptr %31, ptr %4, align 8
%32 = load ptr, ptr %4, align 8
%33 = call ptr @strchr(ptr noundef %32, i8 noundef signext 34)
%34 = load ptr, ptr %3, align 8
store ptr %33, ptr %34, align 8
br label %39
35: ; preds = %24
%36 = load ptr, ptr %4, align 8
%37 = call ptr @strpbrk(ptr noundef %36, ptr noundef @.str)
%38 = load ptr, ptr %3, align 8
store ptr %37, ptr %38, align 8
br label %39
39: ; preds = %35, %29
%40 = load ptr, ptr %3, align 8
%41 = load ptr, ptr %40, align 8
%42 = icmp ne ptr %41, null
br i1 %42, label %43, label %65
43: ; preds = %39
%44 = load ptr, ptr %3, align 8
%45 = load ptr, ptr %44, align 8
%46 = getelementptr inbounds i8, ptr %45, i32 1
store ptr %46, ptr %44, align 8
store i8 0, ptr %45, align 1
br label %47
47: ; preds = %53, %43
%48 = load ptr, ptr %3, align 8
%49 = load ptr, ptr %48, align 8
%50 = load i8, ptr %49, align 1
%51 = call i64 @isspace(i8 noundef zeroext %50)
%52 = icmp ne i64 %51, 0
br i1 %52, label %53, label %57
53: ; preds = %47
%54 = load ptr, ptr %3, align 8
%55 = load ptr, ptr %54, align 8
%56 = getelementptr inbounds i8, ptr %55, i32 1
store ptr %56, ptr %54, align 8
br label %47, !llvm.loop !8
57: ; preds = %47
%58 = load ptr, ptr %3, align 8
%59 = load ptr, ptr %58, align 8
%60 = load i8, ptr %59, align 1
%61 = icmp ne i8 %60, 0
br i1 %61, label %64, label %62
62: ; preds = %57
%63 = load ptr, ptr %3, align 8
store ptr null, ptr %63, align 8
br label %64
64: ; preds = %62, %57
br label %65
65: ; preds = %64, %39
%66 = load ptr, ptr %4, align 8
store ptr %66, ptr %2, align 8
br label %67
67: ; preds = %65, %23, %9
%68 = load ptr, ptr %2, align 8
ret ptr %68
}
declare i64 @isspace(i8 noundef zeroext) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare ptr @strpbrk(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/tmpmmw4wztj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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" \09\0D\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @next_arg(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%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 = load ptr, ptr %5, align 8
store ptr %6, ptr %4, align 8
%7 = load ptr, ptr %4, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %10, label %9
9: ; preds = %1
store ptr null, ptr %2, align 8
br label %74
10: ; preds = %1
%11 = load ptr, ptr %4, align 8
%12 = load i8, ptr %11, align 1
%13 = call i64 @isspace(i8 noundef zeroext %12)
%14 = icmp ne i64 %13, 0
br i1 %14, label %.lr.ph, label %22
.lr.ph: ; preds = %10
br label %15
15: ; preds = %.lr.ph, %15
%16 = load ptr, ptr %4, align 8
%17 = getelementptr inbounds i8, ptr %16, i32 1
store ptr %17, ptr %4, align 8
%18 = load ptr, ptr %4, align 8
%19 = load i8, ptr %18, align 1
%20 = call i64 @isspace(i8 noundef zeroext %19)
%21 = icmp ne i64 %20, 0
br i1 %21, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %15
br label %22
22: ; preds = %._crit_edge, %10
%23 = load ptr, ptr %4, align 8
%24 = load i8, ptr %23, align 1
%25 = icmp ne i8 %24, 0
br i1 %25, label %27, label %26
26: ; preds = %22
store ptr null, ptr %2, align 8
br label %74
27: ; preds = %22
%28 = load ptr, ptr %4, align 8
%29 = load i8, ptr %28, align 1
%30 = sext i8 %29 to i32
%31 = icmp eq i32 %30, 34
br i1 %31, label %32, label %38
32: ; preds = %27
%33 = load ptr, ptr %4, align 8
%34 = getelementptr inbounds i8, ptr %33, i32 1
store ptr %34, ptr %4, align 8
%35 = load ptr, ptr %4, align 8
%36 = call ptr @strchr(ptr noundef %35, i8 noundef signext 34)
%37 = load ptr, ptr %3, align 8
store ptr %36, ptr %37, align 8
br label %42
38: ; preds = %27
%39 = load ptr, ptr %4, align 8
%40 = call ptr @strpbrk(ptr noundef %39, ptr noundef @.str)
%41 = load ptr, ptr %3, align 8
store ptr %40, ptr %41, align 8
br label %42
42: ; preds = %38, %32
%43 = load ptr, ptr %3, align 8
%44 = load ptr, ptr %43, align 8
%45 = icmp ne ptr %44, null
br i1 %45, label %46, label %72
46: ; preds = %42
%47 = load ptr, ptr %3, align 8
%48 = load ptr, ptr %47, align 8
%49 = getelementptr inbounds i8, ptr %48, i32 1
store ptr %49, ptr %47, align 8
store i8 0, ptr %48, align 1
%50 = load ptr, ptr %3, align 8
%51 = load ptr, ptr %50, align 8
%52 = load i8, ptr %51, align 1
%53 = call i64 @isspace(i8 noundef zeroext %52)
%54 = icmp ne i64 %53, 0
br i1 %54, label %.lr.ph2, label %64
.lr.ph2: ; preds = %46
br label %55
55: ; preds = %.lr.ph2, %55
%56 = load ptr, ptr %3, align 8
%57 = load ptr, ptr %56, align 8
%58 = getelementptr inbounds i8, ptr %57, i32 1
store ptr %58, ptr %56, align 8
%59 = load ptr, ptr %3, align 8
%60 = load ptr, ptr %59, align 8
%61 = load i8, ptr %60, align 1
%62 = call i64 @isspace(i8 noundef zeroext %61)
%63 = icmp ne i64 %62, 0
br i1 %63, label %55, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %55
br label %64
64: ; preds = %._crit_edge3, %46
%65 = load ptr, ptr %3, align 8
%66 = load ptr, ptr %65, align 8
%67 = load i8, ptr %66, align 1
%68 = icmp ne i8 %67, 0
br i1 %68, label %71, label %69
69: ; preds = %64
%70 = load ptr, ptr %3, align 8
store ptr null, ptr %70, align 8
br label %71
71: ; preds = %69, %64
br label %72
72: ; preds = %71, %42
%73 = load ptr, ptr %4, align 8
store ptr %73, ptr %2, align 8
br label %74
74: ; preds = %72, %26, %9
%75 = load ptr, ptr %2, align 8
ret ptr %75
}
declare i64 @isspace(i8 noundef zeroext) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare ptr @strpbrk(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/tmpeq9qrri8.c'
source_filename = "/tmp/tmpeq9qrri8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"aligned_alloc\00", align 1
; Function Attrs: noinline nounwind sspstrong allocsize(1) uwtable
define dso_local ptr @aligned_alloc(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 = call ptr @real_aligned_alloc(i64 noundef %6, i64 noundef %7)
store ptr %8, ptr %5, align 8
%9 = load i64, ptr %4, align 8
%10 = load ptr, ptr %5, align 8
%11 = call i32 @log_allocation(ptr noundef @.str, i64 noundef %9, ptr noundef %10)
%12 = load ptr, ptr %5, align 8
ret ptr %12
}
declare ptr @real_aligned_alloc(i64 noundef, i64 noundef) #1
declare i32 @log_allocation(ptr noundef, i64 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong allocsize(1) uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpeq9qrri8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"aligned_alloc\00", align 1
; Function Attrs: noinline nounwind sspstrong allocsize(1) uwtable
define dso_local ptr @aligned_alloc(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 = call ptr @real_aligned_alloc(i64 noundef %6, i64 noundef %7)
store ptr %8, ptr %5, align 8
%9 = load i64, ptr %4, align 8
%10 = load ptr, ptr %5, align 8
%11 = call i32 @log_allocation(ptr noundef @.str, i64 noundef %9, ptr noundef %10)
%12 = load ptr, ptr %5, align 8
ret ptr %12
}
declare ptr @real_aligned_alloc(i64 noundef, i64 noundef) #1
declare i32 @log_allocation(ptr noundef, i64 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong allocsize(1) uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpnrukk0l0.c'
source_filename = "/tmp/tmpnrukk0l0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_RDWR = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [8 x i8] c"mq_open\00", align 1
@errno = dso_local global i64 0, align 8
@EBUSY = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [10 x i8] c"mq_notify\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"Server: sending %d\0A\00", align 1
@stdout = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @parent(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%9 = load ptr, ptr %3, align 8
%10 = load i32, ptr @O_RDWR, align 4
%11 = load i32, ptr @O_CREAT, align 4
%12 = or i32 %10, %11
%13 = call i32 @mq_open(ptr noundef %9, i32 noundef %12, i32 noundef 438, i32 noundef 0)
store i32 %13, ptr %5, align 4
%14 = load i32, ptr %5, align 4
%15 = icmp eq i32 %14, -1
br i1 %15, label %16, label %19
16: ; preds = %2
%17 = call i32 @perror(ptr noundef @.str)
%18 = call i32 @exit(i32 noundef 1) #3
unreachable
19: ; preds = %2
%20 = load ptr, ptr %4, align 8
%21 = load i32, ptr @O_RDWR, align 4
%22 = load i32, ptr @O_CREAT, align 4
%23 = or i32 %21, %22
%24 = call i32 @mq_open(ptr noundef %20, i32 noundef %23, i32 noundef 438, i32 noundef 0)
store i32 %24, ptr %6, align 4
%25 = load i32, ptr %5, align 4
%26 = icmp eq i32 %25, -1
br i1 %26, label %27, label %30
27: ; preds = %19
%28 = call i32 @perror(ptr noundef @.str)
%29 = call i32 @exit(i32 noundef 1) #3
unreachable
30: ; preds = %19
store i32 1, ptr %7, align 4
br label %31
31: ; preds = %30, %53
br label %32
32: ; preds = %45, %31
%33 = call i32 @sleep(i32 noundef 1)
%34 = load i32, ptr %6, align 4
%35 = load i32, ptr %7, align 4
%36 = add nsw i32 %35, 1
%37 = call i32 @msg_notify(i32 noundef %34, i32 noundef %36)
store i32 %37, ptr %8, align 4
br label %38
38: ; preds = %32
%39 = load i32, ptr %8, align 4
%40 = icmp eq i32 %39, -1
br i1 %40, label %41, label %45
41: ; preds = %38
%42 = load i64, ptr @errno, align 8
%43 = load i64, ptr @EBUSY, align 8
%44 = icmp eq i64 %42, %43
br label %45
45: ; preds = %41, %38
%46 = phi i1 [ false, %38 ], [ %44, %41 ]
br i1 %46, label %32, label %47, !llvm.loop !6
47: ; preds = %45
%48 = load i32, ptr %8, align 4
%49 = icmp eq i32 %48, -1
br i1 %49, label %50, label %53
50: ; preds = %47
%51 = call i32 @perror(ptr noundef @.str.1)
%52 = call i32 @exit(i32 noundef 1) #3
unreachable
53: ; preds = %47
%54 = load i32, ptr %7, align 4
%55 = call i32 @printf(ptr noundef @.str.2, i32 noundef %54)
%56 = load i32, ptr @stdout, align 4
%57 = call i32 @fflush(i32 noundef %56)
%58 = load i32, ptr %5, align 4
%59 = load i32, ptr %7, align 4
%60 = call i32 @msg_snd(i32 noundef %58, i32 noundef %59)
%61 = call i32 @sleep(i32 noundef 1)
%62 = load i32, ptr %7, align 4
%63 = add nsw i32 %62, 2
store i32 %63, ptr %7, align 4
br label %31
}
declare i32 @mq_open(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @sleep(i32 noundef) #1
declare i32 @msg_notify(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @fflush(i32 noundef) #1
declare i32 @msg_snd(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" }
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/tmpnrukk0l0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_RDWR = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [8 x i8] c"mq_open\00", align 1
@errno = dso_local global i64 0, align 8
@EBUSY = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [10 x i8] c"mq_notify\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"Server: sending %d\0A\00", align 1
@stdout = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @parent(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%9 = load ptr, ptr %3, align 8
%10 = load i32, ptr @O_RDWR, align 4
%11 = load i32, ptr @O_CREAT, align 4
%12 = or i32 %10, %11
%13 = call i32 @mq_open(ptr noundef %9, i32 noundef %12, i32 noundef 438, i32 noundef 0)
store i32 %13, ptr %5, align 4
%14 = load i32, ptr %5, align 4
%15 = icmp eq i32 %14, -1
br i1 %15, label %16, label %19
16: ; preds = %2
%17 = call i32 @perror(ptr noundef @.str)
%18 = call i32 @exit(i32 noundef 1) #3
unreachable
19: ; preds = %2
%20 = load ptr, ptr %4, align 8
%21 = load i32, ptr @O_RDWR, align 4
%22 = load i32, ptr @O_CREAT, align 4
%23 = or i32 %21, %22
%24 = call i32 @mq_open(ptr noundef %20, i32 noundef %23, i32 noundef 438, i32 noundef 0)
store i32 %24, ptr %6, align 4
%25 = load i32, ptr %5, align 4
%26 = icmp eq i32 %25, -1
br i1 %26, label %27, label %30
27: ; preds = %19
%28 = call i32 @perror(ptr noundef @.str)
%29 = call i32 @exit(i32 noundef 1) #3
unreachable
30: ; preds = %19
store i32 1, ptr %7, align 4
br label %31
31: ; preds = %53, %30
br label %32
32: ; preds = %45, %31
%33 = call i32 @sleep(i32 noundef 1)
%34 = load i32, ptr %6, align 4
%35 = load i32, ptr %7, align 4
%36 = add nsw i32 %35, 1
%37 = call i32 @msg_notify(i32 noundef %34, i32 noundef %36)
store i32 %37, ptr %8, align 4
br label %38
38: ; preds = %32
%39 = load i32, ptr %8, align 4
%40 = icmp eq i32 %39, -1
br i1 %40, label %41, label %45
41: ; preds = %38
%42 = load i64, ptr @errno, align 8
%43 = load i64, ptr @EBUSY, align 8
%44 = icmp eq i64 %42, %43
br label %45
45: ; preds = %41, %38
%46 = phi i1 [ false, %38 ], [ %44, %41 ]
br i1 %46, label %32, label %47, !llvm.loop !6
47: ; preds = %45
%48 = load i32, ptr %8, align 4
%49 = icmp eq i32 %48, -1
br i1 %49, label %50, label %53
50: ; preds = %47
%51 = call i32 @perror(ptr noundef @.str.1)
%52 = call i32 @exit(i32 noundef 1) #3
unreachable
53: ; preds = %47
%54 = load i32, ptr %7, align 4
%55 = call i32 @printf(ptr noundef @.str.2, i32 noundef %54)
%56 = load i32, ptr @stdout, align 4
%57 = call i32 @fflush(i32 noundef %56)
%58 = load i32, ptr %5, align 4
%59 = load i32, ptr %7, align 4
%60 = call i32 @msg_snd(i32 noundef %58, i32 noundef %59)
%61 = call i32 @sleep(i32 noundef 1)
%62 = load i32, ptr %7, align 4
%63 = add nsw i32 %62, 2
store i32 %63, ptr %7, align 4
br label %31
}
declare i32 @mq_open(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @sleep(i32 noundef) #1
declare i32 @msg_notify(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @fflush(i32 noundef) #1
declare i32 @msg_snd(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" }
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/tmpt2jjgroj.c'
source_filename = "/tmp/tmpt2jjgroj.c"
target datalayout = "e-m:e-p270: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/tmpt2jjgroj.c"
target datalayout = "e-m:e-p270: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/tmpkazulr23.c'
source_filename = "/tmp/tmpkazulr23.c"
target datalayout = "e-m:e-p270: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.flock = type { i32, i32, i64, i32, i32 }
@F_RDLCK = dso_local global i32 0, align 4
@SEEK_SET = dso_local global i32 0, align 4
@F_SETLK = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @pipe_setup_for_binary(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca %struct.flock, align 8
store i32 %0, ptr %2, align 4
%4 = load i32, ptr @F_RDLCK, align 4
%5 = getelementptr inbounds %struct.flock, ptr %3, i32 0, i32 4
store i32 %4, ptr %5, align 4
%6 = load i32, ptr @SEEK_SET, align 4
%7 = getelementptr inbounds %struct.flock, ptr %3, i32 0, i32 3
store i32 %6, ptr %7, align 8
%8 = getelementptr inbounds %struct.flock, ptr %3, i32 0, i32 0
store i32 625315306, ptr %8, align 8
%9 = getelementptr inbounds %struct.flock, ptr %3, i32 0, i32 2
store i64 0, ptr %9, align 8
%10 = call i32 (...) @getpid()
%11 = getelementptr inbounds %struct.flock, ptr %3, i32 0, i32 1
store i32 %10, ptr %11, align 4
%12 = load i32, ptr %2, align 4
%13 = load i32, ptr @F_SETLK, align 4
%14 = call i32 @fcntl(i32 noundef %12, i32 noundef %13, ptr noundef %3)
ret void
}
declare i32 @getpid(...) #1
declare i32 @fcntl(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/tmpkazulr23.c"
target datalayout = "e-m:e-p270: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.flock = type { i32, i32, i64, i32, i32 }
@F_RDLCK = dso_local global i32 0, align 4
@SEEK_SET = dso_local global i32 0, align 4
@F_SETLK = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @pipe_setup_for_binary(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca %struct.flock, align 8
store i32 %0, ptr %2, align 4
%4 = load i32, ptr @F_RDLCK, align 4
%5 = getelementptr inbounds %struct.flock, ptr %3, i32 0, i32 4
store i32 %4, ptr %5, align 4
%6 = load i32, ptr @SEEK_SET, align 4
%7 = getelementptr inbounds %struct.flock, ptr %3, i32 0, i32 3
store i32 %6, ptr %7, align 8
%8 = getelementptr inbounds %struct.flock, ptr %3, i32 0, i32 0
store i32 625315306, ptr %8, align 8
%9 = getelementptr inbounds %struct.flock, ptr %3, i32 0, i32 2
store i64 0, ptr %9, align 8
%10 = call i32 (...) @getpid()
%11 = getelementptr inbounds %struct.flock, ptr %3, i32 0, i32 1
store i32 %10, ptr %11, align 4
%12 = load i32, ptr %2, align 4
%13 = load i32, ptr @F_SETLK, align 4
%14 = call i32 @fcntl(i32 noundef %12, i32 noundef %13, ptr noundef %3)
ret void
}
declare i32 @getpid(...) #1
declare i32 @fcntl(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/tmpjgly_lz4.c'
source_filename = "/tmp/tmpjgly_lz4.c"
target datalayout = "e-m:e-p270: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/tmpjgly_lz4.c"
target datalayout = "e-m:e-p270: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/tmpyzy_hjb6.c'
source_filename = "/tmp/tmpyzy_hjb6.c"
target datalayout = "e-m:e-p270: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/tmpyzy_hjb6.c"
target datalayout = "e-m:e-p270: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/tmpt1e6ff_a.c'
source_filename = "/tmp/tmpt1e6ff_a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s: \00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%lf\00", align 1
@.str.2 = private unnamed_addr constant [38 x i8] c"invalid input; please enter a double\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @getfltpar(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca double, align 8
store ptr %0, ptr %2, align 8
br label %5
5: ; preds = %1, %28
%6 = call i64 (...) @testnl()
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %14
8: ; preds = %5
%9 = load ptr, ptr %2, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %11, label %14
11: ; preds = %8
%12 = load ptr, ptr %2, align 8
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %12)
br label %14
14: ; preds = %11, %8, %5
%15 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %4)
store i32 %15, ptr %3, align 4
%16 = load i32, ptr %3, align 4
%17 = icmp slt i32 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %14
%19 = call i32 @exit(i32 noundef 1) #3
unreachable
20: ; preds = %14
%21 = load i32, ptr %3, align 4
%22 = icmp sgt i32 %21, 0
br i1 %22, label %23, label %28
23: ; preds = %20
%24 = call i64 (...) @testterm()
%25 = icmp ne i64 %24, 0
br i1 %25, label %26, label %28
26: ; preds = %23
%27 = load double, ptr %4, align 8
ret double %27
28: ; preds = %23, %20
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%30 = call i32 @skiptonl(i32 noundef 0)
br label %5
}
declare i64 @testnl(...) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @testterm(...) #1
declare i32 @skiptonl(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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpt1e6ff_a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s: \00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%lf\00", align 1
@.str.2 = private unnamed_addr constant [38 x i8] c"invalid input; please enter a double\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @getfltpar(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca double, align 8
store ptr %0, ptr %2, align 8
br label %5
5: ; preds = %28, %1
%6 = call i64 (...) @testnl()
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %14
8: ; preds = %5
%9 = load ptr, ptr %2, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %11, label %14
11: ; preds = %8
%12 = load ptr, ptr %2, align 8
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %12)
br label %14
14: ; preds = %11, %8, %5
%15 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %4)
store i32 %15, ptr %3, align 4
%16 = load i32, ptr %3, align 4
%17 = icmp slt i32 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %14
%19 = call i32 @exit(i32 noundef 1) #3
unreachable
20: ; preds = %14
%21 = load i32, ptr %3, align 4
%22 = icmp sgt i32 %21, 0
br i1 %22, label %23, label %28
23: ; preds = %20
%24 = call i64 (...) @testterm()
%25 = icmp ne i64 %24, 0
br i1 %25, label %26, label %28
26: ; preds = %23
%27 = load double, ptr %4, align 8
ret double %27
28: ; preds = %23, %20
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%30 = call i32 @skiptonl(i32 noundef 0)
br label %5
}
declare i64 @testnl(...) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @testterm(...) #1
declare i32 @skiptonl(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"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.