llvm-ir stringlengths 479 303k | llvm-optimized-ir stringlengths 468 303k |
|---|---|
; ModuleID = '/tmp/tmp_kyjfs49.c'
source_filename = "/tmp/tmp_kyjfs49.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 input a character string: \0A\00", align 1
@stdin = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [12 x i8] c"Pipe failed\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"Fork failed\00", align 1
@.str.3 = private unnamed_addr constant [43 x i8] c"\0AParent: Write the message to the pipe 1.\0A\00", align 1
@.str.4 = private unnamed_addr constant [52 x i8] c"\0AParent: Read the modified message from pipe 2: %s\0A\00", align 1
@.str.5 = private unnamed_addr constant [41 x i8] c"\0AChild: Read the message from pipe 1: %s\00", align 1
@.str.6 = private unnamed_addr constant [47 x i8] c"\0AChild: Write the modified message to pipe 2.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [100 x i8], align 16
%3 = alloca [100 x i8], align 16
%4 = alloca [100 x i8], align 16
%5 = alloca [100 x i8], align 16
%6 = alloca [2 x i32], align 4
%7 = alloca [2 x i32], align 4
%8 = alloca i64, align 8
%9 = alloca i32, align 4
store i32 0, ptr %1, align 4
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%11 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%12 = load i32, ptr @stdin, align 4
%13 = call i32 @fgets(ptr noundef %11, i32 noundef 100, i32 noundef %12)
%14 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 0
%15 = call i32 @pipe(ptr noundef %14)
%16 = icmp eq i32 %15, -1
br i1 %16, label %17, label %20
17: ; preds = %0
%18 = load i32, ptr @stderr, align 4
%19 = call i32 @fprintf(i32 noundef %18, ptr noundef @.str.1)
store i32 1, ptr %1, align 4
br label %112
20: ; preds = %0
%21 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 0
%22 = call i32 @pipe(ptr noundef %21)
%23 = icmp eq i32 %22, -1
br i1 %23, label %24, label %27
24: ; preds = %20
%25 = load i32, ptr @stderr, align 4
%26 = call i32 @fprintf(i32 noundef %25, ptr noundef @.str.1)
store i32 1, ptr %1, align 4
br label %112
27: ; preds = %20
%28 = call i64 (...) @fork()
store i64 %28, ptr %8, align 8
%29 = load i64, ptr %8, align 8
%30 = icmp slt i64 %29, 0
br i1 %30, label %31, label %34
31: ; preds = %27
%32 = load i32, ptr @stderr, align 4
%33 = call i32 @fprintf(i32 noundef %32, ptr noundef @.str.2)
store i32 1, ptr %1, align 4
br label %112
34: ; preds = %27
%35 = load i64, ptr %8, align 8
%36 = icmp sgt i64 %35, 0
br i1 %36, label %37, label %59
37: ; preds = %34
%38 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 0
%39 = load i32, ptr %38, align 4
%40 = call i32 @close(i32 noundef %39)
%41 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 1
%42 = load i32, ptr %41, align 4
%43 = call i32 @close(i32 noundef %42)
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%45 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 1
%46 = load i32, ptr %45, align 4
%47 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%48 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%49 = call i32 @strlen(ptr noundef %48)
%50 = add nsw i32 %49, 1
%51 = call i32 @write(i32 noundef %46, ptr noundef %47, i32 noundef %50)
%52 = call i32 @wait(ptr noundef null)
%53 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 0
%54 = load i32, ptr %53, align 4
%55 = getelementptr inbounds [100 x i8], ptr %5, i64 0, i64 0
%56 = call i32 @read(i32 noundef %54, ptr noundef %55, i32 noundef 100)
%57 = getelementptr inbounds [100 x i8], ptr %5, i64 0, i64 0
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %57)
br label %111
59: ; preds = %34
%60 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 1
%61 = load i32, ptr %60, align 4
%62 = call i32 @close(i32 noundef %61)
%63 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 0
%64 = load i32, ptr %63, align 4
%65 = call i32 @close(i32 noundef %64)
%66 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 0
%67 = load i32, ptr %66, align 4
%68 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 0
%69 = call i32 @read(i32 noundef %67, ptr noundef %68, i32 noundef 100)
%70 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 0
%71 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %70)
store i32 0, ptr %9, align 4
br label %72
72: ; preds = %102, %59
%73 = load i32, ptr %9, align 4
%74 = sext i32 %73 to i64
%75 = icmp ult i64 %74, 100
br i1 %75, label %76, label %105
76: ; preds = %72
%77 = load i32, ptr %9, align 4
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 %78
%80 = load i8, ptr %79, align 1
%81 = call i64 @islower(i8 noundef signext %80)
%82 = icmp ne i64 %81, 0
br i1 %82, label %83, label %92
83: ; preds = %76
%84 = load i32, ptr %9, align 4
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 %85
%87 = load i8, ptr %86, align 1
%88 = call signext i8 @toupper(i8 noundef signext %87)
%89 = load i32, ptr %9, align 4
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 %90
store i8 %88, ptr %91, align 1
br label %101
92: ; preds = %76
%93 = load i32, ptr %9, align 4
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 %94
%96 = load i8, ptr %95, align 1
%97 = call signext i8 @tolower(i8 noundef signext %96)
%98 = load i32, ptr %9, align 4
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 %99
store i8 %97, ptr %100, align 1
br label %101
101: ; preds = %92, %83
br label %102
102: ; preds = %101
%103 = load i32, ptr %9, align 4
%104 = add nsw i32 %103, 1
store i32 %104, ptr %9, align 4
br label %72, !llvm.loop !6
105: ; preds = %72
%106 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 1
%107 = load i32, ptr %106, align 4
%108 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%109 = call i32 @write(i32 noundef %107, ptr noundef %108, i32 noundef 100)
%110 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %111
111: ; preds = %105, %37
store i32 0, ptr %1, align 4
br label %112
112: ; preds = %111, %31, %24, %17
%113 = load i32, ptr %1, align 4
ret i32 %113
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @pipe(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i64 @fork(...) #1
declare i32 @close(i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @wait(ptr noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @islower(i8 noundef signext) #1
declare signext i8 @toupper(i8 noundef signext) #1
declare signext i8 @tolower(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_kyjfs49.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 input a character string: \0A\00", align 1
@stdin = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [12 x i8] c"Pipe failed\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"Fork failed\00", align 1
@.str.3 = private unnamed_addr constant [43 x i8] c"\0AParent: Write the message to the pipe 1.\0A\00", align 1
@.str.4 = private unnamed_addr constant [52 x i8] c"\0AParent: Read the modified message from pipe 2: %s\0A\00", align 1
@.str.5 = private unnamed_addr constant [41 x i8] c"\0AChild: Read the message from pipe 1: %s\00", align 1
@.str.6 = private unnamed_addr constant [47 x i8] c"\0AChild: Write the modified message to pipe 2.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [100 x i8], align 16
%3 = alloca [100 x i8], align 16
%4 = alloca [100 x i8], align 16
%5 = alloca [100 x i8], align 16
%6 = alloca [2 x i32], align 4
%7 = alloca [2 x i32], align 4
%8 = alloca i64, align 8
%9 = alloca i32, align 4
store i32 0, ptr %1, align 4
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%11 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%12 = load i32, ptr @stdin, align 4
%13 = call i32 @fgets(ptr noundef %11, i32 noundef 100, i32 noundef %12)
%14 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 0
%15 = call i32 @pipe(ptr noundef %14)
%16 = icmp eq i32 %15, -1
br i1 %16, label %17, label %20
17: ; preds = %0
%18 = load i32, ptr @stderr, align 4
%19 = call i32 @fprintf(i32 noundef %18, ptr noundef @.str.1)
store i32 1, ptr %1, align 4
br label %114
20: ; preds = %0
%21 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 0
%22 = call i32 @pipe(ptr noundef %21)
%23 = icmp eq i32 %22, -1
br i1 %23, label %24, label %27
24: ; preds = %20
%25 = load i32, ptr @stderr, align 4
%26 = call i32 @fprintf(i32 noundef %25, ptr noundef @.str.1)
store i32 1, ptr %1, align 4
br label %114
27: ; preds = %20
%28 = call i64 (...) @fork()
store i64 %28, ptr %8, align 8
%29 = load i64, ptr %8, align 8
%30 = icmp slt i64 %29, 0
br i1 %30, label %31, label %34
31: ; preds = %27
%32 = load i32, ptr @stderr, align 4
%33 = call i32 @fprintf(i32 noundef %32, ptr noundef @.str.2)
store i32 1, ptr %1, align 4
br label %114
34: ; preds = %27
%35 = load i64, ptr %8, align 8
%36 = icmp sgt i64 %35, 0
br i1 %36, label %37, label %59
37: ; preds = %34
%38 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 0
%39 = load i32, ptr %38, align 4
%40 = call i32 @close(i32 noundef %39)
%41 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 1
%42 = load i32, ptr %41, align 4
%43 = call i32 @close(i32 noundef %42)
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%45 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 1
%46 = load i32, ptr %45, align 4
%47 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%48 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%49 = call i32 @strlen(ptr noundef %48)
%50 = add nsw i32 %49, 1
%51 = call i32 @write(i32 noundef %46, ptr noundef %47, i32 noundef %50)
%52 = call i32 @wait(ptr noundef null)
%53 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 0
%54 = load i32, ptr %53, align 4
%55 = getelementptr inbounds [100 x i8], ptr %5, i64 0, i64 0
%56 = call i32 @read(i32 noundef %54, ptr noundef %55, i32 noundef 100)
%57 = getelementptr inbounds [100 x i8], ptr %5, i64 0, i64 0
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %57)
br label %113
59: ; preds = %34
%60 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 1
%61 = load i32, ptr %60, align 4
%62 = call i32 @close(i32 noundef %61)
%63 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 0
%64 = load i32, ptr %63, align 4
%65 = call i32 @close(i32 noundef %64)
%66 = getelementptr inbounds [2 x i32], ptr %6, i64 0, i64 0
%67 = load i32, ptr %66, align 4
%68 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 0
%69 = call i32 @read(i32 noundef %67, ptr noundef %68, i32 noundef 100)
%70 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 0
%71 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %70)
store i32 0, ptr %9, align 4
%72 = load i32, ptr %9, align 4
%73 = sext i32 %72 to i64
%74 = icmp ult i64 %73, 100
br i1 %74, label %.lr.ph, label %107
.lr.ph: ; preds = %59
br label %75
75: ; preds = %.lr.ph, %101
%76 = load i32, ptr %9, align 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 %77
%79 = load i8, ptr %78, align 1
%80 = call i64 @islower(i8 noundef signext %79)
%81 = icmp ne i64 %80, 0
br i1 %81, label %82, label %91
82: ; preds = %75
%83 = load i32, ptr %9, align 4
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 %84
%86 = load i8, ptr %85, align 1
%87 = call signext i8 @toupper(i8 noundef signext %86)
%88 = load i32, ptr %9, align 4
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 %89
store i8 %87, ptr %90, align 1
br label %100
91: ; preds = %75
%92 = load i32, ptr %9, align 4
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 %93
%95 = load i8, ptr %94, align 1
%96 = call signext i8 @tolower(i8 noundef signext %95)
%97 = load i32, ptr %9, align 4
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 %98
store i8 %96, ptr %99, align 1
br label %100
100: ; preds = %91, %82
br label %101
101: ; preds = %100
%102 = load i32, ptr %9, align 4
%103 = add nsw i32 %102, 1
store i32 %103, ptr %9, align 4
%104 = load i32, ptr %9, align 4
%105 = sext i32 %104 to i64
%106 = icmp ult i64 %105, 100
br i1 %106, label %75, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %101
br label %107
107: ; preds = %._crit_edge, %59
%108 = getelementptr inbounds [2 x i32], ptr %7, i64 0, i64 1
%109 = load i32, ptr %108, align 4
%110 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%111 = call i32 @write(i32 noundef %109, ptr noundef %110, i32 noundef 100)
%112 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %113
113: ; preds = %107, %37
store i32 0, ptr %1, align 4
br label %114
114: ; preds = %113, %31, %24, %17
%115 = load i32, ptr %1, align 4
ret i32 %115
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @pipe(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i64 @fork(...) #1
declare i32 @close(i32 noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @wait(ptr noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @islower(i8 noundef signext) #1
declare signext i8 @toupper(i8 noundef signext) #1
declare signext i8 @tolower(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpfkq0j06q.c'
source_filename = "/tmp/tmpfkq0j06q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cr_parseinfo(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 ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%10 = load ptr, ptr %5, align 8
%11 = load ptr, ptr %6, align 8
%12 = call ptr @strstr(ptr noundef %10, ptr noundef %11)
store ptr %12, ptr %9, align 8
%13 = load ptr, ptr %9, align 8
%14 = icmp ne ptr %13, null
br i1 %14, label %15, label %25
15: ; preds = %4
%16 = load ptr, ptr %6, align 8
%17 = call i64 @strlen(ptr noundef %16)
%18 = add nsw i64 %17, 1
%19 = load ptr, ptr %9, align 8
%20 = getelementptr inbounds i8, ptr %19, i64 %18
store ptr %20, ptr %9, align 8
%21 = load ptr, ptr %9, align 8
%22 = load ptr, ptr %7, align 8
%23 = load ptr, ptr %8, align 8
%24 = call i32 @sscanf(ptr noundef %21, ptr noundef %22, ptr noundef %23)
br label %25
25: ; preds = %15, %4
ret void
}
declare ptr @strstr(ptr noundef, ptr noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @sscanf(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/tmpfkq0j06q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cr_parseinfo(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 ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
%10 = load ptr, ptr %5, align 8
%11 = load ptr, ptr %6, align 8
%12 = call ptr @strstr(ptr noundef %10, ptr noundef %11)
store ptr %12, ptr %9, align 8
%13 = load ptr, ptr %9, align 8
%14 = icmp ne ptr %13, null
br i1 %14, label %15, label %25
15: ; preds = %4
%16 = load ptr, ptr %6, align 8
%17 = call i64 @strlen(ptr noundef %16)
%18 = add nsw i64 %17, 1
%19 = load ptr, ptr %9, align 8
%20 = getelementptr inbounds i8, ptr %19, i64 %18
store ptr %20, ptr %9, align 8
%21 = load ptr, ptr %9, align 8
%22 = load ptr, ptr %7, align 8
%23 = load ptr, ptr %8, align 8
%24 = call i32 @sscanf(ptr noundef %21, ptr noundef %22, ptr noundef %23)
br label %25
25: ; preds = %15, %4
ret void
}
declare ptr @strstr(ptr noundef, ptr noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @sscanf(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/tmp_w9yin28.c'
source_filename = "/tmp/tmp_w9yin28.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0Aprobabilidad de cruzamiento: %f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cruzamiento(float noundef %0, ptr noundef %1) #0 {
%3 = alloca float, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca float, align 4
store float %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%14 = load float, ptr %3, align 4
%15 = call i32 @printf(ptr noundef @.str, float noundef %14)
store i32 0, ptr %6, align 4
br label %16
16: ; preds = %202, %2
%17 = load i32, ptr %6, align 4
%18 = icmp slt i32 %17, 5
br i1 %18, label %19, label %205
19: ; preds = %16
%20 = call i32 (...) @drand48()
%21 = mul nsw i32 %20, 1
%22 = sitofp i32 %21 to float
store float %22, ptr %13, align 4
%23 = load float, ptr %13, align 4
%24 = load float, ptr %3, align 4
%25 = fcmp olt float %23, %24
br i1 %25, label %26, label %201
26: ; preds = %19
%27 = call i32 (...) @rand()
%28 = srem i32 %27, 4
store i32 %28, ptr %9, align 4
%29 = call i32 (...) @rand()
%30 = srem i32 %29, 4
store i32 %30, ptr %10, align 4
%31 = load i32, ptr %10, align 4
%32 = load i32, ptr %9, align 4
%33 = icmp slt i32 %31, %32
br i1 %33, label %34, label %38
34: ; preds = %26
%35 = load i32, ptr %10, align 4
store i32 %35, ptr %8, align 4
%36 = load i32, ptr %9, align 4
store i32 %36, ptr %10, align 4
%37 = load i32, ptr %8, align 4
store i32 %37, ptr %9, align 4
br label %38
38: ; preds = %34, %26
%39 = load i32, ptr %10, align 4
%40 = load i32, ptr %9, align 4
%41 = sub nsw i32 %39, %40
%42 = icmp eq i32 %41, 0
br i1 %42, label %48, label %43
43: ; preds = %38
%44 = load i32, ptr %10, align 4
%45 = load i32, ptr %9, align 4
%46 = sub nsw i32 %44, %45
%47 = icmp eq i32 %46, 1
br i1 %47, label %48, label %149
48: ; preds = %43, %38
store i32 0, ptr %9, align 4
store i32 2, ptr %10, align 4
store i32 6, ptr %11, align 4
store i32 7, ptr %12, align 4
store i32 0, ptr %7, align 4
br label %49
49: ; preds = %95, %48
%50 = load i32, ptr %7, align 4
%51 = icmp slt i32 %50, 4
br i1 %51, label %52, label %98
52: ; preds = %49
%53 = load i32, ptr %7, align 4
%54 = load i32, ptr %9, align 4
%55 = icmp sge i32 %53, %54
br i1 %55, label %56, label %94
56: ; preds = %52
%57 = load i32, ptr %7, align 4
%58 = load i32, ptr %10, align 4
%59 = icmp sle i32 %57, %58
br i1 %59, label %60, label %94
60: ; preds = %56
%61 = load ptr, ptr %4, align 8
%62 = load i32, ptr %6, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [4 x i32], ptr %61, i64 %63
%65 = load i32, ptr %7, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [4 x i32], ptr %64, i64 0, i64 %66
%68 = load i32, ptr %67, align 4
store i32 %68, ptr %8, align 4
%69 = load ptr, ptr %4, align 8
%70 = load i32, ptr %6, align 4
%71 = add nsw i32 %70, 1
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds [4 x i32], ptr %69, i64 %72
%74 = load i32, ptr %7, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds [4 x i32], ptr %73, i64 0, i64 %75
%77 = load i32, ptr %76, align 4
%78 = load ptr, ptr %4, align 8
%79 = load i32, ptr %6, align 4
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds [4 x i32], ptr %78, i64 %80
%82 = load i32, ptr %7, align 4
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds [4 x i32], ptr %81, i64 0, i64 %83
store i32 %77, ptr %84, align 4
%85 = load i32, ptr %8, align 4
%86 = load ptr, ptr %4, align 8
%87 = load i32, ptr %6, align 4
%88 = add nsw i32 %87, 1
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds [4 x i32], ptr %86, i64 %89
%91 = load i32, ptr %7, align 4
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds [4 x i32], ptr %90, i64 0, i64 %92
store i32 %85, ptr %93, align 4
br label %94
94: ; preds = %60, %56, %52
br label %95
95: ; preds = %94
%96 = load i32, ptr %7, align 4
%97 = add nsw i32 %96, 1
store i32 %97, ptr %7, align 4
br label %49, !llvm.loop !6
98: ; preds = %49
store i32 0, ptr %7, align 4
br label %99
99: ; preds = %145, %98
%100 = load i32, ptr %7, align 4
%101 = icmp slt i32 %100, 4
br i1 %101, label %102, label %148
102: ; preds = %99
%103 = load i32, ptr %7, align 4
%104 = load i32, ptr %11, align 4
%105 = icmp sge i32 %103, %104
br i1 %105, label %106, label %144
106: ; preds = %102
%107 = load i32, ptr %7, align 4
%108 = load i32, ptr %12, align 4
%109 = icmp sle i32 %107, %108
br i1 %109, label %110, label %144
110: ; preds = %106
%111 = load ptr, ptr %4, align 8
%112 = load i32, ptr %6, align 4
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds [4 x i32], ptr %111, i64 %113
%115 = load i32, ptr %7, align 4
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds [4 x i32], ptr %114, i64 0, i64 %116
%118 = load i32, ptr %117, align 4
store i32 %118, ptr %8, align 4
%119 = load ptr, ptr %4, align 8
%120 = load i32, ptr %6, align 4
%121 = add nsw i32 %120, 1
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds [4 x i32], ptr %119, i64 %122
%124 = load i32, ptr %7, align 4
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds [4 x i32], ptr %123, i64 0, i64 %125
%127 = load i32, ptr %126, align 4
%128 = load ptr, ptr %4, align 8
%129 = load i32, ptr %6, align 4
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds [4 x i32], ptr %128, i64 %130
%132 = load i32, ptr %7, align 4
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds [4 x i32], ptr %131, i64 0, i64 %133
store i32 %127, ptr %134, align 4
%135 = load i32, ptr %8, align 4
%136 = load ptr, ptr %4, align 8
%137 = load i32, ptr %6, align 4
%138 = add nsw i32 %137, 1
%139 = sext i32 %138 to i64
%140 = getelementptr inbounds [4 x i32], ptr %136, i64 %139
%141 = load i32, ptr %7, align 4
%142 = sext i32 %141 to i64
%143 = getelementptr inbounds [4 x i32], ptr %140, i64 0, i64 %142
store i32 %135, ptr %143, align 4
br label %144
144: ; preds = %110, %106, %102
br label %145
145: ; preds = %144
%146 = load i32, ptr %7, align 4
%147 = add nsw i32 %146, 1
store i32 %147, ptr %7, align 4
br label %99, !llvm.loop !8
148: ; preds = %99
br label %200
149: ; preds = %43
store i32 0, ptr %7, align 4
br label %150
150: ; preds = %196, %149
%151 = load i32, ptr %7, align 4
%152 = icmp slt i32 %151, 4
br i1 %152, label %153, label %199
153: ; preds = %150
%154 = load i32, ptr %7, align 4
%155 = load i32, ptr %9, align 4
%156 = icmp sge i32 %154, %155
br i1 %156, label %157, label %195
157: ; preds = %153
%158 = load i32, ptr %7, align 4
%159 = load i32, ptr %10, align 4
%160 = icmp sle i32 %158, %159
br i1 %160, label %161, label %195
161: ; preds = %157
%162 = load ptr, ptr %4, align 8
%163 = load i32, ptr %6, align 4
%164 = sext i32 %163 to i64
%165 = getelementptr inbounds [4 x i32], ptr %162, i64 %164
%166 = load i32, ptr %7, align 4
%167 = sext i32 %166 to i64
%168 = getelementptr inbounds [4 x i32], ptr %165, i64 0, i64 %167
%169 = load i32, ptr %168, align 4
store i32 %169, ptr %8, align 4
%170 = load ptr, ptr %4, align 8
%171 = load i32, ptr %6, align 4
%172 = add nsw i32 %171, 1
%173 = sext i32 %172 to i64
%174 = getelementptr inbounds [4 x i32], ptr %170, i64 %173
%175 = load i32, ptr %7, align 4
%176 = sext i32 %175 to i64
%177 = getelementptr inbounds [4 x i32], ptr %174, i64 0, i64 %176
%178 = load i32, ptr %177, align 4
%179 = load ptr, ptr %4, align 8
%180 = load i32, ptr %6, align 4
%181 = sext i32 %180 to i64
%182 = getelementptr inbounds [4 x i32], ptr %179, i64 %181
%183 = load i32, ptr %7, align 4
%184 = sext i32 %183 to i64
%185 = getelementptr inbounds [4 x i32], ptr %182, i64 0, i64 %184
store i32 %178, ptr %185, align 4
%186 = load i32, ptr %8, align 4
%187 = load ptr, ptr %4, align 8
%188 = load i32, ptr %6, align 4
%189 = add nsw i32 %188, 1
%190 = sext i32 %189 to i64
%191 = getelementptr inbounds [4 x i32], ptr %187, i64 %190
%192 = load i32, ptr %7, align 4
%193 = sext i32 %192 to i64
%194 = getelementptr inbounds [4 x i32], ptr %191, i64 0, i64 %193
store i32 %186, ptr %194, align 4
br label %195
195: ; preds = %161, %157, %153
br label %196
196: ; preds = %195
%197 = load i32, ptr %7, align 4
%198 = add nsw i32 %197, 1
store i32 %198, ptr %7, align 4
br label %150, !llvm.loop !9
199: ; preds = %150
br label %200
200: ; preds = %199, %148
br label %201
201: ; preds = %200, %19
br label %202
202: ; preds = %201
%203 = load i32, ptr %6, align 4
%204 = add nsw i32 %203, 2
store i32 %204, ptr %6, align 4
br label %16, !llvm.loop !10
205: ; preds = %16
ret void
}
declare i32 @printf(ptr noundef, float noundef) #1
declare i32 @drand48(...) #1
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_w9yin28.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0Aprobabilidad de cruzamiento: %f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cruzamiento(float noundef %0, ptr noundef %1) #0 {
%3 = alloca float, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca float, align 4
store float %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%14 = load float, ptr %3, align 4
%15 = call i32 @printf(ptr noundef @.str, float noundef %14)
store i32 0, ptr %6, align 4
%16 = load i32, ptr %6, align 4
%17 = icmp slt i32 %16, 5
br i1 %17, label %.lr.ph8, label %209
.lr.ph8: ; preds = %2
br label %18
18: ; preds = %.lr.ph8, %204
%19 = call i32 (...) @drand48()
%20 = mul nsw i32 %19, 1
%21 = sitofp i32 %20 to float
store float %21, ptr %13, align 4
%22 = load float, ptr %13, align 4
%23 = load float, ptr %3, align 4
%24 = fcmp olt float %22, %23
br i1 %24, label %25, label %203
25: ; preds = %18
%26 = call i32 (...) @rand()
%27 = srem i32 %26, 4
store i32 %27, ptr %9, align 4
%28 = call i32 (...) @rand()
%29 = srem i32 %28, 4
store i32 %29, ptr %10, align 4
%30 = load i32, ptr %10, align 4
%31 = load i32, ptr %9, align 4
%32 = icmp slt i32 %30, %31
br i1 %32, label %33, label %37
33: ; preds = %25
%34 = load i32, ptr %10, align 4
store i32 %34, ptr %8, align 4
%35 = load i32, ptr %9, align 4
store i32 %35, ptr %10, align 4
%36 = load i32, ptr %8, align 4
store i32 %36, ptr %9, align 4
br label %37
37: ; preds = %33, %25
%38 = load i32, ptr %10, align 4
%39 = load i32, ptr %9, align 4
%40 = sub nsw i32 %38, %39
%41 = icmp eq i32 %40, 0
br i1 %41, label %47, label %42
42: ; preds = %37
%43 = load i32, ptr %10, align 4
%44 = load i32, ptr %9, align 4
%45 = sub nsw i32 %43, %44
%46 = icmp eq i32 %45, 1
br i1 %46, label %47, label %150
47: ; preds = %42, %37
store i32 0, ptr %9, align 4
store i32 2, ptr %10, align 4
store i32 6, ptr %11, align 4
store i32 7, ptr %12, align 4
store i32 0, ptr %7, align 4
%48 = load i32, ptr %7, align 4
%49 = icmp slt i32 %48, 4
br i1 %49, label %.lr.ph2, label %98
.lr.ph2: ; preds = %47
br label %50
50: ; preds = %.lr.ph2, %93
%51 = load i32, ptr %7, align 4
%52 = load i32, ptr %9, align 4
%53 = icmp sge i32 %51, %52
br i1 %53, label %54, label %92
54: ; preds = %50
%55 = load i32, ptr %7, align 4
%56 = load i32, ptr %10, align 4
%57 = icmp sle i32 %55, %56
br i1 %57, label %58, label %92
58: ; preds = %54
%59 = load ptr, ptr %4, align 8
%60 = load i32, ptr %6, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [4 x i32], ptr %59, i64 %61
%63 = load i32, ptr %7, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [4 x i32], ptr %62, i64 0, i64 %64
%66 = load i32, ptr %65, align 4
store i32 %66, ptr %8, align 4
%67 = load ptr, ptr %4, align 8
%68 = load i32, ptr %6, align 4
%69 = add nsw i32 %68, 1
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [4 x i32], ptr %67, i64 %70
%72 = load i32, ptr %7, align 4
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [4 x i32], ptr %71, i64 0, i64 %73
%75 = load i32, ptr %74, align 4
%76 = load ptr, ptr %4, align 8
%77 = load i32, ptr %6, align 4
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds [4 x i32], ptr %76, i64 %78
%80 = load i32, ptr %7, align 4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds [4 x i32], ptr %79, i64 0, i64 %81
store i32 %75, ptr %82, align 4
%83 = load i32, ptr %8, align 4
%84 = load ptr, ptr %4, align 8
%85 = load i32, ptr %6, align 4
%86 = add nsw i32 %85, 1
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds [4 x i32], ptr %84, i64 %87
%89 = load i32, ptr %7, align 4
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds [4 x i32], ptr %88, i64 0, i64 %90
store i32 %83, ptr %91, align 4
br label %92
92: ; preds = %58, %54, %50
br label %93
93: ; preds = %92
%94 = load i32, ptr %7, align 4
%95 = add nsw i32 %94, 1
store i32 %95, ptr %7, align 4
%96 = load i32, ptr %7, align 4
%97 = icmp slt i32 %96, 4
br i1 %97, label %50, label %._crit_edge3, !llvm.loop !6
._crit_edge3: ; preds = %93
br label %98
98: ; preds = %._crit_edge3, %47
store i32 0, ptr %7, align 4
%99 = load i32, ptr %7, align 4
%100 = icmp slt i32 %99, 4
br i1 %100, label %.lr.ph5, label %149
.lr.ph5: ; preds = %98
br label %101
101: ; preds = %.lr.ph5, %144
%102 = load i32, ptr %7, align 4
%103 = load i32, ptr %11, align 4
%104 = icmp sge i32 %102, %103
br i1 %104, label %105, label %143
105: ; preds = %101
%106 = load i32, ptr %7, align 4
%107 = load i32, ptr %12, align 4
%108 = icmp sle i32 %106, %107
br i1 %108, label %109, label %143
109: ; preds = %105
%110 = load ptr, ptr %4, align 8
%111 = load i32, ptr %6, align 4
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds [4 x i32], ptr %110, i64 %112
%114 = load i32, ptr %7, align 4
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds [4 x i32], ptr %113, i64 0, i64 %115
%117 = load i32, ptr %116, align 4
store i32 %117, ptr %8, align 4
%118 = load ptr, ptr %4, align 8
%119 = load i32, ptr %6, align 4
%120 = add nsw i32 %119, 1
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds [4 x i32], ptr %118, i64 %121
%123 = load i32, ptr %7, align 4
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds [4 x i32], ptr %122, i64 0, i64 %124
%126 = load i32, ptr %125, align 4
%127 = load ptr, ptr %4, align 8
%128 = load i32, ptr %6, align 4
%129 = sext i32 %128 to i64
%130 = getelementptr inbounds [4 x i32], ptr %127, i64 %129
%131 = load i32, ptr %7, align 4
%132 = sext i32 %131 to i64
%133 = getelementptr inbounds [4 x i32], ptr %130, i64 0, i64 %132
store i32 %126, ptr %133, align 4
%134 = load i32, ptr %8, align 4
%135 = load ptr, ptr %4, align 8
%136 = load i32, ptr %6, align 4
%137 = add nsw i32 %136, 1
%138 = sext i32 %137 to i64
%139 = getelementptr inbounds [4 x i32], ptr %135, i64 %138
%140 = load i32, ptr %7, align 4
%141 = sext i32 %140 to i64
%142 = getelementptr inbounds [4 x i32], ptr %139, i64 0, i64 %141
store i32 %134, ptr %142, align 4
br label %143
143: ; preds = %109, %105, %101
br label %144
144: ; preds = %143
%145 = load i32, ptr %7, align 4
%146 = add nsw i32 %145, 1
store i32 %146, ptr %7, align 4
%147 = load i32, ptr %7, align 4
%148 = icmp slt i32 %147, 4
br i1 %148, label %101, label %._crit_edge6, !llvm.loop !8
._crit_edge6: ; preds = %144
br label %149
149: ; preds = %._crit_edge6, %98
br label %202
150: ; preds = %42
store i32 0, ptr %7, align 4
%151 = load i32, ptr %7, align 4
%152 = icmp slt i32 %151, 4
br i1 %152, label %.lr.ph, label %201
.lr.ph: ; preds = %150
br label %153
153: ; preds = %.lr.ph, %196
%154 = load i32, ptr %7, align 4
%155 = load i32, ptr %9, align 4
%156 = icmp sge i32 %154, %155
br i1 %156, label %157, label %195
157: ; preds = %153
%158 = load i32, ptr %7, align 4
%159 = load i32, ptr %10, align 4
%160 = icmp sle i32 %158, %159
br i1 %160, label %161, label %195
161: ; preds = %157
%162 = load ptr, ptr %4, align 8
%163 = load i32, ptr %6, align 4
%164 = sext i32 %163 to i64
%165 = getelementptr inbounds [4 x i32], ptr %162, i64 %164
%166 = load i32, ptr %7, align 4
%167 = sext i32 %166 to i64
%168 = getelementptr inbounds [4 x i32], ptr %165, i64 0, i64 %167
%169 = load i32, ptr %168, align 4
store i32 %169, ptr %8, align 4
%170 = load ptr, ptr %4, align 8
%171 = load i32, ptr %6, align 4
%172 = add nsw i32 %171, 1
%173 = sext i32 %172 to i64
%174 = getelementptr inbounds [4 x i32], ptr %170, i64 %173
%175 = load i32, ptr %7, align 4
%176 = sext i32 %175 to i64
%177 = getelementptr inbounds [4 x i32], ptr %174, i64 0, i64 %176
%178 = load i32, ptr %177, align 4
%179 = load ptr, ptr %4, align 8
%180 = load i32, ptr %6, align 4
%181 = sext i32 %180 to i64
%182 = getelementptr inbounds [4 x i32], ptr %179, i64 %181
%183 = load i32, ptr %7, align 4
%184 = sext i32 %183 to i64
%185 = getelementptr inbounds [4 x i32], ptr %182, i64 0, i64 %184
store i32 %178, ptr %185, align 4
%186 = load i32, ptr %8, align 4
%187 = load ptr, ptr %4, align 8
%188 = load i32, ptr %6, align 4
%189 = add nsw i32 %188, 1
%190 = sext i32 %189 to i64
%191 = getelementptr inbounds [4 x i32], ptr %187, i64 %190
%192 = load i32, ptr %7, align 4
%193 = sext i32 %192 to i64
%194 = getelementptr inbounds [4 x i32], ptr %191, i64 0, i64 %193
store i32 %186, ptr %194, align 4
br label %195
195: ; preds = %161, %157, %153
br label %196
196: ; preds = %195
%197 = load i32, ptr %7, align 4
%198 = add nsw i32 %197, 1
store i32 %198, ptr %7, align 4
%199 = load i32, ptr %7, align 4
%200 = icmp slt i32 %199, 4
br i1 %200, label %153, label %._crit_edge, !llvm.loop !9
._crit_edge: ; preds = %196
br label %201
201: ; preds = %._crit_edge, %150
br label %202
202: ; preds = %201, %149
br label %203
203: ; preds = %202, %18
br label %204
204: ; preds = %203
%205 = load i32, ptr %6, align 4
%206 = add nsw i32 %205, 2
store i32 %206, ptr %6, align 4
%207 = load i32, ptr %6, align 4
%208 = icmp slt i32 %207, 5
br i1 %208, label %18, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %204
br label %209
209: ; preds = %._crit_edge9, %2
ret void
}
declare i32 @printf(ptr noundef, float noundef) #1
declare i32 @drand48(...) #1
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpusw6nc6o.c'
source_filename = "/tmp/tmpusw6nc6o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"F: C:\0A\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"__________\0A\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"%3.0f %6.1f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
store i32 0, ptr %1, align 4
store float 0.000000e+00, ptr %4, align 4
store float 3.000000e+02, ptr %5, align 4
store float 2.000000e+01, ptr %6, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%9 = load float, ptr %5, align 4
store float %9, ptr %2, align 4
br label %10
10: ; preds = %25, %0
%11 = load float, ptr %2, align 4
%12 = load float, ptr %4, align 4
%13 = fcmp oge float %11, %12
br i1 %13, label %14, label %29
14: ; preds = %10
%15 = load float, ptr %2, align 4
%16 = fpext float %15 to double
%17 = fsub double %16, 3.200000e+01
%18 = fmul double 0x3FE1C71C71C71C72, %17
%19 = fptrunc double %18 to float
store float %19, ptr %3, align 4
%20 = load float, ptr %2, align 4
%21 = fpext float %20 to double
%22 = load float, ptr %3, align 4
%23 = fpext float %22 to double
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %21, double noundef %23)
br label %25
25: ; preds = %14
%26 = load float, ptr %2, align 4
%27 = load float, ptr %6, align 4
%28 = fsub float %26, %27
store float %28, ptr %2, align 4
br label %10, !llvm.loop !6
29: ; preds = %10
%30 = load i32, ptr %1, align 4
ret i32 %30
}
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/tmpusw6nc6o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"F: C:\0A\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"__________\0A\00", align 1
@.str.2 = private unnamed_addr constant [13 x i8] c"%3.0f %6.1f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
store i32 0, ptr %1, align 4
store float 0.000000e+00, ptr %4, align 4
store float 3.000000e+02, ptr %5, align 4
store float 2.000000e+01, ptr %6, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%9 = load float, ptr %5, align 4
store float %9, ptr %2, align 4
%10 = load float, ptr %2, align 4
%11 = load float, ptr %4, align 4
%12 = fcmp oge float %10, %11
br i1 %12, label %.lr.ph, label %31
.lr.ph: ; preds = %0
br label %13
13: ; preds = %.lr.ph, %24
%14 = load float, ptr %2, align 4
%15 = fpext float %14 to double
%16 = fsub double %15, 3.200000e+01
%17 = fmul double 0x3FE1C71C71C71C72, %16
%18 = fptrunc double %17 to float
store float %18, ptr %3, align 4
%19 = load float, ptr %2, align 4
%20 = fpext float %19 to double
%21 = load float, ptr %3, align 4
%22 = fpext float %21 to double
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %20, double noundef %22)
br label %24
24: ; preds = %13
%25 = load float, ptr %2, align 4
%26 = load float, ptr %6, align 4
%27 = fsub float %25, %26
store float %27, ptr %2, align 4
%28 = load float, ptr %2, align 4
%29 = load float, ptr %4, align 4
%30 = fcmp oge float %28, %29
br i1 %30, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %24
br label %31
31: ; preds = %._crit_edge, %0
%32 = load i32, ptr %1, align 4
ret i32 %32
}
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/tmpnbk2ctnw.c'
source_filename = "/tmp/tmpnbk2ctnw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [45 x i8] c"</u:%sResponse>\0D\0A </s:Body>\0D\0A</s:Envelope>\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @UpnpAsyncResponse_DONE(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store ptr @.str, ptr %5, align 8
%10 = load ptr, ptr %5, align 8
%11 = call i64 @strlen(ptr noundef %10)
%12 = trunc i64 %11 to i32
%13 = load ptr, ptr %4, align 8
%14 = call i64 @strlen(ptr noundef %13)
%15 = trunc i64 %14 to i32
%16 = add nsw i32 %12, %15
store i32 %16, ptr %6, align 4
%17 = load i32, ptr %6, align 4
%18 = call i64 @malloc(i32 noundef %17)
%19 = inttoptr i64 %18 to ptr
store ptr %19, ptr %7, align 8
%20 = load ptr, ptr %3, align 8
store ptr %20, ptr %8, align 8
%21 = load ptr, ptr %7, align 8
%22 = load ptr, ptr %5, align 8
%23 = load ptr, ptr %4, align 8
%24 = call i32 @sprintf(ptr noundef %21, ptr noundef %22, ptr noundef %23)
store i32 %24, ptr %9, align 4
%25 = load ptr, ptr %8, align 8
%26 = load ptr, ptr %7, align 8
%27 = load i32, ptr %9, align 4
%28 = call i32 @ILibWebServer_StreamBody(ptr noundef %25, ptr noundef %26, i32 noundef %27, i32 noundef 0, i32 noundef 1)
ret void
}
declare i64 @strlen(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @ILibWebServer_StreamBody(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/tmpnbk2ctnw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [45 x i8] c"</u:%sResponse>\0D\0A </s:Body>\0D\0A</s:Envelope>\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @UpnpAsyncResponse_DONE(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store ptr @.str, ptr %5, align 8
%10 = load ptr, ptr %5, align 8
%11 = call i64 @strlen(ptr noundef %10)
%12 = trunc i64 %11 to i32
%13 = load ptr, ptr %4, align 8
%14 = call i64 @strlen(ptr noundef %13)
%15 = trunc i64 %14 to i32
%16 = add nsw i32 %12, %15
store i32 %16, ptr %6, align 4
%17 = load i32, ptr %6, align 4
%18 = call i64 @malloc(i32 noundef %17)
%19 = inttoptr i64 %18 to ptr
store ptr %19, ptr %7, align 8
%20 = load ptr, ptr %3, align 8
store ptr %20, ptr %8, align 8
%21 = load ptr, ptr %7, align 8
%22 = load ptr, ptr %5, align 8
%23 = load ptr, ptr %4, align 8
%24 = call i32 @sprintf(ptr noundef %21, ptr noundef %22, ptr noundef %23)
store i32 %24, ptr %9, align 4
%25 = load ptr, ptr %8, align 8
%26 = load ptr, ptr %7, align 8
%27 = load i32, ptr %9, align 4
%28 = call i32 @ILibWebServer_StreamBody(ptr noundef %25, ptr noundef %26, i32 noundef %27, i32 noundef 0, i32 noundef 1)
ret void
}
declare i64 @strlen(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @ILibWebServer_StreamBody(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/tmpqhqspany.c'
source_filename = "/tmp/tmpqhqspany.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"nonlocal: %d and %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @test_check_transformation_locality_after_compaction() #0 {
%1 = alloca ptr, align 8
%2 = alloca [1046 x ptr], align 16
%3 = alloca i64, align 8
%4 = alloca i32, align 4
%5 = alloca [32 x i8], align 16
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = call ptr @xylo_make_tgraph(i32 noundef 32)
store ptr %8, ptr %1, align 8
store i64 0, ptr %3, align 8
br label %9
9: ; preds = %24, %0
%10 = load i64, ptr %3, align 8
%11 = icmp ult i64 %10, 1046
br i1 %11, label %12, label %27
12: ; preds = %9
%13 = getelementptr inbounds [32 x i8], ptr %5, i64 0, i64 0
%14 = load i64, ptr %3, align 8
%15 = call i32 @init_id(ptr noundef %13, i64 noundef %14)
%16 = load ptr, ptr %1, align 8
%17 = load i64, ptr %3, align 8
%18 = getelementptr inbounds [1046 x ptr], ptr %2, i64 0, i64 0
%19 = call i32 @get_parent(i64 noundef %17, ptr noundef %18)
%20 = getelementptr inbounds [32 x i8], ptr %5, i64 0, i64 0
%21 = call ptr @xylo_make_tnode(ptr noundef %16, i32 noundef %19, ptr noundef %20)
%22 = load i64, ptr %3, align 8
%23 = getelementptr inbounds [1046 x ptr], ptr %2, i64 0, i64 %22
store ptr %21, ptr %23, align 8
br label %24
24: ; preds = %12
%25 = load i64, ptr %3, align 8
%26 = add i64 %25, 1
store i64 %26, ptr %3, align 8
br label %9, !llvm.loop !6
27: ; preds = %9
%28 = load ptr, ptr %1, align 8
%29 = call i32 @xylo_tgraph_compact(ptr noundef %28)
store i64 0, ptr %3, align 8
br label %30
30: ; preds = %76, %27
%31 = load i64, ptr %3, align 8
%32 = icmp ult i64 %31, 1046
br i1 %32, label %33, label %79
33: ; preds = %30
%34 = load i64, ptr %3, align 8
%35 = call i32 @next_sibling(i64 noundef %34)
store i32 %35, ptr %4, align 4
%36 = load i32, ptr %4, align 4
%37 = icmp sge i32 %36, 0
br i1 %37, label %38, label %75
38: ; preds = %33
%39 = load i64, ptr %3, align 8
%40 = getelementptr inbounds [1046 x ptr], ptr %2, i64 0, i64 %39
%41 = load ptr, ptr %40, align 8
%42 = call ptr @xylo_tnode_local(ptr noundef %41)
store ptr %42, ptr %6, align 8
%43 = load i32, ptr %4, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [1046 x ptr], ptr %2, i64 0, i64 %44
%46 = load ptr, ptr %45, align 8
%47 = call ptr @xylo_tnode_local(ptr noundef %46)
store ptr %47, ptr %7, align 8
%48 = load ptr, ptr %6, align 8
%49 = getelementptr inbounds i8, ptr %48, i64 32
%50 = load ptr, ptr %7, align 8
%51 = icmp ne ptr %49, %50
br i1 %51, label %52, label %56
52: ; preds = %38
%53 = load i64, ptr %3, align 8
%54 = load i32, ptr %4, align 4
%55 = call i32 @fail_test(ptr noundef @.str, i64 noundef %53, i32 noundef %54)
br label %56
56: ; preds = %52, %38
%57 = load i64, ptr %3, align 8
%58 = getelementptr inbounds [1046 x ptr], ptr %2, i64 0, i64 %57
%59 = load ptr, ptr %58, align 8
%60 = call ptr @xylo_tnode_global(ptr noundef %59)
store ptr %60, ptr %6, align 8
%61 = load i32, ptr %4, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [1046 x ptr], ptr %2, i64 0, i64 %62
%64 = load ptr, ptr %63, align 8
%65 = call ptr @xylo_tnode_global(ptr noundef %64)
store ptr %65, ptr %7, align 8
%66 = load ptr, ptr %6, align 8
%67 = getelementptr inbounds i8, ptr %66, i64 32
%68 = load ptr, ptr %7, align 8
%69 = icmp ne ptr %67, %68
br i1 %69, label %70, label %74
70: ; preds = %56
%71 = load i64, ptr %3, align 8
%72 = load i32, ptr %4, align 4
%73 = call i32 @fail_test(ptr noundef @.str, i64 noundef %71, i32 noundef %72)
br label %74
74: ; preds = %70, %56
br label %75
75: ; preds = %74, %33
br label %76
76: ; preds = %75
%77 = load i64, ptr %3, align 8
%78 = add i64 %77, 1
store i64 %78, ptr %3, align 8
br label %30, !llvm.loop !8
79: ; preds = %30
%80 = load ptr, ptr %1, align 8
%81 = call i32 @xylo_free_tgraph(ptr noundef %80)
ret i32 0
}
declare ptr @xylo_make_tgraph(i32 noundef) #1
declare i32 @init_id(ptr noundef, i64 noundef) #1
declare ptr @xylo_make_tnode(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @get_parent(i64 noundef, ptr noundef) #1
declare i32 @xylo_tgraph_compact(ptr noundef) #1
declare i32 @next_sibling(i64 noundef) #1
declare ptr @xylo_tnode_local(ptr noundef) #1
declare i32 @fail_test(ptr noundef, i64 noundef, i32 noundef) #1
declare ptr @xylo_tnode_global(ptr noundef) #1
declare i32 @xylo_free_tgraph(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpqhqspany.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"nonlocal: %d and %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @test_check_transformation_locality_after_compaction() #0 {
%1 = alloca ptr, align 8
%2 = alloca [1046 x ptr], align 16
%3 = alloca i64, align 8
%4 = alloca i32, align 4
%5 = alloca [32 x i8], align 16
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = call ptr @xylo_make_tgraph(i32 noundef 32)
store ptr %8, ptr %1, align 8
store i64 0, ptr %3, align 8
%9 = load i64, ptr %3, align 8
%10 = icmp ult i64 %9, 1046
br i1 %10, label %.lr.ph, label %28
.lr.ph: ; preds = %0
br label %11
11: ; preds = %.lr.ph, %23
%12 = getelementptr inbounds [32 x i8], ptr %5, i64 0, i64 0
%13 = load i64, ptr %3, align 8
%14 = call i32 @init_id(ptr noundef %12, i64 noundef %13)
%15 = load ptr, ptr %1, align 8
%16 = load i64, ptr %3, align 8
%17 = getelementptr inbounds [1046 x ptr], ptr %2, i64 0, i64 0
%18 = call i32 @get_parent(i64 noundef %16, ptr noundef %17)
%19 = getelementptr inbounds [32 x i8], ptr %5, i64 0, i64 0
%20 = call ptr @xylo_make_tnode(ptr noundef %15, i32 noundef %18, ptr noundef %19)
%21 = load i64, ptr %3, align 8
%22 = getelementptr inbounds [1046 x ptr], ptr %2, i64 0, i64 %21
store ptr %20, ptr %22, align 8
br label %23
23: ; preds = %11
%24 = load i64, ptr %3, align 8
%25 = add i64 %24, 1
store i64 %25, ptr %3, align 8
%26 = load i64, ptr %3, align 8
%27 = icmp ult i64 %26, 1046
br i1 %27, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %28
28: ; preds = %._crit_edge, %0
%29 = load ptr, ptr %1, align 8
%30 = call i32 @xylo_tgraph_compact(ptr noundef %29)
store i64 0, ptr %3, align 8
%31 = load i64, ptr %3, align 8
%32 = icmp ult i64 %31, 1046
br i1 %32, label %.lr.ph2, label %81
.lr.ph2: ; preds = %28
br label %33
33: ; preds = %.lr.ph2, %76
%34 = load i64, ptr %3, align 8
%35 = call i32 @next_sibling(i64 noundef %34)
store i32 %35, ptr %4, align 4
%36 = load i32, ptr %4, align 4
%37 = icmp sge i32 %36, 0
br i1 %37, label %38, label %75
38: ; preds = %33
%39 = load i64, ptr %3, align 8
%40 = getelementptr inbounds [1046 x ptr], ptr %2, i64 0, i64 %39
%41 = load ptr, ptr %40, align 8
%42 = call ptr @xylo_tnode_local(ptr noundef %41)
store ptr %42, ptr %6, align 8
%43 = load i32, ptr %4, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [1046 x ptr], ptr %2, i64 0, i64 %44
%46 = load ptr, ptr %45, align 8
%47 = call ptr @xylo_tnode_local(ptr noundef %46)
store ptr %47, ptr %7, align 8
%48 = load ptr, ptr %6, align 8
%49 = getelementptr inbounds i8, ptr %48, i64 32
%50 = load ptr, ptr %7, align 8
%51 = icmp ne ptr %49, %50
br i1 %51, label %52, label %56
52: ; preds = %38
%53 = load i64, ptr %3, align 8
%54 = load i32, ptr %4, align 4
%55 = call i32 @fail_test(ptr noundef @.str, i64 noundef %53, i32 noundef %54)
br label %56
56: ; preds = %52, %38
%57 = load i64, ptr %3, align 8
%58 = getelementptr inbounds [1046 x ptr], ptr %2, i64 0, i64 %57
%59 = load ptr, ptr %58, align 8
%60 = call ptr @xylo_tnode_global(ptr noundef %59)
store ptr %60, ptr %6, align 8
%61 = load i32, ptr %4, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [1046 x ptr], ptr %2, i64 0, i64 %62
%64 = load ptr, ptr %63, align 8
%65 = call ptr @xylo_tnode_global(ptr noundef %64)
store ptr %65, ptr %7, align 8
%66 = load ptr, ptr %6, align 8
%67 = getelementptr inbounds i8, ptr %66, i64 32
%68 = load ptr, ptr %7, align 8
%69 = icmp ne ptr %67, %68
br i1 %69, label %70, label %74
70: ; preds = %56
%71 = load i64, ptr %3, align 8
%72 = load i32, ptr %4, align 4
%73 = call i32 @fail_test(ptr noundef @.str, i64 noundef %71, i32 noundef %72)
br label %74
74: ; preds = %70, %56
br label %75
75: ; preds = %74, %33
br label %76
76: ; preds = %75
%77 = load i64, ptr %3, align 8
%78 = add i64 %77, 1
store i64 %78, ptr %3, align 8
%79 = load i64, ptr %3, align 8
%80 = icmp ult i64 %79, 1046
br i1 %80, label %33, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %76
br label %81
81: ; preds = %._crit_edge3, %28
%82 = load ptr, ptr %1, align 8
%83 = call i32 @xylo_free_tgraph(ptr noundef %82)
ret i32 0
}
declare ptr @xylo_make_tgraph(i32 noundef) #1
declare i32 @init_id(ptr noundef, i64 noundef) #1
declare ptr @xylo_make_tnode(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @get_parent(i64 noundef, ptr noundef) #1
declare i32 @xylo_tgraph_compact(ptr noundef) #1
declare i32 @next_sibling(i64 noundef) #1
declare ptr @xylo_tnode_local(ptr noundef) #1
declare i32 @fail_test(ptr noundef, i64 noundef, i32 noundef) #1
declare ptr @xylo_tnode_global(ptr noundef) #1
declare i32 @xylo_free_tgraph(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp22pysr53.c'
source_filename = "/tmp/tmp22pysr53.c"
target datalayout = "e-m:e-p270: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/tmp22pysr53.c"
target datalayout = "e-m:e-p270: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/tmptbflsw_0.c'
source_filename = "/tmp/tmptbflsw_0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @indigoLoadQueryMoleculeFromFile(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i32 @indigoReadFile(ptr noundef %6)
store i32 %7, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp sle i32 %8, 0
br i1 %9, label %10, label %11
10: ; preds = %1
store i32 -1, ptr %2, align 4
br label %17
11: ; preds = %1
%12 = load i32, ptr %4, align 4
%13 = call i32 @indigoLoadQueryMolecule(i32 noundef %12)
store i32 %13, ptr %5, align 4
%14 = load i32, ptr %4, align 4
%15 = call i32 @indigoFree(i32 noundef %14)
%16 = load i32, ptr %5, align 4
store i32 %16, ptr %2, align 4
br label %17
17: ; preds = %11, %10
%18 = load i32, ptr %2, align 4
ret i32 %18
}
declare i32 @indigoReadFile(ptr noundef) #1
declare i32 @indigoLoadQueryMolecule(i32 noundef) #1
declare i32 @indigoFree(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/tmptbflsw_0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @indigoLoadQueryMoleculeFromFile(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = call i32 @indigoReadFile(ptr noundef %6)
store i32 %7, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp sle i32 %8, 0
br i1 %9, label %10, label %11
10: ; preds = %1
store i32 -1, ptr %2, align 4
br label %17
11: ; preds = %1
%12 = load i32, ptr %4, align 4
%13 = call i32 @indigoLoadQueryMolecule(i32 noundef %12)
store i32 %13, ptr %5, align 4
%14 = load i32, ptr %4, align 4
%15 = call i32 @indigoFree(i32 noundef %14)
%16 = load i32, ptr %5, align 4
store i32 %16, ptr %2, align 4
br label %17
17: ; preds = %11, %10
%18 = load i32, ptr %2, align 4
ret i32 %18
}
declare i32 @indigoReadFile(ptr noundef) #1
declare i32 @indigoLoadQueryMolecule(i32 noundef) #1
declare i32 @indigoFree(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/tmpw9sba9rc.c'
source_filename = "/tmp/tmpw9sba9rc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"LEFT\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"RIGHT\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"TOP\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"BOTTOM\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"MIDDLE\00", align 1
@.str.5 = private unnamed_addr constant [7 x i8] c"CENTER\00", align 1
@.str.6 = private unnamed_addr constant [7 x i8] c"CENTRE\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @HTMLAttrAlign(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = call i64 @strcmpci(ptr noundef %4, ptr noundef @.str)
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %1
store i32 1, ptr %2, align 4
br label %39
8: ; preds = %1
%9 = load ptr, ptr %3, align 8
%10 = call i64 @strcmpci(ptr noundef %9, ptr noundef @.str.1)
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %13
12: ; preds = %8
store i32 2, ptr %2, align 4
br label %39
13: ; preds = %8
%14 = load ptr, ptr %3, align 8
%15 = call i64 @strcmpci(ptr noundef %14, ptr noundef @.str.2)
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %13
store i32 3, ptr %2, align 4
br label %39
18: ; preds = %13
%19 = load ptr, ptr %3, align 8
%20 = call i64 @strcmpci(ptr noundef %19, ptr noundef @.str.3)
%21 = icmp eq i64 %20, 0
br i1 %21, label %22, label %23
22: ; preds = %18
store i32 4, ptr %2, align 4
br label %39
23: ; preds = %18
%24 = load ptr, ptr %3, align 8
%25 = call i64 @strcmpci(ptr noundef %24, ptr noundef @.str.4)
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %28
27: ; preds = %23
store i32 5, ptr %2, align 4
br label %39
28: ; preds = %23
%29 = load ptr, ptr %3, align 8
%30 = call i64 @strcmpci(ptr noundef %29, ptr noundef @.str.5)
%31 = icmp eq i64 %30, 0
br i1 %31, label %32, label %33
32: ; preds = %28
store i32 5, ptr %2, align 4
br label %39
33: ; preds = %28
%34 = load ptr, ptr %3, align 8
%35 = call i64 @strcmpci(ptr noundef %34, ptr noundef @.str.6)
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %38
37: ; preds = %33
store i32 5, ptr %2, align 4
br label %39
38: ; preds = %33
store i32 0, ptr %2, align 4
br label %39
39: ; preds = %38, %37, %32, %27, %22, %17, %12, %7
%40 = load i32, ptr %2, align 4
ret i32 %40
}
declare i64 @strcmpci(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/tmpw9sba9rc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"LEFT\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"RIGHT\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"TOP\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"BOTTOM\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"MIDDLE\00", align 1
@.str.5 = private unnamed_addr constant [7 x i8] c"CENTER\00", align 1
@.str.6 = private unnamed_addr constant [7 x i8] c"CENTRE\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @HTMLAttrAlign(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = call i64 @strcmpci(ptr noundef %4, ptr noundef @.str)
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %1
store i32 1, ptr %2, align 4
br label %39
8: ; preds = %1
%9 = load ptr, ptr %3, align 8
%10 = call i64 @strcmpci(ptr noundef %9, ptr noundef @.str.1)
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %13
12: ; preds = %8
store i32 2, ptr %2, align 4
br label %39
13: ; preds = %8
%14 = load ptr, ptr %3, align 8
%15 = call i64 @strcmpci(ptr noundef %14, ptr noundef @.str.2)
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %13
store i32 3, ptr %2, align 4
br label %39
18: ; preds = %13
%19 = load ptr, ptr %3, align 8
%20 = call i64 @strcmpci(ptr noundef %19, ptr noundef @.str.3)
%21 = icmp eq i64 %20, 0
br i1 %21, label %22, label %23
22: ; preds = %18
store i32 4, ptr %2, align 4
br label %39
23: ; preds = %18
%24 = load ptr, ptr %3, align 8
%25 = call i64 @strcmpci(ptr noundef %24, ptr noundef @.str.4)
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %28
27: ; preds = %23
store i32 5, ptr %2, align 4
br label %39
28: ; preds = %23
%29 = load ptr, ptr %3, align 8
%30 = call i64 @strcmpci(ptr noundef %29, ptr noundef @.str.5)
%31 = icmp eq i64 %30, 0
br i1 %31, label %32, label %33
32: ; preds = %28
store i32 5, ptr %2, align 4
br label %39
33: ; preds = %28
%34 = load ptr, ptr %3, align 8
%35 = call i64 @strcmpci(ptr noundef %34, ptr noundef @.str.6)
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %38
37: ; preds = %33
store i32 5, ptr %2, align 4
br label %39
38: ; preds = %33
store i32 0, ptr %2, align 4
br label %39
39: ; preds = %38, %37, %32, %27, %22, %17, %12, %7
%40 = load i32, ptr %2, align 4
ret i32 %40
}
declare i64 @strcmpci(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/tmpjtb4c7zb.c'
source_filename = "/tmp/tmpjtb4c7zb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @freeList(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @free(ptr noundef %3)
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjtb4c7zb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @freeList(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @free(ptr noundef %3)
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpw8zncszn.c'
source_filename = "/tmp/tmpw8zncszn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c".\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"..\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"%s/%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @recursivelyDeleteDir(ptr noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca [1024 x i8], align 16
store ptr %0, ptr %3, align 8
%9 = load ptr, ptr %3, align 8
%10 = call i32 @fileExists(ptr noundef %9)
%11 = icmp ne i32 %10, 0
br i1 %11, label %13, label %12
12: ; preds = %1
store i64 0, ptr %2, align 8
br label %72
13: ; preds = %1
store i64 0, ptr %4, align 8
%14 = load ptr, ptr %3, align 8
%15 = call i32 @allFilesInDir(ptr noundef %14, ptr noundef %5)
store i32 %15, ptr %6, align 4
store i32 0, ptr %7, align 4
br label %16
16: ; preds = %62, %13
%17 = load i32, ptr %7, align 4
%18 = load i32, ptr %6, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %20, label %65
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 ptr, ptr %21, i64 %23
%25 = load ptr, ptr %24, align 8
%26 = call i64 @strcmp(ptr noundef %25, ptr noundef @.str)
%27 = icmp ne i64 %26, 0
br i1 %27, label %28, label %61
28: ; preds = %20
%29 = load ptr, ptr %5, align 8
%30 = load i32, ptr %7, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds ptr, ptr %29, i64 %31
%33 = load ptr, ptr %32, align 8
%34 = call i64 @strcmp(ptr noundef %33, ptr noundef @.str.1)
%35 = icmp ne i64 %34, 0
br i1 %35, label %36, label %61
36: ; preds = %28
%37 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%38 = load ptr, ptr %3, align 8
%39 = load ptr, ptr %5, align 8
%40 = load i32, ptr %7, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds ptr, ptr %39, i64 %41
%43 = load ptr, ptr %42, align 8
%44 = call i32 @sprintf(ptr noundef %37, ptr noundef @.str.2, ptr noundef %38, ptr noundef %43)
%45 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%46 = call i64 @isDirectory(ptr noundef %45)
%47 = icmp ne i64 %46, 0
br i1 %47, label %48, label %53
48: ; preds = %36
%49 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%50 = call i64 @recursivelyDeleteDir(ptr noundef %49)
%51 = load i64, ptr %4, align 8
%52 = add i64 %51, %50
store i64 %52, ptr %4, align 8
br label %60
53: ; preds = %36
%54 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%55 = call i64 @numBytesInFile(ptr noundef %54)
%56 = load i64, ptr %4, align 8
%57 = add i64 %56, %55
store i64 %57, ptr %4, align 8
%58 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%59 = call i32 @unlink(ptr noundef %58)
br label %60
60: ; preds = %53, %48
br label %61
61: ; preds = %60, %28, %20
br label %62
62: ; preds = %61
%63 = load i32, ptr %7, align 4
%64 = add nsw i32 %63, 1
store i32 %64, ptr %7, align 4
br label %16, !llvm.loop !6
65: ; preds = %16
%66 = load ptr, ptr %3, align 8
%67 = call i32 @rmdir(ptr noundef %66)
%68 = load ptr, ptr %5, align 8
%69 = load i32, ptr %6, align 4
%70 = call i32 @freeStringArray(ptr noundef %68, i32 noundef %69)
%71 = load i64, ptr %4, align 8
store i64 %71, ptr %2, align 8
br label %72
72: ; preds = %65, %12
%73 = load i64, ptr %2, align 8
ret i64 %73
}
declare i32 @fileExists(ptr noundef) #1
declare i32 @allFilesInDir(ptr noundef, ptr noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @isDirectory(ptr noundef) #1
declare i64 @numBytesInFile(ptr noundef) #1
declare i32 @unlink(ptr noundef) #1
declare i32 @rmdir(ptr noundef) #1
declare i32 @freeStringArray(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpw8zncszn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c".\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"..\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"%s/%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @recursivelyDeleteDir(ptr noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca [1024 x i8], align 16
store ptr %0, ptr %3, align 8
%9 = load ptr, ptr %3, align 8
%10 = call i32 @fileExists(ptr noundef %9)
%11 = icmp ne i32 %10, 0
br i1 %11, label %13, label %12
12: ; preds = %1
store i64 0, ptr %2, align 8
br label %74
13: ; preds = %1
store i64 0, ptr %4, align 8
%14 = load ptr, ptr %3, align 8
%15 = call i32 @allFilesInDir(ptr noundef %14, ptr noundef %5)
store i32 %15, ptr %6, align 4
store i32 0, ptr %7, align 4
%16 = load i32, ptr %7, align 4
%17 = load i32, ptr %6, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %.lr.ph, label %67
.lr.ph: ; preds = %13
br label %19
19: ; preds = %.lr.ph, %61
%20 = load ptr, ptr %5, align 8
%21 = load i32, ptr %7, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds ptr, ptr %20, i64 %22
%24 = load ptr, ptr %23, align 8
%25 = call i64 @strcmp(ptr noundef %24, ptr noundef @.str)
%26 = icmp ne i64 %25, 0
br i1 %26, label %27, label %60
27: ; preds = %19
%28 = load ptr, ptr %5, align 8
%29 = load i32, ptr %7, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds ptr, ptr %28, i64 %30
%32 = load ptr, ptr %31, align 8
%33 = call i64 @strcmp(ptr noundef %32, ptr noundef @.str.1)
%34 = icmp ne i64 %33, 0
br i1 %34, label %35, label %60
35: ; preds = %27
%36 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%37 = load ptr, ptr %3, align 8
%38 = load ptr, ptr %5, align 8
%39 = load i32, ptr %7, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds ptr, ptr %38, i64 %40
%42 = load ptr, ptr %41, align 8
%43 = call i32 @sprintf(ptr noundef %36, ptr noundef @.str.2, ptr noundef %37, ptr noundef %42)
%44 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%45 = call i64 @isDirectory(ptr noundef %44)
%46 = icmp ne i64 %45, 0
br i1 %46, label %47, label %52
47: ; preds = %35
%48 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%49 = call i64 @recursivelyDeleteDir(ptr noundef %48)
%50 = load i64, ptr %4, align 8
%51 = add i64 %50, %49
store i64 %51, ptr %4, align 8
br label %59
52: ; preds = %35
%53 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%54 = call i64 @numBytesInFile(ptr noundef %53)
%55 = load i64, ptr %4, align 8
%56 = add i64 %55, %54
store i64 %56, ptr %4, align 8
%57 = getelementptr inbounds [1024 x i8], ptr %8, i64 0, i64 0
%58 = call i32 @unlink(ptr noundef %57)
br label %59
59: ; preds = %52, %47
br label %60
60: ; preds = %59, %27, %19
br label %61
61: ; preds = %60
%62 = load i32, ptr %7, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %7, align 4
%64 = load i32, ptr %7, align 4
%65 = load i32, ptr %6, align 4
%66 = icmp slt i32 %64, %65
br i1 %66, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %61
br label %67
67: ; preds = %._crit_edge, %13
%68 = load ptr, ptr %3, align 8
%69 = call i32 @rmdir(ptr noundef %68)
%70 = load ptr, ptr %5, align 8
%71 = load i32, ptr %6, align 4
%72 = call i32 @freeStringArray(ptr noundef %70, i32 noundef %71)
%73 = load i64, ptr %4, align 8
store i64 %73, ptr %2, align 8
br label %74
74: ; preds = %67, %12
%75 = load i64, ptr %2, align 8
ret i64 %75
}
declare i32 @fileExists(ptr noundef) #1
declare i32 @allFilesInDir(ptr noundef, ptr noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @isDirectory(ptr noundef) #1
declare i64 @numBytesInFile(ptr noundef) #1
declare i32 @unlink(ptr noundef) #1
declare i32 @rmdir(ptr noundef) #1
declare i32 @freeStringArray(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpetlu0rps.c'
source_filename = "/tmp/tmpetlu0rps.c"
target datalayout = "e-m:e-p270: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/tmpetlu0rps.c"
target datalayout = "e-m:e-p270: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/tmpeyhtgadw.c'
source_filename = "/tmp/tmpeyhtgadw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%d:\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c" %d\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.5 = private unnamed_addr constant [11 x i8] c" %d %s %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca [24 x [24 x i32]], align 16
%8 = alloca [24 x i32], align 16
%9 = alloca [24 x [2 x i32]], align 16
%10 = alloca [5 x i8], align 1
%11 = alloca [5 x i8], align 1
store i32 0, ptr %1, align 4
br label %12
12: ; preds = %181, %0
%13 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2)
%14 = icmp eq i32 %13, 1
br i1 %14, label %15, label %182
15: ; preds = %12
store i32 0, ptr %3, align 4
br label %16
16: ; preds = %38, %15
%17 = load i32, ptr %3, align 4
%18 = load i32, ptr %2, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %20, label %41
20: ; preds = %16
%21 = load i32, ptr %3, align 4
%22 = load i32, ptr %3, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [24 x [24 x i32]], ptr %7, i64 0, i64 %23
%25 = getelementptr inbounds [24 x i32], ptr %24, i64 0, i64 0
store i32 %21, ptr %25, align 16
%26 = load i32, ptr %3, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [24 x i32], ptr %8, i64 0, i64 %27
store i32 0, ptr %28, align 4
%29 = load i32, ptr %3, align 4
%30 = load i32, ptr %3, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [24 x [2 x i32]], ptr %9, i64 0, i64 %31
%33 = getelementptr inbounds [2 x i32], ptr %32, i64 0, i64 0
store i32 %29, ptr %33, align 8
%34 = load i32, ptr %3, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [24 x [2 x i32]], ptr %9, i64 0, i64 %35
%37 = getelementptr inbounds [2 x i32], ptr %36, i64 0, i64 1
store i32 0, ptr %37, align 4
br label %38
38: ; preds = %20
%39 = load i32, ptr %3, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %3, align 4
br label %16, !llvm.loop !6
41: ; preds = %16
br label %42
42: ; preds = %180, %41
%43 = getelementptr inbounds [5 x i8], ptr %10, i64 0, i64 0
%44 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %43)
%45 = icmp ne i32 %44, 0
br i1 %45, label %46, label %181
46: ; preds = %42
%47 = getelementptr inbounds [5 x i8], ptr %10, i64 0, i64 0
%48 = load i8, ptr %47, align 1
%49 = sext i8 %48 to i32
%50 = icmp eq i32 %49, 113
br i1 %50, label %51, label %84
51: ; preds = %46
store i32 0, ptr %3, align 4
br label %52
52: ; preds = %80, %51
%53 = load i32, ptr %3, align 4
%54 = load i32, ptr %2, align 4
%55 = icmp slt i32 %53, %54
br i1 %55, label %56, label %83
56: ; preds = %52
%57 = load i32, ptr %3, align 4
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %57)
store i32 0, ptr %4, align 4
br label %59
59: ; preds = %75, %56
%60 = load i32, ptr %4, align 4
%61 = load i32, ptr %3, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [24 x i32], ptr %8, i64 0, i64 %62
%64 = load i32, ptr %63, align 4
%65 = icmp sle i32 %60, %64
br i1 %65, label %66, label %78
66: ; preds = %59
%67 = load i32, ptr %3, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds [24 x [24 x i32]], ptr %7, i64 0, i64 %68
%70 = load i32, ptr %4, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [24 x i32], ptr %69, i64 0, i64 %71
%73 = load i32, ptr %72, align 4
%74 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %73)
br label %75
75: ; preds = %66
%76 = load i32, ptr %4, align 4
%77 = add nsw i32 %76, 1
store i32 %77, ptr %4, align 4
br label %59, !llvm.loop !8
78: ; preds = %59
%79 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %80
80: ; preds = %78
%81 = load i32, ptr %3, align 4
%82 = add nsw i32 %81, 1
store i32 %82, ptr %3, align 4
br label %52, !llvm.loop !9
83: ; preds = %52
br label %181
84: ; preds = %46
%85 = getelementptr inbounds [5 x i8], ptr %11, i64 0, i64 0
%86 = call i32 (ptr, ...) @scanf(ptr noundef @.str.5, ptr noundef %5, ptr noundef %85, ptr noundef %6)
%87 = load i32, ptr %5, align 4
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds [24 x [2 x i32]], ptr %9, i64 0, i64 %88
%90 = getelementptr inbounds [2 x i32], ptr %89, i64 0, i64 0
%91 = load i32, ptr %90, align 8
%92 = load i32, ptr %6, align 4
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds [24 x [2 x i32]], ptr %9, i64 0, i64 %93
%95 = getelementptr inbounds [2 x i32], ptr %94, i64 0, i64 0
%96 = load i32, ptr %95, align 8
%97 = icmp ne i32 %91, %96
br i1 %97, label %98, label %179
98: ; preds = %84
%99 = getelementptr inbounds [5 x i8], ptr %10, i64 0, i64 0
%100 = load i8, ptr %99, align 1
%101 = sext i8 %100 to i32
%102 = icmp eq i32 %101, 109
br i1 %102, label %103, label %125
103: ; preds = %98
%104 = getelementptr inbounds [5 x i8], ptr %11, i64 0, i64 1
%105 = load i8, ptr %104, align 1
%106 = sext i8 %105 to i32
%107 = icmp eq i32 %106, 110
br i1 %107, label %108, label %125
108: ; preds = %103
%109 = load i32, ptr %5, align 4
%110 = getelementptr inbounds [24 x [24 x i32]], ptr %7, i64 0, i64 0
%111 = getelementptr inbounds [24 x i32], ptr %8, i64 0, i64 0
%112 = getelementptr inbounds [24 x [2 x i32]], ptr %9, i64 0, i64 0
%113 = call i32 @move(i32 noundef %109, ptr noundef %110, ptr noundef %111, ptr noundef %112)
%114 = load i32, ptr %6, align 4
%115 = getelementptr inbounds [24 x [24 x i32]], ptr %7, i64 0, i64 0
%116 = getelementptr inbounds [24 x i32], ptr %8, i64 0, i64 0
%117 = getelementptr inbounds [24 x [2 x i32]], ptr %9, i64 0, i64 0
%118 = call i32 @move(i32 noundef %114, ptr noundef %115, ptr noundef %116, ptr noundef %117)
%119 = load i32, ptr %5, align 4
%120 = load i32, ptr %6, align 4
%121 = getelementptr inbounds [24 x [24 x i32]], ptr %7, i64 0, i64 0
%122 = getelementptr inbounds [24 x i32], ptr %8, i64 0, i64 0
%123 = getelementptr inbounds [24 x [2 x i32]], ptr %9, i64 0, i64 0
%124 = call i32 @on(i32 noundef %119, i32 noundef %120, ptr noundef %121, ptr noundef %122, ptr noundef %123)
br label %178
125: ; preds = %103, %98
%126 = getelementptr inbounds [5 x i8], ptr %10, i64 0, i64 0
%127 = load i8, ptr %126, align 1
%128 = sext i8 %127 to i32
%129 = icmp eq i32 %128, 109
br i1 %129, label %130, label %147
130: ; preds = %125
%131 = getelementptr inbounds [5 x i8], ptr %11, i64 0, i64 1
%132 = load i8, ptr %131, align 1
%133 = sext i8 %132 to i32
%134 = icmp eq i32 %133, 118
br i1 %134, label %135, label %147
135: ; preds = %130
%136 = load i32, ptr %5, align 4
%137 = getelementptr inbounds [24 x [24 x i32]], ptr %7, i64 0, i64 0
%138 = getelementptr inbounds [24 x i32], ptr %8, i64 0, i64 0
%139 = getelementptr inbounds [24 x [2 x i32]], ptr %9, i64 0, i64 0
%140 = call i32 @move(i32 noundef %136, ptr noundef %137, ptr noundef %138, ptr noundef %139)
%141 = load i32, ptr %5, align 4
%142 = load i32, ptr %6, align 4
%143 = getelementptr inbounds [24 x [24 x i32]], ptr %7, i64 0, i64 0
%144 = getelementptr inbounds [24 x i32], ptr %8, i64 0, i64 0
%145 = getelementptr inbounds [24 x [2 x i32]], ptr %9, i64 0, i64 0
%146 = call i32 @on(i32 noundef %141, i32 noundef %142, ptr noundef %143, ptr noundef %144, ptr noundef %145)
br label %177
147: ; preds = %130, %125
%148 = getelementptr inbounds [5 x i8], ptr %10, i64 0, i64 0
%149 = load i8, ptr %148, align 1
%150 = sext i8 %149 to i32
%151 = icmp eq i32 %150, 112
br i1 %151, label %152, label %169
152: ; preds = %147
%153 = getelementptr inbounds [5 x i8], ptr %11, i64 0, i64 1
%154 = load i8, ptr %153, align 1
%155 = sext i8 %154 to i32
%156 = icmp eq i32 %155, 110
br i1 %156, label %157, label %169
157: ; preds = %152
%158 = load i32, ptr %6, align 4
%159 = getelementptr inbounds [24 x [24 x i32]], ptr %7, i64 0, i64 0
%160 = getelementptr inbounds [24 x i32], ptr %8, i64 0, i64 0
%161 = getelementptr inbounds [24 x [2 x i32]], ptr %9, i64 0, i64 0
%162 = call i32 @move(i32 noundef %158, ptr noundef %159, ptr noundef %160, ptr noundef %161)
%163 = load i32, ptr %5, align 4
%164 = load i32, ptr %6, align 4
%165 = getelementptr inbounds [24 x [24 x i32]], ptr %7, i64 0, i64 0
%166 = getelementptr inbounds [24 x i32], ptr %8, i64 0, i64 0
%167 = getelementptr inbounds [24 x [2 x i32]], ptr %9, i64 0, i64 0
%168 = call i32 @on(i32 noundef %163, i32 noundef %164, ptr noundef %165, ptr noundef %166, ptr noundef %167)
br label %176
169: ; preds = %152, %147
%170 = load i32, ptr %5, align 4
%171 = load i32, ptr %6, align 4
%172 = getelementptr inbounds [24 x [24 x i32]], ptr %7, i64 0, i64 0
%173 = getelementptr inbounds [24 x i32], ptr %8, i64 0, i64 0
%174 = getelementptr inbounds [24 x [2 x i32]], ptr %9, i64 0, i64 0
%175 = call i32 @on(i32 noundef %170, i32 noundef %171, ptr noundef %172, ptr noundef %173, ptr noundef %174)
br label %176
176: ; preds = %169, %157
br label %177
177: ; preds = %176, %135
br label %178
178: ; preds = %177, %108
br label %179
179: ; preds = %178, %84
br label %180
180: ; preds = %179
br label %42, !llvm.loop !10
181: ; preds = %83, %42
br label %12, !llvm.loop !11
182: ; preds = %12
ret i32 0
}
declare i32 @scanf(ptr noundef, ...) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @move(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @on(i32 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpeyhtgadw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%d:\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c" %d\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.5 = private unnamed_addr constant [11 x i8] c" %d %s %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca [24 x [24 x i32]], align 16
%8 = alloca [24 x i32], align 16
%9 = alloca [24 x [2 x i32]], align 16
%10 = alloca [5 x i8], align 1
%11 = alloca [5 x i8], align 1
store i32 0, ptr %1, align 4
%12 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2)
%13 = icmp eq i32 %12, 1
br i1 %13, label %.lr.ph10, label %193
.lr.ph10: ; preds = %0
br label %14
14: ; preds = %.lr.ph10, %190
store i32 0, ptr %3, align 4
%15 = load i32, ptr %3, align 4
%16 = load i32, ptr %2, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %.lr.ph, label %42
.lr.ph: ; preds = %14
br label %18
18: ; preds = %.lr.ph, %36
%19 = load i32, ptr %3, align 4
%20 = load i32, ptr %3, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [24 x [24 x i32]], ptr %7, i64 0, i64 %21
%23 = getelementptr inbounds [24 x i32], ptr %22, i64 0, i64 0
store i32 %19, ptr %23, align 16
%24 = load i32, ptr %3, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [24 x i32], ptr %8, i64 0, i64 %25
store i32 0, ptr %26, align 4
%27 = load i32, ptr %3, align 4
%28 = load i32, ptr %3, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [24 x [2 x i32]], ptr %9, i64 0, i64 %29
%31 = getelementptr inbounds [2 x i32], ptr %30, i64 0, i64 0
store i32 %27, ptr %31, align 8
%32 = load i32, ptr %3, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [24 x [2 x i32]], ptr %9, i64 0, i64 %33
%35 = getelementptr inbounds [2 x i32], ptr %34, i64 0, i64 1
store i32 0, ptr %35, align 4
br label %36
36: ; preds = %18
%37 = load i32, ptr %3, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %3, align 4
%39 = load i32, ptr %3, align 4
%40 = load i32, ptr %2, align 4
%41 = icmp slt i32 %39, %40
br i1 %41, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %36
br label %42
42: ; preds = %._crit_edge, %14
%43 = getelementptr inbounds [5 x i8], ptr %10, i64 0, i64 0
%44 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %43)
%45 = icmp ne i32 %44, 0
br i1 %45, label %.lr.ph2, label %.loopexit
.lr.ph2: ; preds = %42
br label %46
46: ; preds = %.lr.ph2, %187
%47 = getelementptr inbounds [5 x i8], ptr %10, i64 0, i64 0
%48 = load i8, ptr %47, align 1
%49 = sext i8 %48 to i32
%50 = icmp eq i32 %49, 113
br i1 %50, label %51, label %91
51: ; preds = %46
store i32 0, ptr %3, align 4
%52 = load i32, ptr %3, align 4
%53 = load i32, ptr %2, align 4
%54 = icmp slt i32 %52, %53
br i1 %54, label %.lr.ph7, label %90
.lr.ph7: ; preds = %51
br label %55
55: ; preds = %.lr.ph7, %84
%56 = load i32, ptr %3, align 4
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %56)
store i32 0, ptr %4, align 4
%58 = load i32, ptr %4, align 4
%59 = load i32, ptr %3, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [24 x i32], ptr %8, i64 0, i64 %60
%62 = load i32, ptr %61, align 4
%63 = icmp sle i32 %58, %62
br i1 %63, label %.lr.ph4, label %82
.lr.ph4: ; preds = %55
br label %64
64: ; preds = %.lr.ph4, %73
%65 = load i32, ptr %3, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [24 x [24 x i32]], ptr %7, i64 0, i64 %66
%68 = load i32, ptr %4, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds [24 x i32], ptr %67, i64 0, i64 %69
%71 = load i32, ptr %70, align 4
%72 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %71)
br label %73
73: ; preds = %64
%74 = load i32, ptr %4, align 4
%75 = add nsw i32 %74, 1
store i32 %75, ptr %4, align 4
%76 = load i32, ptr %4, align 4
%77 = load i32, ptr %3, align 4
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds [24 x i32], ptr %8, i64 0, i64 %78
%80 = load i32, ptr %79, align 4
%81 = icmp sle i32 %76, %80
br i1 %81, label %64, label %._crit_edge5, !llvm.loop !8
._crit_edge5: ; preds = %73
br label %82
82: ; preds = %._crit_edge5, %55
%83 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %84
84: ; preds = %82
%85 = load i32, ptr %3, align 4
%86 = add nsw i32 %85, 1
store i32 %86, ptr %3, align 4
%87 = load i32, ptr %3, align 4
%88 = load i32, ptr %2, align 4
%89 = icmp slt i32 %87, %88
br i1 %89, label %55, label %._crit_edge8, !llvm.loop !9
._crit_edge8: ; preds = %84
br label %90
90: ; preds = %._crit_edge8, %51
br label %190
91: ; preds = %46
%92 = getelementptr inbounds [5 x i8], ptr %11, i64 0, i64 0
%93 = call i32 (ptr, ...) @scanf(ptr noundef @.str.5, ptr noundef %5, ptr noundef %92, ptr noundef %6)
%94 = load i32, ptr %5, align 4
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds [24 x [2 x i32]], ptr %9, i64 0, i64 %95
%97 = getelementptr inbounds [2 x i32], ptr %96, i64 0, i64 0
%98 = load i32, ptr %97, align 8
%99 = load i32, ptr %6, align 4
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds [24 x [2 x i32]], ptr %9, i64 0, i64 %100
%102 = getelementptr inbounds [2 x i32], ptr %101, i64 0, i64 0
%103 = load i32, ptr %102, align 8
%104 = icmp ne i32 %98, %103
br i1 %104, label %105, label %186
105: ; preds = %91
%106 = getelementptr inbounds [5 x i8], ptr %10, i64 0, i64 0
%107 = load i8, ptr %106, align 1
%108 = sext i8 %107 to i32
%109 = icmp eq i32 %108, 109
br i1 %109, label %110, label %132
110: ; preds = %105
%111 = getelementptr inbounds [5 x i8], ptr %11, i64 0, i64 1
%112 = load i8, ptr %111, align 1
%113 = sext i8 %112 to i32
%114 = icmp eq i32 %113, 110
br i1 %114, label %115, label %132
115: ; preds = %110
%116 = load i32, ptr %5, align 4
%117 = getelementptr inbounds [24 x [24 x i32]], ptr %7, i64 0, i64 0
%118 = getelementptr inbounds [24 x i32], ptr %8, i64 0, i64 0
%119 = getelementptr inbounds [24 x [2 x i32]], ptr %9, i64 0, i64 0
%120 = call i32 @move(i32 noundef %116, ptr noundef %117, ptr noundef %118, ptr noundef %119)
%121 = load i32, ptr %6, align 4
%122 = getelementptr inbounds [24 x [24 x i32]], ptr %7, i64 0, i64 0
%123 = getelementptr inbounds [24 x i32], ptr %8, i64 0, i64 0
%124 = getelementptr inbounds [24 x [2 x i32]], ptr %9, i64 0, i64 0
%125 = call i32 @move(i32 noundef %121, ptr noundef %122, ptr noundef %123, ptr noundef %124)
%126 = load i32, ptr %5, align 4
%127 = load i32, ptr %6, align 4
%128 = getelementptr inbounds [24 x [24 x i32]], ptr %7, i64 0, i64 0
%129 = getelementptr inbounds [24 x i32], ptr %8, i64 0, i64 0
%130 = getelementptr inbounds [24 x [2 x i32]], ptr %9, i64 0, i64 0
%131 = call i32 @on(i32 noundef %126, i32 noundef %127, ptr noundef %128, ptr noundef %129, ptr noundef %130)
br label %185
132: ; preds = %110, %105
%133 = getelementptr inbounds [5 x i8], ptr %10, i64 0, i64 0
%134 = load i8, ptr %133, align 1
%135 = sext i8 %134 to i32
%136 = icmp eq i32 %135, 109
br i1 %136, label %137, label %154
137: ; preds = %132
%138 = getelementptr inbounds [5 x i8], ptr %11, i64 0, i64 1
%139 = load i8, ptr %138, align 1
%140 = sext i8 %139 to i32
%141 = icmp eq i32 %140, 118
br i1 %141, label %142, label %154
142: ; preds = %137
%143 = load i32, ptr %5, align 4
%144 = getelementptr inbounds [24 x [24 x i32]], ptr %7, i64 0, i64 0
%145 = getelementptr inbounds [24 x i32], ptr %8, i64 0, i64 0
%146 = getelementptr inbounds [24 x [2 x i32]], ptr %9, i64 0, i64 0
%147 = call i32 @move(i32 noundef %143, ptr noundef %144, ptr noundef %145, ptr noundef %146)
%148 = load i32, ptr %5, align 4
%149 = load i32, ptr %6, align 4
%150 = getelementptr inbounds [24 x [24 x i32]], ptr %7, i64 0, i64 0
%151 = getelementptr inbounds [24 x i32], ptr %8, i64 0, i64 0
%152 = getelementptr inbounds [24 x [2 x i32]], ptr %9, i64 0, i64 0
%153 = call i32 @on(i32 noundef %148, i32 noundef %149, ptr noundef %150, ptr noundef %151, ptr noundef %152)
br label %184
154: ; preds = %137, %132
%155 = getelementptr inbounds [5 x i8], ptr %10, i64 0, i64 0
%156 = load i8, ptr %155, align 1
%157 = sext i8 %156 to i32
%158 = icmp eq i32 %157, 112
br i1 %158, label %159, label %176
159: ; preds = %154
%160 = getelementptr inbounds [5 x i8], ptr %11, i64 0, i64 1
%161 = load i8, ptr %160, align 1
%162 = sext i8 %161 to i32
%163 = icmp eq i32 %162, 110
br i1 %163, label %164, label %176
164: ; preds = %159
%165 = load i32, ptr %6, align 4
%166 = getelementptr inbounds [24 x [24 x i32]], ptr %7, i64 0, i64 0
%167 = getelementptr inbounds [24 x i32], ptr %8, i64 0, i64 0
%168 = getelementptr inbounds [24 x [2 x i32]], ptr %9, i64 0, i64 0
%169 = call i32 @move(i32 noundef %165, ptr noundef %166, ptr noundef %167, ptr noundef %168)
%170 = load i32, ptr %5, align 4
%171 = load i32, ptr %6, align 4
%172 = getelementptr inbounds [24 x [24 x i32]], ptr %7, i64 0, i64 0
%173 = getelementptr inbounds [24 x i32], ptr %8, i64 0, i64 0
%174 = getelementptr inbounds [24 x [2 x i32]], ptr %9, i64 0, i64 0
%175 = call i32 @on(i32 noundef %170, i32 noundef %171, ptr noundef %172, ptr noundef %173, ptr noundef %174)
br label %183
176: ; preds = %159, %154
%177 = load i32, ptr %5, align 4
%178 = load i32, ptr %6, align 4
%179 = getelementptr inbounds [24 x [24 x i32]], ptr %7, i64 0, i64 0
%180 = getelementptr inbounds [24 x i32], ptr %8, i64 0, i64 0
%181 = getelementptr inbounds [24 x [2 x i32]], ptr %9, i64 0, i64 0
%182 = call i32 @on(i32 noundef %177, i32 noundef %178, ptr noundef %179, ptr noundef %180, ptr noundef %181)
br label %183
183: ; preds = %176, %164
br label %184
184: ; preds = %183, %142
br label %185
185: ; preds = %184, %115
br label %186
186: ; preds = %185, %91
br label %187
187: ; preds = %186
%188 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %43)
%189 = icmp ne i32 %188, 0
br i1 %189, label %46, label %..loopexit_crit_edge, !llvm.loop !10
..loopexit_crit_edge: ; preds = %187
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %42
br label %190
190: ; preds = %.loopexit, %90
%191 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2)
%192 = icmp eq i32 %191, 1
br i1 %192, label %14, label %._crit_edge11, !llvm.loop !11
._crit_edge11: ; preds = %190
br label %193
193: ; preds = %._crit_edge11, %0
ret i32 0
}
declare i32 @scanf(ptr noundef, ...) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @move(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @on(i32 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
|
; ModuleID = '/tmp/tmpvu8fpi_8.c'
source_filename = "/tmp/tmpvu8fpi_8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"%[^\0A]s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [1000 x i8], align 16
store i32 0, ptr %1, align 4
%3 = getelementptr inbounds [1000 x i8], ptr %2, i64 0, i64 0
%4 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
%5 = getelementptr inbounds [1000 x i8], ptr %2, i64 0, i64 0
%6 = call i32 @create_letter_distribution_diagram(ptr noundef %5)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @create_letter_distribution_diagram(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvu8fpi_8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"%[^\0A]s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [1000 x i8], align 16
store i32 0, ptr %1, align 4
%3 = getelementptr inbounds [1000 x i8], ptr %2, i64 0, i64 0
%4 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
%5 = getelementptr inbounds [1000 x i8], ptr %2, i64 0, i64 0
%6 = call i32 @create_letter_distribution_diagram(ptr noundef %5)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @create_letter_distribution_diagram(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpt7_fcycl.c'
source_filename = "/tmp/tmpt7_fcycl.c"
target datalayout = "e-m:e-p270: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/tmpt7_fcycl.c"
target datalayout = "e-m:e-p270: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/tmpaci11vny.c'
source_filename = "/tmp/tmpaci11vny.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [9 x i8] c"%d e %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
%6 = load i32, ptr %2, align 4
%7 = load i32, ptr %3, align 4
%8 = call i32 @printf(ptr noundef @.str.1, i32 noundef %6, i32 noundef %7)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(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/tmpaci11vny.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [9 x i8] c"%d e %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
%6 = load i32, ptr %2, align 4
%7 = load i32, ptr %3, align 4
%8 = call i32 @printf(ptr noundef @.str.1, i32 noundef %6, i32 noundef %7)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(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/tmp9t_v31ty.c'
source_filename = "/tmp/tmp9t_v31ty.c"
target datalayout = "e-m:e-p270: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.tms = type { i64, i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @clock() #0 {
%1 = alloca i64, align 8
%2 = alloca %struct.tms, align 8
%3 = call i64 @times(ptr noundef %2)
%4 = icmp eq i64 %3, -1
br i1 %4, label %5, label %6
5: ; preds = %0
store i64 -1, ptr %1, align 8
br label %12
6: ; preds = %0
%7 = getelementptr inbounds %struct.tms, ptr %2, i32 0, i32 0
%8 = load i64, ptr %7, align 8
%9 = getelementptr inbounds %struct.tms, ptr %2, i32 0, i32 1
%10 = load i64, ptr %9, align 8
%11 = add nsw i64 %8, %10
store i64 %11, ptr %1, align 8
br label %12
12: ; preds = %6, %5
%13 = load i64, ptr %1, align 8
ret i64 %13
}
declare i64 @times(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9t_v31ty.c"
target datalayout = "e-m:e-p270: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.tms = type { i64, i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @clock() #0 {
%1 = alloca i64, align 8
%2 = alloca %struct.tms, align 8
%3 = call i64 @times(ptr noundef %2)
%4 = icmp eq i64 %3, -1
br i1 %4, label %5, label %6
5: ; preds = %0
store i64 -1, ptr %1, align 8
br label %12
6: ; preds = %0
%7 = getelementptr inbounds %struct.tms, ptr %2, i32 0, i32 0
%8 = load i64, ptr %7, align 8
%9 = getelementptr inbounds %struct.tms, ptr %2, i32 0, i32 1
%10 = load i64, ptr %9, align 8
%11 = add nsw i64 %8, %10
store i64 %11, ptr %1, align 8
br label %12
12: ; preds = %6, %5
%13 = load i64, ptr %1, align 8
ret i64 %13
}
declare i64 @times(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp59g41adh.c'
source_filename = "/tmp/tmp59g41adh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@bbb_setPwmPolarity.ret = internal global i32 -1, align 4
@.str = private unnamed_addr constant [30 x i8] c"%s/pwm_test_P%d_%d.*/polarity\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c"/sys/devices/ocp.*\00", align 1
@O_WRONLY = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @bbb_setPwmPolarity(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%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 [128 x i8], align 16
%10 = alloca [128 x i8], align 16
%11 = alloca ptr, align 8
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 -1, ptr %8, align 4
store ptr null, ptr %11, align 8
%12 = load i32, ptr %5, align 4
%13 = icmp sgt i32 %12, 0
br i1 %13, label %14, label %50
14: ; preds = %3
%15 = load i32, ptr %6, align 4
%16 = icmp sgt i32 %15, 0
br i1 %16, label %17, label %50
17: ; preds = %14
%18 = getelementptr inbounds [128 x i8], ptr %9, i64 0, i64 0
%19 = call i32 @memset(ptr noundef %18, i32 noundef 0, i32 noundef 128)
%20 = getelementptr inbounds [128 x i8], ptr %9, i64 0, i64 0
%21 = load i32, ptr %5, align 4
%22 = load i32, ptr %6, align 4
%23 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef %20, i32 noundef 128, ptr noundef @.str, ptr noundef @.str.1, i32 noundef %21, i32 noundef %22)
%24 = getelementptr inbounds [128 x i8], ptr %9, i64 0, i64 0
%25 = call ptr @bbb_wildCardPath(ptr noundef %24)
store ptr %25, ptr %11, align 8
%26 = icmp ne ptr %25, null
br i1 %26, label %27, label %49
27: ; preds = %17
%28 = load ptr, ptr %11, align 8
%29 = load i32, ptr @O_WRONLY, align 4
%30 = call i32 @open(ptr noundef %28, i32 noundef %29)
store i32 %30, ptr %8, align 4
%31 = icmp slt i32 %30, 0
br i1 %31, label %32, label %33
32: ; preds = %27
store i32 -1, ptr %4, align 4
br label %52
33: ; preds = %27
%34 = getelementptr inbounds [128 x i8], ptr %10, i64 0, i64 0
%35 = call i32 @memset(ptr noundef %34, i32 noundef 0, i32 noundef 128)
%36 = getelementptr inbounds [128 x i8], ptr %10, i64 0, i64 0
%37 = load i32, ptr %7, align 4
%38 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef %36, i32 noundef 128, ptr noundef @.str.2, i32 noundef %37)
store i32 %38, ptr @bbb_setPwmPolarity.ret, align 4
%39 = load i32, ptr %8, align 4
%40 = getelementptr inbounds [128 x i8], ptr %10, i64 0, i64 0
%41 = load i32, ptr @bbb_setPwmPolarity.ret, align 4
%42 = call i64 @write(i32 noundef %39, ptr noundef %40, i32 noundef %41)
%43 = icmp slt i64 %42, 0
br i1 %43, label %44, label %45
44: ; preds = %33
store i32 -1, ptr @bbb_setPwmPolarity.ret, align 4
br label %46
45: ; preds = %33
store i32 0, ptr @bbb_setPwmPolarity.ret, align 4
br label %46
46: ; preds = %45, %44
%47 = load i32, ptr %8, align 4
%48 = call i32 @close(i32 noundef %47)
br label %49
49: ; preds = %46, %17
br label %50
50: ; preds = %49, %14, %3
%51 = load i32, ptr @bbb_setPwmPolarity.ret, align 4
store i32 %51, ptr %4, align 4
br label %52
52: ; preds = %50, %32
%53 = load i32, ptr %4, align 4
ret i32 %53
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ...) #1
declare ptr @bbb_wildCardPath(ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i64 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp59g41adh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@bbb_setPwmPolarity.ret = internal global i32 -1, align 4
@.str = private unnamed_addr constant [30 x i8] c"%s/pwm_test_P%d_%d.*/polarity\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c"/sys/devices/ocp.*\00", align 1
@O_WRONLY = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @bbb_setPwmPolarity(i32 noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%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 [128 x i8], align 16
%10 = alloca [128 x i8], align 16
%11 = alloca ptr, align 8
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 -1, ptr %8, align 4
store ptr null, ptr %11, align 8
%12 = load i32, ptr %5, align 4
%13 = icmp sgt i32 %12, 0
br i1 %13, label %14, label %50
14: ; preds = %3
%15 = load i32, ptr %6, align 4
%16 = icmp sgt i32 %15, 0
br i1 %16, label %17, label %50
17: ; preds = %14
%18 = getelementptr inbounds [128 x i8], ptr %9, i64 0, i64 0
%19 = call i32 @memset(ptr noundef %18, i32 noundef 0, i32 noundef 128)
%20 = getelementptr inbounds [128 x i8], ptr %9, i64 0, i64 0
%21 = load i32, ptr %5, align 4
%22 = load i32, ptr %6, align 4
%23 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef %20, i32 noundef 128, ptr noundef @.str, ptr noundef @.str.1, i32 noundef %21, i32 noundef %22)
%24 = getelementptr inbounds [128 x i8], ptr %9, i64 0, i64 0
%25 = call ptr @bbb_wildCardPath(ptr noundef %24)
store ptr %25, ptr %11, align 8
%26 = icmp ne ptr %25, null
br i1 %26, label %27, label %49
27: ; preds = %17
%28 = load ptr, ptr %11, align 8
%29 = load i32, ptr @O_WRONLY, align 4
%30 = call i32 @open(ptr noundef %28, i32 noundef %29)
store i32 %30, ptr %8, align 4
%31 = icmp slt i32 %30, 0
br i1 %31, label %32, label %33
32: ; preds = %27
store i32 -1, ptr %4, align 4
br label %52
33: ; preds = %27
%34 = getelementptr inbounds [128 x i8], ptr %10, i64 0, i64 0
%35 = call i32 @memset(ptr noundef %34, i32 noundef 0, i32 noundef 128)
%36 = getelementptr inbounds [128 x i8], ptr %10, i64 0, i64 0
%37 = load i32, ptr %7, align 4
%38 = call i32 (ptr, i32, ptr, ...) @snprintf(ptr noundef %36, i32 noundef 128, ptr noundef @.str.2, i32 noundef %37)
store i32 %38, ptr @bbb_setPwmPolarity.ret, align 4
%39 = load i32, ptr %8, align 4
%40 = getelementptr inbounds [128 x i8], ptr %10, i64 0, i64 0
%41 = load i32, ptr @bbb_setPwmPolarity.ret, align 4
%42 = call i64 @write(i32 noundef %39, ptr noundef %40, i32 noundef %41)
%43 = icmp slt i64 %42, 0
br i1 %43, label %44, label %45
44: ; preds = %33
store i32 -1, ptr @bbb_setPwmPolarity.ret, align 4
br label %46
45: ; preds = %33
store i32 0, ptr @bbb_setPwmPolarity.ret, align 4
br label %46
46: ; preds = %45, %44
%47 = load i32, ptr %8, align 4
%48 = call i32 @close(i32 noundef %47)
br label %49
49: ; preds = %46, %17
br label %50
50: ; preds = %49, %14, %3
%51 = load i32, ptr @bbb_setPwmPolarity.ret, align 4
store i32 %51, ptr %4, align 4
br label %52
52: ; preds = %50, %32
%53 = load i32, ptr %4, align 4
ret i32 %53
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ...) #1
declare ptr @bbb_wildCardPath(ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i64 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpf6r0maz9.c'
source_filename = "/tmp/tmpf6r0maz9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @get_indx(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = add i32 %5, 1
%7 = zext i32 %6 to i64
%8 = mul i64 4, %7
%9 = trunc i64 %8 to i32
%10 = call i64 @space(i32 noundef %9)
%11 = inttoptr i64 %10 to ptr
store ptr %11, ptr %4, align 8
store i32 1, ptr %3, align 4
br label %12
12: ; preds = %26, %1
%13 = load i32, ptr %3, align 4
%14 = load i32, ptr %2, align 4
%15 = icmp ule i32 %13, %14
br i1 %15, label %16, label %29
16: ; preds = %12
%17 = load i32, ptr %3, align 4
%18 = load i32, ptr %3, align 4
%19 = sub i32 %18, 1
%20 = mul i32 %17, %19
%21 = lshr i32 %20, 1
%22 = load ptr, ptr %4, align 8
%23 = load i32, ptr %3, align 4
%24 = zext i32 %23 to i64
%25 = getelementptr inbounds i32, ptr %22, i64 %24
store i32 %21, ptr %25, align 4
br label %26
26: ; preds = %16
%27 = load i32, ptr %3, align 4
%28 = add i32 %27, 1
store i32 %28, ptr %3, align 4
br label %12, !llvm.loop !6
29: ; preds = %12
%30 = load ptr, ptr %4, align 8
ret ptr %30
}
declare i64 @space(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/tmpf6r0maz9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @get_indx(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = add i32 %5, 1
%7 = zext i32 %6 to i64
%8 = mul i64 4, %7
%9 = trunc i64 %8 to i32
%10 = call i64 @space(i32 noundef %9)
%11 = inttoptr i64 %10 to ptr
store ptr %11, ptr %4, align 8
store i32 1, ptr %3, align 4
%12 = load i32, ptr %3, align 4
%13 = load i32, ptr %2, align 4
%14 = icmp ule i32 %12, %13
br i1 %14, label %.lr.ph, label %31
.lr.ph: ; preds = %1
br label %15
15: ; preds = %.lr.ph, %25
%16 = load i32, ptr %3, align 4
%17 = load i32, ptr %3, align 4
%18 = sub i32 %17, 1
%19 = mul i32 %16, %18
%20 = lshr i32 %19, 1
%21 = load ptr, ptr %4, align 8
%22 = load i32, ptr %3, align 4
%23 = zext i32 %22 to i64
%24 = getelementptr inbounds i32, ptr %21, i64 %23
store i32 %20, ptr %24, align 4
br label %25
25: ; preds = %15
%26 = load i32, ptr %3, align 4
%27 = add i32 %26, 1
store i32 %27, ptr %3, align 4
%28 = load i32, ptr %3, align 4
%29 = load i32, ptr %2, align 4
%30 = icmp ule i32 %28, %29
br i1 %30, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %25
br label %31
31: ; preds = %._crit_edge, %1
%32 = load ptr, ptr %4, align 8
ret ptr %32
}
declare i64 @space(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/tmpq87qwrjl.c'
source_filename = "/tmp/tmpq87qwrjl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"\09 \09 \09 CALCOLO OCCORRENZE \0A\00", align 1
@.str.1 = private unnamed_addr constant [34 x i8] c"Parti del programma da svolgere.\0A\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"1-Inserisci il tuo nome \0A\00", align 1
@.str.3 = private unnamed_addr constant [30 x i8] c"2-Calcola lunghezza del nome\0A\00", align 1
@.str.4 = private unnamed_addr constant [22 x i8] c"3-Calcolo occorrenze\0A\00", align 1
@.str.5 = private unnamed_addr constant [9 x i8] c"0-EXIT \0A\00", align 1
@.str.6 = private unnamed_addr constant [42 x i8] c"Scegli la parte di programma da eseguire\09\00", align 1
@.str.7 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.8 = private unnamed_addr constant [49 x i8] c"\0AInserisci il tuo nome (Massimo 100 caratteri): \00", align 1
@.str.9 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.10 = private unnamed_addr constant [22 x i8] c"\0A Nome Inserito: %s \0A\00", align 1
@.str.11 = private unnamed_addr constant [36 x i8] c"Il tuo nome e' lungo %d caratteri \0A\00", align 1
@.str.12 = private unnamed_addr constant [41 x i8] c"Il carattere %c viene ripetuto %d volte\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [100 x i8], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %8
8: ; preds = %112, %0
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%16 = call i32 (ptr, ...) @scanf(ptr noundef @.str.7, ptr noundef %3)
%17 = load i32, ptr %3, align 4
switch i32 %17, label %111 [
i32 1, label %18
i32 2, label %24
i32 3, label %38
]
18: ; preds = %8
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%20 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%21 = call i32 (ptr, ...) @scanf(ptr noundef @.str.9, ptr noundef %20)
%22 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, ptr noundef %22)
br label %111
24: ; preds = %8
store i32 0, ptr %4, align 4
br label %25
25: ; preds = %32, %24
%26 = load i32, ptr %4, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %27
%29 = load i8, ptr %28, align 1
%30 = sext i8 %29 to i32
%31 = icmp ne i32 %30, 0
br i1 %31, label %32, label %35
32: ; preds = %25
%33 = load i32, ptr %4, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %4, align 4
br label %25, !llvm.loop !6
35: ; preds = %25
%36 = load i32, ptr %4, align 4
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef %36)
br label %111
38: ; preds = %8
store i32 0, ptr %4, align 4
br label %39
39: ; preds = %46, %38
%40 = load i32, ptr %4, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %41
%43 = load i8, ptr %42, align 1
%44 = sext i8 %43 to i32
%45 = icmp ne i32 %44, 0
br i1 %45, label %46, label %49
46: ; preds = %39
%47 = load i32, ptr %4, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %4, align 4
br label %39, !llvm.loop !8
49: ; preds = %39
store i32 0, ptr %5, align 4
br label %50
50: ; preds = %107, %49
%51 = load i32, ptr %5, align 4
%52 = load i32, ptr %4, align 4
%53 = icmp slt i32 %51, %52
br i1 %53, label %54, label %110
54: ; preds = %50
store i32 1, ptr %6, align 4
%55 = load i32, ptr %5, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %56
%58 = load i8, ptr %57, align 1
%59 = sext i8 %58 to i32
%60 = icmp ne i32 %59, 0
br i1 %60, label %61, label %91
61: ; preds = %54
%62 = load i32, ptr %5, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %7, align 4
br label %64
64: ; preds = %87, %61
%65 = load i32, ptr %7, align 4
%66 = load i32, ptr %4, align 4
%67 = icmp slt i32 %65, %66
br i1 %67, label %68, label %90
68: ; preds = %64
%69 = load i32, ptr %5, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %70
%72 = load i8, ptr %71, align 1
%73 = sext i8 %72 to i32
%74 = load i32, ptr %7, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %75
%77 = load i8, ptr %76, align 1
%78 = sext i8 %77 to i32
%79 = icmp eq i32 %73, %78
br i1 %79, label %80, label %86
80: ; preds = %68
%81 = load i32, ptr %6, align 4
%82 = add nsw i32 %81, 1
store i32 %82, ptr %6, align 4
%83 = load i32, ptr %7, align 4
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %84
store i8 0, ptr %85, align 1
br label %86
86: ; preds = %80, %68
br label %87
87: ; preds = %86
%88 = load i32, ptr %7, align 4
%89 = add nsw i32 %88, 1
store i32 %89, ptr %7, align 4
br label %64, !llvm.loop !9
90: ; preds = %64
br label %91
91: ; preds = %90, %54
%92 = load i32, ptr %5, align 4
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %93
%95 = load i8, ptr %94, align 1
%96 = sext i8 %95 to i32
%97 = icmp ne i32 %96, 0
br i1 %97, label %98, label %106
98: ; preds = %91
%99 = load i32, ptr %5, align 4
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %100
%102 = load i8, ptr %101, align 1
%103 = sext i8 %102 to i32
%104 = load i32, ptr %6, align 4
%105 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %103, i32 noundef %104)
br label %106
106: ; preds = %98, %91
br label %107
107: ; preds = %106
%108 = load i32, ptr %5, align 4
%109 = add nsw i32 %108, 1
store i32 %109, ptr %5, align 4
br label %50, !llvm.loop !10
110: ; preds = %50
br label %111
111: ; preds = %8, %110, %35, %18
br label %112
112: ; preds = %111
%113 = load i32, ptr %3, align 4
%114 = icmp ne i32 %113, 0
br i1 %114, label %8, label %115, !llvm.loop !11
115: ; preds = %112
%116 = call i32 (...) @getchar()
%117 = call i32 (...) @getchar()
%118 = load i32, ptr %1, align 4
ret i32 %118
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpq87qwrjl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"\09 \09 \09 CALCOLO OCCORRENZE \0A\00", align 1
@.str.1 = private unnamed_addr constant [34 x i8] c"Parti del programma da svolgere.\0A\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"1-Inserisci il tuo nome \0A\00", align 1
@.str.3 = private unnamed_addr constant [30 x i8] c"2-Calcola lunghezza del nome\0A\00", align 1
@.str.4 = private unnamed_addr constant [22 x i8] c"3-Calcolo occorrenze\0A\00", align 1
@.str.5 = private unnamed_addr constant [9 x i8] c"0-EXIT \0A\00", align 1
@.str.6 = private unnamed_addr constant [42 x i8] c"Scegli la parte di programma da eseguire\09\00", align 1
@.str.7 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.8 = private unnamed_addr constant [49 x i8] c"\0AInserisci il tuo nome (Massimo 100 caratteri): \00", align 1
@.str.9 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.10 = private unnamed_addr constant [22 x i8] c"\0A Nome Inserito: %s \0A\00", align 1
@.str.11 = private unnamed_addr constant [36 x i8] c"Il tuo nome e' lungo %d caratteri \0A\00", align 1
@.str.12 = private unnamed_addr constant [41 x i8] c"Il carattere %c viene ripetuto %d volte\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [100 x i8], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %8
8: ; preds = %126, %0
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%16 = call i32 (ptr, ...) @scanf(ptr noundef @.str.7, ptr noundef %3)
%17 = load i32, ptr %3, align 4
switch i32 %17, label %125 [
i32 1, label %18
i32 2, label %24
i32 3, label %43
]
18: ; preds = %8
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%20 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%21 = call i32 (ptr, ...) @scanf(ptr noundef @.str.9, ptr noundef %20)
%22 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, ptr noundef %22)
br label %125
24: ; preds = %8
store i32 0, ptr %4, align 4
%25 = load i32, ptr %4, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %26
%28 = load i8, ptr %27, align 1
%29 = sext i8 %28 to i32
%30 = icmp ne i32 %29, 0
br i1 %30, label %.lr.ph8, label %40
.lr.ph8: ; preds = %24
br label %31
31: ; preds = %.lr.ph8, %31
%32 = load i32, ptr %4, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %4, align 4
%34 = load i32, ptr %4, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %35
%37 = load i8, ptr %36, align 1
%38 = sext i8 %37 to i32
%39 = icmp ne i32 %38, 0
br i1 %39, label %31, label %._crit_edge9, !llvm.loop !6
._crit_edge9: ; preds = %31
br label %40
40: ; preds = %._crit_edge9, %24
%41 = load i32, ptr %4, align 4
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef %41)
br label %125
43: ; preds = %8
store i32 0, ptr %4, align 4
%44 = load i32, ptr %4, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %45
%47 = load i8, ptr %46, align 1
%48 = sext i8 %47 to i32
%49 = icmp ne i32 %48, 0
br i1 %49, label %.lr.ph, label %59
.lr.ph: ; preds = %43
br label %50
50: ; preds = %.lr.ph, %50
%51 = load i32, ptr %4, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %4, align 4
%53 = load i32, ptr %4, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %54
%56 = load i8, ptr %55, align 1
%57 = sext i8 %56 to i32
%58 = icmp ne i32 %57, 0
br i1 %58, label %50, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %50
br label %59
59: ; preds = %._crit_edge, %43
store i32 0, ptr %5, align 4
%60 = load i32, ptr %5, align 4
%61 = load i32, ptr %4, align 4
%62 = icmp slt i32 %60, %61
br i1 %62, label %.lr.ph5, label %124
.lr.ph5: ; preds = %59
br label %63
63: ; preds = %.lr.ph5, %118
store i32 1, ptr %6, align 4
%64 = load i32, ptr %5, align 4
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %65
%67 = load i8, ptr %66, align 1
%68 = sext i8 %67 to i32
%69 = icmp ne i32 %68, 0
br i1 %69, label %70, label %102
70: ; preds = %63
%71 = load i32, ptr %5, align 4
%72 = add nsw i32 %71, 1
store i32 %72, ptr %7, align 4
%73 = load i32, ptr %7, align 4
%74 = load i32, ptr %4, align 4
%75 = icmp slt i32 %73, %74
br i1 %75, label %.lr.ph2, label %101
.lr.ph2: ; preds = %70
br label %76
76: ; preds = %.lr.ph2, %95
%77 = load i32, ptr %5, align 4
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %78
%80 = load i8, ptr %79, align 1
%81 = sext i8 %80 to i32
%82 = load i32, ptr %7, align 4
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %83
%85 = load i8, ptr %84, align 1
%86 = sext i8 %85 to i32
%87 = icmp eq i32 %81, %86
br i1 %87, label %88, label %94
88: ; preds = %76
%89 = load i32, ptr %6, align 4
%90 = add nsw i32 %89, 1
store i32 %90, ptr %6, align 4
%91 = load i32, ptr %7, align 4
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %92
store i8 0, ptr %93, align 1
br label %94
94: ; preds = %88, %76
br label %95
95: ; preds = %94
%96 = load i32, ptr %7, align 4
%97 = add nsw i32 %96, 1
store i32 %97, ptr %7, align 4
%98 = load i32, ptr %7, align 4
%99 = load i32, ptr %4, align 4
%100 = icmp slt i32 %98, %99
br i1 %100, label %76, label %._crit_edge3, !llvm.loop !9
._crit_edge3: ; preds = %95
br label %101
101: ; preds = %._crit_edge3, %70
br label %102
102: ; preds = %101, %63
%103 = load i32, ptr %5, align 4
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %104
%106 = load i8, ptr %105, align 1
%107 = sext i8 %106 to i32
%108 = icmp ne i32 %107, 0
br i1 %108, label %109, label %117
109: ; preds = %102
%110 = load i32, ptr %5, align 4
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %111
%113 = load i8, ptr %112, align 1
%114 = sext i8 %113 to i32
%115 = load i32, ptr %6, align 4
%116 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %114, i32 noundef %115)
br label %117
117: ; preds = %109, %102
br label %118
118: ; preds = %117
%119 = load i32, ptr %5, align 4
%120 = add nsw i32 %119, 1
store i32 %120, ptr %5, align 4
%121 = load i32, ptr %5, align 4
%122 = load i32, ptr %4, align 4
%123 = icmp slt i32 %121, %122
br i1 %123, label %63, label %._crit_edge6, !llvm.loop !10
._crit_edge6: ; preds = %118
br label %124
124: ; preds = %._crit_edge6, %59
br label %125
125: ; preds = %124, %40, %18, %8
br label %126
126: ; preds = %125
%127 = load i32, ptr %3, align 4
%128 = icmp ne i32 %127, 0
br i1 %128, label %8, label %129, !llvm.loop !11
129: ; preds = %126
%130 = call i32 (...) @getchar()
%131 = call i32 (...) @getchar()
%132 = load i32, ptr %1, align 4
ret i32 %132
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
|
; ModuleID = '/tmp/tmp6d9ovesg.c'
source_filename = "/tmp/tmp6d9ovesg.c"
target datalayout = "e-m:e-p270: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 [151 x i8] c"Usage: daemon-it [ -R chrootdir ] [ -u user ] [ -g group ] [ -o stdout ] [ -O stderr ] [ -i stdin ] [ -p pidfile ] [ -E env=val ... ] -- cmd args ...\0A\00", align 1
@.str.1 = private unnamed_addr constant [150 x i8] c" -p pidfile if specified a file will be opend for the sub-process PID - this should be a hard path - chroot will not effect this path. 1st\0A\00", align 1
@.str.2 = private unnamed_addr constant [92 x i8] c" -R chrootdir direcotry to chagne to if you are going to chroot - this happens 2nd.\0A\00", align 1
@.str.3 = private unnamed_addr constant [105 x i8] c" -u user, -g group\09Set the user/group - the names will be looked up and the UID, GID will be set. 3rd\0A\00", align 1
@.str.4 = private unnamed_addr constant [80 x i8] c" -o <fn> Point stdout at a file or '-' for passing stdout through.\0A\00", align 1
@.str.5 = private unnamed_addr constant [79 x i8] c" -i <fn> Point stdin at a file or '-' for passing stdout through.\0A\00", align 1
@.str.6 = private unnamed_addr constant [100 x i8] c" -O <fn> Point stderr at a file or '-' for passing stdout through, '&1' to dup stdout.\0A\00", align 1
@.str.7 = private unnamed_addr constant [59 x i8] c" -E name=val Set environment, not implemented yet\0A\00", align 1
@.str.8 = private unnamed_addr constant [44 x i8] c" -U Set ulimit to maximum\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
%3 = load i32, ptr @stderr, align 4
%4 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str.1)
%5 = load i32, ptr @stderr, align 4
%6 = call i32 @fprintf(i32 noundef %5, ptr noundef @.str.2)
%7 = load i32, ptr @stderr, align 4
%8 = call i32 @fprintf(i32 noundef %7, ptr noundef @.str.3)
%9 = load i32, ptr @stderr, align 4
%10 = call i32 @fprintf(i32 noundef %9, ptr noundef @.str.4)
%11 = load i32, ptr @stderr, align 4
%12 = call i32 @fprintf(i32 noundef %11, ptr noundef @.str.5)
%13 = load i32, ptr @stderr, align 4
%14 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str.6)
%15 = load i32, ptr @stderr, align 4
%16 = call i32 @fprintf(i32 noundef %15, ptr noundef @.str.7)
%17 = load i32, ptr @stderr, align 4
%18 = call i32 @fprintf(i32 noundef %17, ptr noundef @.str.8)
%19 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6d9ovesg.c"
target datalayout = "e-m:e-p270: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 [151 x i8] c"Usage: daemon-it [ -R chrootdir ] [ -u user ] [ -g group ] [ -o stdout ] [ -O stderr ] [ -i stdin ] [ -p pidfile ] [ -E env=val ... ] -- cmd args ...\0A\00", align 1
@.str.1 = private unnamed_addr constant [150 x i8] c" -p pidfile if specified a file will be opend for the sub-process PID - this should be a hard path - chroot will not effect this path. 1st\0A\00", align 1
@.str.2 = private unnamed_addr constant [92 x i8] c" -R chrootdir direcotry to chagne to if you are going to chroot - this happens 2nd.\0A\00", align 1
@.str.3 = private unnamed_addr constant [105 x i8] c" -u user, -g group\09Set the user/group - the names will be looked up and the UID, GID will be set. 3rd\0A\00", align 1
@.str.4 = private unnamed_addr constant [80 x i8] c" -o <fn> Point stdout at a file or '-' for passing stdout through.\0A\00", align 1
@.str.5 = private unnamed_addr constant [79 x i8] c" -i <fn> Point stdin at a file or '-' for passing stdout through.\0A\00", align 1
@.str.6 = private unnamed_addr constant [100 x i8] c" -O <fn> Point stderr at a file or '-' for passing stdout through, '&1' to dup stdout.\0A\00", align 1
@.str.7 = private unnamed_addr constant [59 x i8] c" -E name=val Set environment, not implemented yet\0A\00", align 1
@.str.8 = private unnamed_addr constant [44 x i8] c" -U Set ulimit to maximum\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
%3 = load i32, ptr @stderr, align 4
%4 = call i32 @fprintf(i32 noundef %3, ptr noundef @.str.1)
%5 = load i32, ptr @stderr, align 4
%6 = call i32 @fprintf(i32 noundef %5, ptr noundef @.str.2)
%7 = load i32, ptr @stderr, align 4
%8 = call i32 @fprintf(i32 noundef %7, ptr noundef @.str.3)
%9 = load i32, ptr @stderr, align 4
%10 = call i32 @fprintf(i32 noundef %9, ptr noundef @.str.4)
%11 = load i32, ptr @stderr, align 4
%12 = call i32 @fprintf(i32 noundef %11, ptr noundef @.str.5)
%13 = load i32, ptr @stderr, align 4
%14 = call i32 @fprintf(i32 noundef %13, ptr noundef @.str.6)
%15 = load i32, ptr @stderr, align 4
%16 = call i32 @fprintf(i32 noundef %15, ptr noundef @.str.7)
%17 = load i32, ptr @stderr, align 4
%18 = call i32 @fprintf(i32 noundef %17, ptr noundef @.str.8)
%19 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8453iqvo.c'
source_filename = "/tmp/tmp8453iqvo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"safe_fopen - Failed to open file.\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @safe_fopen(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = load ptr, ptr %4, align 8
%8 = call ptr @fopen(ptr noundef %6, ptr noundef %7)
store ptr %8, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = icmp eq ptr %9, null
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 = load ptr, ptr %5, align 8
ret ptr %16
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8453iqvo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"safe_fopen - Failed to open file.\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @safe_fopen(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = load ptr, ptr %4, align 8
%8 = call ptr @fopen(ptr noundef %6, ptr noundef %7)
store ptr %8, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = icmp eq ptr %9, null
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 = load ptr, ptr %5, align 8
ret ptr %16
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqg2gcpau.c'
source_filename = "/tmp/tmpqg2gcpau.c"
target datalayout = "e-m:e-p270: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/tmpqg2gcpau.c"
target datalayout = "e-m:e-p270: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/tmphen8xrii.c'
source_filename = "/tmp/tmphen8xrii.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [148 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/brianmckenna/rex2nc/refs/heads/master/src/libaat/myutil.c\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c"Ran out of memory\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @fileAllocNewExten(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%9 = load ptr, ptr %5, align 8
%10 = call ptr @strrchr(ptr noundef %9, i8 noundef signext 46)
store ptr %10, ptr %8, align 8
%11 = icmp eq ptr %10, null
br i1 %11, label %12, label %35
12: ; preds = %3
%13 = load ptr, ptr %5, align 8
%14 = call i32 @strlen(ptr noundef %13)
%15 = load ptr, ptr %6, align 8
%16 = call i32 @strlen(ptr noundef %15)
%17 = add nsw i32 %14, %16
%18 = add nsw i32 %17, 1
%19 = sext i32 %18 to i64
%20 = mul i64 %19, 1
%21 = trunc i64 %20 to i32
%22 = call i64 @malloc(i32 noundef %21)
%23 = inttoptr i64 %22 to ptr
%24 = load ptr, ptr %7, align 8
store ptr %23, ptr %24, align 8
%25 = load ptr, ptr %7, align 8
%26 = load ptr, ptr %25, align 8
%27 = icmp eq ptr %26, null
br i1 %27, label %28, label %30
28: ; preds = %12
%29 = call i32 @myWarn_Loc(i32 noundef 3, ptr noundef @.str, i32 noundef 743, ptr noundef @.str.1)
store i32 -1, ptr %4, align 4
br label %80
30: ; preds = %12
%31 = load ptr, ptr %7, align 8
%32 = load ptr, ptr %31, align 8
%33 = load ptr, ptr %5, align 8
%34 = call i32 @strcpy(ptr noundef %32, ptr noundef %33)
br label %75
35: ; preds = %3
%36 = load ptr, ptr %8, align 8
%37 = load ptr, ptr %5, align 8
%38 = ptrtoint ptr %36 to i64
%39 = ptrtoint ptr %37 to i64
%40 = sub i64 %38, %39
%41 = load ptr, ptr %6, align 8
%42 = call i32 @strlen(ptr noundef %41)
%43 = sext i32 %42 to i64
%44 = add nsw i64 %40, %43
%45 = add nsw i64 %44, 1
%46 = mul i64 %45, 1
%47 = trunc i64 %46 to i32
%48 = call i64 @malloc(i32 noundef %47)
%49 = inttoptr i64 %48 to ptr
%50 = load ptr, ptr %7, align 8
store ptr %49, ptr %50, align 8
%51 = load ptr, ptr %7, align 8
%52 = load ptr, ptr %51, align 8
%53 = icmp eq ptr %52, null
br i1 %53, label %54, label %56
54: ; preds = %35
%55 = call i32 @myWarn_Loc(i32 noundef 3, ptr noundef @.str, i32 noundef 751, ptr noundef @.str.1)
store i32 -1, ptr %4, align 4
br label %80
56: ; preds = %35
%57 = load ptr, ptr %7, align 8
%58 = load ptr, ptr %57, align 8
%59 = load ptr, ptr %5, align 8
%60 = load ptr, ptr %8, align 8
%61 = load ptr, ptr %5, align 8
%62 = ptrtoint ptr %60 to i64
%63 = ptrtoint ptr %61 to i64
%64 = sub i64 %62, %63
%65 = trunc i64 %64 to i32
%66 = call i32 @strncpy(ptr noundef %58, ptr noundef %59, i32 noundef %65)
%67 = load ptr, ptr %7, align 8
%68 = load ptr, ptr %67, align 8
%69 = load ptr, ptr %8, align 8
%70 = load ptr, ptr %5, align 8
%71 = ptrtoint ptr %69 to i64
%72 = ptrtoint ptr %70 to i64
%73 = sub i64 %71, %72
%74 = getelementptr inbounds i8, ptr %68, i64 %73
store i8 0, ptr %74, align 1
br label %75
75: ; preds = %56, %30
%76 = load ptr, ptr %7, align 8
%77 = load ptr, ptr %76, align 8
%78 = load ptr, ptr %6, align 8
%79 = call i32 @strcat(ptr noundef %77, ptr noundef %78)
store i32 0, ptr %4, align 4
br label %80
80: ; preds = %75, %54, %28
%81 = load i32, ptr %4, align 4
ret i32 %81
}
declare ptr @strrchr(ptr noundef, i8 noundef signext) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @myWarn_Loc(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphen8xrii.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [148 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/brianmckenna/rex2nc/refs/heads/master/src/libaat/myutil.c\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c"Ran out of memory\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @fileAllocNewExten(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%9 = load ptr, ptr %5, align 8
%10 = call ptr @strrchr(ptr noundef %9, i8 noundef signext 46)
store ptr %10, ptr %8, align 8
%11 = icmp eq ptr %10, null
br i1 %11, label %12, label %35
12: ; preds = %3
%13 = load ptr, ptr %5, align 8
%14 = call i32 @strlen(ptr noundef %13)
%15 = load ptr, ptr %6, align 8
%16 = call i32 @strlen(ptr noundef %15)
%17 = add nsw i32 %14, %16
%18 = add nsw i32 %17, 1
%19 = sext i32 %18 to i64
%20 = mul i64 %19, 1
%21 = trunc i64 %20 to i32
%22 = call i64 @malloc(i32 noundef %21)
%23 = inttoptr i64 %22 to ptr
%24 = load ptr, ptr %7, align 8
store ptr %23, ptr %24, align 8
%25 = load ptr, ptr %7, align 8
%26 = load ptr, ptr %25, align 8
%27 = icmp eq ptr %26, null
br i1 %27, label %28, label %30
28: ; preds = %12
%29 = call i32 @myWarn_Loc(i32 noundef 3, ptr noundef @.str, i32 noundef 743, ptr noundef @.str.1)
store i32 -1, ptr %4, align 4
br label %80
30: ; preds = %12
%31 = load ptr, ptr %7, align 8
%32 = load ptr, ptr %31, align 8
%33 = load ptr, ptr %5, align 8
%34 = call i32 @strcpy(ptr noundef %32, ptr noundef %33)
br label %75
35: ; preds = %3
%36 = load ptr, ptr %8, align 8
%37 = load ptr, ptr %5, align 8
%38 = ptrtoint ptr %36 to i64
%39 = ptrtoint ptr %37 to i64
%40 = sub i64 %38, %39
%41 = load ptr, ptr %6, align 8
%42 = call i32 @strlen(ptr noundef %41)
%43 = sext i32 %42 to i64
%44 = add nsw i64 %40, %43
%45 = add nsw i64 %44, 1
%46 = mul i64 %45, 1
%47 = trunc i64 %46 to i32
%48 = call i64 @malloc(i32 noundef %47)
%49 = inttoptr i64 %48 to ptr
%50 = load ptr, ptr %7, align 8
store ptr %49, ptr %50, align 8
%51 = load ptr, ptr %7, align 8
%52 = load ptr, ptr %51, align 8
%53 = icmp eq ptr %52, null
br i1 %53, label %54, label %56
54: ; preds = %35
%55 = call i32 @myWarn_Loc(i32 noundef 3, ptr noundef @.str, i32 noundef 751, ptr noundef @.str.1)
store i32 -1, ptr %4, align 4
br label %80
56: ; preds = %35
%57 = load ptr, ptr %7, align 8
%58 = load ptr, ptr %57, align 8
%59 = load ptr, ptr %5, align 8
%60 = load ptr, ptr %8, align 8
%61 = load ptr, ptr %5, align 8
%62 = ptrtoint ptr %60 to i64
%63 = ptrtoint ptr %61 to i64
%64 = sub i64 %62, %63
%65 = trunc i64 %64 to i32
%66 = call i32 @strncpy(ptr noundef %58, ptr noundef %59, i32 noundef %65)
%67 = load ptr, ptr %7, align 8
%68 = load ptr, ptr %67, align 8
%69 = load ptr, ptr %8, align 8
%70 = load ptr, ptr %5, align 8
%71 = ptrtoint ptr %69 to i64
%72 = ptrtoint ptr %70 to i64
%73 = sub i64 %71, %72
%74 = getelementptr inbounds i8, ptr %68, i64 %73
store i8 0, ptr %74, align 1
br label %75
75: ; preds = %56, %30
%76 = load ptr, ptr %7, align 8
%77 = load ptr, ptr %76, align 8
%78 = load ptr, ptr %6, align 8
%79 = call i32 @strcat(ptr noundef %77, ptr noundef %78)
store i32 0, ptr %4, align 4
br label %80
80: ; preds = %75, %54, %28
%81 = load i32, ptr %4, align 4
ret i32 %81
}
declare ptr @strrchr(ptr noundef, i8 noundef signext) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @myWarn_Loc(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxpgd0lgy.c'
source_filename = "/tmp/tmpxpgd0lgy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [32 x i8] c"How many gallons did you fill: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.2 = private unnamed_addr constant [31 x i8] c"How many miles did you drive: \00", align 1
@.str.3 = private unnamed_addr constant [39 x i8] c"\0AYour car goes %.1f miles per gallon.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%8 = load float, ptr %3, align 4
%9 = load float, ptr %2, align 4
%10 = fdiv float %8, %9
%11 = fpext float %10 to double
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %11)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxpgd0lgy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [32 x i8] c"How many gallons did you fill: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.2 = private unnamed_addr constant [31 x i8] c"How many miles did you drive: \00", align 1
@.str.3 = private unnamed_addr constant [39 x i8] c"\0AYour car goes %.1f miles per gallon.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%8 = load float, ptr %3, align 4
%9 = load float, ptr %2, align 4
%10 = fdiv float %8, %9
%11 = fpext float %10 to double
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %11)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmptbu00ozk.c'
source_filename = "/tmp/tmptbu00ozk.c"
target datalayout = "e-m:e-p270: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 [25 x i8] c"usage: qstring filename\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"%s%s%s\00", align 1
@EOF = dso_local global i64 0, align 8
@.str.3 = private unnamed_addr constant [10 x i8] c"%s %s %s\0A\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"myfile\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.7 = private unnamed_addr constant [4 x i8] c"\22\22\0A\00", align 1
@.str.8 = private unnamed_addr constant [5 x i8] c"%lu\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca [32 x i8], align 16
%8 = alloca [32 x i8], align 16
%9 = alloca [32 x i8], align 16
%10 = alloca ptr, align 8
%11 = 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 ptr null, ptr %11, align 8
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = load i32, ptr @stderr, align 4
%16 = call i32 @fprintf(i32 noundef %15, ptr noundef @.str)
store i32 -1, ptr %3, align 4
br label %70
17: ; preds = %2
%18 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
%19 = call i32 @memset(ptr noundef %18, i32 noundef 0, i32 noundef 32)
%20 = getelementptr inbounds [32 x i8], ptr %8, i64 0, i64 0
%21 = call i32 @memset(ptr noundef %20, i32 noundef 0, i32 noundef 32)
%22 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
%23 = call i32 @memset(ptr noundef %22, i32 noundef 0, i32 noundef 32)
%24 = load ptr, ptr %11, align 8
%25 = call ptr @fopen(ptr noundef %24, ptr noundef @.str.1)
store ptr %25, ptr %6, align 8
br label %26
26: ; preds = %34, %17
%27 = load ptr, ptr %6, align 8
%28 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
%29 = getelementptr inbounds [32 x i8], ptr %8, i64 0, i64 0
%30 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
%31 = call i64 (ptr, ptr, ptr, ...) @fscanf(ptr noundef %27, ptr noundef @.str.2, ptr noundef %28, ptr noundef %29, ptr noundef %30)
%32 = load i64, ptr @EOF, align 8
%33 = icmp ne i64 %31, %32
br i1 %33, label %34, label %39
34: ; preds = %26
%35 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
%36 = getelementptr inbounds [32 x i8], ptr %8, i64 0, i64 0
%37 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %35, ptr noundef %36, ptr noundef %37)
br label %26, !llvm.loop !6
39: ; preds = %26
%40 = load ptr, ptr %6, align 8
%41 = call i32 @fclose(ptr noundef %40)
%42 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
%43 = call i32 @memset(ptr noundef %42, i32 noundef 0, i32 noundef 32)
%44 = getelementptr inbounds [32 x i8], ptr %8, i64 0, i64 0
%45 = call i32 @memset(ptr noundef %44, i32 noundef 0, i32 noundef 32)
%46 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
%47 = call i32 @memset(ptr noundef %46, i32 noundef 0, i32 noundef 32)
%48 = call ptr @fopen(ptr noundef @.str.4, ptr noundef @.str.1)
store ptr %48, ptr %6, align 8
br label %49
49: ; preds = %65, %39
%50 = load ptr, ptr %6, align 8
%51 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
%52 = call i64 (ptr, ptr, ptr, ...) @fscanf(ptr noundef %50, ptr noundef @.str.5, ptr noundef %51)
%53 = load i64, ptr @EOF, align 8
%54 = icmp ne i64 %52, %53
br i1 %54, label %55, label %66
55: ; preds = %49
%56 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
%57 = call ptr @gimmestr(ptr noundef %56)
store ptr %57, ptr %10, align 8
%58 = load ptr, ptr %10, align 8
%59 = icmp ne ptr %58, null
br i1 %59, label %60, label %63
60: ; preds = %55
%61 = load ptr, ptr %10, align 8
%62 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %61)
br label %65
63: ; preds = %55
%64 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %65
65: ; preds = %63, %60
br label %49, !llvm.loop !8
66: ; preds = %49
%67 = load ptr, ptr %6, align 8
%68 = call i32 @fclose(ptr noundef %67)
%69 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i64 noundef 4)
store i32 0, ptr %3, align 4
br label %70
70: ; preds = %66, %14
%71 = load i32, ptr %3, align 4
ret i32 %71
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i64 @fscanf(ptr noundef, ptr noundef, ptr noundef, ...) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @fclose(ptr noundef) #1
declare ptr @gimmestr(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmptbu00ozk.c"
target datalayout = "e-m:e-p270: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 [25 x i8] c"usage: qstring filename\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"%s%s%s\00", align 1
@EOF = dso_local global i64 0, align 8
@.str.3 = private unnamed_addr constant [10 x i8] c"%s %s %s\0A\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"myfile\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.7 = private unnamed_addr constant [4 x i8] c"\22\22\0A\00", align 1
@.str.8 = private unnamed_addr constant [5 x i8] c"%lu\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca [32 x i8], align 16
%8 = alloca [32 x i8], align 16
%9 = alloca [32 x i8], align 16
%10 = alloca ptr, align 8
%11 = 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 ptr null, ptr %11, align 8
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = load i32, ptr @stderr, align 4
%16 = call i32 @fprintf(i32 noundef %15, ptr noundef @.str)
store i32 -1, ptr %3, align 4
br label %76
17: ; preds = %2
%18 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
%19 = call i32 @memset(ptr noundef %18, i32 noundef 0, i32 noundef 32)
%20 = getelementptr inbounds [32 x i8], ptr %8, i64 0, i64 0
%21 = call i32 @memset(ptr noundef %20, i32 noundef 0, i32 noundef 32)
%22 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
%23 = call i32 @memset(ptr noundef %22, i32 noundef 0, i32 noundef 32)
%24 = load ptr, ptr %11, align 8
%25 = call ptr @fopen(ptr noundef %24, ptr noundef @.str.1)
store ptr %25, ptr %6, align 8
%26 = load ptr, ptr %6, align 8
%27 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
%28 = getelementptr inbounds [32 x i8], ptr %8, i64 0, i64 0
%29 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
%30 = call i64 (ptr, ptr, ptr, ...) @fscanf(ptr noundef %26, ptr noundef @.str.2, ptr noundef %27, ptr noundef %28, ptr noundef %29)
%31 = load i64, ptr @EOF, align 8
%32 = icmp ne i64 %30, %31
br i1 %32, label %.lr.ph, label %42
.lr.ph: ; preds = %17
br label %33
33: ; preds = %.lr.ph, %33
%34 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
%35 = getelementptr inbounds [32 x i8], ptr %8, i64 0, i64 0
%36 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %34, ptr noundef %35, ptr noundef %36)
%38 = load ptr, ptr %6, align 8
%39 = call i64 (ptr, ptr, ptr, ...) @fscanf(ptr noundef %38, ptr noundef @.str.2, ptr noundef %27, ptr noundef %28, ptr noundef %29)
%40 = load i64, ptr @EOF, align 8
%41 = icmp ne i64 %39, %40
br i1 %41, label %33, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %33
br label %42
42: ; preds = %._crit_edge, %17
%43 = load ptr, ptr %6, align 8
%44 = call i32 @fclose(ptr noundef %43)
%45 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
%46 = call i32 @memset(ptr noundef %45, i32 noundef 0, i32 noundef 32)
%47 = getelementptr inbounds [32 x i8], ptr %8, i64 0, i64 0
%48 = call i32 @memset(ptr noundef %47, i32 noundef 0, i32 noundef 32)
%49 = getelementptr inbounds [32 x i8], ptr %9, i64 0, i64 0
%50 = call i32 @memset(ptr noundef %49, i32 noundef 0, i32 noundef 32)
%51 = call ptr @fopen(ptr noundef @.str.4, ptr noundef @.str.1)
store ptr %51, ptr %6, align 8
%52 = load ptr, ptr %6, align 8
%53 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
%54 = call i64 (ptr, ptr, ptr, ...) @fscanf(ptr noundef %52, ptr noundef @.str.5, ptr noundef %53)
%55 = load i64, ptr @EOF, align 8
%56 = icmp ne i64 %54, %55
br i1 %56, label %.lr.ph2, label %72
.lr.ph2: ; preds = %42
br label %57
57: ; preds = %.lr.ph2, %67
%58 = getelementptr inbounds [32 x i8], ptr %7, i64 0, i64 0
%59 = call ptr @gimmestr(ptr noundef %58)
store ptr %59, ptr %10, align 8
%60 = load ptr, ptr %10, align 8
%61 = icmp ne ptr %60, null
br i1 %61, label %62, label %65
62: ; preds = %57
%63 = load ptr, ptr %10, align 8
%64 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %63)
br label %67
65: ; preds = %57
%66 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %67
67: ; preds = %65, %62
%68 = load ptr, ptr %6, align 8
%69 = call i64 (ptr, ptr, ptr, ...) @fscanf(ptr noundef %68, ptr noundef @.str.5, ptr noundef %53)
%70 = load i64, ptr @EOF, align 8
%71 = icmp ne i64 %69, %70
br i1 %71, label %57, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %67
br label %72
72: ; preds = %._crit_edge3, %42
%73 = load ptr, ptr %6, align 8
%74 = call i32 @fclose(ptr noundef %73)
%75 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i64 noundef 4)
store i32 0, ptr %3, align 4
br label %76
76: ; preds = %72, %14
%77 = load i32, ptr %3, align 4
ret i32 %77
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i64 @fscanf(ptr noundef, ptr noundef, ptr noundef, ...) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @fclose(ptr noundef) #1
declare ptr @gimmestr(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpa4xliq3i.c'
source_filename = "/tmp/tmpa4xliq3i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getRhymeIdFromDictEntry(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca [2 x i8], align 1
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%7 = call ptr @malloc(i32 noundef 256)
store ptr %7, ptr %3, align 8
%8 = getelementptr inbounds [2 x i8], ptr %4, i64 0, i64 1
store i8 0, ptr %8, align 1
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
br label %9
9: ; preds = %53, %1
%10 = load ptr, ptr %2, align 8
%11 = load i32, ptr %5, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i8, ptr %10, i64 %12
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %56
17: ; preds = %9
%18 = load ptr, ptr %2, align 8
%19 = load i32, ptr %5, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i8, ptr %18, i64 %20
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %23, 32
br i1 %24, label %25, label %32
25: ; preds = %17
%26 = load i32, ptr %6, align 4
%27 = icmp ne i32 %26, 0
br i1 %27, label %31, label %28
28: ; preds = %25
%29 = load i32, ptr %5, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %5, align 4
br label %31
31: ; preds = %28, %25
store i32 1, ptr %6, align 4
br label %32
32: ; preds = %31, %17
%33 = load i32, ptr %6, align 4
%34 = icmp ne i32 %33, 0
br i1 %34, label %35, label %53
35: ; preds = %32
%36 = load ptr, ptr %2, align 8
%37 = load i32, ptr %5, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i8, ptr %36, i64 %38
%40 = load i8, ptr %39, align 1
%41 = sext i8 %40 to i32
%42 = icmp ne i32 %41, 10
br i1 %42, label %43, label %53
43: ; preds = %35
%44 = load ptr, ptr %2, align 8
%45 = load i32, ptr %5, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds i8, ptr %44, i64 %46
%48 = load i8, ptr %47, align 1
%49 = getelementptr inbounds [2 x i8], ptr %4, i64 0, i64 0
store i8 %48, ptr %49, align 1
%50 = load ptr, ptr %3, align 8
%51 = getelementptr inbounds [2 x i8], ptr %4, i64 0, i64 0
%52 = call i32 @strcat(ptr noundef %50, ptr noundef %51)
br label %53
53: ; preds = %43, %35, %32
%54 = load i32, ptr %5, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %5, align 4
br label %9, !llvm.loop !6
56: ; preds = %9
%57 = load ptr, ptr %3, align 8
ret ptr %57
}
declare ptr @malloc(i32 noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpa4xliq3i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getRhymeIdFromDictEntry(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca [2 x i8], align 1
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%7 = call ptr @malloc(i32 noundef 256)
store ptr %7, ptr %3, align 8
%8 = getelementptr inbounds [2 x i8], ptr %4, i64 0, i64 1
store i8 0, ptr %8, align 1
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
%9 = load ptr, ptr %2, align 8
%10 = load i32, ptr %5, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds i8, ptr %9, i64 %11
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = icmp ne i32 %14, 0
br i1 %15, label %.lr.ph, label %62
.lr.ph: ; preds = %1
br label %16
16: ; preds = %.lr.ph, %52
%17 = load ptr, ptr %2, align 8
%18 = load i32, ptr %5, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8, ptr %17, i64 %19
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp eq i32 %22, 32
br i1 %23, label %24, label %31
24: ; preds = %16
%25 = load i32, ptr %6, align 4
%26 = icmp ne i32 %25, 0
br i1 %26, label %30, label %27
27: ; preds = %24
%28 = load i32, ptr %5, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %5, align 4
br label %30
30: ; preds = %27, %24
store i32 1, ptr %6, align 4
br label %31
31: ; preds = %30, %16
%32 = load i32, ptr %6, align 4
%33 = icmp ne i32 %32, 0
br i1 %33, label %34, label %52
34: ; preds = %31
%35 = load ptr, ptr %2, align 8
%36 = load i32, ptr %5, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i8, ptr %35, i64 %37
%39 = load i8, ptr %38, align 1
%40 = sext i8 %39 to i32
%41 = icmp ne i32 %40, 10
br i1 %41, label %42, label %52
42: ; preds = %34
%43 = load ptr, ptr %2, align 8
%44 = load i32, ptr %5, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i8, ptr %43, i64 %45
%47 = load i8, ptr %46, align 1
%48 = getelementptr inbounds [2 x i8], ptr %4, i64 0, i64 0
store i8 %47, ptr %48, align 1
%49 = load ptr, ptr %3, align 8
%50 = getelementptr inbounds [2 x i8], ptr %4, i64 0, i64 0
%51 = call i32 @strcat(ptr noundef %49, ptr noundef %50)
br label %52
52: ; preds = %42, %34, %31
%53 = load i32, ptr %5, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %5, align 4
%55 = load ptr, ptr %2, align 8
%56 = load i32, ptr %5, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i8, ptr %55, i64 %57
%59 = load i8, ptr %58, align 1
%60 = sext i8 %59 to i32
%61 = icmp ne i32 %60, 0
br i1 %61, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %52
br label %62
62: ; preds = %._crit_edge, %1
%63 = load ptr, ptr %3, align 8
ret ptr %63
}
declare ptr @malloc(i32 noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp5ruleqgn.c'
source_filename = "/tmp/tmp5ruleqgn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @put_pixel(i32 noundef %0, i32 noundef %1, i8 noundef zeroext %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i8, align 1
%8 = alloca ptr, align 8
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store i8 %2, ptr %7, align 1
store ptr %3, ptr %8, align 8
%9 = load ptr, ptr %8, align 8
%10 = load i32, ptr %5, align 4
%11 = load i32, ptr %6, align 4
%12 = mul nsw i32 %11, 320
%13 = add nsw i32 %10, %12
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i8, ptr %9, i64 %14
%16 = load i8, ptr %7, align 1
%17 = call i32 @memset(ptr noundef %15, i8 noundef zeroext %16, i32 noundef 1)
ret void
}
declare i32 @memset(ptr noundef, i8 noundef zeroext, 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/tmp5ruleqgn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @put_pixel(i32 noundef %0, i32 noundef %1, i8 noundef zeroext %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i8, align 1
%8 = alloca ptr, align 8
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store i8 %2, ptr %7, align 1
store ptr %3, ptr %8, align 8
%9 = load ptr, ptr %8, align 8
%10 = load i32, ptr %5, align 4
%11 = load i32, ptr %6, align 4
%12 = mul nsw i32 %11, 320
%13 = add nsw i32 %10, %12
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i8, ptr %9, i64 %14
%16 = load i8, ptr %7, align 1
%17 = call i32 @memset(ptr noundef %15, i8 noundef zeroext %16, i32 noundef 1)
ret void
}
declare i32 @memset(ptr noundef, i8 noundef zeroext, 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/tmpipkah1el.c'
source_filename = "/tmp/tmpipkah1el.c"
target datalayout = "e-m:e-p270: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/tmpipkah1el.c"
target datalayout = "e-m:e-p270: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/tmphnh6_x64.c'
source_filename = "/tmp/tmphnh6_x64.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [52 x i8] c"%s:%d> %s() FAILED: %s was '%s' but should be '%s'\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @AssertEqualStr(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
store ptr %0, ptr %8, align 8
store ptr %1, ptr %9, align 8
store i32 %2, ptr %10, align 4
store ptr %3, ptr %11, align 8
store ptr %4, ptr %12, align 8
store ptr %5, ptr %13, align 8
%14 = load ptr, ptr %8, align 8
%15 = load ptr, ptr %9, align 8
%16 = call i64 @strcmp(ptr noundef %14, ptr noundef %15)
%17 = icmp ne i64 %16, 0
br i1 %17, label %18, label %26
18: ; preds = %6
%19 = load ptr, ptr %11, align 8
%20 = load i32, ptr %10, align 4
%21 = load ptr, ptr %12, align 8
%22 = load ptr, ptr %13, align 8
%23 = load ptr, ptr %8, align 8
%24 = load ptr, ptr %9, align 8
%25 = call i32 @TESTError_Fail(ptr noundef @.str, ptr noundef %19, i32 noundef %20, ptr noundef %21, ptr noundef %22, ptr noundef %23, ptr noundef %24)
store i32 0, ptr %7, align 4
br label %27
26: ; preds = %6
store i32 1, ptr %7, align 4
br label %27
27: ; preds = %26, %18
%28 = load i32, ptr %7, align 4
ret i32 %28
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @TESTError_Fail(ptr noundef, ptr noundef, i32 noundef, ptr 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/tmphnh6_x64.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [52 x i8] c"%s:%d> %s() FAILED: %s was '%s' but should be '%s'\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @AssertEqualStr(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
store ptr %0, ptr %8, align 8
store ptr %1, ptr %9, align 8
store i32 %2, ptr %10, align 4
store ptr %3, ptr %11, align 8
store ptr %4, ptr %12, align 8
store ptr %5, ptr %13, align 8
%14 = load ptr, ptr %8, align 8
%15 = load ptr, ptr %9, align 8
%16 = call i64 @strcmp(ptr noundef %14, ptr noundef %15)
%17 = icmp ne i64 %16, 0
br i1 %17, label %18, label %26
18: ; preds = %6
%19 = load ptr, ptr %11, align 8
%20 = load i32, ptr %10, align 4
%21 = load ptr, ptr %12, align 8
%22 = load ptr, ptr %13, align 8
%23 = load ptr, ptr %8, align 8
%24 = load ptr, ptr %9, align 8
%25 = call i32 @TESTError_Fail(ptr noundef @.str, ptr noundef %19, i32 noundef %20, ptr noundef %21, ptr noundef %22, ptr noundef %23, ptr noundef %24)
store i32 0, ptr %7, align 4
br label %27
26: ; preds = %6
store i32 1, ptr %7, align 4
br label %27
27: ; preds = %26, %18
%28 = load i32, ptr %7, align 4
ret i32 %28
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @TESTError_Fail(ptr noundef, ptr noundef, i32 noundef, ptr 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/tmpkyjdhv6m.c'
source_filename = "/tmp/tmpkyjdhv6m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @es6_mod(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca float, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store float 0.000000e+00, ptr %5, align 4
store i32 0, ptr %6, align 4
br label %7
7: ; preds = %20, %2
%8 = load i32, ptr %6, align 4
%9 = sext i32 %8 to i64
%10 = load i64, ptr %4, align 8
%11 = icmp ult i64 %9, %10
br i1 %11, label %12, label %23
12: ; preds = %7
%13 = load ptr, ptr %3, align 8
%14 = load i32, ptr %6, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds float, ptr %13, i64 %15
%17 = load float, ptr %16, align 4
%18 = load float, ptr %5, align 4
%19 = fadd float %18, %17
store float %19, ptr %5, align 4
br label %20
20: ; preds = %12
%21 = load i32, ptr %6, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %6, align 4
br label %7, !llvm.loop !6
23: ; preds = %7
%24 = load float, ptr %5, align 4
%25 = load i64, ptr %4, align 8
%26 = uitofp i64 %25 to float
%27 = fdiv float %24, %26
%28 = fptosi float %27 to i32
ret i32 %28
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpkyjdhv6m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @es6_mod(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca float, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store float 0.000000e+00, ptr %5, align 4
store i32 0, ptr %6, align 4
%7 = load i32, ptr %6, align 4
%8 = sext i32 %7 to i64
%9 = load i64, ptr %4, align 8
%10 = icmp ult i64 %8, %9
br i1 %10, label %.lr.ph, label %26
.lr.ph: ; preds = %2
br label %11
11: ; preds = %.lr.ph, %19
%12 = load ptr, ptr %3, align 8
%13 = load i32, ptr %6, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds float, ptr %12, i64 %14
%16 = load float, ptr %15, align 4
%17 = load float, ptr %5, align 4
%18 = fadd float %17, %16
store float %18, ptr %5, align 4
br label %19
19: ; preds = %11
%20 = load i32, ptr %6, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %6, align 4
%22 = load i32, ptr %6, align 4
%23 = sext i32 %22 to i64
%24 = load i64, ptr %4, align 8
%25 = icmp ult i64 %23, %24
br i1 %25, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %26
26: ; preds = %._crit_edge, %2
%27 = load float, ptr %5, align 4
%28 = load i64, ptr %4, align 8
%29 = uitofp i64 %28 to float
%30 = fdiv float %27, %29
%31 = fptosi float %30 to i32
ret i32 %31
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpt7waimqg.c'
source_filename = "/tmp/tmpt7waimqg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @EXP(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca double, align 8
store double %0, ptr %3, align 8
%4 = load double, ptr %3, align 8
%5 = fcmp ogt double %4, -2.000000e+00
br i1 %5, label %6, label %45
6: ; preds = %1
%7 = load double, ptr %3, align 8
%8 = fcmp ogt double %7, -5.000000e-01
br i1 %8, label %9, label %24
9: ; preds = %6
%10 = load double, ptr %3, align 8
%11 = fcmp ogt double %10, 0.000000e+00
br i1 %11, label %12, label %15
12: ; preds = %9
%13 = load double, ptr %3, align 8
%14 = call double @exp(double noundef %13) #3
store double %14, ptr %2, align 8
br label %82
15: ; preds = %9
%16 = load double, ptr %3, align 8
%17 = call double @llvm.fmuladd.f64(double 0x3FA0A99E8E800005, double %16, double 0x3FC4D6C5AF780012)
%18 = load double, ptr %3, align 8
%19 = call double @llvm.fmuladd.f64(double %17, double %18, double 0x3FDFF47DF0F6000B)
%20 = load double, ptr %3, align 8
%21 = call double @llvm.fmuladd.f64(double %19, double %20, double 0x3FEFFF9A479EE003)
%22 = load double, ptr %3, align 8
%23 = call double @llvm.fmuladd.f64(double %21, double %22, double 0x3FEFFFFE7013AA07)
store double %23, ptr %2, align 8
br label %82
24: ; preds = %6
%25 = load double, ptr %3, align 8
%26 = fcmp ogt double %25, -1.000000e+00
br i1 %26, label %27, label %36
27: ; preds = %24
%28 = load double, ptr %3, align 8
%29 = call double @llvm.fmuladd.f64(double 0x3F943675367FFFF2, double %28, double 0x3FC1B1513F7FFFF3)
%30 = load double, ptr %3, align 8
%31 = call double @llvm.fmuladd.f64(double %29, double %30, double 0x3FDEC19A0F09FFFF)
%32 = load double, ptr %3, align 8
%33 = call double @llvm.fmuladd.f64(double %31, double %32, double 0x3FEFC8DCEAA0D004)
%34 = load double, ptr %3, align 8
%35 = call double @llvm.fmuladd.f64(double %33, double %34, double 0x3FEFF85C8CAF4047)
store double %35, ptr %2, align 8
br label %82
36: ; preds = %24
%37 = load double, ptr %3, align 8
%38 = call double @llvm.fmuladd.f64(double 0x3F8343139607FFFF, double %37, double 0x3FB81A30CA770000)
%39 = load double, ptr %3, align 8
%40 = call double @llvm.fmuladd.f64(double %38, double %39, double 0x3FDA20E5E4D1A008)
%41 = load double, ptr %3, align 8
%42 = call double @llvm.fmuladd.f64(double %40, double %41, double 0x3FEE0F0AE7E45004)
%43 = load double, ptr %3, align 8
%44 = call double @llvm.fmuladd.f64(double %42, double %43, double 0x3FEF7A6E1BC0A387)
store double %44, ptr %2, align 8
br label %82
45: ; preds = %1
%46 = load double, ptr %3, align 8
%47 = fcmp ogt double %46, -8.000000e+00
br i1 %47, label %48, label %69
48: ; preds = %45
%49 = load double, ptr %3, align 8
%50 = fcmp ogt double %49, -4.000000e+00
br i1 %50, label %51, label %60
51: ; preds = %48
%52 = load double, ptr %3, align 8
%53 = call double @llvm.fmuladd.f64(double 0x3F61CBF908768008, double %52, double 0x3FA1D7A2B889BFFD)
%54 = load double, ptr %3, align 8
%55 = call double @llvm.fmuladd.f64(double %53, double %54, double 0x3FCC4FB113F737F8)
%56 = load double, ptr %3, align 8
%57 = call double @llvm.fmuladd.f64(double %55, double %56, double 0x3FE574B1233D2D04)
%58 = load double, ptr %3, align 8
%59 = call double @llvm.fmuladd.f64(double %57, double %58, double 0x3FEABCFC40B428AB)
store double %59, ptr %2, align 8
br label %82
60: ; preds = %48
%61 = load double, ptr %3, align 8
%62 = call double @llvm.fmuladd.f64(double 0x3F20405652409FEF, double %61, double 0x3F6C9A53DA32C806)
%63 = load double, ptr %3, align 8
%64 = call double @llvm.fmuladd.f64(double %62, double %63, double 0x3FA315FFC0445409)
%65 = load double, ptr %3, align 8
%66 = call double @llvm.fmuladd.f64(double %64, double %65, double 0x3FC7020C193A55F7)
%67 = load double, ptr %3, align 8
%68 = call double @llvm.fmuladd.f64(double %66, double %67, double 0x3FD54790B839A2E5)
store double %68, ptr %2, align 8
br label %82
69: ; preds = %45
%70 = load double, ptr %3, align 8
%71 = fcmp ogt double %70, -1.600000e+01
br i1 %71, label %72, label %81
72: ; preds = %69
%73 = load double, ptr %3, align 8
%74 = call double @llvm.fmuladd.f64(double 0x3EA15C944F9401FD, double %73, double 0x3EFC895AED611406)
%75 = load double, ptr %3, align 8
%76 = call double @llvm.fmuladd.f64(double %74, double %75, double 0x3F418113BD743AC8)
%77 = load double, ptr %3, align 8
%78 = call double @llvm.fmuladd.f64(double %76, double %77, double 0x3F7302764A9AA0D9)
%79 = load double, ptr %3, align 8
%80 = call double @llvm.fmuladd.f64(double %78, double %79, double 0x3F8EDF5E6E769140)
store double %80, ptr %2, align 8
br label %82
81: ; preds = %69
store double 0.000000e+00, ptr %2, align 8
br label %82
82: ; preds = %81, %72, %60, %51, %36, %27, %15, %12
%83 = load double, ptr %2, align 8
ret double %83
}
; Function Attrs: nounwind
declare double @exp(double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpt7waimqg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @EXP(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca double, align 8
store double %0, ptr %3, align 8
%4 = load double, ptr %3, align 8
%5 = fcmp ogt double %4, -2.000000e+00
br i1 %5, label %6, label %45
6: ; preds = %1
%7 = load double, ptr %3, align 8
%8 = fcmp ogt double %7, -5.000000e-01
br i1 %8, label %9, label %24
9: ; preds = %6
%10 = load double, ptr %3, align 8
%11 = fcmp ogt double %10, 0.000000e+00
br i1 %11, label %12, label %15
12: ; preds = %9
%13 = load double, ptr %3, align 8
%14 = call double @exp(double noundef %13) #3
store double %14, ptr %2, align 8
br label %82
15: ; preds = %9
%16 = load double, ptr %3, align 8
%17 = call double @llvm.fmuladd.f64(double 0x3FA0A99E8E800005, double %16, double 0x3FC4D6C5AF780012)
%18 = load double, ptr %3, align 8
%19 = call double @llvm.fmuladd.f64(double %17, double %18, double 0x3FDFF47DF0F6000B)
%20 = load double, ptr %3, align 8
%21 = call double @llvm.fmuladd.f64(double %19, double %20, double 0x3FEFFF9A479EE003)
%22 = load double, ptr %3, align 8
%23 = call double @llvm.fmuladd.f64(double %21, double %22, double 0x3FEFFFFE7013AA07)
store double %23, ptr %2, align 8
br label %82
24: ; preds = %6
%25 = load double, ptr %3, align 8
%26 = fcmp ogt double %25, -1.000000e+00
br i1 %26, label %27, label %36
27: ; preds = %24
%28 = load double, ptr %3, align 8
%29 = call double @llvm.fmuladd.f64(double 0x3F943675367FFFF2, double %28, double 0x3FC1B1513F7FFFF3)
%30 = load double, ptr %3, align 8
%31 = call double @llvm.fmuladd.f64(double %29, double %30, double 0x3FDEC19A0F09FFFF)
%32 = load double, ptr %3, align 8
%33 = call double @llvm.fmuladd.f64(double %31, double %32, double 0x3FEFC8DCEAA0D004)
%34 = load double, ptr %3, align 8
%35 = call double @llvm.fmuladd.f64(double %33, double %34, double 0x3FEFF85C8CAF4047)
store double %35, ptr %2, align 8
br label %82
36: ; preds = %24
%37 = load double, ptr %3, align 8
%38 = call double @llvm.fmuladd.f64(double 0x3F8343139607FFFF, double %37, double 0x3FB81A30CA770000)
%39 = load double, ptr %3, align 8
%40 = call double @llvm.fmuladd.f64(double %38, double %39, double 0x3FDA20E5E4D1A008)
%41 = load double, ptr %3, align 8
%42 = call double @llvm.fmuladd.f64(double %40, double %41, double 0x3FEE0F0AE7E45004)
%43 = load double, ptr %3, align 8
%44 = call double @llvm.fmuladd.f64(double %42, double %43, double 0x3FEF7A6E1BC0A387)
store double %44, ptr %2, align 8
br label %82
45: ; preds = %1
%46 = load double, ptr %3, align 8
%47 = fcmp ogt double %46, -8.000000e+00
br i1 %47, label %48, label %69
48: ; preds = %45
%49 = load double, ptr %3, align 8
%50 = fcmp ogt double %49, -4.000000e+00
br i1 %50, label %51, label %60
51: ; preds = %48
%52 = load double, ptr %3, align 8
%53 = call double @llvm.fmuladd.f64(double 0x3F61CBF908768008, double %52, double 0x3FA1D7A2B889BFFD)
%54 = load double, ptr %3, align 8
%55 = call double @llvm.fmuladd.f64(double %53, double %54, double 0x3FCC4FB113F737F8)
%56 = load double, ptr %3, align 8
%57 = call double @llvm.fmuladd.f64(double %55, double %56, double 0x3FE574B1233D2D04)
%58 = load double, ptr %3, align 8
%59 = call double @llvm.fmuladd.f64(double %57, double %58, double 0x3FEABCFC40B428AB)
store double %59, ptr %2, align 8
br label %82
60: ; preds = %48
%61 = load double, ptr %3, align 8
%62 = call double @llvm.fmuladd.f64(double 0x3F20405652409FEF, double %61, double 0x3F6C9A53DA32C806)
%63 = load double, ptr %3, align 8
%64 = call double @llvm.fmuladd.f64(double %62, double %63, double 0x3FA315FFC0445409)
%65 = load double, ptr %3, align 8
%66 = call double @llvm.fmuladd.f64(double %64, double %65, double 0x3FC7020C193A55F7)
%67 = load double, ptr %3, align 8
%68 = call double @llvm.fmuladd.f64(double %66, double %67, double 0x3FD54790B839A2E5)
store double %68, ptr %2, align 8
br label %82
69: ; preds = %45
%70 = load double, ptr %3, align 8
%71 = fcmp ogt double %70, -1.600000e+01
br i1 %71, label %72, label %81
72: ; preds = %69
%73 = load double, ptr %3, align 8
%74 = call double @llvm.fmuladd.f64(double 0x3EA15C944F9401FD, double %73, double 0x3EFC895AED611406)
%75 = load double, ptr %3, align 8
%76 = call double @llvm.fmuladd.f64(double %74, double %75, double 0x3F418113BD743AC8)
%77 = load double, ptr %3, align 8
%78 = call double @llvm.fmuladd.f64(double %76, double %77, double 0x3F7302764A9AA0D9)
%79 = load double, ptr %3, align 8
%80 = call double @llvm.fmuladd.f64(double %78, double %79, double 0x3F8EDF5E6E769140)
store double %80, ptr %2, align 8
br label %82
81: ; preds = %69
store double 0.000000e+00, ptr %2, align 8
br label %82
82: ; preds = %81, %72, %60, %51, %36, %27, %15, %12
%83 = load double, ptr %2, align 8
ret double %83
}
; Function Attrs: nounwind
declare double @exp(double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdrtlp7of.c'
source_filename = "/tmp/tmpdrtlp7of.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"52.17.166.244\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"1B\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"10B\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"100B\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"1k\00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"10k\00", align 1
@.str.6 = private unnamed_addr constant [5 x i8] c"100k\00", align 1
@.str.7 = private unnamed_addr constant [4 x i8] c"1mb\00", align 1
@.str.8 = private unnamed_addr constant [5 x i8] c"10mb\00", align 1
@.str.9 = private unnamed_addr constant [6 x i8] c"100mb\00", align 1
@.str.10 = private unnamed_addr constant [4 x i8] c"1gb\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
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 %8, align 4
br label %9
9: ; preds = %33, %2
%10 = load i32, ptr %8, align 4
%11 = icmp slt i32 %10, 31
br i1 %11, label %12, label %36
12: ; preds = %9
%13 = call i32 @send_handler(ptr noundef @.str, i32 noundef 9898, ptr noundef @.str.1)
%14 = call i32 @sleep(i32 noundef 2)
%15 = call i32 @send_handler(ptr noundef @.str, i32 noundef 9898, ptr noundef @.str.2)
%16 = call i32 @sleep(i32 noundef 2)
%17 = call i32 @send_handler(ptr noundef @.str, i32 noundef 9898, ptr noundef @.str.3)
%18 = call i32 @sleep(i32 noundef 2)
%19 = call i32 @send_handler(ptr noundef @.str, i32 noundef 9898, ptr noundef @.str.4)
%20 = call i32 @sleep(i32 noundef 2)
%21 = call i32 @send_handler(ptr noundef @.str, i32 noundef 9898, ptr noundef @.str.5)
%22 = call i32 @sleep(i32 noundef 2)
%23 = call i32 @send_handler(ptr noundef @.str, i32 noundef 9898, ptr noundef @.str.6)
%24 = call i32 @sleep(i32 noundef 2)
%25 = call i32 @send_handler(ptr noundef @.str, i32 noundef 9898, ptr noundef @.str.7)
%26 = call i32 @sleep(i32 noundef 2)
%27 = call i32 @send_handler(ptr noundef @.str, i32 noundef 9898, ptr noundef @.str.8)
%28 = call i32 @sleep(i32 noundef 2)
%29 = call i32 @send_handler(ptr noundef @.str, i32 noundef 9898, ptr noundef @.str.9)
%30 = call i32 @sleep(i32 noundef 2)
%31 = call i32 @send_handler(ptr noundef @.str, i32 noundef 9898, ptr noundef @.str.10)
%32 = call i32 @sleep(i32 noundef 2)
br label %33
33: ; preds = %12
%34 = load i32, ptr %8, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %8, align 4
br label %9, !llvm.loop !6
36: ; preds = %9
%37 = load i32, ptr %3, align 4
ret i32 %37
}
declare i32 @send_handler(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @sleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdrtlp7of.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"52.17.166.244\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"1B\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"10B\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"100B\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"1k\00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"10k\00", align 1
@.str.6 = private unnamed_addr constant [5 x i8] c"100k\00", align 1
@.str.7 = private unnamed_addr constant [4 x i8] c"1mb\00", align 1
@.str.8 = private unnamed_addr constant [5 x i8] c"10mb\00", align 1
@.str.9 = private unnamed_addr constant [6 x i8] c"100mb\00", align 1
@.str.10 = private unnamed_addr constant [4 x i8] c"1gb\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
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 %8, align 4
%9 = load i32, ptr %8, align 4
%10 = icmp slt i32 %9, 31
br i1 %10, label %.lr.ph, label %37
.lr.ph: ; preds = %2
br label %11
11: ; preds = %.lr.ph, %32
%12 = call i32 @send_handler(ptr noundef @.str, i32 noundef 9898, ptr noundef @.str.1)
%13 = call i32 @sleep(i32 noundef 2)
%14 = call i32 @send_handler(ptr noundef @.str, i32 noundef 9898, ptr noundef @.str.2)
%15 = call i32 @sleep(i32 noundef 2)
%16 = call i32 @send_handler(ptr noundef @.str, i32 noundef 9898, ptr noundef @.str.3)
%17 = call i32 @sleep(i32 noundef 2)
%18 = call i32 @send_handler(ptr noundef @.str, i32 noundef 9898, ptr noundef @.str.4)
%19 = call i32 @sleep(i32 noundef 2)
%20 = call i32 @send_handler(ptr noundef @.str, i32 noundef 9898, ptr noundef @.str.5)
%21 = call i32 @sleep(i32 noundef 2)
%22 = call i32 @send_handler(ptr noundef @.str, i32 noundef 9898, ptr noundef @.str.6)
%23 = call i32 @sleep(i32 noundef 2)
%24 = call i32 @send_handler(ptr noundef @.str, i32 noundef 9898, ptr noundef @.str.7)
%25 = call i32 @sleep(i32 noundef 2)
%26 = call i32 @send_handler(ptr noundef @.str, i32 noundef 9898, ptr noundef @.str.8)
%27 = call i32 @sleep(i32 noundef 2)
%28 = call i32 @send_handler(ptr noundef @.str, i32 noundef 9898, ptr noundef @.str.9)
%29 = call i32 @sleep(i32 noundef 2)
%30 = call i32 @send_handler(ptr noundef @.str, i32 noundef 9898, ptr noundef @.str.10)
%31 = call i32 @sleep(i32 noundef 2)
br label %32
32: ; preds = %11
%33 = load i32, ptr %8, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %8, align 4
%35 = load i32, ptr %8, align 4
%36 = icmp slt i32 %35, 31
br i1 %36, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %32
br label %37
37: ; preds = %._crit_edge, %2
%38 = load i32, ptr %3, align 4
ret i32 %38
}
declare i32 @send_handler(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @sleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpjx5nl9af.c'
source_filename = "/tmp/tmpjx5nl9af.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_storel_pd(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 = load ptr, ptr %4, align 8
%6 = load i32, ptr %3, align 4
%7 = call i32 @_mm_storel_pd(ptr noundef %5, i32 noundef %6)
ret void
}
declare i32 @_mm_storel_pd(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/tmpjx5nl9af.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_storel_pd(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 = load ptr, ptr %4, align 8
%6 = load i32, ptr %3, align 4
%7 = call i32 @_mm_storel_pd(ptr noundef %5, i32 noundef %6)
ret void
}
declare i32 @_mm_storel_pd(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/tmpjlv_gr36.c'
source_filename = "/tmp/tmpjlv_gr36.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
@.str = private unnamed_addr constant [20 x i8] c"{\22name\22: \22a thing\22}\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"Content-Length: %lu\00", align 1
@AF_INET = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [10 x i8] c"127.0.0.1\00", align 1
@PF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [18 x i8] c"POST / HTTP/1.1\0D\0A\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"\0D\0A\00", align 1
@.str.5 = private unnamed_addr constant [33 x i8] c"Content-Type: application/json\0D\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca %struct.sockaddr_in, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca [25 x i8], align 16
store i32 0, ptr %1, align 4
store ptr @.str, ptr %4, align 8
%6 = getelementptr inbounds [25 x i8], ptr %5, i64 0, i64 0
%7 = load ptr, ptr %4, align 8
%8 = call i32 @strlen(ptr noundef %7)
%9 = call i32 @sprintf(ptr noundef %6, ptr noundef @.str.1, i32 noundef %8)
%10 = call i32 @bzero(ptr noundef %2, i32 noundef 12)
%11 = load i32, ptr @AF_INET, align 4
%12 = getelementptr inbounds %struct.sockaddr_in, ptr %2, i32 0, i32 2
store i32 %11, ptr %12, align 4
%13 = call i32 @htons(i32 noundef 8000)
%14 = getelementptr inbounds %struct.sockaddr_in, ptr %2, i32 0, i32 1
store i32 %13, ptr %14, align 4
%15 = call i32 @inet_addr(ptr noundef @.str.2)
%16 = getelementptr inbounds %struct.sockaddr_in, ptr %2, i32 0, i32 0
%17 = getelementptr inbounds %struct.TYPE_2__, ptr %16, i32 0, i32 0
store i32 %15, ptr %17, align 4
%18 = load i32, ptr @PF_INET, align 4
%19 = load i32, ptr @SOCK_STREAM, align 4
%20 = call i32 @socket(i32 noundef %18, i32 noundef %19, i32 noundef 0)
store i32 %20, ptr %3, align 4
%21 = load i32, ptr %3, align 4
%22 = call i64 @connect(i32 noundef %21, ptr noundef %2, i32 noundef 12)
%23 = icmp slt i64 %22, 0
br i1 %23, label %24, label %25
24: ; preds = %0
store i32 1, ptr %1, align 4
br label %44
25: ; preds = %0
%26 = load i32, ptr %3, align 4
%27 = call i32 @my_send(i32 noundef %26, ptr noundef @.str.3)
%28 = load i32, ptr %3, align 4
%29 = getelementptr inbounds [25 x i8], ptr %5, i64 0, i64 0
%30 = call i32 @my_send(i32 noundef %28, ptr noundef %29)
%31 = load i32, ptr %3, align 4
%32 = call i32 @my_send(i32 noundef %31, ptr noundef @.str.4)
%33 = load i32, ptr %3, align 4
%34 = call i32 @my_send(i32 noundef %33, ptr noundef @.str.5)
%35 = load i32, ptr %3, align 4
%36 = call i32 @my_send(i32 noundef %35, ptr noundef @.str.4)
%37 = load i32, ptr %3, align 4
%38 = load ptr, ptr %4, align 8
%39 = call i32 @my_send(i32 noundef %37, ptr noundef %38)
%40 = load i32, ptr %3, align 4
%41 = call i32 @my_send(i32 noundef %40, ptr noundef @.str.4)
%42 = load i32, ptr %3, align 4
%43 = call i32 @close(i32 noundef %42)
store i32 0, ptr %1, align 4
br label %44
44: ; preds = %25, %24
%45 = load i32, ptr %1, align 4
ret i32 %45
}
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @bzero(ptr noundef, i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @inet_addr(ptr noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i64 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @my_send(i32 noundef, ptr noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjlv_gr36.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
@.str = private unnamed_addr constant [20 x i8] c"{\22name\22: \22a thing\22}\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"Content-Length: %lu\00", align 1
@AF_INET = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [10 x i8] c"127.0.0.1\00", align 1
@PF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [18 x i8] c"POST / HTTP/1.1\0D\0A\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"\0D\0A\00", align 1
@.str.5 = private unnamed_addr constant [33 x i8] c"Content-Type: application/json\0D\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca %struct.sockaddr_in, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca [25 x i8], align 16
store i32 0, ptr %1, align 4
store ptr @.str, ptr %4, align 8
%6 = getelementptr inbounds [25 x i8], ptr %5, i64 0, i64 0
%7 = load ptr, ptr %4, align 8
%8 = call i32 @strlen(ptr noundef %7)
%9 = call i32 @sprintf(ptr noundef %6, ptr noundef @.str.1, i32 noundef %8)
%10 = call i32 @bzero(ptr noundef %2, i32 noundef 12)
%11 = load i32, ptr @AF_INET, align 4
%12 = getelementptr inbounds %struct.sockaddr_in, ptr %2, i32 0, i32 2
store i32 %11, ptr %12, align 4
%13 = call i32 @htons(i32 noundef 8000)
%14 = getelementptr inbounds %struct.sockaddr_in, ptr %2, i32 0, i32 1
store i32 %13, ptr %14, align 4
%15 = call i32 @inet_addr(ptr noundef @.str.2)
%16 = getelementptr inbounds %struct.sockaddr_in, ptr %2, i32 0, i32 0
%17 = getelementptr inbounds %struct.TYPE_2__, ptr %16, i32 0, i32 0
store i32 %15, ptr %17, align 4
%18 = load i32, ptr @PF_INET, align 4
%19 = load i32, ptr @SOCK_STREAM, align 4
%20 = call i32 @socket(i32 noundef %18, i32 noundef %19, i32 noundef 0)
store i32 %20, ptr %3, align 4
%21 = load i32, ptr %3, align 4
%22 = call i64 @connect(i32 noundef %21, ptr noundef %2, i32 noundef 12)
%23 = icmp slt i64 %22, 0
br i1 %23, label %24, label %25
24: ; preds = %0
store i32 1, ptr %1, align 4
br label %44
25: ; preds = %0
%26 = load i32, ptr %3, align 4
%27 = call i32 @my_send(i32 noundef %26, ptr noundef @.str.3)
%28 = load i32, ptr %3, align 4
%29 = getelementptr inbounds [25 x i8], ptr %5, i64 0, i64 0
%30 = call i32 @my_send(i32 noundef %28, ptr noundef %29)
%31 = load i32, ptr %3, align 4
%32 = call i32 @my_send(i32 noundef %31, ptr noundef @.str.4)
%33 = load i32, ptr %3, align 4
%34 = call i32 @my_send(i32 noundef %33, ptr noundef @.str.5)
%35 = load i32, ptr %3, align 4
%36 = call i32 @my_send(i32 noundef %35, ptr noundef @.str.4)
%37 = load i32, ptr %3, align 4
%38 = load ptr, ptr %4, align 8
%39 = call i32 @my_send(i32 noundef %37, ptr noundef %38)
%40 = load i32, ptr %3, align 4
%41 = call i32 @my_send(i32 noundef %40, ptr noundef @.str.4)
%42 = load i32, ptr %3, align 4
%43 = call i32 @close(i32 noundef %42)
store i32 0, ptr %1, align 4
br label %44
44: ; preds = %25, %24
%45 = load i32, ptr %1, align 4
ret i32 %45
}
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @bzero(ptr noundef, i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @inet_addr(ptr noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i64 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @my_send(i32 noundef, ptr noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1n_db6_i.c'
source_filename = "/tmp/tmp1n_db6_i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [33 x i8] c"\0AHello from 390.\0ASee you, bye...\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1n_db6_i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [33 x i8] c"\0AHello from 390.\0ASee you, bye...\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdyf5igw7.c'
source_filename = "/tmp/tmpdyf5igw7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@hex.hexchars = internal constant [17 x i8] c"0123456789abcdef\00", align 16
@.str = private unnamed_addr constant [5 x i8] c"%c%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @hex(i8 noundef signext %0) #0 {
%2 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%3 = load i8, ptr %2, align 1
%4 = sext i8 %3 to i32
%5 = ashr i32 %4, 4
%6 = and i32 %5, 15
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds [17 x i8], ptr @hex.hexchars, i64 0, i64 %7
%9 = load i8, ptr %8, align 1
%10 = load i8, ptr %2, align 1
%11 = sext i8 %10 to i32
%12 = and i32 %11, 15
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [17 x i8], ptr @hex.hexchars, i64 0, i64 %13
%15 = load i8, ptr %14, align 1
%16 = call i32 @printf(ptr noundef @.str, i8 noundef signext %9, i8 noundef signext %15)
ret void
}
declare i32 @printf(ptr noundef, i8 noundef signext, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdyf5igw7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@hex.hexchars = internal constant [17 x i8] c"0123456789abcdef\00", align 16
@.str = private unnamed_addr constant [5 x i8] c"%c%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @hex(i8 noundef signext %0) #0 {
%2 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%3 = load i8, ptr %2, align 1
%4 = sext i8 %3 to i32
%5 = ashr i32 %4, 4
%6 = and i32 %5, 15
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds [17 x i8], ptr @hex.hexchars, i64 0, i64 %7
%9 = load i8, ptr %8, align 1
%10 = load i8, ptr %2, align 1
%11 = sext i8 %10 to i32
%12 = and i32 %11, 15
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [17 x i8], ptr @hex.hexchars, i64 0, i64 %13
%15 = load i8, ptr %14, align 1
%16 = call i32 @printf(ptr noundef @.str, i8 noundef signext %9, i8 noundef signext %15)
ret void
}
declare i32 @printf(ptr noundef, i8 noundef signext, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpz5kseapf.c'
source_filename = "/tmp/tmpz5kseapf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fillcourses(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 = %24, %3
%9 = load i32, ptr %7, align 4
%10 = load i32, ptr %6, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %27
12: ; preds = %8
%13 = load ptr, ptr %4, align 8
%14 = load i32, ptr %7, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds ptr, ptr %13, i64 %15
%17 = load ptr, ptr %16, align 8
%18 = load i32, ptr %6, align 4
%19 = call i32 @clashnumber(ptr noundef %17, i32 noundef %18)
%20 = load ptr, ptr %5, align 8
%21 = load i32, ptr %7, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i32, ptr %20, i64 %22
store i32 %19, ptr %23, align 4
br label %24
24: ; preds = %12
%25 = load i32, ptr %7, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %7, align 4
br label %8, !llvm.loop !6
27: ; preds = %8
ret void
}
declare i32 @clashnumber(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpz5kseapf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fillcourses(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 i32, ptr %7, align 4
%9 = load i32, ptr %6, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %.lr.ph, label %29
.lr.ph: ; preds = %3
br label %11
11: ; preds = %.lr.ph, %23
%12 = load ptr, ptr %4, align 8
%13 = load i32, ptr %7, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds ptr, ptr %12, i64 %14
%16 = load ptr, ptr %15, align 8
%17 = load i32, ptr %6, align 4
%18 = call i32 @clashnumber(ptr noundef %16, i32 noundef %17)
%19 = load ptr, ptr %5, align 8
%20 = load i32, ptr %7, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i32, ptr %19, i64 %21
store i32 %18, ptr %22, align 4
br label %23
23: ; preds = %11
%24 = load i32, ptr %7, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %7, align 4
%26 = load i32, ptr %7, align 4
%27 = load i32, ptr %6, align 4
%28 = icmp slt i32 %26, %27
br i1 %28, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %29
29: ; preds = %._crit_edge, %3
ret void
}
declare i32 @clashnumber(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpg_2hxduj.c'
source_filename = "/tmp/tmpg_2hxduj.c"
target datalayout = "e-m:e-p270: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/tmpg_2hxduj.c"
target datalayout = "e-m:e-p270: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/tmpsmw5oc2h.c'
source_filename = "/tmp/tmpsmw5oc2h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [45 x i8] c"Inserisci prima parola (max 100 caratteri): \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = private unnamed_addr constant [47 x i8] c"Inserisci seconda parola (max 100 caratteri): \00", align 1
@.str.3 = private unnamed_addr constant [29 x i8] c"Tot caratteri in comune: %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [39 x i8] c"Tot caratteri in comune distinti: %d (\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c",\00", align 1
@.str.7 = private unnamed_addr constant [3 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 [100 x i8], align 16
%3 = alloca [100 x i8], align 16
%4 = alloca [100 x i8], align 16
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store i32 0, ptr %1, align 4
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%13 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%14 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %13)
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%16 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%17 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %16)
store i32 0, ptr %5, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %8, align 4
br label %18
18: ; preds = %107, %0
%19 = load i32, ptr %5, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %20
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %32
25: ; preds = %18
%26 = load i32, ptr %5, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 %27
%29 = load i8, ptr %28, align 1
%30 = sext i8 %29 to i32
%31 = icmp ne i32 %30, 0
br label %32
32: ; preds = %25, %18
%33 = phi i1 [ false, %18 ], [ %31, %25 ]
br i1 %33, label %34, label %110
34: ; preds = %32
store i32 0, ptr %6, align 4
store i32 0, ptr %10, align 4
br label %35
35: ; preds = %104, %34
%36 = load i32, ptr %6, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 %37
%39 = load i8, ptr %38, align 1
%40 = sext i8 %39 to i32
%41 = icmp ne i32 %40, 0
br i1 %41, label %42, label %45
42: ; preds = %35
%43 = load i32, ptr %10, align 4
%44 = icmp eq i32 %43, 0
br label %45
45: ; preds = %42, %35
%46 = phi i1 [ false, %35 ], [ %44, %42 ]
br i1 %46, label %47, label %107
47: ; preds = %45
%48 = load i32, ptr %5, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %49
%51 = load i8, ptr %50, align 1
%52 = sext i8 %51 to i32
%53 = load i32, ptr %6, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 %54
%56 = load i8, ptr %55, align 1
%57 = sext i8 %56 to i32
%58 = icmp eq i32 %52, %57
br i1 %58, label %59, label %104
59: ; preds = %47
%60 = load i32, ptr %8, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %8, align 4
store i32 1, ptr %10, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %11, align 4
br label %62
62: ; preds = %84, %59
%63 = load i32, ptr %7, align 4
%64 = load i32, ptr %9, align 4
%65 = icmp slt i32 %63, %64
br i1 %65, label %66, label %69
66: ; preds = %62
%67 = load i32, ptr %11, align 4
%68 = icmp eq i32 %67, 0
br label %69
69: ; preds = %66, %62
%70 = phi i1 [ false, %62 ], [ %68, %66 ]
br i1 %70, label %71, label %87
71: ; preds = %69
%72 = load i32, ptr %7, align 4
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 %73
%75 = load i8, ptr %74, align 1
%76 = sext i8 %75 to i32
%77 = load i32, ptr %5, align 4
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %78
%80 = load i8, ptr %79, align 1
%81 = sext i8 %80 to i32
%82 = icmp eq i32 %76, %81
br i1 %82, label %83, label %84
83: ; preds = %71
store i32 1, ptr %11, align 4
br label %84
84: ; preds = %83, %71
%85 = load i32, ptr %7, align 4
%86 = add nsw i32 %85, 1
store i32 %86, ptr %7, align 4
br label %62, !llvm.loop !6
87: ; preds = %69
%88 = load i32, ptr %11, align 4
%89 = icmp eq i32 %88, 0
br i1 %89, label %90, label %100
90: ; preds = %87
%91 = load i32, ptr %5, align 4
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %92
%94 = load i8, ptr %93, align 1
%95 = load i32, ptr %9, align 4
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 %96
store i8 %94, ptr %97, align 1
%98 = load i32, ptr %9, align 4
%99 = add nsw i32 %98, 1
store i32 %99, ptr %9, align 4
br label %100
100: ; preds = %90, %87
%101 = load i32, ptr %6, align 4
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 %102
store i8 1, ptr %103, align 1
br label %104
104: ; preds = %100, %47
%105 = load i32, ptr %6, align 4
%106 = add nsw i32 %105, 1
store i32 %106, ptr %6, align 4
br label %35, !llvm.loop !8
107: ; preds = %45
%108 = load i32, ptr %5, align 4
%109 = add nsw i32 %108, 1
store i32 %109, ptr %5, align 4
br label %18, !llvm.loop !9
110: ; preds = %32
%111 = load i32, ptr %8, align 4
%112 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %111)
%113 = load i32, ptr %9, align 4
%114 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %113)
store i32 0, ptr %5, align 4
br label %115
115: ; preds = %133, %110
%116 = load i32, ptr %5, align 4
%117 = load i32, ptr %9, align 4
%118 = icmp slt i32 %116, %117
br i1 %118, label %119, label %136
119: ; preds = %115
%120 = load i32, ptr %5, align 4
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 %121
%123 = load i8, ptr %122, align 1
%124 = sext i8 %123 to i32
%125 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %124)
%126 = load i32, ptr %5, align 4
%127 = add nsw i32 %126, 1
%128 = load i32, ptr %9, align 4
%129 = icmp slt i32 %127, %128
br i1 %129, label %130, label %132
130: ; preds = %119
%131 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %132
132: ; preds = %130, %119
br label %133
133: ; preds = %132
%134 = load i32, ptr %5, align 4
%135 = add nsw i32 %134, 1
store i32 %135, ptr %5, align 4
br label %115, !llvm.loop !10
136: ; preds = %115
%137 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%138 = load i32, ptr %1, align 4
ret i32 %138
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsmw5oc2h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [45 x i8] c"Inserisci prima parola (max 100 caratteri): \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = private unnamed_addr constant [47 x i8] c"Inserisci seconda parola (max 100 caratteri): \00", align 1
@.str.3 = private unnamed_addr constant [29 x i8] c"Tot caratteri in comune: %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [39 x i8] c"Tot caratteri in comune distinti: %d (\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c",\00", align 1
@.str.7 = private unnamed_addr constant [3 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 [100 x i8], align 16
%3 = alloca [100 x i8], align 16
%4 = alloca [100 x i8], align 16
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store i32 0, ptr %1, align 4
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%13 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 0
%14 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %13)
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%16 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 0
%17 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %16)
store i32 0, ptr %5, align 4
store i32 0, ptr %9, align 4
store i32 0, ptr %8, align 4
br label %18
18: ; preds = %107, %0
%19 = load i32, ptr %5, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %20
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %32
25: ; preds = %18
%26 = load i32, ptr %5, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 %27
%29 = load i8, ptr %28, align 1
%30 = sext i8 %29 to i32
%31 = icmp ne i32 %30, 0
br label %32
32: ; preds = %25, %18
%33 = phi i1 [ false, %18 ], [ %31, %25 ]
br i1 %33, label %34, label %110
34: ; preds = %32
store i32 0, ptr %6, align 4
store i32 0, ptr %10, align 4
br label %35
35: ; preds = %104, %34
%36 = load i32, ptr %6, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 %37
%39 = load i8, ptr %38, align 1
%40 = sext i8 %39 to i32
%41 = icmp ne i32 %40, 0
br i1 %41, label %42, label %45
42: ; preds = %35
%43 = load i32, ptr %10, align 4
%44 = icmp eq i32 %43, 0
br label %45
45: ; preds = %42, %35
%46 = phi i1 [ false, %35 ], [ %44, %42 ]
br i1 %46, label %47, label %107
47: ; preds = %45
%48 = load i32, ptr %5, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %49
%51 = load i8, ptr %50, align 1
%52 = sext i8 %51 to i32
%53 = load i32, ptr %6, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 %54
%56 = load i8, ptr %55, align 1
%57 = sext i8 %56 to i32
%58 = icmp eq i32 %52, %57
br i1 %58, label %59, label %104
59: ; preds = %47
%60 = load i32, ptr %8, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %8, align 4
store i32 1, ptr %10, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %11, align 4
br label %62
62: ; preds = %84, %59
%63 = load i32, ptr %7, align 4
%64 = load i32, ptr %9, align 4
%65 = icmp slt i32 %63, %64
br i1 %65, label %66, label %69
66: ; preds = %62
%67 = load i32, ptr %11, align 4
%68 = icmp eq i32 %67, 0
br label %69
69: ; preds = %66, %62
%70 = phi i1 [ false, %62 ], [ %68, %66 ]
br i1 %70, label %71, label %87
71: ; preds = %69
%72 = load i32, ptr %7, align 4
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 %73
%75 = load i8, ptr %74, align 1
%76 = sext i8 %75 to i32
%77 = load i32, ptr %5, align 4
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %78
%80 = load i8, ptr %79, align 1
%81 = sext i8 %80 to i32
%82 = icmp eq i32 %76, %81
br i1 %82, label %83, label %84
83: ; preds = %71
store i32 1, ptr %11, align 4
br label %84
84: ; preds = %83, %71
%85 = load i32, ptr %7, align 4
%86 = add nsw i32 %85, 1
store i32 %86, ptr %7, align 4
br label %62, !llvm.loop !6
87: ; preds = %69
%88 = load i32, ptr %11, align 4
%89 = icmp eq i32 %88, 0
br i1 %89, label %90, label %100
90: ; preds = %87
%91 = load i32, ptr %5, align 4
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds [100 x i8], ptr %2, i64 0, i64 %92
%94 = load i8, ptr %93, align 1
%95 = load i32, ptr %9, align 4
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 %96
store i8 %94, ptr %97, align 1
%98 = load i32, ptr %9, align 4
%99 = add nsw i32 %98, 1
store i32 %99, ptr %9, align 4
br label %100
100: ; preds = %90, %87
%101 = load i32, ptr %6, align 4
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 %102
store i8 1, ptr %103, align 1
br label %104
104: ; preds = %100, %47
%105 = load i32, ptr %6, align 4
%106 = add nsw i32 %105, 1
store i32 %106, ptr %6, align 4
br label %35, !llvm.loop !8
107: ; preds = %45
%108 = load i32, ptr %5, align 4
%109 = add nsw i32 %108, 1
store i32 %109, ptr %5, align 4
br label %18, !llvm.loop !9
110: ; preds = %32
%111 = load i32, ptr %8, align 4
%112 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %111)
%113 = load i32, ptr %9, align 4
%114 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %113)
store i32 0, ptr %5, align 4
%115 = load i32, ptr %5, align 4
%116 = load i32, ptr %9, align 4
%117 = icmp slt i32 %115, %116
br i1 %117, label %.lr.ph, label %138
.lr.ph: ; preds = %110
br label %118
118: ; preds = %.lr.ph, %132
%119 = load i32, ptr %5, align 4
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds [100 x i8], ptr %4, i64 0, i64 %120
%122 = load i8, ptr %121, align 1
%123 = sext i8 %122 to i32
%124 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %123)
%125 = load i32, ptr %5, align 4
%126 = add nsw i32 %125, 1
%127 = load i32, ptr %9, align 4
%128 = icmp slt i32 %126, %127
br i1 %128, label %129, label %131
129: ; preds = %118
%130 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %131
131: ; preds = %129, %118
br label %132
132: ; preds = %131
%133 = load i32, ptr %5, align 4
%134 = add nsw i32 %133, 1
store i32 %134, ptr %5, align 4
%135 = load i32, ptr %5, align 4
%136 = load i32, ptr %9, align 4
%137 = icmp slt i32 %135, %136
br i1 %137, label %118, label %._crit_edge, !llvm.loop !10
._crit_edge: ; preds = %132
br label %138
138: ; preds = %._crit_edge, %110
%139 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%140 = load i32, ptr %1, align 4
ret i32 %140
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpyntwgi47.c'
source_filename = "/tmp/tmpyntwgi47.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [3 x i8] c"%f\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"Sum: %.0f\0A\00", align 1
@.str.3 = private unnamed_addr constant [11 x i8] c"Avg: %.2f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store float 0.000000e+00, ptr %6, align 4
%7 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %3)
br label %8
8: ; preds = %15, %0
%9 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %5)
%10 = load i32, ptr %2, align 4
%11 = add nsw i32 %10, 1
store i32 %11, ptr %2, align 4
%12 = load float, ptr %6, align 4
%13 = load float, ptr %5, align 4
%14 = fadd float %12, %13
store float %14, ptr %6, align 4
br label %15
15: ; preds = %8
%16 = load i32, ptr %3, align 4
%17 = load i32, ptr %2, align 4
%18 = icmp sgt i32 %16, %17
br i1 %18, label %8, label %19, !llvm.loop !6
19: ; preds = %15
%20 = load float, ptr %6, align 4
%21 = load i32, ptr %3, align 4
%22 = sitofp i32 %21 to float
%23 = fdiv float %20, %22
store float %23, ptr %4, align 4
%24 = load float, ptr %6, align 4
%25 = call i32 @printf(ptr noundef @.str.2, float noundef %24)
%26 = load float, ptr %4, align 4
%27 = call i32 @printf(ptr noundef @.str.3, float noundef %26)
ret i32 0
}
declare i32 @scanf(ptr noundef, ...) #1
declare i32 @printf(ptr noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpyntwgi47.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [3 x i8] c"%f\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"Sum: %.0f\0A\00", align 1
@.str.3 = private unnamed_addr constant [11 x i8] c"Avg: %.2f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store float 0.000000e+00, ptr %6, align 4
%7 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %3)
br label %8
8: ; preds = %15, %0
%9 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %5)
%10 = load i32, ptr %2, align 4
%11 = add nsw i32 %10, 1
store i32 %11, ptr %2, align 4
%12 = load float, ptr %6, align 4
%13 = load float, ptr %5, align 4
%14 = fadd float %12, %13
store float %14, ptr %6, align 4
br label %15
15: ; preds = %8
%16 = load i32, ptr %3, align 4
%17 = load i32, ptr %2, align 4
%18 = icmp sgt i32 %16, %17
br i1 %18, label %8, label %19, !llvm.loop !6
19: ; preds = %15
%20 = load float, ptr %6, align 4
%21 = load i32, ptr %3, align 4
%22 = sitofp i32 %21 to float
%23 = fdiv float %20, %22
store float %23, ptr %4, align 4
%24 = load float, ptr %6, align 4
%25 = call i32 @printf(ptr noundef @.str.2, float noundef %24)
%26 = load float, ptr %4, align 4
%27 = call i32 @printf(ptr noundef @.str.3, float noundef %26)
ret i32 0
}
declare i32 @scanf(ptr noundef, ...) #1
declare i32 @printf(ptr noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpa7hvhba3.c'
source_filename = "/tmp/tmpa7hvhba3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ULLONG_MAX = dso_local global i32 0, align 4
@ERANGE = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @strtoull(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 ptr, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = 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
%14 = load ptr, ptr %4, align 8
store ptr %14, ptr %7, align 8
br label %15
15: ; preds = %20, %3
%16 = load ptr, ptr %7, align 8
%17 = getelementptr inbounds i8, ptr %16, i32 1
store ptr %17, ptr %7, align 8
%18 = load i8, ptr %16, align 1
%19 = zext i8 %18 to i32
store i32 %19, ptr %10, align 4
br label %20
20: ; preds = %15
%21 = load i32, ptr %10, align 4
%22 = call i64 @isspace(i32 noundef %21)
%23 = icmp ne i64 %22, 0
br i1 %23, label %15, label %24, !llvm.loop !6
24: ; preds = %20
%25 = load i32, ptr %10, align 4
%26 = icmp eq i32 %25, 45
br i1 %26, label %27, label %32
27: ; preds = %24
store i32 1, ptr %11, align 4
%28 = load ptr, ptr %7, align 8
%29 = getelementptr inbounds i8, ptr %28, i32 1
store ptr %29, ptr %7, align 8
%30 = load i8, ptr %28, align 1
%31 = sext i8 %30 to i32
store i32 %31, ptr %10, align 4
br label %41
32: ; preds = %24
store i32 0, ptr %11, align 4
%33 = load i32, ptr %10, align 4
%34 = icmp eq i32 %33, 43
br i1 %34, label %35, label %40
35: ; preds = %32
%36 = load ptr, ptr %7, align 8
%37 = getelementptr inbounds i8, ptr %36, i32 1
store ptr %37, ptr %7, align 8
%38 = load i8, ptr %36, align 1
%39 = sext i8 %38 to i32
store i32 %39, ptr %10, align 4
br label %40
40: ; preds = %35, %32
br label %41
41: ; preds = %40, %27
%42 = load i32, ptr %6, align 4
%43 = icmp eq i32 %42, 0
br i1 %43, label %47, label %44
44: ; preds = %41
%45 = load i32, ptr %6, align 4
%46 = icmp eq i32 %45, 16
br i1 %46, label %47, label %67
47: ; preds = %44, %41
%48 = load i32, ptr %10, align 4
%49 = icmp eq i32 %48, 48
br i1 %49, label %50, label %67
50: ; preds = %47
%51 = load ptr, ptr %7, align 8
%52 = load i8, ptr %51, align 1
%53 = sext i8 %52 to i32
%54 = icmp eq i32 %53, 120
br i1 %54, label %60, label %55
55: ; preds = %50
%56 = load ptr, ptr %7, align 8
%57 = load i8, ptr %56, align 1
%58 = sext i8 %57 to i32
%59 = icmp eq i32 %58, 88
br i1 %59, label %60, label %67
60: ; preds = %55, %50
%61 = load ptr, ptr %7, align 8
%62 = getelementptr inbounds i8, ptr %61, i64 1
%63 = load i8, ptr %62, align 1
%64 = sext i8 %63 to i32
store i32 %64, ptr %10, align 4
%65 = load ptr, ptr %7, align 8
%66 = getelementptr inbounds i8, ptr %65, i64 2
store ptr %66, ptr %7, align 8
store i32 16, ptr %6, align 4
br label %67
67: ; preds = %60, %55, %47, %44
%68 = load i32, ptr %6, align 4
%69 = icmp eq i32 %68, 0
br i1 %69, label %70, label %75
70: ; preds = %67
%71 = load i32, ptr %10, align 4
%72 = icmp eq i32 %71, 48
%73 = zext i1 %72 to i64
%74 = select i1 %72, i32 8, i32 10
store i32 %74, ptr %6, align 4
br label %75
75: ; preds = %70, %67
%76 = load i32, ptr %6, align 4
switch i32 %76, label %101 [
i32 4, label %77
i32 8, label %83
i32 10, label %89
i32 16, label %95
]
77: ; preds = %75
%78 = load i32, ptr @ULLONG_MAX, align 4
%79 = sdiv i32 %78, 4
%80 = sext i32 %79 to i64
store i64 %80, ptr %9, align 8
%81 = load i32, ptr @ULLONG_MAX, align 4
%82 = srem i32 %81, 4
store i32 %82, ptr %13, align 4
br label %109
83: ; preds = %75
%84 = load i32, ptr @ULLONG_MAX, align 4
%85 = sdiv i32 %84, 8
%86 = sext i32 %85 to i64
store i64 %86, ptr %9, align 8
%87 = load i32, ptr @ULLONG_MAX, align 4
%88 = srem i32 %87, 8
store i32 %88, ptr %13, align 4
br label %109
89: ; preds = %75
%90 = load i32, ptr @ULLONG_MAX, align 4
%91 = sdiv i32 %90, 10
%92 = sext i32 %91 to i64
store i64 %92, ptr %9, align 8
%93 = load i32, ptr @ULLONG_MAX, align 4
%94 = srem i32 %93, 10
store i32 %94, ptr %13, align 4
br label %109
95: ; preds = %75
%96 = load i32, ptr @ULLONG_MAX, align 4
%97 = sdiv i32 %96, 16
%98 = sext i32 %97 to i64
store i64 %98, ptr %9, align 8
%99 = load i32, ptr @ULLONG_MAX, align 4
%100 = srem i32 %99, 16
store i32 %100, ptr %13, align 4
br label %109
101: ; preds = %75
%102 = load i32, ptr @ULLONG_MAX, align 4
%103 = load i32, ptr %6, align 4
%104 = sdiv i32 %102, %103
%105 = sext i32 %104 to i64
store i64 %105, ptr %9, align 8
%106 = load i32, ptr @ULLONG_MAX, align 4
%107 = load i32, ptr %6, align 4
%108 = srem i32 %106, %107
store i32 %108, ptr %13, align 4
br label %109
109: ; preds = %101, %95, %89, %83, %77
store i64 0, ptr %8, align 8
store i32 0, ptr %12, align 4
br label %110
110: ; preds = %166, %109
%111 = load i32, ptr %10, align 4
%112 = call i64 @isdigit(i32 noundef %111)
%113 = icmp ne i64 %112, 0
br i1 %113, label %114, label %117
114: ; preds = %110
%115 = load i32, ptr %10, align 4
%116 = sub nsw i32 %115, 48
store i32 %116, ptr %10, align 4
br label %131
117: ; preds = %110
%118 = load i32, ptr %10, align 4
%119 = call i64 @isalpha(i32 noundef %118)
%120 = icmp ne i64 %119, 0
br i1 %120, label %121, label %129
121: ; preds = %117
%122 = load i32, ptr %10, align 4
%123 = call i64 @isupper(i32 noundef %122)
%124 = icmp ne i64 %123, 0
%125 = zext i1 %124 to i64
%126 = select i1 %124, i32 55, i32 87
%127 = load i32, ptr %10, align 4
%128 = sub nsw i32 %127, %126
store i32 %128, ptr %10, align 4
br label %130
129: ; preds = %117
br label %171
130: ; preds = %121
br label %131
131: ; preds = %130, %114
%132 = load i32, ptr %10, align 4
%133 = load i32, ptr %6, align 4
%134 = icmp sge i32 %132, %133
br i1 %134, label %135, label %136
135: ; preds = %131
br label %171
136: ; preds = %131
%137 = load i32, ptr %12, align 4
%138 = icmp slt i32 %137, 0
br i1 %138, label %139, label %140
139: ; preds = %136
br label %166
140: ; preds = %136
%141 = load i64, ptr %8, align 8
%142 = load i64, ptr %9, align 8
%143 = icmp ugt i64 %141, %142
br i1 %143, label %152, label %144
144: ; preds = %140
%145 = load i64, ptr %8, align 8
%146 = load i64, ptr %9, align 8
%147 = icmp eq i64 %145, %146
br i1 %147, label %148, label %156
148: ; preds = %144
%149 = load i32, ptr %10, align 4
%150 = load i32, ptr %13, align 4
%151 = icmp sgt i32 %149, %150
br i1 %151, label %152, label %156
152: ; preds = %148, %140
store i32 -1, ptr %12, align 4
%153 = load i32, ptr @ULLONG_MAX, align 4
%154 = sext i32 %153 to i64
store i64 %154, ptr %8, align 8
%155 = load i32, ptr @ERANGE, align 4
store i32 %155, ptr @errno, align 4
br label %165
156: ; preds = %148, %144
store i32 1, ptr %12, align 4
%157 = load i32, ptr %6, align 4
%158 = sext i32 %157 to i64
%159 = load i64, ptr %8, align 8
%160 = mul i64 %159, %158
store i64 %160, ptr %8, align 8
%161 = load i32, ptr %10, align 4
%162 = sext i32 %161 to i64
%163 = load i64, ptr %8, align 8
%164 = add i64 %163, %162
store i64 %164, ptr %8, align 8
br label %165
165: ; preds = %156, %152
br label %166
166: ; preds = %165, %139
%167 = load ptr, ptr %7, align 8
%168 = getelementptr inbounds i8, ptr %167, i32 1
store ptr %168, ptr %7, align 8
%169 = load i8, ptr %167, align 1
%170 = zext i8 %169 to i32
store i32 %170, ptr %10, align 4
br label %110
171: ; preds = %135, %129
%172 = load i32, ptr %11, align 4
%173 = icmp ne i32 %172, 0
br i1 %173, label %174, label %180
174: ; preds = %171
%175 = load i32, ptr %12, align 4
%176 = icmp sgt i32 %175, 0
br i1 %176, label %177, label %180
177: ; preds = %174
%178 = load i64, ptr %8, align 8
%179 = sub i64 0, %178
store i64 %179, ptr %8, align 8
br label %180
180: ; preds = %177, %174, %171
%181 = load ptr, ptr %5, align 8
%182 = icmp ne ptr %181, null
br i1 %182, label %183, label %194
183: ; preds = %180
%184 = load i32, ptr %12, align 4
%185 = icmp ne i32 %184, 0
br i1 %185, label %186, label %189
186: ; preds = %183
%187 = load ptr, ptr %7, align 8
%188 = getelementptr inbounds i8, ptr %187, i64 -1
br label %191
189: ; preds = %183
%190 = load ptr, ptr %4, align 8
br label %191
191: ; preds = %189, %186
%192 = phi ptr [ %188, %186 ], [ %190, %189 ]
%193 = load ptr, ptr %5, align 8
store ptr %192, ptr %193, align 8
br label %194
194: ; preds = %191, %180
%195 = load i64, ptr %8, align 8
ret i64 %195
}
declare i64 @isspace(i32 noundef) #1
declare i64 @isdigit(i32 noundef) #1
declare i64 @isalpha(i32 noundef) #1
declare i64 @isupper(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpa7hvhba3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ULLONG_MAX = dso_local global i32 0, align 4
@ERANGE = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @strtoull(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 ptr, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = 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
%14 = load ptr, ptr %4, align 8
store ptr %14, ptr %7, align 8
br label %15
15: ; preds = %20, %3
%16 = load ptr, ptr %7, align 8
%17 = getelementptr inbounds i8, ptr %16, i32 1
store ptr %17, ptr %7, align 8
%18 = load i8, ptr %16, align 1
%19 = zext i8 %18 to i32
store i32 %19, ptr %10, align 4
br label %20
20: ; preds = %15
%21 = load i32, ptr %10, align 4
%22 = call i64 @isspace(i32 noundef %21)
%23 = icmp ne i64 %22, 0
br i1 %23, label %15, label %24, !llvm.loop !6
24: ; preds = %20
%25 = load i32, ptr %10, align 4
%26 = icmp eq i32 %25, 45
br i1 %26, label %27, label %32
27: ; preds = %24
store i32 1, ptr %11, align 4
%28 = load ptr, ptr %7, align 8
%29 = getelementptr inbounds i8, ptr %28, i32 1
store ptr %29, ptr %7, align 8
%30 = load i8, ptr %28, align 1
%31 = sext i8 %30 to i32
store i32 %31, ptr %10, align 4
br label %41
32: ; preds = %24
store i32 0, ptr %11, align 4
%33 = load i32, ptr %10, align 4
%34 = icmp eq i32 %33, 43
br i1 %34, label %35, label %40
35: ; preds = %32
%36 = load ptr, ptr %7, align 8
%37 = getelementptr inbounds i8, ptr %36, i32 1
store ptr %37, ptr %7, align 8
%38 = load i8, ptr %36, align 1
%39 = sext i8 %38 to i32
store i32 %39, ptr %10, align 4
br label %40
40: ; preds = %35, %32
br label %41
41: ; preds = %40, %27
%42 = load i32, ptr %6, align 4
%43 = icmp eq i32 %42, 0
br i1 %43, label %47, label %44
44: ; preds = %41
%45 = load i32, ptr %6, align 4
%46 = icmp eq i32 %45, 16
br i1 %46, label %47, label %67
47: ; preds = %44, %41
%48 = load i32, ptr %10, align 4
%49 = icmp eq i32 %48, 48
br i1 %49, label %50, label %67
50: ; preds = %47
%51 = load ptr, ptr %7, align 8
%52 = load i8, ptr %51, align 1
%53 = sext i8 %52 to i32
%54 = icmp eq i32 %53, 120
br i1 %54, label %60, label %55
55: ; preds = %50
%56 = load ptr, ptr %7, align 8
%57 = load i8, ptr %56, align 1
%58 = sext i8 %57 to i32
%59 = icmp eq i32 %58, 88
br i1 %59, label %60, label %67
60: ; preds = %55, %50
%61 = load ptr, ptr %7, align 8
%62 = getelementptr inbounds i8, ptr %61, i64 1
%63 = load i8, ptr %62, align 1
%64 = sext i8 %63 to i32
store i32 %64, ptr %10, align 4
%65 = load ptr, ptr %7, align 8
%66 = getelementptr inbounds i8, ptr %65, i64 2
store ptr %66, ptr %7, align 8
store i32 16, ptr %6, align 4
br label %67
67: ; preds = %60, %55, %47, %44
%68 = load i32, ptr %6, align 4
%69 = icmp eq i32 %68, 0
br i1 %69, label %70, label %75
70: ; preds = %67
%71 = load i32, ptr %10, align 4
%72 = icmp eq i32 %71, 48
%73 = zext i1 %72 to i64
%74 = select i1 %72, i32 8, i32 10
store i32 %74, ptr %6, align 4
br label %75
75: ; preds = %70, %67
%76 = load i32, ptr %6, align 4
switch i32 %76, label %101 [
i32 4, label %77
i32 8, label %83
i32 10, label %89
i32 16, label %95
]
77: ; preds = %75
%78 = load i32, ptr @ULLONG_MAX, align 4
%79 = sdiv i32 %78, 4
%80 = sext i32 %79 to i64
store i64 %80, ptr %9, align 8
%81 = load i32, ptr @ULLONG_MAX, align 4
%82 = srem i32 %81, 4
store i32 %82, ptr %13, align 4
br label %109
83: ; preds = %75
%84 = load i32, ptr @ULLONG_MAX, align 4
%85 = sdiv i32 %84, 8
%86 = sext i32 %85 to i64
store i64 %86, ptr %9, align 8
%87 = load i32, ptr @ULLONG_MAX, align 4
%88 = srem i32 %87, 8
store i32 %88, ptr %13, align 4
br label %109
89: ; preds = %75
%90 = load i32, ptr @ULLONG_MAX, align 4
%91 = sdiv i32 %90, 10
%92 = sext i32 %91 to i64
store i64 %92, ptr %9, align 8
%93 = load i32, ptr @ULLONG_MAX, align 4
%94 = srem i32 %93, 10
store i32 %94, ptr %13, align 4
br label %109
95: ; preds = %75
%96 = load i32, ptr @ULLONG_MAX, align 4
%97 = sdiv i32 %96, 16
%98 = sext i32 %97 to i64
store i64 %98, ptr %9, align 8
%99 = load i32, ptr @ULLONG_MAX, align 4
%100 = srem i32 %99, 16
store i32 %100, ptr %13, align 4
br label %109
101: ; preds = %75
%102 = load i32, ptr @ULLONG_MAX, align 4
%103 = load i32, ptr %6, align 4
%104 = sdiv i32 %102, %103
%105 = sext i32 %104 to i64
store i64 %105, ptr %9, align 8
%106 = load i32, ptr @ULLONG_MAX, align 4
%107 = load i32, ptr %6, align 4
%108 = srem i32 %106, %107
store i32 %108, ptr %13, align 4
br label %109
109: ; preds = %101, %95, %89, %83, %77
store i64 0, ptr %8, align 8
store i32 0, ptr %12, align 4
br label %110
110: ; preds = %166, %109
%111 = load i32, ptr %10, align 4
%112 = call i64 @isdigit(i32 noundef %111)
%113 = icmp ne i64 %112, 0
br i1 %113, label %114, label %117
114: ; preds = %110
%115 = load i32, ptr %10, align 4
%116 = sub nsw i32 %115, 48
store i32 %116, ptr %10, align 4
br label %131
117: ; preds = %110
%118 = load i32, ptr %10, align 4
%119 = call i64 @isalpha(i32 noundef %118)
%120 = icmp ne i64 %119, 0
br i1 %120, label %121, label %129
121: ; preds = %117
%122 = load i32, ptr %10, align 4
%123 = call i64 @isupper(i32 noundef %122)
%124 = icmp ne i64 %123, 0
%125 = zext i1 %124 to i64
%126 = select i1 %124, i32 55, i32 87
%127 = load i32, ptr %10, align 4
%128 = sub nsw i32 %127, %126
store i32 %128, ptr %10, align 4
br label %130
129: ; preds = %117
br label %171
130: ; preds = %121
br label %131
131: ; preds = %130, %114
%132 = load i32, ptr %10, align 4
%133 = load i32, ptr %6, align 4
%134 = icmp sge i32 %132, %133
br i1 %134, label %135, label %136
135: ; preds = %131
br label %171
136: ; preds = %131
%137 = load i32, ptr %12, align 4
%138 = icmp slt i32 %137, 0
br i1 %138, label %139, label %140
139: ; preds = %136
br label %166
140: ; preds = %136
%141 = load i64, ptr %8, align 8
%142 = load i64, ptr %9, align 8
%143 = icmp ugt i64 %141, %142
br i1 %143, label %152, label %144
144: ; preds = %140
%145 = load i64, ptr %8, align 8
%146 = load i64, ptr %9, align 8
%147 = icmp eq i64 %145, %146
br i1 %147, label %148, label %156
148: ; preds = %144
%149 = load i32, ptr %10, align 4
%150 = load i32, ptr %13, align 4
%151 = icmp sgt i32 %149, %150
br i1 %151, label %152, label %156
152: ; preds = %148, %140
store i32 -1, ptr %12, align 4
%153 = load i32, ptr @ULLONG_MAX, align 4
%154 = sext i32 %153 to i64
store i64 %154, ptr %8, align 8
%155 = load i32, ptr @ERANGE, align 4
store i32 %155, ptr @errno, align 4
br label %165
156: ; preds = %148, %144
store i32 1, ptr %12, align 4
%157 = load i32, ptr %6, align 4
%158 = sext i32 %157 to i64
%159 = load i64, ptr %8, align 8
%160 = mul i64 %159, %158
store i64 %160, ptr %8, align 8
%161 = load i32, ptr %10, align 4
%162 = sext i32 %161 to i64
%163 = load i64, ptr %8, align 8
%164 = add i64 %163, %162
store i64 %164, ptr %8, align 8
br label %165
165: ; preds = %156, %152
br label %166
166: ; preds = %165, %139
%167 = load ptr, ptr %7, align 8
%168 = getelementptr inbounds i8, ptr %167, i32 1
store ptr %168, ptr %7, align 8
%169 = load i8, ptr %167, align 1
%170 = zext i8 %169 to i32
store i32 %170, ptr %10, align 4
br label %110
171: ; preds = %135, %129
%172 = load i32, ptr %11, align 4
%173 = icmp ne i32 %172, 0
br i1 %173, label %174, label %180
174: ; preds = %171
%175 = load i32, ptr %12, align 4
%176 = icmp sgt i32 %175, 0
br i1 %176, label %177, label %180
177: ; preds = %174
%178 = load i64, ptr %8, align 8
%179 = sub i64 0, %178
store i64 %179, ptr %8, align 8
br label %180
180: ; preds = %177, %174, %171
%181 = load ptr, ptr %5, align 8
%182 = icmp ne ptr %181, null
br i1 %182, label %183, label %194
183: ; preds = %180
%184 = load i32, ptr %12, align 4
%185 = icmp ne i32 %184, 0
br i1 %185, label %186, label %189
186: ; preds = %183
%187 = load ptr, ptr %7, align 8
%188 = getelementptr inbounds i8, ptr %187, i64 -1
br label %191
189: ; preds = %183
%190 = load ptr, ptr %4, align 8
br label %191
191: ; preds = %189, %186
%192 = phi ptr [ %188, %186 ], [ %190, %189 ]
%193 = load ptr, ptr %5, align 8
store ptr %192, ptr %193, align 8
br label %194
194: ; preds = %191, %180
%195 = load i64, ptr %8, align 8
ret i64 %195
}
declare i64 @isspace(i32 noundef) #1
declare i64 @isdigit(i32 noundef) #1
declare i64 @isalpha(i32 noundef) #1
declare i64 @isupper(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp17bat03a.c'
source_filename = "/tmp/tmp17bat03a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @memmove_bad2() #0 {
%1 = alloca [10 x i32], align 16
%2 = alloca [20 x i32], align 16
%3 = getelementptr inbounds [20 x i32], ptr %2, i64 0, i64 0
%4 = getelementptr inbounds [10 x i32], ptr %1, i64 0, i64 0
%5 = call i32 @memmove(ptr noundef %3, ptr noundef %4, i32 noundef 44)
ret void
}
declare i32 @memmove(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp17bat03a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @memmove_bad2() #0 {
%1 = alloca [10 x i32], align 16
%2 = alloca [20 x i32], align 16
%3 = getelementptr inbounds [20 x i32], ptr %2, i64 0, i64 0
%4 = getelementptr inbounds [10 x i32], ptr %1, i64 0, i64 0
%5 = call i32 @memmove(ptr noundef %3, ptr noundef %4, i32 noundef 44)
ret void
}
declare i32 @memmove(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzawdk_p8.c'
source_filename = "/tmp/tmpzawdk_p8.c"
target datalayout = "e-m:e-p270: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/tmpzawdk_p8.c"
target datalayout = "e-m:e-p270: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/tmp3wrzix0q.c'
source_filename = "/tmp/tmp3wrzix0q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
%7 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %4)
%8 = load i32, ptr %3, align 4
%9 = load i32, ptr %2, align 4
%10 = sub nsw i32 %8, %9
store i32 %10, ptr %5, align 4
%11 = load i32, ptr %4, align 4
%12 = load i32, ptr %3, align 4
%13 = sub nsw i32 %11, %12
store i32 %13, ptr %6, align 4
%14 = load i32, ptr %5, align 4
%15 = load i32, ptr %6, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %17, label %20
17: ; preds = %0
%18 = load i32, ptr %6, align 4
%19 = sub nsw i32 %18, 1
br label %23
20: ; preds = %0
%21 = load i32, ptr %5, align 4
%22 = sub nsw i32 %21, 1
br label %23
23: ; preds = %20, %17
%24 = phi i32 [ %19, %17 ], [ %22, %20 ]
%25 = call i32 @printf(ptr noundef @.str.1, i32 noundef %24)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3wrzix0q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [3 x i8] c"%d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 0, ptr %1, align 4
%7 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %4)
%8 = load i32, ptr %3, align 4
%9 = load i32, ptr %2, align 4
%10 = sub nsw i32 %8, %9
store i32 %10, ptr %5, align 4
%11 = load i32, ptr %4, align 4
%12 = load i32, ptr %3, align 4
%13 = sub nsw i32 %11, %12
store i32 %13, ptr %6, align 4
%14 = load i32, ptr %5, align 4
%15 = load i32, ptr %6, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %17, label %20
17: ; preds = %0
%18 = load i32, ptr %6, align 4
%19 = sub nsw i32 %18, 1
br label %23
20: ; preds = %0
%21 = load i32, ptr %5, align 4
%22 = sub nsw i32 %21, 1
br label %23
23: ; preds = %20, %17
%24 = phi i32 [ %19, %17 ], [ %22, %20 ]
%25 = call i32 @printf(ptr noundef @.str.1, i32 noundef %24)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpljjg5nga.c'
source_filename = "/tmp/tmpljjg5nga.c"
target datalayout = "e-m:e-p270: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/tmpljjg5nga.c"
target datalayout = "e-m:e-p270: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/tmpdoqj0pdh.c'
source_filename = "/tmp/tmpdoqj0pdh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Serial_Read_Arduino(i32 noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%9 = load i32, ptr %5, align 4
%10 = load ptr, ptr %6, align 8
%11 = load ptr, ptr %7, align 8
%12 = load i32, ptr %8, align 4
%13 = call i32 @customSerial_Read(i32 noundef %9, ptr noundef %10, ptr noundef %11, i32 noundef %12)
ret void
}
declare i32 @customSerial_Read(i32 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/tmpdoqj0pdh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Serial_Read_Arduino(i32 noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%9 = load i32, ptr %5, align 4
%10 = load ptr, ptr %6, align 8
%11 = load ptr, ptr %7, align 8
%12 = load i32, ptr %8, align 4
%13 = call i32 @customSerial_Read(i32 noundef %9, ptr noundef %10, ptr noundef %11, i32 noundef %12)
ret void
}
declare i32 @customSerial_Read(i32 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/tmpy1pydm_v.c'
source_filename = "/tmp/tmpy1pydm_v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_scalar_equal(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, float noundef %4, float noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca float, align 4
%12 = alloca float, align 4
store ptr %0, ptr %7, align 8
store i32 %1, ptr %8, align 4
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store float %4, ptr %11, align 4
store float %5, ptr %12, align 4
%13 = load float, ptr %11, align 4
%14 = load float, ptr %12, align 4
%15 = fcmp une float %13, %14
br i1 %15, label %16, label %22
16: ; preds = %6
%17 = load ptr, ptr %7, align 8
%18 = load i32, ptr %8, align 4
%19 = load ptr, ptr %9, align 8
%20 = load ptr, ptr %10, align 8
%21 = call i32 @__test_print_failed(ptr noundef %17, i32 noundef %18, ptr noundef %19, ptr noundef %20)
br label %25
22: ; preds = %6
%23 = load ptr, ptr %10, align 8
%24 = call i32 @__test_print_passed(ptr noundef %23)
br label %25
25: ; preds = %22, %16
ret void
}
declare i32 @__test_print_failed(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @__test_print_passed(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpy1pydm_v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_scalar_equal(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, float noundef %4, float noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca float, align 4
%12 = alloca float, align 4
store ptr %0, ptr %7, align 8
store i32 %1, ptr %8, align 4
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store float %4, ptr %11, align 4
store float %5, ptr %12, align 4
%13 = load float, ptr %11, align 4
%14 = load float, ptr %12, align 4
%15 = fcmp une float %13, %14
br i1 %15, label %16, label %22
16: ; preds = %6
%17 = load ptr, ptr %7, align 8
%18 = load i32, ptr %8, align 4
%19 = load ptr, ptr %9, align 8
%20 = load ptr, ptr %10, align 8
%21 = call i32 @__test_print_failed(ptr noundef %17, i32 noundef %18, ptr noundef %19, ptr noundef %20)
br label %25
22: ; preds = %6
%23 = load ptr, ptr %10, align 8
%24 = call i32 @__test_print_passed(ptr noundef %23)
br label %25
25: ; preds = %22, %16
ret void
}
declare i32 @__test_print_failed(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @__test_print_passed(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpl0k311tg.c'
source_filename = "/tmp/tmpl0k311tg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 (...) @func()
ret i32 0
}
declare i32 @func(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpl0k311tg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = call i32 (...) @func()
ret i32 0
}
declare i32 @func(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6admh6kr.c'
source_filename = "/tmp/tmp6admh6kr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@COLOR_WHITE = dso_local global i32 0, align 4
@COLOR_BLUE = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [34 x i8] c" \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @nstatus(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @COLOR_WHITE, align 4
%4 = load i32, ptr @COLOR_BLUE, align 4
%5 = call i32 @init_pair(i32 noundef 1, i32 noundef %3, i32 noundef %4)
%6 = call i32 @COLOR_PAIR(i32 noundef 1)
%7 = call i32 @attron(i32 noundef %6)
%8 = call i32 @move(i32 noundef 5, i32 noundef 20)
%9 = call i32 (ptr, ...) @printw(ptr noundef @.str)
%10 = call i32 @move(i32 noundef 5, i32 noundef 20)
%11 = load ptr, ptr %2, align 8
%12 = call i32 (ptr, ...) @printw(ptr noundef @.str.1, ptr noundef %11)
%13 = call i32 @COLOR_PAIR(i32 noundef 1)
%14 = call i32 @attroff(i32 noundef %13)
%15 = call i32 (...) @refresh()
ret void
}
declare i32 @init_pair(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @attron(i32 noundef) #1
declare i32 @COLOR_PAIR(i32 noundef) #1
declare i32 @move(i32 noundef, i32 noundef) #1
declare i32 @printw(ptr noundef, ...) #1
declare i32 @attroff(i32 noundef) #1
declare i32 @refresh(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6admh6kr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@COLOR_WHITE = dso_local global i32 0, align 4
@COLOR_BLUE = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [34 x i8] c" \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @nstatus(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load i32, ptr @COLOR_WHITE, align 4
%4 = load i32, ptr @COLOR_BLUE, align 4
%5 = call i32 @init_pair(i32 noundef 1, i32 noundef %3, i32 noundef %4)
%6 = call i32 @COLOR_PAIR(i32 noundef 1)
%7 = call i32 @attron(i32 noundef %6)
%8 = call i32 @move(i32 noundef 5, i32 noundef 20)
%9 = call i32 (ptr, ...) @printw(ptr noundef @.str)
%10 = call i32 @move(i32 noundef 5, i32 noundef 20)
%11 = load ptr, ptr %2, align 8
%12 = call i32 (ptr, ...) @printw(ptr noundef @.str.1, ptr noundef %11)
%13 = call i32 @COLOR_PAIR(i32 noundef 1)
%14 = call i32 @attroff(i32 noundef %13)
%15 = call i32 (...) @refresh()
ret void
}
declare i32 @init_pair(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @attron(i32 noundef) #1
declare i32 @COLOR_PAIR(i32 noundef) #1
declare i32 @move(i32 noundef, i32 noundef) #1
declare i32 @printw(ptr noundef, ...) #1
declare i32 @attroff(i32 noundef) #1
declare i32 @refresh(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp4jw3ufq7.c'
source_filename = "/tmp/tmp4jw3ufq7.c"
target datalayout = "e-m:e-p270: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/tmp4jw3ufq7.c"
target datalayout = "e-m:e-p270: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/tmpwv_hp122.c'
source_filename = "/tmp/tmpwv_hp122.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [51 x i8] c"NOT IMPLEMENTED:pa_context_set_sink_mute_by_index\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @pa_context_set_sink_mute_by_index() #0 {
%1 = alloca i32, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = load i32, ptr %1, align 4
ret i32 %3
}
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/tmpwv_hp122.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [51 x i8] c"NOT IMPLEMENTED:pa_context_set_sink_mute_by_index\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @pa_context_set_sink_mute_by_index() #0 {
%1 = alloca i32, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = load i32, ptr %1, align 4
ret i32 %3
}
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/tmp3zuvvddp.c'
source_filename = "/tmp/tmp3zuvvddp.c"
target datalayout = "e-m:e-p270: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/tmp3zuvvddp.c"
target datalayout = "e-m:e-p270: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/tmpv8ofksmm.c'
source_filename = "/tmp/tmpv8ofksmm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@strtok.last = internal global ptr null, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @strtok(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%10 = load ptr, ptr %4, align 8
%11 = icmp eq ptr %10, null
br i1 %11, label %12, label %16
12: ; preds = %2
%13 = load ptr, ptr @strtok.last, align 8
store ptr %13, ptr %4, align 8
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %16
15: ; preds = %12
store ptr null, ptr %3, align 8
br label %70
16: ; preds = %12, %2
br label %17
17: ; preds = %33, %16
%18 = load ptr, ptr %4, align 8
%19 = getelementptr inbounds i8, ptr %18, i32 1
store ptr %19, ptr %4, align 8
%20 = load i8, ptr %18, align 1
%21 = sext i8 %20 to i32
store i32 %21, ptr %7, align 4
%22 = load ptr, ptr %5, align 8
store ptr %22, ptr %6, align 8
br label %23
23: ; preds = %34, %17
%24 = load ptr, ptr %6, align 8
%25 = getelementptr inbounds i8, ptr %24, i32 1
store ptr %25, ptr %6, align 8
%26 = load i8, ptr %24, align 1
%27 = sext i8 %26 to i32
store i32 %27, ptr %8, align 4
%28 = icmp ne i32 %27, 0
br i1 %28, label %29, label %35
29: ; preds = %23
%30 = load i32, ptr %7, align 4
%31 = load i32, ptr %8, align 4
%32 = icmp eq i32 %30, %31
br i1 %32, label %33, label %34
33: ; preds = %29
br label %17
34: ; preds = %29
br label %23, !llvm.loop !6
35: ; preds = %23
%36 = load i32, ptr %7, align 4
%37 = icmp eq i32 %36, 0
br i1 %37, label %38, label %39
38: ; preds = %35
store ptr null, ptr @strtok.last, align 8
store ptr null, ptr %3, align 8
br label %70
39: ; preds = %35
%40 = load ptr, ptr %4, align 8
%41 = getelementptr inbounds i8, ptr %40, i64 -1
store ptr %41, ptr %9, align 8
br label %42
42: ; preds = %69, %39
%43 = load ptr, ptr %4, align 8
%44 = getelementptr inbounds i8, ptr %43, i32 1
store ptr %44, ptr %4, align 8
%45 = load i8, ptr %43, align 1
%46 = sext i8 %45 to i32
store i32 %46, ptr %7, align 4
%47 = load ptr, ptr %5, align 8
store ptr %47, ptr %6, align 8
br label %48
48: ; preds = %66, %42
%49 = load ptr, ptr %6, align 8
%50 = getelementptr inbounds i8, ptr %49, i32 1
store ptr %50, ptr %6, align 8
%51 = load i8, ptr %49, align 1
%52 = sext i8 %51 to i32
store i32 %52, ptr %8, align 4
%53 = load i32, ptr %7, align 4
%54 = icmp eq i32 %52, %53
br i1 %54, label %55, label %65
55: ; preds = %48
%56 = load i32, ptr %7, align 4
%57 = icmp eq i32 %56, 0
br i1 %57, label %58, label %59
58: ; preds = %55
store ptr null, ptr %4, align 8
br label %62
59: ; preds = %55
%60 = load ptr, ptr %4, align 8
%61 = getelementptr inbounds i8, ptr %60, i64 -1
store i8 0, ptr %61, align 1
br label %62
62: ; preds = %59, %58
%63 = load ptr, ptr %4, align 8
store ptr %63, ptr @strtok.last, align 8
%64 = load ptr, ptr %9, align 8
store ptr %64, ptr %3, align 8
br label %70
65: ; preds = %48
br label %66
66: ; preds = %65
%67 = load i32, ptr %8, align 4
%68 = icmp ne i32 %67, 0
br i1 %68, label %48, label %69, !llvm.loop !8
69: ; preds = %66
br label %42
70: ; preds = %62, %38, %15
%71 = load ptr, ptr %3, align 8
ret ptr %71
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpv8ofksmm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@strtok.last = internal global ptr null, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @strtok(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%10 = load ptr, ptr %4, align 8
%11 = icmp eq ptr %10, null
br i1 %11, label %12, label %16
12: ; preds = %2
%13 = load ptr, ptr @strtok.last, align 8
store ptr %13, ptr %4, align 8
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %16
15: ; preds = %12
store ptr null, ptr %3, align 8
br label %83
16: ; preds = %12, %2
%17 = load ptr, ptr %4, align 8
%18 = getelementptr inbounds i8, ptr %17, i32 1
store ptr %18, ptr %4, align 8
%19 = load i8, ptr %17, align 1
%20 = sext i8 %19 to i32
store i32 %20, ptr %7, align 4
%21 = load ptr, ptr %5, align 8
store ptr %21, ptr %6, align 8
%22 = load ptr, ptr %6, align 8
%23 = getelementptr inbounds i8, ptr %22, i32 1
store ptr %23, ptr %6, align 8
%24 = load i8, ptr %22, align 1
%25 = sext i8 %24 to i32
store i32 %25, ptr %8, align 4
%26 = icmp ne i32 %25, 0
br i1 %26, label %.lr.ph.lr.ph, label %._crit_edge
.lr.ph.lr.ph: ; preds = %16
br label %.lr.ph
.lr.ph: ; preds = %.lr.ph.lr.ph, %37
br label %33
27: ; preds = %33
%28 = load ptr, ptr %6, align 8
%29 = getelementptr inbounds i8, ptr %28, i32 1
store ptr %29, ptr %6, align 8
%30 = load i8, ptr %28, align 1
%31 = sext i8 %30 to i32
store i32 %31, ptr %8, align 4
%32 = icmp ne i32 %31, 0
br i1 %32, label %33, label %._crit_edge1, !llvm.loop !6
33: ; preds = %.lr.ph, %27
%34 = load i32, ptr %7, align 4
%35 = load i32, ptr %8, align 4
%36 = icmp eq i32 %34, %35
br i1 %36, label %37, label %27
37: ; preds = %33
%38 = load ptr, ptr %4, align 8
%39 = getelementptr inbounds i8, ptr %38, i32 1
store ptr %39, ptr %4, align 8
%40 = load i8, ptr %38, align 1
%41 = sext i8 %40 to i32
store i32 %41, ptr %7, align 4
%42 = load ptr, ptr %5, align 8
store ptr %42, ptr %6, align 8
%43 = load ptr, ptr %6, align 8
%44 = getelementptr inbounds i8, ptr %43, i32 1
store ptr %44, ptr %6, align 8
%45 = load i8, ptr %43, align 1
%46 = sext i8 %45 to i32
store i32 %46, ptr %8, align 4
%47 = icmp ne i32 %46, 0
br i1 %47, label %.lr.ph, label %.._crit_edge_crit_edge
.._crit_edge_crit_edge: ; preds = %37
br label %._crit_edge
._crit_edge: ; preds = %.._crit_edge_crit_edge, %16
br label %48
._crit_edge1: ; preds = %27
br label %48
48: ; preds = %._crit_edge1, %._crit_edge
%49 = load i32, ptr %7, align 4
%50 = icmp eq i32 %49, 0
br i1 %50, label %51, label %52
51: ; preds = %48
store ptr null, ptr @strtok.last, align 8
store ptr null, ptr %3, align 8
br label %83
52: ; preds = %48
%53 = load ptr, ptr %4, align 8
%54 = getelementptr inbounds i8, ptr %53, i64 -1
store ptr %54, ptr %9, align 8
br label %55
55: ; preds = %82, %52
%56 = load ptr, ptr %4, align 8
%57 = getelementptr inbounds i8, ptr %56, i32 1
store ptr %57, ptr %4, align 8
%58 = load i8, ptr %56, align 1
%59 = sext i8 %58 to i32
store i32 %59, ptr %7, align 4
%60 = load ptr, ptr %5, align 8
store ptr %60, ptr %6, align 8
br label %61
61: ; preds = %79, %55
%62 = load ptr, ptr %6, align 8
%63 = getelementptr inbounds i8, ptr %62, i32 1
store ptr %63, ptr %6, align 8
%64 = load i8, ptr %62, align 1
%65 = sext i8 %64 to i32
store i32 %65, ptr %8, align 4
%66 = load i32, ptr %7, align 4
%67 = icmp eq i32 %65, %66
br i1 %67, label %68, label %78
68: ; preds = %61
%69 = load i32, ptr %7, align 4
%70 = icmp eq i32 %69, 0
br i1 %70, label %71, label %72
71: ; preds = %68
store ptr null, ptr %4, align 8
br label %75
72: ; preds = %68
%73 = load ptr, ptr %4, align 8
%74 = getelementptr inbounds i8, ptr %73, i64 -1
store i8 0, ptr %74, align 1
br label %75
75: ; preds = %72, %71
%76 = load ptr, ptr %4, align 8
store ptr %76, ptr @strtok.last, align 8
%77 = load ptr, ptr %9, align 8
store ptr %77, ptr %3, align 8
br label %83
78: ; preds = %61
br label %79
79: ; preds = %78
%80 = load i32, ptr %8, align 4
%81 = icmp ne i32 %80, 0
br i1 %81, label %61, label %82, !llvm.loop !8
82: ; preds = %79
br label %55
83: ; preds = %75, %51, %15
%84 = load ptr, ptr %3, align 8
ret ptr %84
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpivumqs3b.c'
source_filename = "/tmp/tmpivumqs3b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @intra_entropy(ptr noundef %0, ptr noundef %1, double noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store double %2, ptr %6, align 8
store double 0.000000e+00, ptr %8, align 8
store double 0.000000e+00, ptr %9, align 8
store i32 0, ptr %10, align 4
br label %11
11: ; preds = %29, %3
%12 = load i32, ptr %10, align 4
%13 = icmp slt i32 %12, 10
br i1 %13, label %14, label %32
14: ; preds = %11
%15 = load ptr, ptr %4, align 8
%16 = load i32, ptr %10, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds double, ptr %15, i64 %17
%19 = load double, ptr %18, align 8
%20 = load double, ptr %8, align 8
%21 = fadd double %20, %19
store double %21, ptr %8, align 8
%22 = load ptr, ptr %5, align 8
%23 = load i32, ptr %10, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds double, ptr %22, i64 %24
%26 = load double, ptr %25, align 8
%27 = load double, ptr %9, align 8
%28 = fadd double %27, %26
store double %28, ptr %9, align 8
br label %29
29: ; preds = %14
%30 = load i32, ptr %10, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %10, align 4
br label %11, !llvm.loop !6
32: ; preds = %11
%33 = load double, ptr %8, align 8
%34 = call double @log(double noundef %33) #2
%35 = load double, ptr %6, align 8
%36 = fsub double %34, %35
%37 = load double, ptr %9, align 8
%38 = load double, ptr %8, align 8
%39 = fdiv double %37, %38
%40 = fadd double %36, %39
store double %40, ptr %7, align 8
%41 = load double, ptr %7, align 8
ret double %41
}
; Function Attrs: nounwind
declare double @log(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 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpivumqs3b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @intra_entropy(ptr noundef %0, ptr noundef %1, double noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store double %2, ptr %6, align 8
store double 0.000000e+00, ptr %8, align 8
store double 0.000000e+00, ptr %9, align 8
store i32 0, ptr %10, align 4
%11 = load i32, ptr %10, align 4
%12 = icmp slt i32 %11, 10
br i1 %12, label %.lr.ph, label %33
.lr.ph: ; preds = %3
br label %13
13: ; preds = %.lr.ph, %28
%14 = load ptr, ptr %4, align 8
%15 = load i32, ptr %10, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds double, ptr %14, i64 %16
%18 = load double, ptr %17, align 8
%19 = load double, ptr %8, align 8
%20 = fadd double %19, %18
store double %20, ptr %8, align 8
%21 = load ptr, ptr %5, align 8
%22 = load i32, ptr %10, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds double, ptr %21, i64 %23
%25 = load double, ptr %24, align 8
%26 = load double, ptr %9, align 8
%27 = fadd double %26, %25
store double %27, ptr %9, align 8
br label %28
28: ; preds = %13
%29 = load i32, ptr %10, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %10, align 4
%31 = load i32, ptr %10, align 4
%32 = icmp slt i32 %31, 10
br i1 %32, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %28
br label %33
33: ; preds = %._crit_edge, %3
%34 = load double, ptr %8, align 8
%35 = call double @log(double noundef %34) #2
%36 = load double, ptr %6, align 8
%37 = fsub double %35, %36
%38 = load double, ptr %9, align 8
%39 = load double, ptr %8, align 8
%40 = fdiv double %38, %39
%41 = fadd double %37, %40
store double %41, ptr %7, align 8
%42 = load double, ptr %7, align 8
ret double %42
}
; Function Attrs: nounwind
declare double @log(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 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpmx_bbbjx.c'
source_filename = "/tmp/tmpmx_bbbjx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isgraph.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isgraph should be 0 for 0xa0\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isgraph_0xa0() #0 {
%1 = call i64 @isgraph(i32 noundef 160)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 805, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isgraph(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/tmpmx_bbbjx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isgraph.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isgraph should be 0 for 0xa0\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isgraph_0xa0() #0 {
%1 = call i64 @isgraph(i32 noundef 160)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 805, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isgraph(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/tmp1owcnq4r.c'
source_filename = "/tmp/tmp1owcnq4r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isascii.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isascii should be 0 for 0x9c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isascii_0x9c() #0 {
%1 = call i64 @isascii(i32 noundef 156)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 785, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isascii(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/tmp1owcnq4r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isascii.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isascii should be 0 for 0x9c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isascii_0x9c() #0 {
%1 = call i64 @isascii(i32 noundef 156)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 785, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isascii(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/tmpmrik1rrw.c'
source_filename = "/tmp/tmpmrik1rrw.c"
target datalayout = "e-m:e-p270: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_ll = type { i32, i32, i32 }
@PF_PACKET = dso_local global i32 0, align 4
@SOCK_RAW = dso_local global i32 0, align 4
@SOCK_NONBLOCK = dso_local global i32 0, align 4
@SOCK_CLOEXEC = dso_local global i32 0, align 4
@ETH_P_ALL = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [26 x i8] c"cannot create raw socket\0A\00", align 1
@AF_PACKET = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [16 x i8] c"bind to %s: %s\0A\00", align 1
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @open_raw_sock(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca %struct.sockaddr_ll, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%6 = load i32, ptr @PF_PACKET, align 4
%7 = load i32, ptr @SOCK_RAW, align 4
%8 = load i32, ptr @SOCK_NONBLOCK, align 4
%9 = or i32 %7, %8
%10 = load i32, ptr @SOCK_CLOEXEC, align 4
%11 = or i32 %9, %10
%12 = load i32, ptr @ETH_P_ALL, align 4
%13 = call i32 @htons(i32 noundef %12)
%14 = call i32 @socket(i32 noundef %6, i32 noundef %11, i32 noundef %13)
store i32 %14, ptr %5, align 4
%15 = load i32, ptr %5, align 4
%16 = icmp slt i32 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %1
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 -1, ptr %2, align 4
br label %41
19: ; preds = %1
%20 = call i32 @memset(ptr noundef %4, i32 noundef 0, i32 noundef 12)
%21 = load i32, ptr @AF_PACKET, align 4
%22 = getelementptr inbounds %struct.sockaddr_ll, ptr %4, i32 0, i32 2
store i32 %21, ptr %22, align 4
%23 = load ptr, ptr %3, align 8
%24 = call i32 @if_nametoindex(ptr noundef %23)
%25 = getelementptr inbounds %struct.sockaddr_ll, ptr %4, i32 0, i32 1
store i32 %24, ptr %25, align 4
%26 = load i32, ptr @ETH_P_ALL, align 4
%27 = call i32 @htons(i32 noundef %26)
%28 = getelementptr inbounds %struct.sockaddr_ll, ptr %4, i32 0, i32 0
store i32 %27, ptr %28, align 4
%29 = load i32, ptr %5, align 4
%30 = call i64 @bind(i32 noundef %29, ptr noundef %4, i32 noundef 12)
%31 = icmp slt i64 %30, 0
br i1 %31, label %32, label %39
32: ; preds = %19
%33 = load ptr, ptr %3, align 8
%34 = load i32, ptr @errno, align 4
%35 = call ptr @strerror(i32 noundef %34)
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %33, ptr noundef %35)
%37 = load i32, ptr %5, align 4
%38 = call i32 @close(i32 noundef %37)
store i32 -1, ptr %2, align 4
br label %41
39: ; preds = %19
%40 = load i32, ptr %5, align 4
store i32 %40, ptr %2, align 4
br label %41
41: ; preds = %39, %32, %17
%42 = load i32, ptr %2, align 4
ret i32 %42
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @if_nametoindex(ptr noundef) #1
declare i64 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare ptr @strerror(i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmrik1rrw.c"
target datalayout = "e-m:e-p270: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_ll = type { i32, i32, i32 }
@PF_PACKET = dso_local global i32 0, align 4
@SOCK_RAW = dso_local global i32 0, align 4
@SOCK_NONBLOCK = dso_local global i32 0, align 4
@SOCK_CLOEXEC = dso_local global i32 0, align 4
@ETH_P_ALL = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [26 x i8] c"cannot create raw socket\0A\00", align 1
@AF_PACKET = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [16 x i8] c"bind to %s: %s\0A\00", align 1
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @open_raw_sock(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca %struct.sockaddr_ll, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%6 = load i32, ptr @PF_PACKET, align 4
%7 = load i32, ptr @SOCK_RAW, align 4
%8 = load i32, ptr @SOCK_NONBLOCK, align 4
%9 = or i32 %7, %8
%10 = load i32, ptr @SOCK_CLOEXEC, align 4
%11 = or i32 %9, %10
%12 = load i32, ptr @ETH_P_ALL, align 4
%13 = call i32 @htons(i32 noundef %12)
%14 = call i32 @socket(i32 noundef %6, i32 noundef %11, i32 noundef %13)
store i32 %14, ptr %5, align 4
%15 = load i32, ptr %5, align 4
%16 = icmp slt i32 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %1
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 -1, ptr %2, align 4
br label %41
19: ; preds = %1
%20 = call i32 @memset(ptr noundef %4, i32 noundef 0, i32 noundef 12)
%21 = load i32, ptr @AF_PACKET, align 4
%22 = getelementptr inbounds %struct.sockaddr_ll, ptr %4, i32 0, i32 2
store i32 %21, ptr %22, align 4
%23 = load ptr, ptr %3, align 8
%24 = call i32 @if_nametoindex(ptr noundef %23)
%25 = getelementptr inbounds %struct.sockaddr_ll, ptr %4, i32 0, i32 1
store i32 %24, ptr %25, align 4
%26 = load i32, ptr @ETH_P_ALL, align 4
%27 = call i32 @htons(i32 noundef %26)
%28 = getelementptr inbounds %struct.sockaddr_ll, ptr %4, i32 0, i32 0
store i32 %27, ptr %28, align 4
%29 = load i32, ptr %5, align 4
%30 = call i64 @bind(i32 noundef %29, ptr noundef %4, i32 noundef 12)
%31 = icmp slt i64 %30, 0
br i1 %31, label %32, label %39
32: ; preds = %19
%33 = load ptr, ptr %3, align 8
%34 = load i32, ptr @errno, align 4
%35 = call ptr @strerror(i32 noundef %34)
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %33, ptr noundef %35)
%37 = load i32, ptr %5, align 4
%38 = call i32 @close(i32 noundef %37)
store i32 -1, ptr %2, align 4
br label %41
39: ; preds = %19
%40 = load i32, ptr %5, align 4
store i32 %40, ptr %2, align 4
br label %41
41: ; preds = %39, %32, %17
%42 = load i32, ptr %2, align 4
ret i32 %42
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @if_nametoindex(ptr noundef) #1
declare i64 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare ptr @strerror(i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0f6wzmau.c'
source_filename = "/tmp/tmp0f6wzmau.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca i32, align 4
%2 = call i32 (...) @init()
store i32 %2, ptr %1, align 4
br label %3
3: ; preds = %7, %0
%4 = load i32, ptr %1, align 4
%5 = call i32 (...) @getLimit()
%6 = icmp slt i32 %4, %5
br i1 %6, label %7, label %10
7: ; preds = %3
%8 = load i32, ptr %1, align 4
%9 = add nsw i32 %8, 1
store i32 %9, ptr %1, align 4
br label %3, !llvm.loop !6
10: ; preds = %3
ret void
}
declare i32 @init(...) #1
declare i32 @getLimit(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp0f6wzmau.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main() #0 {
%1 = alloca i32, align 4
%2 = call i32 (...) @init()
store i32 %2, ptr %1, align 4
%3 = load i32, ptr %1, align 4
%4 = call i32 (...) @getLimit()
%5 = icmp slt i32 %3, %4
br i1 %5, label %.lr.ph, label %12
.lr.ph: ; preds = %0
br label %6
6: ; preds = %.lr.ph, %6
%7 = load i32, ptr %1, align 4
%8 = add nsw i32 %7, 1
store i32 %8, ptr %1, align 4
%9 = load i32, ptr %1, align 4
%10 = call i32 (...) @getLimit()
%11 = icmp slt i32 %9, %10
br i1 %11, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %6
br label %12
12: ; preds = %._crit_edge, %0
ret void
}
declare i32 @init(...) #1
declare i32 @getLimit(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp989lq3v7.c'
source_filename = "/tmp/tmp989lq3v7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_initialize() #0 {
%1 = call i32 (...) @__wasm_call_ctors()
ret void
}
declare i32 @__wasm_call_ctors(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp989lq3v7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_initialize() #0 {
%1 = call i32 (...) @__wasm_call_ctors()
ret void
}
declare i32 @__wasm_call_ctors(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpu2qyhb7r.c'
source_filename = "/tmp/tmpu2qyhb7r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @eigg_encode_kmer(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i64 %3, ptr %8, align 8
store i64 0, ptr %9, align 8
store i64 0, ptr %9, align 8
br label %10
10: ; preds = %26, %4
%11 = load i64, ptr %9, align 8
%12 = load i64, ptr %8, align 8
%13 = icmp ult i64 %11, %12
br i1 %13, label %14, label %29
14: ; preds = %10
%15 = load ptr, ptr %6, align 8
%16 = load ptr, ptr %7, align 8
%17 = load i64, ptr %9, align 8
%18 = getelementptr inbounds i8, ptr %16, i64 %17
%19 = load i8, ptr %18, align 1
%20 = call i64 @toupper(i8 noundef signext %19)
%21 = getelementptr inbounds double, ptr %15, i64 %20
%22 = load double, ptr %21, align 8
%23 = load ptr, ptr %5, align 8
%24 = load i64, ptr %9, align 8
%25 = getelementptr inbounds double, ptr %23, i64 %24
store double %22, ptr %25, align 8
br label %26
26: ; preds = %14
%27 = load i64, ptr %9, align 8
%28 = add i64 %27, 1
store i64 %28, ptr %9, align 8
br label %10, !llvm.loop !6
29: ; preds = %10
%30 = load ptr, ptr %5, align 8
ret ptr %30
}
declare i64 @toupper(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/tmpu2qyhb7r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @eigg_encode_kmer(ptr noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store i64 %3, ptr %8, align 8
store i64 0, ptr %9, align 8
store i64 0, ptr %9, align 8
%10 = load i64, ptr %9, align 8
%11 = load i64, ptr %8, align 8
%12 = icmp ult i64 %10, %11
br i1 %12, label %.lr.ph, label %31
.lr.ph: ; preds = %4
br label %13
13: ; preds = %.lr.ph, %25
%14 = load ptr, ptr %6, align 8
%15 = load ptr, ptr %7, align 8
%16 = load i64, ptr %9, align 8
%17 = getelementptr inbounds i8, ptr %15, i64 %16
%18 = load i8, ptr %17, align 1
%19 = call i64 @toupper(i8 noundef signext %18)
%20 = getelementptr inbounds double, ptr %14, i64 %19
%21 = load double, ptr %20, align 8
%22 = load ptr, ptr %5, align 8
%23 = load i64, ptr %9, align 8
%24 = getelementptr inbounds double, ptr %22, i64 %23
store double %21, ptr %24, align 8
br label %25
25: ; preds = %13
%26 = load i64, ptr %9, align 8
%27 = add i64 %26, 1
store i64 %27, ptr %9, align 8
%28 = load i64, ptr %9, align 8
%29 = load i64, ptr %8, align 8
%30 = icmp ult i64 %28, %29
br i1 %30, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %25
br label %31
31: ; preds = %._crit_edge, %4
%32 = load ptr, ptr %5, align 8
ret ptr %32
}
declare i64 @toupper(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/tmp8d7xcsod.c'
source_filename = "/tmp/tmp8d7xcsod.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"Entre com o salario: \0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%lf\00", align 1
@.str.2 = private unnamed_addr constant [48 x i8] c"Entre com a porcentagem de aumento (0 a 100): \0A\00", align 1
@.str.3 = private unnamed_addr constant [24 x i8] c"O novo salario \C3\A9: %lf\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
store i32 0, ptr %1, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%8 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%9 = load double, ptr %3, align 8
%10 = fdiv double %9, 1.000000e+02
%11 = load double, ptr %2, align 8
%12 = load double, ptr %2, align 8
%13 = call double @llvm.fmuladd.f64(double %10, double %11, double %12)
store double %13, ptr %4, align 8
%14 = load double, ptr %4, align 8
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %14)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8d7xcsod.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [23 x i8] c"Entre com o salario: \0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%lf\00", align 1
@.str.2 = private unnamed_addr constant [48 x i8] c"Entre com a porcentagem de aumento (0 a 100): \0A\00", align 1
@.str.3 = private unnamed_addr constant [24 x i8] c"O novo salario \C3\A9: %lf\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
store i32 0, ptr %1, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%8 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%9 = load double, ptr %3, align 8
%10 = fdiv double %9, 1.000000e+02
%11 = load double, ptr %2, align 8
%12 = load double, ptr %2, align 8
%13 = call double @llvm.fmuladd.f64(double %10, double %11, double %12)
store double %13, ptr %4, align 8
%14 = load double, ptr %4, align 8
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %14)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpe214taui.c'
source_filename = "/tmp/tmpe214taui.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [71 x i8] c"ERROR: failed to insert string \22%s\22 into \22%s\22\0AExpected \22%s\22 got \22%s\22.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @DoStrTest(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca [256 x i8], align 16
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
call void @llvm.memset.p0.i64(ptr align 16 %7, i8 0, i64 256, i1 false)
%8 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%9 = load ptr, ptr %4, align 8
%10 = load ptr, ptr %5, align 8
%11 = call i32 @sprintf(ptr noundef %8, ptr noundef %9, ptr noundef %10)
%12 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%13 = load ptr, ptr %6, align 8
%14 = load ptr, ptr %6, align 8
%15 = call i64 @strlen(ptr noundef %14)
%16 = add nsw i64 %15, 1
%17 = call i64 @memcmp(ptr noundef %12, ptr noundef %13, i64 noundef %16)
%18 = icmp ne i64 %17, 0
br i1 %18, label %19, label %25
19: ; preds = %3
%20 = load ptr, ptr %5, align 8
%21 = load ptr, ptr %4, align 8
%22 = load ptr, ptr %6, align 8
%23 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%24 = call i32 @Fail(ptr noundef @.str, ptr noundef %20, ptr noundef %21, ptr noundef %22, ptr noundef %23)
br label %25
25: ; preds = %19, %3
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) #2
declare i64 @memcmp(ptr noundef, ptr noundef, i64 noundef) #2
declare i64 @strlen(ptr noundef) #2
declare i32 @Fail(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpe214taui.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [71 x i8] c"ERROR: failed to insert string \22%s\22 into \22%s\22\0AExpected \22%s\22 got \22%s\22.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @DoStrTest(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca [256 x i8], align 16
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
call void @llvm.memset.p0.i64(ptr align 16 %7, i8 0, i64 256, i1 false)
%8 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%9 = load ptr, ptr %4, align 8
%10 = load ptr, ptr %5, align 8
%11 = call i32 @sprintf(ptr noundef %8, ptr noundef %9, ptr noundef %10)
%12 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%13 = load ptr, ptr %6, align 8
%14 = load ptr, ptr %6, align 8
%15 = call i64 @strlen(ptr noundef %14)
%16 = add nsw i64 %15, 1
%17 = call i64 @memcmp(ptr noundef %12, ptr noundef %13, i64 noundef %16)
%18 = icmp ne i64 %17, 0
br i1 %18, label %19, label %25
19: ; preds = %3
%20 = load ptr, ptr %5, align 8
%21 = load ptr, ptr %4, align 8
%22 = load ptr, ptr %6, align 8
%23 = getelementptr inbounds [256 x i8], ptr %7, i64 0, i64 0
%24 = call i32 @Fail(ptr noundef @.str, ptr noundef %20, ptr noundef %21, ptr noundef %22, ptr noundef %23)
br label %25
25: ; preds = %19, %3
ret void
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare i32 @sprintf(ptr noundef, ptr noundef, ptr noundef) #2
declare i64 @memcmp(ptr noundef, ptr noundef, i64 noundef) #2
declare i64 @strlen(ptr noundef) #2
declare i32 @Fail(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3dq1bhd4.c'
source_filename = "/tmp/tmp3dq1bhd4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@CLOCK_MONOTONIC = 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/tmp3dq1bhd4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@CLOCK_MONOTONIC = 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/tmp9n9zjo9z.c'
source_filename = "/tmp/tmp9n9zjo9z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
@EOF = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [6 x i8] c"Yes!\0A\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"No!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %4
4: ; preds = %31, %0
%5 = call i64 @scanf(ptr noundef @.str, ptr noundef %2)
%6 = load i64, ptr @EOF, align 8
%7 = icmp ne i64 %5, %6
br i1 %7, label %8, label %32
8: ; preds = %4
%9 = load i32, ptr %2, align 4
%10 = icmp sge i32 %9, 2
%11 = zext i1 %10 to i32
%12 = load i32, ptr %2, align 4
%13 = icmp slt i32 %12, 10
%14 = zext i1 %13 to i32
%15 = and i32 %11, %14
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %8
store i32 10, ptr %3, align 4
br label %19
18: ; preds = %8
store i32 100, ptr %3, align 4
br label %19
19: ; preds = %18, %17
%20 = load i32, ptr %2, align 4
%21 = load i32, ptr %2, align 4
%22 = mul nsw i32 %20, %21
%23 = load i32, ptr %3, align 4
%24 = srem i32 %22, %23
%25 = load i32, ptr %2, align 4
%26 = icmp eq i32 %24, %25
br i1 %26, label %27, label %29
27: ; preds = %19
%28 = call i32 @printf(ptr noundef @.str.1)
br label %31
29: ; preds = %19
%30 = call i32 @printf(ptr noundef @.str.2)
br label %31
31: ; preds = %29, %27
br label %4, !llvm.loop !6
32: ; preds = %4
ret i32 0
}
declare i64 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9n9zjo9z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
@EOF = dso_local global i64 0, align 8
@.str.1 = private unnamed_addr constant [6 x i8] c"Yes!\0A\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"No!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = call i64 @scanf(ptr noundef @.str, ptr noundef %2)
%5 = load i64, ptr @EOF, align 8
%6 = icmp ne i64 %4, %5
br i1 %6, label %.lr.ph, label %34
.lr.ph: ; preds = %0
br label %7
7: ; preds = %.lr.ph, %30
%8 = load i32, ptr %2, align 4
%9 = icmp sge i32 %8, 2
%10 = zext i1 %9 to i32
%11 = load i32, ptr %2, align 4
%12 = icmp slt i32 %11, 10
%13 = zext i1 %12 to i32
%14 = and i32 %10, %13
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %7
store i32 10, ptr %3, align 4
br label %18
17: ; preds = %7
store i32 100, ptr %3, align 4
br label %18
18: ; preds = %17, %16
%19 = load i32, ptr %2, align 4
%20 = load i32, ptr %2, align 4
%21 = mul nsw i32 %19, %20
%22 = load i32, ptr %3, align 4
%23 = srem i32 %21, %22
%24 = load i32, ptr %2, align 4
%25 = icmp eq i32 %23, %24
br i1 %25, label %26, label %28
26: ; preds = %18
%27 = call i32 @printf(ptr noundef @.str.1)
br label %30
28: ; preds = %18
%29 = call i32 @printf(ptr noundef @.str.2)
br label %30
30: ; preds = %28, %26
%31 = call i64 @scanf(ptr noundef @.str, ptr noundef %2)
%32 = load i64, ptr @EOF, align 8
%33 = icmp ne i64 %31, %32
br i1 %33, label %7, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %30
br label %34
34: ; preds = %._crit_edge, %0
ret i32 0
}
declare i64 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmphjyx6ky5.c'
source_filename = "/tmp/tmphjyx6ky5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @vTrimTailF(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
br label %4
4: ; preds = %24, %1
%5 = load i32, ptr %3, align 4
%6 = load ptr, ptr %2, align 8
%7 = call i64 @strlen(ptr noundef %6)
%8 = trunc i64 %7 to i32
%9 = icmp slt i32 %5, %8
br i1 %9, label %10, label %27
10: ; preds = %4
%11 = load ptr, ptr %2, align 8
%12 = load i32, ptr %3, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i8, ptr %11, i64 %13
%15 = load i8, ptr %14, align 1
%16 = zext i8 %15 to i32
%17 = icmp eq i32 %16, 70
br i1 %17, label %18, label %23
18: ; preds = %10
%19 = load ptr, ptr %2, align 8
%20 = load i32, ptr %3, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i8, ptr %19, i64 %21
store i8 0, ptr %22, align 1
br label %23
23: ; preds = %18, %10
br label %24
24: ; preds = %23
%25 = load i32, ptr %3, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %3, align 4
br label %4, !llvm.loop !6
27: ; preds = %4
ret void
}
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphjyx6ky5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @vTrimTailF(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = load ptr, ptr %2, align 8
%6 = call i64 @strlen(ptr noundef %5)
%7 = trunc i64 %6 to i32
%8 = icmp slt i32 %4, %7
br i1 %8, label %.lr.ph, label %31
.lr.ph: ; preds = %1
br label %9
9: ; preds = %.lr.ph, %23
%10 = load ptr, ptr %2, align 8
%11 = load i32, ptr %3, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i8, ptr %10, i64 %12
%14 = load i8, ptr %13, align 1
%15 = zext i8 %14 to i32
%16 = icmp eq i32 %15, 70
br i1 %16, label %17, label %22
17: ; preds = %9
%18 = load ptr, ptr %2, align 8
%19 = load i32, ptr %3, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i8, ptr %18, i64 %20
store i8 0, ptr %21, align 1
br label %22
22: ; preds = %17, %9
br label %23
23: ; preds = %22
%24 = load i32, ptr %3, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %3, align 4
%26 = load i32, ptr %3, align 4
%27 = load ptr, ptr %2, align 8
%28 = call i64 @strlen(ptr noundef %27)
%29 = trunc i64 %28 to i32
%30 = icmp slt i32 %26, %29
br i1 %30, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %31
31: ; preds = %._crit_edge, %1
ret void
}
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpipohw4nh.c'
source_filename = "/tmp/tmpipohw4nh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @irq_remap() #0 {
%1 = call i32 @write_port(i32 noundef 32, i32 noundef 17)
%2 = call i32 @write_port(i32 noundef 160, i32 noundef 17)
%3 = call i32 @write_port(i32 noundef 33, i32 noundef 32)
%4 = call i32 @write_port(i32 noundef 161, i32 noundef 40)
%5 = call i32 @write_port(i32 noundef 33, i32 noundef 4)
%6 = call i32 @write_port(i32 noundef 161, i32 noundef 2)
%7 = call i32 @write_port(i32 noundef 33, i32 noundef 1)
%8 = call i32 @write_port(i32 noundef 161, i32 noundef 1)
%9 = call i32 @write_port(i32 noundef 33, i32 noundef 0)
%10 = call i32 @write_port(i32 noundef 161, i32 noundef 0)
ret void
}
declare i32 @write_port(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/tmpipohw4nh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @irq_remap() #0 {
%1 = call i32 @write_port(i32 noundef 32, i32 noundef 17)
%2 = call i32 @write_port(i32 noundef 160, i32 noundef 17)
%3 = call i32 @write_port(i32 noundef 33, i32 noundef 32)
%4 = call i32 @write_port(i32 noundef 161, i32 noundef 40)
%5 = call i32 @write_port(i32 noundef 33, i32 noundef 4)
%6 = call i32 @write_port(i32 noundef 161, i32 noundef 2)
%7 = call i32 @write_port(i32 noundef 33, i32 noundef 1)
%8 = call i32 @write_port(i32 noundef 161, i32 noundef 1)
%9 = call i32 @write_port(i32 noundef 33, i32 noundef 0)
%10 = call i32 @write_port(i32 noundef 161, i32 noundef 0)
ret void
}
declare i32 @write_port(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/tmpezsh1ypz.c'
source_filename = "/tmp/tmpezsh1ypz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [47 x i8] c"G130_f(const char *s) is not yet implemented!\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @G130_f(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 (ptr, ...) @debug(ptr noundef @.str)
%4 = load ptr, ptr %2, align 8
%5 = call i32 (ptr, ...) @debug(ptr noundef @.str.1, ptr noundef %4)
ret i32 1
}
declare i32 @debug(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpezsh1ypz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [47 x i8] c"G130_f(const char *s) is not yet implemented!\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @G130_f(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = call i32 (ptr, ...) @debug(ptr noundef @.str)
%4 = load ptr, ptr %2, align 8
%5 = call i32 (ptr, ...) @debug(ptr noundef @.str.1, ptr noundef %4)
ret i32 1
}
declare i32 @debug(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqukt2non.c'
source_filename = "/tmp/tmpqukt2non.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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".cfg\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [40 x i8] c"error: input file could not be opened.\0A\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.4 = private unnamed_addr constant [42 x i8] c"error: output file could not be created.\0A\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @criar_ficheiro(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca [1024 x i8], align 16
%6 = alloca [20 x i8], align 16
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %8, align 4
%9 = getelementptr inbounds [20 x i8], ptr %6, i64 0, i64 0
%10 = load ptr, ptr %2, align 8
%11 = call i32 @strcpy(ptr noundef %9, ptr noundef %10)
%12 = getelementptr inbounds [20 x i8], ptr %6, i64 0, i64 0
%13 = call ptr @strrchr(ptr noundef %12, i8 noundef signext 46)
store ptr %13, ptr %7, align 8
%14 = load ptr, ptr %7, align 8
%15 = call i32 @strcpy(ptr noundef %14, ptr noundef @.str)
%16 = load ptr, ptr %2, align 8
%17 = call ptr @fopen(ptr noundef %16, ptr noundef @.str.1)
store ptr %17, ptr %3, align 8
%18 = load ptr, ptr %3, align 8
%19 = icmp eq ptr %18, null
br i1 %19, label %20, label %23
20: ; preds = %1
%21 = call i32 @printf(ptr noundef @.str.2)
%22 = call i32 @exit(i32 noundef -1) #3
unreachable
23: ; preds = %1
%24 = getelementptr inbounds [20 x i8], ptr %6, i64 0, i64 0
%25 = call ptr @fopen(ptr noundef %24, ptr noundef @.str.3)
store ptr %25, ptr %4, align 8
%26 = load ptr, ptr %4, align 8
%27 = icmp eq ptr %26, null
br i1 %27, label %28, label %31
28: ; preds = %23
%29 = call i32 @printf(ptr noundef @.str.4)
%30 = call i32 @exit(i32 noundef -1) #3
unreachable
31: ; preds = %23
br label %32
32: ; preds = %53, %31
%33 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%34 = load ptr, ptr %3, align 8
%35 = call ptr @fgets(ptr noundef %33, i32 noundef 1024, ptr noundef %34)
%36 = icmp ne ptr %35, null
br i1 %36, label %37, label %40
37: ; preds = %32
%38 = load i32, ptr %8, align 4
%39 = icmp slt i32 %38, 2
br label %40
40: ; preds = %37, %32
%41 = phi i1 [ false, %32 ], [ %39, %37 ]
br i1 %41, label %42, label %54
42: ; preds = %40
%43 = load ptr, ptr %4, align 8
%44 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%45 = call i32 @fprintf(ptr noundef %43, ptr noundef @.str.5, ptr noundef %44)
%46 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%47 = load i8, ptr %46, align 16
%48 = sext i8 %47 to i32
%49 = icmp eq i32 %48, 10
br i1 %49, label %50, label %53
50: ; preds = %42
%51 = load i32, ptr %8, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %8, align 4
br label %53
53: ; preds = %50, %42
br label %32, !llvm.loop !6
54: ; preds = %40
%55 = load ptr, ptr %3, align 8
%56 = call i32 @fclose(ptr noundef %55)
%57 = load ptr, ptr %4, align 8
%58 = call i32 @fclose(ptr noundef %57)
ret void
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare ptr @strrchr(ptr noundef, i8 noundef signext) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpqukt2non.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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".cfg\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [40 x i8] c"error: input file could not be opened.\0A\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.4 = private unnamed_addr constant [42 x i8] c"error: output file could not be created.\0A\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @criar_ficheiro(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca [1024 x i8], align 16
%6 = alloca [20 x i8], align 16
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %8, align 4
%9 = getelementptr inbounds [20 x i8], ptr %6, i64 0, i64 0
%10 = load ptr, ptr %2, align 8
%11 = call i32 @strcpy(ptr noundef %9, ptr noundef %10)
%12 = getelementptr inbounds [20 x i8], ptr %6, i64 0, i64 0
%13 = call ptr @strrchr(ptr noundef %12, i8 noundef signext 46)
store ptr %13, ptr %7, align 8
%14 = load ptr, ptr %7, align 8
%15 = call i32 @strcpy(ptr noundef %14, ptr noundef @.str)
%16 = load ptr, ptr %2, align 8
%17 = call ptr @fopen(ptr noundef %16, ptr noundef @.str.1)
store ptr %17, ptr %3, align 8
%18 = load ptr, ptr %3, align 8
%19 = icmp eq ptr %18, null
br i1 %19, label %20, label %23
20: ; preds = %1
%21 = call i32 @printf(ptr noundef @.str.2)
%22 = call i32 @exit(i32 noundef -1) #3
unreachable
23: ; preds = %1
%24 = getelementptr inbounds [20 x i8], ptr %6, i64 0, i64 0
%25 = call ptr @fopen(ptr noundef %24, ptr noundef @.str.3)
store ptr %25, ptr %4, align 8
%26 = load ptr, ptr %4, align 8
%27 = icmp eq ptr %26, null
br i1 %27, label %28, label %31
28: ; preds = %23
%29 = call i32 @printf(ptr noundef @.str.4)
%30 = call i32 @exit(i32 noundef -1) #3
unreachable
31: ; preds = %23
br label %32
32: ; preds = %53, %31
%33 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%34 = load ptr, ptr %3, align 8
%35 = call ptr @fgets(ptr noundef %33, i32 noundef 1024, ptr noundef %34)
%36 = icmp ne ptr %35, null
br i1 %36, label %37, label %40
37: ; preds = %32
%38 = load i32, ptr %8, align 4
%39 = icmp slt i32 %38, 2
br label %40
40: ; preds = %37, %32
%41 = phi i1 [ false, %32 ], [ %39, %37 ]
br i1 %41, label %42, label %54
42: ; preds = %40
%43 = load ptr, ptr %4, align 8
%44 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%45 = call i32 @fprintf(ptr noundef %43, ptr noundef @.str.5, ptr noundef %44)
%46 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%47 = load i8, ptr %46, align 16
%48 = sext i8 %47 to i32
%49 = icmp eq i32 %48, 10
br i1 %49, label %50, label %53
50: ; preds = %42
%51 = load i32, ptr %8, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %8, align 4
br label %53
53: ; preds = %50, %42
br label %32, !llvm.loop !6
54: ; preds = %40
%55 = load ptr, ptr %3, align 8
%56 = call i32 @fclose(ptr noundef %55)
%57 = load ptr, ptr %4, align 8
%58 = call i32 @fclose(ptr noundef %57)
ret void
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare ptr @strrchr(ptr noundef, i8 noundef signext) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmp4vkemld9.c'
source_filename = "/tmp/tmp4vkemld9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
@.str.1 = private unnamed_addr constant [8 x i8] c"%s=\22%s\22\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"?\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @audit_encode_nv_string(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 ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%9 = load i32, ptr %6, align 4
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %17
11: ; preds = %3
%12 = load ptr, ptr %5, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %14, label %17
14: ; preds = %11
%15 = load ptr, ptr %5, align 8
%16 = call i32 @strlen(ptr noundef %15)
store i32 %16, ptr %6, align 4
br label %17
17: ; preds = %14, %11, %3
%18 = load ptr, ptr %5, align 8
%19 = icmp ne ptr %18, null
br i1 %19, label %20, label %44
20: ; preds = %17
%21 = load ptr, ptr %5, align 8
%22 = load i32, ptr %6, align 4
%23 = call i64 @audit_value_needs_encoding(ptr noundef %21, i32 noundef %22)
%24 = icmp ne i64 %23, 0
br i1 %24, label %25, label %44
25: ; preds = %20
%26 = load i32, ptr %6, align 4
%27 = mul i32 2, %26
%28 = add i32 %27, 1
%29 = call ptr @malloc(i32 noundef %28)
store ptr %29, ptr %8, align 8
%30 = load ptr, ptr %8, align 8
%31 = icmp ne ptr %30, null
br i1 %31, label %32, label %42
32: ; preds = %25
%33 = load ptr, ptr %8, align 8
%34 = load ptr, ptr %5, align 8
%35 = load i32, ptr %6, align 4
%36 = call i32 @audit_encode_value(ptr noundef %33, ptr noundef %34, i32 noundef %35)
%37 = load ptr, ptr %4, align 8
%38 = load ptr, ptr %8, align 8
%39 = call i32 @asprintf(ptr noundef %7, ptr noundef @.str, ptr noundef %37, ptr noundef %38)
%40 = load ptr, ptr %8, align 8
%41 = call i32 @free(ptr noundef %40)
br label %43
42: ; preds = %25
store ptr null, ptr %7, align 8
br label %43
43: ; preds = %42, %32
br label %54
44: ; preds = %20, %17
%45 = load ptr, ptr %4, align 8
%46 = load ptr, ptr %5, align 8
%47 = icmp ne ptr %46, null
br i1 %47, label %48, label %50
48: ; preds = %44
%49 = load ptr, ptr %5, align 8
br label %51
50: ; preds = %44
br label %51
51: ; preds = %50, %48
%52 = phi ptr [ %49, %48 ], [ @.str.2, %50 ]
%53 = call i32 @asprintf(ptr noundef %7, ptr noundef @.str.1, ptr noundef %45, ptr noundef %52)
br label %54
54: ; preds = %51, %43
%55 = load ptr, ptr %7, align 8
ret ptr %55
}
declare i32 @strlen(ptr noundef) #1
declare i64 @audit_value_needs_encoding(ptr noundef, i32 noundef) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @audit_encode_value(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @asprintf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4vkemld9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
@.str.1 = private unnamed_addr constant [8 x i8] c"%s=\22%s\22\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"?\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @audit_encode_nv_string(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 ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%9 = load i32, ptr %6, align 4
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %17
11: ; preds = %3
%12 = load ptr, ptr %5, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %14, label %17
14: ; preds = %11
%15 = load ptr, ptr %5, align 8
%16 = call i32 @strlen(ptr noundef %15)
store i32 %16, ptr %6, align 4
br label %17
17: ; preds = %14, %11, %3
%18 = load ptr, ptr %5, align 8
%19 = icmp ne ptr %18, null
br i1 %19, label %20, label %44
20: ; preds = %17
%21 = load ptr, ptr %5, align 8
%22 = load i32, ptr %6, align 4
%23 = call i64 @audit_value_needs_encoding(ptr noundef %21, i32 noundef %22)
%24 = icmp ne i64 %23, 0
br i1 %24, label %25, label %44
25: ; preds = %20
%26 = load i32, ptr %6, align 4
%27 = mul i32 2, %26
%28 = add i32 %27, 1
%29 = call ptr @malloc(i32 noundef %28)
store ptr %29, ptr %8, align 8
%30 = load ptr, ptr %8, align 8
%31 = icmp ne ptr %30, null
br i1 %31, label %32, label %42
32: ; preds = %25
%33 = load ptr, ptr %8, align 8
%34 = load ptr, ptr %5, align 8
%35 = load i32, ptr %6, align 4
%36 = call i32 @audit_encode_value(ptr noundef %33, ptr noundef %34, i32 noundef %35)
%37 = load ptr, ptr %4, align 8
%38 = load ptr, ptr %8, align 8
%39 = call i32 @asprintf(ptr noundef %7, ptr noundef @.str, ptr noundef %37, ptr noundef %38)
%40 = load ptr, ptr %8, align 8
%41 = call i32 @free(ptr noundef %40)
br label %43
42: ; preds = %25
store ptr null, ptr %7, align 8
br label %43
43: ; preds = %42, %32
br label %54
44: ; preds = %20, %17
%45 = load ptr, ptr %4, align 8
%46 = load ptr, ptr %5, align 8
%47 = icmp ne ptr %46, null
br i1 %47, label %48, label %50
48: ; preds = %44
%49 = load ptr, ptr %5, align 8
br label %51
50: ; preds = %44
br label %51
51: ; preds = %50, %48
%52 = phi ptr [ %49, %48 ], [ @.str.2, %50 ]
%53 = call i32 @asprintf(ptr noundef %7, ptr noundef @.str.1, ptr noundef %45, ptr noundef %52)
br label %54
54: ; preds = %51, %43
%55 = load ptr, ptr %7, align 8
ret ptr %55
}
declare i32 @strlen(ptr noundef) #1
declare i64 @audit_value_needs_encoding(ptr noundef, i32 noundef) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @audit_encode_value(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @asprintf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpts_lwkxf.c'
source_filename = "/tmp/tmpts_lwkxf.c"
target datalayout = "e-m:e-p270: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/tmpts_lwkxf.c"
target datalayout = "e-m:e-p270: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/tmpkad_j9p1.c'
source_filename = "/tmp/tmpkad_j9p1.c"
target datalayout = "e-m:e-p270: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/tmpkad_j9p1.c"
target datalayout = "e-m:e-p270: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/tmpskjedy_1.c'
source_filename = "/tmp/tmpskjedy_1.c"
target datalayout = "e-m:e-p270: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.anon = type { i8, i32, double }
@.str = private unnamed_addr constant [14 x i8] c"pad.b ==> %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"*ptr2 ==> %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca %struct.anon, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%5 = getelementptr inbounds %struct.anon, ptr %2, i32 0, i32 1
store i32 123456, ptr %5, align 4
%6 = getelementptr inbounds %struct.anon, ptr %2, i32 0, i32 0
store ptr %6, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = getelementptr inbounds i8, ptr %7, i32 1
store ptr %8, ptr %3, align 8
%9 = load ptr, ptr %3, align 8
store ptr %9, ptr %4, align 8
%10 = getelementptr inbounds %struct.anon, ptr %2, i32 0, i32 1
%11 = load i32, ptr %10, align 4
%12 = call i32 @printf(ptr noundef @.str, i32 noundef %11)
%13 = load ptr, ptr %4, align 8
%14 = load i32, ptr %13, align 4
%15 = call i32 @printf(ptr noundef @.str.1, i32 noundef %14)
%16 = load ptr, ptr %3, align 8
%17 = getelementptr inbounds i8, ptr %16, i64 3
store ptr %17, ptr %3, align 8
%18 = load ptr, ptr %3, align 8
store ptr %18, ptr %4, align 8
%19 = load ptr, ptr %4, align 8
%20 = load i32, ptr %19, align 4
%21 = call i32 @printf(ptr noundef @.str.1, i32 noundef %20)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpskjedy_1.c"
target datalayout = "e-m:e-p270: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.anon = type { i8, i32, double }
@.str = private unnamed_addr constant [14 x i8] c"pad.b ==> %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"*ptr2 ==> %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca %struct.anon, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%5 = getelementptr inbounds %struct.anon, ptr %2, i32 0, i32 1
store i32 123456, ptr %5, align 4
%6 = getelementptr inbounds %struct.anon, ptr %2, i32 0, i32 0
store ptr %6, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = getelementptr inbounds i8, ptr %7, i32 1
store ptr %8, ptr %3, align 8
%9 = load ptr, ptr %3, align 8
store ptr %9, ptr %4, align 8
%10 = getelementptr inbounds %struct.anon, ptr %2, i32 0, i32 1
%11 = load i32, ptr %10, align 4
%12 = call i32 @printf(ptr noundef @.str, i32 noundef %11)
%13 = load ptr, ptr %4, align 8
%14 = load i32, ptr %13, align 4
%15 = call i32 @printf(ptr noundef @.str.1, i32 noundef %14)
%16 = load ptr, ptr %3, align 8
%17 = getelementptr inbounds i8, ptr %16, i64 3
store ptr %17, ptr %3, align 8
%18 = load ptr, ptr %3, align 8
store ptr %18, ptr %4, align 8
%19 = load ptr, ptr %4, align 8
%20 = load i32, ptr %19, align 4
%21 = call i32 @printf(ptr noundef @.str.1, i32 noundef %20)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpid03poic.c'
source_filename = "/tmp/tmpid03poic.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @str_to_int(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 0, ptr %4, align 4
store i32 1, ptr %5, align 4
store i32 0, ptr %6, align 4
%7 = load ptr, ptr %3, align 8
%8 = icmp eq ptr null, %7
br i1 %8, label %9, label %10
9: ; preds = %1
store i32 -1, ptr %2, align 4
br label %38
10: ; preds = %1
%11 = load ptr, ptr %3, align 8
%12 = load i8, ptr %11, align 1
%13 = sext i8 %12 to i32
%14 = icmp eq i32 45, %13
br i1 %14, label %15, label %18
15: ; preds = %10
store i32 -1, ptr %5, align 4
%16 = load ptr, ptr %3, align 8
%17 = getelementptr inbounds i8, ptr %16, i32 1
store ptr %17, ptr %3, align 8
br label %18
18: ; preds = %15, %10
br label %19
19: ; preds = %23, %18
%20 = load ptr, ptr %3, align 8
%21 = load i8, ptr %20, align 1
%22 = icmp ne i8 %21, 0
br i1 %22, label %23, label %33
23: ; preds = %19
%24 = load i32, ptr %4, align 4
%25 = mul nsw i32 %24, 10
%26 = load ptr, ptr %3, align 8
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = add nsw i32 %25, %28
%30 = sub nsw i32 %29, 48
store i32 %30, ptr %4, align 4
%31 = load ptr, ptr %3, align 8
%32 = getelementptr inbounds i8, ptr %31, i32 1
store ptr %32, ptr %3, align 8
br label %19, !llvm.loop !6
33: ; preds = %19
%34 = load i32, ptr %5, align 4
%35 = load i32, ptr %4, align 4
%36 = mul nsw i32 %34, %35
store i32 %36, ptr %6, align 4
%37 = load i32, ptr %6, align 4
store i32 %37, ptr %2, align 4
br label %38
38: ; preds = %33, %9
%39 = load i32, ptr %2, align 4
ret i32 %39
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpid03poic.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @str_to_int(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 0, ptr %4, align 4
store i32 1, ptr %5, align 4
store i32 0, ptr %6, align 4
%7 = load ptr, ptr %3, align 8
%8 = icmp eq ptr null, %7
br i1 %8, label %9, label %10
9: ; preds = %1
store i32 -1, ptr %2, align 4
br label %40
10: ; preds = %1
%11 = load ptr, ptr %3, align 8
%12 = load i8, ptr %11, align 1
%13 = sext i8 %12 to i32
%14 = icmp eq i32 45, %13
br i1 %14, label %15, label %18
15: ; preds = %10
store i32 -1, ptr %5, align 4
%16 = load ptr, ptr %3, align 8
%17 = getelementptr inbounds i8, ptr %16, i32 1
store ptr %17, ptr %3, align 8
br label %18
18: ; preds = %15, %10
%19 = load ptr, ptr %3, align 8
%20 = load i8, ptr %19, align 1
%21 = icmp ne i8 %20, 0
br i1 %21, label %.lr.ph, label %35
.lr.ph: ; preds = %18
br label %22
22: ; preds = %.lr.ph, %22
%23 = load i32, ptr %4, align 4
%24 = mul nsw i32 %23, 10
%25 = load ptr, ptr %3, align 8
%26 = load i8, ptr %25, align 1
%27 = sext i8 %26 to i32
%28 = add nsw i32 %24, %27
%29 = sub nsw i32 %28, 48
store i32 %29, ptr %4, align 4
%30 = load ptr, ptr %3, align 8
%31 = getelementptr inbounds i8, ptr %30, i32 1
store ptr %31, ptr %3, align 8
%32 = load ptr, ptr %3, align 8
%33 = load i8, ptr %32, align 1
%34 = icmp ne i8 %33, 0
br i1 %34, label %22, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %22
br label %35
35: ; preds = %._crit_edge, %18
%36 = load i32, ptr %5, align 4
%37 = load i32, ptr %4, align 4
%38 = mul nsw i32 %36, %37
store i32 %38, ptr %6, align 4
%39 = load i32, ptr %6, align 4
store i32 %39, ptr %2, align 4
br label %40
40: ; preds = %35, %9
%41 = load i32, ptr %2, align 4
ret i32 %41
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpk9r3rfls.c'
source_filename = "/tmp/tmpk9r3rfls.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rm(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = icmp eq ptr %4, null
br i1 %5, label %6, label %7
6: ; preds = %1
store i32 1, ptr %2, align 4
br label %10
7: ; preds = %1
%8 = load ptr, ptr %3, align 8
%9 = call i32 @rit_var_unset(ptr noundef %8)
store i32 %9, ptr %2, align 4
br label %10
10: ; preds = %7, %6
%11 = load i32, ptr %2, align 4
ret i32 %11
}
declare i32 @rit_var_unset(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpk9r3rfls.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rm(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = icmp eq ptr %4, null
br i1 %5, label %6, label %7
6: ; preds = %1
store i32 1, ptr %2, align 4
br label %10
7: ; preds = %1
%8 = load ptr, ptr %3, align 8
%9 = call i32 @rit_var_unset(ptr noundef %8)
store i32 %9, ptr %2, align 4
br label %10
10: ; preds = %7, %6
%11 = load i32, ptr %2, align 4
ret i32 %11
}
declare i32 @rit_var_unset(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2gw0_t_y.c'
source_filename = "/tmp/tmp2gw0_t_y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @sleep(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%6 = call i32 (...) @seconds()
store i32 %6, ptr %3, align 4
%7 = call i32 (...) @minutes()
store i32 %7, ptr %4, align 4
%8 = load i32, ptr %2, align 4
%9 = load i32, ptr %3, align 4
%10 = add nsw i32 %9, %8
store i32 %10, ptr %3, align 4
%11 = load i32, ptr %3, align 4
%12 = icmp sgt i32 %11, 60
br i1 %12, label %13, label %18
13: ; preds = %1
%14 = load i32, ptr %3, align 4
%15 = sdiv i32 %14, 60
%16 = load i32, ptr %4, align 4
%17 = add nsw i32 %16, %15
store i32 %17, ptr %4, align 4
br label %18
18: ; preds = %13, %1
%19 = load i32, ptr %3, align 4
%20 = srem i32 %19, 60
store i32 %20, ptr %5, align 4
br label %21
21: ; preds = %25, %18
%22 = call i32 (...) @minutes()
%23 = load i32, ptr %4, align 4
%24 = icmp slt i32 %22, %23
br i1 %24, label %25, label %26
25: ; preds = %21
br label %21, !llvm.loop !6
26: ; preds = %21
br label %27
27: ; preds = %31, %26
%28 = call i32 (...) @seconds()
%29 = load i32, ptr %5, align 4
%30 = icmp slt i32 %28, %29
br i1 %30, label %31, label %32
31: ; preds = %27
br label %27, !llvm.loop !8
32: ; preds = %27
ret void
}
declare i32 @seconds(...) #1
declare i32 @minutes(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp2gw0_t_y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @sleep(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%6 = call i32 (...) @seconds()
store i32 %6, ptr %3, align 4
%7 = call i32 (...) @minutes()
store i32 %7, ptr %4, align 4
%8 = load i32, ptr %2, align 4
%9 = load i32, ptr %3, align 4
%10 = add nsw i32 %9, %8
store i32 %10, ptr %3, align 4
%11 = load i32, ptr %3, align 4
%12 = icmp sgt i32 %11, 60
br i1 %12, label %13, label %18
13: ; preds = %1
%14 = load i32, ptr %3, align 4
%15 = sdiv i32 %14, 60
%16 = load i32, ptr %4, align 4
%17 = add nsw i32 %16, %15
store i32 %17, ptr %4, align 4
br label %18
18: ; preds = %13, %1
%19 = load i32, ptr %3, align 4
%20 = srem i32 %19, 60
store i32 %20, ptr %5, align 4
br label %21
21: ; preds = %21, %18
%22 = call i32 (...) @minutes()
%23 = load i32, ptr %4, align 4
%24 = icmp slt i32 %22, %23
br i1 %24, label %21, label %25, !llvm.loop !6
25: ; preds = %21
br label %26
26: ; preds = %26, %25
%27 = call i32 (...) @seconds()
%28 = load i32, ptr %5, align 4
%29 = icmp slt i32 %27, %28
br i1 %29, label %26, label %30, !llvm.loop !8
30: ; preds = %26
ret void
}
declare i32 @seconds(...) #1
declare i32 @minutes(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp8kvtne0w.c'
source_filename = "/tmp/tmp8kvtne0w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @double_() #0 {
%1 = call i32 (...) @doublebuffer()
ret void
}
declare i32 @doublebuffer(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8kvtne0w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @double_() #0 {
%1 = call i32 (...) @doublebuffer()
ret void
}
declare i32 @doublebuffer(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmphdwoeibg.c'
source_filename = "/tmp/tmphdwoeibg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @IN_Init() #0 {
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphdwoeibg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @IN_Init() #0 {
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpucp43_mx.c'
source_filename = "/tmp/tmpucp43_mx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@iwork = external global ptr, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @pgnprm(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca i64, align 8
store i64 %0, ptr %2, align 8
store i64 0, ptr %3, align 8
br label %4
4: ; preds = %13, %1
%5 = load i64, ptr %3, align 8
%6 = load i64, ptr %2, align 8
%7 = icmp slt i64 %5, %6
br i1 %7, label %8, label %16
8: ; preds = %4
%9 = load i64, ptr %3, align 8
%10 = load ptr, ptr @iwork, align 8
%11 = load i64, ptr %3, align 8
%12 = getelementptr inbounds i64, ptr %10, i64 %11
store i64 %9, ptr %12, align 8
br label %13
13: ; preds = %8
%14 = load i64, ptr %3, align 8
%15 = add nsw i64 %14, 1
store i64 %15, ptr %3, align 8
br label %4, !llvm.loop !6
16: ; preds = %4
%17 = load ptr, ptr @iwork, align 8
%18 = load i64, ptr %3, align 8
%19 = call i32 @genprm(ptr noundef %17, i64 noundef %18)
ret void
}
declare i32 @genprm(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpucp43_mx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@iwork = external global ptr, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @pgnprm(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca i64, align 8
store i64 %0, ptr %2, align 8
store i64 0, ptr %3, align 8
%4 = load i64, ptr %3, align 8
%5 = load i64, ptr %2, align 8
%6 = icmp slt i64 %4, %5
br i1 %6, label %.lr.ph, label %18
.lr.ph: ; preds = %1
br label %7
7: ; preds = %.lr.ph, %12
%8 = load i64, ptr %3, align 8
%9 = load ptr, ptr @iwork, align 8
%10 = load i64, ptr %3, align 8
%11 = getelementptr inbounds i64, ptr %9, i64 %10
store i64 %8, ptr %11, align 8
br label %12
12: ; preds = %7
%13 = load i64, ptr %3, align 8
%14 = add nsw i64 %13, 1
store i64 %14, ptr %3, align 8
%15 = load i64, ptr %3, align 8
%16 = load i64, ptr %2, align 8
%17 = icmp slt i64 %15, %16
br i1 %17, label %7, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %12
br label %18
18: ; preds = %._crit_edge, %1
%19 = load ptr, ptr @iwork, align 8
%20 = load i64, ptr %3, align 8
%21 = call i32 @genprm(ptr noundef %19, i64 noundef %20)
ret void
}
declare i32 @genprm(ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpz9o4z64y.c'
source_filename = "/tmp/tmpz9o4z64y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 [5 x i32], align 16
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 4, ptr %3, align 4
br label %4
4: ; preds = %12, %0
%5 = load i32, ptr %3, align 4
%6 = icmp sge i32 %5, 0
br i1 %6, label %7, label %15
7: ; preds = %4
%8 = load i32, ptr %3, align 4
%9 = load i32, ptr %3, align 4
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 %10
store i32 %8, ptr %11, align 4
br label %12
12: ; preds = %7
%13 = load i32, ptr %3, align 4
%14 = add nsw i32 %13, -1
store i32 %14, ptr %3, align 4
br label %4, !llvm.loop !6
15: ; preds = %4
%16 = call i32 (...) @SelectionSort()
store i32 0, ptr %3, align 4
br label %17
17: ; preds = %29, %15
%18 = load i32, ptr %3, align 4
%19 = icmp slt i32 %18, 5
br i1 %19, label %20, label %32
20: ; preds = %17
%21 = load i32, ptr %3, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 %22
%24 = load i32, ptr %23, align 4
%25 = load i32, ptr %3, align 4
%26 = icmp ne i32 %24, %25
%27 = zext i1 %26 to i32
%28 = call i32 @assert(i32 noundef %27)
br label %29
29: ; preds = %20
%30 = load i32, ptr %3, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %3, align 4
br label %17, !llvm.loop !8
32: ; preds = %17
%33 = load i32, ptr %1, align 4
ret i32 %33
}
declare i32 @SelectionSort(...) #1
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpz9o4z64y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 [5 x i32], align 16
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 4, ptr %3, align 4
%4 = load i32, ptr %3, align 4
%5 = icmp sge i32 %4, 0
br i1 %5, label %.lr.ph, label %16
.lr.ph: ; preds = %0
br label %6
6: ; preds = %.lr.ph, %11
%7 = load i32, ptr %3, align 4
%8 = load i32, ptr %3, align 4
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 %9
store i32 %7, ptr %10, align 4
br label %11
11: ; preds = %6
%12 = load i32, ptr %3, align 4
%13 = add nsw i32 %12, -1
store i32 %13, ptr %3, align 4
%14 = load i32, ptr %3, align 4
%15 = icmp sge i32 %14, 0
br i1 %15, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %11
br label %16
16: ; preds = %._crit_edge, %0
%17 = call i32 (...) @SelectionSort()
store i32 0, ptr %3, align 4
%18 = load i32, ptr %3, align 4
%19 = icmp slt i32 %18, 5
br i1 %19, label %.lr.ph2, label %34
.lr.ph2: ; preds = %16
br label %20
20: ; preds = %.lr.ph2, %29
%21 = load i32, ptr %3, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [5 x i32], ptr %2, i64 0, i64 %22
%24 = load i32, ptr %23, align 4
%25 = load i32, ptr %3, align 4
%26 = icmp ne i32 %24, %25
%27 = zext i1 %26 to i32
%28 = call i32 @assert(i32 noundef %27)
br label %29
29: ; preds = %20
%30 = load i32, ptr %3, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %3, align 4
%32 = load i32, ptr %3, align 4
%33 = icmp slt i32 %32, 5
br i1 %33, label %20, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %29
br label %34
34: ; preds = %._crit_edge3, %16
%35 = load i32, ptr %1, align 4
ret i32 %35
}
declare i32 @SelectionSort(...) #1
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpa9kne7yg.c'
source_filename = "/tmp/tmpa9kne7yg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@INT_MAX = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @vsprintf(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
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = load i32, ptr @INT_MAX, align 4
%9 = load ptr, ptr %5, align 8
%10 = load i32, ptr %6, align 4
%11 = call i32 @vsnprintf(ptr noundef %7, i32 noundef %8, ptr noundef %9, i32 noundef %10)
ret i32 %11
}
declare i32 @vsnprintf(ptr 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/tmpa9kne7yg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@INT_MAX = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @vsprintf(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
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = load i32, ptr @INT_MAX, align 4
%9 = load ptr, ptr %5, align 8
%10 = load i32, ptr %6, align 4
%11 = call i32 @vsnprintf(ptr noundef %7, i32 noundef %8, ptr noundef %9, i32 noundef %10)
ret i32 %11
}
declare i32 @vsnprintf(ptr 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/tmpvcfpzkss.c'
source_filename = "/tmp/tmpvcfpzkss.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [33 x i8] c"malloc: addr=%p size=%lu str=%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [34 x i8] c"realloc: addr=%p size=%lu str=%s\0A\00", align 1
@.str.2 = private unnamed_addr constant [31 x i8] c"free: addr=%p size=%lu str=%s\0A\00", align 1
@.str.3 = private unnamed_addr constant [33 x i8] c"calloc: addr=%p size=%lu str=%s\0A\00", align 1
@.str.4 = private unnamed_addr constant [35 x i8] c"memalign: addr=%p size=%lu str=%s\0A\00", align 1
@.str.5 = private unnamed_addr constant [9 x i8] c"testfile\00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.7 = private unnamed_addr constant [32 x i8] c"fopen: addr=%p file=%s mode=%s\0A\00", align 1
@.str.8 = private unnamed_addr constant [33 x i8] c"fclose: addr=%p file=%s mode=%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_malloc_c() #0 {
%1 = alloca ptr, align 8
%2 = alloca ptr, align 8
%3 = call i32 (...) @logn()
%4 = call i32 (...) @loga()
%5 = call i64 @malloc(i32 noundef 10)
%6 = inttoptr i64 %5 to ptr
store ptr %6, ptr %1, align 8
%7 = load ptr, ptr %1, align 8
%8 = call i32 @memset(ptr noundef %7, i8 noundef signext 48, i32 noundef 5)
%9 = load ptr, ptr %1, align 8
%10 = load ptr, ptr %1, align 8
%11 = call ptr @strlen(ptr noundef %10)
%12 = load ptr, ptr %1, align 8
%13 = call i32 @logp(ptr noundef @.str, ptr noundef %9, ptr noundef %11, ptr noundef %12)
%14 = load ptr, ptr %1, align 8
%15 = call i64 @realloc(ptr noundef %14, i32 noundef 20)
%16 = inttoptr i64 %15 to ptr
store ptr %16, ptr %1, align 8
%17 = load ptr, ptr %1, align 8
%18 = call i32 @memset(ptr noundef %17, i8 noundef signext 49, i32 noundef 15)
%19 = load ptr, ptr %1, align 8
%20 = load ptr, ptr %1, align 8
%21 = call ptr @strlen(ptr noundef %20)
%22 = load ptr, ptr %1, align 8
%23 = call i32 @logp(ptr noundef @.str.1, ptr noundef %19, ptr noundef %21, ptr noundef %22)
%24 = load ptr, ptr %1, align 8
%25 = call i32 @free(ptr noundef %24)
%26 = load ptr, ptr %1, align 8
%27 = load ptr, ptr %1, align 8
%28 = call ptr @strlen(ptr noundef %27)
%29 = load ptr, ptr %1, align 8
%30 = call i32 @logp(ptr noundef @.str.2, ptr noundef %26, ptr noundef %28, ptr noundef %29)
%31 = call i64 @calloc(i32 noundef 30, i32 noundef 1)
%32 = inttoptr i64 %31 to ptr
store ptr %32, ptr %1, align 8
%33 = load ptr, ptr %1, align 8
%34 = call i32 @memset(ptr noundef %33, i8 noundef signext 50, i32 noundef 25)
%35 = load ptr, ptr %1, align 8
%36 = load ptr, ptr %1, align 8
%37 = call ptr @strlen(ptr noundef %36)
%38 = load ptr, ptr %1, align 8
%39 = call i32 @logp(ptr noundef @.str.3, ptr noundef %35, ptr noundef %37, ptr noundef %38)
%40 = load ptr, ptr %1, align 8
%41 = call i32 @free(ptr noundef %40)
%42 = load ptr, ptr %1, align 8
%43 = load ptr, ptr %1, align 8
%44 = call ptr @strlen(ptr noundef %43)
%45 = load ptr, ptr %1, align 8
%46 = call i32 @logp(ptr noundef @.str.2, ptr noundef %42, ptr noundef %44, ptr noundef %45)
%47 = call i64 @memalign(i32 noundef 8, i32 noundef 40)
%48 = inttoptr i64 %47 to ptr
store ptr %48, ptr %1, align 8
%49 = load ptr, ptr %1, align 8
%50 = call i32 @memset(ptr noundef %49, i8 noundef signext 51, i32 noundef 35)
%51 = load ptr, ptr %1, align 8
%52 = load ptr, ptr %1, align 8
%53 = call ptr @strlen(ptr noundef %52)
%54 = load ptr, ptr %1, align 8
%55 = call i32 @logp(ptr noundef @.str.4, ptr noundef %51, ptr noundef %53, ptr noundef %54)
%56 = load ptr, ptr %1, align 8
%57 = call i32 @free(ptr noundef %56)
%58 = load ptr, ptr %1, align 8
%59 = load ptr, ptr %1, align 8
%60 = call ptr @strlen(ptr noundef %59)
%61 = load ptr, ptr %1, align 8
%62 = call i32 @logp(ptr noundef @.str.2, ptr noundef %58, ptr noundef %60, ptr noundef %61)
%63 = call ptr @fopen(ptr noundef @.str.5, ptr noundef @.str.6)
store ptr %63, ptr %2, align 8
%64 = load ptr, ptr %2, align 8
%65 = icmp ne ptr null, %64
br i1 %65, label %66, label %73
66: ; preds = %0
%67 = load ptr, ptr %2, align 8
%68 = call i32 @logp(ptr noundef @.str.7, ptr noundef %67, ptr noundef @.str.5, ptr noundef @.str.6)
%69 = load ptr, ptr %2, align 8
%70 = call i32 @fclose(ptr noundef %69)
%71 = load ptr, ptr %2, align 8
%72 = call i32 @logp(ptr noundef @.str.8, ptr noundef %71, ptr noundef @.str.5, ptr noundef @.str.6)
br label %73
73: ; preds = %66, %0
ret void
}
declare i32 @logn(...) #1
declare i32 @loga(...) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @memset(ptr noundef, i8 noundef signext, i32 noundef) #1
declare i32 @logp(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @strlen(ptr noundef) #1
declare i64 @realloc(ptr noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
declare i64 @calloc(i32 noundef, i32 noundef) #1
declare i64 @memalign(i32 noundef, i32 noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvcfpzkss.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [33 x i8] c"malloc: addr=%p size=%lu str=%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [34 x i8] c"realloc: addr=%p size=%lu str=%s\0A\00", align 1
@.str.2 = private unnamed_addr constant [31 x i8] c"free: addr=%p size=%lu str=%s\0A\00", align 1
@.str.3 = private unnamed_addr constant [33 x i8] c"calloc: addr=%p size=%lu str=%s\0A\00", align 1
@.str.4 = private unnamed_addr constant [35 x i8] c"memalign: addr=%p size=%lu str=%s\0A\00", align 1
@.str.5 = private unnamed_addr constant [9 x i8] c"testfile\00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.7 = private unnamed_addr constant [32 x i8] c"fopen: addr=%p file=%s mode=%s\0A\00", align 1
@.str.8 = private unnamed_addr constant [33 x i8] c"fclose: addr=%p file=%s mode=%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_malloc_c() #0 {
%1 = alloca ptr, align 8
%2 = alloca ptr, align 8
%3 = call i32 (...) @logn()
%4 = call i32 (...) @loga()
%5 = call i64 @malloc(i32 noundef 10)
%6 = inttoptr i64 %5 to ptr
store ptr %6, ptr %1, align 8
%7 = load ptr, ptr %1, align 8
%8 = call i32 @memset(ptr noundef %7, i8 noundef signext 48, i32 noundef 5)
%9 = load ptr, ptr %1, align 8
%10 = load ptr, ptr %1, align 8
%11 = call ptr @strlen(ptr noundef %10)
%12 = load ptr, ptr %1, align 8
%13 = call i32 @logp(ptr noundef @.str, ptr noundef %9, ptr noundef %11, ptr noundef %12)
%14 = load ptr, ptr %1, align 8
%15 = call i64 @realloc(ptr noundef %14, i32 noundef 20)
%16 = inttoptr i64 %15 to ptr
store ptr %16, ptr %1, align 8
%17 = load ptr, ptr %1, align 8
%18 = call i32 @memset(ptr noundef %17, i8 noundef signext 49, i32 noundef 15)
%19 = load ptr, ptr %1, align 8
%20 = load ptr, ptr %1, align 8
%21 = call ptr @strlen(ptr noundef %20)
%22 = load ptr, ptr %1, align 8
%23 = call i32 @logp(ptr noundef @.str.1, ptr noundef %19, ptr noundef %21, ptr noundef %22)
%24 = load ptr, ptr %1, align 8
%25 = call i32 @free(ptr noundef %24)
%26 = load ptr, ptr %1, align 8
%27 = load ptr, ptr %1, align 8
%28 = call ptr @strlen(ptr noundef %27)
%29 = load ptr, ptr %1, align 8
%30 = call i32 @logp(ptr noundef @.str.2, ptr noundef %26, ptr noundef %28, ptr noundef %29)
%31 = call i64 @calloc(i32 noundef 30, i32 noundef 1)
%32 = inttoptr i64 %31 to ptr
store ptr %32, ptr %1, align 8
%33 = load ptr, ptr %1, align 8
%34 = call i32 @memset(ptr noundef %33, i8 noundef signext 50, i32 noundef 25)
%35 = load ptr, ptr %1, align 8
%36 = load ptr, ptr %1, align 8
%37 = call ptr @strlen(ptr noundef %36)
%38 = load ptr, ptr %1, align 8
%39 = call i32 @logp(ptr noundef @.str.3, ptr noundef %35, ptr noundef %37, ptr noundef %38)
%40 = load ptr, ptr %1, align 8
%41 = call i32 @free(ptr noundef %40)
%42 = load ptr, ptr %1, align 8
%43 = load ptr, ptr %1, align 8
%44 = call ptr @strlen(ptr noundef %43)
%45 = load ptr, ptr %1, align 8
%46 = call i32 @logp(ptr noundef @.str.2, ptr noundef %42, ptr noundef %44, ptr noundef %45)
%47 = call i64 @memalign(i32 noundef 8, i32 noundef 40)
%48 = inttoptr i64 %47 to ptr
store ptr %48, ptr %1, align 8
%49 = load ptr, ptr %1, align 8
%50 = call i32 @memset(ptr noundef %49, i8 noundef signext 51, i32 noundef 35)
%51 = load ptr, ptr %1, align 8
%52 = load ptr, ptr %1, align 8
%53 = call ptr @strlen(ptr noundef %52)
%54 = load ptr, ptr %1, align 8
%55 = call i32 @logp(ptr noundef @.str.4, ptr noundef %51, ptr noundef %53, ptr noundef %54)
%56 = load ptr, ptr %1, align 8
%57 = call i32 @free(ptr noundef %56)
%58 = load ptr, ptr %1, align 8
%59 = load ptr, ptr %1, align 8
%60 = call ptr @strlen(ptr noundef %59)
%61 = load ptr, ptr %1, align 8
%62 = call i32 @logp(ptr noundef @.str.2, ptr noundef %58, ptr noundef %60, ptr noundef %61)
%63 = call ptr @fopen(ptr noundef @.str.5, ptr noundef @.str.6)
store ptr %63, ptr %2, align 8
%64 = load ptr, ptr %2, align 8
%65 = icmp ne ptr null, %64
br i1 %65, label %66, label %73
66: ; preds = %0
%67 = load ptr, ptr %2, align 8
%68 = call i32 @logp(ptr noundef @.str.7, ptr noundef %67, ptr noundef @.str.5, ptr noundef @.str.6)
%69 = load ptr, ptr %2, align 8
%70 = call i32 @fclose(ptr noundef %69)
%71 = load ptr, ptr %2, align 8
%72 = call i32 @logp(ptr noundef @.str.8, ptr noundef %71, ptr noundef @.str.5, ptr noundef @.str.6)
br label %73
73: ; preds = %66, %0
ret void
}
declare i32 @logn(...) #1
declare i32 @loga(...) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @memset(ptr noundef, i8 noundef signext, i32 noundef) #1
declare i32 @logp(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @strlen(ptr noundef) #1
declare i64 @realloc(ptr noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
declare i64 @calloc(i32 noundef, i32 noundef) #1
declare i64 @memalign(i32 noundef, i32 noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpznj52xit.c'
source_filename = "/tmp/tmpznj52xit.c"
target datalayout = "e-m:e-p270: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/tmpznj52xit.c"
target datalayout = "e-m:e-p270: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/tmpu235i706.c'
source_filename = "/tmp/tmpu235i706.c"
target datalayout = "e-m:e-p270: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/tmpu235i706.c"
target datalayout = "e-m:e-p270: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/tmpocaq21j2.c'
source_filename = "/tmp/tmpocaq21j2.c"
target datalayout = "e-m:e-p270: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/tmpocaq21j2.c"
target datalayout = "e-m:e-p270: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/tmp133uqari.c'
source_filename = "/tmp/tmp133uqari.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @SysCtlClockSet(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%6 = load volatile i64, ptr inttoptr (i64 1074782304 to ptr), align 8
%7 = trunc i64 %6 to i32
store i32 %7, ptr %4, align 4
%8 = load volatile i64, ptr inttoptr (i64 1074782320 to ptr), align 8
%9 = trunc i64 %8 to i32
store i32 %9, ptr %5, align 4
%10 = load i32, ptr %4, align 4
%11 = or i32 %10, 2048
store i32 %11, ptr %4, align 4
%12 = load i32, ptr %4, align 4
%13 = and i32 %12, -4194305
store i32 %13, ptr %4, align 4
%14 = load i32, ptr %5, align 4
%15 = or i32 %14, 2048
store i32 %15, ptr %5, align 4
%16 = load i32, ptr %4, align 4
%17 = sext i32 %16 to i64
store volatile i64 %17, ptr inttoptr (i64 1074782304 to ptr), align 8
%18 = load i32, ptr %5, align 4
%19 = sext i32 %18 to i64
store volatile i64 %19, ptr inttoptr (i64 1074782320 to ptr), align 8
%20 = load i32, ptr %4, align 4
%21 = and i32 %20, 1
%22 = icmp ne i32 %21, 0
br i1 %22, label %23, label %51
23: ; preds = %1
%24 = load i32, ptr %2, align 4
%25 = and i32 %24, 1
%26 = icmp ne i32 %25, 0
br i1 %26, label %51, label %27
27: ; preds = %23
%28 = load i32, ptr %2, align 4
%29 = and i32 %28, 1
%30 = or i32 -2, %29
%31 = load i32, ptr %4, align 4
%32 = and i32 %31, %30
store i32 %32, ptr %4, align 4
store volatile i64 256, ptr inttoptr (i64 1074782296 to ptr), align 8
%33 = load i32, ptr %4, align 4
%34 = sext i32 %33 to i64
store volatile i64 %34, ptr inttoptr (i64 1074782304 to ptr), align 8
store i32 524288, ptr %3, align 4
br label %35
35: ; preds = %45, %27
%36 = load volatile i64, ptr inttoptr (i64 1074782288 to ptr), align 8
%37 = and i64 %36, 256
%38 = icmp eq i64 %37, 0
br i1 %38, label %39, label %46
39: ; preds = %35
%40 = load i32, ptr %3, align 4
%41 = add nsw i32 %40, -1
store i32 %41, ptr %3, align 4
%42 = load i32, ptr %3, align 4
%43 = icmp eq i32 %42, 0
br i1 %43, label %44, label %45
44: ; preds = %39
br label %46
45: ; preds = %39
br label %35, !llvm.loop !6
46: ; preds = %44, %35
%47 = load i32, ptr %3, align 4
%48 = icmp eq i32 %47, 0
br i1 %48, label %49, label %50
49: ; preds = %46
br label %154
50: ; preds = %46
br label %51
51: ; preds = %50, %23, %1
%52 = load i32, ptr %4, align 4
%53 = and i32 %52, -2033
store i32 %53, ptr %4, align 4
%54 = load i32, ptr %2, align 4
%55 = and i32 %54, 2032
%56 = load i32, ptr %4, align 4
%57 = or i32 %56, %55
store i32 %57, ptr %4, align 4
%58 = load i32, ptr %5, align 4
%59 = and i32 %58, 2147483535
store i32 %59, ptr %5, align 4
%60 = load i32, ptr %2, align 4
%61 = and i32 %60, -2147483600
%62 = load i32, ptr %5, align 4
%63 = or i32 %62, %61
store i32 %63, ptr %5, align 4
%64 = load i32, ptr %2, align 4
%65 = and i32 %64, 8
%66 = shl i32 %65, 3
%67 = load i32, ptr %5, align 4
%68 = or i32 %67, %66
store i32 %68, ptr %5, align 4
%69 = load i32, ptr %4, align 4
%70 = sext i32 %69 to i64
store volatile i64 %70, ptr inttoptr (i64 1074782304 to ptr), align 8
%71 = load i32, ptr %5, align 4
%72 = sext i32 %71 to i64
store volatile i64 %72, ptr inttoptr (i64 1074782320 to ptr), align 8
%73 = load i32, ptr %4, align 4
%74 = and i32 %73, -8193
store i32 %74, ptr %4, align 4
%75 = load i32, ptr %2, align 4
%76 = and i32 %75, 8192
%77 = load i32, ptr %4, align 4
%78 = or i32 %77, %76
store i32 %78, ptr %4, align 4
%79 = load i32, ptr %5, align 4
%80 = and i32 %79, -8193
store i32 %80, ptr %5, align 4
%81 = load i32, ptr %2, align 4
%82 = and i32 %81, 8192
%83 = load i32, ptr %5, align 4
%84 = or i32 %83, %82
store i32 %84, ptr %5, align 4
store volatile i64 64, ptr inttoptr (i64 1074782296 to ptr), align 8
%85 = load i32, ptr %5, align 4
%86 = and i32 %85, -2147483648
%87 = icmp ne i32 %86, 0
br i1 %87, label %88, label %93
88: ; preds = %51
%89 = load i32, ptr %5, align 4
%90 = sext i32 %89 to i64
store volatile i64 %90, ptr inttoptr (i64 1074782320 to ptr), align 8
%91 = load i32, ptr %4, align 4
%92 = sext i32 %91 to i64
store volatile i64 %92, ptr inttoptr (i64 1074782304 to ptr), align 8
br label %98
93: ; preds = %51
%94 = load i32, ptr %4, align 4
%95 = sext i32 %94 to i64
store volatile i64 %95, ptr inttoptr (i64 1074782304 to ptr), align 8
%96 = load i32, ptr %5, align 4
%97 = sext i32 %96 to i64
store volatile i64 %97, ptr inttoptr (i64 1074782320 to ptr), align 8
br label %98
98: ; preds = %93, %88
%99 = load i32, ptr %4, align 4
%100 = and i32 %99, -130023426
store i32 %100, ptr %4, align 4
%101 = load i32, ptr %2, align 4
%102 = and i32 %101, 130023425
%103 = load i32, ptr %4, align 4
%104 = or i32 %103, %102
store i32 %104, ptr %4, align 4
%105 = load i32, ptr %5, align 4
%106 = and i32 %105, -528482305
store i32 %106, ptr %5, align 4
%107 = load i32, ptr %2, align 4
%108 = and i32 %107, 528482304
%109 = load i32, ptr %5, align 4
%110 = or i32 %109, %108
store i32 %110, ptr %5, align 4
%111 = load i32, ptr %2, align 4
%112 = and i32 %111, 1073741824
%113 = icmp ne i32 %112, 0
br i1 %113, label %114, label %123
114: ; preds = %98
%115 = load i32, ptr %4, align 4
%116 = or i32 %115, 4194304
store i32 %116, ptr %4, align 4
%117 = load i32, ptr %5, align 4
%118 = and i32 %117, -4194305
store i32 %118, ptr %5, align 4
%119 = load i32, ptr %2, align 4
%120 = and i32 %119, 1077936128
%121 = load i32, ptr %5, align 4
%122 = or i32 %121, %120
store i32 %122, ptr %5, align 4
br label %126
123: ; preds = %98
%124 = load i32, ptr %5, align 4
%125 = and i32 %124, -1073741825
store i32 %125, ptr %5, align 4
br label %126
126: ; preds = %123, %114
%127 = load i32, ptr %2, align 4
%128 = and i32 %127, 2048
%129 = icmp ne i32 %128, 0
br i1 %129, label %148, label %130
130: ; preds = %126
store i32 32768, ptr %3, align 4
br label %131
131: ; preds = %140, %130
%132 = load i32, ptr %3, align 4
%133 = icmp sgt i32 %132, 0
br i1 %133, label %134, label %143
134: ; preds = %131
%135 = load volatile i64, ptr inttoptr (i64 1074782568 to ptr), align 8
%136 = and i64 %135, 1
%137 = icmp ne i64 %136, 0
br i1 %137, label %138, label %139
138: ; preds = %134
br label %143
139: ; preds = %134
br label %140
140: ; preds = %139
%141 = load i32, ptr %3, align 4
%142 = add nsw i32 %141, -1
store i32 %142, ptr %3, align 4
br label %131, !llvm.loop !8
143: ; preds = %138, %131
%144 = load i32, ptr %4, align 4
%145 = and i32 %144, -2049
store i32 %145, ptr %4, align 4
%146 = load i32, ptr %5, align 4
%147 = and i32 %146, -2049
store i32 %147, ptr %5, align 4
br label %148
148: ; preds = %143, %126
%149 = load i32, ptr %4, align 4
%150 = sext i32 %149 to i64
store volatile i64 %150, ptr inttoptr (i64 1074782304 to ptr), align 8
%151 = load i32, ptr %5, align 4
%152 = sext i32 %151 to i64
store volatile i64 %152, ptr inttoptr (i64 1074782320 to ptr), align 8
%153 = call i32 @SysCtlDelay(i32 noundef 16)
br label %154
154: ; preds = %148, %49
ret void
}
declare i32 @SysCtlDelay(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp133uqari.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @SysCtlClockSet(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%6 = load volatile i64, ptr inttoptr (i64 1074782304 to ptr), align 8
%7 = trunc i64 %6 to i32
store i32 %7, ptr %4, align 4
%8 = load volatile i64, ptr inttoptr (i64 1074782320 to ptr), align 8
%9 = trunc i64 %8 to i32
store i32 %9, ptr %5, align 4
%10 = load i32, ptr %4, align 4
%11 = or i32 %10, 2048
store i32 %11, ptr %4, align 4
%12 = load i32, ptr %4, align 4
%13 = and i32 %12, -4194305
store i32 %13, ptr %4, align 4
%14 = load i32, ptr %5, align 4
%15 = or i32 %14, 2048
store i32 %15, ptr %5, align 4
%16 = load i32, ptr %4, align 4
%17 = sext i32 %16 to i64
store volatile i64 %17, ptr inttoptr (i64 1074782304 to ptr), align 8
%18 = load i32, ptr %5, align 4
%19 = sext i32 %18 to i64
store volatile i64 %19, ptr inttoptr (i64 1074782320 to ptr), align 8
%20 = load i32, ptr %4, align 4
%21 = and i32 %20, 1
%22 = icmp ne i32 %21, 0
br i1 %22, label %23, label %53
23: ; preds = %1
%24 = load i32, ptr %2, align 4
%25 = and i32 %24, 1
%26 = icmp ne i32 %25, 0
br i1 %26, label %53, label %27
27: ; preds = %23
%28 = load i32, ptr %2, align 4
%29 = and i32 %28, 1
%30 = or i32 -2, %29
%31 = load i32, ptr %4, align 4
%32 = and i32 %31, %30
store i32 %32, ptr %4, align 4
store volatile i64 256, ptr inttoptr (i64 1074782296 to ptr), align 8
%33 = load i32, ptr %4, align 4
%34 = sext i32 %33 to i64
store volatile i64 %34, ptr inttoptr (i64 1074782304 to ptr), align 8
store i32 524288, ptr %3, align 4
%35 = load volatile i64, ptr inttoptr (i64 1074782288 to ptr), align 8
%36 = and i64 %35, 256
%37 = icmp eq i64 %36, 0
br i1 %37, label %.lr.ph, label %.loopexit1
.lr.ph: ; preds = %27
br label %42
38: ; preds = %42
%39 = load volatile i64, ptr inttoptr (i64 1074782288 to ptr), align 8
%40 = and i64 %39, 256
%41 = icmp eq i64 %40, 0
br i1 %41, label %42, label %..loopexit1_crit_edge, !llvm.loop !6
42: ; preds = %.lr.ph, %38
%43 = load i32, ptr %3, align 4
%44 = add nsw i32 %43, -1
store i32 %44, ptr %3, align 4
%45 = load i32, ptr %3, align 4
%46 = icmp eq i32 %45, 0
br i1 %46, label %47, label %38
47: ; preds = %42
br label %48
..loopexit1_crit_edge: ; preds = %38
br label %.loopexit1
.loopexit1: ; preds = %..loopexit1_crit_edge, %27
br label %48
48: ; preds = %.loopexit1, %47
%49 = load i32, ptr %3, align 4
%50 = icmp eq i32 %49, 0
br i1 %50, label %51, label %52
51: ; preds = %48
br label %157
52: ; preds = %48
br label %53
53: ; preds = %52, %23, %1
%54 = load i32, ptr %4, align 4
%55 = and i32 %54, -2033
store i32 %55, ptr %4, align 4
%56 = load i32, ptr %2, align 4
%57 = and i32 %56, 2032
%58 = load i32, ptr %4, align 4
%59 = or i32 %58, %57
store i32 %59, ptr %4, align 4
%60 = load i32, ptr %5, align 4
%61 = and i32 %60, 2147483535
store i32 %61, ptr %5, align 4
%62 = load i32, ptr %2, align 4
%63 = and i32 %62, -2147483600
%64 = load i32, ptr %5, align 4
%65 = or i32 %64, %63
store i32 %65, ptr %5, align 4
%66 = load i32, ptr %2, align 4
%67 = and i32 %66, 8
%68 = shl i32 %67, 3
%69 = load i32, ptr %5, align 4
%70 = or i32 %69, %68
store i32 %70, ptr %5, align 4
%71 = load i32, ptr %4, align 4
%72 = sext i32 %71 to i64
store volatile i64 %72, ptr inttoptr (i64 1074782304 to ptr), align 8
%73 = load i32, ptr %5, align 4
%74 = sext i32 %73 to i64
store volatile i64 %74, ptr inttoptr (i64 1074782320 to ptr), align 8
%75 = load i32, ptr %4, align 4
%76 = and i32 %75, -8193
store i32 %76, ptr %4, align 4
%77 = load i32, ptr %2, align 4
%78 = and i32 %77, 8192
%79 = load i32, ptr %4, align 4
%80 = or i32 %79, %78
store i32 %80, ptr %4, align 4
%81 = load i32, ptr %5, align 4
%82 = and i32 %81, -8193
store i32 %82, ptr %5, align 4
%83 = load i32, ptr %2, align 4
%84 = and i32 %83, 8192
%85 = load i32, ptr %5, align 4
%86 = or i32 %85, %84
store i32 %86, ptr %5, align 4
store volatile i64 64, ptr inttoptr (i64 1074782296 to ptr), align 8
%87 = load i32, ptr %5, align 4
%88 = and i32 %87, -2147483648
%89 = icmp ne i32 %88, 0
br i1 %89, label %90, label %95
90: ; preds = %53
%91 = load i32, ptr %5, align 4
%92 = sext i32 %91 to i64
store volatile i64 %92, ptr inttoptr (i64 1074782320 to ptr), align 8
%93 = load i32, ptr %4, align 4
%94 = sext i32 %93 to i64
store volatile i64 %94, ptr inttoptr (i64 1074782304 to ptr), align 8
br label %100
95: ; preds = %53
%96 = load i32, ptr %4, align 4
%97 = sext i32 %96 to i64
store volatile i64 %97, ptr inttoptr (i64 1074782304 to ptr), align 8
%98 = load i32, ptr %5, align 4
%99 = sext i32 %98 to i64
store volatile i64 %99, ptr inttoptr (i64 1074782320 to ptr), align 8
br label %100
100: ; preds = %95, %90
%101 = load i32, ptr %4, align 4
%102 = and i32 %101, -130023426
store i32 %102, ptr %4, align 4
%103 = load i32, ptr %2, align 4
%104 = and i32 %103, 130023425
%105 = load i32, ptr %4, align 4
%106 = or i32 %105, %104
store i32 %106, ptr %4, align 4
%107 = load i32, ptr %5, align 4
%108 = and i32 %107, -528482305
store i32 %108, ptr %5, align 4
%109 = load i32, ptr %2, align 4
%110 = and i32 %109, 528482304
%111 = load i32, ptr %5, align 4
%112 = or i32 %111, %110
store i32 %112, ptr %5, align 4
%113 = load i32, ptr %2, align 4
%114 = and i32 %113, 1073741824
%115 = icmp ne i32 %114, 0
br i1 %115, label %116, label %125
116: ; preds = %100
%117 = load i32, ptr %4, align 4
%118 = or i32 %117, 4194304
store i32 %118, ptr %4, align 4
%119 = load i32, ptr %5, align 4
%120 = and i32 %119, -4194305
store i32 %120, ptr %5, align 4
%121 = load i32, ptr %2, align 4
%122 = and i32 %121, 1077936128
%123 = load i32, ptr %5, align 4
%124 = or i32 %123, %122
store i32 %124, ptr %5, align 4
br label %128
125: ; preds = %100
%126 = load i32, ptr %5, align 4
%127 = and i32 %126, -1073741825
store i32 %127, ptr %5, align 4
br label %128
128: ; preds = %125, %116
%129 = load i32, ptr %2, align 4
%130 = and i32 %129, 2048
%131 = icmp ne i32 %130, 0
br i1 %131, label %151, label %132
132: ; preds = %128
store i32 32768, ptr %3, align 4
%133 = load i32, ptr %3, align 4
%134 = icmp sgt i32 %133, 0
br i1 %134, label %.lr.ph2, label %.loopexit
.lr.ph2: ; preds = %132
br label %135
135: ; preds = %.lr.ph2, %141
%136 = load volatile i64, ptr inttoptr (i64 1074782568 to ptr), align 8
%137 = and i64 %136, 1
%138 = icmp ne i64 %137, 0
br i1 %138, label %139, label %140
139: ; preds = %135
br label %146
140: ; preds = %135
br label %141
141: ; preds = %140
%142 = load i32, ptr %3, align 4
%143 = add nsw i32 %142, -1
store i32 %143, ptr %3, align 4
%144 = load i32, ptr %3, align 4
%145 = icmp sgt i32 %144, 0
br i1 %145, label %135, label %..loopexit_crit_edge, !llvm.loop !8
..loopexit_crit_edge: ; preds = %141
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %132
br label %146
146: ; preds = %.loopexit, %139
%147 = load i32, ptr %4, align 4
%148 = and i32 %147, -2049
store i32 %148, ptr %4, align 4
%149 = load i32, ptr %5, align 4
%150 = and i32 %149, -2049
store i32 %150, ptr %5, align 4
br label %151
151: ; preds = %146, %128
%152 = load i32, ptr %4, align 4
%153 = sext i32 %152 to i64
store volatile i64 %153, ptr inttoptr (i64 1074782304 to ptr), align 8
%154 = load i32, ptr %5, align 4
%155 = sext i32 %154 to i64
store volatile i64 %155, ptr inttoptr (i64 1074782320 to ptr), align 8
%156 = call i32 @SysCtlDelay(i32 noundef 16)
br label %157
157: ; preds = %151, %51
ret void
}
declare i32 @SysCtlDelay(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp_tcc64cb.c'
source_filename = "/tmp/tmp_tcc64cb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"File |\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"| \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @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
%7 = load i32, ptr %4, align 4
%8 = icmp eq i32 %7, 1
br i1 %8, label %12, label %9
9: ; preds = %2
%10 = call i32 (...) @check_asm_header()
%11 = icmp ne i32 %10, 0
br i1 %11, label %14, label %12
12: ; preds = %9, %2
%13 = call i32 @eol(i32 noundef 14)
store i32 %13, ptr %3, align 4
br label %83
14: ; preds = %9
store i32 0, ptr %6, align 4
br label %15
15: ; preds = %81, %14
%16 = load i32, ptr %6, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %6, align 4
%18 = load i32, ptr %4, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %20, label %82
20: ; preds = %15
%21 = call i32 @ft_putstr(ptr noundef @.str)
%22 = load ptr, ptr %5, align 8
%23 = load i32, ptr %6, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds ptr, ptr %22, i64 %24
%26 = load ptr, ptr %25, align 8
%27 = call i32 @ft_putstr(ptr noundef %26)
%28 = call i32 @ft_putstr(ptr noundef @.str.1)
%29 = load ptr, ptr %5, align 8
%30 = load i32, ptr %6, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds ptr, ptr %29, i64 %31
%33 = load ptr, ptr %32, align 8
%34 = call i32 @ft_strlen(ptr noundef %33)
%35 = icmp slt i32 %34, 3
br i1 %35, label %72, label %36
36: ; preds = %20
%37 = load ptr, ptr %5, align 8
%38 = load i32, ptr %6, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds ptr, ptr %37, i64 %39
%41 = load ptr, ptr %40, align 8
%42 = load ptr, ptr %5, align 8
%43 = load i32, ptr %6, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds ptr, ptr %42, i64 %44
%46 = load ptr, ptr %45, align 8
%47 = call i32 @ft_strlen(ptr noundef %46)
%48 = sub nsw i32 %47, 1
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i8, ptr %41, i64 %49
%51 = load i8, ptr %50, align 1
%52 = sext i8 %51 to i32
%53 = icmp ne i32 %52, 115
br i1 %53, label %72, label %54
54: ; preds = %36
%55 = load ptr, ptr %5, align 8
%56 = load i32, ptr %6, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds ptr, ptr %55, i64 %57
%59 = load ptr, ptr %58, align 8
%60 = load ptr, ptr %5, align 8
%61 = load i32, ptr %6, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds ptr, ptr %60, i64 %62
%64 = load ptr, ptr %63, align 8
%65 = call i32 @ft_strlen(ptr noundef %64)
%66 = sub nsw i32 %65, 2
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds i8, ptr %59, i64 %67
%69 = load i8, ptr %68, align 1
%70 = sext i8 %69 to i32
%71 = icmp ne i32 %70, 46
br i1 %71, label %72, label %74
72: ; preds = %54, %36, %20
%73 = call i32 @error_header(i32 noundef 2)
br label %81
74: ; preds = %54
%75 = load ptr, ptr %5, align 8
%76 = load i32, ptr %6, align 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds ptr, ptr %75, i64 %77
%79 = load ptr, ptr %78, align 8
%80 = call i32 @call_assembly(ptr noundef %79)
br label %81
81: ; preds = %74, %72
br label %15, !llvm.loop !6
82: ; preds = %15
store i32 1, ptr %3, align 4
br label %83
83: ; preds = %82, %12
%84 = load i32, ptr %3, align 4
ret i32 %84
}
declare i32 @check_asm_header(...) #1
declare i32 @eol(i32 noundef) #1
declare i32 @ft_putstr(ptr noundef) #1
declare i32 @ft_strlen(ptr noundef) #1
declare i32 @error_header(i32 noundef) #1
declare i32 @call_assembly(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_tcc64cb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [7 x i8] c"File |\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"| \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @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
%7 = load i32, ptr %4, align 4
%8 = icmp eq i32 %7, 1
br i1 %8, label %12, label %9
9: ; preds = %2
%10 = call i32 (...) @check_asm_header()
%11 = icmp ne i32 %10, 0
br i1 %11, label %14, label %12
12: ; preds = %9, %2
%13 = call i32 @eol(i32 noundef 14)
store i32 %13, ptr %3, align 4
br label %86
14: ; preds = %9
store i32 0, ptr %6, align 4
%15 = load i32, ptr %6, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %6, align 4
%17 = load i32, ptr %4, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %.lr.ph, label %85
.lr.ph: ; preds = %14
br label %19
19: ; preds = %.lr.ph, %80
%20 = call i32 @ft_putstr(ptr noundef @.str)
%21 = load ptr, ptr %5, align 8
%22 = load i32, ptr %6, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds ptr, ptr %21, i64 %23
%25 = load ptr, ptr %24, align 8
%26 = call i32 @ft_putstr(ptr noundef %25)
%27 = call i32 @ft_putstr(ptr noundef @.str.1)
%28 = load ptr, ptr %5, align 8
%29 = load i32, ptr %6, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds ptr, ptr %28, i64 %30
%32 = load ptr, ptr %31, align 8
%33 = call i32 @ft_strlen(ptr noundef %32)
%34 = icmp slt i32 %33, 3
br i1 %34, label %71, label %35
35: ; preds = %19
%36 = load ptr, ptr %5, align 8
%37 = load i32, ptr %6, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds ptr, ptr %36, i64 %38
%40 = load ptr, ptr %39, align 8
%41 = load ptr, ptr %5, align 8
%42 = load i32, ptr %6, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds ptr, ptr %41, i64 %43
%45 = load ptr, ptr %44, align 8
%46 = call i32 @ft_strlen(ptr noundef %45)
%47 = sub nsw i32 %46, 1
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i8, ptr %40, i64 %48
%50 = load i8, ptr %49, align 1
%51 = sext i8 %50 to i32
%52 = icmp ne i32 %51, 115
br i1 %52, label %71, label %53
53: ; preds = %35
%54 = load ptr, ptr %5, align 8
%55 = load i32, ptr %6, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds ptr, ptr %54, i64 %56
%58 = load ptr, ptr %57, align 8
%59 = load ptr, ptr %5, align 8
%60 = load i32, ptr %6, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds ptr, ptr %59, i64 %61
%63 = load ptr, ptr %62, align 8
%64 = call i32 @ft_strlen(ptr noundef %63)
%65 = sub nsw i32 %64, 2
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds i8, ptr %58, i64 %66
%68 = load i8, ptr %67, align 1
%69 = sext i8 %68 to i32
%70 = icmp ne i32 %69, 46
br i1 %70, label %71, label %73
71: ; preds = %53, %35, %19
%72 = call i32 @error_header(i32 noundef 2)
br label %80
73: ; preds = %53
%74 = load ptr, ptr %5, align 8
%75 = load i32, ptr %6, align 4
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds ptr, ptr %74, i64 %76
%78 = load ptr, ptr %77, align 8
%79 = call i32 @call_assembly(ptr noundef %78)
br label %80
80: ; preds = %73, %71
%81 = load i32, ptr %6, align 4
%82 = add nsw i32 %81, 1
store i32 %82, ptr %6, align 4
%83 = load i32, ptr %4, align 4
%84 = icmp slt i32 %82, %83
br i1 %84, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %80
br label %85
85: ; preds = %._crit_edge, %14
store i32 1, ptr %3, align 4
br label %86
86: ; preds = %85, %12
%87 = load i32, ptr %3, align 4
ret i32 %87
}
declare i32 @check_asm_header(...) #1
declare i32 @eol(i32 noundef) #1
declare i32 @ft_putstr(ptr noundef) #1
declare i32 @ft_strlen(ptr noundef) #1
declare i32 @error_header(i32 noundef) #1
declare i32 @call_assembly(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp0fp3r8ib.c'
source_filename = "/tmp/tmp0fp3r8ib.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cache_sync_rel() #0 {
store volatile i32 0, ptr inttoptr (i64 4095739696 to ptr), align 4
%1 = call i32 @cache_wait(i32 noundef -199227600, i32 noundef 1)
ret void
}
declare i32 @cache_wait(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/tmp0fp3r8ib.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cache_sync_rel() #0 {
store volatile i32 0, ptr inttoptr (i64 4095739696 to ptr), align 4
%1 = call i32 @cache_wait(i32 noundef -199227600, i32 noundef 1)
ret void
}
declare i32 @cache_wait(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/tmpdhl9ip_4.c'
source_filename = "/tmp/tmpdhl9ip_4.c"
target datalayout = "e-m:e-p270: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 [15 x i8] c"usage: %s <N>\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(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 i64, align 8
%9 = alloca ptr, align 8
%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 = load i32, ptr %4, align 4
%12 = icmp ne i32 %11, 2
br i1 %12, label %13, label %19
13: ; preds = %2
%14 = load i32, ptr @stderr, align 4
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 0
%17 = load ptr, ptr %16, align 8
%18 = call i32 @fprintf(i32 noundef %14, ptr noundef @.str, ptr noundef %17)
store i32 1, ptr %3, align 4
br label %49
19: ; preds = %2
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 1
%22 = load ptr, ptr %21, align 8
%23 = call i32 @atoi(ptr noundef %22)
store i32 %23, ptr %6, align 4
%24 = load i32, ptr %6, align 4
%25 = icmp sle i32 %24, 0
br i1 %25, label %26, label %27
26: ; preds = %19
store i32 1, ptr %3, align 4
br label %49
27: ; preds = %19
%28 = load i32, ptr %6, align 4
%29 = mul nsw i32 2, %28
store i32 %29, ptr %7, align 4
store i64 0, ptr %8, align 8
%30 = load i32, ptr %7, align 4
%31 = add nsw i32 %30, 1
%32 = call ptr @primes_under(ptr noundef null, i32 noundef %31, ptr noundef %8)
store ptr %32, ptr %9, align 8
store i32 2, ptr %10, align 4
br label %33
33: ; preds = %41, %27
%34 = load ptr, ptr %9, align 8
%35 = load i64, ptr %8, align 8
%36 = sub i64 %35, 1
%37 = load i32, ptr %10, align 4
%38 = call i32 @count_representation_combinations_(ptr noundef %34, i64 noundef %36, i32 noundef %37, ptr noundef null)
%39 = load i32, ptr %6, align 4
%40 = icmp slt i32 %38, %39
br i1 %40, label %41, label %44
41: ; preds = %33
%42 = load i32, ptr %10, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %10, align 4
br label %33, !llvm.loop !6
44: ; preds = %33
%45 = load i32, ptr %10, align 4
%46 = call i32 @printf(ptr noundef @.str.1, i32 noundef %45)
%47 = load ptr, ptr %9, align 8
%48 = call i32 @free(ptr noundef %47)
store i32 0, ptr %3, align 4
br label %49
49: ; preds = %44, %26, %13
%50 = load i32, ptr %3, align 4
ret i32 %50
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
declare ptr @primes_under(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @count_representation_combinations_(ptr noundef, i64 noundef, i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdhl9ip_4.c"
target datalayout = "e-m:e-p270: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 [15 x i8] c"usage: %s <N>\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(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 i64, align 8
%9 = alloca ptr, align 8
%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 = load i32, ptr %4, align 4
%12 = icmp ne i32 %11, 2
br i1 %12, label %13, label %19
13: ; preds = %2
%14 = load i32, ptr @stderr, align 4
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 0
%17 = load ptr, ptr %16, align 8
%18 = call i32 @fprintf(i32 noundef %14, ptr noundef @.str, ptr noundef %17)
store i32 1, ptr %3, align 4
br label %55
19: ; preds = %2
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds ptr, ptr %20, i64 1
%22 = load ptr, ptr %21, align 8
%23 = call i32 @atoi(ptr noundef %22)
store i32 %23, ptr %6, align 4
%24 = load i32, ptr %6, align 4
%25 = icmp sle i32 %24, 0
br i1 %25, label %26, label %27
26: ; preds = %19
store i32 1, ptr %3, align 4
br label %55
27: ; preds = %19
%28 = load i32, ptr %6, align 4
%29 = mul nsw i32 2, %28
store i32 %29, ptr %7, align 4
store i64 0, ptr %8, align 8
%30 = load i32, ptr %7, align 4
%31 = add nsw i32 %30, 1
%32 = call ptr @primes_under(ptr noundef null, i32 noundef %31, ptr noundef %8)
store ptr %32, ptr %9, align 8
store i32 2, ptr %10, align 4
%33 = load ptr, ptr %9, align 8
%34 = load i64, ptr %8, align 8
%35 = sub i64 %34, 1
%36 = load i32, ptr %10, align 4
%37 = call i32 @count_representation_combinations_(ptr noundef %33, i64 noundef %35, i32 noundef %36, ptr noundef null)
%38 = load i32, ptr %6, align 4
%39 = icmp slt i32 %37, %38
br i1 %39, label %.lr.ph, label %50
.lr.ph: ; preds = %27
br label %40
40: ; preds = %.lr.ph, %40
%41 = load i32, ptr %10, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %10, align 4
%43 = load ptr, ptr %9, align 8
%44 = load i64, ptr %8, align 8
%45 = sub i64 %44, 1
%46 = load i32, ptr %10, align 4
%47 = call i32 @count_representation_combinations_(ptr noundef %43, i64 noundef %45, i32 noundef %46, ptr noundef null)
%48 = load i32, ptr %6, align 4
%49 = icmp slt i32 %47, %48
br i1 %49, label %40, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %40
br label %50
50: ; preds = %._crit_edge, %27
%51 = load i32, ptr %10, align 4
%52 = call i32 @printf(ptr noundef @.str.1, i32 noundef %51)
%53 = load ptr, ptr %9, align 8
%54 = call i32 @free(ptr noundef %53)
store i32 0, ptr %3, align 4
br label %55
55: ; preds = %50, %26, %13
%56 = load i32, ptr %3, align 4
ret i32 %56
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
declare ptr @primes_under(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @count_representation_combinations_(ptr noundef, i64 noundef, i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpvqqpp5ex.c'
source_filename = "/tmp/tmpvqqpp5ex.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @j_replacetext(i32 noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%9 = load i32, ptr %5, align 4
%10 = load ptr, ptr %6, align 8
%11 = load i32, ptr %7, align 4
%12 = load i32, ptr %8, align 4
%13 = call i32 @japi_replacetext(i32 noundef %9, ptr noundef %10, i32 noundef %11, i32 noundef %12)
ret void
}
declare i32 @japi_replacetext(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/tmpvqqpp5ex.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @j_replacetext(i32 noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%9 = load i32, ptr %5, align 4
%10 = load ptr, ptr %6, align 8
%11 = load i32, ptr %7, align 4
%12 = load i32, ptr %8, align 4
%13 = call i32 @japi_replacetext(i32 noundef %9, ptr noundef %10, i32 noundef %11, i32 noundef %12)
ret void
}
declare i32 @japi_replacetext(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/tmpazqown_f.c'
source_filename = "/tmp/tmpazqown_f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Enter the number:\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"counter is %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [23 x i8] c"largest Number is: %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [30 x i8] c"second largest Number is: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 1, ptr %3, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%8 = load i32, ptr %2, align 4
store i32 %8, ptr %4, align 4
%9 = load i32, ptr %2, align 4
store i32 %9, ptr %5, align 4
br label %10
10: ; preds = %49, %0
%11 = load i32, ptr %3, align 4
%12 = icmp ne i32 %11, 3
br i1 %12, label %13, label %50
13: ; preds = %10
%14 = load i32, ptr %3, align 4
%15 = add nsw i32 %14, 1
store i32 %15, ptr %3, align 4
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%17 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%18 = load i32, ptr %2, align 4
%19 = load i32, ptr %4, align 4
%20 = icmp sgt i32 %18, %19
br i1 %20, label %21, label %24
21: ; preds = %13
%22 = load i32, ptr %4, align 4
store i32 %22, ptr %5, align 4
%23 = load i32, ptr %2, align 4
store i32 %23, ptr %4, align 4
br label %49
24: ; preds = %13
%25 = load i32, ptr %2, align 4
%26 = load i32, ptr %4, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %28, label %48
28: ; preds = %24
%29 = load i32, ptr %3, align 4
%30 = icmp eq i32 %29, 2
br i1 %30, label %31, label %33
31: ; preds = %28
%32 = load i32, ptr %2, align 4
store i32 %32, ptr %5, align 4
br label %47
33: ; preds = %28
%34 = load i32, ptr %2, align 4
%35 = load i32, ptr %5, align 4
%36 = icmp sgt i32 %34, %35
br i1 %36, label %37, label %39
37: ; preds = %33
%38 = load i32, ptr %2, align 4
store i32 %38, ptr %5, align 4
br label %46
39: ; preds = %33
%40 = load i32, ptr %4, align 4
%41 = load i32, ptr %5, align 4
%42 = icmp eq i32 %40, %41
br i1 %42, label %43, label %45
43: ; preds = %39
%44 = load i32, ptr %2, align 4
store i32 %44, ptr %5, align 4
br label %45
45: ; preds = %43, %39
br label %46
46: ; preds = %45, %37
br label %47
47: ; preds = %46, %31
br label %48
48: ; preds = %47, %24
br label %49
49: ; preds = %48, %21
br label %10, !llvm.loop !6
50: ; preds = %10
%51 = load i32, ptr %3, align 4
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %51)
%53 = load i32, ptr %4, align 4
%54 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %53)
%55 = load i32, ptr %5, align 4
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %55)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpazqown_f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Enter the number:\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [15 x i8] c"counter is %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [23 x i8] c"largest Number is: %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [30 x i8] c"second largest Number is: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 1, ptr %3, align 4
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%8 = load i32, ptr %2, align 4
store i32 %8, ptr %4, align 4
%9 = load i32, ptr %2, align 4
store i32 %9, ptr %5, align 4
%10 = load i32, ptr %3, align 4
%11 = icmp ne i32 %10, 3
br i1 %11, label %.lr.ph, label %51
.lr.ph: ; preds = %0
br label %12
12: ; preds = %.lr.ph, %48
%13 = load i32, ptr %3, align 4
%14 = add nsw i32 %13, 1
store i32 %14, ptr %3, align 4
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%16 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%17 = load i32, ptr %2, align 4
%18 = load i32, ptr %4, align 4
%19 = icmp sgt i32 %17, %18
br i1 %19, label %20, label %23
20: ; preds = %12
%21 = load i32, ptr %4, align 4
store i32 %21, ptr %5, align 4
%22 = load i32, ptr %2, align 4
store i32 %22, ptr %4, align 4
br label %48
23: ; preds = %12
%24 = load i32, ptr %2, align 4
%25 = load i32, ptr %4, align 4
%26 = icmp slt i32 %24, %25
br i1 %26, label %27, label %47
27: ; preds = %23
%28 = load i32, ptr %3, align 4
%29 = icmp eq i32 %28, 2
br i1 %29, label %30, label %32
30: ; preds = %27
%31 = load i32, ptr %2, align 4
store i32 %31, ptr %5, align 4
br label %46
32: ; preds = %27
%33 = load i32, ptr %2, align 4
%34 = load i32, ptr %5, align 4
%35 = icmp sgt i32 %33, %34
br i1 %35, label %36, label %38
36: ; preds = %32
%37 = load i32, ptr %2, align 4
store i32 %37, ptr %5, align 4
br label %45
38: ; preds = %32
%39 = load i32, ptr %4, align 4
%40 = load i32, ptr %5, align 4
%41 = icmp eq i32 %39, %40
br i1 %41, label %42, label %44
42: ; preds = %38
%43 = load i32, ptr %2, align 4
store i32 %43, ptr %5, align 4
br label %44
44: ; preds = %42, %38
br label %45
45: ; preds = %44, %36
br label %46
46: ; preds = %45, %30
br label %47
47: ; preds = %46, %23
br label %48
48: ; preds = %47, %20
%49 = load i32, ptr %3, align 4
%50 = icmp ne i32 %49, 3
br i1 %50, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %48
br label %51
51: ; preds = %._crit_edge, %0
%52 = load i32, ptr %3, align 4
%53 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %52)
%54 = load i32, ptr %4, align 4
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %54)
%56 = load i32, ptr %5, align 4
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %56)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmptj5ag9to.c'
source_filename = "/tmp/tmptj5ag9to.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; 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
store i32 0, ptr %1, align 4
%7 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
br label %8
8: ; preds = %26, %0
%9 = load i32, ptr %2, align 4
%10 = add nsw i32 %9, -1
store i32 %10, ptr %2, align 4
%11 = icmp ne i32 %9, 0
br i1 %11, label %12, label %29
12: ; preds = %8
store i32 0, ptr %6, align 4
%13 = call i32 @scanf(ptr noundef @.str, ptr noundef %4)
store i32 0, ptr %3, align 4
br label %14
14: ; preds = %23, %12
%15 = load i32, ptr %3, align 4
%16 = load i32, ptr %4, align 4
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %26
18: ; preds = %14
%19 = call i32 @scanf(ptr noundef @.str, ptr noundef %5)
%20 = load i32, ptr %5, align 4
%21 = load i32, ptr %6, align 4
%22 = add nsw i32 %21, %20
store i32 %22, ptr %6, align 4
br label %23
23: ; preds = %18
%24 = load i32, ptr %3, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %3, align 4
br label %14, !llvm.loop !6
26: ; preds = %14
%27 = load i32, ptr %6, align 4
%28 = call i32 @printf(ptr noundef @.str.1, i32 noundef %27)
br label %8, !llvm.loop !8
29: ; preds = %8
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptj5ag9to.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; 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
store i32 0, ptr %1, align 4
%7 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
%8 = load i32, ptr %2, align 4
%9 = add nsw i32 %8, -1
store i32 %9, ptr %2, align 4
%10 = icmp ne i32 %8, 0
br i1 %10, label %.lr.ph2, label %33
.lr.ph2: ; preds = %0
br label %11
11: ; preds = %.lr.ph2, %27
store i32 0, ptr %6, align 4
%12 = call i32 @scanf(ptr noundef @.str, ptr noundef %4)
store i32 0, ptr %3, align 4
%13 = load i32, ptr %3, align 4
%14 = load i32, ptr %4, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %.lr.ph, label %27
.lr.ph: ; preds = %11
br label %16
16: ; preds = %.lr.ph, %21
%17 = call i32 @scanf(ptr noundef @.str, ptr noundef %5)
%18 = load i32, ptr %5, align 4
%19 = load i32, ptr %6, align 4
%20 = add nsw i32 %19, %18
store i32 %20, ptr %6, align 4
br label %21
21: ; preds = %16
%22 = load i32, ptr %3, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %3, align 4
%24 = load i32, ptr %3, align 4
%25 = load i32, ptr %4, align 4
%26 = icmp slt i32 %24, %25
br i1 %26, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %27
27: ; preds = %._crit_edge, %11
%28 = load i32, ptr %6, align 4
%29 = call i32 @printf(ptr noundef @.str.1, i32 noundef %28)
%30 = load i32, ptr %2, align 4
%31 = add nsw i32 %30, -1
store i32 %31, ptr %2, align 4
%32 = icmp ne i32 %30, 0
br i1 %32, label %11, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %27
br label %33
33: ; preds = %._crit_edge3, %0
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpe86pvxdc.c'
source_filename = "/tmp/tmpe86pvxdc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Chabu_Priority_PopNextRequestCtrl(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 ptr @popNextRequest(ptr noundef %3, i32 noundef 1)
ret ptr %4
}
declare ptr @popNextRequest(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/tmpe86pvxdc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Chabu_Priority_PopNextRequestCtrl(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 ptr @popNextRequest(ptr noundef %3, i32 noundef 1)
ret ptr %4
}
declare ptr @popNextRequest(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/tmpm9gxw6ca.c'
source_filename = "/tmp/tmpm9gxw6ca.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 10, ptr %2, align 4
store i32 1, ptr %3, align 4
br label %4
4: ; preds = %7, %0
%5 = load i32, ptr %2, align 4
%6 = icmp sgt i32 %5, 0
br i1 %6, label %7, label %13
7: ; preds = %4
%8 = load i32, ptr %2, align 4
%9 = load i32, ptr %3, align 4
%10 = mul nsw i32 %9, %8
store i32 %10, ptr %3, align 4
%11 = load i32, ptr %2, align 4
%12 = add nsw i32 %11, -1
store i32 %12, ptr %2, align 4
br label %4, !llvm.loop !6
13: ; preds = %4
%14 = load i32, ptr %3, align 4
%15 = call i32 @printf(ptr noundef @.str, i32 noundef %14)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpm9gxw6ca.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 10, ptr %2, align 4
store i32 1, ptr %3, align 4
%4 = load i32, ptr %2, align 4
%5 = icmp sgt i32 %4, 0
br i1 %5, label %.lr.ph, label %14
.lr.ph: ; preds = %0
br label %6
6: ; preds = %.lr.ph, %6
%7 = load i32, ptr %2, align 4
%8 = load i32, ptr %3, align 4
%9 = mul nsw i32 %8, %7
store i32 %9, ptr %3, align 4
%10 = load i32, ptr %2, align 4
%11 = add nsw i32 %10, -1
store i32 %11, ptr %2, align 4
%12 = load i32, ptr %2, align 4
%13 = icmp sgt i32 %12, 0
br i1 %13, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %6
br label %14
14: ; preds = %._crit_edge, %0
%15 = load i32, ptr %3, align 4
%16 = call i32 @printf(ptr noundef @.str, i32 noundef %15)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpq8y6qb1t.c'
source_filename = "/tmp/tmpq8y6qb1t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @say_hi_a() #0 {
%1 = call i32 (...) @say_hi()
ret void
}
declare i32 @say_hi(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpq8y6qb1t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @say_hi_a() #0 {
%1 = call i32 (...) @say_hi()
ret void
}
declare i32 @say_hi(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdfvx_37f.c'
source_filename = "/tmp/tmpdfvx_37f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ustar_func(double noundef %0, double noundef %1, double noundef %2, double noundef %3, double noundef %4, double noundef %5) #0 {
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca double, align 8
store double %0, ptr %7, align 8
store double %1, ptr %8, align 8
store double %2, ptr %9, align 8
store double %3, ptr %10, align 8
store double %4, ptr %11, align 8
store double %5, ptr %12, align 8
%14 = load double, ptr %7, align 8
%15 = load double, ptr %8, align 8
%16 = fmul double %14, %15
%17 = load double, ptr %9, align 8
%18 = load double, ptr %10, align 8
%19 = fsub double %17, %18
%20 = load double, ptr %11, align 8
%21 = fdiv double %19, %20
%22 = call double @log(double noundef %21) #2
%23 = load double, ptr %12, align 8
%24 = fsub double %22, %23
%25 = fdiv double %16, %24
store double %25, ptr %13, align 8
%26 = load double, ptr %13, align 8
ret double %26
}
; Function Attrs: nounwind
declare double @log(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 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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/tmpdfvx_37f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ustar_func(double noundef %0, double noundef %1, double noundef %2, double noundef %3, double noundef %4, double noundef %5) #0 {
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca double, align 8
store double %0, ptr %7, align 8
store double %1, ptr %8, align 8
store double %2, ptr %9, align 8
store double %3, ptr %10, align 8
store double %4, ptr %11, align 8
store double %5, ptr %12, align 8
%14 = load double, ptr %7, align 8
%15 = load double, ptr %8, align 8
%16 = fmul double %14, %15
%17 = load double, ptr %9, align 8
%18 = load double, ptr %10, align 8
%19 = fsub double %17, %18
%20 = load double, ptr %11, align 8
%21 = fdiv double %19, %20
%22 = call double @log(double noundef %21) #2
%23 = load double, ptr %12, align 8
%24 = fsub double %22, %23
%25 = fdiv double %16, %24
store double %25, ptr %13, align 8
%26 = load double, ptr %13, align 8
ret double %26
}
; Function Attrs: nounwind
declare double @log(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 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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/tmppyy2puxu.c'
source_filename = "/tmp/tmppyy2puxu.c"
target datalayout = "e-m:e-p270: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/tmppyy2puxu.c"
target datalayout = "e-m:e-p270: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/tmpi99_qbkl.c'
source_filename = "/tmp/tmpi99_qbkl.c"
target datalayout = "e-m:e-p270: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 [19 x i8] c"Sulong: a[0] = %i\0A\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c"Sulong: a[1] = %i\0A\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"Sulong: a[2] = %i\0A\00", align 1
@.str.3 = private unnamed_addr constant [16 x i8] c"Sulong: a = %p\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = call ptr @malloc(i32 noundef 12)
store ptr %7, ptr %6, align 8
%8 = load ptr, ptr %6, align 8
%9 = getelementptr inbounds i32, ptr %8, i64 0
store i32 42, ptr %9, align 4
%10 = load ptr, ptr %6, align 8
%11 = getelementptr inbounds i32, ptr %10, i64 1
store i32 43, ptr %11, align 4
%12 = load ptr, ptr %6, align 8
%13 = getelementptr inbounds i32, ptr %12, i64 2
store i32 44, ptr %13, align 4
%14 = load i32, ptr @stderr, align 4
%15 = load ptr, ptr %6, align 8
%16 = getelementptr inbounds i32, ptr %15, i64 0
%17 = load i32, ptr %16, align 4
%18 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %14, ptr noundef @.str, i32 noundef %17)
%19 = load i32, ptr @stderr, align 4
%20 = load ptr, ptr %6, align 8
%21 = getelementptr inbounds i32, ptr %20, i64 1
%22 = load i32, ptr %21, align 4
%23 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %19, ptr noundef @.str.1, i32 noundef %22)
%24 = load i32, ptr @stderr, align 4
%25 = load ptr, ptr %6, align 8
%26 = getelementptr inbounds i32, ptr %25, i64 2
%27 = load i32, ptr %26, align 4
%28 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %24, ptr noundef @.str.2, i32 noundef %27)
%29 = load i32, ptr @stderr, align 4
%30 = load ptr, ptr %6, align 8
%31 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %29, ptr noundef @.str.3, ptr noundef %30)
%32 = load ptr, ptr %6, align 8
%33 = call i32 @printArray(ptr noundef %32)
ret i32 0
}
declare ptr @malloc(i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @printArray(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpi99_qbkl.c"
target datalayout = "e-m:e-p270: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 [19 x i8] c"Sulong: a[0] = %i\0A\00", align 1
@.str.1 = private unnamed_addr constant [19 x i8] c"Sulong: a[1] = %i\0A\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"Sulong: a[2] = %i\0A\00", align 1
@.str.3 = private unnamed_addr constant [16 x i8] c"Sulong: a = %p\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%7 = call ptr @malloc(i32 noundef 12)
store ptr %7, ptr %6, align 8
%8 = load ptr, ptr %6, align 8
%9 = getelementptr inbounds i32, ptr %8, i64 0
store i32 42, ptr %9, align 4
%10 = load ptr, ptr %6, align 8
%11 = getelementptr inbounds i32, ptr %10, i64 1
store i32 43, ptr %11, align 4
%12 = load ptr, ptr %6, align 8
%13 = getelementptr inbounds i32, ptr %12, i64 2
store i32 44, ptr %13, align 4
%14 = load i32, ptr @stderr, align 4
%15 = load ptr, ptr %6, align 8
%16 = getelementptr inbounds i32, ptr %15, i64 0
%17 = load i32, ptr %16, align 4
%18 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %14, ptr noundef @.str, i32 noundef %17)
%19 = load i32, ptr @stderr, align 4
%20 = load ptr, ptr %6, align 8
%21 = getelementptr inbounds i32, ptr %20, i64 1
%22 = load i32, ptr %21, align 4
%23 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %19, ptr noundef @.str.1, i32 noundef %22)
%24 = load i32, ptr @stderr, align 4
%25 = load ptr, ptr %6, align 8
%26 = getelementptr inbounds i32, ptr %25, i64 2
%27 = load i32, ptr %26, align 4
%28 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %24, ptr noundef @.str.2, i32 noundef %27)
%29 = load i32, ptr @stderr, align 4
%30 = load ptr, ptr %6, align 8
%31 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %29, ptr noundef @.str.3, ptr noundef %30)
%32 = load ptr, ptr %6, align 8
%33 = call i32 @printArray(ptr noundef %32)
ret i32 0
}
declare ptr @malloc(i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @printArray(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpso30nb6_.c'
source_filename = "/tmp/tmpso30nb6_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"MAC\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"KN\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"PH\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"SCH\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @nysiis(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i8, align 1
%6 = alloca i8, align 1
%7 = alloca i8, align 1
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%12 = load ptr, ptr %3, align 8
%13 = call i64 @strlen(ptr noundef %12)
store i64 %13, ptr %4, align 8
%14 = load i64, ptr %4, align 8
%15 = add i64 %14, 1
%16 = mul i64 %15, 1
%17 = call ptr @alloca(i64 noundef %16)
store ptr %17, ptr %8, align 8
store ptr null, ptr %9, align 8
%18 = load ptr, ptr %8, align 8
%19 = load ptr, ptr %3, align 8
%20 = load i64, ptr %4, align 8
%21 = add i64 %20, 1
%22 = call i32 @memcpy(ptr noundef %18, ptr noundef %19, i64 noundef %21)
%23 = load ptr, ptr %8, align 8
%24 = icmp ne ptr %23, null
br i1 %24, label %26, label %25
25: ; preds = %1
store ptr null, ptr %2, align 8
br label %442
26: ; preds = %1
%27 = load ptr, ptr %8, align 8
%28 = load i8, ptr %27, align 1
%29 = icmp ne i8 %28, 0
br i1 %29, label %32, label %30
30: ; preds = %26
%31 = call ptr @calloc(i64 noundef 1, i32 noundef 1)
store ptr %31, ptr %2, align 8
br label %442
32: ; preds = %26
%33 = load i64, ptr %4, align 8
%34 = add i64 %33, 1
%35 = call ptr @calloc(i64 noundef %34, i32 noundef 1)
store ptr %35, ptr %9, align 8
%36 = load ptr, ptr %9, align 8
%37 = icmp ne ptr %36, null
br i1 %37, label %39, label %38
38: ; preds = %32
store ptr null, ptr %2, align 8
br label %442
39: ; preds = %32
%40 = load ptr, ptr %8, align 8
store ptr %40, ptr %10, align 8
store ptr %40, ptr %11, align 8
br label %41
41: ; preds = %45, %39
%42 = load ptr, ptr %10, align 8
%43 = load i8, ptr %42, align 1
%44 = icmp ne i8 %43, 0
br i1 %44, label %45, label %54
45: ; preds = %41
%46 = load ptr, ptr %10, align 8
%47 = getelementptr inbounds i8, ptr %46, i32 1
store ptr %47, ptr %10, align 8
%48 = load i8, ptr %46, align 1
%49 = sext i8 %48 to i32
%50 = call i32 @toupper(i32 noundef %49) #3
%51 = trunc i32 %50 to i8
%52 = load ptr, ptr %11, align 8
%53 = getelementptr inbounds i8, ptr %52, i32 1
store ptr %53, ptr %11, align 8
store i8 %51, ptr %52, align 1
br label %41, !llvm.loop !6
54: ; preds = %41
%55 = load ptr, ptr %8, align 8
%56 = call i64 @strncmp(ptr noundef %55, ptr noundef @.str, i32 noundef 3)
%57 = icmp eq i64 %56, 0
br i1 %57, label %58, label %61
58: ; preds = %54
%59 = load ptr, ptr %8, align 8
%60 = getelementptr inbounds i8, ptr %59, i64 1
store i8 67, ptr %60, align 1
br label %99
61: ; preds = %54
%62 = load ptr, ptr %8, align 8
%63 = call i64 @strncmp(ptr noundef %62, ptr noundef @.str.1, i32 noundef 2)
%64 = icmp eq i64 %63, 0
br i1 %64, label %65, label %68
65: ; preds = %61
%66 = load ptr, ptr %8, align 8
%67 = getelementptr inbounds i8, ptr %66, i64 0
store i8 78, ptr %67, align 1
br label %98
68: ; preds = %61
%69 = load ptr, ptr %8, align 8
%70 = getelementptr inbounds i8, ptr %69, i64 0
%71 = load i8, ptr %70, align 1
%72 = sext i8 %71 to i32
%73 = icmp eq i32 %72, 75
br i1 %73, label %74, label %77
74: ; preds = %68
%75 = load ptr, ptr %8, align 8
%76 = getelementptr inbounds i8, ptr %75, i64 0
store i8 67, ptr %76, align 1
br label %97
77: ; preds = %68
%78 = load ptr, ptr %8, align 8
%79 = call i64 @strncmp(ptr noundef %78, ptr noundef @.str.2, i32 noundef 2)
%80 = icmp eq i64 %79, 0
br i1 %80, label %81, label %86
81: ; preds = %77
%82 = load ptr, ptr %8, align 8
%83 = getelementptr inbounds i8, ptr %82, i64 0
store i8 70, ptr %83, align 1
%84 = load ptr, ptr %8, align 8
%85 = getelementptr inbounds i8, ptr %84, i64 1
store i8 70, ptr %85, align 1
br label %96
86: ; preds = %77
%87 = load ptr, ptr %8, align 8
%88 = call i64 @strncmp(ptr noundef %87, ptr noundef @.str.3, i32 noundef 3)
%89 = icmp eq i64 %88, 0
br i1 %89, label %90, label %95
90: ; preds = %86
%91 = load ptr, ptr %8, align 8
%92 = getelementptr inbounds i8, ptr %91, i64 1
store i8 83, ptr %92, align 1
%93 = load ptr, ptr %8, align 8
%94 = getelementptr inbounds i8, ptr %93, i64 2
store i8 83, ptr %94, align 1
br label %95
95: ; preds = %90, %86
br label %96
96: ; preds = %95, %81
br label %97
97: ; preds = %96, %74
br label %98
98: ; preds = %97, %65
br label %99
99: ; preds = %98, %58
%100 = load ptr, ptr %8, align 8
%101 = load i64, ptr %4, align 8
%102 = sub i64 %101, 1
%103 = getelementptr inbounds i8, ptr %100, i64 %102
%104 = load i8, ptr %103, align 1
store i8 %104, ptr %5, align 1
%105 = load i8, ptr %5, align 1
%106 = sext i8 %105 to i32
%107 = icmp eq i32 %106, 69
br i1 %107, label %108, label %131
108: ; preds = %99
%109 = load ptr, ptr %8, align 8
%110 = load i64, ptr %4, align 8
%111 = sub i64 %110, 2
%112 = getelementptr inbounds i8, ptr %109, i64 %111
%113 = load i8, ptr %112, align 1
store i8 %113, ptr %6, align 1
%114 = load i8, ptr %6, align 1
%115 = sext i8 %114 to i32
%116 = icmp eq i32 %115, 69
br i1 %116, label %121, label %117
117: ; preds = %108
%118 = load i8, ptr %6, align 1
%119 = sext i8 %118 to i32
%120 = icmp eq i32 %119, 73
br i1 %120, label %121, label %130
121: ; preds = %117, %108
%122 = load ptr, ptr %8, align 8
%123 = load i64, ptr %4, align 8
%124 = sub i64 %123, 1
%125 = getelementptr inbounds i8, ptr %122, i64 %124
store i8 32, ptr %125, align 1
%126 = load ptr, ptr %8, align 8
%127 = load i64, ptr %4, align 8
%128 = sub i64 %127, 2
%129 = getelementptr inbounds i8, ptr %126, i64 %128
store i8 89, ptr %129, align 1
br label %130
130: ; preds = %121, %117
br label %191
131: ; preds = %99
%132 = load i8, ptr %5, align 1
%133 = sext i8 %132 to i32
%134 = icmp eq i32 %133, 84
br i1 %134, label %135, label %162
135: ; preds = %131
%136 = load ptr, ptr %8, align 8
%137 = load i64, ptr %4, align 8
%138 = sub i64 %137, 2
%139 = getelementptr inbounds i8, ptr %136, i64 %138
%140 = load i8, ptr %139, align 1
store i8 %140, ptr %6, align 1
%141 = load i8, ptr %6, align 1
%142 = sext i8 %141 to i32
%143 = icmp eq i32 %142, 68
br i1 %143, label %152, label %144
144: ; preds = %135
%145 = load i8, ptr %6, align 1
%146 = sext i8 %145 to i32
%147 = icmp eq i32 %146, 82
br i1 %147, label %152, label %148
148: ; preds = %144
%149 = load i8, ptr %6, align 1
%150 = sext i8 %149 to i32
%151 = icmp eq i32 %150, 78
br i1 %151, label %152, label %161
152: ; preds = %148, %144, %135
%153 = load ptr, ptr %8, align 8
%154 = load i64, ptr %4, align 8
%155 = sub i64 %154, 1
%156 = getelementptr inbounds i8, ptr %153, i64 %155
store i8 32, ptr %156, align 1
%157 = load ptr, ptr %8, align 8
%158 = load i64, ptr %4, align 8
%159 = sub i64 %158, 2
%160 = getelementptr inbounds i8, ptr %157, i64 %159
store i8 68, ptr %160, align 1
br label %161
161: ; preds = %152, %148
br label %190
162: ; preds = %131
%163 = load i8, ptr %5, align 1
%164 = sext i8 %163 to i32
%165 = icmp eq i32 %164, 68
br i1 %165, label %166, label %189
166: ; preds = %162
%167 = load ptr, ptr %8, align 8
%168 = load i64, ptr %4, align 8
%169 = sub i64 %168, 2
%170 = getelementptr inbounds i8, ptr %167, i64 %169
%171 = load i8, ptr %170, align 1
store i8 %171, ptr %6, align 1
%172 = load i8, ptr %6, align 1
%173 = sext i8 %172 to i32
%174 = icmp eq i32 %173, 82
br i1 %174, label %179, label %175
175: ; preds = %166
%176 = load i8, ptr %6, align 1
%177 = sext i8 %176 to i32
%178 = icmp eq i32 %177, 78
br i1 %178, label %179, label %188
179: ; preds = %175, %166
%180 = load ptr, ptr %8, align 8
%181 = load i64, ptr %4, align 8
%182 = sub i64 %181, 1
%183 = getelementptr inbounds i8, ptr %180, i64 %182
store i8 32, ptr %183, align 1
%184 = load ptr, ptr %8, align 8
%185 = load i64, ptr %4, align 8
%186 = sub i64 %185, 2
%187 = getelementptr inbounds i8, ptr %184, i64 %186
store i8 68, ptr %187, align 1
br label %188
188: ; preds = %179, %175
br label %189
189: ; preds = %188, %162
br label %190
190: ; preds = %189, %161
br label %191
191: ; preds = %190, %130
%192 = load ptr, ptr %9, align 8
store ptr %192, ptr %11, align 8
%193 = load ptr, ptr %8, align 8
store ptr %193, ptr %10, align 8
%194 = load ptr, ptr %10, align 8
%195 = getelementptr inbounds i8, ptr %194, i32 1
store ptr %195, ptr %10, align 8
%196 = load i8, ptr %194, align 1
%197 = load ptr, ptr %11, align 8
%198 = getelementptr inbounds i8, ptr %197, i32 1
store ptr %198, ptr %11, align 8
store i8 %196, ptr %197, align 1
br label %199
199: ; preds = %400, %191
%200 = load ptr, ptr %10, align 8
%201 = load i8, ptr %200, align 1
store i8 %201, ptr %5, align 1
%202 = icmp ne i8 %201, 0
br i1 %202, label %203, label %403
203: ; preds = %199
%204 = load i8, ptr %5, align 1
%205 = sext i8 %204 to i32
%206 = icmp eq i32 %205, 32
br i1 %206, label %207, label %208
207: ; preds = %203
br label %403
208: ; preds = %203
%209 = load i8, ptr %5, align 1
%210 = sext i8 %209 to i32
switch i32 %210, label %385 [
i32 69, label %211
i32 65, label %224
i32 73, label %224
i32 79, label %224
i32 85, label %224
i32 81, label %226
i32 90, label %228
i32 77, label %230
i32 75, label %232
i32 83, label %243
i32 80, label %266
i32 72, label %281
i32 87, label %356
]
211: ; preds = %208
%212 = load ptr, ptr %10, align 8
%213 = getelementptr inbounds i8, ptr %212, i64 1
%214 = load i8, ptr %213, align 1
%215 = sext i8 %214 to i32
%216 = icmp eq i32 %215, 86
br i1 %216, label %217, label %223
217: ; preds = %211
%218 = load ptr, ptr %11, align 8
store i8 65, ptr %218, align 1
%219 = load ptr, ptr %11, align 8
%220 = getelementptr inbounds i8, ptr %219, i32 1
store ptr %220, ptr %11, align 8
store i8 70, ptr %220, align 1
%221 = load ptr, ptr %10, align 8
%222 = getelementptr inbounds i8, ptr %221, i32 1
store ptr %222, ptr %10, align 8
br label %388
223: ; preds = %211
br label %224
224: ; preds = %208, %208, %208, %208, %223
%225 = load ptr, ptr %11, align 8
store i8 65, ptr %225, align 1
br label %388
226: ; preds = %208
%227 = load ptr, ptr %11, align 8
store i8 71, ptr %227, align 1
br label %388
228: ; preds = %208
%229 = load ptr, ptr %11, align 8
store i8 83, ptr %229, align 1
br label %388
230: ; preds = %208
%231 = load ptr, ptr %11, align 8
store i8 78, ptr %231, align 1
br label %388
232: ; preds = %208
%233 = load ptr, ptr %10, align 8
%234 = getelementptr inbounds i8, ptr %233, i64 1
%235 = load i8, ptr %234, align 1
%236 = sext i8 %235 to i32
%237 = icmp eq i32 %236, 78
br i1 %237, label %238, label %240
238: ; preds = %232
%239 = load ptr, ptr %11, align 8
store i8 78, ptr %239, align 1
br label %242
240: ; preds = %232
%241 = load ptr, ptr %11, align 8
store i8 67, ptr %241, align 1
br label %242
242: ; preds = %240, %238
br label %388
243: ; preds = %208
%244 = load ptr, ptr %10, align 8
%245 = getelementptr inbounds i8, ptr %244, i64 1
%246 = load i8, ptr %245, align 1
%247 = sext i8 %246 to i32
%248 = icmp eq i32 %247, 67
br i1 %248, label %249, label %263
249: ; preds = %243
%250 = load ptr, ptr %10, align 8
%251 = getelementptr inbounds i8, ptr %250, i64 2
%252 = load i8, ptr %251, align 1
%253 = sext i8 %252 to i32
%254 = icmp eq i32 %253, 72
br i1 %254, label %255, label %263
255: ; preds = %249
%256 = load ptr, ptr %11, align 8
%257 = getelementptr inbounds i8, ptr %256, i32 1
store ptr %257, ptr %11, align 8
store i8 83, ptr %256, align 1
%258 = load ptr, ptr %11, align 8
%259 = getelementptr inbounds i8, ptr %258, i32 1
store ptr %259, ptr %11, align 8
store i8 83, ptr %258, align 1
%260 = load ptr, ptr %11, align 8
store i8 83, ptr %260, align 1
%261 = load ptr, ptr %10, align 8
%262 = getelementptr inbounds i8, ptr %261, i64 2
store ptr %262, ptr %10, align 8
br label %265
263: ; preds = %249, %243
%264 = load ptr, ptr %11, align 8
store i8 83, ptr %264, align 1
br label %265
265: ; preds = %263, %255
br label %388
266: ; preds = %208
%267 = load ptr, ptr %10, align 8
%268 = getelementptr inbounds i8, ptr %267, i64 1
%269 = load i8, ptr %268, align 1
%270 = sext i8 %269 to i32
%271 = icmp eq i32 %270, 72
br i1 %271, label %272, label %278
272: ; preds = %266
%273 = load ptr, ptr %11, align 8
store i8 70, ptr %273, align 1
%274 = load ptr, ptr %11, align 8
%275 = getelementptr inbounds i8, ptr %274, i32 1
store ptr %275, ptr %11, align 8
store i8 70, ptr %275, align 1
%276 = load ptr, ptr %10, align 8
%277 = getelementptr inbounds i8, ptr %276, i32 1
store ptr %277, ptr %10, align 8
br label %280
278: ; preds = %266
%279 = load ptr, ptr %11, align 8
store i8 80, ptr %279, align 1
br label %280
280: ; preds = %278, %272
br label %388
281: ; preds = %208
%282 = load ptr, ptr %10, align 8
%283 = getelementptr inbounds i8, ptr %282, i64 1
%284 = load i8, ptr %283, align 1
store i8 %284, ptr %6, align 1
%285 = load ptr, ptr %10, align 8
%286 = getelementptr inbounds i8, ptr %285, i64 -1
%287 = load i8, ptr %286, align 1
store i8 %287, ptr %7, align 1
%288 = load i8, ptr %6, align 1
%289 = sext i8 %288 to i32
%290 = icmp eq i32 %289, 65
br i1 %290, label %307, label %291
291: ; preds = %281
%292 = load i8, ptr %6, align 1
%293 = sext i8 %292 to i32
%294 = icmp eq i32 %293, 69
br i1 %294, label %307, label %295
295: ; preds = %291
%296 = load i8, ptr %6, align 1
%297 = sext i8 %296 to i32
%298 = icmp eq i32 %297, 73
br i1 %298, label %307, label %299
299: ; preds = %295
%300 = load i8, ptr %6, align 1
%301 = sext i8 %300 to i32
%302 = icmp eq i32 %301, 79
br i1 %302, label %307, label %303
303: ; preds = %299
%304 = load i8, ptr %6, align 1
%305 = sext i8 %304 to i32
%306 = icmp eq i32 %305, 85
br i1 %306, label %307, label %327
307: ; preds = %303, %299, %295, %291, %281
%308 = load i8, ptr %7, align 1
%309 = sext i8 %308 to i32
%310 = icmp eq i32 %309, 65
br i1 %310, label %353, label %311
311: ; preds = %307
%312 = load i8, ptr %7, align 1
%313 = sext i8 %312 to i32
%314 = icmp eq i32 %313, 69
br i1 %314, label %353, label %315
315: ; preds = %311
%316 = load i8, ptr %7, align 1
%317 = sext i8 %316 to i32
%318 = icmp eq i32 %317, 73
br i1 %318, label %353, label %319
319: ; preds = %315
%320 = load i8, ptr %7, align 1
%321 = sext i8 %320 to i32
%322 = icmp eq i32 %321, 79
br i1 %322, label %353, label %323
323: ; preds = %319
%324 = load i8, ptr %7, align 1
%325 = sext i8 %324 to i32
%326 = icmp eq i32 %325, 85
br i1 %326, label %353, label %327
327: ; preds = %323, %303
%328 = load i8, ptr %7, align 1
%329 = sext i8 %328 to i32
%330 = icmp eq i32 %329, 65
br i1 %330, label %347, label %331
331: ; preds = %327
%332 = load i8, ptr %7, align 1
%333 = sext i8 %332 to i32
%334 = icmp eq i32 %333, 69
br i1 %334, label %347, label %335
335: ; preds = %331
%336 = load i8, ptr %7, align 1
%337 = sext i8 %336 to i32
%338 = icmp eq i32 %337, 73
br i1 %338, label %347, label %339
339: ; preds = %335
%340 = load i8, ptr %7, align 1
%341 = sext i8 %340 to i32
%342 = icmp eq i32 %341, 79
br i1 %342, label %347, label %343
343: ; preds = %339
%344 = load i8, ptr %7, align 1
%345 = sext i8 %344 to i32
%346 = icmp eq i32 %345, 85
br i1 %346, label %347, label %349
347: ; preds = %343, %339, %335, %331, %327
%348 = load ptr, ptr %11, align 8
store i8 65, ptr %348, align 1
br label %352
349: ; preds = %343
%350 = load i8, ptr %7, align 1
%351 = load ptr, ptr %11, align 8
store i8 %350, ptr %351, align 1
br label %352
352: ; preds = %349, %347
br label %355
353: ; preds = %323, %319, %315, %311, %307
%354 = load ptr, ptr %11, align 8
store i8 72, ptr %354, align 1
br label %355
355: ; preds = %353, %352
br label %388
356: ; preds = %208
%357 = load ptr, ptr %10, align 8
%358 = getelementptr inbounds i8, ptr %357, i64 -1
%359 = load i8, ptr %358, align 1
store i8 %359, ptr %6, align 1
%360 = load i8, ptr %6, align 1
%361 = sext i8 %360 to i32
%362 = icmp eq i32 %361, 65
br i1 %362, label %379, label %363
363: ; preds = %356
%364 = load i8, ptr %6, align 1
%365 = sext i8 %364 to i32
%366 = icmp eq i32 %365, 69
br i1 %366, label %379, label %367
367: ; preds = %363
%368 = load i8, ptr %6, align 1
%369 = sext i8 %368 to i32
%370 = icmp eq i32 %369, 73
br i1 %370, label %379, label %371
371: ; preds = %367
%372 = load i8, ptr %6, align 1
%373 = sext i8 %372 to i32
%374 = icmp eq i32 %373, 79
br i1 %374, label %379, label %375
375: ; preds = %371
%376 = load i8, ptr %6, align 1
%377 = sext i8 %376 to i32
%378 = icmp eq i32 %377, 85
br i1 %378, label %379, label %382
379: ; preds = %375, %371, %367, %363, %356
%380 = load i8, ptr %6, align 1
%381 = load ptr, ptr %11, align 8
store i8 %380, ptr %381, align 1
br label %384
382: ; preds = %375
%383 = load ptr, ptr %11, align 8
store i8 87, ptr %383, align 1
br label %384
384: ; preds = %382, %379
br label %388
385: ; preds = %208
%386 = load i8, ptr %5, align 1
%387 = load ptr, ptr %11, align 8
store i8 %386, ptr %387, align 1
br label %388
388: ; preds = %385, %384, %355, %280, %265, %242, %230, %228, %226, %224, %217
%389 = load ptr, ptr %11, align 8
%390 = load i8, ptr %389, align 1
%391 = sext i8 %390 to i32
%392 = load ptr, ptr %11, align 8
%393 = getelementptr inbounds i8, ptr %392, i64 -1
%394 = load i8, ptr %393, align 1
%395 = sext i8 %394 to i32
%396 = icmp ne i32 %391, %395
br i1 %396, label %397, label %400
397: ; preds = %388
%398 = load ptr, ptr %11, align 8
%399 = getelementptr inbounds i8, ptr %398, i32 1
store ptr %399, ptr %11, align 8
br label %400
400: ; preds = %397, %388
%401 = load ptr, ptr %10, align 8
%402 = getelementptr inbounds i8, ptr %401, i32 1
store ptr %402, ptr %10, align 8
br label %199, !llvm.loop !8
403: ; preds = %207, %199
%404 = load ptr, ptr %11, align 8
store i8 0, ptr %404, align 1
%405 = load ptr, ptr %11, align 8
%406 = getelementptr inbounds i8, ptr %405, i64 -1
%407 = load i8, ptr %406, align 1
store i8 %407, ptr %5, align 1
%408 = load i8, ptr %5, align 1
%409 = sext i8 %408 to i32
%410 = icmp eq i32 %409, 83
br i1 %410, label %411, label %414
411: ; preds = %403
%412 = load ptr, ptr %11, align 8
%413 = getelementptr inbounds i8, ptr %412, i32 -1
store ptr %413, ptr %11, align 8
store i8 0, ptr %413, align 1
br label %431
414: ; preds = %403
%415 = load i8, ptr %5, align 1
%416 = sext i8 %415 to i32
%417 = icmp eq i32 %416, 89
br i1 %417, label %418, label %430
418: ; preds = %414
%419 = load ptr, ptr %11, align 8
%420 = getelementptr inbounds i8, ptr %419, i64 -2
%421 = load i8, ptr %420, align 1
%422 = sext i8 %421 to i32
%423 = icmp eq i32 %422, 65
br i1 %423, label %424, label %429
424: ; preds = %418
%425 = load ptr, ptr %11, align 8
%426 = getelementptr inbounds i8, ptr %425, i32 -1
store ptr %426, ptr %11, align 8
store i8 0, ptr %426, align 1
%427 = load ptr, ptr %11, align 8
%428 = getelementptr inbounds i8, ptr %427, i32 -1
store ptr %428, ptr %11, align 8
store i8 89, ptr %428, align 1
br label %429
429: ; preds = %424, %418
br label %430
430: ; preds = %429, %414
br label %431
431: ; preds = %430, %411
%432 = load ptr, ptr %11, align 8
%433 = getelementptr inbounds i8, ptr %432, i64 -1
%434 = load i8, ptr %433, align 1
%435 = sext i8 %434 to i32
%436 = icmp eq i32 %435, 65
br i1 %436, label %437, label %440
437: ; preds = %431
%438 = load ptr, ptr %11, align 8
%439 = getelementptr inbounds i8, ptr %438, i64 -1
store i8 0, ptr %439, align 1
br label %440
440: ; preds = %437, %431
%441 = load ptr, ptr %9, align 8
store ptr %441, ptr %2, align 8
br label %442
442: ; preds = %440, %38, %30, %25
%443 = load ptr, ptr %2, align 8
ret ptr %443
}
declare i64 @strlen(ptr noundef) #1
declare ptr @alloca(i64 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #1
declare ptr @calloc(i64 noundef, i32 noundef) #1
; Function Attrs: nounwind willreturn memory(read)
declare i32 @toupper(i32 noundef) #2
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind willreturn memory(read) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(read) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpso30nb6_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"MAC\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"KN\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"PH\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"SCH\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @nysiis(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i8, align 1
%6 = alloca i8, align 1
%7 = alloca i8, align 1
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%12 = load ptr, ptr %3, align 8
%13 = call i64 @strlen(ptr noundef %12)
store i64 %13, ptr %4, align 8
%14 = load i64, ptr %4, align 8
%15 = add i64 %14, 1
%16 = mul i64 %15, 1
%17 = call ptr @alloca(i64 noundef %16)
store ptr %17, ptr %8, align 8
store ptr null, ptr %9, align 8
%18 = load ptr, ptr %8, align 8
%19 = load ptr, ptr %3, align 8
%20 = load i64, ptr %4, align 8
%21 = add i64 %20, 1
%22 = call i32 @memcpy(ptr noundef %18, ptr noundef %19, i64 noundef %21)
%23 = load ptr, ptr %8, align 8
%24 = icmp ne ptr %23, null
br i1 %24, label %26, label %25
25: ; preds = %1
store ptr null, ptr %2, align 8
br label %446
26: ; preds = %1
%27 = load ptr, ptr %8, align 8
%28 = load i8, ptr %27, align 1
%29 = icmp ne i8 %28, 0
br i1 %29, label %32, label %30
30: ; preds = %26
%31 = call ptr @calloc(i64 noundef 1, i32 noundef 1)
store ptr %31, ptr %2, align 8
br label %446
32: ; preds = %26
%33 = load i64, ptr %4, align 8
%34 = add i64 %33, 1
%35 = call ptr @calloc(i64 noundef %34, i32 noundef 1)
store ptr %35, ptr %9, align 8
%36 = load ptr, ptr %9, align 8
%37 = icmp ne ptr %36, null
br i1 %37, label %39, label %38
38: ; preds = %32
store ptr null, ptr %2, align 8
br label %446
39: ; preds = %32
%40 = load ptr, ptr %8, align 8
store ptr %40, ptr %10, align 8
store ptr %40, ptr %11, align 8
%41 = load ptr, ptr %10, align 8
%42 = load i8, ptr %41, align 1
%43 = icmp ne i8 %42, 0
br i1 %43, label %.lr.ph, label %56
.lr.ph: ; preds = %39
br label %44
44: ; preds = %.lr.ph, %44
%45 = load ptr, ptr %10, align 8
%46 = getelementptr inbounds i8, ptr %45, i32 1
store ptr %46, ptr %10, align 8
%47 = load i8, ptr %45, align 1
%48 = sext i8 %47 to i32
%49 = call i32 @toupper(i32 noundef %48) #3
%50 = trunc i32 %49 to i8
%51 = load ptr, ptr %11, align 8
%52 = getelementptr inbounds i8, ptr %51, i32 1
store ptr %52, ptr %11, align 8
store i8 %50, ptr %51, align 1
%53 = load ptr, ptr %10, align 8
%54 = load i8, ptr %53, align 1
%55 = icmp ne i8 %54, 0
br i1 %55, label %44, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %44
br label %56
56: ; preds = %._crit_edge, %39
%57 = load ptr, ptr %8, align 8
%58 = call i64 @strncmp(ptr noundef %57, ptr noundef @.str, i32 noundef 3)
%59 = icmp eq i64 %58, 0
br i1 %59, label %60, label %63
60: ; preds = %56
%61 = load ptr, ptr %8, align 8
%62 = getelementptr inbounds i8, ptr %61, i64 1
store i8 67, ptr %62, align 1
br label %101
63: ; preds = %56
%64 = load ptr, ptr %8, align 8
%65 = call i64 @strncmp(ptr noundef %64, ptr noundef @.str.1, i32 noundef 2)
%66 = icmp eq i64 %65, 0
br i1 %66, label %67, label %70
67: ; preds = %63
%68 = load ptr, ptr %8, align 8
%69 = getelementptr inbounds i8, ptr %68, i64 0
store i8 78, ptr %69, align 1
br label %100
70: ; preds = %63
%71 = load ptr, ptr %8, align 8
%72 = getelementptr inbounds i8, ptr %71, i64 0
%73 = load i8, ptr %72, align 1
%74 = sext i8 %73 to i32
%75 = icmp eq i32 %74, 75
br i1 %75, label %76, label %79
76: ; preds = %70
%77 = load ptr, ptr %8, align 8
%78 = getelementptr inbounds i8, ptr %77, i64 0
store i8 67, ptr %78, align 1
br label %99
79: ; preds = %70
%80 = load ptr, ptr %8, align 8
%81 = call i64 @strncmp(ptr noundef %80, ptr noundef @.str.2, i32 noundef 2)
%82 = icmp eq i64 %81, 0
br i1 %82, label %83, label %88
83: ; preds = %79
%84 = load ptr, ptr %8, align 8
%85 = getelementptr inbounds i8, ptr %84, i64 0
store i8 70, ptr %85, align 1
%86 = load ptr, ptr %8, align 8
%87 = getelementptr inbounds i8, ptr %86, i64 1
store i8 70, ptr %87, align 1
br label %98
88: ; preds = %79
%89 = load ptr, ptr %8, align 8
%90 = call i64 @strncmp(ptr noundef %89, ptr noundef @.str.3, i32 noundef 3)
%91 = icmp eq i64 %90, 0
br i1 %91, label %92, label %97
92: ; preds = %88
%93 = load ptr, ptr %8, align 8
%94 = getelementptr inbounds i8, ptr %93, i64 1
store i8 83, ptr %94, align 1
%95 = load ptr, ptr %8, align 8
%96 = getelementptr inbounds i8, ptr %95, i64 2
store i8 83, ptr %96, align 1
br label %97
97: ; preds = %92, %88
br label %98
98: ; preds = %97, %83
br label %99
99: ; preds = %98, %76
br label %100
100: ; preds = %99, %67
br label %101
101: ; preds = %100, %60
%102 = load ptr, ptr %8, align 8
%103 = load i64, ptr %4, align 8
%104 = sub i64 %103, 1
%105 = getelementptr inbounds i8, ptr %102, i64 %104
%106 = load i8, ptr %105, align 1
store i8 %106, ptr %5, align 1
%107 = load i8, ptr %5, align 1
%108 = sext i8 %107 to i32
%109 = icmp eq i32 %108, 69
br i1 %109, label %110, label %133
110: ; preds = %101
%111 = load ptr, ptr %8, align 8
%112 = load i64, ptr %4, align 8
%113 = sub i64 %112, 2
%114 = getelementptr inbounds i8, ptr %111, i64 %113
%115 = load i8, ptr %114, align 1
store i8 %115, ptr %6, align 1
%116 = load i8, ptr %6, align 1
%117 = sext i8 %116 to i32
%118 = icmp eq i32 %117, 69
br i1 %118, label %123, label %119
119: ; preds = %110
%120 = load i8, ptr %6, align 1
%121 = sext i8 %120 to i32
%122 = icmp eq i32 %121, 73
br i1 %122, label %123, label %132
123: ; preds = %119, %110
%124 = load ptr, ptr %8, align 8
%125 = load i64, ptr %4, align 8
%126 = sub i64 %125, 1
%127 = getelementptr inbounds i8, ptr %124, i64 %126
store i8 32, ptr %127, align 1
%128 = load ptr, ptr %8, align 8
%129 = load i64, ptr %4, align 8
%130 = sub i64 %129, 2
%131 = getelementptr inbounds i8, ptr %128, i64 %130
store i8 89, ptr %131, align 1
br label %132
132: ; preds = %123, %119
br label %193
133: ; preds = %101
%134 = load i8, ptr %5, align 1
%135 = sext i8 %134 to i32
%136 = icmp eq i32 %135, 84
br i1 %136, label %137, label %164
137: ; preds = %133
%138 = load ptr, ptr %8, align 8
%139 = load i64, ptr %4, align 8
%140 = sub i64 %139, 2
%141 = getelementptr inbounds i8, ptr %138, i64 %140
%142 = load i8, ptr %141, align 1
store i8 %142, ptr %6, align 1
%143 = load i8, ptr %6, align 1
%144 = sext i8 %143 to i32
%145 = icmp eq i32 %144, 68
br i1 %145, label %154, label %146
146: ; preds = %137
%147 = load i8, ptr %6, align 1
%148 = sext i8 %147 to i32
%149 = icmp eq i32 %148, 82
br i1 %149, label %154, label %150
150: ; preds = %146
%151 = load i8, ptr %6, align 1
%152 = sext i8 %151 to i32
%153 = icmp eq i32 %152, 78
br i1 %153, label %154, label %163
154: ; preds = %150, %146, %137
%155 = load ptr, ptr %8, align 8
%156 = load i64, ptr %4, align 8
%157 = sub i64 %156, 1
%158 = getelementptr inbounds i8, ptr %155, i64 %157
store i8 32, ptr %158, align 1
%159 = load ptr, ptr %8, align 8
%160 = load i64, ptr %4, align 8
%161 = sub i64 %160, 2
%162 = getelementptr inbounds i8, ptr %159, i64 %161
store i8 68, ptr %162, align 1
br label %163
163: ; preds = %154, %150
br label %192
164: ; preds = %133
%165 = load i8, ptr %5, align 1
%166 = sext i8 %165 to i32
%167 = icmp eq i32 %166, 68
br i1 %167, label %168, label %191
168: ; preds = %164
%169 = load ptr, ptr %8, align 8
%170 = load i64, ptr %4, align 8
%171 = sub i64 %170, 2
%172 = getelementptr inbounds i8, ptr %169, i64 %171
%173 = load i8, ptr %172, align 1
store i8 %173, ptr %6, align 1
%174 = load i8, ptr %6, align 1
%175 = sext i8 %174 to i32
%176 = icmp eq i32 %175, 82
br i1 %176, label %181, label %177
177: ; preds = %168
%178 = load i8, ptr %6, align 1
%179 = sext i8 %178 to i32
%180 = icmp eq i32 %179, 78
br i1 %180, label %181, label %190
181: ; preds = %177, %168
%182 = load ptr, ptr %8, align 8
%183 = load i64, ptr %4, align 8
%184 = sub i64 %183, 1
%185 = getelementptr inbounds i8, ptr %182, i64 %184
store i8 32, ptr %185, align 1
%186 = load ptr, ptr %8, align 8
%187 = load i64, ptr %4, align 8
%188 = sub i64 %187, 2
%189 = getelementptr inbounds i8, ptr %186, i64 %188
store i8 68, ptr %189, align 1
br label %190
190: ; preds = %181, %177
br label %191
191: ; preds = %190, %164
br label %192
192: ; preds = %191, %163
br label %193
193: ; preds = %192, %132
%194 = load ptr, ptr %9, align 8
store ptr %194, ptr %11, align 8
%195 = load ptr, ptr %8, align 8
store ptr %195, ptr %10, align 8
%196 = load ptr, ptr %10, align 8
%197 = getelementptr inbounds i8, ptr %196, i32 1
store ptr %197, ptr %10, align 8
%198 = load i8, ptr %196, align 1
%199 = load ptr, ptr %11, align 8
%200 = getelementptr inbounds i8, ptr %199, i32 1
store ptr %200, ptr %11, align 8
store i8 %198, ptr %199, align 1
%201 = load ptr, ptr %10, align 8
%202 = load i8, ptr %201, align 1
store i8 %202, ptr %5, align 1
%203 = icmp ne i8 %202, 0
br i1 %203, label %.lr.ph2, label %.loopexit
.lr.ph2: ; preds = %193
br label %204
204: ; preds = %.lr.ph2, %401
%205 = load i8, ptr %5, align 1
%206 = sext i8 %205 to i32
%207 = icmp eq i32 %206, 32
br i1 %207, label %208, label %209
208: ; preds = %204
br label %407
209: ; preds = %204
%210 = load i8, ptr %5, align 1
%211 = sext i8 %210 to i32
switch i32 %211, label %386 [
i32 69, label %212
i32 65, label %225
i32 73, label %225
i32 79, label %225
i32 85, label %225
i32 81, label %227
i32 90, label %229
i32 77, label %231
i32 75, label %233
i32 83, label %244
i32 80, label %267
i32 72, label %282
i32 87, label %357
]
212: ; preds = %209
%213 = load ptr, ptr %10, align 8
%214 = getelementptr inbounds i8, ptr %213, i64 1
%215 = load i8, ptr %214, align 1
%216 = sext i8 %215 to i32
%217 = icmp eq i32 %216, 86
br i1 %217, label %218, label %224
218: ; preds = %212
%219 = load ptr, ptr %11, align 8
store i8 65, ptr %219, align 1
%220 = load ptr, ptr %11, align 8
%221 = getelementptr inbounds i8, ptr %220, i32 1
store ptr %221, ptr %11, align 8
store i8 70, ptr %221, align 1
%222 = load ptr, ptr %10, align 8
%223 = getelementptr inbounds i8, ptr %222, i32 1
store ptr %223, ptr %10, align 8
br label %389
224: ; preds = %212
br label %225
225: ; preds = %224, %209, %209, %209, %209
%226 = load ptr, ptr %11, align 8
store i8 65, ptr %226, align 1
br label %389
227: ; preds = %209
%228 = load ptr, ptr %11, align 8
store i8 71, ptr %228, align 1
br label %389
229: ; preds = %209
%230 = load ptr, ptr %11, align 8
store i8 83, ptr %230, align 1
br label %389
231: ; preds = %209
%232 = load ptr, ptr %11, align 8
store i8 78, ptr %232, align 1
br label %389
233: ; preds = %209
%234 = load ptr, ptr %10, align 8
%235 = getelementptr inbounds i8, ptr %234, i64 1
%236 = load i8, ptr %235, align 1
%237 = sext i8 %236 to i32
%238 = icmp eq i32 %237, 78
br i1 %238, label %239, label %241
239: ; preds = %233
%240 = load ptr, ptr %11, align 8
store i8 78, ptr %240, align 1
br label %243
241: ; preds = %233
%242 = load ptr, ptr %11, align 8
store i8 67, ptr %242, align 1
br label %243
243: ; preds = %241, %239
br label %389
244: ; preds = %209
%245 = load ptr, ptr %10, align 8
%246 = getelementptr inbounds i8, ptr %245, i64 1
%247 = load i8, ptr %246, align 1
%248 = sext i8 %247 to i32
%249 = icmp eq i32 %248, 67
br i1 %249, label %250, label %264
250: ; preds = %244
%251 = load ptr, ptr %10, align 8
%252 = getelementptr inbounds i8, ptr %251, i64 2
%253 = load i8, ptr %252, align 1
%254 = sext i8 %253 to i32
%255 = icmp eq i32 %254, 72
br i1 %255, label %256, label %264
256: ; preds = %250
%257 = load ptr, ptr %11, align 8
%258 = getelementptr inbounds i8, ptr %257, i32 1
store ptr %258, ptr %11, align 8
store i8 83, ptr %257, align 1
%259 = load ptr, ptr %11, align 8
%260 = getelementptr inbounds i8, ptr %259, i32 1
store ptr %260, ptr %11, align 8
store i8 83, ptr %259, align 1
%261 = load ptr, ptr %11, align 8
store i8 83, ptr %261, align 1
%262 = load ptr, ptr %10, align 8
%263 = getelementptr inbounds i8, ptr %262, i64 2
store ptr %263, ptr %10, align 8
br label %266
264: ; preds = %250, %244
%265 = load ptr, ptr %11, align 8
store i8 83, ptr %265, align 1
br label %266
266: ; preds = %264, %256
br label %389
267: ; preds = %209
%268 = load ptr, ptr %10, align 8
%269 = getelementptr inbounds i8, ptr %268, i64 1
%270 = load i8, ptr %269, align 1
%271 = sext i8 %270 to i32
%272 = icmp eq i32 %271, 72
br i1 %272, label %273, label %279
273: ; preds = %267
%274 = load ptr, ptr %11, align 8
store i8 70, ptr %274, align 1
%275 = load ptr, ptr %11, align 8
%276 = getelementptr inbounds i8, ptr %275, i32 1
store ptr %276, ptr %11, align 8
store i8 70, ptr %276, align 1
%277 = load ptr, ptr %10, align 8
%278 = getelementptr inbounds i8, ptr %277, i32 1
store ptr %278, ptr %10, align 8
br label %281
279: ; preds = %267
%280 = load ptr, ptr %11, align 8
store i8 80, ptr %280, align 1
br label %281
281: ; preds = %279, %273
br label %389
282: ; preds = %209
%283 = load ptr, ptr %10, align 8
%284 = getelementptr inbounds i8, ptr %283, i64 1
%285 = load i8, ptr %284, align 1
store i8 %285, ptr %6, align 1
%286 = load ptr, ptr %10, align 8
%287 = getelementptr inbounds i8, ptr %286, i64 -1
%288 = load i8, ptr %287, align 1
store i8 %288, ptr %7, align 1
%289 = load i8, ptr %6, align 1
%290 = sext i8 %289 to i32
%291 = icmp eq i32 %290, 65
br i1 %291, label %308, label %292
292: ; preds = %282
%293 = load i8, ptr %6, align 1
%294 = sext i8 %293 to i32
%295 = icmp eq i32 %294, 69
br i1 %295, label %308, label %296
296: ; preds = %292
%297 = load i8, ptr %6, align 1
%298 = sext i8 %297 to i32
%299 = icmp eq i32 %298, 73
br i1 %299, label %308, label %300
300: ; preds = %296
%301 = load i8, ptr %6, align 1
%302 = sext i8 %301 to i32
%303 = icmp eq i32 %302, 79
br i1 %303, label %308, label %304
304: ; preds = %300
%305 = load i8, ptr %6, align 1
%306 = sext i8 %305 to i32
%307 = icmp eq i32 %306, 85
br i1 %307, label %308, label %328
308: ; preds = %304, %300, %296, %292, %282
%309 = load i8, ptr %7, align 1
%310 = sext i8 %309 to i32
%311 = icmp eq i32 %310, 65
br i1 %311, label %354, label %312
312: ; preds = %308
%313 = load i8, ptr %7, align 1
%314 = sext i8 %313 to i32
%315 = icmp eq i32 %314, 69
br i1 %315, label %354, label %316
316: ; preds = %312
%317 = load i8, ptr %7, align 1
%318 = sext i8 %317 to i32
%319 = icmp eq i32 %318, 73
br i1 %319, label %354, label %320
320: ; preds = %316
%321 = load i8, ptr %7, align 1
%322 = sext i8 %321 to i32
%323 = icmp eq i32 %322, 79
br i1 %323, label %354, label %324
324: ; preds = %320
%325 = load i8, ptr %7, align 1
%326 = sext i8 %325 to i32
%327 = icmp eq i32 %326, 85
br i1 %327, label %354, label %328
328: ; preds = %324, %304
%329 = load i8, ptr %7, align 1
%330 = sext i8 %329 to i32
%331 = icmp eq i32 %330, 65
br i1 %331, label %348, label %332
332: ; preds = %328
%333 = load i8, ptr %7, align 1
%334 = sext i8 %333 to i32
%335 = icmp eq i32 %334, 69
br i1 %335, label %348, label %336
336: ; preds = %332
%337 = load i8, ptr %7, align 1
%338 = sext i8 %337 to i32
%339 = icmp eq i32 %338, 73
br i1 %339, label %348, label %340
340: ; preds = %336
%341 = load i8, ptr %7, align 1
%342 = sext i8 %341 to i32
%343 = icmp eq i32 %342, 79
br i1 %343, label %348, label %344
344: ; preds = %340
%345 = load i8, ptr %7, align 1
%346 = sext i8 %345 to i32
%347 = icmp eq i32 %346, 85
br i1 %347, label %348, label %350
348: ; preds = %344, %340, %336, %332, %328
%349 = load ptr, ptr %11, align 8
store i8 65, ptr %349, align 1
br label %353
350: ; preds = %344
%351 = load i8, ptr %7, align 1
%352 = load ptr, ptr %11, align 8
store i8 %351, ptr %352, align 1
br label %353
353: ; preds = %350, %348
br label %356
354: ; preds = %324, %320, %316, %312, %308
%355 = load ptr, ptr %11, align 8
store i8 72, ptr %355, align 1
br label %356
356: ; preds = %354, %353
br label %389
357: ; preds = %209
%358 = load ptr, ptr %10, align 8
%359 = getelementptr inbounds i8, ptr %358, i64 -1
%360 = load i8, ptr %359, align 1
store i8 %360, ptr %6, align 1
%361 = load i8, ptr %6, align 1
%362 = sext i8 %361 to i32
%363 = icmp eq i32 %362, 65
br i1 %363, label %380, label %364
364: ; preds = %357
%365 = load i8, ptr %6, align 1
%366 = sext i8 %365 to i32
%367 = icmp eq i32 %366, 69
br i1 %367, label %380, label %368
368: ; preds = %364
%369 = load i8, ptr %6, align 1
%370 = sext i8 %369 to i32
%371 = icmp eq i32 %370, 73
br i1 %371, label %380, label %372
372: ; preds = %368
%373 = load i8, ptr %6, align 1
%374 = sext i8 %373 to i32
%375 = icmp eq i32 %374, 79
br i1 %375, label %380, label %376
376: ; preds = %372
%377 = load i8, ptr %6, align 1
%378 = sext i8 %377 to i32
%379 = icmp eq i32 %378, 85
br i1 %379, label %380, label %383
380: ; preds = %376, %372, %368, %364, %357
%381 = load i8, ptr %6, align 1
%382 = load ptr, ptr %11, align 8
store i8 %381, ptr %382, align 1
br label %385
383: ; preds = %376
%384 = load ptr, ptr %11, align 8
store i8 87, ptr %384, align 1
br label %385
385: ; preds = %383, %380
br label %389
386: ; preds = %209
%387 = load i8, ptr %5, align 1
%388 = load ptr, ptr %11, align 8
store i8 %387, ptr %388, align 1
br label %389
389: ; preds = %386, %385, %356, %281, %266, %243, %231, %229, %227, %225, %218
%390 = load ptr, ptr %11, align 8
%391 = load i8, ptr %390, align 1
%392 = sext i8 %391 to i32
%393 = load ptr, ptr %11, align 8
%394 = getelementptr inbounds i8, ptr %393, i64 -1
%395 = load i8, ptr %394, align 1
%396 = sext i8 %395 to i32
%397 = icmp ne i32 %392, %396
br i1 %397, label %398, label %401
398: ; preds = %389
%399 = load ptr, ptr %11, align 8
%400 = getelementptr inbounds i8, ptr %399, i32 1
store ptr %400, ptr %11, align 8
br label %401
401: ; preds = %398, %389
%402 = load ptr, ptr %10, align 8
%403 = getelementptr inbounds i8, ptr %402, i32 1
store ptr %403, ptr %10, align 8
%404 = load ptr, ptr %10, align 8
%405 = load i8, ptr %404, align 1
store i8 %405, ptr %5, align 1
%406 = icmp ne i8 %405, 0
br i1 %406, label %204, label %..loopexit_crit_edge, !llvm.loop !8
..loopexit_crit_edge: ; preds = %401
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %193
br label %407
407: ; preds = %.loopexit, %208
%408 = load ptr, ptr %11, align 8
store i8 0, ptr %408, align 1
%409 = load ptr, ptr %11, align 8
%410 = getelementptr inbounds i8, ptr %409, i64 -1
%411 = load i8, ptr %410, align 1
store i8 %411, ptr %5, align 1
%412 = load i8, ptr %5, align 1
%413 = sext i8 %412 to i32
%414 = icmp eq i32 %413, 83
br i1 %414, label %415, label %418
415: ; preds = %407
%416 = load ptr, ptr %11, align 8
%417 = getelementptr inbounds i8, ptr %416, i32 -1
store ptr %417, ptr %11, align 8
store i8 0, ptr %417, align 1
br label %435
418: ; preds = %407
%419 = load i8, ptr %5, align 1
%420 = sext i8 %419 to i32
%421 = icmp eq i32 %420, 89
br i1 %421, label %422, label %434
422: ; preds = %418
%423 = load ptr, ptr %11, align 8
%424 = getelementptr inbounds i8, ptr %423, i64 -2
%425 = load i8, ptr %424, align 1
%426 = sext i8 %425 to i32
%427 = icmp eq i32 %426, 65
br i1 %427, label %428, label %433
428: ; preds = %422
%429 = load ptr, ptr %11, align 8
%430 = getelementptr inbounds i8, ptr %429, i32 -1
store ptr %430, ptr %11, align 8
store i8 0, ptr %430, align 1
%431 = load ptr, ptr %11, align 8
%432 = getelementptr inbounds i8, ptr %431, i32 -1
store ptr %432, ptr %11, align 8
store i8 89, ptr %432, align 1
br label %433
433: ; preds = %428, %422
br label %434
434: ; preds = %433, %418
br label %435
435: ; preds = %434, %415
%436 = load ptr, ptr %11, align 8
%437 = getelementptr inbounds i8, ptr %436, i64 -1
%438 = load i8, ptr %437, align 1
%439 = sext i8 %438 to i32
%440 = icmp eq i32 %439, 65
br i1 %440, label %441, label %444
441: ; preds = %435
%442 = load ptr, ptr %11, align 8
%443 = getelementptr inbounds i8, ptr %442, i64 -1
store i8 0, ptr %443, align 1
br label %444
444: ; preds = %441, %435
%445 = load ptr, ptr %9, align 8
store ptr %445, ptr %2, align 8
br label %446
446: ; preds = %444, %38, %30, %25
%447 = load ptr, ptr %2, align 8
ret ptr %447
}
declare i64 @strlen(ptr noundef) #1
declare ptr @alloca(i64 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #1
declare ptr @calloc(i64 noundef, i32 noundef) #1
; Function Attrs: nounwind willreturn memory(read)
declare i32 @toupper(i32 noundef) #2
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind willreturn memory(read) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(read) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmppm7mckuk.c'
source_filename = "/tmp/tmppm7mckuk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ColumnLoad(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
store ptr %4, ptr %10, align 8
%15 = load i32, ptr %9, align 4
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %50
17: ; preds = %5
%18 = load ptr, ptr %10, align 8
store ptr %18, ptr %12, align 8
%19 = load ptr, ptr %6, align 8
store ptr %19, ptr %11, align 8
store i32 0, ptr %13, align 4
br label %20
20: ; preds = %46, %17
%21 = load i32, ptr %13, align 4
%22 = load i32, ptr %8, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %24, label %49
24: ; preds = %20
%25 = load i32, ptr %7, align 4
%26 = sub nsw i32 %25, 1
store i32 %26, ptr %14, align 4
br label %27
27: ; preds = %38, %24
%28 = load i32, ptr %14, align 4
%29 = icmp sge i32 %28, 0
br i1 %29, label %30, label %41
30: ; preds = %27
%31 = load ptr, ptr %11, align 8
%32 = load i32, ptr %14, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i8, ptr %31, i64 %33
%35 = load i8, ptr %34, align 1
%36 = load ptr, ptr %12, align 8
%37 = getelementptr inbounds i8, ptr %36, i32 1
store ptr %37, ptr %12, align 8
store i8 %35, ptr %36, align 1
br label %38
38: ; preds = %30
%39 = load i32, ptr %14, align 4
%40 = add nsw i32 %39, -1
store i32 %40, ptr %14, align 4
br label %27, !llvm.loop !6
41: ; preds = %27
%42 = load i32, ptr %7, align 4
%43 = load ptr, ptr %11, align 8
%44 = sext i32 %42 to i64
%45 = getelementptr inbounds i8, ptr %43, i64 %44
store ptr %45, ptr %11, align 8
br label %46
46: ; preds = %41
%47 = load i32, ptr %13, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %13, align 4
br label %20, !llvm.loop !8
49: ; preds = %20
br label %57
50: ; preds = %5
%51 = load ptr, ptr %10, align 8
%52 = load ptr, ptr %6, align 8
%53 = load i32, ptr %8, align 4
%54 = load i32, ptr %7, align 4
%55 = mul nsw i32 %53, %54
%56 = call i32 @memcpy(ptr noundef %51, ptr noundef %52, i32 noundef %55)
br label %57
57: ; preds = %50, %49
ret void
}
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppm7mckuk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ColumnLoad(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store ptr %0, ptr %6, align 8
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
store ptr %4, ptr %10, align 8
%15 = load i32, ptr %9, align 4
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %53
17: ; preds = %5
%18 = load ptr, ptr %10, align 8
store ptr %18, ptr %12, align 8
%19 = load ptr, ptr %6, align 8
store ptr %19, ptr %11, align 8
store i32 0, ptr %13, align 4
%20 = load i32, ptr %13, align 4
%21 = load i32, ptr %8, align 4
%22 = icmp slt i32 %20, %21
br i1 %22, label %.lr.ph2, label %52
.lr.ph2: ; preds = %17
br label %23
23: ; preds = %.lr.ph2, %46
%24 = load i32, ptr %7, align 4
%25 = sub nsw i32 %24, 1
store i32 %25, ptr %14, align 4
%26 = load i32, ptr %14, align 4
%27 = icmp sge i32 %26, 0
br i1 %27, label %.lr.ph, label %41
.lr.ph: ; preds = %23
br label %28
28: ; preds = %.lr.ph, %36
%29 = load ptr, ptr %11, align 8
%30 = load i32, ptr %14, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i8, ptr %29, i64 %31
%33 = load i8, ptr %32, align 1
%34 = load ptr, ptr %12, align 8
%35 = getelementptr inbounds i8, ptr %34, i32 1
store ptr %35, ptr %12, align 8
store i8 %33, ptr %34, align 1
br label %36
36: ; preds = %28
%37 = load i32, ptr %14, align 4
%38 = add nsw i32 %37, -1
store i32 %38, ptr %14, align 4
%39 = load i32, ptr %14, align 4
%40 = icmp sge i32 %39, 0
br i1 %40, label %28, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %36
br label %41
41: ; preds = %._crit_edge, %23
%42 = load i32, ptr %7, align 4
%43 = load ptr, ptr %11, align 8
%44 = sext i32 %42 to i64
%45 = getelementptr inbounds i8, ptr %43, i64 %44
store ptr %45, ptr %11, align 8
br label %46
46: ; preds = %41
%47 = load i32, ptr %13, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %13, align 4
%49 = load i32, ptr %13, align 4
%50 = load i32, ptr %8, align 4
%51 = icmp slt i32 %49, %50
br i1 %51, label %23, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %46
br label %52
52: ; preds = %._crit_edge3, %17
br label %60
53: ; preds = %5
%54 = load ptr, ptr %10, align 8
%55 = load ptr, ptr %6, align 8
%56 = load i32, ptr %8, align 4
%57 = load i32, ptr %7, align 4
%58 = mul nsw i32 %56, %57
%59 = call i32 @memcpy(ptr noundef %54, ptr noundef %55, i32 noundef %58)
br label %60
60: ; preds = %53, %52
ret void
}
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.