llvm-ir stringlengths 479 303k | llvm-optimized-ir stringlengths 468 303k |
|---|---|
; ModuleID = '/tmp/tmp449cqleu.c'
source_filename = "/tmp/tmp449cqleu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @check(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = icmp slt i32 %5, 0
br i1 %6, label %7, label %11
7: ; preds = %2
%8 = load ptr, ptr %3, align 8
%9 = call i32 @perror(ptr noundef %8)
%10 = call i32 @exit(i32 noundef 1) #3
unreachable
11: ; preds = %2
%12 = load i32, ptr %4, align 4
ret i32 %12
}
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/tmp449cqleu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @check(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = icmp slt i32 %5, 0
br i1 %6, label %7, label %11
7: ; preds = %2
%8 = load ptr, ptr %3, align 8
%9 = call i32 @perror(ptr noundef %8)
%10 = call i32 @exit(i32 noundef 1) #3
unreachable
11: ; preds = %2
%12 = load i32, ptr %4, align 4
ret i32 %12
}
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/tmpt42808q_.c'
source_filename = "/tmp/tmpt42808q_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 void @add(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%9 = load ptr, ptr %4, align 8
%10 = call i32 @atoi(ptr noundef %9)
store i32 %10, ptr %7, align 4
%11 = load ptr, ptr %5, align 8
%12 = call i32 @atoi(ptr noundef %11)
store i32 %12, ptr %8, align 4
%13 = load ptr, ptr %6, align 8
%14 = load i32, ptr %7, align 4
%15 = load i32, ptr %8, align 4
%16 = add nsw i32 %14, %15
%17 = call i32 @sprintf(ptr noundef %13, ptr noundef @.str, i32 noundef %16)
ret void
}
declare i32 @atoi(ptr noundef) #1
declare i32 @sprintf(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/tmpt42808q_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 void @add(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%9 = load ptr, ptr %4, align 8
%10 = call i32 @atoi(ptr noundef %9)
store i32 %10, ptr %7, align 4
%11 = load ptr, ptr %5, align 8
%12 = call i32 @atoi(ptr noundef %11)
store i32 %12, ptr %8, align 4
%13 = load ptr, ptr %6, align 8
%14 = load i32, ptr %7, align 4
%15 = load i32, ptr %8, align 4
%16 = add nsw i32 %14, %15
%17 = call i32 @sprintf(ptr noundef %13, ptr noundef @.str, i32 noundef %16)
ret void
}
declare i32 @atoi(ptr noundef) #1
declare i32 @sprintf(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/tmpvc446_ux.c'
source_filename = "/tmp/tmpvc446_ux.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [48 x i8] c"usage: %s [-vh] [-s N] [-n N] [sudoku_file...]\0A\00", align 1
@.str.1 = private unnamed_addr constant [42 x i8] c" --help, -h - this usage message.\0A\00", align 1
@.str.2 = private unnamed_addr constant [56 x i8] c" --verbose, -v - increase verbosity - show sudoku.\0A\00", align 1
@.str.3 = private unnamed_addr constant [46 x i8] c" --sudoku, -s NUM - solve specified puzzle.\0A\00", align 1
@.str.4 = private unnamed_addr constant [57 x i8] c" --number, -n NUM - solve NUM of puzzles (default %u).\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %3)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef 16384)
%9 = call i32 @exit(i32 noundef 2) #3
unreachable
}
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvc446_ux.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [48 x i8] c"usage: %s [-vh] [-s N] [-n N] [sudoku_file...]\0A\00", align 1
@.str.1 = private unnamed_addr constant [42 x i8] c" --help, -h - this usage message.\0A\00", align 1
@.str.2 = private unnamed_addr constant [56 x i8] c" --verbose, -v - increase verbosity - show sudoku.\0A\00", align 1
@.str.3 = private unnamed_addr constant [46 x i8] c" --sudoku, -s NUM - solve specified puzzle.\0A\00", align 1
@.str.4 = private unnamed_addr constant [57 x i8] c" --number, -n NUM - solve NUM of puzzles (default %u).\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %3)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef 16384)
%9 = call i32 @exit(i32 noundef 2) #3
unreachable
}
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqb1lkh4x.c'
source_filename = "/tmp/tmpqb1lkh4x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [7 x i8] c"%.3f%\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca [1000 x i32], align 16
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca float, align 4
%9 = alloca float, align 4
%10 = alloca float, align 4
store i32 0, ptr %1, align 4
%11 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2)
store i32 1, ptr %3, align 4
br label %12
12: ; preds = %69, %0
%13 = load i32, ptr %3, align 4
%14 = load i32, ptr %2, align 4
%15 = icmp sle i32 %13, %14
br i1 %15, label %16, label %72
16: ; preds = %12
%17 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %10)
store i32 0, ptr %7, align 4
store float 0.000000e+00, ptr %9, align 4
store i32 1, ptr %4, align 4
br label %18
18: ; preds = %34, %16
%19 = load i32, ptr %4, align 4
%20 = sitofp i32 %19 to float
%21 = load float, ptr %10, align 4
%22 = fcmp ole float %20, %21
br i1 %22, label %23, label %37
23: ; preds = %18
%24 = load i32, ptr %4, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [1000 x i32], ptr %5, i64 0, i64 %25
%27 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %26)
%28 = load i32, ptr %7, align 4
%29 = load i32, ptr %4, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [1000 x i32], ptr %5, i64 0, i64 %30
%32 = load i32, ptr %31, align 4
%33 = add nsw i32 %28, %32
store i32 %33, ptr %7, align 4
br label %34
34: ; preds = %23
%35 = load i32, ptr %4, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %4, align 4
br label %18, !llvm.loop !6
37: ; preds = %18
%38 = load i32, ptr %7, align 4
%39 = sitofp i32 %38 to float
%40 = load float, ptr %10, align 4
%41 = fdiv float %39, %40
%42 = fptosi float %41 to i32
store i32 %42, ptr %6, align 4
store i32 1, ptr %4, align 4
br label %43
43: ; preds = %59, %37
%44 = load i32, ptr %4, align 4
%45 = sitofp i32 %44 to float
%46 = load float, ptr %10, align 4
%47 = fcmp ole float %45, %46
br i1 %47, label %48, label %62
48: ; preds = %43
%49 = load i32, ptr %4, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [1000 x i32], ptr %5, i64 0, i64 %50
%52 = load i32, ptr %51, align 4
%53 = load i32, ptr %6, align 4
%54 = icmp sgt i32 %52, %53
br i1 %54, label %55, label %58
55: ; preds = %48
%56 = load float, ptr %9, align 4
%57 = fadd float %56, 1.000000e+00
store float %57, ptr %9, align 4
br label %58
58: ; preds = %55, %48
br label %59
59: ; preds = %58
%60 = load i32, ptr %4, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %4, align 4
br label %43, !llvm.loop !8
62: ; preds = %43
%63 = load float, ptr %9, align 4
%64 = fmul float %63, 1.000000e+02
%65 = load float, ptr %10, align 4
%66 = fdiv float %64, %65
store float %66, ptr %8, align 4
%67 = load float, ptr %8, align 4
%68 = call i32 @printf(ptr noundef @.str.2, float noundef %67)
br label %69
69: ; preds = %62
%70 = load i32, ptr %3, align 4
%71 = add nsw i32 %70, 1
store i32 %71, ptr %3, align 4
br label %12, !llvm.loop !9
72: ; preds = %12
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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqb1lkh4x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [7 x i8] c"%.3f%\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca [1000 x i32], align 16
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca float, align 4
%9 = alloca float, align 4
%10 = alloca float, align 4
store i32 0, ptr %1, align 4
%11 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2)
store i32 1, ptr %3, align 4
%12 = load i32, ptr %3, align 4
%13 = load i32, ptr %2, align 4
%14 = icmp sle i32 %12, %13
br i1 %14, label %.lr.ph5, label %80
.lr.ph5: ; preds = %0
br label %15
15: ; preds = %.lr.ph5, %74
%16 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %10)
store i32 0, ptr %7, align 4
store float 0.000000e+00, ptr %9, align 4
store i32 1, ptr %4, align 4
%17 = load i32, ptr %4, align 4
%18 = sitofp i32 %17 to float
%19 = load float, ptr %10, align 4
%20 = fcmp ole float %18, %19
br i1 %20, label %.lr.ph, label %39
.lr.ph: ; preds = %15
br label %21
21: ; preds = %.lr.ph, %32
%22 = load i32, ptr %4, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [1000 x i32], ptr %5, i64 0, i64 %23
%25 = call i32 (ptr, ...) @scanf(ptr noundef @.str, ptr noundef %24)
%26 = load i32, ptr %7, align 4
%27 = load i32, ptr %4, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [1000 x i32], ptr %5, i64 0, i64 %28
%30 = load i32, ptr %29, align 4
%31 = add nsw i32 %26, %30
store i32 %31, ptr %7, align 4
br label %32
32: ; preds = %21
%33 = load i32, ptr %4, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %4, align 4
%35 = load i32, ptr %4, align 4
%36 = sitofp i32 %35 to float
%37 = load float, ptr %10, align 4
%38 = fcmp ole float %36, %37
br i1 %38, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %32
br label %39
39: ; preds = %._crit_edge, %15
%40 = load i32, ptr %7, align 4
%41 = sitofp i32 %40 to float
%42 = load float, ptr %10, align 4
%43 = fdiv float %41, %42
%44 = fptosi float %43 to i32
store i32 %44, ptr %6, align 4
store i32 1, ptr %4, align 4
%45 = load i32, ptr %4, align 4
%46 = sitofp i32 %45 to float
%47 = load float, ptr %10, align 4
%48 = fcmp ole float %46, %47
br i1 %48, label %.lr.ph2, label %67
.lr.ph2: ; preds = %39
br label %49
49: ; preds = %.lr.ph2, %60
%50 = load i32, ptr %4, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [1000 x i32], ptr %5, i64 0, i64 %51
%53 = load i32, ptr %52, align 4
%54 = load i32, ptr %6, align 4
%55 = icmp sgt i32 %53, %54
br i1 %55, label %56, label %59
56: ; preds = %49
%57 = load float, ptr %9, align 4
%58 = fadd float %57, 1.000000e+00
store float %58, ptr %9, align 4
br label %59
59: ; preds = %56, %49
br label %60
60: ; preds = %59
%61 = load i32, ptr %4, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %4, align 4
%63 = load i32, ptr %4, align 4
%64 = sitofp i32 %63 to float
%65 = load float, ptr %10, align 4
%66 = fcmp ole float %64, %65
br i1 %66, label %49, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %60
br label %67
67: ; preds = %._crit_edge3, %39
%68 = load float, ptr %9, align 4
%69 = fmul float %68, 1.000000e+02
%70 = load float, ptr %10, align 4
%71 = fdiv float %69, %70
store float %71, ptr %8, align 4
%72 = load float, ptr %8, align 4
%73 = call i32 @printf(ptr noundef @.str.2, float noundef %72)
br label %74
74: ; preds = %67
%75 = load i32, ptr %3, align 4
%76 = add nsw i32 %75, 1
store i32 %76, ptr %3, align 4
%77 = load i32, ptr %3, align 4
%78 = load i32, ptr %2, align 4
%79 = icmp sle i32 %77, %78
br i1 %79, label %15, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %74
br label %80
80: ; preds = %._crit_edge6, %0
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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpia3j_qw3.c'
source_filename = "/tmp/tmpia3j_qw3.c"
target datalayout = "e-m:e-p270: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/tmpia3j_qw3.c"
target datalayout = "e-m:e-p270: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/tmpdlppdz51.c'
source_filename = "/tmp/tmpdlppdz51.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @efp_print_banner() #0 {
%1 = call i32 (...) @efp_banner()
%2 = call i32 @puts(i32 noundef %1)
ret void
}
declare i32 @puts(i32 noundef) #1
declare i32 @efp_banner(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdlppdz51.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @efp_print_banner() #0 {
%1 = call i32 (...) @efp_banner()
%2 = call i32 @puts(i32 noundef %1)
ret void
}
declare i32 @puts(i32 noundef) #1
declare i32 @efp_banner(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmphuo1_3q7.c'
source_filename = "/tmp/tmphuo1_3q7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%i \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printMatrix(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
br label %5
5: ; preds = %27, %1
%6 = load i32, ptr %3, align 4
%7 = icmp slt i32 %6, 3
br i1 %7, label %8, label %30
8: ; preds = %5
store i32 0, ptr %4, align 4
br label %9
9: ; preds = %22, %8
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %10, 3
br i1 %11, label %12, label %25
12: ; preds = %9
%13 = load ptr, ptr %2, align 8
%14 = load i32, ptr %3, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [3 x i32], ptr %13, i64 %15
%17 = load i32, ptr %4, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [3 x i32], ptr %16, i64 0, i64 %18
%20 = load i32, ptr %19, align 4
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %20)
br label %22
22: ; preds = %12
%23 = load i32, ptr %4, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %4, align 4
br label %9, !llvm.loop !6
25: ; preds = %9
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %27
27: ; preds = %25
%28 = load i32, ptr %3, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %3, align 4
br label %5, !llvm.loop !8
30: ; preds = %5
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphuo1_3q7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%i \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printMatrix(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 0, ptr %3, align 4
%5 = load i32, ptr %3, align 4
%6 = icmp slt i32 %5, 3
br i1 %6, label %.lr.ph2, label %32
.lr.ph2: ; preds = %1
br label %7
7: ; preds = %.lr.ph2, %27
store i32 0, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %8, 3
br i1 %9, label %.lr.ph, label %25
.lr.ph: ; preds = %7
br label %10
10: ; preds = %.lr.ph, %20
%11 = load ptr, ptr %2, align 8
%12 = load i32, ptr %3, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [3 x i32], ptr %11, i64 %13
%15 = load i32, ptr %4, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [3 x i32], ptr %14, i64 0, i64 %16
%18 = load i32, ptr %17, align 4
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %18)
br label %20
20: ; preds = %10
%21 = load i32, ptr %4, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %4, align 4
%23 = load i32, ptr %4, align 4
%24 = icmp slt i32 %23, 3
br i1 %24, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %25
25: ; preds = %._crit_edge, %7
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %27
27: ; preds = %25
%28 = load i32, ptr %3, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %3, align 4
%30 = load i32, ptr %3, align 4
%31 = icmp slt i32 %30, 3
br i1 %31, label %7, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %27
br label %32
32: ; preds = %._crit_edge3, %1
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpxcd6fwx1.c'
source_filename = "/tmp/tmpxcd6fwx1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @emit_cmphi(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%9 = load i32, ptr %7, align 4
%10 = load i32, ptr %7, align 4
%11 = call i32 @emit_andimm(i32 noundef %9, i32 noundef -2, i32 noundef %10)
%12 = load i32, ptr %5, align 4
%13 = load i32, ptr %6, align 4
%14 = call i32 @emit_cmp(i32 noundef %12, i32 noundef %13)
%15 = load i32, ptr %7, align 4
%16 = call i32 @emit_adcimm(i32 noundef 0, i32 noundef %15)
ret void
}
declare i32 @emit_andimm(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @emit_cmp(i32 noundef, i32 noundef) #1
declare i32 @emit_adcimm(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/tmpxcd6fwx1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @emit_cmphi(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%9 = load i32, ptr %7, align 4
%10 = load i32, ptr %7, align 4
%11 = call i32 @emit_andimm(i32 noundef %9, i32 noundef -2, i32 noundef %10)
%12 = load i32, ptr %5, align 4
%13 = load i32, ptr %6, align 4
%14 = call i32 @emit_cmp(i32 noundef %12, i32 noundef %13)
%15 = load i32, ptr %7, align 4
%16 = call i32 @emit_adcimm(i32 noundef 0, i32 noundef %15)
ret void
}
declare i32 @emit_andimm(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @emit_cmp(i32 noundef, i32 noundef) #1
declare i32 @emit_adcimm(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/tmpc1m9y8g4.c'
source_filename = "/tmp/tmpc1m9y8g4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"skipped\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpc1m9y8g4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"skipped\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgnbx98w4.c'
source_filename = "/tmp/tmpgnbx98w4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"test\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%c\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca [1000 x i8], align 16
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %5, ptr %2, align 8
store i32 0, ptr %4, align 4
br label %6
6: ; preds = %13, %0
%7 = load ptr, ptr %2, align 8
%8 = load i32, ptr %4, align 4
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds [1000 x i8], ptr %3, i64 0, i64 %9
%11 = call i32 @fscanf(ptr noundef %7, ptr noundef @.str.2, ptr noundef %10)
%12 = icmp eq i32 %11, 1
br i1 %12, label %13, label %14
13: ; preds = %6
br label %6, !llvm.loop !6
14: ; preds = %6
%15 = getelementptr inbounds [1000 x i8], ptr %3, i64 0, i64 0
%16 = load i8, ptr %15, align 16
%17 = call i32 @printf(ptr noundef @.str.2, i8 noundef signext %16)
%18 = load ptr, ptr %2, align 8
%19 = call i32 @fclose(ptr noundef %18)
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i8 noundef signext) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgnbx98w4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"test\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%c\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca [1000 x i8], align 16
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %5, ptr %2, align 8
store i32 0, ptr %4, align 4
br label %6
6: ; preds = %6, %0
%7 = load ptr, ptr %2, align 8
%8 = load i32, ptr %4, align 4
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds [1000 x i8], ptr %3, i64 0, i64 %9
%11 = call i32 @fscanf(ptr noundef %7, ptr noundef @.str.2, ptr noundef %10)
%12 = icmp eq i32 %11, 1
br i1 %12, label %6, label %13, !llvm.loop !6
13: ; preds = %6
%14 = getelementptr inbounds [1000 x i8], ptr %3, i64 0, i64 0
%15 = load i8, ptr %14, align 16
%16 = call i32 @printf(ptr noundef @.str.2, i8 noundef signext %15)
%17 = load ptr, ptr %2, align 8
%18 = call i32 @fclose(ptr noundef %17)
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i8 noundef signext) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp05oy2fp7.c'
source_filename = "/tmp/tmp05oy2fp7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sputs(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 @sputsp(ptr noundef %3, ptr noundef null)
ret i32 %4
}
declare i32 @sputsp(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/tmp05oy2fp7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sputs(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 @sputsp(ptr noundef %3, ptr noundef null)
ret i32 %4
}
declare i32 @sputsp(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/tmpqojtbi8b.c'
source_filename = "/tmp/tmpqojtbi8b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@FE_ALL_EXCEPT = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_fpu_except_flags() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = load i32, ptr @FE_ALL_EXCEPT, align 4
%4 = call i32 @fetestexcept(i32 noundef %3)
store i32 %4, ptr %2, align 4
%5 = load i32, ptr %1, align 4
ret i32 %5
}
declare i32 @fetestexcept(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqojtbi8b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@FE_ALL_EXCEPT = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_fpu_except_flags() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = load i32, ptr @FE_ALL_EXCEPT, align 4
%4 = call i32 @fetestexcept(i32 noundef %3)
store i32 %4, ptr %2, align 4
%5 = load i32, ptr %1, align 4
ret i32 %5
}
declare i32 @fetestexcept(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjjc9h78s.c'
source_filename = "/tmp/tmpjjc9h78s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pw(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = add nsw i32 1, %6
%8 = call i32 @pb(ptr noundef %5, i32 noundef %7)
%9 = load ptr, ptr %3, align 8
%10 = load i32, ptr %4, align 4
%11 = call i32 @pb(ptr noundef %9, i32 noundef %10)
ret void
}
declare i32 @pb(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/tmpjjc9h78s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pw(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = add nsw i32 1, %6
%8 = call i32 @pb(ptr noundef %5, i32 noundef %7)
%9 = load ptr, ptr %3, align 8
%10 = load i32, ptr %4, align 4
%11 = call i32 @pb(ptr noundef %9, i32 noundef %10)
ret void
}
declare i32 @pb(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/tmplamrmbcx.c'
source_filename = "/tmp/tmplamrmbcx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @memsetw(ptr noundef %0, i32 noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i64 %2, ptr %6, align 8
%9 = load ptr, ptr %4, align 8
store ptr %9, ptr %7, align 8
store i64 0, ptr %8, align 8
br label %10
10: ; preds = %20, %3
%11 = load i64, ptr %8, align 8
%12 = load i64, ptr %6, align 8
%13 = icmp ult i64 %11, %12
br i1 %13, label %14, label %23
14: ; preds = %10
%15 = load i32, ptr %5, align 4
%16 = trunc i32 %15 to i16
%17 = load ptr, ptr %7, align 8
%18 = load i64, ptr %8, align 8
%19 = getelementptr inbounds i16, ptr %17, i64 %18
store i16 %16, ptr %19, align 2
br label %20
20: ; preds = %14
%21 = load i64, ptr %8, align 8
%22 = add i64 %21, 1
store i64 %22, ptr %8, align 8
br label %10, !llvm.loop !6
23: ; preds = %10
%24 = load ptr, ptr %4, align 8
ret ptr %24
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmplamrmbcx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @memsetw(ptr noundef %0, i32 noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i64 %2, ptr %6, align 8
%9 = load ptr, ptr %4, align 8
store ptr %9, ptr %7, align 8
store i64 0, ptr %8, align 8
%10 = load i64, ptr %8, align 8
%11 = load i64, ptr %6, align 8
%12 = icmp ult i64 %10, %11
br i1 %12, label %.lr.ph, label %25
.lr.ph: ; preds = %3
br label %13
13: ; preds = %.lr.ph, %19
%14 = load i32, ptr %5, align 4
%15 = trunc i32 %14 to i16
%16 = load ptr, ptr %7, align 8
%17 = load i64, ptr %8, align 8
%18 = getelementptr inbounds i16, ptr %16, i64 %17
store i16 %15, ptr %18, align 2
br label %19
19: ; preds = %13
%20 = load i64, ptr %8, align 8
%21 = add i64 %20, 1
store i64 %21, ptr %8, align 8
%22 = load i64, ptr %8, align 8
%23 = load i64, ptr %6, align 8
%24 = icmp ult i64 %22, %23
br i1 %24, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %25
25: ; preds = %._crit_edge, %3
%26 = load ptr, ptr %4, align 8
ret ptr %26
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp91ajtkiy.c'
source_filename = "/tmp/tmp91ajtkiy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [39 x i8] c"Z_FreeGame: null pointer from Game DLL\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"Game DLL\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Z_FreeGame(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = icmp ne ptr %3, null
br i1 %4, label %7, label %5
5: ; preds = %1
%6 = call i32 @Com_Error(i32 noundef 0, ptr noundef @.str)
br label %7
7: ; preds = %5, %1
%8 = load ptr, ptr %2, align 8
%9 = call i32 @_Z_Free(ptr noundef %8, ptr noundef @.str.1, i32 noundef 1)
ret void
}
declare i32 @Com_Error(i32 noundef, ptr noundef) #1
declare i32 @_Z_Free(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/tmp91ajtkiy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [39 x i8] c"Z_FreeGame: null pointer from Game DLL\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"Game DLL\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Z_FreeGame(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = icmp ne ptr %3, null
br i1 %4, label %7, label %5
5: ; preds = %1
%6 = call i32 @Com_Error(i32 noundef 0, ptr noundef @.str)
br label %7
7: ; preds = %5, %1
%8 = load ptr, ptr %2, align 8
%9 = call i32 @_Z_Free(ptr noundef %8, ptr noundef @.str.1, i32 noundef 1)
ret void
}
declare i32 @Com_Error(i32 noundef, ptr noundef) #1
declare i32 @_Z_Free(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/tmplr9tx2q1.c'
source_filename = "/tmp/tmplr9tx2q1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_islower.c\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"islower should be 1 for k\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_islower_0x6b() #0 {
%1 = call i32 @islower(i32 noundef 107) #3
%2 = call i32 @Assert_real(i32 noundef %1, ptr noundef @.str, i32 noundef 540, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
; Function Attrs: nounwind willreturn memory(read)
declare i32 @islower(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind willreturn memory(read) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(read) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplr9tx2q1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_islower.c\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"islower should be 1 for k\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_islower_0x6b() #0 {
%1 = call i32 @islower(i32 noundef 107) #3
%2 = call i32 @Assert_real(i32 noundef %1, ptr noundef @.str, i32 noundef 540, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
; Function Attrs: nounwind willreturn memory(read)
declare i32 @islower(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind willreturn memory(read) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(read) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_br3yjh3.c'
source_filename = "/tmp/tmp_br3yjh3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_br3yjh3.c"
target datalayout = "e-m:e-p270: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/tmp89u6azkc.c'
source_filename = "/tmp/tmp89u6azkc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @nbody_cpu(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca float, align 4
%14 = alloca float, align 4
%15 = alloca float, align 4
%16 = alloca float, align 4
%17 = alloca float, align 4
%18 = alloca float, align 4
%19 = alloca float, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
store i32 0, ptr %20, align 4
br label %22
22: ; preds = %154, %6
%23 = load i32, ptr %20, align 4
%24 = icmp ult i32 %23, 16384
br i1 %24, label %25, label %157
25: ; preds = %22
store i32 0, ptr %21, align 4
br label %26
26: ; preds = %150, %25
%27 = load i32, ptr %21, align 4
%28 = icmp ult i32 %27, 16384
br i1 %28, label %29, label %153
29: ; preds = %26
%30 = load ptr, ptr %7, align 8
%31 = load i32, ptr %21, align 4
%32 = mul i32 %31, 4
%33 = zext i32 %32 to i64
%34 = getelementptr inbounds float, ptr %30, i64 %33
%35 = load float, ptr %34, align 4
%36 = load ptr, ptr %8, align 8
%37 = load i32, ptr %20, align 4
%38 = mul i32 %37, 4
%39 = zext i32 %38 to i64
%40 = getelementptr inbounds float, ptr %36, i64 %39
%41 = load float, ptr %40, align 4
%42 = fsub float %35, %41
store float %42, ptr %13, align 4
%43 = load ptr, ptr %7, align 8
%44 = load i32, ptr %21, align 4
%45 = mul i32 %44, 4
%46 = add i32 %45, 1
%47 = zext i32 %46 to i64
%48 = getelementptr inbounds float, ptr %43, i64 %47
%49 = load float, ptr %48, align 4
%50 = load ptr, ptr %8, align 8
%51 = load i32, ptr %20, align 4
%52 = mul i32 %51, 4
%53 = add i32 %52, 1
%54 = zext i32 %53 to i64
%55 = getelementptr inbounds float, ptr %50, i64 %54
%56 = load float, ptr %55, align 4
%57 = fsub float %49, %56
store float %57, ptr %14, align 4
%58 = load ptr, ptr %7, align 8
%59 = load i32, ptr %21, align 4
%60 = mul i32 %59, 4
%61 = add i32 %60, 2
%62 = zext i32 %61 to i64
%63 = getelementptr inbounds float, ptr %58, i64 %62
%64 = load float, ptr %63, align 4
%65 = load ptr, ptr %8, align 8
%66 = load i32, ptr %20, align 4
%67 = mul i32 %66, 4
%68 = add i32 %67, 2
%69 = zext i32 %68 to i64
%70 = getelementptr inbounds float, ptr %65, i64 %69
%71 = load float, ptr %70, align 4
%72 = fsub float %64, %71
store float %72, ptr %15, align 4
%73 = load float, ptr %13, align 4
%74 = load float, ptr %13, align 4
%75 = load float, ptr %14, align 4
%76 = load float, ptr %14, align 4
%77 = fmul float %75, %76
%78 = call float @llvm.fmuladd.f32(float %73, float %74, float %77)
%79 = load float, ptr %15, align 4
%80 = load float, ptr %15, align 4
%81 = call float @llvm.fmuladd.f32(float %79, float %80, float %78)
%82 = fadd float %81, 0x3F847AE140000000
%83 = call double @sqrtf(float noundef %82)
%84 = fdiv double 1.000000e+00, %83
%85 = fptrunc double %84 to float
store float %85, ptr %16, align 4
%86 = load float, ptr %16, align 4
%87 = load float, ptr %16, align 4
%88 = fmul float %86, %87
%89 = load float, ptr %16, align 4
%90 = fmul float %88, %89
store float %90, ptr %17, align 4
%91 = load ptr, ptr %8, align 8
%92 = load i32, ptr %20, align 4
%93 = mul i32 %92, 4
%94 = add i32 %93, 3
%95 = zext i32 %94 to i64
%96 = getelementptr inbounds float, ptr %91, i64 %95
%97 = load float, ptr %96, align 4
store float %97, ptr %18, align 4
%98 = load ptr, ptr %12, align 8
%99 = load i32, ptr %20, align 4
%100 = mul i32 %99, 4
%101 = zext i32 %100 to i64
%102 = getelementptr inbounds float, ptr %98, i64 %101
%103 = load float, ptr %102, align 4
%104 = load float, ptr %13, align 4
%105 = load float, ptr %18, align 4
%106 = fmul float %104, %105
%107 = load float, ptr %17, align 4
%108 = call float @llvm.fmuladd.f32(float %106, float %107, float %103)
%109 = load ptr, ptr %12, align 8
%110 = load i32, ptr %20, align 4
%111 = mul i32 %110, 4
%112 = zext i32 %111 to i64
%113 = getelementptr inbounds float, ptr %109, i64 %112
store float %108, ptr %113, align 4
%114 = load ptr, ptr %12, align 8
%115 = load i32, ptr %20, align 4
%116 = mul i32 %115, 4
%117 = add i32 %116, 1
%118 = zext i32 %117 to i64
%119 = getelementptr inbounds float, ptr %114, i64 %118
%120 = load float, ptr %119, align 4
%121 = load float, ptr %14, align 4
%122 = load float, ptr %18, align 4
%123 = fmul float %121, %122
%124 = load float, ptr %17, align 4
%125 = call float @llvm.fmuladd.f32(float %123, float %124, float %120)
%126 = load ptr, ptr %12, align 8
%127 = load i32, ptr %20, align 4
%128 = mul i32 %127, 4
%129 = add i32 %128, 1
%130 = zext i32 %129 to i64
%131 = getelementptr inbounds float, ptr %126, i64 %130
store float %125, ptr %131, align 4
%132 = load ptr, ptr %12, align 8
%133 = load i32, ptr %20, align 4
%134 = mul i32 %133, 4
%135 = add i32 %134, 2
%136 = zext i32 %135 to i64
%137 = getelementptr inbounds float, ptr %132, i64 %136
%138 = load float, ptr %137, align 4
%139 = load float, ptr %15, align 4
%140 = load float, ptr %18, align 4
%141 = fmul float %139, %140
%142 = load float, ptr %17, align 4
%143 = call float @llvm.fmuladd.f32(float %141, float %142, float %138)
%144 = load ptr, ptr %12, align 8
%145 = load i32, ptr %20, align 4
%146 = mul i32 %145, 4
%147 = add i32 %146, 2
%148 = zext i32 %147 to i64
%149 = getelementptr inbounds float, ptr %144, i64 %148
store float %143, ptr %149, align 4
br label %150
150: ; preds = %29
%151 = load i32, ptr %21, align 4
%152 = add i32 %151, 1
store i32 %152, ptr %21, align 4
br label %26, !llvm.loop !6
153: ; preds = %26
br label %154
154: ; preds = %153
%155 = load i32, ptr %20, align 4
%156 = add i32 %155, 1
store i32 %156, ptr %20, align 4
br label %22, !llvm.loop !8
157: ; preds = %22
ret void
}
declare double @sqrtf(float noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp89u6azkc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @nbody_cpu(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca float, align 4
%14 = alloca float, align 4
%15 = alloca float, align 4
%16 = alloca float, align 4
%17 = alloca float, align 4
%18 = alloca float, align 4
%19 = alloca float, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store ptr %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
store i32 0, ptr %20, align 4
%22 = load i32, ptr %20, align 4
%23 = icmp ult i32 %22, 16384
br i1 %23, label %.lr.ph2, label %159
.lr.ph2: ; preds = %6
br label %24
24: ; preds = %.lr.ph2, %154
store i32 0, ptr %21, align 4
%25 = load i32, ptr %21, align 4
%26 = icmp ult i32 %25, 16384
br i1 %26, label %.lr.ph, label %153
.lr.ph: ; preds = %24
br label %27
27: ; preds = %.lr.ph, %148
%28 = load ptr, ptr %7, align 8
%29 = load i32, ptr %21, align 4
%30 = mul i32 %29, 4
%31 = zext i32 %30 to i64
%32 = getelementptr inbounds float, ptr %28, i64 %31
%33 = load float, ptr %32, align 4
%34 = load ptr, ptr %8, align 8
%35 = load i32, ptr %20, align 4
%36 = mul i32 %35, 4
%37 = zext i32 %36 to i64
%38 = getelementptr inbounds float, ptr %34, i64 %37
%39 = load float, ptr %38, align 4
%40 = fsub float %33, %39
store float %40, ptr %13, align 4
%41 = load ptr, ptr %7, align 8
%42 = load i32, ptr %21, align 4
%43 = mul i32 %42, 4
%44 = add i32 %43, 1
%45 = zext i32 %44 to i64
%46 = getelementptr inbounds float, ptr %41, i64 %45
%47 = load float, ptr %46, align 4
%48 = load ptr, ptr %8, align 8
%49 = load i32, ptr %20, align 4
%50 = mul i32 %49, 4
%51 = add i32 %50, 1
%52 = zext i32 %51 to i64
%53 = getelementptr inbounds float, ptr %48, i64 %52
%54 = load float, ptr %53, align 4
%55 = fsub float %47, %54
store float %55, ptr %14, align 4
%56 = load ptr, ptr %7, align 8
%57 = load i32, ptr %21, align 4
%58 = mul i32 %57, 4
%59 = add i32 %58, 2
%60 = zext i32 %59 to i64
%61 = getelementptr inbounds float, ptr %56, i64 %60
%62 = load float, ptr %61, align 4
%63 = load ptr, ptr %8, align 8
%64 = load i32, ptr %20, align 4
%65 = mul i32 %64, 4
%66 = add i32 %65, 2
%67 = zext i32 %66 to i64
%68 = getelementptr inbounds float, ptr %63, i64 %67
%69 = load float, ptr %68, align 4
%70 = fsub float %62, %69
store float %70, ptr %15, align 4
%71 = load float, ptr %13, align 4
%72 = load float, ptr %13, align 4
%73 = load float, ptr %14, align 4
%74 = load float, ptr %14, align 4
%75 = fmul float %73, %74
%76 = call float @llvm.fmuladd.f32(float %71, float %72, float %75)
%77 = load float, ptr %15, align 4
%78 = load float, ptr %15, align 4
%79 = call float @llvm.fmuladd.f32(float %77, float %78, float %76)
%80 = fadd float %79, 0x3F847AE140000000
%81 = call double @sqrtf(float noundef %80)
%82 = fdiv double 1.000000e+00, %81
%83 = fptrunc double %82 to float
store float %83, ptr %16, align 4
%84 = load float, ptr %16, align 4
%85 = load float, ptr %16, align 4
%86 = fmul float %84, %85
%87 = load float, ptr %16, align 4
%88 = fmul float %86, %87
store float %88, ptr %17, align 4
%89 = load ptr, ptr %8, align 8
%90 = load i32, ptr %20, align 4
%91 = mul i32 %90, 4
%92 = add i32 %91, 3
%93 = zext i32 %92 to i64
%94 = getelementptr inbounds float, ptr %89, i64 %93
%95 = load float, ptr %94, align 4
store float %95, ptr %18, align 4
%96 = load ptr, ptr %12, align 8
%97 = load i32, ptr %20, align 4
%98 = mul i32 %97, 4
%99 = zext i32 %98 to i64
%100 = getelementptr inbounds float, ptr %96, i64 %99
%101 = load float, ptr %100, align 4
%102 = load float, ptr %13, align 4
%103 = load float, ptr %18, align 4
%104 = fmul float %102, %103
%105 = load float, ptr %17, align 4
%106 = call float @llvm.fmuladd.f32(float %104, float %105, float %101)
%107 = load ptr, ptr %12, align 8
%108 = load i32, ptr %20, align 4
%109 = mul i32 %108, 4
%110 = zext i32 %109 to i64
%111 = getelementptr inbounds float, ptr %107, i64 %110
store float %106, ptr %111, align 4
%112 = load ptr, ptr %12, align 8
%113 = load i32, ptr %20, align 4
%114 = mul i32 %113, 4
%115 = add i32 %114, 1
%116 = zext i32 %115 to i64
%117 = getelementptr inbounds float, ptr %112, i64 %116
%118 = load float, ptr %117, align 4
%119 = load float, ptr %14, align 4
%120 = load float, ptr %18, align 4
%121 = fmul float %119, %120
%122 = load float, ptr %17, align 4
%123 = call float @llvm.fmuladd.f32(float %121, float %122, float %118)
%124 = load ptr, ptr %12, align 8
%125 = load i32, ptr %20, align 4
%126 = mul i32 %125, 4
%127 = add i32 %126, 1
%128 = zext i32 %127 to i64
%129 = getelementptr inbounds float, ptr %124, i64 %128
store float %123, ptr %129, align 4
%130 = load ptr, ptr %12, align 8
%131 = load i32, ptr %20, align 4
%132 = mul i32 %131, 4
%133 = add i32 %132, 2
%134 = zext i32 %133 to i64
%135 = getelementptr inbounds float, ptr %130, i64 %134
%136 = load float, ptr %135, align 4
%137 = load float, ptr %15, align 4
%138 = load float, ptr %18, align 4
%139 = fmul float %137, %138
%140 = load float, ptr %17, align 4
%141 = call float @llvm.fmuladd.f32(float %139, float %140, float %136)
%142 = load ptr, ptr %12, align 8
%143 = load i32, ptr %20, align 4
%144 = mul i32 %143, 4
%145 = add i32 %144, 2
%146 = zext i32 %145 to i64
%147 = getelementptr inbounds float, ptr %142, i64 %146
store float %141, ptr %147, align 4
br label %148
148: ; preds = %27
%149 = load i32, ptr %21, align 4
%150 = add i32 %149, 1
store i32 %150, ptr %21, align 4
%151 = load i32, ptr %21, align 4
%152 = icmp ult i32 %151, 16384
br i1 %152, label %27, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %148
br label %153
153: ; preds = %._crit_edge, %24
br label %154
154: ; preds = %153
%155 = load i32, ptr %20, align 4
%156 = add i32 %155, 1
store i32 %156, ptr %20, align 4
%157 = load i32, ptr %20, align 4
%158 = icmp ult i32 %157, 16384
br i1 %158, label %24, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %154
br label %159
159: ; preds = %._crit_edge3, %6
ret void
}
declare double @sqrtf(float noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpsns2t3ev.c'
source_filename = "/tmp/tmpsns2t3ev.c"
target datalayout = "e-m:e-p270: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/tmpsns2t3ev.c"
target datalayout = "e-m:e-p270: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/tmpt5uqk0ak.c'
source_filename = "/tmp/tmpt5uqk0ak.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_iscntrl.c\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"iscntrl should be 0 for }\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_iscntrl_0x7d() #0 {
%1 = call i64 @iscntrl(i32 noundef 125)
%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 630, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @iscntrl(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpt5uqk0ak.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_iscntrl.c\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"iscntrl should be 0 for }\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_iscntrl_0x7d() #0 {
%1 = call i64 @iscntrl(i32 noundef 125)
%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 630, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @iscntrl(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpfcymvaki.c'
source_filename = "/tmp/tmpfcymvaki.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@hostname.host = internal global [64 x i8] zeroinitializer, align 16
@.str = private unnamed_addr constant [4 x i8] c"???\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @hostname() #0 {
%1 = call i64 @gethostname(ptr noundef @hostname.host, i32 noundef 64)
%2 = icmp ne i64 %1, 0
br i1 %2, label %3, label %5
3: ; preds = %0
%4 = call i32 @strcpy(ptr noundef @hostname.host, ptr noundef @.str)
br label %5
5: ; preds = %3, %0
ret ptr @hostname.host
}
declare i64 @gethostname(ptr noundef, i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfcymvaki.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@hostname.host = internal global [64 x i8] zeroinitializer, align 16
@.str = private unnamed_addr constant [4 x i8] c"???\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @hostname() #0 {
%1 = call i64 @gethostname(ptr noundef @hostname.host, i32 noundef 64)
%2 = icmp ne i64 %1, 0
br i1 %2, label %3, label %5
3: ; preds = %0
%4 = call i32 @strcpy(ptr noundef @hostname.host, ptr noundef @.str)
br label %5
5: ; preds = %3, %0
ret ptr @hostname.host
}
declare i64 @gethostname(ptr noundef, i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmprg5sgra7.c'
source_filename = "/tmp/tmprg5sgra7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"R_OK\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"W_OK\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [27 x i8] c"Usage %s <file> R_OK|W_OK\0A\00", align 1
@EINVAL = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@R_OK = dso_local global i32 0, align 4
@W_OK = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr %4, align 4
%7 = icmp ne i32 %6, 3
br i1 %7, label %20, label %8
8: ; preds = %2
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds ptr, ptr %9, i64 2
%11 = load ptr, ptr %10, align 8
%12 = call i64 @strcmp(ptr noundef %11, ptr noundef @.str)
%13 = icmp ne i64 %12, 0
br i1 %13, label %14, label %27
14: ; preds = %8
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 2
%17 = load ptr, ptr %16, align 8
%18 = call i64 @strcmp(ptr noundef %17, ptr noundef @.str.1)
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %27
20: ; preds = %14, %2
%21 = load i32, ptr @stderr, align 4
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 0
%24 = load ptr, ptr %23, align 8
%25 = call i32 @fprintf(i32 noundef %21, ptr noundef @.str.2, ptr noundef %24)
%26 = load i32, ptr @EINVAL, align 4
store i32 %26, ptr %3, align 4
br label %44
27: ; preds = %14, %8
store i32 0, ptr @errno, align 4
%28 = load ptr, ptr %5, align 8
%29 = getelementptr inbounds ptr, ptr %28, i64 1
%30 = load ptr, ptr %29, align 8
%31 = load ptr, ptr %5, align 8
%32 = getelementptr inbounds ptr, ptr %31, i64 2
%33 = load ptr, ptr %32, align 8
%34 = call i64 @strcmp(ptr noundef %33, ptr noundef @.str)
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %38
36: ; preds = %27
%37 = load i32, ptr @R_OK, align 4
br label %40
38: ; preds = %27
%39 = load i32, ptr @W_OK, align 4
br label %40
40: ; preds = %38, %36
%41 = phi i32 [ %37, %36 ], [ %39, %38 ]
%42 = call i32 @access(ptr noundef %30, i32 noundef %41)
%43 = load i32, ptr @errno, align 4
store i32 %43, ptr %3, align 4
br label %44
44: ; preds = %40, %20
%45 = load i32, ptr %3, align 4
ret i32 %45
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @access(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/tmprg5sgra7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"R_OK\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"W_OK\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [27 x i8] c"Usage %s <file> R_OK|W_OK\0A\00", align 1
@EINVAL = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@R_OK = dso_local global i32 0, align 4
@W_OK = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr %4, align 4
%7 = icmp ne i32 %6, 3
br i1 %7, label %20, label %8
8: ; preds = %2
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds ptr, ptr %9, i64 2
%11 = load ptr, ptr %10, align 8
%12 = call i64 @strcmp(ptr noundef %11, ptr noundef @.str)
%13 = icmp ne i64 %12, 0
br i1 %13, label %14, label %27
14: ; preds = %8
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 2
%17 = load ptr, ptr %16, align 8
%18 = call i64 @strcmp(ptr noundef %17, ptr noundef @.str.1)
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %27
20: ; preds = %14, %2
%21 = load i32, ptr @stderr, align 4
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 0
%24 = load ptr, ptr %23, align 8
%25 = call i32 @fprintf(i32 noundef %21, ptr noundef @.str.2, ptr noundef %24)
%26 = load i32, ptr @EINVAL, align 4
store i32 %26, ptr %3, align 4
br label %44
27: ; preds = %14, %8
store i32 0, ptr @errno, align 4
%28 = load ptr, ptr %5, align 8
%29 = getelementptr inbounds ptr, ptr %28, i64 1
%30 = load ptr, ptr %29, align 8
%31 = load ptr, ptr %5, align 8
%32 = getelementptr inbounds ptr, ptr %31, i64 2
%33 = load ptr, ptr %32, align 8
%34 = call i64 @strcmp(ptr noundef %33, ptr noundef @.str)
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %38
36: ; preds = %27
%37 = load i32, ptr @R_OK, align 4
br label %40
38: ; preds = %27
%39 = load i32, ptr @W_OK, align 4
br label %40
40: ; preds = %38, %36
%41 = phi i32 [ %37, %36 ], [ %39, %38 ]
%42 = call i32 @access(ptr noundef %30, i32 noundef %41)
%43 = load i32, ptr @errno, align 4
store i32 %43, ptr %3, align 4
br label %44
44: ; preds = %40, %20
%45 = load i32, ptr %3, align 4
ret i32 %45
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @access(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/tmp9r1icj8k.c'
source_filename = "/tmp/tmp9r1icj8k.c"
target datalayout = "e-m:e-p270: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 [57 x i8] c"SQL function VERIFY_PASSWD called with invalid arguments\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @sql_verify_passwd(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%8 = load ptr, ptr %6, align 8
%9 = getelementptr inbounds ptr, ptr %8, i64 0
%10 = load ptr, ptr %9, align 8
%11 = call i64 @sqlite3_value_text(ptr noundef %10)
%12 = inttoptr i64 %11 to ptr
store ptr %12, ptr %7, align 8
%13 = load i32, ptr %5, align 4
%14 = icmp ne i32 %13, 1
br i1 %14, label %18, label %15
15: ; preds = %3
%16 = load ptr, ptr %7, align 8
%17 = icmp eq ptr %16, null
br i1 %17, label %18, label %21
18: ; preds = %15, %3
%19 = load i32, ptr @stderr, align 4
%20 = call i32 @fprintf(i32 noundef %19, ptr noundef @.str)
br label %26
21: ; preds = %15
%22 = load ptr, ptr %4, align 8
%23 = load ptr, ptr %7, align 8
%24 = call i32 @verify_passwd(ptr noundef %23)
%25 = call i32 @sqlite3_result_int(ptr noundef %22, i32 noundef %24)
br label %26
26: ; preds = %21, %18
ret void
}
declare i64 @sqlite3_value_text(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @sqlite3_result_int(ptr noundef, i32 noundef) #1
declare i32 @verify_passwd(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9r1icj8k.c"
target datalayout = "e-m:e-p270: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 [57 x i8] c"SQL function VERIFY_PASSWD called with invalid arguments\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @sql_verify_passwd(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store ptr %2, ptr %6, align 8
%8 = load ptr, ptr %6, align 8
%9 = getelementptr inbounds ptr, ptr %8, i64 0
%10 = load ptr, ptr %9, align 8
%11 = call i64 @sqlite3_value_text(ptr noundef %10)
%12 = inttoptr i64 %11 to ptr
store ptr %12, ptr %7, align 8
%13 = load i32, ptr %5, align 4
%14 = icmp ne i32 %13, 1
br i1 %14, label %18, label %15
15: ; preds = %3
%16 = load ptr, ptr %7, align 8
%17 = icmp eq ptr %16, null
br i1 %17, label %18, label %21
18: ; preds = %15, %3
%19 = load i32, ptr @stderr, align 4
%20 = call i32 @fprintf(i32 noundef %19, ptr noundef @.str)
br label %26
21: ; preds = %15
%22 = load ptr, ptr %4, align 8
%23 = load ptr, ptr %7, align 8
%24 = call i32 @verify_passwd(ptr noundef %23)
%25 = call i32 @sqlite3_result_int(ptr noundef %22, i32 noundef %24)
br label %26
26: ; preds = %21, %18
ret void
}
declare i64 @sqlite3_value_text(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @sqlite3_result_int(ptr noundef, i32 noundef) #1
declare i32 @verify_passwd(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp83v7m6e8.c'
source_filename = "/tmp/tmp83v7m6e8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cosatan_(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca double, align 8
store double %0, ptr %2, align 8
%4 = load double, ptr %2, align 8
%5 = call double @atanh(double noundef %4) #2
store double %5, ptr %3, align 8
%6 = load double, ptr %3, align 8
%7 = call double @cosh(double noundef %6) #2
%8 = load double, ptr %3, align 8
%9 = fadd double %7, %8
ret double %9
}
; Function Attrs: nounwind
declare double @atanh(double noundef) #1
; Function Attrs: nounwind
declare double @cosh(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/tmp83v7m6e8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cosatan_(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca double, align 8
store double %0, ptr %2, align 8
%4 = load double, ptr %2, align 8
%5 = call double @atanh(double noundef %4) #2
store double %5, ptr %3, align 8
%6 = load double, ptr %3, align 8
%7 = call double @cosh(double noundef %6) #2
%8 = load double, ptr %3, align 8
%9 = fadd double %7, %8
ret double %9
}
; Function Attrs: nounwind
declare double @atanh(double noundef) #1
; Function Attrs: nounwind
declare double @cosh(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/tmpc8ye3sje.c'
source_filename = "/tmp/tmpc8ye3sje.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.url = private unnamed_addr constant [8 x i8] c"map.txt\00", align 1
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.1 = private unnamed_addr constant [41 x i8] c"Erro, nao foi possivel abrir o arquivo \0A\00", align 1
@EOF = dso_local global i8 0, align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [8 x i8], align 1
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca [20 x [20 x i8]], align 16
%7 = alloca i8, align 1
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %2, ptr align 1 @__const.main.url, i64 8, i1 false)
%8 = getelementptr inbounds [8 x i8], ptr %2, i64 0, i64 0
%9 = call ptr @fopen(ptr noundef %8, ptr noundef @.str)
store ptr %9, ptr %3, align 8
%10 = load ptr, ptr %3, align 8
%11 = icmp eq ptr %10, null
br i1 %11, label %12, label %14
12: ; preds = %0
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %49
14: ; preds = %0
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %15
15: ; preds = %47, %14
%16 = load ptr, ptr %3, align 8
%17 = call signext i8 @fgetc(ptr noundef %16)
store i8 %17, ptr %7, align 1
%18 = sext i8 %17 to i32
%19 = load i8, ptr @EOF, align 1
%20 = sext i8 %19 to i32
%21 = icmp ne i32 %18, %20
br i1 %21, label %22, label %48
22: ; preds = %15
%23 = load i8, ptr %7, align 1
%24 = load i32, ptr %4, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [20 x [20 x i8]], ptr %6, i64 0, i64 %25
%27 = load i32, ptr %5, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [20 x i8], ptr %26, i64 0, i64 %28
store i8 %23, ptr %29, align 1
%30 = load i32, ptr %4, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [20 x [20 x i8]], ptr %6, i64 0, i64 %31
%33 = load i32, ptr %5, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [20 x i8], ptr %32, i64 0, i64 %34
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %37)
%39 = load i32, ptr %4, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %4, align 4
%41 = load i8, ptr %7, align 1
%42 = sext i8 %41 to i32
%43 = icmp eq i32 %42, 10
br i1 %43, label %44, label %47
44: ; preds = %22
store i32 0, ptr %4, align 4
%45 = load i32, ptr %5, align 4
%46 = add nsw i32 %45, 1
store i32 %46, ptr %5, align 4
br label %47
47: ; preds = %44, %22
br label %15, !llvm.loop !6
48: ; preds = %15
br label %49
49: ; preds = %48, %12
%50 = load ptr, ptr %3, align 8
%51 = call i32 @fclose(ptr noundef %50)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare ptr @fopen(ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, ...) #2
declare signext i8 @fgetc(ptr noundef) #2
declare i32 @fclose(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpc8ye3sje.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.url = private unnamed_addr constant [8 x i8] c"map.txt\00", align 1
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.1 = private unnamed_addr constant [41 x i8] c"Erro, nao foi possivel abrir o arquivo \0A\00", align 1
@EOF = dso_local global i8 0, align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [8 x i8], align 1
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca [20 x [20 x i8]], align 16
%7 = alloca i8, align 1
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %2, ptr align 1 @__const.main.url, i64 8, i1 false)
%8 = getelementptr inbounds [8 x i8], ptr %2, i64 0, i64 0
%9 = call ptr @fopen(ptr noundef %8, ptr noundef @.str)
store ptr %9, ptr %3, align 8
%10 = load ptr, ptr %3, align 8
%11 = icmp eq ptr %10, null
br i1 %11, label %12, label %14
12: ; preds = %0
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %54
14: ; preds = %0
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
%15 = load ptr, ptr %3, align 8
%16 = call signext i8 @fgetc(ptr noundef %15)
store i8 %16, ptr %7, align 1
%17 = sext i8 %16 to i32
%18 = load i8, ptr @EOF, align 1
%19 = sext i8 %18 to i32
%20 = icmp ne i32 %17, %19
br i1 %20, label %.lr.ph, label %53
.lr.ph: ; preds = %14
br label %21
21: ; preds = %.lr.ph, %46
%22 = load i8, ptr %7, align 1
%23 = load i32, ptr %4, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [20 x [20 x i8]], ptr %6, i64 0, i64 %24
%26 = load i32, ptr %5, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [20 x i8], ptr %25, i64 0, i64 %27
store i8 %22, ptr %28, align 1
%29 = load i32, ptr %4, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [20 x [20 x i8]], ptr %6, i64 0, i64 %30
%32 = load i32, ptr %5, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [20 x i8], ptr %31, i64 0, i64 %33
%35 = load i8, ptr %34, align 1
%36 = sext i8 %35 to i32
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %36)
%38 = load i32, ptr %4, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %4, align 4
%40 = load i8, ptr %7, align 1
%41 = sext i8 %40 to i32
%42 = icmp eq i32 %41, 10
br i1 %42, label %43, label %46
43: ; preds = %21
store i32 0, ptr %4, align 4
%44 = load i32, ptr %5, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %5, align 4
br label %46
46: ; preds = %43, %21
%47 = load ptr, ptr %3, align 8
%48 = call signext i8 @fgetc(ptr noundef %47)
store i8 %48, ptr %7, align 1
%49 = sext i8 %48 to i32
%50 = load i8, ptr @EOF, align 1
%51 = sext i8 %50 to i32
%52 = icmp ne i32 %49, %51
br i1 %52, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %46
br label %53
53: ; preds = %._crit_edge, %14
br label %54
54: ; preds = %53, %12
%55 = load ptr, ptr %3, align 8
%56 = call i32 @fclose(ptr noundef %55)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare ptr @fopen(ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, ...) #2
declare signext i8 @fgetc(ptr noundef) #2
declare i32 @fclose(ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpnniy5fvz.c'
source_filename = "/tmp/tmpnniy5fvz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"/dev/i2c-1\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [17 x i8] c"error on device\0A\00", align 1
@I2C_SLAVE = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [13 x i8] c"ioctl error\0A\00", align 1
@.str.3 = private unnamed_addr constant [13 x i8] c"QUERY_STRING\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.5 = private unnamed_addr constant [27 x i8] c"Content-type: text/plain\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca 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
%9 = load i32, ptr @O_RDWR, align 4
%10 = call i32 @open(ptr noundef @.str, i32 noundef %9)
store i32 %10, ptr %6, align 4
%11 = load i32, ptr %6, align 4
%12 = icmp sle i32 %11, 1
br i1 %12, label %13, label %16
13: ; preds = %2
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%15 = call i32 @exit(i32 noundef 1) #3
unreachable
16: ; preds = %2
store i32 9, ptr %7, align 4
%17 = load i32, ptr %6, align 4
%18 = load i32, ptr @I2C_SLAVE, align 4
%19 = load i32, ptr %7, align 4
%20 = call i64 @ioctl(i32 noundef %17, i32 noundef %18, i32 noundef %19)
%21 = icmp slt i64 %20, 0
br i1 %21, label %22, label %25
22: ; preds = %16
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%24 = call i32 @exit(i32 noundef 1) #3
unreachable
25: ; preds = %16
%26 = call i32 @getenv(ptr noundef @.str.3)
%27 = call i32 @sscanf(i32 noundef %26, ptr noundef @.str.4, ptr noundef %8)
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%29 = load i32, ptr %6, align 4
%30 = load i32, ptr %8, align 4
%31 = call i32 @i2c_smbus_read_word_data(i32 noundef %29, i32 noundef %30)
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %31)
%33 = load i32, ptr %6, align 4
%34 = call i32 @close(i32 noundef %33)
ret i32 0
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @ioctl(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @sscanf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @getenv(ptr noundef) #1
declare i32 @i2c_smbus_read_word_data(i32 noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpnniy5fvz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"/dev/i2c-1\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [17 x i8] c"error on device\0A\00", align 1
@I2C_SLAVE = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [13 x i8] c"ioctl error\0A\00", align 1
@.str.3 = private unnamed_addr constant [13 x i8] c"QUERY_STRING\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.5 = private unnamed_addr constant [27 x i8] c"Content-type: text/plain\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca 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
%9 = load i32, ptr @O_RDWR, align 4
%10 = call i32 @open(ptr noundef @.str, i32 noundef %9)
store i32 %10, ptr %6, align 4
%11 = load i32, ptr %6, align 4
%12 = icmp sle i32 %11, 1
br i1 %12, label %13, label %16
13: ; preds = %2
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%15 = call i32 @exit(i32 noundef 1) #3
unreachable
16: ; preds = %2
store i32 9, ptr %7, align 4
%17 = load i32, ptr %6, align 4
%18 = load i32, ptr @I2C_SLAVE, align 4
%19 = load i32, ptr %7, align 4
%20 = call i64 @ioctl(i32 noundef %17, i32 noundef %18, i32 noundef %19)
%21 = icmp slt i64 %20, 0
br i1 %21, label %22, label %25
22: ; preds = %16
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%24 = call i32 @exit(i32 noundef 1) #3
unreachable
25: ; preds = %16
%26 = call i32 @getenv(ptr noundef @.str.3)
%27 = call i32 @sscanf(i32 noundef %26, ptr noundef @.str.4, ptr noundef %8)
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%29 = load i32, ptr %6, align 4
%30 = load i32, ptr %8, align 4
%31 = call i32 @i2c_smbus_read_word_data(i32 noundef %29, i32 noundef %30)
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %31)
%33 = load i32, ptr %6, align 4
%34 = call i32 @close(i32 noundef %33)
ret i32 0
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @ioctl(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @sscanf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @getenv(ptr noundef) #1
declare i32 @i2c_smbus_read_word_data(i32 noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpoy6vcxng.c'
source_filename = "/tmp/tmpoy6vcxng.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [237 x i8] c"Uma serie muito famosa na matematica e a serie de FIBONACCI\0A\0AAqui vamos te mostrar o n-esimo termo da serie de FETUCCINE\0AQue ao contrario de somar igual a FIBONACCI, ela subtrai nos termos pares\0ADigite o termo que voce quer encontrar:\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [36 x i8] c"\0A\0ASerie de Fetuccine [Fibonacci]:\0A\0A\00", align 1
@.str.3 = private unnamed_addr constant [12 x i8] c"Termo 1: 1\0A\00", align 1
@.str.4 = private unnamed_addr constant [12 x i8] c"Termo 2: 1\0A\00", align 1
@.str.5 = private unnamed_addr constant [14 x i8] c"Termo %d: %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 i32, align 4
store i32 0, ptr %1, align 4
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%9 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 1, ptr %7, align 4
store i32 1, ptr %6, align 4
store i32 3, ptr %4, align 4
br label %13
13: ; preds = %37, %0
%14 = load i32, ptr %4, align 4
%15 = load i32, ptr %2, align 4
%16 = icmp sle i32 %14, %15
br i1 %16, label %17, label %40
17: ; preds = %13
%18 = load i32, ptr %4, align 4
%19 = srem i32 %18, 2
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %27
21: ; preds = %17
%22 = load i32, ptr %6, align 4
%23 = load i32, ptr %7, align 4
%24 = sub nsw i32 %22, %23
store i32 %24, ptr %5, align 4
%25 = load i32, ptr %6, align 4
store i32 %25, ptr %7, align 4
%26 = load i32, ptr %5, align 4
store i32 %26, ptr %6, align 4
br label %33
27: ; preds = %17
%28 = load i32, ptr %6, align 4
%29 = load i32, ptr %7, align 4
%30 = add nsw i32 %28, %29
store i32 %30, ptr %5, align 4
%31 = load i32, ptr %6, align 4
store i32 %31, ptr %7, align 4
%32 = load i32, ptr %5, align 4
store i32 %32, ptr %6, align 4
br label %33
33: ; preds = %27, %21
%34 = load i32, ptr %4, align 4
%35 = load i32, ptr %5, align 4
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %34, i32 noundef %35)
br label %37
37: ; preds = %33
%38 = load i32, ptr %4, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %4, align 4
br label %13, !llvm.loop !6
40: ; preds = %13
%41 = call i32 (...) @getch()
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @getch(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpoy6vcxng.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [237 x i8] c"Uma serie muito famosa na matematica e a serie de FIBONACCI\0A\0AAqui vamos te mostrar o n-esimo termo da serie de FETUCCINE\0AQue ao contrario de somar igual a FIBONACCI, ela subtrai nos termos pares\0ADigite o termo que voce quer encontrar:\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [36 x i8] c"\0A\0ASerie de Fetuccine [Fibonacci]:\0A\0A\00", align 1
@.str.3 = private unnamed_addr constant [12 x i8] c"Termo 1: 1\0A\00", align 1
@.str.4 = private unnamed_addr constant [12 x i8] c"Termo 2: 1\0A\00", align 1
@.str.5 = private unnamed_addr constant [14 x i8] c"Termo %d: %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 i32, align 4
store i32 0, ptr %1, align 4
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%9 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 1, ptr %7, align 4
store i32 1, ptr %6, align 4
store i32 3, ptr %4, align 4
%13 = load i32, ptr %4, align 4
%14 = load i32, ptr %2, align 4
%15 = icmp sle i32 %13, %14
br i1 %15, label %.lr.ph, label %42
.lr.ph: ; preds = %0
br label %16
16: ; preds = %.lr.ph, %36
%17 = load i32, ptr %4, align 4
%18 = srem i32 %17, 2
%19 = icmp eq i32 %18, 0
br i1 %19, label %20, label %26
20: ; preds = %16
%21 = load i32, ptr %6, align 4
%22 = load i32, ptr %7, align 4
%23 = sub nsw i32 %21, %22
store i32 %23, ptr %5, align 4
%24 = load i32, ptr %6, align 4
store i32 %24, ptr %7, align 4
%25 = load i32, ptr %5, align 4
store i32 %25, ptr %6, align 4
br label %32
26: ; preds = %16
%27 = load i32, ptr %6, align 4
%28 = load i32, ptr %7, align 4
%29 = add nsw i32 %27, %28
store i32 %29, ptr %5, align 4
%30 = load i32, ptr %6, align 4
store i32 %30, ptr %7, align 4
%31 = load i32, ptr %5, align 4
store i32 %31, ptr %6, align 4
br label %32
32: ; preds = %26, %20
%33 = load i32, ptr %4, align 4
%34 = load i32, ptr %5, align 4
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %33, i32 noundef %34)
br label %36
36: ; preds = %32
%37 = load i32, ptr %4, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %4, align 4
%39 = load i32, ptr %4, align 4
%40 = load i32, ptr %2, align 4
%41 = icmp sle i32 %39, %40
br i1 %41, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %36
br label %42
42: ; preds = %._crit_edge, %0
%43 = call i32 (...) @getch()
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @getch(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpk5h5oll2.c'
source_filename = "/tmp/tmpk5h5oll2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ticket_lock_signal_noinline(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 @ticket_lock_signal_inline(ptr noundef %3)
ret void
}
declare i32 @ticket_lock_signal_inline(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpk5h5oll2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ticket_lock_signal_noinline(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 @ticket_lock_signal_inline(ptr noundef %3)
ret void
}
declare i32 @ticket_lock_signal_inline(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmphhnsu_4z.c'
source_filename = "/tmp/tmphhnsu_4z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @splice_infix(ptr noundef %0, i32 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 i32, align 4
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca ptr, align 8
store ptr %0, ptr %8, align 8
store i32 %1, ptr %9, align 4
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
store i32 0, ptr %15, align 4
%18 = load ptr, ptr %11, align 8
%19 = call i32 @strlen(ptr noundef %18)
store i32 %19, ptr %16, align 4
%20 = load i32, ptr %10, align 4
%21 = sub nsw i32 %20, 1
store i32 %21, ptr %14, align 4
%22 = load ptr, ptr %8, align 8
%23 = load i32, ptr %14, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i8, ptr %22, i64 %24
store ptr %25, ptr %17, align 8
br label %26
26: ; preds = %73, %6
%27 = load i32, ptr %14, align 4
%28 = load i32, ptr %9, align 4
%29 = icmp sge i32 %27, %28
br i1 %29, label %30, label %78
30: ; preds = %26
%31 = load ptr, ptr %17, align 8
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = icmp eq i32 %33, 41
br i1 %34, label %35, label %38
35: ; preds = %30
%36 = load i32, ptr %15, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %15, align 4
br label %38
38: ; preds = %35, %30
%39 = load ptr, ptr %17, align 8
%40 = load i8, ptr %39, align 1
%41 = sext i8 %40 to i32
%42 = icmp eq i32 %41, 40
br i1 %42, label %43, label %46
43: ; preds = %38
%44 = load i32, ptr %15, align 4
%45 = add nsw i32 %44, -1
store i32 %45, ptr %15, align 4
br label %46
46: ; preds = %43, %38
%47 = load i32, ptr %15, align 4
%48 = icmp slt i32 %47, 0
br i1 %48, label %49, label %50
49: ; preds = %46
store i32 0, ptr %7, align 4
br label %79
50: ; preds = %46
%51 = load i32, ptr %15, align 4
%52 = icmp eq i32 %51, 0
br i1 %52, label %53, label %72
53: ; preds = %50
%54 = load i32, ptr %10, align 4
%55 = load i32, ptr %14, align 4
%56 = sub nsw i32 %54, %55
%57 = load i32, ptr %16, align 4
%58 = icmp sge i32 %56, %57
br i1 %58, label %59, label %72
59: ; preds = %53
%60 = load ptr, ptr %17, align 8
%61 = load ptr, ptr %11, align 8
%62 = load i32, ptr %16, align 4
%63 = call i32 @strncmp(ptr noundef %60, ptr noundef %61, i32 noundef %62)
%64 = icmp ne i32 %63, 0
br i1 %64, label %72, label %65
65: ; preds = %59
%66 = load i32, ptr %14, align 4
%67 = load ptr, ptr %12, align 8
store i32 %66, ptr %67, align 4
%68 = load i32, ptr %14, align 4
%69 = load i32, ptr %16, align 4
%70 = add nsw i32 %68, %69
%71 = load ptr, ptr %13, align 8
store i32 %70, ptr %71, align 4
store i32 1, ptr %7, align 4
br label %79
72: ; preds = %59, %53, %50
br label %73
73: ; preds = %72
%74 = load i32, ptr %14, align 4
%75 = add nsw i32 %74, -1
store i32 %75, ptr %14, align 4
%76 = load ptr, ptr %17, align 8
%77 = getelementptr inbounds i8, ptr %76, i32 -1
store ptr %77, ptr %17, align 8
br label %26, !llvm.loop !6
78: ; preds = %26
store i32 0, ptr %7, align 4
br label %79
79: ; preds = %78, %65, %49
%80 = load i32, ptr %7, align 4
ret i32 %80
}
declare i32 @strlen(ptr noundef) #1
declare i32 @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" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmphhnsu_4z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @splice_infix(ptr noundef %0, i32 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 i32, align 4
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca ptr, align 8
store ptr %0, ptr %8, align 8
store i32 %1, ptr %9, align 4
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
store i32 0, ptr %15, align 4
%18 = load ptr, ptr %11, align 8
%19 = call i32 @strlen(ptr noundef %18)
store i32 %19, ptr %16, align 4
%20 = load i32, ptr %10, align 4
%21 = sub nsw i32 %20, 1
store i32 %21, ptr %14, align 4
%22 = load ptr, ptr %8, align 8
%23 = load i32, ptr %14, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i8, ptr %22, i64 %24
store ptr %25, ptr %17, align 8
%26 = load i32, ptr %14, align 4
%27 = load i32, ptr %9, align 4
%28 = icmp sge i32 %26, %27
br i1 %28, label %.lr.ph, label %80
.lr.ph: ; preds = %6
br label %29
29: ; preds = %.lr.ph, %72
%30 = load ptr, ptr %17, align 8
%31 = load i8, ptr %30, align 1
%32 = sext i8 %31 to i32
%33 = icmp eq i32 %32, 41
br i1 %33, label %34, label %37
34: ; preds = %29
%35 = load i32, ptr %15, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %15, align 4
br label %37
37: ; preds = %34, %29
%38 = load ptr, ptr %17, align 8
%39 = load i8, ptr %38, align 1
%40 = sext i8 %39 to i32
%41 = icmp eq i32 %40, 40
br i1 %41, label %42, label %45
42: ; preds = %37
%43 = load i32, ptr %15, align 4
%44 = add nsw i32 %43, -1
store i32 %44, ptr %15, align 4
br label %45
45: ; preds = %42, %37
%46 = load i32, ptr %15, align 4
%47 = icmp slt i32 %46, 0
br i1 %47, label %48, label %49
48: ; preds = %45
store i32 0, ptr %7, align 4
br label %81
49: ; preds = %45
%50 = load i32, ptr %15, align 4
%51 = icmp eq i32 %50, 0
br i1 %51, label %52, label %71
52: ; preds = %49
%53 = load i32, ptr %10, align 4
%54 = load i32, ptr %14, align 4
%55 = sub nsw i32 %53, %54
%56 = load i32, ptr %16, align 4
%57 = icmp sge i32 %55, %56
br i1 %57, label %58, label %71
58: ; preds = %52
%59 = load ptr, ptr %17, align 8
%60 = load ptr, ptr %11, align 8
%61 = load i32, ptr %16, align 4
%62 = call i32 @strncmp(ptr noundef %59, ptr noundef %60, i32 noundef %61)
%63 = icmp ne i32 %62, 0
br i1 %63, label %71, label %64
64: ; preds = %58
%65 = load i32, ptr %14, align 4
%66 = load ptr, ptr %12, align 8
store i32 %65, ptr %66, align 4
%67 = load i32, ptr %14, align 4
%68 = load i32, ptr %16, align 4
%69 = add nsw i32 %67, %68
%70 = load ptr, ptr %13, align 8
store i32 %69, ptr %70, align 4
store i32 1, ptr %7, align 4
br label %81
71: ; preds = %58, %52, %49
br label %72
72: ; preds = %71
%73 = load i32, ptr %14, align 4
%74 = add nsw i32 %73, -1
store i32 %74, ptr %14, align 4
%75 = load ptr, ptr %17, align 8
%76 = getelementptr inbounds i8, ptr %75, i32 -1
store ptr %76, ptr %17, align 8
%77 = load i32, ptr %14, align 4
%78 = load i32, ptr %9, align 4
%79 = icmp sge i32 %77, %78
br i1 %79, label %29, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %72
br label %80
80: ; preds = %._crit_edge, %6
store i32 0, ptr %7, align 4
br label %81
81: ; preds = %80, %64, %48
%82 = load i32, ptr %7, align 4
ret i32 %82
}
declare i32 @strlen(ptr noundef) #1
declare i32 @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" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpbq3oi9g2.c'
source_filename = "/tmp/tmpbq3oi9g2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"(\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c")\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @readOnOff(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca [140 x i8], align 16
%6 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
%8 = call ptr @strstr(ptr noundef %7, ptr noundef @.str)
store ptr %8, ptr %3, align 8
%9 = load ptr, ptr %2, align 8
%10 = call ptr @strstr(ptr noundef %9, ptr noundef @.str.1)
store ptr %10, ptr %4, align 8
%11 = getelementptr inbounds [140 x i8], ptr %5, i64 0, i64 0
%12 = load ptr, ptr %3, align 8
%13 = getelementptr inbounds i8, ptr %12, i64 1
%14 = call i32 @strcpy(ptr noundef %11, ptr noundef %13)
%15 = load ptr, ptr %4, align 8
%16 = load ptr, ptr %3, align 8
%17 = ptrtoint ptr %15 to i64
%18 = ptrtoint ptr %16 to i64
%19 = sub i64 %17, %18
%20 = sub nsw i64 %19, 1
%21 = getelementptr inbounds [140 x i8], ptr %5, i64 0, i64 %20
store i8 0, ptr %21, align 1
%22 = getelementptr inbounds [140 x i8], ptr %5, i64 0, i64 0
%23 = call i32 @atoi(ptr noundef %22)
store i32 %23, ptr %6, align 4
%24 = load i32, ptr %6, align 4
ret i32 %24
}
declare ptr @strstr(ptr noundef, ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbq3oi9g2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"(\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c")\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @readOnOff(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca [140 x i8], align 16
%6 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
%8 = call ptr @strstr(ptr noundef %7, ptr noundef @.str)
store ptr %8, ptr %3, align 8
%9 = load ptr, ptr %2, align 8
%10 = call ptr @strstr(ptr noundef %9, ptr noundef @.str.1)
store ptr %10, ptr %4, align 8
%11 = getelementptr inbounds [140 x i8], ptr %5, i64 0, i64 0
%12 = load ptr, ptr %3, align 8
%13 = getelementptr inbounds i8, ptr %12, i64 1
%14 = call i32 @strcpy(ptr noundef %11, ptr noundef %13)
%15 = load ptr, ptr %4, align 8
%16 = load ptr, ptr %3, align 8
%17 = ptrtoint ptr %15 to i64
%18 = ptrtoint ptr %16 to i64
%19 = sub i64 %17, %18
%20 = sub nsw i64 %19, 1
%21 = getelementptr inbounds [140 x i8], ptr %5, i64 0, i64 %20
store i8 0, ptr %21, align 1
%22 = getelementptr inbounds [140 x i8], ptr %5, i64 0, i64 0
%23 = call i32 @atoi(ptr noundef %22)
store i32 %23, ptr %6, align 4
%24 = load i32, ptr %6, align 4
ret i32 %24
}
declare ptr @strstr(ptr noundef, ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpo2bvker_.c'
source_filename = "/tmp/tmpo2bvker_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"a.o65\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"#\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"x\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c".\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"O\00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.7 = private unnamed_addr constant [2 x i8] c"?\00", align 1
@.str.8 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i8, align 1
store i32 0, ptr %1, align 4
%6 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %6, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %10
9: ; preds = %0
store i32 -1, ptr %1, align 4
br label %47
10: ; preds = %0
store i32 0, ptr %4, align 4
br label %11
11: ; preds = %41, %10
%12 = load i32, ptr %4, align 4
%13 = icmp slt i32 %12, 31
br i1 %13, label %14, label %44
14: ; preds = %11
store i32 0, ptr %3, align 4
br label %15
15: ; preds = %36, %14
%16 = load i32, ptr %3, align 4
%17 = icmp slt i32 %16, 32
br i1 %17, label %18, label %39
18: ; preds = %15
%19 = load ptr, ptr %2, align 8
%20 = call zeroext i8 @fgetc(ptr noundef %19)
store i8 %20, ptr %5, align 1
%21 = load i8, ptr %5, align 1
%22 = zext i8 %21 to i32
switch i32 %22, label %33 [
i32 128, label %23
i32 129, label %25
i32 64, label %27
i32 32, label %29
i32 0, label %31
]
23: ; preds = %18
%24 = call i32 @printf(ptr noundef @.str.2)
br label %35
25: ; preds = %18
%26 = call i32 @printf(ptr noundef @.str.3)
br label %35
27: ; preds = %18
%28 = call i32 @printf(ptr noundef @.str.4)
br label %35
29: ; preds = %18
%30 = call i32 @printf(ptr noundef @.str.5)
br label %35
31: ; preds = %18
%32 = call i32 @printf(ptr noundef @.str.6)
br label %35
33: ; preds = %18
%34 = call i32 @printf(ptr noundef @.str.7)
br label %35
35: ; preds = %33, %31, %29, %27, %25, %23
br label %36
36: ; preds = %35
%37 = load i32, ptr %3, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %3, align 4
br label %15, !llvm.loop !6
39: ; preds = %15
%40 = call i32 @printf(ptr noundef @.str.8)
br label %41
41: ; preds = %39
%42 = load i32, ptr %4, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %4, align 4
br label %11, !llvm.loop !8
44: ; preds = %11
%45 = load ptr, ptr %2, align 8
%46 = call i32 @fclose(ptr noundef %45)
store i32 0, ptr %1, align 4
br label %47
47: ; preds = %44, %9
%48 = load i32, ptr %1, align 4
ret i32 %48
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare zeroext i8 @fgetc(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpo2bvker_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"a.o65\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"#\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"x\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c".\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"O\00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.7 = private unnamed_addr constant [2 x i8] c"?\00", align 1
@.str.8 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i8, align 1
store i32 0, ptr %1, align 4
%6 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %6, ptr %2, align 8
%7 = load ptr, ptr %2, align 8
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %10
9: ; preds = %0
store i32 -1, ptr %1, align 4
br label %49
10: ; preds = %0
store i32 0, ptr %4, align 4
%11 = load i32, ptr %4, align 4
%12 = icmp slt i32 %11, 31
br i1 %12, label %.lr.ph2, label %46
.lr.ph2: ; preds = %10
br label %13
13: ; preds = %.lr.ph2, %41
store i32 0, ptr %3, align 4
%14 = load i32, ptr %3, align 4
%15 = icmp slt i32 %14, 32
br i1 %15, label %.lr.ph, label %39
.lr.ph: ; preds = %13
br label %16
16: ; preds = %.lr.ph, %34
%17 = load ptr, ptr %2, align 8
%18 = call zeroext i8 @fgetc(ptr noundef %17)
store i8 %18, ptr %5, align 1
%19 = load i8, ptr %5, align 1
%20 = zext i8 %19 to i32
switch i32 %20, label %31 [
i32 128, label %21
i32 129, label %23
i32 64, label %25
i32 32, label %27
i32 0, label %29
]
21: ; preds = %16
%22 = call i32 @printf(ptr noundef @.str.2)
br label %33
23: ; preds = %16
%24 = call i32 @printf(ptr noundef @.str.3)
br label %33
25: ; preds = %16
%26 = call i32 @printf(ptr noundef @.str.4)
br label %33
27: ; preds = %16
%28 = call i32 @printf(ptr noundef @.str.5)
br label %33
29: ; preds = %16
%30 = call i32 @printf(ptr noundef @.str.6)
br label %33
31: ; preds = %16
%32 = call i32 @printf(ptr noundef @.str.7)
br label %33
33: ; preds = %31, %29, %27, %25, %23, %21
br label %34
34: ; preds = %33
%35 = load i32, ptr %3, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %3, align 4
%37 = load i32, ptr %3, align 4
%38 = icmp slt i32 %37, 32
br i1 %38, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %34
br label %39
39: ; preds = %._crit_edge, %13
%40 = call i32 @printf(ptr noundef @.str.8)
br label %41
41: ; preds = %39
%42 = load i32, ptr %4, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %4, align 4
%44 = load i32, ptr %4, align 4
%45 = icmp slt i32 %44, 31
br i1 %45, label %13, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %41
br label %46
46: ; preds = %._crit_edge3, %10
%47 = load ptr, ptr %2, align 8
%48 = call i32 @fclose(ptr noundef %47)
store i32 0, ptr %1, align 4
br label %49
49: ; preds = %46, %9
%50 = load i32, ptr %1, align 4
ret i32 %50
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare zeroext i8 @fgetc(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpybbchmmu.c'
source_filename = "/tmp/tmpybbchmmu.c"
target datalayout = "e-m:e-p270: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/tmpybbchmmu.c"
target datalayout = "e-m:e-p270: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/tmp9426lsbt.c'
source_filename = "/tmp/tmp9426lsbt.c"
target datalayout = "e-m:e-p270: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/tmp9426lsbt.c"
target datalayout = "e-m:e-p270: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/tmpumj6irc9.c'
source_filename = "/tmp/tmpumj6irc9.c"
target datalayout = "e-m:e-p270: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/tmpumj6irc9.c"
target datalayout = "e-m:e-p270: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/tmpywk8rc43.c'
source_filename = "/tmp/tmpywk8rc43.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [15 x i8] c"/../../../html\00", align 1
@.str.2 = private unnamed_addr constant [17 x i8] c"Setting root: %s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @get_root() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store i32 1023, ptr %1, align 4
%5 = load i32, ptr %1, align 4
%6 = call ptr @calloc(i32 noundef %5, i32 noundef 1)
store ptr %6, ptr %2, align 8
%7 = load i32, ptr %1, align 4
%8 = call ptr @calloc(i32 noundef %7, i32 noundef 1)
store ptr %8, ptr %3, align 8
%9 = load ptr, ptr %2, align 8
%10 = load i32, ptr %1, align 4
%11 = call i32 @get_exec_path(ptr noundef %9, i32 noundef %10)
%12 = load ptr, ptr %2, align 8
%13 = call i32 @lastIndexOf(ptr noundef %12, ptr noundef @.str)
store i32 %13, ptr %4, align 4
%14 = load ptr, ptr %3, align 8
%15 = load i32, ptr %1, align 4
%16 = load ptr, ptr %2, align 8
%17 = load i32, ptr %4, align 4
%18 = call i32 @substr(ptr noundef %14, i32 noundef %15, ptr noundef %16, i32 noundef %17)
%19 = load ptr, ptr %3, align 8
%20 = call i32 @strcat(ptr noundef %19, ptr noundef @.str.1)
%21 = load ptr, ptr %3, align 8
%22 = call i32 @log_info(ptr noundef @.str.2, ptr noundef %21)
%23 = load ptr, ptr %2, align 8
%24 = call i32 @free(ptr noundef %23)
%25 = load ptr, ptr %3, align 8
ret ptr %25
}
declare ptr @calloc(i32 noundef, i32 noundef) #1
declare i32 @get_exec_path(ptr noundef, i32 noundef) #1
declare i32 @lastIndexOf(ptr noundef, ptr noundef) #1
declare i32 @substr(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare i32 @log_info(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/tmpywk8rc43.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [15 x i8] c"/../../../html\00", align 1
@.str.2 = private unnamed_addr constant [17 x i8] c"Setting root: %s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @get_root() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store i32 1023, ptr %1, align 4
%5 = load i32, ptr %1, align 4
%6 = call ptr @calloc(i32 noundef %5, i32 noundef 1)
store ptr %6, ptr %2, align 8
%7 = load i32, ptr %1, align 4
%8 = call ptr @calloc(i32 noundef %7, i32 noundef 1)
store ptr %8, ptr %3, align 8
%9 = load ptr, ptr %2, align 8
%10 = load i32, ptr %1, align 4
%11 = call i32 @get_exec_path(ptr noundef %9, i32 noundef %10)
%12 = load ptr, ptr %2, align 8
%13 = call i32 @lastIndexOf(ptr noundef %12, ptr noundef @.str)
store i32 %13, ptr %4, align 4
%14 = load ptr, ptr %3, align 8
%15 = load i32, ptr %1, align 4
%16 = load ptr, ptr %2, align 8
%17 = load i32, ptr %4, align 4
%18 = call i32 @substr(ptr noundef %14, i32 noundef %15, ptr noundef %16, i32 noundef %17)
%19 = load ptr, ptr %3, align 8
%20 = call i32 @strcat(ptr noundef %19, ptr noundef @.str.1)
%21 = load ptr, ptr %3, align 8
%22 = call i32 @log_info(ptr noundef @.str.2, ptr noundef %21)
%23 = load ptr, ptr %2, align 8
%24 = call i32 @free(ptr noundef %23)
%25 = load ptr, ptr %3, align 8
ret ptr %25
}
declare ptr @calloc(i32 noundef, i32 noundef) #1
declare i32 @get_exec_path(ptr noundef, i32 noundef) #1
declare i32 @lastIndexOf(ptr noundef, ptr noundef) #1
declare i32 @substr(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare i32 @log_info(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/tmpge5zb4xo.c'
source_filename = "/tmp/tmpge5zb4xo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"File read error\0A\00", align 1
@.str.1 = private unnamed_addr constant [40 x i8] c"Failed to allocate file content buffer\0A\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"Error reading from file\0A\00", align 1
@.str.3 = private unnamed_addr constant [34 x i8] c"Failed to allocate matrix buffer\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @lines_from_file(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca [256 x i8], align 16
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%15 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 0
%16 = load ptr, ptr %5, align 8
%17 = call i32 @fgets(ptr noundef %15, i32 noundef 256, ptr noundef %16)
%18 = icmp ne i32 %17, 0
br i1 %18, label %21, label %19
19: ; preds = %3
%20 = call i32 @printf(ptr noundef @.str)
store ptr null, ptr %4, align 8
br label %130
21: ; preds = %3
%22 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 0
%23 = call i32 @atoi(ptr noundef %22)
%24 = load ptr, ptr %6, align 8
store i32 %23, ptr %24, align 4
%25 = load ptr, ptr %6, align 8
%26 = load i32, ptr %25, align 4
%27 = mul nsw i32 %26, 256
%28 = call ptr @calloc(i32 noundef %27, i32 noundef 1)
store ptr %28, ptr %9, align 8
%29 = load ptr, ptr %9, align 8
%30 = icmp ne ptr %29, null
br i1 %30, label %33, label %31
31: ; preds = %21
%32 = call i32 @printf(ptr noundef @.str.1)
store ptr null, ptr %4, align 8
br label %130
33: ; preds = %21
store i32 0, ptr %10, align 4
br label %34
34: ; preds = %78, %33
%35 = load i32, ptr %10, align 4
%36 = load ptr, ptr %6, align 8
%37 = load i32, ptr %36, align 4
%38 = icmp slt i32 %35, %37
br i1 %38, label %39, label %81
39: ; preds = %34
%40 = load ptr, ptr %9, align 8
%41 = load i32, ptr %10, align 4
%42 = mul nsw i32 %41, 256
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i8, ptr %40, i64 %43
%45 = load ptr, ptr %5, align 8
%46 = call i32 @fgets(ptr noundef %44, i32 noundef 256, ptr noundef %45)
%47 = icmp ne i32 %46, 0
br i1 %47, label %52, label %48
48: ; preds = %39
%49 = call i32 @printf(ptr noundef @.str.2)
%50 = load ptr, ptr %9, align 8
%51 = call i32 @free(ptr noundef %50)
store ptr null, ptr %4, align 8
br label %130
52: ; preds = %39
%53 = load ptr, ptr %9, align 8
%54 = load i32, ptr %10, align 4
%55 = mul nsw i32 %54, 256
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds i8, ptr %53, i64 %56
%58 = call i32 @strlen(ptr noundef %57)
store i32 %58, ptr %11, align 4
%59 = load i32, ptr %11, align 4
%60 = load ptr, ptr %7, align 8
%61 = load i32, ptr %60, align 4
%62 = icmp sgt i32 %59, %61
br i1 %62, label %63, label %66
63: ; preds = %52
%64 = load i32, ptr %11, align 4
%65 = load ptr, ptr %7, align 8
store i32 %64, ptr %65, align 4
br label %66
66: ; preds = %63, %52
%67 = load ptr, ptr %9, align 8
%68 = load i32, ptr %10, align 4
%69 = mul nsw i32 %68, 256
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds i8, ptr %67, i64 %70
%72 = call ptr @strchr(ptr noundef %71, i8 noundef signext 10)
store ptr %72, ptr %12, align 8
%73 = load ptr, ptr %12, align 8
%74 = icmp ne ptr %73, null
br i1 %74, label %75, label %77
75: ; preds = %66
%76 = load ptr, ptr %12, align 8
store i8 0, ptr %76, align 1
br label %77
77: ; preds = %75, %66
br label %78
78: ; preds = %77
%79 = load i32, ptr %10, align 4
%80 = add nsw i32 %79, 1
store i32 %80, ptr %10, align 4
br label %34, !llvm.loop !6
81: ; preds = %34
%82 = load ptr, ptr %6, align 8
%83 = load i32, ptr %82, align 4
%84 = load ptr, ptr %7, align 8
%85 = load i32, ptr %84, align 4
%86 = mul nsw i32 %83, %85
%87 = load ptr, ptr %6, align 8
%88 = load i32, ptr %87, align 4
%89 = add nsw i32 %86, %88
%90 = sext i32 %89 to i64
%91 = mul i64 %90, 1
%92 = trunc i64 %91 to i32
%93 = call ptr @malloc(i32 noundef %92)
store ptr %93, ptr %13, align 8
%94 = load ptr, ptr %13, align 8
%95 = icmp ne ptr %94, null
br i1 %95, label %100, label %96
96: ; preds = %81
%97 = call i32 @printf(ptr noundef @.str.3)
%98 = load ptr, ptr %9, align 8
%99 = call i32 @free(ptr noundef %98)
store ptr null, ptr %4, align 8
br label %130
100: ; preds = %81
store i32 0, ptr %14, align 4
br label %101
101: ; preds = %123, %100
%102 = load i32, ptr %14, align 4
%103 = load ptr, ptr %6, align 8
%104 = load i32, ptr %103, align 4
%105 = icmp slt i32 %102, %104
br i1 %105, label %106, label %126
106: ; preds = %101
%107 = load ptr, ptr %13, align 8
%108 = load i32, ptr %14, align 4
%109 = load ptr, ptr %7, align 8
%110 = load i32, ptr %109, align 4
%111 = mul nsw i32 %108, %110
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds i8, ptr %107, i64 %112
%114 = load ptr, ptr %9, align 8
%115 = load i32, ptr %14, align 4
%116 = mul nsw i32 %115, 256
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds i8, ptr %114, i64 %117
%119 = load ptr, ptr %7, align 8
%120 = load i32, ptr %119, align 4
%121 = add nsw i32 %120, 1
%122 = call i32 @memcpy(ptr noundef %113, ptr noundef %118, i32 noundef %121)
br label %123
123: ; preds = %106
%124 = load i32, ptr %14, align 4
%125 = add nsw i32 %124, 1
store i32 %125, ptr %14, align 4
br label %101, !llvm.loop !8
126: ; preds = %101
%127 = load ptr, ptr %9, align 8
%128 = call i32 @free(ptr noundef %127)
%129 = load ptr, ptr %13, align 8
store ptr %129, ptr %4, align 8
br label %130
130: ; preds = %126, %96, %48, %31, %19
%131 = load ptr, ptr %4, align 8
ret ptr %131
}
declare i32 @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
declare ptr @calloc(i32 noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpge5zb4xo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [17 x i8] c"File read error\0A\00", align 1
@.str.1 = private unnamed_addr constant [40 x i8] c"Failed to allocate file content buffer\0A\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"Error reading from file\0A\00", align 1
@.str.3 = private unnamed_addr constant [34 x i8] c"Failed to allocate matrix buffer\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @lines_from_file(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca [256 x i8], align 16
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%15 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 0
%16 = load ptr, ptr %5, align 8
%17 = call i32 @fgets(ptr noundef %15, i32 noundef 256, ptr noundef %16)
%18 = icmp ne i32 %17, 0
br i1 %18, label %21, label %19
19: ; preds = %3
%20 = call i32 @printf(ptr noundef @.str)
store ptr null, ptr %4, align 8
br label %136
21: ; preds = %3
%22 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 0
%23 = call i32 @atoi(ptr noundef %22)
%24 = load ptr, ptr %6, align 8
store i32 %23, ptr %24, align 4
%25 = load ptr, ptr %6, align 8
%26 = load i32, ptr %25, align 4
%27 = mul nsw i32 %26, 256
%28 = call ptr @calloc(i32 noundef %27, i32 noundef 1)
store ptr %28, ptr %9, align 8
%29 = load ptr, ptr %9, align 8
%30 = icmp ne ptr %29, null
br i1 %30, label %33, label %31
31: ; preds = %21
%32 = call i32 @printf(ptr noundef @.str.1)
store ptr null, ptr %4, align 8
br label %136
33: ; preds = %21
store i32 0, ptr %10, align 4
%34 = load i32, ptr %10, align 4
%35 = load ptr, ptr %6, align 8
%36 = load i32, ptr %35, align 4
%37 = icmp slt i32 %34, %36
br i1 %37, label %.lr.ph, label %84
.lr.ph: ; preds = %33
br label %38
38: ; preds = %.lr.ph, %77
%39 = load ptr, ptr %9, align 8
%40 = load i32, ptr %10, align 4
%41 = mul nsw i32 %40, 256
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i8, ptr %39, i64 %42
%44 = load ptr, ptr %5, align 8
%45 = call i32 @fgets(ptr noundef %43, i32 noundef 256, ptr noundef %44)
%46 = icmp ne i32 %45, 0
br i1 %46, label %51, label %47
47: ; preds = %38
%48 = call i32 @printf(ptr noundef @.str.2)
%49 = load ptr, ptr %9, align 8
%50 = call i32 @free(ptr noundef %49)
store ptr null, ptr %4, align 8
br label %136
51: ; preds = %38
%52 = load ptr, ptr %9, align 8
%53 = load i32, ptr %10, align 4
%54 = mul nsw i32 %53, 256
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i8, ptr %52, i64 %55
%57 = call i32 @strlen(ptr noundef %56)
store i32 %57, ptr %11, align 4
%58 = load i32, ptr %11, align 4
%59 = load ptr, ptr %7, align 8
%60 = load i32, ptr %59, align 4
%61 = icmp sgt i32 %58, %60
br i1 %61, label %62, label %65
62: ; preds = %51
%63 = load i32, ptr %11, align 4
%64 = load ptr, ptr %7, align 8
store i32 %63, ptr %64, align 4
br label %65
65: ; preds = %62, %51
%66 = load ptr, ptr %9, align 8
%67 = load i32, ptr %10, align 4
%68 = mul nsw i32 %67, 256
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds i8, ptr %66, i64 %69
%71 = call ptr @strchr(ptr noundef %70, i8 noundef signext 10)
store ptr %71, ptr %12, align 8
%72 = load ptr, ptr %12, align 8
%73 = icmp ne ptr %72, null
br i1 %73, label %74, label %76
74: ; preds = %65
%75 = load ptr, ptr %12, align 8
store i8 0, ptr %75, align 1
br label %76
76: ; preds = %74, %65
br label %77
77: ; preds = %76
%78 = load i32, ptr %10, align 4
%79 = add nsw i32 %78, 1
store i32 %79, ptr %10, align 4
%80 = load i32, ptr %10, align 4
%81 = load ptr, ptr %6, align 8
%82 = load i32, ptr %81, align 4
%83 = icmp slt i32 %80, %82
br i1 %83, label %38, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %77
br label %84
84: ; preds = %._crit_edge, %33
%85 = load ptr, ptr %6, align 8
%86 = load i32, ptr %85, align 4
%87 = load ptr, ptr %7, align 8
%88 = load i32, ptr %87, align 4
%89 = mul nsw i32 %86, %88
%90 = load ptr, ptr %6, align 8
%91 = load i32, ptr %90, align 4
%92 = add nsw i32 %89, %91
%93 = sext i32 %92 to i64
%94 = mul i64 %93, 1
%95 = trunc i64 %94 to i32
%96 = call ptr @malloc(i32 noundef %95)
store ptr %96, ptr %13, align 8
%97 = load ptr, ptr %13, align 8
%98 = icmp ne ptr %97, null
br i1 %98, label %103, label %99
99: ; preds = %84
%100 = call i32 @printf(ptr noundef @.str.3)
%101 = load ptr, ptr %9, align 8
%102 = call i32 @free(ptr noundef %101)
store ptr null, ptr %4, align 8
br label %136
103: ; preds = %84
store i32 0, ptr %14, align 4
%104 = load i32, ptr %14, align 4
%105 = load ptr, ptr %6, align 8
%106 = load i32, ptr %105, align 4
%107 = icmp slt i32 %104, %106
br i1 %107, label %.lr.ph2, label %132
.lr.ph2: ; preds = %103
br label %108
108: ; preds = %.lr.ph2, %125
%109 = load ptr, ptr %13, align 8
%110 = load i32, ptr %14, align 4
%111 = load ptr, ptr %7, align 8
%112 = load i32, ptr %111, align 4
%113 = mul nsw i32 %110, %112
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds i8, ptr %109, i64 %114
%116 = load ptr, ptr %9, align 8
%117 = load i32, ptr %14, align 4
%118 = mul nsw i32 %117, 256
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds i8, ptr %116, i64 %119
%121 = load ptr, ptr %7, align 8
%122 = load i32, ptr %121, align 4
%123 = add nsw i32 %122, 1
%124 = call i32 @memcpy(ptr noundef %115, ptr noundef %120, i32 noundef %123)
br label %125
125: ; preds = %108
%126 = load i32, ptr %14, align 4
%127 = add nsw i32 %126, 1
store i32 %127, ptr %14, align 4
%128 = load i32, ptr %14, align 4
%129 = load ptr, ptr %6, align 8
%130 = load i32, ptr %129, align 4
%131 = icmp slt i32 %128, %130
br i1 %131, label %108, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %125
br label %132
132: ; preds = %._crit_edge3, %103
%133 = load ptr, ptr %9, align 8
%134 = call i32 @free(ptr noundef %133)
%135 = load ptr, ptr %13, align 8
store ptr %135, ptr %4, align 8
br label %136
136: ; preds = %132, %99, %47, %31, %19
%137 = load ptr, ptr %4, align 8
ret ptr %137
}
declare i32 @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
declare ptr @calloc(i32 noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpiukh5tbt.c'
source_filename = "/tmp/tmpiukh5tbt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"%u %u %u %u\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = load i32, ptr %3, align 4
%8 = load i32, ptr %4, align 4
%9 = and i32 %8, 15
%10 = shl i32 8, %9
%11 = udiv i32 %7, %10
%12 = load i32, ptr %3, align 4
%13 = load i32, ptr %4, align 4
%14 = and i32 %13, 15
%15 = shl i32 8, %14
%16 = urem i32 %12, %15
%17 = call i32 @printf(ptr noundef @.str, i32 noundef %5, i32 noundef %6, i32 noundef %11, i32 noundef %16)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpiukh5tbt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"%u %u %u %u\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = load i32, ptr %3, align 4
%8 = load i32, ptr %4, align 4
%9 = and i32 %8, 15
%10 = shl i32 8, %9
%11 = udiv i32 %7, %10
%12 = load i32, ptr %3, align 4
%13 = load i32, ptr %4, align 4
%14 = and i32 %13, 15
%15 = shl i32 8, %14
%16 = urem i32 %12, %15
%17 = call i32 @printf(ptr noundef @.str, i32 noundef %5, i32 noundef %6, i32 noundef %11, i32 noundef %16)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpcqw7lno0.c'
source_filename = "/tmp/tmpcqw7lno0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @db_mkdir(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca %struct.stat, align 4
%5 = alloca [1024 x i8], align 16
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr null, ptr %6, align 8
store i32 -1, ptr %7, align 4
store i32 -1, ptr %8, align 4
%9 = load ptr, ptr %3, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %11, label %81
11: ; preds = %1
%12 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%13 = load ptr, ptr %3, align 8
%14 = call i32 @strcpy(ptr noundef %12, ptr noundef %13)
%15 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
store ptr %15, ptr %6, align 8
br label %16
16: ; preds = %77, %11
%17 = load ptr, ptr %6, align 8
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = icmp ne i32 %19, 0
br i1 %20, label %21, label %80
21: ; preds = %16
%22 = load ptr, ptr %6, align 8
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = icmp eq i32 %24, 47
br i1 %25, label %26, label %77
26: ; preds = %21
%27 = load i32, ptr %7, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %7, align 4
br label %29
29: ; preds = %47, %26
%30 = load ptr, ptr %6, align 8
%31 = load i8, ptr %30, align 1
%32 = sext i8 %31 to i32
%33 = icmp ne i32 %32, 0
br i1 %33, label %34, label %45
34: ; preds = %29
%35 = load ptr, ptr %6, align 8
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = icmp eq i32 %37, 47
br i1 %38, label %39, label %45
39: ; preds = %34
%40 = load ptr, ptr %6, align 8
%41 = getelementptr inbounds i8, ptr %40, i64 1
%42 = load i8, ptr %41, align 1
%43 = sext i8 %42 to i32
%44 = icmp eq i32 %43, 47
br label %45
45: ; preds = %39, %34, %29
%46 = phi i1 [ false, %34 ], [ false, %29 ], [ %44, %39 ]
br i1 %46, label %47, label %50
47: ; preds = %45
%48 = load ptr, ptr %6, align 8
%49 = getelementptr inbounds i8, ptr %48, i32 1
store ptr %49, ptr %6, align 8
br label %29, !llvm.loop !6
50: ; preds = %45
%51 = load i32, ptr %7, align 4
%52 = icmp sgt i32 %51, 0
br i1 %52, label %53, label %76
53: ; preds = %50
%54 = load ptr, ptr %6, align 8
store i8 0, ptr %54, align 1
%55 = call i32 @memset(ptr noundef %4, i32 noundef 0, i32 noundef 4)
%56 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%57 = call i32 @stat(ptr noundef %56, ptr noundef %4)
store i32 %57, ptr %8, align 4
%58 = load i32, ptr %8, align 4
%59 = icmp eq i32 %58, 0
br i1 %59, label %60, label %66
60: ; preds = %53
%61 = getelementptr inbounds %struct.stat, ptr %4, i32 0, i32 0
%62 = load i32, ptr %61, align 4
%63 = call i32 @S_ISDIR(i32 noundef %62)
%64 = icmp ne i32 %63, 0
br i1 %64, label %66, label %65
65: ; preds = %60
store i32 -1, ptr %2, align 4
br label %82
66: ; preds = %60, %53
%67 = load i32, ptr %8, align 4
%68 = icmp ne i32 %67, 0
br i1 %68, label %69, label %74
69: ; preds = %66
%70 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%71 = call i64 @mkdir(ptr noundef %70, i32 noundef 493)
%72 = icmp ne i64 %71, 0
br i1 %72, label %73, label %74
73: ; preds = %69
store i32 -1, ptr %2, align 4
br label %82
74: ; preds = %69, %66
%75 = load ptr, ptr %6, align 8
store i8 47, ptr %75, align 1
br label %76
76: ; preds = %74, %50
br label %77
77: ; preds = %76, %21
%78 = load ptr, ptr %6, align 8
%79 = getelementptr inbounds i8, ptr %78, i32 1
store ptr %79, ptr %6, align 8
br label %16, !llvm.loop !8
80: ; preds = %16
store i32 0, ptr %2, align 4
br label %82
81: ; preds = %1
store i32 -1, ptr %2, align 4
br label %82
82: ; preds = %81, %80, %73, %65
%83 = load i32, ptr %2, align 4
ret i32 %83
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @stat(ptr noundef, ptr noundef) #1
declare i32 @S_ISDIR(i32 noundef) #1
declare i64 @mkdir(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/tmpcqw7lno0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @db_mkdir(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca %struct.stat, align 4
%5 = alloca [1024 x i8], align 16
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr null, ptr %6, align 8
store i32 -1, ptr %7, align 4
store i32 -1, ptr %8, align 4
%9 = load ptr, ptr %3, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %11, label %84
11: ; preds = %1
%12 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%13 = load ptr, ptr %3, align 8
%14 = call i32 @strcpy(ptr noundef %12, ptr noundef %13)
%15 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
store ptr %15, ptr %6, align 8
%16 = load ptr, ptr %6, align 8
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = icmp ne i32 %18, 0
br i1 %19, label %.lr.ph, label %83
.lr.ph: ; preds = %11
br label %20
20: ; preds = %.lr.ph, %76
%21 = load ptr, ptr %6, align 8
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %23, 47
br i1 %24, label %25, label %76
25: ; preds = %20
%26 = load i32, ptr %7, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %7, align 4
br label %28
28: ; preds = %46, %25
%29 = load ptr, ptr %6, align 8
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
%32 = icmp ne i32 %31, 0
br i1 %32, label %33, label %44
33: ; preds = %28
%34 = load ptr, ptr %6, align 8
%35 = load i8, ptr %34, align 1
%36 = sext i8 %35 to i32
%37 = icmp eq i32 %36, 47
br i1 %37, label %38, label %44
38: ; preds = %33
%39 = load ptr, ptr %6, align 8
%40 = getelementptr inbounds i8, ptr %39, i64 1
%41 = load i8, ptr %40, align 1
%42 = sext i8 %41 to i32
%43 = icmp eq i32 %42, 47
br label %44
44: ; preds = %38, %33, %28
%45 = phi i1 [ false, %33 ], [ false, %28 ], [ %43, %38 ]
br i1 %45, label %46, label %49
46: ; preds = %44
%47 = load ptr, ptr %6, align 8
%48 = getelementptr inbounds i8, ptr %47, i32 1
store ptr %48, ptr %6, align 8
br label %28, !llvm.loop !6
49: ; preds = %44
%50 = load i32, ptr %7, align 4
%51 = icmp sgt i32 %50, 0
br i1 %51, label %52, label %75
52: ; preds = %49
%53 = load ptr, ptr %6, align 8
store i8 0, ptr %53, align 1
%54 = call i32 @memset(ptr noundef %4, i32 noundef 0, i32 noundef 4)
%55 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%56 = call i32 @stat(ptr noundef %55, ptr noundef %4)
store i32 %56, ptr %8, align 4
%57 = load i32, ptr %8, align 4
%58 = icmp eq i32 %57, 0
br i1 %58, label %59, label %65
59: ; preds = %52
%60 = getelementptr inbounds %struct.stat, ptr %4, i32 0, i32 0
%61 = load i32, ptr %60, align 4
%62 = call i32 @S_ISDIR(i32 noundef %61)
%63 = icmp ne i32 %62, 0
br i1 %63, label %65, label %64
64: ; preds = %59
store i32 -1, ptr %2, align 4
br label %85
65: ; preds = %59, %52
%66 = load i32, ptr %8, align 4
%67 = icmp ne i32 %66, 0
br i1 %67, label %68, label %73
68: ; preds = %65
%69 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%70 = call i64 @mkdir(ptr noundef %69, i32 noundef 493)
%71 = icmp ne i64 %70, 0
br i1 %71, label %72, label %73
72: ; preds = %68
store i32 -1, ptr %2, align 4
br label %85
73: ; preds = %68, %65
%74 = load ptr, ptr %6, align 8
store i8 47, ptr %74, align 1
br label %75
75: ; preds = %73, %49
br label %76
76: ; preds = %75, %20
%77 = load ptr, ptr %6, align 8
%78 = getelementptr inbounds i8, ptr %77, i32 1
store ptr %78, ptr %6, align 8
%79 = load ptr, ptr %6, align 8
%80 = load i8, ptr %79, align 1
%81 = sext i8 %80 to i32
%82 = icmp ne i32 %81, 0
br i1 %82, label %20, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %76
br label %83
83: ; preds = %._crit_edge, %11
store i32 0, ptr %2, align 4
br label %85
84: ; preds = %1
store i32 -1, ptr %2, align 4
br label %85
85: ; preds = %84, %83, %72, %64
%86 = load i32, ptr %2, align 4
ret i32 %86
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @stat(ptr noundef, ptr noundef) #1
declare i32 @S_ISDIR(i32 noundef) #1
declare i64 @mkdir(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/tmpe19sapjo.c'
source_filename = "/tmp/tmpe19sapjo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"ldrb\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"orr\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"loadw\0A\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"mov\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"strb\00", align 1
@.str.5 = private unnamed_addr constant [11 x i8] c"storw.imm\0A\00", align 1
@.str.6 = private unnamed_addr constant [11 x i8] c"storw.reg\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @armhli(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call ptr @prv(ptr noundef %5)
store ptr %6, ptr %4, align 8
%7 = load ptr, ptr %4, align 8
%8 = call ptr @prv(ptr noundef %7)
store ptr %8, ptr %3, align 8
%9 = load ptr, ptr %3, align 8
%10 = call i64 @opeq(ptr noundef %9, ptr noundef @.str, i32 noundef 0, i32 noundef 0, i32 noundef 0)
%11 = icmp ne i64 %10, 0
br i1 %11, label %12, label %27
12: ; preds = %1
%13 = load ptr, ptr %4, align 8
%14 = call i64 @opeq(ptr noundef %13, ptr noundef @.str, i32 noundef 0, i32 noundef 0, i32 noundef 0)
%15 = icmp ne i64 %14, 0
br i1 %15, label %16, label %27
16: ; preds = %12
%17 = load ptr, ptr %2, align 8
%18 = call i64 @opeq(ptr noundef %17, ptr noundef @.str.1, i32 noundef 0, i32 noundef 0, i32 noundef 0)
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %27
20: ; preds = %16
%21 = load ptr, ptr %3, align 8
%22 = load ptr, ptr %4, align 8
%23 = call i64 @deltaOff(ptr noundef %21, ptr noundef %22, i32 noundef 1)
%24 = icmp ne i64 %23, 0
br i1 %24, label %25, label %27
25: ; preds = %20
%26 = call i32 @printf(ptr noundef @.str.2)
br label %27
27: ; preds = %25, %20, %16, %12, %1
%28 = load ptr, ptr %3, align 8
%29 = call i64 @opeq(ptr noundef %28, ptr noundef @.str.3, i32 noundef 0, i32 noundef 0, i32 noundef 0)
%30 = icmp ne i64 %29, 0
br i1 %30, label %31, label %46
31: ; preds = %27
%32 = load ptr, ptr %4, align 8
%33 = call i64 @opeq(ptr noundef %32, ptr noundef @.str.4, i32 noundef 0, i32 noundef 0, i32 noundef 0)
%34 = icmp ne i64 %33, 0
br i1 %34, label %35, label %46
35: ; preds = %31
%36 = load ptr, ptr %2, align 8
%37 = call i64 @opeq(ptr noundef %36, ptr noundef @.str.4, i32 noundef 0, i32 noundef 0, i32 noundef 0)
%38 = icmp ne i64 %37, 0
br i1 %38, label %39, label %46
39: ; preds = %35
%40 = load ptr, ptr %4, align 8
%41 = load ptr, ptr %2, align 8
%42 = call i64 @deltaOff(ptr noundef %40, ptr noundef %41, i32 noundef 1)
%43 = icmp ne i64 %42, 0
br i1 %43, label %44, label %46
44: ; preds = %39
%45 = call i32 @printf(ptr noundef @.str.5)
br label %46
46: ; preds = %44, %39, %35, %31, %27
%47 = load ptr, ptr %3, align 8
%48 = call i64 @opeq(ptr noundef %47, ptr noundef @.str.4, i32 noundef 0, i32 noundef 0, i32 noundef 0)
%49 = icmp ne i64 %48, 0
br i1 %49, label %50, label %65
50: ; preds = %46
%51 = load ptr, ptr %4, align 8
%52 = call i64 @opeq(ptr noundef %51, ptr noundef @.str.3, i32 noundef 0, i32 noundef 0, i32 noundef 0)
%53 = icmp ne i64 %52, 0
br i1 %53, label %54, label %65
54: ; preds = %50
%55 = load ptr, ptr %2, align 8
%56 = call i64 @opeq(ptr noundef %55, ptr noundef @.str.4, i32 noundef 0, i32 noundef 0, i32 noundef 0)
%57 = icmp ne i64 %56, 0
br i1 %57, label %58, label %65
58: ; preds = %54
%59 = load ptr, ptr %3, align 8
%60 = load ptr, ptr %2, align 8
%61 = call i64 @deltaOff(ptr noundef %59, ptr noundef %60, i32 noundef 1)
%62 = icmp ne i64 %61, 0
br i1 %62, label %63, label %65
63: ; preds = %58
%64 = call i32 @printf(ptr noundef @.str.6)
br label %65
65: ; preds = %63, %58, %54, %50, %46
ret void
}
declare ptr @prv(ptr noundef) #1
declare i64 @opeq(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i64 @deltaOff(ptr noundef, ptr noundef, i32 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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpe19sapjo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"ldrb\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"orr\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"loadw\0A\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"mov\00", align 1
@.str.4 = private unnamed_addr constant [5 x i8] c"strb\00", align 1
@.str.5 = private unnamed_addr constant [11 x i8] c"storw.imm\0A\00", align 1
@.str.6 = private unnamed_addr constant [11 x i8] c"storw.reg\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @armhli(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call ptr @prv(ptr noundef %5)
store ptr %6, ptr %4, align 8
%7 = load ptr, ptr %4, align 8
%8 = call ptr @prv(ptr noundef %7)
store ptr %8, ptr %3, align 8
%9 = load ptr, ptr %3, align 8
%10 = call i64 @opeq(ptr noundef %9, ptr noundef @.str, i32 noundef 0, i32 noundef 0, i32 noundef 0)
%11 = icmp ne i64 %10, 0
br i1 %11, label %12, label %27
12: ; preds = %1
%13 = load ptr, ptr %4, align 8
%14 = call i64 @opeq(ptr noundef %13, ptr noundef @.str, i32 noundef 0, i32 noundef 0, i32 noundef 0)
%15 = icmp ne i64 %14, 0
br i1 %15, label %16, label %27
16: ; preds = %12
%17 = load ptr, ptr %2, align 8
%18 = call i64 @opeq(ptr noundef %17, ptr noundef @.str.1, i32 noundef 0, i32 noundef 0, i32 noundef 0)
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %27
20: ; preds = %16
%21 = load ptr, ptr %3, align 8
%22 = load ptr, ptr %4, align 8
%23 = call i64 @deltaOff(ptr noundef %21, ptr noundef %22, i32 noundef 1)
%24 = icmp ne i64 %23, 0
br i1 %24, label %25, label %27
25: ; preds = %20
%26 = call i32 @printf(ptr noundef @.str.2)
br label %27
27: ; preds = %25, %20, %16, %12, %1
%28 = load ptr, ptr %3, align 8
%29 = call i64 @opeq(ptr noundef %28, ptr noundef @.str.3, i32 noundef 0, i32 noundef 0, i32 noundef 0)
%30 = icmp ne i64 %29, 0
br i1 %30, label %31, label %46
31: ; preds = %27
%32 = load ptr, ptr %4, align 8
%33 = call i64 @opeq(ptr noundef %32, ptr noundef @.str.4, i32 noundef 0, i32 noundef 0, i32 noundef 0)
%34 = icmp ne i64 %33, 0
br i1 %34, label %35, label %46
35: ; preds = %31
%36 = load ptr, ptr %2, align 8
%37 = call i64 @opeq(ptr noundef %36, ptr noundef @.str.4, i32 noundef 0, i32 noundef 0, i32 noundef 0)
%38 = icmp ne i64 %37, 0
br i1 %38, label %39, label %46
39: ; preds = %35
%40 = load ptr, ptr %4, align 8
%41 = load ptr, ptr %2, align 8
%42 = call i64 @deltaOff(ptr noundef %40, ptr noundef %41, i32 noundef 1)
%43 = icmp ne i64 %42, 0
br i1 %43, label %44, label %46
44: ; preds = %39
%45 = call i32 @printf(ptr noundef @.str.5)
br label %46
46: ; preds = %44, %39, %35, %31, %27
%47 = load ptr, ptr %3, align 8
%48 = call i64 @opeq(ptr noundef %47, ptr noundef @.str.4, i32 noundef 0, i32 noundef 0, i32 noundef 0)
%49 = icmp ne i64 %48, 0
br i1 %49, label %50, label %65
50: ; preds = %46
%51 = load ptr, ptr %4, align 8
%52 = call i64 @opeq(ptr noundef %51, ptr noundef @.str.3, i32 noundef 0, i32 noundef 0, i32 noundef 0)
%53 = icmp ne i64 %52, 0
br i1 %53, label %54, label %65
54: ; preds = %50
%55 = load ptr, ptr %2, align 8
%56 = call i64 @opeq(ptr noundef %55, ptr noundef @.str.4, i32 noundef 0, i32 noundef 0, i32 noundef 0)
%57 = icmp ne i64 %56, 0
br i1 %57, label %58, label %65
58: ; preds = %54
%59 = load ptr, ptr %3, align 8
%60 = load ptr, ptr %2, align 8
%61 = call i64 @deltaOff(ptr noundef %59, ptr noundef %60, i32 noundef 1)
%62 = icmp ne i64 %61, 0
br i1 %62, label %63, label %65
63: ; preds = %58
%64 = call i32 @printf(ptr noundef @.str.6)
br label %65
65: ; preds = %63, %58, %54, %50, %46
ret void
}
declare ptr @prv(ptr noundef) #1
declare i64 @opeq(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i64 @deltaOff(ptr noundef, ptr noundef, i32 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"}
|
; ModuleID = '/tmp/tmp0v5mlyr9.c'
source_filename = "/tmp/tmp0v5mlyr9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @variance(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
store double 0.000000e+00, ptr %8, align 8
store double 0.000000e+00, ptr %9, align 8
%11 = load ptr, ptr %4, align 8
%12 = load i32, ptr %6, align 4
%13 = load i32, ptr %5, align 4
%14 = sub nsw i32 %12, %13
%15 = add nsw i32 %14, 1
%16 = call double @empiricMean(ptr noundef %11, i32 noundef %15)
store double %16, ptr %10, align 8
%17 = load i32, ptr %5, align 4
store i32 %17, ptr %7, align 4
br label %18
18: ; preds = %48, %3
%19 = load i32, ptr %7, align 4
%20 = load i32, ptr %6, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %22, label %51
22: ; preds = %18
%23 = load i32, ptr %7, align 4
%24 = sitofp i32 %23 to double
%25 = load double, ptr %10, align 8
%26 = fsub double %24, %25
%27 = load i32, ptr %7, align 4
%28 = sitofp i32 %27 to double
%29 = load double, ptr %10, align 8
%30 = fsub double %28, %29
%31 = fmul double %26, %30
%32 = load ptr, ptr %4, align 8
%33 = load i32, ptr %7, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i32, ptr %32, i64 %34
%36 = load i32, ptr %35, align 4
%37 = sitofp i32 %36 to double
%38 = load double, ptr %8, align 8
%39 = call double @llvm.fmuladd.f64(double %31, double %37, double %38)
store double %39, ptr %8, align 8
%40 = load ptr, ptr %4, align 8
%41 = load i32, ptr %7, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i32, ptr %40, i64 %42
%44 = load i32, ptr %43, align 4
%45 = sitofp i32 %44 to double
%46 = load double, ptr %9, align 8
%47 = fadd double %46, %45
store double %47, ptr %9, align 8
br label %48
48: ; preds = %22
%49 = load i32, ptr %7, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %7, align 4
br label %18, !llvm.loop !6
51: ; preds = %18
%52 = load double, ptr %8, align 8
%53 = load double, ptr %9, align 8
%54 = fdiv double %52, %53
store double %54, ptr %8, align 8
%55 = load double, ptr %8, align 8
ret double %55
}
declare double @empiricMean(ptr noundef, i32 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0v5mlyr9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @variance(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
store double 0.000000e+00, ptr %8, align 8
store double 0.000000e+00, ptr %9, align 8
%11 = load ptr, ptr %4, align 8
%12 = load i32, ptr %6, align 4
%13 = load i32, ptr %5, align 4
%14 = sub nsw i32 %12, %13
%15 = add nsw i32 %14, 1
%16 = call double @empiricMean(ptr noundef %11, i32 noundef %15)
store double %16, ptr %10, align 8
%17 = load i32, ptr %5, align 4
store i32 %17, ptr %7, align 4
%18 = load i32, ptr %7, align 4
%19 = load i32, ptr %6, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %.lr.ph, label %53
.lr.ph: ; preds = %3
br label %21
21: ; preds = %.lr.ph, %47
%22 = load i32, ptr %7, align 4
%23 = sitofp i32 %22 to double
%24 = load double, ptr %10, align 8
%25 = fsub double %23, %24
%26 = load i32, ptr %7, align 4
%27 = sitofp i32 %26 to double
%28 = load double, ptr %10, align 8
%29 = fsub double %27, %28
%30 = fmul double %25, %29
%31 = load ptr, ptr %4, align 8
%32 = load i32, ptr %7, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i32, ptr %31, i64 %33
%35 = load i32, ptr %34, align 4
%36 = sitofp i32 %35 to double
%37 = load double, ptr %8, align 8
%38 = call double @llvm.fmuladd.f64(double %30, double %36, double %37)
store double %38, ptr %8, align 8
%39 = load ptr, ptr %4, align 8
%40 = load i32, ptr %7, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i32, ptr %39, i64 %41
%43 = load i32, ptr %42, align 4
%44 = sitofp i32 %43 to double
%45 = load double, ptr %9, align 8
%46 = fadd double %45, %44
store double %46, ptr %9, align 8
br label %47
47: ; preds = %21
%48 = load i32, ptr %7, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %7, align 4
%50 = load i32, ptr %7, align 4
%51 = load i32, ptr %6, align 4
%52 = icmp slt i32 %50, %51
br i1 %52, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %47
br label %53
53: ; preds = %._crit_edge, %3
%54 = load double, ptr %8, align 8
%55 = load double, ptr %9, align 8
%56 = fdiv double %54, %55
store double %56, ptr %8, align 8
%57 = load double, ptr %8, align 8
ret double %57
}
declare double @empiricMean(ptr noundef, i32 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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp9evawqdt.c'
source_filename = "/tmp/tmp9evawqdt.c"
target datalayout = "e-m:e-p270: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/tmp9evawqdt.c"
target datalayout = "e-m:e-p270: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/tmpsch7ovf0.c'
source_filename = "/tmp/tmpsch7ovf0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [329 x i8] c"\0ABagels\0A------\0AIn the game of Bagels the computer chooses 3 digits and you have 20\0Achances to guess it.\0AAfter every guess the computer will give you hints to tell you how\0Ayou're doing:\0APico\09- You have a correct digit in the wrong place.\0AFermi\09- You have a correct digit in the right place.\0ABagels\09- You have no correct digits.\0A\00", align 1
@RAND_MAX = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [13 x i8] c"\0AGuess %d : \00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.3 = private unnamed_addr constant [35 x i8] c"\0AYou need to input 3 digits only.\0A\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"\0AWhat?\0A\00", align 1
@.str.5 = private unnamed_addr constant [136 x i8] c"\0ABy the way, all digits of the digits you are trying to\0Aguess are unique so no duplicates are allowed in your guess\0Aeither. Try again.\0A\00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.7 = private unnamed_addr constant [7 x i8] c"fermi\0A\00", align 1
@.str.8 = private unnamed_addr constant [6 x i8] c"pico\0A\00", align 1
@.str.9 = private unnamed_addr constant [8 x i8] c"bagels\0A\00", align 1
@.str.10 = private unnamed_addr constant [13 x i8] c"You got it!\0A\00", align 1
@.str.11 = private unnamed_addr constant [25 x i8] c"You ran out of guesses.\0A\00", align 1
@.str.12 = private unnamed_addr constant [48 x i8] c"The number you were trying to guess was %d%d%d\0A\00", align 1
@.str.13 = private unnamed_addr constant [35 x i8] c"\0ADo you want to play again? (y/n) \00", align 1
@.str.14 = private unnamed_addr constant [30 x i8] c"\0AYou won %d out of %d games.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [3 x i8], align 1
%3 = alloca [3 x i8], align 1
%4 = alloca [6 x i8], align 1
%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 float, align 4
%12 = alloca [25 x i8], align 16
%13 = alloca i8, align 1
store i32 0, ptr %1, align 4
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%15 = getelementptr inbounds [25 x i8], ptr %12, i64 0, i64 0
store i8 121, ptr %15, align 16
store i32 0, ptr %10, align 4
store i32 0, ptr %9, align 4
%16 = load i32, ptr @RAND_MAX, align 4
%17 = add nsw i32 %16, 1
%18 = sdiv i32 %17, 10
%19 = sitofp i32 %18 to float
store float %19, ptr %11, align 4
%20 = call i32 @time(ptr noundef null)
%21 = call i32 @srand(i32 noundef %20)
br label %22
22: ; preds = %327, %0
%23 = load i32, ptr %10, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %10, align 4
store i32 1, ptr %8, align 4
%25 = call float (...) @rand()
%26 = load float, ptr %11, align 4
%27 = fdiv float %25, %26
%28 = fptosi float %27 to i32
%29 = trunc i32 %28 to i8
%30 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 0
store i8 %29, ptr %30, align 1
br label %31
31: ; preds = %38, %22
%32 = call float (...) @rand()
%33 = load float, ptr %11, align 4
%34 = fdiv float %32, %33
%35 = fptosi float %34 to i32
%36 = trunc i32 %35 to i8
%37 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 1
store i8 %36, ptr %37, align 1
br label %38
38: ; preds = %31
%39 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 1
%40 = load i8, ptr %39, align 1
%41 = sext i8 %40 to i32
%42 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 0
%43 = load i8, ptr %42, align 1
%44 = sext i8 %43 to i32
%45 = icmp eq i32 %41, %44
br i1 %45, label %31, label %46, !llvm.loop !6
46: ; preds = %38
br label %47
47: ; preds = %70, %46
%48 = call float (...) @rand()
%49 = load float, ptr %11, align 4
%50 = fdiv float %48, %49
%51 = fptosi float %50 to i32
%52 = trunc i32 %51 to i8
%53 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 2
store i8 %52, ptr %53, align 1
br label %54
54: ; preds = %47
%55 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 2
%56 = load i8, ptr %55, align 1
%57 = sext i8 %56 to i32
%58 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 0
%59 = load i8, ptr %58, align 1
%60 = sext i8 %59 to i32
%61 = icmp eq i32 %57, %60
br i1 %61, label %70, label %62
62: ; preds = %54
%63 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 2
%64 = load i8, ptr %63, align 1
%65 = sext i8 %64 to i32
%66 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 1
%67 = load i8, ptr %66, align 1
%68 = sext i8 %67 to i32
%69 = icmp eq i32 %65, %68
br label %70
70: ; preds = %62, %54
%71 = phi i1 [ true, %54 ], [ %69, %62 ]
br i1 %71, label %47, label %72, !llvm.loop !8
72: ; preds = %70
br label %73
73: ; preds = %292, %72
br label %74
74: ; preds = %145, %73
store i8 1, ptr %13, align 1
%75 = load i32, ptr %8, align 4
%76 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %75)
%77 = getelementptr inbounds [6 x i8], ptr %4, i64 0, i64 0
%78 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %77)
%79 = getelementptr inbounds [6 x i8], ptr %4, i64 0, i64 0
%80 = call i32 @strlen(ptr noundef %79)
%81 = icmp ne i32 %80, 3
br i1 %81, label %82, label %84
82: ; preds = %74
%83 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i8 0, ptr %13, align 1
br label %84
84: ; preds = %82, %74
store i32 0, ptr %5, align 4
br label %85
85: ; preds = %115, %84
%86 = load i32, ptr %5, align 4
%87 = icmp slt i32 %86, 3
br i1 %87, label %88, label %118
88: ; preds = %85
%89 = load i32, ptr %5, align 4
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds [6 x i8], ptr %4, i64 0, i64 %90
%92 = load i8, ptr %91, align 1
%93 = sext i8 %92 to i32
%94 = sub nsw i32 %93, 48
%95 = trunc i32 %94 to i8
%96 = load i32, ptr %5, align 4
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds [3 x i8], ptr %3, i64 0, i64 %97
store i8 %95, ptr %98, align 1
%99 = load i32, ptr %5, align 4
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds [3 x i8], ptr %3, i64 0, i64 %100
%102 = load i8, ptr %101, align 1
%103 = sext i8 %102 to i32
%104 = icmp slt i32 %103, 0
br i1 %104, label %112, label %105
105: ; preds = %88
%106 = load i32, ptr %5, align 4
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds [3 x i8], ptr %3, i64 0, i64 %107
%109 = load i8, ptr %108, align 1
%110 = sext i8 %109 to i32
%111 = icmp sgt i32 %110, 9
br i1 %111, label %112, label %114
112: ; preds = %105, %88
%113 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i8 0, ptr %13, align 1
br label %114
114: ; preds = %112, %105
br label %115
115: ; preds = %114
%116 = load i32, ptr %5, align 4
%117 = add nsw i32 %116, 1
store i32 %117, ptr %5, align 4
br label %85, !llvm.loop !9
118: ; preds = %85
%119 = getelementptr inbounds [3 x i8], ptr %3, i64 0, i64 0
%120 = load i8, ptr %119, align 1
%121 = sext i8 %120 to i32
%122 = getelementptr inbounds [3 x i8], ptr %3, i64 0, i64 1
%123 = load i8, ptr %122, align 1
%124 = sext i8 %123 to i32
%125 = icmp eq i32 %121, %124
br i1 %125, label %142, label %126
126: ; preds = %118
%127 = getelementptr inbounds [3 x i8], ptr %3, i64 0, i64 1
%128 = load i8, ptr %127, align 1
%129 = sext i8 %128 to i32
%130 = getelementptr inbounds [3 x i8], ptr %3, i64 0, i64 2
%131 = load i8, ptr %130, align 1
%132 = sext i8 %131 to i32
%133 = icmp eq i32 %129, %132
br i1 %133, label %142, label %134
134: ; preds = %126
%135 = getelementptr inbounds [3 x i8], ptr %3, i64 0, i64 0
%136 = load i8, ptr %135, align 1
%137 = sext i8 %136 to i32
%138 = getelementptr inbounds [3 x i8], ptr %3, i64 0, i64 2
%139 = load i8, ptr %138, align 1
%140 = sext i8 %139 to i32
%141 = icmp eq i32 %137, %140
br i1 %141, label %142, label %144
142: ; preds = %134, %126, %118
%143 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
store i8 0, ptr %13, align 1
br label %144
144: ; preds = %142, %134
br label %145
145: ; preds = %144
%146 = load i8, ptr %13, align 1
%147 = icmp ne i8 %146, 0
%148 = xor i1 %147, true
br i1 %148, label %74, label %149, !llvm.loop !10
149: ; preds = %145
%150 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 0
%151 = load i8, ptr %150, align 1
%152 = sext i8 %151 to i32
%153 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 1
%154 = load i8, ptr %153, align 1
%155 = sext i8 %154 to i32
%156 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 2
%157 = load i8, ptr %156, align 1
%158 = sext i8 %157 to i32
%159 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %152, i32 noundef %155, i32 noundef %158)
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %5, align 4
br label %160
160: ; preds = %211, %149
%161 = load i32, ptr %5, align 4
%162 = icmp slt i32 %161, 2
br i1 %162, label %163, label %214
163: ; preds = %160
%164 = load i32, ptr %5, align 4
%165 = sext i32 %164 to i64
%166 = getelementptr inbounds [3 x i8], ptr %3, i64 0, i64 %165
%167 = load i8, ptr %166, align 1
%168 = sext i8 %167 to i32
%169 = load i32, ptr %5, align 4
%170 = add nsw i32 %169, 1
%171 = sext i32 %170 to i64
%172 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 %171
%173 = load i8, ptr %172, align 1
%174 = sext i8 %173 to i32
%175 = icmp eq i32 %168, %174
br i1 %175, label %176, label %179
176: ; preds = %163
%177 = load i32, ptr %6, align 4
%178 = add nsw i32 %177, 1
store i32 %178, ptr %6, align 4
br label %179
179: ; preds = %176, %163
%180 = load i32, ptr %5, align 4
%181 = add nsw i32 %180, 1
%182 = sext i32 %181 to i64
%183 = getelementptr inbounds [3 x i8], ptr %3, i64 0, i64 %182
%184 = load i8, ptr %183, align 1
%185 = sext i8 %184 to i32
%186 = load i32, ptr %5, align 4
%187 = sext i32 %186 to i64
%188 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 %187
%189 = load i8, ptr %188, align 1
%190 = sext i8 %189 to i32
%191 = icmp eq i32 %185, %190
br i1 %191, label %192, label %195
192: ; preds = %179
%193 = load i32, ptr %6, align 4
%194 = add nsw i32 %193, 1
store i32 %194, ptr %6, align 4
br label %195
195: ; preds = %192, %179
%196 = load i32, ptr %5, align 4
%197 = sext i32 %196 to i64
%198 = getelementptr inbounds [3 x i8], ptr %3, i64 0, i64 %197
%199 = load i8, ptr %198, align 1
%200 = sext i8 %199 to i32
%201 = load i32, ptr %5, align 4
%202 = sext i32 %201 to i64
%203 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 %202
%204 = load i8, ptr %203, align 1
%205 = sext i8 %204 to i32
%206 = icmp eq i32 %200, %205
br i1 %206, label %207, label %210
207: ; preds = %195
%208 = load i32, ptr %7, align 4
%209 = add nsw i32 %208, 1
store i32 %209, ptr %7, align 4
br label %210
210: ; preds = %207, %195
br label %211
211: ; preds = %210
%212 = load i32, ptr %5, align 4
%213 = add nsw i32 %212, 1
store i32 %213, ptr %5, align 4
br label %160, !llvm.loop !11
214: ; preds = %160
%215 = getelementptr inbounds [3 x i8], ptr %3, i64 0, i64 0
%216 = load i8, ptr %215, align 1
%217 = sext i8 %216 to i32
%218 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 2
%219 = load i8, ptr %218, align 1
%220 = sext i8 %219 to i32
%221 = icmp eq i32 %217, %220
br i1 %221, label %222, label %225
222: ; preds = %214
%223 = load i32, ptr %6, align 4
%224 = add nsw i32 %223, 1
store i32 %224, ptr %6, align 4
br label %225
225: ; preds = %222, %214
%226 = getelementptr inbounds [3 x i8], ptr %3, i64 0, i64 2
%227 = load i8, ptr %226, align 1
%228 = sext i8 %227 to i32
%229 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 0
%230 = load i8, ptr %229, align 1
%231 = sext i8 %230 to i32
%232 = icmp eq i32 %228, %231
br i1 %232, label %233, label %236
233: ; preds = %225
%234 = load i32, ptr %6, align 4
%235 = add nsw i32 %234, 1
store i32 %235, ptr %6, align 4
br label %236
236: ; preds = %233, %225
%237 = getelementptr inbounds [3 x i8], ptr %3, i64 0, i64 2
%238 = load i8, ptr %237, align 1
%239 = sext i8 %238 to i32
%240 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 2
%241 = load i8, ptr %240, align 1
%242 = sext i8 %241 to i32
%243 = icmp eq i32 %239, %242
br i1 %243, label %244, label %247
244: ; preds = %236
%245 = load i32, ptr %7, align 4
%246 = add nsw i32 %245, 1
store i32 %246, ptr %7, align 4
br label %247
247: ; preds = %244, %236
%248 = load i32, ptr %7, align 4
%249 = icmp ne i32 %248, 0
br i1 %249, label %250, label %261
250: ; preds = %247
store i32 1, ptr %5, align 4
br label %251
251: ; preds = %257, %250
%252 = load i32, ptr %5, align 4
%253 = load i32, ptr %7, align 4
%254 = icmp sle i32 %252, %253
br i1 %254, label %255, label %260
255: ; preds = %251
%256 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %257
257: ; preds = %255
%258 = load i32, ptr %5, align 4
%259 = add nsw i32 %258, 1
store i32 %259, ptr %5, align 4
br label %251, !llvm.loop !12
260: ; preds = %251
br label %261
261: ; preds = %260, %247
%262 = load i32, ptr %6, align 4
%263 = icmp ne i32 %262, 0
br i1 %263, label %264, label %275
264: ; preds = %261
store i32 1, ptr %5, align 4
br label %265
265: ; preds = %271, %264
%266 = load i32, ptr %5, align 4
%267 = load i32, ptr %6, align 4
%268 = icmp sle i32 %266, %267
br i1 %268, label %269, label %274
269: ; preds = %265
%270 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
br label %271
271: ; preds = %269
%272 = load i32, ptr %5, align 4
%273 = add nsw i32 %272, 1
store i32 %273, ptr %5, align 4
br label %265, !llvm.loop !13
274: ; preds = %265
br label %275
275: ; preds = %274, %261
%276 = load i32, ptr %7, align 4
%277 = icmp eq i32 %276, 0
br i1 %277, label %278, label %283
278: ; preds = %275
%279 = load i32, ptr %6, align 4
%280 = icmp eq i32 %279, 0
br i1 %280, label %281, label %283
281: ; preds = %278
%282 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
br label %283
283: ; preds = %281, %278, %275
%284 = load i32, ptr %8, align 4
%285 = add nsw i32 %284, 1
store i32 %285, ptr %8, align 4
br label %286
286: ; preds = %283
%287 = load i32, ptr %8, align 4
%288 = icmp sle i32 %287, 20
br i1 %288, label %289, label %292
289: ; preds = %286
%290 = load i32, ptr %7, align 4
%291 = icmp slt i32 %290, 3
br label %292
292: ; preds = %289, %286
%293 = phi i1 [ false, %286 ], [ %291, %289 ]
br i1 %293, label %73, label %294, !llvm.loop !14
294: ; preds = %292
%295 = load i32, ptr %7, align 4
%296 = icmp eq i32 %295, 3
br i1 %296, label %297, label %301
297: ; preds = %294
%298 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
%299 = load i32, ptr %9, align 4
%300 = add nsw i32 %299, 1
store i32 %300, ptr %9, align 4
br label %313
301: ; preds = %294
%302 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
%303 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 0
%304 = load i8, ptr %303, align 1
%305 = sext i8 %304 to i32
%306 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 1
%307 = load i8, ptr %306, align 1
%308 = sext i8 %307 to i32
%309 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 2
%310 = load i8, ptr %309, align 1
%311 = sext i8 %310 to i32
%312 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %305, i32 noundef %308, i32 noundef %311)
br label %313
313: ; preds = %301, %297
%314 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
%315 = getelementptr inbounds [25 x i8], ptr %12, i64 0, i64 0
%316 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %315)
br label %317
317: ; preds = %313
%318 = getelementptr inbounds [25 x i8], ptr %12, i64 0, i64 0
%319 = load i8, ptr %318, align 16
%320 = sext i8 %319 to i32
%321 = icmp eq i32 %320, 121
br i1 %321, label %327, label %322
322: ; preds = %317
%323 = getelementptr inbounds [25 x i8], ptr %12, i64 0, i64 0
%324 = load i8, ptr %323, align 16
%325 = sext i8 %324 to i32
%326 = icmp eq i32 %325, 89
br label %327
327: ; preds = %322, %317
%328 = phi i1 [ true, %317 ], [ %326, %322 ]
br i1 %328, label %22, label %329, !llvm.loop !15
329: ; preds = %327
%330 = load i32, ptr %9, align 4
%331 = load i32, ptr %10, align 4
%332 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i32 noundef %330, i32 noundef %331)
%333 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare float @rand(...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
!15 = distinct !{!15, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsch7ovf0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [329 x i8] c"\0ABagels\0A------\0AIn the game of Bagels the computer chooses 3 digits and you have 20\0Achances to guess it.\0AAfter every guess the computer will give you hints to tell you how\0Ayou're doing:\0APico\09- You have a correct digit in the wrong place.\0AFermi\09- You have a correct digit in the right place.\0ABagels\09- You have no correct digits.\0A\00", align 1
@RAND_MAX = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [13 x i8] c"\0AGuess %d : \00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.3 = private unnamed_addr constant [35 x i8] c"\0AYou need to input 3 digits only.\0A\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"\0AWhat?\0A\00", align 1
@.str.5 = private unnamed_addr constant [136 x i8] c"\0ABy the way, all digits of the digits you are trying to\0Aguess are unique so no duplicates are allowed in your guess\0Aeither. Try again.\0A\00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.7 = private unnamed_addr constant [7 x i8] c"fermi\0A\00", align 1
@.str.8 = private unnamed_addr constant [6 x i8] c"pico\0A\00", align 1
@.str.9 = private unnamed_addr constant [8 x i8] c"bagels\0A\00", align 1
@.str.10 = private unnamed_addr constant [13 x i8] c"You got it!\0A\00", align 1
@.str.11 = private unnamed_addr constant [25 x i8] c"You ran out of guesses.\0A\00", align 1
@.str.12 = private unnamed_addr constant [48 x i8] c"The number you were trying to guess was %d%d%d\0A\00", align 1
@.str.13 = private unnamed_addr constant [35 x i8] c"\0ADo you want to play again? (y/n) \00", align 1
@.str.14 = private unnamed_addr constant [30 x i8] c"\0AYou won %d out of %d games.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [3 x i8], align 1
%3 = alloca [3 x i8], align 1
%4 = alloca [6 x i8], align 1
%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 float, align 4
%12 = alloca [25 x i8], align 16
%13 = alloca i8, align 1
store i32 0, ptr %1, align 4
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%15 = getelementptr inbounds [25 x i8], ptr %12, i64 0, i64 0
store i8 121, ptr %15, align 16
store i32 0, ptr %10, align 4
store i32 0, ptr %9, align 4
%16 = load i32, ptr @RAND_MAX, align 4
%17 = add nsw i32 %16, 1
%18 = sdiv i32 %17, 10
%19 = sitofp i32 %18 to float
store float %19, ptr %11, align 4
%20 = call i32 @time(ptr noundef null)
%21 = call i32 @srand(i32 noundef %20)
br label %22
22: ; preds = %333, %0
%23 = load i32, ptr %10, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %10, align 4
store i32 1, ptr %8, align 4
%25 = call float (...) @rand()
%26 = load float, ptr %11, align 4
%27 = fdiv float %25, %26
%28 = fptosi float %27 to i32
%29 = trunc i32 %28 to i8
%30 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 0
store i8 %29, ptr %30, align 1
%31 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 1
br label %32
32: ; preds = %39, %22
%33 = call float (...) @rand()
%34 = load float, ptr %11, align 4
%35 = fdiv float %33, %34
%36 = fptosi float %35 to i32
%37 = trunc i32 %36 to i8
%38 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 1
store i8 %37, ptr %38, align 1
br label %39
39: ; preds = %32
%40 = load i8, ptr %31, align 1
%41 = sext i8 %40 to i32
%42 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 0
%43 = load i8, ptr %42, align 1
%44 = sext i8 %43 to i32
%45 = icmp eq i32 %41, %44
br i1 %45, label %32, label %46, !llvm.loop !6
46: ; preds = %39
br label %47
47: ; preds = %70, %46
%48 = call float (...) @rand()
%49 = load float, ptr %11, align 4
%50 = fdiv float %48, %49
%51 = fptosi float %50 to i32
%52 = trunc i32 %51 to i8
%53 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 2
store i8 %52, ptr %53, align 1
br label %54
54: ; preds = %47
%55 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 2
%56 = load i8, ptr %55, align 1
%57 = sext i8 %56 to i32
%58 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 0
%59 = load i8, ptr %58, align 1
%60 = sext i8 %59 to i32
%61 = icmp eq i32 %57, %60
br i1 %61, label %70, label %62
62: ; preds = %54
%63 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 2
%64 = load i8, ptr %63, align 1
%65 = sext i8 %64 to i32
%66 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 1
%67 = load i8, ptr %66, align 1
%68 = sext i8 %67 to i32
%69 = icmp eq i32 %65, %68
br label %70
70: ; preds = %62, %54
%71 = phi i1 [ true, %54 ], [ %69, %62 ]
br i1 %71, label %47, label %72, !llvm.loop !8
72: ; preds = %70
br label %73
73: ; preds = %298, %72
br label %74
74: ; preds = %146, %73
store i8 1, ptr %13, align 1
%75 = load i32, ptr %8, align 4
%76 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %75)
%77 = getelementptr inbounds [6 x i8], ptr %4, i64 0, i64 0
%78 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %77)
%79 = getelementptr inbounds [6 x i8], ptr %4, i64 0, i64 0
%80 = call i32 @strlen(ptr noundef %79)
%81 = icmp ne i32 %80, 3
br i1 %81, label %82, label %84
82: ; preds = %74
%83 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i8 0, ptr %13, align 1
br label %84
84: ; preds = %82, %74
store i32 0, ptr %5, align 4
%85 = load i32, ptr %5, align 4
%86 = icmp slt i32 %85, 3
br i1 %86, label %.lr.ph, label %119
.lr.ph: ; preds = %84
br label %87
87: ; preds = %.lr.ph, %114
%88 = load i32, ptr %5, align 4
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds [6 x i8], ptr %4, i64 0, i64 %89
%91 = load i8, ptr %90, align 1
%92 = sext i8 %91 to i32
%93 = sub nsw i32 %92, 48
%94 = trunc i32 %93 to i8
%95 = load i32, ptr %5, align 4
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds [3 x i8], ptr %3, i64 0, i64 %96
store i8 %94, ptr %97, align 1
%98 = load i32, ptr %5, align 4
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds [3 x i8], ptr %3, i64 0, i64 %99
%101 = load i8, ptr %100, align 1
%102 = sext i8 %101 to i32
%103 = icmp slt i32 %102, 0
br i1 %103, label %111, label %104
104: ; preds = %87
%105 = load i32, ptr %5, align 4
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds [3 x i8], ptr %3, i64 0, i64 %106
%108 = load i8, ptr %107, align 1
%109 = sext i8 %108 to i32
%110 = icmp sgt i32 %109, 9
br i1 %110, label %111, label %113
111: ; preds = %104, %87
%112 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i8 0, ptr %13, align 1
br label %113
113: ; preds = %111, %104
br label %114
114: ; preds = %113
%115 = load i32, ptr %5, align 4
%116 = add nsw i32 %115, 1
store i32 %116, ptr %5, align 4
%117 = load i32, ptr %5, align 4
%118 = icmp slt i32 %117, 3
br i1 %118, label %87, label %._crit_edge, !llvm.loop !9
._crit_edge: ; preds = %114
br label %119
119: ; preds = %._crit_edge, %84
%120 = getelementptr inbounds [3 x i8], ptr %3, i64 0, i64 0
%121 = load i8, ptr %120, align 1
%122 = sext i8 %121 to i32
%123 = getelementptr inbounds [3 x i8], ptr %3, i64 0, i64 1
%124 = load i8, ptr %123, align 1
%125 = sext i8 %124 to i32
%126 = icmp eq i32 %122, %125
br i1 %126, label %143, label %127
127: ; preds = %119
%128 = getelementptr inbounds [3 x i8], ptr %3, i64 0, i64 1
%129 = load i8, ptr %128, align 1
%130 = sext i8 %129 to i32
%131 = getelementptr inbounds [3 x i8], ptr %3, i64 0, i64 2
%132 = load i8, ptr %131, align 1
%133 = sext i8 %132 to i32
%134 = icmp eq i32 %130, %133
br i1 %134, label %143, label %135
135: ; preds = %127
%136 = getelementptr inbounds [3 x i8], ptr %3, i64 0, i64 0
%137 = load i8, ptr %136, align 1
%138 = sext i8 %137 to i32
%139 = getelementptr inbounds [3 x i8], ptr %3, i64 0, i64 2
%140 = load i8, ptr %139, align 1
%141 = sext i8 %140 to i32
%142 = icmp eq i32 %138, %141
br i1 %142, label %143, label %145
143: ; preds = %135, %127, %119
%144 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
store i8 0, ptr %13, align 1
br label %145
145: ; preds = %143, %135
br label %146
146: ; preds = %145
%147 = load i8, ptr %13, align 1
%148 = icmp ne i8 %147, 0
%149 = xor i1 %148, true
br i1 %149, label %74, label %150, !llvm.loop !10
150: ; preds = %146
%151 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 0
%152 = load i8, ptr %151, align 1
%153 = sext i8 %152 to i32
%154 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 1
%155 = load i8, ptr %154, align 1
%156 = sext i8 %155 to i32
%157 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 2
%158 = load i8, ptr %157, align 1
%159 = sext i8 %158 to i32
%160 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %153, i32 noundef %156, i32 noundef %159)
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %5, align 4
%161 = load i32, ptr %5, align 4
%162 = icmp slt i32 %161, 2
br i1 %162, label %.lr.ph2, label %216
.lr.ph2: ; preds = %150
br label %163
163: ; preds = %.lr.ph2, %211
%164 = load i32, ptr %5, align 4
%165 = sext i32 %164 to i64
%166 = getelementptr inbounds [3 x i8], ptr %3, i64 0, i64 %165
%167 = load i8, ptr %166, align 1
%168 = sext i8 %167 to i32
%169 = load i32, ptr %5, align 4
%170 = add nsw i32 %169, 1
%171 = sext i32 %170 to i64
%172 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 %171
%173 = load i8, ptr %172, align 1
%174 = sext i8 %173 to i32
%175 = icmp eq i32 %168, %174
br i1 %175, label %176, label %179
176: ; preds = %163
%177 = load i32, ptr %6, align 4
%178 = add nsw i32 %177, 1
store i32 %178, ptr %6, align 4
br label %179
179: ; preds = %176, %163
%180 = load i32, ptr %5, align 4
%181 = add nsw i32 %180, 1
%182 = sext i32 %181 to i64
%183 = getelementptr inbounds [3 x i8], ptr %3, i64 0, i64 %182
%184 = load i8, ptr %183, align 1
%185 = sext i8 %184 to i32
%186 = load i32, ptr %5, align 4
%187 = sext i32 %186 to i64
%188 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 %187
%189 = load i8, ptr %188, align 1
%190 = sext i8 %189 to i32
%191 = icmp eq i32 %185, %190
br i1 %191, label %192, label %195
192: ; preds = %179
%193 = load i32, ptr %6, align 4
%194 = add nsw i32 %193, 1
store i32 %194, ptr %6, align 4
br label %195
195: ; preds = %192, %179
%196 = load i32, ptr %5, align 4
%197 = sext i32 %196 to i64
%198 = getelementptr inbounds [3 x i8], ptr %3, i64 0, i64 %197
%199 = load i8, ptr %198, align 1
%200 = sext i8 %199 to i32
%201 = load i32, ptr %5, align 4
%202 = sext i32 %201 to i64
%203 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 %202
%204 = load i8, ptr %203, align 1
%205 = sext i8 %204 to i32
%206 = icmp eq i32 %200, %205
br i1 %206, label %207, label %210
207: ; preds = %195
%208 = load i32, ptr %7, align 4
%209 = add nsw i32 %208, 1
store i32 %209, ptr %7, align 4
br label %210
210: ; preds = %207, %195
br label %211
211: ; preds = %210
%212 = load i32, ptr %5, align 4
%213 = add nsw i32 %212, 1
store i32 %213, ptr %5, align 4
%214 = load i32, ptr %5, align 4
%215 = icmp slt i32 %214, 2
br i1 %215, label %163, label %._crit_edge3, !llvm.loop !11
._crit_edge3: ; preds = %211
br label %216
216: ; preds = %._crit_edge3, %150
%217 = getelementptr inbounds [3 x i8], ptr %3, i64 0, i64 0
%218 = load i8, ptr %217, align 1
%219 = sext i8 %218 to i32
%220 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 2
%221 = load i8, ptr %220, align 1
%222 = sext i8 %221 to i32
%223 = icmp eq i32 %219, %222
br i1 %223, label %224, label %227
224: ; preds = %216
%225 = load i32, ptr %6, align 4
%226 = add nsw i32 %225, 1
store i32 %226, ptr %6, align 4
br label %227
227: ; preds = %224, %216
%228 = getelementptr inbounds [3 x i8], ptr %3, i64 0, i64 2
%229 = load i8, ptr %228, align 1
%230 = sext i8 %229 to i32
%231 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 0
%232 = load i8, ptr %231, align 1
%233 = sext i8 %232 to i32
%234 = icmp eq i32 %230, %233
br i1 %234, label %235, label %238
235: ; preds = %227
%236 = load i32, ptr %6, align 4
%237 = add nsw i32 %236, 1
store i32 %237, ptr %6, align 4
br label %238
238: ; preds = %235, %227
%239 = getelementptr inbounds [3 x i8], ptr %3, i64 0, i64 2
%240 = load i8, ptr %239, align 1
%241 = sext i8 %240 to i32
%242 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 2
%243 = load i8, ptr %242, align 1
%244 = sext i8 %243 to i32
%245 = icmp eq i32 %241, %244
br i1 %245, label %246, label %249
246: ; preds = %238
%247 = load i32, ptr %7, align 4
%248 = add nsw i32 %247, 1
store i32 %248, ptr %7, align 4
br label %249
249: ; preds = %246, %238
%250 = load i32, ptr %7, align 4
%251 = icmp ne i32 %250, 0
br i1 %251, label %252, label %265
252: ; preds = %249
store i32 1, ptr %5, align 4
%253 = load i32, ptr %5, align 4
%254 = load i32, ptr %7, align 4
%255 = icmp sle i32 %253, %254
br i1 %255, label %.lr.ph5, label %264
.lr.ph5: ; preds = %252
br label %256
256: ; preds = %.lr.ph5, %258
%257 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %258
258: ; preds = %256
%259 = load i32, ptr %5, align 4
%260 = add nsw i32 %259, 1
store i32 %260, ptr %5, align 4
%261 = load i32, ptr %5, align 4
%262 = load i32, ptr %7, align 4
%263 = icmp sle i32 %261, %262
br i1 %263, label %256, label %._crit_edge6, !llvm.loop !12
._crit_edge6: ; preds = %258
br label %264
264: ; preds = %._crit_edge6, %252
br label %265
265: ; preds = %264, %249
%266 = load i32, ptr %6, align 4
%267 = icmp ne i32 %266, 0
br i1 %267, label %268, label %281
268: ; preds = %265
store i32 1, ptr %5, align 4
%269 = load i32, ptr %5, align 4
%270 = load i32, ptr %6, align 4
%271 = icmp sle i32 %269, %270
br i1 %271, label %.lr.ph8, label %280
.lr.ph8: ; preds = %268
br label %272
272: ; preds = %.lr.ph8, %274
%273 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
br label %274
274: ; preds = %272
%275 = load i32, ptr %5, align 4
%276 = add nsw i32 %275, 1
store i32 %276, ptr %5, align 4
%277 = load i32, ptr %5, align 4
%278 = load i32, ptr %6, align 4
%279 = icmp sle i32 %277, %278
br i1 %279, label %272, label %._crit_edge9, !llvm.loop !13
._crit_edge9: ; preds = %274
br label %280
280: ; preds = %._crit_edge9, %268
br label %281
281: ; preds = %280, %265
%282 = load i32, ptr %7, align 4
%283 = icmp eq i32 %282, 0
br i1 %283, label %284, label %289
284: ; preds = %281
%285 = load i32, ptr %6, align 4
%286 = icmp eq i32 %285, 0
br i1 %286, label %287, label %289
287: ; preds = %284
%288 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
br label %289
289: ; preds = %287, %284, %281
%290 = load i32, ptr %8, align 4
%291 = add nsw i32 %290, 1
store i32 %291, ptr %8, align 4
br label %292
292: ; preds = %289
%293 = load i32, ptr %8, align 4
%294 = icmp sle i32 %293, 20
br i1 %294, label %295, label %298
295: ; preds = %292
%296 = load i32, ptr %7, align 4
%297 = icmp slt i32 %296, 3
br label %298
298: ; preds = %295, %292
%299 = phi i1 [ false, %292 ], [ %297, %295 ]
br i1 %299, label %73, label %300, !llvm.loop !14
300: ; preds = %298
%301 = load i32, ptr %7, align 4
%302 = icmp eq i32 %301, 3
br i1 %302, label %303, label %307
303: ; preds = %300
%304 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
%305 = load i32, ptr %9, align 4
%306 = add nsw i32 %305, 1
store i32 %306, ptr %9, align 4
br label %319
307: ; preds = %300
%308 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
%309 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 0
%310 = load i8, ptr %309, align 1
%311 = sext i8 %310 to i32
%312 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 1
%313 = load i8, ptr %312, align 1
%314 = sext i8 %313 to i32
%315 = getelementptr inbounds [3 x i8], ptr %2, i64 0, i64 2
%316 = load i8, ptr %315, align 1
%317 = sext i8 %316 to i32
%318 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %311, i32 noundef %314, i32 noundef %317)
br label %319
319: ; preds = %307, %303
%320 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
%321 = getelementptr inbounds [25 x i8], ptr %12, i64 0, i64 0
%322 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %321)
br label %323
323: ; preds = %319
%324 = getelementptr inbounds [25 x i8], ptr %12, i64 0, i64 0
%325 = load i8, ptr %324, align 16
%326 = sext i8 %325 to i32
%327 = icmp eq i32 %326, 121
br i1 %327, label %333, label %328
328: ; preds = %323
%329 = getelementptr inbounds [25 x i8], ptr %12, i64 0, i64 0
%330 = load i8, ptr %329, align 16
%331 = sext i8 %330 to i32
%332 = icmp eq i32 %331, 89
br label %333
333: ; preds = %328, %323
%334 = phi i1 [ true, %323 ], [ %332, %328 ]
br i1 %334, label %22, label %335, !llvm.loop !15
335: ; preds = %333
%336 = load i32, ptr %9, align 4
%337 = load i32, ptr %10, align 4
%338 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i32 noundef %336, i32 noundef %337)
%339 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare float @rand(...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
!15 = distinct !{!15, !7}
|
; ModuleID = '/tmp/tmp226uvkgq.c'
source_filename = "/tmp/tmp226uvkgq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [29 x i8] c"work_a_3378324598_3212880686\00", align 1
@.str.1 = private unnamed_addr constant [66 x i8] c"isim/tb_trafo_isim_beh.exe.sim/work/a_3378324598_3212880686.didat\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @work_a_3378324598_3212880686_init() #0 {
%1 = call i32 @xsi_register_didat(ptr noundef @.str, ptr noundef @.str.1)
ret void
}
declare i32 @xsi_register_didat(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/tmp226uvkgq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [29 x i8] c"work_a_3378324598_3212880686\00", align 1
@.str.1 = private unnamed_addr constant [66 x i8] c"isim/tb_trafo_isim_beh.exe.sim/work/a_3378324598_3212880686.didat\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @work_a_3378324598_3212880686_init() #0 {
%1 = call i32 @xsi_register_didat(ptr noundef @.str, ptr noundef @.str.1)
ret void
}
declare i32 @xsi_register_didat(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/tmpwz36itgv.c'
source_filename = "/tmp/tmpwz36itgv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @postfix_expr() #0 {
%1 = call i32 (...) @primary_expr()
%2 = call i32 (...) @postfix_expr_stub()
ret void
}
declare i32 @primary_expr(...) #1
declare i32 @postfix_expr_stub(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwz36itgv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @postfix_expr() #0 {
%1 = call i32 (...) @primary_expr()
%2 = call i32 (...) @postfix_expr_stub()
ret void
}
declare i32 @primary_expr(...) #1
declare i32 @postfix_expr_stub(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjgk1h4ll.c'
source_filename = "/tmp/tmpjgk1h4ll.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @freevec(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/tmpjgk1h4ll.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @freevec(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/tmpc7nrnpwe.c'
source_filename = "/tmp/tmpc7nrnpwe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strunvis(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i8, align 1
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%9 = load ptr, ptr %4, align 8
store ptr %9, ptr %7, align 8
store i32 0, ptr %8, align 4
br label %10
10: ; preds = %28, %2
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds i8, ptr %11, i32 1
store ptr %12, ptr %5, align 8
%13 = load i8, ptr %11, align 1
store i8 %13, ptr %6, align 1
%14 = icmp ne i8 %13, 0
br i1 %14, label %15, label %29
15: ; preds = %10
br label %16
16: ; preds = %23, %15
%17 = load ptr, ptr %4, align 8
%18 = load i8, ptr %6, align 1
%19 = call i32 @unvis(ptr noundef %17, i8 noundef signext %18, ptr noundef %8, i32 noundef 0)
switch i32 %19, label %27 [
i32 1, label %20
i32 2, label %23
i32 0, label %26
i32 3, label %26
]
20: ; preds = %16
%21 = load ptr, ptr %4, align 8
%22 = getelementptr inbounds i8, ptr %21, i32 1
store ptr %22, ptr %4, align 8
br label %28
23: ; preds = %16
%24 = load ptr, ptr %4, align 8
%25 = getelementptr inbounds i8, ptr %24, i32 1
store ptr %25, ptr %4, align 8
br label %16
26: ; preds = %16, %16
br label %28
27: ; preds = %16
store i32 -1, ptr %3, align 4
br label %45
28: ; preds = %26, %20
br label %10, !llvm.loop !6
29: ; preds = %10
%30 = load ptr, ptr %4, align 8
%31 = load i8, ptr %6, align 1
%32 = call i32 @unvis(ptr noundef %30, i8 noundef signext %31, ptr noundef %8, i32 noundef 1)
%33 = icmp eq i32 %32, 1
br i1 %33, label %34, label %37
34: ; preds = %29
%35 = load ptr, ptr %4, align 8
%36 = getelementptr inbounds i8, ptr %35, i32 1
store ptr %36, ptr %4, align 8
br label %37
37: ; preds = %34, %29
%38 = load ptr, ptr %4, align 8
store i8 0, ptr %38, align 1
%39 = load ptr, ptr %4, align 8
%40 = load ptr, ptr %7, align 8
%41 = ptrtoint ptr %39 to i64
%42 = ptrtoint ptr %40 to i64
%43 = sub i64 %41, %42
%44 = trunc i64 %43 to i32
store i32 %44, ptr %3, align 4
br label %45
45: ; preds = %37, %27
%46 = load i32, ptr %3, align 4
ret i32 %46
}
declare i32 @unvis(ptr noundef, i8 noundef signext, 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/tmpc7nrnpwe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strunvis(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i8, align 1
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%9 = load ptr, ptr %4, align 8
store ptr %9, ptr %7, align 8
store i32 0, ptr %8, align 4
%10 = load ptr, ptr %5, align 8
%11 = getelementptr inbounds i8, ptr %10, i32 1
store ptr %11, ptr %5, align 8
%12 = load i8, ptr %10, align 1
store i8 %12, ptr %6, align 1
%13 = icmp ne i8 %12, 0
br i1 %13, label %.lr.ph, label %32
.lr.ph: ; preds = %2
br label %14
14: ; preds = %.lr.ph, %27
br label %15
15: ; preds = %22, %14
%16 = load ptr, ptr %4, align 8
%17 = load i8, ptr %6, align 1
%18 = call i32 @unvis(ptr noundef %16, i8 noundef signext %17, ptr noundef %8, i32 noundef 0)
switch i32 %18, label %26 [
i32 1, label %19
i32 2, label %22
i32 0, label %25
i32 3, label %25
]
19: ; preds = %15
%20 = load ptr, ptr %4, align 8
%21 = getelementptr inbounds i8, ptr %20, i32 1
store ptr %21, ptr %4, align 8
br label %27
22: ; preds = %15
%23 = load ptr, ptr %4, align 8
%24 = getelementptr inbounds i8, ptr %23, i32 1
store ptr %24, ptr %4, align 8
br label %15
25: ; preds = %15, %15
br label %27
26: ; preds = %15
store i32 -1, ptr %3, align 4
br label %48
27: ; preds = %25, %19
%28 = load ptr, ptr %5, align 8
%29 = getelementptr inbounds i8, ptr %28, i32 1
store ptr %29, ptr %5, align 8
%30 = load i8, ptr %28, align 1
store i8 %30, ptr %6, align 1
%31 = icmp ne i8 %30, 0
br i1 %31, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %27
br label %32
32: ; preds = %._crit_edge, %2
%33 = load ptr, ptr %4, align 8
%34 = load i8, ptr %6, align 1
%35 = call i32 @unvis(ptr noundef %33, i8 noundef signext %34, ptr noundef %8, i32 noundef 1)
%36 = icmp eq i32 %35, 1
br i1 %36, label %37, label %40
37: ; preds = %32
%38 = load ptr, ptr %4, align 8
%39 = getelementptr inbounds i8, ptr %38, i32 1
store ptr %39, ptr %4, align 8
br label %40
40: ; preds = %37, %32
%41 = load ptr, ptr %4, align 8
store i8 0, ptr %41, align 1
%42 = load ptr, ptr %4, align 8
%43 = load ptr, ptr %7, align 8
%44 = ptrtoint ptr %42 to i64
%45 = ptrtoint ptr %43 to i64
%46 = sub i64 %44, %45
%47 = trunc i64 %46 to i32
store i32 %47, ptr %3, align 4
br label %48
48: ; preds = %40, %26
%49 = load i32, ptr %3, align 4
ret i32 %49
}
declare i32 @unvis(ptr noundef, i8 noundef signext, 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/tmpg8xwsufu.c'
source_filename = "/tmp/tmpg8xwsufu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dumpbuf(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = call i32 @__dumpbuf(ptr noundef %5, i32 noundef %6, i32 noundef 16)
ret i32 %7
}
declare i32 @__dumpbuf(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/tmpg8xwsufu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dumpbuf(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = call i32 @__dumpbuf(ptr noundef %5, i32 noundef %6, i32 noundef 16)
ret i32 %7
}
declare i32 @__dumpbuf(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/tmp1wcoqi05.c'
source_filename = "/tmp/tmp1wcoqi05.c"
target datalayout = "e-m:e-p270: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.sysinfo = type { i32 }
@.str = private unnamed_addr constant [8 x i8] c"sysinfo\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_uptime_ms() #0 {
%1 = alloca %struct.sysinfo, align 4
%2 = alloca i32, align 4
%3 = call i32 @sysinfo(ptr noundef %1)
store i32 %3, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = icmp eq i32 %4, -1
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = call i32 @perror(ptr noundef @.str)
br label %8
8: ; preds = %6, %0
%9 = getelementptr inbounds %struct.sysinfo, ptr %1, i32 0, i32 0
%10 = load i32, ptr %9, align 4
%11 = mul nsw i32 %10, 1000
ret i32 %11
}
declare i32 @sysinfo(ptr noundef) #1
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1wcoqi05.c"
target datalayout = "e-m:e-p270: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.sysinfo = type { i32 }
@.str = private unnamed_addr constant [8 x i8] c"sysinfo\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @get_uptime_ms() #0 {
%1 = alloca %struct.sysinfo, align 4
%2 = alloca i32, align 4
%3 = call i32 @sysinfo(ptr noundef %1)
store i32 %3, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = icmp eq i32 %4, -1
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = call i32 @perror(ptr noundef @.str)
br label %8
8: ; preds = %6, %0
%9 = getelementptr inbounds %struct.sysinfo, ptr %1, i32 0, i32 0
%10 = load i32, ptr %9, align 4
%11 = mul nsw i32 %10, 1000
ret i32 %11
}
declare i32 @sysinfo(ptr noundef) #1
declare i32 @perror(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp39ieea7x.c'
source_filename = "/tmp/tmp39ieea7x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Sys_DefaultBasePath() #0 {
%1 = call ptr (...) @Sys_Pwd()
ret ptr %1
}
declare ptr @Sys_Pwd(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp39ieea7x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Sys_DefaultBasePath() #0 {
%1 = call ptr (...) @Sys_Pwd()
ret ptr %1
}
declare ptr @Sys_Pwd(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjkispoq6.c'
source_filename = "/tmp/tmpjkispoq6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fgetc(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = load i32, ptr %4, align 4
store i32 %5, ptr %3, align 4
%6 = call i32 (...) @__infer_nondet_int()
ret i32 %6
}
declare i32 @__infer_nondet_int(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjkispoq6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fgetc(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = load i32, ptr %4, align 4
store i32 %5, ptr %3, align 4
%6 = call i32 (...) @__infer_nondet_int()
ret i32 %6
}
declare i32 @__infer_nondet_int(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp15v3nw80.c'
source_filename = "/tmp/tmp15v3nw80.c"
target datalayout = "e-m:e-p270: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/tmp15v3nw80.c"
target datalayout = "e-m:e-p270: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/tmpj4aw8vw6.c'
source_filename = "/tmp/tmpj4aw8vw6.c"
target datalayout = "e-m:e-p270: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/tmpj4aw8vw6.c"
target datalayout = "e-m:e-p270: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/tmp2fqwfhr8.c'
source_filename = "/tmp/tmp2fqwfhr8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.flock = type { i64, i64, i32, i32 }
@F_SETLK = dso_local global i32 0, align 4
@F_UNLCK = dso_local global i32 0, align 4
@SEEK_SET = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @my_unlock(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca %struct.flock, align 8
store i32 %0, ptr %2, align 4
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/tmp2fqwfhr8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.flock = type { i64, i64, i32, i32 }
@F_SETLK = dso_local global i32 0, align 4
@F_UNLCK = dso_local global i32 0, align 4
@SEEK_SET = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @my_unlock(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca %struct.flock, align 8
store i32 %0, ptr %2, align 4
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/tmpsw2nsn_m.c'
source_filename = "/tmp/tmpsw2nsn_m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @destroy_win(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 @wborder(ptr noundef %3, i8 noundef signext 32, i8 noundef signext 32, i8 noundef signext 32, i8 noundef signext 32, i8 noundef signext 32, i8 noundef signext 32, i8 noundef signext 32, i8 noundef signext 32)
%5 = load ptr, ptr %2, align 8
%6 = call i32 @wrefresh(ptr noundef %5)
%7 = load ptr, ptr %2, align 8
%8 = call i32 @delwin(ptr noundef %7)
ret void
}
declare i32 @wborder(ptr noundef, i8 noundef signext, i8 noundef signext, i8 noundef signext, i8 noundef signext, i8 noundef signext, i8 noundef signext, i8 noundef signext, i8 noundef signext) #1
declare i32 @wrefresh(ptr noundef) #1
declare i32 @delwin(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsw2nsn_m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @destroy_win(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 @wborder(ptr noundef %3, i8 noundef signext 32, i8 noundef signext 32, i8 noundef signext 32, i8 noundef signext 32, i8 noundef signext 32, i8 noundef signext 32, i8 noundef signext 32, i8 noundef signext 32)
%5 = load ptr, ptr %2, align 8
%6 = call i32 @wrefresh(ptr noundef %5)
%7 = load ptr, ptr %2, align 8
%8 = call i32 @delwin(ptr noundef %7)
ret void
}
declare i32 @wborder(ptr noundef, i8 noundef signext, i8 noundef signext, i8 noundef signext, i8 noundef signext, i8 noundef signext, i8 noundef signext, i8 noundef signext, i8 noundef signext) #1
declare i32 @wrefresh(ptr noundef) #1
declare i32 @delwin(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpy9uabirv.c'
source_filename = "/tmp/tmpy9uabirv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [30 x i8] c"Enter number to count loops: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [17 x i8] c"%d has %d loops\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 [100 x i8], align 16
%6 = alloca ptr, align 8
store i32 0, ptr %1, align 4
store i32 0, ptr %4, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%8 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%9 = load i32, ptr %2, align 4
store i32 %9, ptr %3, align 4
%10 = getelementptr inbounds [100 x i8], ptr %5, i64 0, i64 0
%11 = load i32, ptr %2, align 4
%12 = call i32 @sprintf(ptr noundef %10, ptr noundef @.str.1, i32 noundef %11)
%13 = getelementptr inbounds [100 x i8], ptr %5, i64 0, i64 0
store ptr %13, ptr %6, align 8
br label %14
14: ; preds = %54, %0
%15 = load ptr, ptr %6, align 8
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %57
19: ; preds = %14
%20 = load ptr, ptr %6, align 8
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp eq i32 %22, 54
br i1 %23, label %24, label %27
24: ; preds = %19
%25 = load i32, ptr %4, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %4, align 4
br label %54
27: ; preds = %19
%28 = load ptr, ptr %6, align 8
%29 = load i8, ptr %28, align 1
%30 = sext i8 %29 to i32
%31 = icmp eq i32 %30, 56
br i1 %31, label %32, label %35
32: ; preds = %27
%33 = load i32, ptr %4, align 4
%34 = add nsw i32 %33, 2
store i32 %34, ptr %4, align 4
br label %53
35: ; preds = %27
%36 = load ptr, ptr %6, align 8
%37 = load i8, ptr %36, align 1
%38 = sext i8 %37 to i32
%39 = icmp eq i32 %38, 57
br i1 %39, label %40, label %43
40: ; preds = %35
%41 = load i32, ptr %4, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %4, align 4
br label %52
43: ; preds = %35
%44 = load ptr, ptr %6, align 8
%45 = load i8, ptr %44, align 1
%46 = sext i8 %45 to i32
%47 = icmp eq i32 %46, 48
br i1 %47, label %48, label %51
48: ; preds = %43
%49 = load i32, ptr %4, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %4, align 4
br label %51
51: ; preds = %48, %43
br label %52
52: ; preds = %51, %40
br label %53
53: ; preds = %52, %32
br label %54
54: ; preds = %53, %24
%55 = load ptr, ptr %6, align 8
%56 = getelementptr inbounds i8, ptr %55, i32 1
store ptr %56, ptr %6, align 8
br label %14, !llvm.loop !6
57: ; preds = %14
%58 = load i32, ptr %3, align 4
%59 = load i32, ptr %4, align 4
%60 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %58, i32 noundef %59)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpy9uabirv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [30 x i8] c"Enter number to count loops: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [17 x i8] c"%d has %d loops\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 [100 x i8], align 16
%6 = alloca ptr, align 8
store i32 0, ptr %1, align 4
store i32 0, ptr %4, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%8 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%9 = load i32, ptr %2, align 4
store i32 %9, ptr %3, align 4
%10 = getelementptr inbounds [100 x i8], ptr %5, i64 0, i64 0
%11 = load i32, ptr %2, align 4
%12 = call i32 @sprintf(ptr noundef %10, ptr noundef @.str.1, i32 noundef %11)
%13 = getelementptr inbounds [100 x i8], ptr %5, i64 0, i64 0
store ptr %13, ptr %6, align 8
%14 = load ptr, ptr %6, align 8
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
%17 = icmp ne i32 %16, 0
br i1 %17, label %.lr.ph, label %60
.lr.ph: ; preds = %0
br label %18
18: ; preds = %.lr.ph, %53
%19 = load ptr, ptr %6, align 8
%20 = load i8, ptr %19, align 1
%21 = sext i8 %20 to i32
%22 = icmp eq i32 %21, 54
br i1 %22, label %23, label %26
23: ; preds = %18
%24 = load i32, ptr %4, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %4, align 4
br label %53
26: ; preds = %18
%27 = load ptr, ptr %6, align 8
%28 = load i8, ptr %27, align 1
%29 = sext i8 %28 to i32
%30 = icmp eq i32 %29, 56
br i1 %30, label %31, label %34
31: ; preds = %26
%32 = load i32, ptr %4, align 4
%33 = add nsw i32 %32, 2
store i32 %33, ptr %4, align 4
br label %52
34: ; preds = %26
%35 = load ptr, ptr %6, align 8
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = icmp eq i32 %37, 57
br i1 %38, label %39, label %42
39: ; preds = %34
%40 = load i32, ptr %4, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %4, align 4
br label %51
42: ; preds = %34
%43 = load ptr, ptr %6, align 8
%44 = load i8, ptr %43, align 1
%45 = sext i8 %44 to i32
%46 = icmp eq i32 %45, 48
br i1 %46, label %47, label %50
47: ; preds = %42
%48 = load i32, ptr %4, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %4, align 4
br label %50
50: ; preds = %47, %42
br label %51
51: ; preds = %50, %39
br label %52
52: ; preds = %51, %31
br label %53
53: ; preds = %52, %23
%54 = load ptr, ptr %6, align 8
%55 = getelementptr inbounds i8, ptr %54, i32 1
store ptr %55, ptr %6, align 8
%56 = load ptr, ptr %6, align 8
%57 = load i8, ptr %56, align 1
%58 = sext i8 %57 to i32
%59 = icmp ne i32 %58, 0
br i1 %59, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %53
br label %60
60: ; preds = %._crit_edge, %0
%61 = load i32, ptr %3, align 4
%62 = load i32, ptr %4, align 4
%63 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %61, i32 noundef %62)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpe2ttvs7t.c'
source_filename = "/tmp/tmpe2ttvs7t.c"
target datalayout = "e-m:e-p270: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/tmpe2ttvs7t.c"
target datalayout = "e-m:e-p270: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/tmp17s5qzb_.c'
source_filename = "/tmp/tmp17s5qzb_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @gu2_get_frame_buffer_size() #0 {
%1 = alloca i64, align 8
%2 = call i32 @gfx_outw(i32 noundef 44060, i32 noundef 64595)
%3 = call i32 @gfx_outw(i32 noundef 44060, i32 noundef 512)
%4 = call i64 @gfx_inw(i32 noundef 44062)
%5 = and i64 %4, 255
store i64 %5, ptr %1, align 8
%6 = load i64, ptr %1, align 8
%7 = shl i64 %6, 19
ret i64 %7
}
declare i32 @gfx_outw(i32 noundef, i32 noundef) #1
declare i64 @gfx_inw(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp17s5qzb_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @gu2_get_frame_buffer_size() #0 {
%1 = alloca i64, align 8
%2 = call i32 @gfx_outw(i32 noundef 44060, i32 noundef 64595)
%3 = call i32 @gfx_outw(i32 noundef 44060, i32 noundef 512)
%4 = call i64 @gfx_inw(i32 noundef 44062)
%5 = and i64 %4, 255
store i64 %5, ptr %1, align 8
%6 = load i64, ptr %1, align 8
%7 = shl i64 %6, 19
ret i64 %7
}
declare i32 @gfx_outw(i32 noundef, i32 noundef) #1
declare i64 @gfx_inw(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmphbmgu21q.c'
source_filename = "/tmp/tmphbmgu21q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [19 x i8] c"Input a string 1: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"Input a string 2: \00", align 1
@.str.3 = private unnamed_addr constant [26 x i8] c"String concatenation: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [80 x i8], align 16
%3 = alloca [80 x i8], align 16
%4 = alloca [160 x i8], align 16
store i32 0, ptr %1, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 0
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %6)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%9 = getelementptr inbounds [80 x i8], ptr %3, i64 0, i64 0
%10 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %9)
%11 = getelementptr inbounds [160 x i8], ptr %4, i64 0, i64 0
%12 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 0
%13 = getelementptr inbounds [80 x i8], ptr %3, i64 0, i64 0
%14 = call i32 @str_connect(ptr noundef %11, ptr noundef %12, ptr noundef %13)
%15 = getelementptr inbounds [160 x i8], ptr %4, i64 0, i64 0
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %15)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @str_connect(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/tmphbmgu21q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [19 x i8] c"Input a string 1: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"Input a string 2: \00", align 1
@.str.3 = private unnamed_addr constant [26 x i8] c"String concatenation: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [80 x i8], align 16
%3 = alloca [80 x i8], align 16
%4 = alloca [160 x i8], align 16
store i32 0, ptr %1, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 0
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %6)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%9 = getelementptr inbounds [80 x i8], ptr %3, i64 0, i64 0
%10 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %9)
%11 = getelementptr inbounds [160 x i8], ptr %4, i64 0, i64 0
%12 = getelementptr inbounds [80 x i8], ptr %2, i64 0, i64 0
%13 = getelementptr inbounds [80 x i8], ptr %3, i64 0, i64 0
%14 = call i32 @str_connect(ptr noundef %11, ptr noundef %12, ptr noundef %13)
%15 = getelementptr inbounds [160 x i8], ptr %4, i64 0, i64 0
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, ptr noundef %15)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @str_connect(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/tmp7fhn7_a4.c'
source_filename = "/tmp/tmp7fhn7_a4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [36 x i8] c"send_command: channel out of range\0A\00", align 1
@stderr = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @send_command(i32 noundef %0, i8 noundef zeroext %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 i8, align 1
%9 = alloca ptr, align 8
store i32 %0, ptr %6, align 4
store i8 %1, ptr %7, align 1
store i8 %2, ptr %8, align 1
store ptr %3, ptr %9, align 8
%10 = load i32, ptr %6, align 4
%11 = icmp uge i32 %10, 16
br i1 %11, label %12, label %15
12: ; preds = %4
%13 = load i32, ptr @stderr, align 4
%14 = call i32 @fputs(ptr noundef @.str, i32 noundef %13)
store i32 0, ptr %5, align 4
br label %34
15: ; preds = %4
%16 = load ptr, ptr %9, align 8
%17 = call i32 @fputc(i32 noundef 240, ptr noundef %16)
%18 = load ptr, ptr %9, align 8
%19 = call i32 @fputc(i32 noundef 66, ptr noundef %18)
%20 = load i32, ptr %6, align 4
%21 = add i32 48, %20
%22 = load ptr, ptr %9, align 8
%23 = call i32 @fputc(i32 noundef %21, ptr noundef %22)
%24 = load i8, ptr %7, align 1
%25 = zext i8 %24 to i32
%26 = load ptr, ptr %9, align 8
%27 = call i32 @fputc(i32 noundef %25, ptr noundef %26)
%28 = load i8, ptr %8, align 1
%29 = zext i8 %28 to i32
%30 = load ptr, ptr %9, align 8
%31 = call i32 @fputc(i32 noundef %29, ptr noundef %30)
%32 = load ptr, ptr %9, align 8
%33 = call i32 @fputc(i32 noundef 247, ptr noundef %32)
store i32 1, ptr %5, align 4
br label %34
34: ; preds = %15, %12
%35 = load i32, ptr %5, align 4
ret i32 %35
}
declare i32 @fputs(ptr noundef, i32 noundef) #1
declare i32 @fputc(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7fhn7_a4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [36 x i8] c"send_command: channel out of range\0A\00", align 1
@stderr = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @send_command(i32 noundef %0, i8 noundef zeroext %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 i8, align 1
%9 = alloca ptr, align 8
store i32 %0, ptr %6, align 4
store i8 %1, ptr %7, align 1
store i8 %2, ptr %8, align 1
store ptr %3, ptr %9, align 8
%10 = load i32, ptr %6, align 4
%11 = icmp uge i32 %10, 16
br i1 %11, label %12, label %15
12: ; preds = %4
%13 = load i32, ptr @stderr, align 4
%14 = call i32 @fputs(ptr noundef @.str, i32 noundef %13)
store i32 0, ptr %5, align 4
br label %34
15: ; preds = %4
%16 = load ptr, ptr %9, align 8
%17 = call i32 @fputc(i32 noundef 240, ptr noundef %16)
%18 = load ptr, ptr %9, align 8
%19 = call i32 @fputc(i32 noundef 66, ptr noundef %18)
%20 = load i32, ptr %6, align 4
%21 = add i32 48, %20
%22 = load ptr, ptr %9, align 8
%23 = call i32 @fputc(i32 noundef %21, ptr noundef %22)
%24 = load i8, ptr %7, align 1
%25 = zext i8 %24 to i32
%26 = load ptr, ptr %9, align 8
%27 = call i32 @fputc(i32 noundef %25, ptr noundef %26)
%28 = load i8, ptr %8, align 1
%29 = zext i8 %28 to i32
%30 = load ptr, ptr %9, align 8
%31 = call i32 @fputc(i32 noundef %29, ptr noundef %30)
%32 = load ptr, ptr %9, align 8
%33 = call i32 @fputc(i32 noundef 247, ptr noundef %32)
store i32 1, ptr %5, align 4
br label %34
34: ; preds = %15, %12
%35 = load i32, ptr %5, align 4
ret i32 %35
}
declare i32 @fputs(ptr noundef, i32 noundef) #1
declare i32 @fputc(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp77s0z860.c'
source_filename = "/tmp/tmp77s0z860.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [40 x i8] c"<iq type='get' id='1001'><query xmlns='\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"jabber:iq:roster'/></iq>\0A\00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"senddata (server.c:222)\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @srv_getroster(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
%7 = call ptr @malloc(i32 noundef 1024)
store ptr %7, ptr %6, align 8
%8 = load ptr, ptr %6, align 8
%9 = call i32 @strcpy(ptr noundef %8, ptr noundef @.str)
%10 = load ptr, ptr %6, align 8
%11 = call i32 @strcat(ptr noundef %10, ptr noundef @.str.1)
%12 = load i32, ptr %4, align 4
%13 = load ptr, ptr %6, align 8
%14 = load i32, ptr %5, align 4
%15 = call i32 @sk_send(i32 noundef %12, ptr noundef %13, i32 noundef %14)
%16 = icmp ne i32 %15, 0
br i1 %16, label %19, label %17
17: ; preds = %2
%18 = call i32 @perror(ptr noundef @.str.2)
store ptr null, ptr %3, align 8
br label %25
19: ; preds = %2
%20 = load ptr, ptr %6, align 8
%21 = call i32 @free(ptr noundef %20)
%22 = load i32, ptr %4, align 4
%23 = load i32, ptr %5, align 4
%24 = call ptr @srv_readstr(i32 noundef %22, i32 noundef %23)
store ptr %24, ptr %3, align 8
br label %25
25: ; preds = %19, %17
%26 = load ptr, ptr %3, align 8
ret ptr %26
}
declare ptr @malloc(i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare i32 @sk_send(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare ptr @srv_readstr(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/tmp77s0z860.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [40 x i8] c"<iq type='get' id='1001'><query xmlns='\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"jabber:iq:roster'/></iq>\0A\00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"senddata (server.c:222)\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @srv_getroster(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
%7 = call ptr @malloc(i32 noundef 1024)
store ptr %7, ptr %6, align 8
%8 = load ptr, ptr %6, align 8
%9 = call i32 @strcpy(ptr noundef %8, ptr noundef @.str)
%10 = load ptr, ptr %6, align 8
%11 = call i32 @strcat(ptr noundef %10, ptr noundef @.str.1)
%12 = load i32, ptr %4, align 4
%13 = load ptr, ptr %6, align 8
%14 = load i32, ptr %5, align 4
%15 = call i32 @sk_send(i32 noundef %12, ptr noundef %13, i32 noundef %14)
%16 = icmp ne i32 %15, 0
br i1 %16, label %19, label %17
17: ; preds = %2
%18 = call i32 @perror(ptr noundef @.str.2)
store ptr null, ptr %3, align 8
br label %25
19: ; preds = %2
%20 = load ptr, ptr %6, align 8
%21 = call i32 @free(ptr noundef %20)
%22 = load i32, ptr %4, align 4
%23 = load i32, ptr %5, align 4
%24 = call ptr @srv_readstr(i32 noundef %22, i32 noundef %23)
store ptr %24, ptr %3, align 8
br label %25
25: ; preds = %19, %17
%26 = load ptr, ptr %3, align 8
ret ptr %26
}
declare ptr @malloc(i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare i32 @sk_send(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare ptr @srv_readstr(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/tmp6y5gxcly.c'
source_filename = "/tmp/tmp6y5gxcly.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PTHREAD_CREATE_DETACHED = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6y5gxcly.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PTHREAD_CREATE_DETACHED = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpj6o6kng5.c'
source_filename = "/tmp/tmpj6o6kng5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.testString = private unnamed_addr constant [15 x i8] c"This is a test\00", align 1
@.str = private unnamed_addr constant [15 x i8] c"Left(4): \22%s\22\0A\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"Error calling astrleft()\0A\00", align 1
@.str.2 = private unnamed_addr constant [17 x i8] c"Mid(2, 6): \22%s\22\0A\00", align 1
@.str.3 = private unnamed_addr constant [25 x i8] c"Error calling astrmid()\0A\00", align 1
@.str.4 = private unnamed_addr constant [16 x i8] c"Right(2): \22%s\22\0A\00", align 1
@.str.5 = private unnamed_addr constant [27 x i8] c"Error calling astrright()\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [15 x i8], align 1
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = 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
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %6, ptr align 1 @__const.main.testString, i64 15, i1 false)
store ptr null, ptr %7, align 8
store ptr null, ptr %8, align 8
store ptr null, ptr %9, align 8
store ptr null, ptr %10, align 8
%11 = getelementptr inbounds [15 x i8], ptr %6, i64 0, i64 0
%12 = call ptr @astrcpy(ptr noundef %11)
store ptr %12, ptr %7, align 8
%13 = load ptr, ptr %7, align 8
%14 = icmp ne ptr %13, null
br i1 %14, label %15, label %46
15: ; preds = %2
%16 = getelementptr inbounds [15 x i8], ptr %6, i64 0, i64 0
%17 = call ptr @astrleft(ptr noundef %16, i32 noundef 4)
store ptr %17, ptr %8, align 8
%18 = load ptr, ptr %8, align 8
%19 = icmp ne ptr %18, null
br i1 %19, label %20, label %23
20: ; preds = %15
%21 = load ptr, ptr %8, align 8
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %21)
br label %25
23: ; preds = %15
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %25
25: ; preds = %23, %20
%26 = load ptr, ptr %7, align 8
%27 = call ptr @astrmid(ptr noundef %26, i32 noundef 2, i32 noundef 6)
store ptr %27, ptr %9, align 8
%28 = load ptr, ptr %9, align 8
%29 = icmp ne ptr %28, null
br i1 %29, label %30, label %33
30: ; preds = %25
%31 = load ptr, ptr %9, align 8
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %31)
br label %35
33: ; preds = %25
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %35
35: ; preds = %33, %30
%36 = load ptr, ptr %7, align 8
%37 = call ptr @astrright(ptr noundef %36, i32 noundef 2)
store ptr %37, ptr %10, align 8
%38 = load ptr, ptr %10, align 8
%39 = icmp ne ptr %38, null
br i1 %39, label %40, label %43
40: ; preds = %35
%41 = load ptr, ptr %10, align 8
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %41)
br label %45
43: ; preds = %35
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
br label %45
45: ; preds = %43, %40
br label %46
46: ; preds = %45, %2
%47 = load ptr, ptr %7, align 8
%48 = icmp ne ptr %47, null
br i1 %48, label %49, label %52
49: ; preds = %46
%50 = load ptr, ptr %7, align 8
%51 = call i32 @free(ptr noundef %50)
br label %52
52: ; preds = %49, %46
%53 = load ptr, ptr %8, align 8
%54 = icmp ne ptr %53, null
br i1 %54, label %55, label %58
55: ; preds = %52
%56 = load ptr, ptr %8, align 8
%57 = call i32 @free(ptr noundef %56)
br label %58
58: ; preds = %55, %52
%59 = load ptr, ptr %9, align 8
%60 = icmp ne ptr %59, null
br i1 %60, label %61, label %64
61: ; preds = %58
%62 = load ptr, ptr %9, align 8
%63 = call i32 @free(ptr noundef %62)
br label %64
64: ; preds = %61, %58
%65 = load ptr, ptr %10, align 8
%66 = icmp ne ptr %65, null
br i1 %66, label %67, label %70
67: ; preds = %64
%68 = load ptr, ptr %10, align 8
%69 = call i32 @free(ptr noundef %68)
br label %70
70: ; preds = %67, %64
%71 = load i32, ptr @EXIT_SUCCESS, align 4
%72 = call i32 @exit(i32 noundef %71) #4
unreachable
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare ptr @astrcpy(ptr noundef) #2
declare ptr @astrleft(ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, ...) #2
declare ptr @astrmid(ptr noundef, i32 noundef, i32 noundef) #2
declare ptr @astrright(ptr noundef, i32 noundef) #2
declare i32 @free(ptr noundef) #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpj6o6kng5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.testString = private unnamed_addr constant [15 x i8] c"This is a test\00", align 1
@.str = private unnamed_addr constant [15 x i8] c"Left(4): \22%s\22\0A\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"Error calling astrleft()\0A\00", align 1
@.str.2 = private unnamed_addr constant [17 x i8] c"Mid(2, 6): \22%s\22\0A\00", align 1
@.str.3 = private unnamed_addr constant [25 x i8] c"Error calling astrmid()\0A\00", align 1
@.str.4 = private unnamed_addr constant [16 x i8] c"Right(2): \22%s\22\0A\00", align 1
@.str.5 = private unnamed_addr constant [27 x i8] c"Error calling astrright()\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [15 x i8], align 1
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = 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
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %6, ptr align 1 @__const.main.testString, i64 15, i1 false)
store ptr null, ptr %7, align 8
store ptr null, ptr %8, align 8
store ptr null, ptr %9, align 8
store ptr null, ptr %10, align 8
%11 = getelementptr inbounds [15 x i8], ptr %6, i64 0, i64 0
%12 = call ptr @astrcpy(ptr noundef %11)
store ptr %12, ptr %7, align 8
%13 = load ptr, ptr %7, align 8
%14 = icmp ne ptr %13, null
br i1 %14, label %15, label %46
15: ; preds = %2
%16 = getelementptr inbounds [15 x i8], ptr %6, i64 0, i64 0
%17 = call ptr @astrleft(ptr noundef %16, i32 noundef 4)
store ptr %17, ptr %8, align 8
%18 = load ptr, ptr %8, align 8
%19 = icmp ne ptr %18, null
br i1 %19, label %20, label %23
20: ; preds = %15
%21 = load ptr, ptr %8, align 8
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %21)
br label %25
23: ; preds = %15
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %25
25: ; preds = %23, %20
%26 = load ptr, ptr %7, align 8
%27 = call ptr @astrmid(ptr noundef %26, i32 noundef 2, i32 noundef 6)
store ptr %27, ptr %9, align 8
%28 = load ptr, ptr %9, align 8
%29 = icmp ne ptr %28, null
br i1 %29, label %30, label %33
30: ; preds = %25
%31 = load ptr, ptr %9, align 8
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %31)
br label %35
33: ; preds = %25
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %35
35: ; preds = %33, %30
%36 = load ptr, ptr %7, align 8
%37 = call ptr @astrright(ptr noundef %36, i32 noundef 2)
store ptr %37, ptr %10, align 8
%38 = load ptr, ptr %10, align 8
%39 = icmp ne ptr %38, null
br i1 %39, label %40, label %43
40: ; preds = %35
%41 = load ptr, ptr %10, align 8
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %41)
br label %45
43: ; preds = %35
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
br label %45
45: ; preds = %43, %40
br label %46
46: ; preds = %45, %2
%47 = load ptr, ptr %7, align 8
%48 = icmp ne ptr %47, null
br i1 %48, label %49, label %52
49: ; preds = %46
%50 = load ptr, ptr %7, align 8
%51 = call i32 @free(ptr noundef %50)
br label %52
52: ; preds = %49, %46
%53 = load ptr, ptr %8, align 8
%54 = icmp ne ptr %53, null
br i1 %54, label %55, label %58
55: ; preds = %52
%56 = load ptr, ptr %8, align 8
%57 = call i32 @free(ptr noundef %56)
br label %58
58: ; preds = %55, %52
%59 = load ptr, ptr %9, align 8
%60 = icmp ne ptr %59, null
br i1 %60, label %61, label %64
61: ; preds = %58
%62 = load ptr, ptr %9, align 8
%63 = call i32 @free(ptr noundef %62)
br label %64
64: ; preds = %61, %58
%65 = load ptr, ptr %10, align 8
%66 = icmp ne ptr %65, null
br i1 %66, label %67, label %70
67: ; preds = %64
%68 = load ptr, ptr %10, align 8
%69 = call i32 @free(ptr noundef %68)
br label %70
70: ; preds = %67, %64
%71 = load i32, ptr @EXIT_SUCCESS, align 4
%72 = call i32 @exit(i32 noundef %71) #4
unreachable
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare ptr @astrcpy(ptr noundef) #2
declare ptr @astrleft(ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef, ...) #2
declare ptr @astrmid(ptr noundef, i32 noundef, i32 noundef) #2
declare ptr @astrright(ptr noundef, i32 noundef) #2
declare i32 @free(ptr noundef) #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp82faarz1.c'
source_filename = "/tmp/tmp82faarz1.c"
target datalayout = "e-m:e-p270: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.rusage = type { i64, i64, %struct.timeval, %struct.timeval }
%struct.timeval = type { i64, i64 }
@RUSAGE_SELF = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [5 x i8] c"%ld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca %struct.rusage, align 8
%3 = alloca %struct.timeval, align 8
%4 = alloca %struct.timeval, align 8
%5 = alloca i64, align 8
store i32 0, ptr %1, align 4
%6 = load i32, ptr @RUSAGE_SELF, align 4
%7 = call i32 @getrusage(i32 noundef %6, ptr noundef %2)
%8 = getelementptr inbounds %struct.rusage, ptr %2, i32 0, i32 3
call void @llvm.memcpy.p0.p0.i64(ptr align 8 %3, ptr align 8 %8, i64 16, i1 false)
%9 = getelementptr inbounds %struct.rusage, ptr %2, i32 0, i32 2
call void @llvm.memcpy.p0.p0.i64(ptr align 8 %4, ptr align 8 %9, i64 16, i1 false)
%10 = getelementptr inbounds %struct.rusage, ptr %2, i32 0, i32 0
%11 = load i64, ptr %10, align 8
%12 = getelementptr inbounds %struct.rusage, ptr %2, i32 0, i32 1
%13 = load i64, ptr %12, align 8
%14 = add nsw i64 %11, %13
store i64 %14, ptr %5, align 8
%15 = getelementptr inbounds %struct.timeval, ptr %3, i32 0, i32 0
%16 = load i64, ptr %15, align 8
%17 = getelementptr inbounds %struct.timeval, ptr %4, i32 0, i32 1
%18 = load i64, ptr %17, align 8
%19 = add nsw i64 %16, %18
%20 = load i64, ptr %5, align 8
%21 = sdiv i64 %19, %20
store i64 %21, ptr %5, align 8
%22 = load i64, ptr %5, align 8
%23 = call i32 @printf(ptr noundef @.str, i64 noundef %22)
ret i32 0
}
declare i32 @getrusage(i32 noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
declare i32 @printf(ptr noundef, 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" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp82faarz1.c"
target datalayout = "e-m:e-p270: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.rusage = type { i64, i64, %struct.timeval, %struct.timeval }
%struct.timeval = type { i64, i64 }
@RUSAGE_SELF = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [5 x i8] c"%ld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca %struct.rusage, align 8
%3 = alloca %struct.timeval, align 8
%4 = alloca %struct.timeval, align 8
%5 = alloca i64, align 8
store i32 0, ptr %1, align 4
%6 = load i32, ptr @RUSAGE_SELF, align 4
%7 = call i32 @getrusage(i32 noundef %6, ptr noundef %2)
%8 = getelementptr inbounds %struct.rusage, ptr %2, i32 0, i32 3
call void @llvm.memcpy.p0.p0.i64(ptr align 8 %3, ptr align 8 %8, i64 16, i1 false)
%9 = getelementptr inbounds %struct.rusage, ptr %2, i32 0, i32 2
call void @llvm.memcpy.p0.p0.i64(ptr align 8 %4, ptr align 8 %9, i64 16, i1 false)
%10 = getelementptr inbounds %struct.rusage, ptr %2, i32 0, i32 0
%11 = load i64, ptr %10, align 8
%12 = getelementptr inbounds %struct.rusage, ptr %2, i32 0, i32 1
%13 = load i64, ptr %12, align 8
%14 = add nsw i64 %11, %13
store i64 %14, ptr %5, align 8
%15 = getelementptr inbounds %struct.timeval, ptr %3, i32 0, i32 0
%16 = load i64, ptr %15, align 8
%17 = getelementptr inbounds %struct.timeval, ptr %4, i32 0, i32 1
%18 = load i64, ptr %17, align 8
%19 = add nsw i64 %16, %18
%20 = load i64, ptr %5, align 8
%21 = sdiv i64 %19, %20
store i64 %21, ptr %5, align 8
%22 = load i64, ptr %5, align 8
%23 = call i32 @printf(ptr noundef @.str, i64 noundef %22)
ret i32 0
}
declare i32 @getrusage(i32 noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
declare i32 @printf(ptr noundef, 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" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpex7fsg60.c'
source_filename = "/tmp/tmpex7fsg60.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @add_all_word8(i64 noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, i64 noundef %4, i64 noundef %5, i64 noundef %6, i64 noundef %7, i64 noundef %8, i64 noundef %9) #0 {
%11 = alloca i64, align 8
%12 = alloca i64, align 8
%13 = alloca i64, align 8
%14 = alloca i64, align 8
%15 = alloca i64, align 8
%16 = alloca i64, align 8
%17 = alloca i64, align 8
%18 = alloca i64, align 8
%19 = alloca i64, align 8
%20 = alloca i64, align 8
store i64 %0, ptr %11, align 8
store i64 %1, ptr %12, align 8
store i64 %2, ptr %13, align 8
store i64 %3, ptr %14, align 8
store i64 %4, ptr %15, align 8
store i64 %5, ptr %16, align 8
store i64 %6, ptr %17, align 8
store i64 %7, ptr %18, align 8
store i64 %8, ptr %19, align 8
store i64 %9, ptr %20, align 8
%21 = load i64, ptr %11, align 8
%22 = load i64, ptr %12, align 8
%23 = add nsw i64 %21, %22
%24 = load i64, ptr %13, align 8
%25 = add nsw i64 %23, %24
%26 = load i64, ptr %14, align 8
%27 = add nsw i64 %25, %26
%28 = load i64, ptr %15, align 8
%29 = add nsw i64 %27, %28
%30 = load i64, ptr %16, align 8
%31 = add nsw i64 %29, %30
%32 = load i64, ptr %17, align 8
%33 = add nsw i64 %31, %32
%34 = load i64, ptr %18, align 8
%35 = add nsw i64 %33, %34
%36 = load i64, ptr %19, align 8
%37 = add nsw i64 %35, %36
%38 = load i64, ptr %20, align 8
%39 = add nsw i64 %37, %38
ret i64 %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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpex7fsg60.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @add_all_word8(i64 noundef %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, i64 noundef %4, i64 noundef %5, i64 noundef %6, i64 noundef %7, i64 noundef %8, i64 noundef %9) #0 {
%11 = alloca i64, align 8
%12 = alloca i64, align 8
%13 = alloca i64, align 8
%14 = alloca i64, align 8
%15 = alloca i64, align 8
%16 = alloca i64, align 8
%17 = alloca i64, align 8
%18 = alloca i64, align 8
%19 = alloca i64, align 8
%20 = alloca i64, align 8
store i64 %0, ptr %11, align 8
store i64 %1, ptr %12, align 8
store i64 %2, ptr %13, align 8
store i64 %3, ptr %14, align 8
store i64 %4, ptr %15, align 8
store i64 %5, ptr %16, align 8
store i64 %6, ptr %17, align 8
store i64 %7, ptr %18, align 8
store i64 %8, ptr %19, align 8
store i64 %9, ptr %20, align 8
%21 = load i64, ptr %11, align 8
%22 = load i64, ptr %12, align 8
%23 = add nsw i64 %21, %22
%24 = load i64, ptr %13, align 8
%25 = add nsw i64 %23, %24
%26 = load i64, ptr %14, align 8
%27 = add nsw i64 %25, %26
%28 = load i64, ptr %15, align 8
%29 = add nsw i64 %27, %28
%30 = load i64, ptr %16, align 8
%31 = add nsw i64 %29, %30
%32 = load i64, ptr %17, align 8
%33 = add nsw i64 %31, %32
%34 = load i64, ptr %18, align 8
%35 = add nsw i64 %33, %34
%36 = load i64, ptr %19, align 8
%37 = add nsw i64 %35, %36
%38 = load i64, ptr %20, align 8
%39 = add nsw i64 %37, %38
ret i64 %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"}
|
; ModuleID = '/tmp/tmpv58qk011.c'
source_filename = "/tmp/tmpv58qk011.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @isfinite(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store double %0, ptr %2, align 8
%5 = load double, ptr %2, align 8
%6 = call i32 @double_to_bits(double noundef %5)
%7 = ashr i32 %6, 52
%8 = and i32 %7, 2047
%9 = sext i32 %8 to i64
store i64 %9, ptr %3, align 8
%10 = load double, ptr %2, align 8
%11 = call i32 @double_to_bits(double noundef %10)
%12 = sext i32 %11 to i64
%13 = and i64 %12, 4503599627370495
store i64 %13, ptr %4, align 8
%14 = load i64, ptr %3, align 8
%15 = icmp ult i64 %14, 2047
%16 = zext i1 %15 to i32
ret i32 %16
}
declare i32 @double_to_bits(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpv58qk011.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @isfinite(double noundef %0) #0 {
%2 = alloca double, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
store double %0, ptr %2, align 8
%5 = load double, ptr %2, align 8
%6 = call i32 @double_to_bits(double noundef %5)
%7 = ashr i32 %6, 52
%8 = and i32 %7, 2047
%9 = sext i32 %8 to i64
store i64 %9, ptr %3, align 8
%10 = load double, ptr %2, align 8
%11 = call i32 @double_to_bits(double noundef %10)
%12 = sext i32 %11 to i64
%13 = and i64 %12, 4503599627370495
store i64 %13, ptr %4, align 8
%14 = load i64, ptr %3, align 8
%15 = icmp ult i64 %14, 2047
%16 = zext i1 %15 to i32
ret i32 %16
}
declare i32 @double_to_bits(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpq_u5faux.c'
source_filename = "/tmp/tmpq_u5faux.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @f_min_int16_t(ptr noalias noundef %0, ptr noalias noundef %1, i64 noundef %2, ptr noalias noundef %3, ptr noalias noundef %4, i32 noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i64, align 8
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store i64 %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store i32 %5, ptr %12, align 4
store i32 0, ptr %13, align 4
br label %15
15: ; preds = %66, %6
%16 = load i32, ptr %13, align 4
%17 = load i32, ptr %12, align 4
%18 = icmp ult i32 %16, %17
br i1 %18, label %19, label %69
19: ; preds = %15
%20 = load ptr, ptr %10, align 8
%21 = load i32, ptr %13, align 4
%22 = zext i32 %21 to i64
%23 = getelementptr inbounds i64, ptr %20, i64 %22
%24 = load i64, ptr %23, align 8
%25 = load ptr, ptr %11, align 8
%26 = load i32, ptr %13, align 4
%27 = zext i32 %26 to i64
%28 = getelementptr inbounds i64, ptr %25, i64 %27
%29 = load i64, ptr %28, align 8
%30 = icmp slt i64 %24, %29
br i1 %30, label %31, label %37
31: ; preds = %19
%32 = load ptr, ptr %10, align 8
%33 = load i32, ptr %13, align 4
%34 = zext i32 %33 to i64
%35 = getelementptr inbounds i64, ptr %32, i64 %34
%36 = load i64, ptr %35, align 8
br label %43
37: ; preds = %19
%38 = load ptr, ptr %11, align 8
%39 = load i32, ptr %13, align 4
%40 = zext i32 %39 to i64
%41 = getelementptr inbounds i64, ptr %38, i64 %40
%42 = load i64, ptr %41, align 8
br label %43
43: ; preds = %37, %31
%44 = phi i64 [ %36, %31 ], [ %42, %37 ]
store i64 %44, ptr %14, align 8
%45 = load ptr, ptr %8, align 8
%46 = load i32, ptr %13, align 4
%47 = zext i32 %46 to i64
%48 = getelementptr inbounds i64, ptr %45, i64 %47
%49 = load i64, ptr %48, align 8
%50 = load i64, ptr %9, align 8
%51 = icmp slt i64 %49, %50
br i1 %51, label %52, label %54
52: ; preds = %43
%53 = load i64, ptr %14, align 8
br label %60
54: ; preds = %43
%55 = load ptr, ptr %11, align 8
%56 = load i32, ptr %13, align 4
%57 = zext i32 %56 to i64
%58 = getelementptr inbounds i64, ptr %55, i64 %57
%59 = load i64, ptr %58, align 8
br label %60
60: ; preds = %54, %52
%61 = phi i64 [ %53, %52 ], [ %59, %54 ]
%62 = load ptr, ptr %7, align 8
%63 = load i32, ptr %13, align 4
%64 = zext i32 %63 to i64
%65 = getelementptr inbounds i64, ptr %62, i64 %64
store i64 %61, ptr %65, align 8
br label %66
66: ; preds = %60
%67 = load i32, ptr %13, align 4
%68 = add i32 %67, 1
store i32 %68, ptr %13, align 4
br label %15, !llvm.loop !6
69: ; preds = %15
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpq_u5faux.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @f_min_int16_t(ptr noalias noundef %0, ptr noalias noundef %1, i64 noundef %2, ptr noalias noundef %3, ptr noalias noundef %4, i32 noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i64, align 8
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store i64 %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store i32 %5, ptr %12, align 4
store i32 0, ptr %13, align 4
%15 = load i32, ptr %13, align 4
%16 = load i32, ptr %12, align 4
%17 = icmp ult i32 %15, %16
br i1 %17, label %.lr.ph, label %71
.lr.ph: ; preds = %6
br label %18
18: ; preds = %.lr.ph, %65
%19 = load ptr, ptr %10, align 8
%20 = load i32, ptr %13, align 4
%21 = zext i32 %20 to i64
%22 = getelementptr inbounds i64, ptr %19, i64 %21
%23 = load i64, ptr %22, align 8
%24 = load ptr, ptr %11, align 8
%25 = load i32, ptr %13, align 4
%26 = zext i32 %25 to i64
%27 = getelementptr inbounds i64, ptr %24, i64 %26
%28 = load i64, ptr %27, align 8
%29 = icmp slt i64 %23, %28
br i1 %29, label %30, label %36
30: ; preds = %18
%31 = load ptr, ptr %10, align 8
%32 = load i32, ptr %13, align 4
%33 = zext i32 %32 to i64
%34 = getelementptr inbounds i64, ptr %31, i64 %33
%35 = load i64, ptr %34, align 8
br label %42
36: ; preds = %18
%37 = load ptr, ptr %11, align 8
%38 = load i32, ptr %13, align 4
%39 = zext i32 %38 to i64
%40 = getelementptr inbounds i64, ptr %37, i64 %39
%41 = load i64, ptr %40, align 8
br label %42
42: ; preds = %36, %30
%43 = phi i64 [ %35, %30 ], [ %41, %36 ]
store i64 %43, ptr %14, align 8
%44 = load ptr, ptr %8, align 8
%45 = load i32, ptr %13, align 4
%46 = zext i32 %45 to i64
%47 = getelementptr inbounds i64, ptr %44, i64 %46
%48 = load i64, ptr %47, align 8
%49 = load i64, ptr %9, align 8
%50 = icmp slt i64 %48, %49
br i1 %50, label %51, label %53
51: ; preds = %42
%52 = load i64, ptr %14, align 8
br label %59
53: ; preds = %42
%54 = load ptr, ptr %11, align 8
%55 = load i32, ptr %13, align 4
%56 = zext i32 %55 to i64
%57 = getelementptr inbounds i64, ptr %54, i64 %56
%58 = load i64, ptr %57, align 8
br label %59
59: ; preds = %53, %51
%60 = phi i64 [ %52, %51 ], [ %58, %53 ]
%61 = load ptr, ptr %7, align 8
%62 = load i32, ptr %13, align 4
%63 = zext i32 %62 to i64
%64 = getelementptr inbounds i64, ptr %61, i64 %63
store i64 %60, ptr %64, align 8
br label %65
65: ; preds = %59
%66 = load i32, ptr %13, align 4
%67 = add i32 %66, 1
store i32 %67, ptr %13, align 4
%68 = load i32, ptr %13, align 4
%69 = load i32, ptr %12, align 4
%70 = icmp ult i32 %68, %69
br i1 %70, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %65
br label %71
71: ; preds = %._crit_edge, %6
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpbra23sr8.c'
source_filename = "/tmp/tmpbra23sr8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @test_InterlockedAdd_constant(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i64 @_InterlockedAdd(ptr noundef %3, i32 noundef -1)
ret i64 %4
}
declare i64 @_InterlockedAdd(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/tmpbra23sr8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @test_InterlockedAdd_constant(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i64 @_InterlockedAdd(ptr noundef %3, i32 noundef -1)
ret i64 %4
}
declare i64 @_InterlockedAdd(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/tmp2nf4n8l4.c'
source_filename = "/tmp/tmp2nf4n8l4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ycbcr2rgb(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = alloca float, align 4
%10 = alloca float, align 4
store ptr %0, ptr %2, align 8
store float 0x3FCB367A00000000, ptr %3, align 4
store float 0x3FB27BB300000000, ptr %4, align 4
%11 = load float, ptr %3, align 4
%12 = fsub float 1.000000e+00, %11
%13 = load float, ptr %4, align 4
%14 = fsub float %12, %13
store float %14, ptr %5, align 4
store float 5.000000e-01, ptr %6, align 4
store float 5.000000e-01, ptr %7, align 4
%15 = load ptr, ptr %2, align 8
%16 = getelementptr inbounds float, ptr %15, i64 0
%17 = load float, ptr %16, align 4
store float %17, ptr %8, align 4
%18 = load ptr, ptr %2, align 8
%19 = getelementptr inbounds float, ptr %18, i64 1
%20 = load float, ptr %19, align 4
store float %20, ptr %9, align 4
%21 = load ptr, ptr %2, align 8
%22 = getelementptr inbounds float, ptr %21, i64 2
%23 = load float, ptr %22, align 4
store float %23, ptr %10, align 4
%24 = load float, ptr %8, align 4
%25 = load float, ptr %3, align 4
%26 = fsub float 1.000000e+00, %25
%27 = load float, ptr %7, align 4
%28 = fdiv float %26, %27
%29 = load float, ptr %10, align 4
%30 = call float @llvm.fmuladd.f32(float %28, float %29, float %24)
%31 = call float @fclampf(float noundef %30, float noundef 0.000000e+00, float noundef 1.000000e+00)
%32 = load ptr, ptr %2, align 8
%33 = getelementptr inbounds float, ptr %32, i64 0
store float %31, ptr %33, align 4
%34 = load float, ptr %8, align 4
%35 = load float, ptr %4, align 4
%36 = load float, ptr %4, align 4
%37 = fsub float 1.000000e+00, %36
%38 = fmul float %35, %37
%39 = load float, ptr %6, align 4
%40 = load float, ptr %5, align 4
%41 = fmul float %39, %40
%42 = fdiv float %38, %41
%43 = load float, ptr %9, align 4
%44 = fneg float %42
%45 = call float @llvm.fmuladd.f32(float %44, float %43, float %34)
%46 = load float, ptr %3, align 4
%47 = load float, ptr %3, align 4
%48 = fsub float 1.000000e+00, %47
%49 = fmul float %46, %48
%50 = load float, ptr %7, align 4
%51 = load float, ptr %5, align 4
%52 = fmul float %50, %51
%53 = fdiv float %49, %52
%54 = load float, ptr %10, align 4
%55 = fneg float %53
%56 = call float @llvm.fmuladd.f32(float %55, float %54, float %45)
%57 = call float @fclampf(float noundef %56, float noundef 0.000000e+00, float noundef 1.000000e+00)
%58 = load ptr, ptr %2, align 8
%59 = getelementptr inbounds float, ptr %58, i64 1
store float %57, ptr %59, align 4
%60 = load float, ptr %8, align 4
%61 = load float, ptr %4, align 4
%62 = fsub float 1.000000e+00, %61
%63 = load float, ptr %6, align 4
%64 = fdiv float %62, %63
%65 = load float, ptr %9, align 4
%66 = call float @llvm.fmuladd.f32(float %64, float %65, float %60)
%67 = call float @fclampf(float noundef %66, float noundef 0.000000e+00, float noundef 1.000000e+00)
%68 = load ptr, ptr %2, align 8
%69 = getelementptr inbounds float, ptr %68, i64 2
store float %67, ptr %69, align 4
ret void
}
declare float @fclampf(float noundef, float noundef, float noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmp2nf4n8l4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ycbcr2rgb(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca float, align 4
%4 = alloca float, align 4
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = alloca float, align 4
%10 = alloca float, align 4
store ptr %0, ptr %2, align 8
store float 0x3FCB367A00000000, ptr %3, align 4
store float 0x3FB27BB300000000, ptr %4, align 4
%11 = load float, ptr %3, align 4
%12 = fsub float 1.000000e+00, %11
%13 = load float, ptr %4, align 4
%14 = fsub float %12, %13
store float %14, ptr %5, align 4
store float 5.000000e-01, ptr %6, align 4
store float 5.000000e-01, ptr %7, align 4
%15 = load ptr, ptr %2, align 8
%16 = getelementptr inbounds float, ptr %15, i64 0
%17 = load float, ptr %16, align 4
store float %17, ptr %8, align 4
%18 = load ptr, ptr %2, align 8
%19 = getelementptr inbounds float, ptr %18, i64 1
%20 = load float, ptr %19, align 4
store float %20, ptr %9, align 4
%21 = load ptr, ptr %2, align 8
%22 = getelementptr inbounds float, ptr %21, i64 2
%23 = load float, ptr %22, align 4
store float %23, ptr %10, align 4
%24 = load float, ptr %8, align 4
%25 = load float, ptr %3, align 4
%26 = fsub float 1.000000e+00, %25
%27 = load float, ptr %7, align 4
%28 = fdiv float %26, %27
%29 = load float, ptr %10, align 4
%30 = call float @llvm.fmuladd.f32(float %28, float %29, float %24)
%31 = call float @fclampf(float noundef %30, float noundef 0.000000e+00, float noundef 1.000000e+00)
%32 = load ptr, ptr %2, align 8
%33 = getelementptr inbounds float, ptr %32, i64 0
store float %31, ptr %33, align 4
%34 = load float, ptr %8, align 4
%35 = load float, ptr %4, align 4
%36 = load float, ptr %4, align 4
%37 = fsub float 1.000000e+00, %36
%38 = fmul float %35, %37
%39 = load float, ptr %6, align 4
%40 = load float, ptr %5, align 4
%41 = fmul float %39, %40
%42 = fdiv float %38, %41
%43 = load float, ptr %9, align 4
%44 = fneg float %42
%45 = call float @llvm.fmuladd.f32(float %44, float %43, float %34)
%46 = load float, ptr %3, align 4
%47 = load float, ptr %3, align 4
%48 = fsub float 1.000000e+00, %47
%49 = fmul float %46, %48
%50 = load float, ptr %7, align 4
%51 = load float, ptr %5, align 4
%52 = fmul float %50, %51
%53 = fdiv float %49, %52
%54 = load float, ptr %10, align 4
%55 = fneg float %53
%56 = call float @llvm.fmuladd.f32(float %55, float %54, float %45)
%57 = call float @fclampf(float noundef %56, float noundef 0.000000e+00, float noundef 1.000000e+00)
%58 = load ptr, ptr %2, align 8
%59 = getelementptr inbounds float, ptr %58, i64 1
store float %57, ptr %59, align 4
%60 = load float, ptr %8, align 4
%61 = load float, ptr %4, align 4
%62 = fsub float 1.000000e+00, %61
%63 = load float, ptr %6, align 4
%64 = fdiv float %62, %63
%65 = load float, ptr %9, align 4
%66 = call float @llvm.fmuladd.f32(float %64, float %65, float %60)
%67 = call float @fclampf(float noundef %66, float noundef 0.000000e+00, float noundef 1.000000e+00)
%68 = load ptr, ptr %2, align 8
%69 = getelementptr inbounds float, ptr %68, i64 2
store float %67, ptr %69, align 4
ret void
}
declare float @fclampf(float noundef, float noundef, float noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmpwnhpgc2x.c'
source_filename = "/tmp/tmpwnhpgc2x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@UTMP_FILE = dso_local global i32 0, align 4
@EXIT_FAILURE = dso_local global i32 0, align 4
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = load i32, ptr @UTMP_FILE, align 4
%9 = call i32 @utmp_open(i32 noundef %8)
store i32 %9, ptr %7, align 4
%10 = load i32, ptr %7, align 4
%11 = icmp eq i32 %10, -1
br i1 %11, label %12, label %17
12: ; preds = %2
%13 = load i32, ptr @UTMP_FILE, align 4
%14 = call i32 @perror(i32 noundef %13)
%15 = load i32, ptr @EXIT_FAILURE, align 4
%16 = call i32 @exit(i32 noundef %15) #3
unreachable
17: ; preds = %2
br label %18
18: ; preds = %21, %17
%19 = call ptr (...) @utmp_next()
store ptr %19, ptr %6, align 8
%20 = icmp ne ptr %19, null
br i1 %20, label %21, label %24
21: ; preds = %18
%22 = load ptr, ptr %6, align 8
%23 = call i32 @show_info(ptr noundef %22)
br label %18, !llvm.loop !6
24: ; preds = %18
%25 = call i32 (...) @utmp_close()
%26 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %26
}
declare i32 @utmp_open(i32 noundef) #1
declare i32 @perror(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @utmp_next(...) #1
declare i32 @show_info(ptr noundef) #1
declare i32 @utmp_close(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmpwnhpgc2x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@UTMP_FILE = dso_local global i32 0, align 4
@EXIT_FAILURE = dso_local global i32 0, align 4
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = load i32, ptr @UTMP_FILE, align 4
%9 = call i32 @utmp_open(i32 noundef %8)
store i32 %9, ptr %7, align 4
%10 = load i32, ptr %7, align 4
%11 = icmp eq i32 %10, -1
br i1 %11, label %12, label %17
12: ; preds = %2
%13 = load i32, ptr @UTMP_FILE, align 4
%14 = call i32 @perror(i32 noundef %13)
%15 = load i32, ptr @EXIT_FAILURE, align 4
%16 = call i32 @exit(i32 noundef %15) #3
unreachable
17: ; preds = %2
%18 = call ptr (...) @utmp_next()
store ptr %18, ptr %6, align 8
%19 = icmp ne ptr %18, null
br i1 %19, label %.lr.ph, label %25
.lr.ph: ; preds = %17
br label %20
20: ; preds = %.lr.ph, %20
%21 = load ptr, ptr %6, align 8
%22 = call i32 @show_info(ptr noundef %21)
%23 = call ptr (...) @utmp_next()
store ptr %23, ptr %6, align 8
%24 = icmp ne ptr %23, null
br i1 %24, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %25
25: ; preds = %._crit_edge, %17
%26 = call i32 (...) @utmp_close()
%27 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %27
}
declare i32 @utmp_open(i32 noundef) #1
declare i32 @perror(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @utmp_next(...) #1
declare i32 @show_info(ptr noundef) #1
declare i32 @utmp_close(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmpu0ake2y5.c'
source_filename = "/tmp/tmpu0ake2y5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @RecordLetter(i8 noundef signext %0, ptr noundef %1) #0 {
%3 = alloca i8, align 1
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i8 %0, ptr %3, align 1
store ptr %1, ptr %4, align 8
%6 = load i8, ptr %3, align 1
%7 = call i32 @LetterIndex(i8 noundef signext %6)
store i32 %7, ptr %5, align 4
%8 = load i32, ptr %5, align 4
%9 = icmp ne i32 %8, -1
br i1 %9, label %10, label %17
10: ; preds = %2
%11 = load ptr, ptr %4, align 8
%12 = load i32, ptr %5, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i32, ptr %11, i64 %13
%15 = load i32, ptr %14, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %14, align 4
br label %17
17: ; preds = %10, %2
ret void
}
declare i32 @LetterIndex(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/tmpu0ake2y5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @RecordLetter(i8 noundef signext %0, ptr noundef %1) #0 {
%3 = alloca i8, align 1
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i8 %0, ptr %3, align 1
store ptr %1, ptr %4, align 8
%6 = load i8, ptr %3, align 1
%7 = call i32 @LetterIndex(i8 noundef signext %6)
store i32 %7, ptr %5, align 4
%8 = load i32, ptr %5, align 4
%9 = icmp ne i32 %8, -1
br i1 %9, label %10, label %17
10: ; preds = %2
%11 = load ptr, ptr %4, align 8
%12 = load i32, ptr %5, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i32, ptr %11, i64 %13
%15 = load i32, ptr %14, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %14, align 4
br label %17
17: ; preds = %10, %2
ret void
}
declare i32 @LetterIndex(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/tmp7lek_hlj.c'
source_filename = "/tmp/tmp7lek_hlj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sanatize_name(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 %4, align 8
%7 = call i64 @strlen(ptr noundef %6)
%8 = add nsw i64 %7, 1
%9 = call i64 @allocate(i64 noundef %8)
%10 = inttoptr i64 %9 to ptr
%11 = load ptr, ptr %3, align 8
store ptr %10, ptr %11, align 8
%12 = load ptr, ptr %3, align 8
%13 = load ptr, ptr %12, align 8
%14 = load ptr, ptr %4, align 8
%15 = call i32 @strcpy(ptr noundef %13, ptr noundef %14)
%16 = load ptr, ptr %3, align 8
%17 = load ptr, ptr %16, align 8
%18 = call ptr @strchr(ptr noundef %17, i8 noundef signext 58)
store ptr %18, ptr %5, align 8
br label %19
19: ; preds = %22, %2
%20 = load ptr, ptr %5, align 8
%21 = icmp ne ptr %20, null
br i1 %21, label %22, label %26
22: ; preds = %19
%23 = load ptr, ptr %5, align 8
store i8 95, ptr %23, align 1
%24 = load ptr, ptr %5, align 8
%25 = call ptr @strchr(ptr noundef %24, i8 noundef signext 58)
store ptr %25, ptr %5, align 8
br label %19, !llvm.loop !6
26: ; preds = %19
ret void
}
declare i64 @allocate(i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare ptr @strchr(ptr noundef, 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/tmp7lek_hlj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sanatize_name(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 %4, align 8
%7 = call i64 @strlen(ptr noundef %6)
%8 = add nsw i64 %7, 1
%9 = call i64 @allocate(i64 noundef %8)
%10 = inttoptr i64 %9 to ptr
%11 = load ptr, ptr %3, align 8
store ptr %10, ptr %11, align 8
%12 = load ptr, ptr %3, align 8
%13 = load ptr, ptr %12, align 8
%14 = load ptr, ptr %4, align 8
%15 = call i32 @strcpy(ptr noundef %13, ptr noundef %14)
%16 = load ptr, ptr %3, align 8
%17 = load ptr, ptr %16, align 8
%18 = call ptr @strchr(ptr noundef %17, i8 noundef signext 58)
store ptr %18, ptr %5, align 8
%19 = load ptr, ptr %5, align 8
%20 = icmp ne ptr %19, null
br i1 %20, label %.lr.ph, label %27
.lr.ph: ; preds = %2
br label %21
21: ; preds = %.lr.ph, %21
%22 = load ptr, ptr %5, align 8
store i8 95, ptr %22, align 1
%23 = load ptr, ptr %5, align 8
%24 = call ptr @strchr(ptr noundef %23, i8 noundef signext 58)
store ptr %24, ptr %5, align 8
%25 = load ptr, ptr %5, align 8
%26 = icmp ne ptr %25, null
br i1 %26, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %27
27: ; preds = %._crit_edge, %2
ret void
}
declare i64 @allocate(i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare ptr @strchr(ptr noundef, 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/tmpyd6iv2tq.c'
source_filename = "/tmp/tmpyd6iv2tq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@GLUT_DOUBLE = dso_local global i32 0, align 4
@GLUT_RGB = dso_local global i32 0, align 4
@GL_BLEND = dso_local global i32 0, align 4
@GL_DEPTH_TEST = 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/tmpyd6iv2tq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@GLUT_DOUBLE = dso_local global i32 0, align 4
@GLUT_RGB = dso_local global i32 0, align 4
@GL_BLEND = dso_local global i32 0, align 4
@GL_DEPTH_TEST = 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/tmptnzjwvvb.c'
source_filename = "/tmp/tmptnzjwvvb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @set_interrupt_on_bus(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = call i32 @write_word_data(i32 noundef %5, i32 noundef 4, i32 noundef %6)
ret void
}
declare i32 @write_word_data(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/tmptnzjwvvb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @set_interrupt_on_bus(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = call i32 @write_word_data(i32 noundef %5, i32 noundef 4, i32 noundef %6)
ret void
}
declare i32 @write_word_data(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/tmpdl3s880n.c'
source_filename = "/tmp/tmpdl3s880n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"/dev/null\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [58 x i8] c"Usage: %s [-p pidfile] [-o logfile] proccess [arguments]\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 ptr, align 8
%8 = alloca ptr, 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
store ptr null, ptr %7, align 8
store ptr @.str, ptr %8, align 8
store ptr null, ptr %9, align 8
store i32 0, ptr %10, align 4
store i32 1, ptr %6, align 4
br label %11
11: ; preds = %96, %2
%12 = load i32, ptr %6, align 4
%13 = load i32, ptr %4, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %15, label %99
15: ; preds = %11
%16 = load ptr, ptr %5, align 8
%17 = load i32, ptr %6, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds ptr, ptr %16, i64 %18
%20 = load ptr, ptr %19, align 8
%21 = getelementptr inbounds i8, ptr %20, i64 0
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %23, 45
br i1 %24, label %25, label %90
25: ; preds = %15
%26 = load ptr, ptr %5, align 8
%27 = load i32, ptr %6, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds ptr, ptr %26, i64 %28
%30 = load ptr, ptr %29, align 8
%31 = getelementptr inbounds i8, ptr %30, i64 1
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = icmp eq i32 %33, 104
br i1 %34, label %35, label %36
35: ; preds = %25
store i32 1, ptr %10, align 4
br label %103
36: ; preds = %25
%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 = getelementptr inbounds i8, ptr %41, i64 1
%43 = load i8, ptr %42, align 1
%44 = sext i8 %43 to i32
%45 = icmp eq i32 %44, 112
br i1 %45, label %46, label %61
46: ; preds = %36
%47 = load i32, ptr %6, align 4
%48 = add nsw i32 %47, 1
%49 = load i32, ptr %4, align 4
%50 = icmp slt i32 %48, %49
br i1 %50, label %51, label %59
51: ; preds = %46
%52 = load i32, ptr %6, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %6, align 4
%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
store ptr %58, ptr %9, align 8
br label %60
59: ; preds = %46
br label %103
60: ; preds = %51
br label %88
61: ; preds = %36
%62 = load ptr, ptr %5, align 8
%63 = load i32, ptr %6, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds ptr, ptr %62, i64 %64
%66 = load ptr, ptr %65, align 8
%67 = getelementptr inbounds i8, ptr %66, i64 1
%68 = load i8, ptr %67, align 1
%69 = sext i8 %68 to i32
%70 = icmp eq i32 %69, 111
br i1 %70, label %71, label %86
71: ; preds = %61
%72 = load i32, ptr %6, align 4
%73 = add nsw i32 %72, 1
%74 = load i32, ptr %4, align 4
%75 = icmp slt i32 %73, %74
br i1 %75, label %76, label %84
76: ; preds = %71
%77 = load i32, ptr %6, align 4
%78 = add nsw i32 %77, 1
store i32 %78, ptr %6, align 4
%79 = load ptr, ptr %5, align 8
%80 = load i32, ptr %6, align 4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds ptr, ptr %79, i64 %81
%83 = load ptr, ptr %82, align 8
store ptr %83, ptr %8, align 8
br label %85
84: ; preds = %71
br label %103
85: ; preds = %76
br label %87
86: ; preds = %61
br label %103
87: ; preds = %85
br label %88
88: ; preds = %87, %60
br label %89
89: ; preds = %88
br label %95
90: ; preds = %15
%91 = load ptr, ptr %5, align 8
%92 = load i32, ptr %6, align 4
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds ptr, ptr %91, i64 %93
store ptr %94, ptr %7, align 8
br label %99
95: ; preds = %89
br label %96
96: ; preds = %95
%97 = load i32, ptr %6, align 4
%98 = add nsw i32 %97, 1
store i32 %98, ptr %6, align 4
br label %11, !llvm.loop !6
99: ; preds = %90, %11
%100 = load ptr, ptr %7, align 8
%101 = icmp ne ptr %100, null
br i1 %101, label %114, label %102
102: ; preds = %99
br label %103
103: ; preds = %102, %86, %84, %59, %35
%104 = load i32, ptr @stderr, align 4
%105 = load ptr, ptr %5, align 8
%106 = getelementptr inbounds ptr, ptr %105, i64 0
%107 = load ptr, ptr %106, align 8
%108 = call i32 @fprintf(i32 noundef %104, ptr noundef @.str.1, ptr noundef %107)
%109 = load i32, ptr %10, align 4
%110 = icmp eq i32 %109, 1
%111 = zext i1 %110 to i64
%112 = select i1 %110, i32 0, i32 1
%113 = call i32 @exit(i32 noundef %112) #3
unreachable
114: ; preds = %99
%115 = load ptr, ptr %7, align 8
%116 = load ptr, ptr %8, align 8
%117 = load ptr, ptr %9, align 8
%118 = call i32 @daemonize(ptr noundef %115, ptr noundef %116, ptr noundef %117)
ret i32 %118
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @daemonize(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" }
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/tmpdl3s880n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"/dev/null\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [58 x i8] c"Usage: %s [-p pidfile] [-o logfile] proccess [arguments]\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 ptr, align 8
%8 = alloca ptr, 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
store ptr null, ptr %7, align 8
store ptr @.str, ptr %8, align 8
store ptr null, ptr %9, align 8
store i32 0, ptr %10, align 4
store i32 1, ptr %6, align 4
%11 = load i32, ptr %6, align 4
%12 = load i32, ptr %4, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %2
br label %14
14: ; preds = %.lr.ph, %95
%15 = load ptr, ptr %5, align 8
%16 = load i32, ptr %6, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds ptr, ptr %15, i64 %17
%19 = load ptr, ptr %18, align 8
%20 = getelementptr inbounds i8, ptr %19, i64 0
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp eq i32 %22, 45
br i1 %23, label %24, label %89
24: ; preds = %14
%25 = load ptr, ptr %5, align 8
%26 = load i32, ptr %6, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds ptr, ptr %25, i64 %27
%29 = load ptr, ptr %28, align 8
%30 = getelementptr inbounds i8, ptr %29, i64 1
%31 = load i8, ptr %30, align 1
%32 = sext i8 %31 to i32
%33 = icmp eq i32 %32, 104
br i1 %33, label %34, label %35
34: ; preds = %24
store i32 1, ptr %10, align 4
br label %105
35: ; preds = %24
%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 = getelementptr inbounds i8, ptr %40, i64 1
%42 = load i8, ptr %41, align 1
%43 = sext i8 %42 to i32
%44 = icmp eq i32 %43, 112
br i1 %44, label %45, label %60
45: ; preds = %35
%46 = load i32, ptr %6, align 4
%47 = add nsw i32 %46, 1
%48 = load i32, ptr %4, align 4
%49 = icmp slt i32 %47, %48
br i1 %49, label %50, label %58
50: ; preds = %45
%51 = load i32, ptr %6, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %6, align 4
%53 = load ptr, ptr %5, align 8
%54 = load i32, ptr %6, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds ptr, ptr %53, i64 %55
%57 = load ptr, ptr %56, align 8
store ptr %57, ptr %9, align 8
br label %59
58: ; preds = %45
br label %105
59: ; preds = %50
br label %87
60: ; preds = %35
%61 = load ptr, ptr %5, align 8
%62 = load i32, ptr %6, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds ptr, ptr %61, i64 %63
%65 = load ptr, ptr %64, align 8
%66 = getelementptr inbounds i8, ptr %65, i64 1
%67 = load i8, ptr %66, align 1
%68 = sext i8 %67 to i32
%69 = icmp eq i32 %68, 111
br i1 %69, label %70, label %85
70: ; preds = %60
%71 = load i32, ptr %6, align 4
%72 = add nsw i32 %71, 1
%73 = load i32, ptr %4, align 4
%74 = icmp slt i32 %72, %73
br i1 %74, label %75, label %83
75: ; preds = %70
%76 = load i32, ptr %6, align 4
%77 = add nsw i32 %76, 1
store i32 %77, ptr %6, align 4
%78 = load ptr, ptr %5, align 8
%79 = load i32, ptr %6, align 4
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds ptr, ptr %78, i64 %80
%82 = load ptr, ptr %81, align 8
store ptr %82, ptr %8, align 8
br label %84
83: ; preds = %70
br label %105
84: ; preds = %75
br label %86
85: ; preds = %60
br label %105
86: ; preds = %84
br label %87
87: ; preds = %86, %59
br label %88
88: ; preds = %87
br label %94
89: ; preds = %14
%90 = load ptr, ptr %5, align 8
%91 = load i32, ptr %6, align 4
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds ptr, ptr %90, i64 %92
store ptr %93, ptr %7, align 8
br label %101
94: ; preds = %88
br label %95
95: ; preds = %94
%96 = load i32, ptr %6, align 4
%97 = add nsw i32 %96, 1
store i32 %97, ptr %6, align 4
%98 = load i32, ptr %6, align 4
%99 = load i32, ptr %4, align 4
%100 = icmp slt i32 %98, %99
br i1 %100, label %14, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %95
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %2
br label %101
101: ; preds = %.loopexit, %89
%102 = load ptr, ptr %7, align 8
%103 = icmp ne ptr %102, null
br i1 %103, label %116, label %104
104: ; preds = %101
br label %105
105: ; preds = %104, %85, %83, %58, %34
%106 = load i32, ptr @stderr, align 4
%107 = load ptr, ptr %5, align 8
%108 = getelementptr inbounds ptr, ptr %107, i64 0
%109 = load ptr, ptr %108, align 8
%110 = call i32 @fprintf(i32 noundef %106, ptr noundef @.str.1, ptr noundef %109)
%111 = load i32, ptr %10, align 4
%112 = icmp eq i32 %111, 1
%113 = zext i1 %112 to i64
%114 = select i1 %112, i32 0, i32 1
%115 = call i32 @exit(i32 noundef %114) #3
unreachable
116: ; preds = %101
%117 = load ptr, ptr %7, align 8
%118 = load ptr, ptr %8, align 8
%119 = load ptr, ptr %9, align 8
%120 = call i32 @daemonize(ptr noundef %117, ptr noundef %118, ptr noundef %119)
ret i32 %120
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @daemonize(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" }
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/tmpqvxnmcp5.c'
source_filename = "/tmp/tmpqvxnmcp5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@GMP_RNDU = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @div_hi(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
store double %0, ptr %3, align 8
store double %1, ptr %4, align 8
%6 = load i32, ptr @GMP_RNDU, align 4
%7 = call i32 @mpfr_set_default_rounding_mode(i32 noundef %6)
%8 = load double, ptr %3, align 8
%9 = load double, ptr %4, align 8
%10 = fdiv double %8, %9
store double %10, ptr %5, align 8
%11 = load double, ptr %5, align 8
ret double %11
}
declare i32 @mpfr_set_default_rounding_mode(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqvxnmcp5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@GMP_RNDU = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @div_hi(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
store double %0, ptr %3, align 8
store double %1, ptr %4, align 8
%6 = load i32, ptr @GMP_RNDU, align 4
%7 = call i32 @mpfr_set_default_rounding_mode(i32 noundef %6)
%8 = load double, ptr %3, align 8
%9 = load double, ptr %4, align 8
%10 = fdiv double %8, %9
store double %10, ptr %5, align 8
%11 = load double, ptr %5, align 8
ret double %11
}
declare i32 @mpfr_set_default_rounding_mode(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7bli39_v.c'
source_filename = "/tmp/tmp7bli39_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"
%struct.sched_param = type { i32 }
@sched_setparam.def = internal constant %struct.sched_param zeroinitializer, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sched_setparam(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 i32, ptr %3, align 4
%6 = call i32 @syscall(i32 noundef 154, i32 noundef %5, ptr noundef @sched_setparam.def)
ret i32 %6
}
declare i32 @syscall(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7bli39_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"
%struct.sched_param = type { i32 }
@sched_setparam.def = internal constant %struct.sched_param zeroinitializer, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sched_setparam(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 i32, ptr %3, align 4
%6 = call i32 @syscall(i32 noundef 154, i32 noundef %5, ptr noundef @sched_setparam.def)
ret i32 %6
}
declare i32 @syscall(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpt02p9fiq.c'
source_filename = "/tmp/tmpt02p9fiq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @_free(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = icmp ne ptr %3, null
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load ptr, ptr %2, align 8
%7 = call i32 @free(ptr noundef %6)
br label %8
8: ; preds = %5, %1
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/tmpt02p9fiq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @_free(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = icmp ne ptr %3, null
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load ptr, ptr %2, align 8
%7 = call i32 @free(ptr noundef %6)
br label %8
8: ; preds = %5, %1
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/tmpi7ojq0mm.c'
source_filename = "/tmp/tmpi7ojq0mm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"usage: ./bfi /path/to/file\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@.str.2 = private unnamed_addr constant [23 x i8] c"Could not open file %s\00", align 1
@SEEK_END = dso_local global i32 0, align 4
@SEEK_SET = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @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 i64, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = 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
%17 = load i32, ptr %4, align 4
%18 = icmp ne i32 %17, 2
br i1 %18, label %19, label %21
19: ; preds = %2
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 -1, ptr %3, align 4
br label %190
21: ; preds = %2
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 1
%24 = load ptr, ptr %23, align 8
%25 = call ptr @fopen(ptr noundef %24, ptr noundef @.str.1)
store ptr %25, ptr %6, align 8
%26 = load ptr, ptr %6, align 8
%27 = icmp ne ptr %26, null
br i1 %27, label %33, label %28
28: ; preds = %21
%29 = load ptr, ptr %5, align 8
%30 = getelementptr inbounds ptr, ptr %29, i64 1
%31 = load ptr, ptr %30, align 8
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %31)
br label %33
33: ; preds = %28, %21
%34 = load ptr, ptr %6, align 8
%35 = load i32, ptr @SEEK_END, align 4
%36 = call i32 @fseek(ptr noundef %34, i32 noundef 0, i32 noundef %35)
%37 = load ptr, ptr %6, align 8
%38 = call i64 @ftell(ptr noundef %37)
store i64 %38, ptr %7, align 8
%39 = load ptr, ptr %6, align 8
%40 = load i32, ptr @SEEK_SET, align 4
%41 = call i32 @fseek(ptr noundef %39, i32 noundef 0, i32 noundef %40)
%42 = load i64, ptr %7, align 8
%43 = call ptr @llvm.stacksave()
store ptr %43, ptr %8, align 8
%44 = alloca i8, i64 %42, align 16
store i64 %42, ptr %9, align 8
%45 = load i64, ptr %7, align 8
%46 = load ptr, ptr %6, align 8
%47 = call i32 @fread(ptr noundef %44, i64 noundef %45, i32 noundef 1, ptr noundef %46)
%48 = load ptr, ptr %6, align 8
%49 = call i32 @fclose(ptr noundef %48)
store i32 0, ptr %10, align 4
store i32 16, ptr %11, align 4
%50 = load i32, ptr %11, align 4
%51 = call i64 @malloc(i32 noundef %50)
%52 = inttoptr i64 %51 to ptr
store ptr %52, ptr %12, align 8
%53 = load ptr, ptr %12, align 8
%54 = load i32, ptr %11, align 4
%55 = call i32 @memset(ptr noundef %53, i32 noundef 0, i32 noundef %54)
store i32 0, ptr %13, align 4
store i32 0, ptr %14, align 4
%56 = load i32, ptr %11, align 4
%57 = uitofp i32 %56 to double
%58 = call double @llvm.fmuladd.f64(double %57, double 7.500000e-01, double 1.000000e+00)
%59 = fptoui double %58 to i32
store i32 %59, ptr %15, align 4
br label %60
60: ; preds = %185, %33
%61 = load i32, ptr %10, align 4
%62 = sext i32 %61 to i64
%63 = load i64, ptr %7, align 8
%64 = icmp slt i64 %62, %63
br i1 %64, label %65, label %188
65: ; preds = %60
%66 = load i32, ptr %10, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds i8, ptr %44, i64 %67
%69 = load i8, ptr %68, align 1
%70 = sext i8 %69 to i32
switch i32 %70, label %184 [
i32 43, label %71
i32 45, label %90
i32 62, label %135
i32 60, label %138
i32 46, label %141
i32 44, label %148
i32 91, label %160
i32 93, label %172
]
71: ; preds = %65
%72 = load i32, ptr %13, align 4
%73 = load i32, ptr %14, align 4
%74 = icmp ugt i32 %72, %73
br i1 %74, label %75, label %77
75: ; preds = %71
%76 = load i32, ptr %13, align 4
store i32 %76, ptr %14, align 4
br label %77
77: ; preds = %75, %71
%78 = load ptr, ptr %12, align 8
%79 = load i32, ptr %13, align 4
%80 = load i32, ptr %11, align 4
%81 = load i32, ptr %14, align 4
%82 = load i32, ptr %15, align 4
%83 = call i32 @resize_mem(ptr noundef %78, i32 noundef %79, i32 noundef %80, i32 noundef %81, i32 noundef %82)
%84 = load ptr, ptr %12, align 8
%85 = load i32, ptr %13, align 4
%86 = zext i32 %85 to i64
%87 = getelementptr inbounds i8, ptr %84, i64 %86
%88 = load i8, ptr %87, align 1
%89 = add i8 %88, 1
store i8 %89, ptr %87, align 1
br label %184
90: ; preds = %65
%91 = load ptr, ptr %12, align 8
%92 = load i32, ptr %13, align 4
%93 = zext i32 %92 to i64
%94 = getelementptr inbounds i8, ptr %91, i64 %93
%95 = load i8, ptr %94, align 1
%96 = add i8 %95, -1
store i8 %96, ptr %94, align 1
%97 = load i32, ptr %13, align 4
%98 = load i32, ptr %14, align 4
%99 = icmp eq i32 %97, %98
br i1 %99, label %100, label %128
100: ; preds = %90
%101 = load ptr, ptr %12, align 8
%102 = load i32, ptr %13, align 4
%103 = zext i32 %102 to i64
%104 = getelementptr inbounds i8, ptr %101, i64 %103
%105 = load i8, ptr %104, align 1
%106 = zext i8 %105 to i32
%107 = icmp eq i32 %106, 0
br i1 %107, label %108, label %128
108: ; preds = %100
%109 = load i32, ptr %13, align 4
store i32 %109, ptr %16, align 4
br label %110
110: ; preds = %124, %108
%111 = load i32, ptr %16, align 4
%112 = icmp sge i32 %111, 0
br i1 %112, label %113, label %127
113: ; preds = %110
%114 = load ptr, ptr %12, align 8
%115 = load i32, ptr %16, align 4
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds i8, ptr %114, i64 %116
%118 = load i8, ptr %117, align 1
%119 = zext i8 %118 to i32
%120 = icmp ne i32 %119, 0
br i1 %120, label %121, label %123
121: ; preds = %113
%122 = load i32, ptr %16, align 4
store i32 %122, ptr %14, align 4
br label %123
123: ; preds = %121, %113
br label %124
124: ; preds = %123
%125 = load i32, ptr %16, align 4
%126 = add nsw i32 %125, -1
store i32 %126, ptr %16, align 4
br label %110, !llvm.loop !6
127: ; preds = %110
br label %128
128: ; preds = %127, %100, %90
%129 = load ptr, ptr %12, align 8
%130 = load i32, ptr %13, align 4
%131 = load i32, ptr %11, align 4
%132 = load i32, ptr %14, align 4
%133 = load i32, ptr %15, align 4
%134 = call i32 @resize_mem(ptr noundef %129, i32 noundef %130, i32 noundef %131, i32 noundef %132, i32 noundef %133)
br label %184
135: ; preds = %65
%136 = load i32, ptr %13, align 4
%137 = add i32 %136, 1
store i32 %137, ptr %13, align 4
br label %184
138: ; preds = %65
%139 = load i32, ptr %13, align 4
%140 = add i32 %139, -1
store i32 %140, ptr %13, align 4
br label %184
141: ; preds = %65
%142 = load ptr, ptr %12, align 8
%143 = load i32, ptr %13, align 4
%144 = zext i32 %143 to i64
%145 = getelementptr inbounds i8, ptr %142, i64 %144
%146 = load i8, ptr %145, align 1
%147 = call i32 @putchar(i8 noundef zeroext %146)
br label %184
148: ; preds = %65
%149 = load ptr, ptr %12, align 8
%150 = load i32, ptr %13, align 4
%151 = load i32, ptr %11, align 4
%152 = load i32, ptr %14, align 4
%153 = load i32, ptr %15, align 4
%154 = call i32 @resize_mem(ptr noundef %149, i32 noundef %150, i32 noundef %151, i32 noundef %152, i32 noundef %153)
%155 = call zeroext i8 (...) @getchar()
%156 = load ptr, ptr %12, align 8
%157 = load i32, ptr %13, align 4
%158 = zext i32 %157 to i64
%159 = getelementptr inbounds i8, ptr %156, i64 %158
store i8 %155, ptr %159, align 1
br label %184
160: ; preds = %65
%161 = load ptr, ptr %12, align 8
%162 = load i32, ptr %13, align 4
%163 = zext i32 %162 to i64
%164 = getelementptr inbounds i8, ptr %161, i64 %163
%165 = load i8, ptr %164, align 1
%166 = zext i8 %165 to i32
%167 = icmp eq i32 %166, 0
br i1 %167, label %168, label %171
168: ; preds = %160
%169 = load i32, ptr %10, align 4
%170 = call i32 @find_match_open(i32 noundef %169, ptr noundef %44)
store i32 %170, ptr %10, align 4
br label %171
171: ; preds = %168, %160
br label %184
172: ; preds = %65
%173 = load ptr, ptr %12, align 8
%174 = load i32, ptr %13, align 4
%175 = zext i32 %174 to i64
%176 = getelementptr inbounds i8, ptr %173, i64 %175
%177 = load i8, ptr %176, align 1
%178 = zext i8 %177 to i32
%179 = icmp ne i32 %178, 0
br i1 %179, label %180, label %183
180: ; preds = %172
%181 = load i32, ptr %10, align 4
%182 = call i32 @find_match_closed(i32 noundef %181, ptr noundef %44)
store i32 %182, ptr %10, align 4
br label %183
183: ; preds = %180, %172
br label %184
184: ; preds = %65, %183, %171, %148, %141, %138, %135, %128, %77
br label %185
185: ; preds = %184
%186 = load i32, ptr %10, align 4
%187 = add nsw i32 %186, 1
store i32 %187, ptr %10, align 4
br label %60, !llvm.loop !8
188: ; preds = %60
store i32 0, ptr %3, align 4
%189 = load ptr, ptr %8, align 8
call void @llvm.stackrestore(ptr %189)
br label %190
190: ; preds = %188, %19
%191 = load i32, ptr %3, align 4
ret i32 %191
}
declare i32 @printf(ptr noundef, ...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @ftell(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @fread(ptr noundef, i64 noundef, i32 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
declare i32 @resize_mem(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @putchar(i8 noundef zeroext) #1
declare zeroext i8 @getchar(...) #1
declare i32 @find_match_open(i32 noundef, ptr noundef) #1
declare i32 @find_match_closed(i32 noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #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 willreturn }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpi7ojq0mm.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"usage: ./bfi /path/to/file\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@.str.2 = private unnamed_addr constant [23 x i8] c"Could not open file %s\00", align 1
@SEEK_END = dso_local global i32 0, align 4
@SEEK_SET = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @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 i64, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = 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
%17 = load i32, ptr %4, align 4
%18 = icmp ne i32 %17, 2
br i1 %18, label %19, label %21
19: ; preds = %2
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 -1, ptr %3, align 4
br label %194
21: ; preds = %2
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 1
%24 = load ptr, ptr %23, align 8
%25 = call ptr @fopen(ptr noundef %24, ptr noundef @.str.1)
store ptr %25, ptr %6, align 8
%26 = load ptr, ptr %6, align 8
%27 = icmp ne ptr %26, null
br i1 %27, label %33, label %28
28: ; preds = %21
%29 = load ptr, ptr %5, align 8
%30 = getelementptr inbounds ptr, ptr %29, i64 1
%31 = load ptr, ptr %30, align 8
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %31)
br label %33
33: ; preds = %28, %21
%34 = load ptr, ptr %6, align 8
%35 = load i32, ptr @SEEK_END, align 4
%36 = call i32 @fseek(ptr noundef %34, i32 noundef 0, i32 noundef %35)
%37 = load ptr, ptr %6, align 8
%38 = call i64 @ftell(ptr noundef %37)
store i64 %38, ptr %7, align 8
%39 = load ptr, ptr %6, align 8
%40 = load i32, ptr @SEEK_SET, align 4
%41 = call i32 @fseek(ptr noundef %39, i32 noundef 0, i32 noundef %40)
%42 = load i64, ptr %7, align 8
%43 = call ptr @llvm.stacksave()
store ptr %43, ptr %8, align 8
%44 = alloca i8, i64 %42, align 16
store i64 %42, ptr %9, align 8
%45 = load i64, ptr %7, align 8
%46 = load ptr, ptr %6, align 8
%47 = call i32 @fread(ptr noundef %44, i64 noundef %45, i32 noundef 1, ptr noundef %46)
%48 = load ptr, ptr %6, align 8
%49 = call i32 @fclose(ptr noundef %48)
store i32 0, ptr %10, align 4
store i32 16, ptr %11, align 4
%50 = load i32, ptr %11, align 4
%51 = call i64 @malloc(i32 noundef %50)
%52 = inttoptr i64 %51 to ptr
store ptr %52, ptr %12, align 8
%53 = load ptr, ptr %12, align 8
%54 = load i32, ptr %11, align 4
%55 = call i32 @memset(ptr noundef %53, i32 noundef 0, i32 noundef %54)
store i32 0, ptr %13, align 4
store i32 0, ptr %14, align 4
%56 = load i32, ptr %11, align 4
%57 = uitofp i32 %56 to double
%58 = call double @llvm.fmuladd.f64(double %57, double 7.500000e-01, double 1.000000e+00)
%59 = fptoui double %58 to i32
store i32 %59, ptr %15, align 4
%60 = load i32, ptr %10, align 4
%61 = sext i32 %60 to i64
%62 = load i64, ptr %7, align 8
%63 = icmp slt i64 %61, %62
br i1 %63, label %.lr.ph2, label %192
.lr.ph2: ; preds = %33
br label %64
64: ; preds = %.lr.ph2, %185
%65 = load i32, ptr %10, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds i8, ptr %44, i64 %66
%68 = load i8, ptr %67, align 1
%69 = sext i8 %68 to i32
switch i32 %69, label %184 [
i32 43, label %70
i32 45, label %89
i32 62, label %135
i32 60, label %138
i32 46, label %141
i32 44, label %148
i32 91, label %160
i32 93, label %172
]
70: ; preds = %64
%71 = load i32, ptr %13, align 4
%72 = load i32, ptr %14, align 4
%73 = icmp ugt i32 %71, %72
br i1 %73, label %74, label %76
74: ; preds = %70
%75 = load i32, ptr %13, align 4
store i32 %75, ptr %14, align 4
br label %76
76: ; preds = %74, %70
%77 = load ptr, ptr %12, align 8
%78 = load i32, ptr %13, align 4
%79 = load i32, ptr %11, align 4
%80 = load i32, ptr %14, align 4
%81 = load i32, ptr %15, align 4
%82 = call i32 @resize_mem(ptr noundef %77, i32 noundef %78, i32 noundef %79, i32 noundef %80, i32 noundef %81)
%83 = load ptr, ptr %12, align 8
%84 = load i32, ptr %13, align 4
%85 = zext i32 %84 to i64
%86 = getelementptr inbounds i8, ptr %83, i64 %85
%87 = load i8, ptr %86, align 1
%88 = add i8 %87, 1
store i8 %88, ptr %86, align 1
br label %184
89: ; preds = %64
%90 = load ptr, ptr %12, align 8
%91 = load i32, ptr %13, align 4
%92 = zext i32 %91 to i64
%93 = getelementptr inbounds i8, ptr %90, i64 %92
%94 = load i8, ptr %93, align 1
%95 = add i8 %94, -1
store i8 %95, ptr %93, align 1
%96 = load i32, ptr %13, align 4
%97 = load i32, ptr %14, align 4
%98 = icmp eq i32 %96, %97
br i1 %98, label %99, label %128
99: ; preds = %89
%100 = load ptr, ptr %12, align 8
%101 = load i32, ptr %13, align 4
%102 = zext i32 %101 to i64
%103 = getelementptr inbounds i8, ptr %100, i64 %102
%104 = load i8, ptr %103, align 1
%105 = zext i8 %104 to i32
%106 = icmp eq i32 %105, 0
br i1 %106, label %107, label %128
107: ; preds = %99
%108 = load i32, ptr %13, align 4
store i32 %108, ptr %16, align 4
%109 = load i32, ptr %16, align 4
%110 = icmp sge i32 %109, 0
br i1 %110, label %.lr.ph, label %127
.lr.ph: ; preds = %107
br label %111
111: ; preds = %.lr.ph, %122
%112 = load ptr, ptr %12, align 8
%113 = load i32, ptr %16, align 4
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds i8, ptr %112, i64 %114
%116 = load i8, ptr %115, align 1
%117 = zext i8 %116 to i32
%118 = icmp ne i32 %117, 0
br i1 %118, label %119, label %121
119: ; preds = %111
%120 = load i32, ptr %16, align 4
store i32 %120, ptr %14, align 4
br label %121
121: ; preds = %119, %111
br label %122
122: ; preds = %121
%123 = load i32, ptr %16, align 4
%124 = add nsw i32 %123, -1
store i32 %124, ptr %16, align 4
%125 = load i32, ptr %16, align 4
%126 = icmp sge i32 %125, 0
br i1 %126, label %111, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %122
br label %127
127: ; preds = %._crit_edge, %107
br label %128
128: ; preds = %127, %99, %89
%129 = load ptr, ptr %12, align 8
%130 = load i32, ptr %13, align 4
%131 = load i32, ptr %11, align 4
%132 = load i32, ptr %14, align 4
%133 = load i32, ptr %15, align 4
%134 = call i32 @resize_mem(ptr noundef %129, i32 noundef %130, i32 noundef %131, i32 noundef %132, i32 noundef %133)
br label %184
135: ; preds = %64
%136 = load i32, ptr %13, align 4
%137 = add i32 %136, 1
store i32 %137, ptr %13, align 4
br label %184
138: ; preds = %64
%139 = load i32, ptr %13, align 4
%140 = add i32 %139, -1
store i32 %140, ptr %13, align 4
br label %184
141: ; preds = %64
%142 = load ptr, ptr %12, align 8
%143 = load i32, ptr %13, align 4
%144 = zext i32 %143 to i64
%145 = getelementptr inbounds i8, ptr %142, i64 %144
%146 = load i8, ptr %145, align 1
%147 = call i32 @putchar(i8 noundef zeroext %146)
br label %184
148: ; preds = %64
%149 = load ptr, ptr %12, align 8
%150 = load i32, ptr %13, align 4
%151 = load i32, ptr %11, align 4
%152 = load i32, ptr %14, align 4
%153 = load i32, ptr %15, align 4
%154 = call i32 @resize_mem(ptr noundef %149, i32 noundef %150, i32 noundef %151, i32 noundef %152, i32 noundef %153)
%155 = call zeroext i8 (...) @getchar()
%156 = load ptr, ptr %12, align 8
%157 = load i32, ptr %13, align 4
%158 = zext i32 %157 to i64
%159 = getelementptr inbounds i8, ptr %156, i64 %158
store i8 %155, ptr %159, align 1
br label %184
160: ; preds = %64
%161 = load ptr, ptr %12, align 8
%162 = load i32, ptr %13, align 4
%163 = zext i32 %162 to i64
%164 = getelementptr inbounds i8, ptr %161, i64 %163
%165 = load i8, ptr %164, align 1
%166 = zext i8 %165 to i32
%167 = icmp eq i32 %166, 0
br i1 %167, label %168, label %171
168: ; preds = %160
%169 = load i32, ptr %10, align 4
%170 = call i32 @find_match_open(i32 noundef %169, ptr noundef %44)
store i32 %170, ptr %10, align 4
br label %171
171: ; preds = %168, %160
br label %184
172: ; preds = %64
%173 = load ptr, ptr %12, align 8
%174 = load i32, ptr %13, align 4
%175 = zext i32 %174 to i64
%176 = getelementptr inbounds i8, ptr %173, i64 %175
%177 = load i8, ptr %176, align 1
%178 = zext i8 %177 to i32
%179 = icmp ne i32 %178, 0
br i1 %179, label %180, label %183
180: ; preds = %172
%181 = load i32, ptr %10, align 4
%182 = call i32 @find_match_closed(i32 noundef %181, ptr noundef %44)
store i32 %182, ptr %10, align 4
br label %183
183: ; preds = %180, %172
br label %184
184: ; preds = %183, %171, %148, %141, %138, %135, %128, %76, %64
br label %185
185: ; preds = %184
%186 = load i32, ptr %10, align 4
%187 = add nsw i32 %186, 1
store i32 %187, ptr %10, align 4
%188 = load i32, ptr %10, align 4
%189 = sext i32 %188 to i64
%190 = load i64, ptr %7, align 8
%191 = icmp slt i64 %189, %190
br i1 %191, label %64, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %185
br label %192
192: ; preds = %._crit_edge3, %33
store i32 0, ptr %3, align 4
%193 = load ptr, ptr %8, align 8
call void @llvm.stackrestore(ptr %193)
br label %194
194: ; preds = %192, %19
%195 = load i32, ptr %3, align 4
ret i32 %195
}
declare i32 @printf(ptr noundef, ...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @ftell(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @fread(ptr noundef, i64 noundef, i32 noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
declare i32 @resize_mem(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @putchar(i8 noundef zeroext) #1
declare zeroext i8 @getchar(...) #1
declare i32 @find_match_open(i32 noundef, ptr noundef) #1
declare i32 @find_match_closed(i32 noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #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 willreturn }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpih66l271.c'
source_filename = "/tmp/tmpih66l271.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [95 x i8] c"\EC\84\B8 \EC\8B\A4\EC\88\98\EB\A5\BC \EA\B3\BC\ED\95\99\EC\A0\81 \ED\91\9C\EA\B8\B0\EB\B2\95\EC\9C\BC\EB\A1\9C \EC\9E\85\EB\A0\A5\ED\95\B4\EC\A3\BC\EC\84\B8\EC\9A\94. \EA\B5\AC\EB\B6\84\EC\9D\80 ,(\EC\BD\A4\EB\A7\88)\EB\A1\9C \ED\95\A9\EB\8B\88\EB\8B\A4. \00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"%lf, %lf, %lf\00", align 1
@.str.2 = private unnamed_addr constant [78 x i8] c"10\EC\A7\84\EB\B2\95 \ED\91\9C\EA\B8\B0\EB\B2\95\EC\9C\BC\EB\A1\9C \ED\91\9C\ED\98\84\ED\95\98\EB\A9\B4, \ED\95\A9 = %lf, \EC\B5\9C\EB\8C\80\EA\B0\92\EC\9D\80 %lf\EC\9E\85\EB\8B\88\EB\8B\A4.\0A\00", align 1
@.str.3 = private unnamed_addr constant [79 x i8] c"\EA\B3\BC\ED\95\99\EC\A0\81 \ED\91\9C\EA\B8\B0\EB\B2\95\EC\9C\BC\EB\A1\9C \ED\91\9C\ED\98\84\ED\95\98\EB\A9\B4, \ED\95\A9 = %e, \EC\B5\9C\EB\8C\80\EA\B0\92\EC\9D\80 %e\EC\9E\85\EB\8B\88\EB\8B\A4. \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
%5 = alloca double, align 8
%6 = alloca double, align 8
store i32 0, ptr %1, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%8 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2, ptr noundef %3, ptr noundef %4)
%9 = load double, ptr %2, align 8
%10 = load double, ptr %3, align 8
%11 = fadd double %9, %10
%12 = load double, ptr %4, align 8
%13 = fadd double %11, %12
store double %13, ptr %5, align 8
%14 = load double, ptr %4, align 8
%15 = load double, ptr %2, align 8
%16 = load double, ptr %3, align 8
%17 = fcmp ogt double %15, %16
br i1 %17, label %18, label %20
18: ; preds = %0
%19 = load double, ptr %2, align 8
br label %22
20: ; preds = %0
%21 = load double, ptr %3, align 8
br label %22
22: ; preds = %20, %18
%23 = phi double [ %19, %18 ], [ %21, %20 ]
%24 = fcmp ogt double %14, %23
br i1 %24, label %25, label %27
25: ; preds = %22
%26 = load double, ptr %4, align 8
br label %37
27: ; preds = %22
%28 = load double, ptr %2, align 8
%29 = load double, ptr %3, align 8
%30 = fcmp ogt double %28, %29
br i1 %30, label %31, label %33
31: ; preds = %27
%32 = load double, ptr %2, align 8
br label %35
33: ; preds = %27
%34 = load double, ptr %3, align 8
br label %35
35: ; preds = %33, %31
%36 = phi double [ %32, %31 ], [ %34, %33 ]
br label %37
37: ; preds = %35, %25
%38 = phi double [ %26, %25 ], [ %36, %35 ]
store double %38, ptr %6, align 8
%39 = load double, ptr %5, align 8
%40 = load double, ptr %6, align 8
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %39, double noundef %40)
%42 = load double, ptr %5, align 8
%43 = load double, ptr %6, align 8
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %42, double noundef %43)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(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/tmpih66l271.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [95 x i8] c"\EC\84\B8 \EC\8B\A4\EC\88\98\EB\A5\BC \EA\B3\BC\ED\95\99\EC\A0\81 \ED\91\9C\EA\B8\B0\EB\B2\95\EC\9C\BC\EB\A1\9C \EC\9E\85\EB\A0\A5\ED\95\B4\EC\A3\BC\EC\84\B8\EC\9A\94. \EA\B5\AC\EB\B6\84\EC\9D\80 ,(\EC\BD\A4\EB\A7\88)\EB\A1\9C \ED\95\A9\EB\8B\88\EB\8B\A4. \00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"%lf, %lf, %lf\00", align 1
@.str.2 = private unnamed_addr constant [78 x i8] c"10\EC\A7\84\EB\B2\95 \ED\91\9C\EA\B8\B0\EB\B2\95\EC\9C\BC\EB\A1\9C \ED\91\9C\ED\98\84\ED\95\98\EB\A9\B4, \ED\95\A9 = %lf, \EC\B5\9C\EB\8C\80\EA\B0\92\EC\9D\80 %lf\EC\9E\85\EB\8B\88\EB\8B\A4.\0A\00", align 1
@.str.3 = private unnamed_addr constant [79 x i8] c"\EA\B3\BC\ED\95\99\EC\A0\81 \ED\91\9C\EA\B8\B0\EB\B2\95\EC\9C\BC\EB\A1\9C \ED\91\9C\ED\98\84\ED\95\98\EB\A9\B4, \ED\95\A9 = %e, \EC\B5\9C\EB\8C\80\EA\B0\92\EC\9D\80 %e\EC\9E\85\EB\8B\88\EB\8B\A4. \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
%5 = alloca double, align 8
%6 = alloca double, align 8
store i32 0, ptr %1, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%8 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2, ptr noundef %3, ptr noundef %4)
%9 = load double, ptr %2, align 8
%10 = load double, ptr %3, align 8
%11 = fadd double %9, %10
%12 = load double, ptr %4, align 8
%13 = fadd double %11, %12
store double %13, ptr %5, align 8
%14 = load double, ptr %4, align 8
%15 = load double, ptr %2, align 8
%16 = load double, ptr %3, align 8
%17 = fcmp ogt double %15, %16
br i1 %17, label %18, label %20
18: ; preds = %0
%19 = load double, ptr %2, align 8
br label %22
20: ; preds = %0
%21 = load double, ptr %3, align 8
br label %22
22: ; preds = %20, %18
%23 = phi double [ %19, %18 ], [ %21, %20 ]
%24 = fcmp ogt double %14, %23
br i1 %24, label %25, label %27
25: ; preds = %22
%26 = load double, ptr %4, align 8
br label %37
27: ; preds = %22
%28 = load double, ptr %2, align 8
%29 = load double, ptr %3, align 8
%30 = fcmp ogt double %28, %29
br i1 %30, label %31, label %33
31: ; preds = %27
%32 = load double, ptr %2, align 8
br label %35
33: ; preds = %27
%34 = load double, ptr %3, align 8
br label %35
35: ; preds = %33, %31
%36 = phi double [ %32, %31 ], [ %34, %33 ]
br label %37
37: ; preds = %35, %25
%38 = phi double [ %26, %25 ], [ %36, %35 ]
store double %38, ptr %6, align 8
%39 = load double, ptr %5, align 8
%40 = load double, ptr %6, align 8
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %39, double noundef %40)
%42 = load double, ptr %5, align 8
%43 = load double, ptr %6, align 8
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %42, double noundef %43)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(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/tmp_wy2yk4p.c'
source_filename = "/tmp/tmp_wy2yk4p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"--help\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"--show\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"--inc\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"--dec\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"--stdin\00", align 1
@.str.5 = private unnamed_addr constant [2 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
%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 -1, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 1, ptr %8, align 4
br label %9
9: ; preds = %100, %2
%10 = load i32, ptr %8, align 4
%11 = load i32, ptr %4, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %103
13: ; preds = %9
%14 = load ptr, ptr %5, align 8
%15 = load i32, ptr %8, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds ptr, ptr %14, i64 %16
%18 = load ptr, ptr %17, align 8
%19 = call i32 @strcmp(ptr noundef %18, ptr noundef @.str)
%20 = icmp ne i32 %19, 0
br i1 %20, label %26, label %21
21: ; preds = %13
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 0
%24 = load ptr, ptr %23, align 8
%25 = call i32 @help(ptr noundef %24)
store i32 0, ptr %3, align 4
br label %115
26: ; preds = %13
%27 = load ptr, ptr %5, align 8
%28 = load i32, ptr %8, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds ptr, ptr %27, i64 %29
%31 = load ptr, ptr %30, align 8
%32 = call i32 @strcmp(ptr noundef %31, ptr noundef @.str.1)
%33 = icmp ne i32 %32, 0
br i1 %33, label %36, label %34
34: ; preds = %26
%35 = call i32 (...) @show_blacklight()
store i32 0, ptr %3, align 4
br label %115
36: ; preds = %26
%37 = load ptr, ptr %5, align 8
%38 = load i32, ptr %8, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds ptr, ptr %37, i64 %39
%41 = load ptr, ptr %40, align 8
%42 = call i32 @strcmp(ptr noundef %41, ptr noundef @.str.2)
%43 = icmp ne i32 %42, 0
br i1 %43, label %46, label %44
44: ; preds = %36
%45 = call i32 (...) @increases_blacklight()
store i32 0, ptr %3, align 4
br label %115
46: ; preds = %36
%47 = load ptr, ptr %5, align 8
%48 = load i32, ptr %8, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds ptr, ptr %47, i64 %49
%51 = load ptr, ptr %50, align 8
%52 = call i32 @strcmp(ptr noundef %51, ptr noundef @.str.3)
%53 = icmp ne i32 %52, 0
br i1 %53, label %56, label %54
54: ; preds = %46
%55 = call i32 (...) @decreases_blacklight()
store i32 0, ptr %3, align 4
br label %115
56: ; preds = %46
%57 = load ptr, ptr %5, align 8
%58 = load i32, ptr %8, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds ptr, ptr %57, i64 %59
%61 = load ptr, ptr %60, align 8
%62 = call i32 @strcmp(ptr noundef %61, ptr noundef @.str.4)
%63 = icmp ne i32 %62, 0
br i1 %63, label %66, label %64
64: ; preds = %56
%65 = call i32 (...) @set_backlight_from_stdin()
store i32 0, ptr %3, align 4
br label %115
66: ; preds = %56
%67 = load ptr, ptr %5, align 8
%68 = load i32, ptr %8, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds ptr, ptr %67, i64 %69
%71 = load ptr, ptr %70, align 8
%72 = call i32 @strcmp(ptr noundef %71, ptr noundef @.str.5)
%73 = icmp ne i32 %72, 0
br i1 %73, label %75, label %74
74: ; preds = %66
store i32 1, ptr %7, align 4
br label %98
75: ; preds = %66
%76 = load ptr, ptr %5, align 8
%77 = load i32, ptr %8, align 4
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds ptr, ptr %76, i64 %78
%80 = load ptr, ptr %79, align 8
%81 = getelementptr inbounds i8, ptr %80, i64 0
%82 = load i8, ptr %81, align 1
%83 = call i64 @isdigit(i8 noundef signext %82)
%84 = icmp ne i64 %83, 0
br i1 %84, label %85, label %92
85: ; preds = %75
%86 = load ptr, ptr %5, align 8
%87 = load i32, ptr %8, align 4
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds ptr, ptr %86, i64 %88
%90 = load ptr, ptr %89, align 8
%91 = call i32 @atoi(ptr noundef %90)
store i32 %91, ptr %6, align 4
br label %97
92: ; preds = %75
%93 = load ptr, ptr %5, align 8
%94 = getelementptr inbounds ptr, ptr %93, i64 0
%95 = load ptr, ptr %94, align 8
%96 = call i32 @help(ptr noundef %95)
store i32 0, ptr %3, align 4
br label %115
97: ; preds = %85
br label %98
98: ; preds = %97, %74
br label %99
99: ; preds = %98
br label %100
100: ; preds = %99
%101 = load i32, ptr %8, align 4
%102 = add nsw i32 %101, 1
store i32 %102, ptr %8, align 4
br label %9, !llvm.loop !6
103: ; preds = %9
%104 = load i32, ptr %4, align 4
%105 = icmp eq i32 %104, 1
br i1 %105, label %106, label %111
106: ; preds = %103
%107 = load ptr, ptr %5, align 8
%108 = getelementptr inbounds ptr, ptr %107, i64 0
%109 = load ptr, ptr %108, align 8
%110 = call i32 @help(ptr noundef %109)
store i32 0, ptr %3, align 4
br label %115
111: ; preds = %103
%112 = load i32, ptr %6, align 4
%113 = load i32, ptr %7, align 4
%114 = call i32 @change_blacklight(i32 noundef %112, i32 noundef %113)
store i32 0, ptr %3, align 4
br label %115
115: ; preds = %111, %106, %92, %64, %54, %44, %34, %21
%116 = load i32, ptr %3, align 4
ret i32 %116
}
declare i32 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @help(ptr noundef) #1
declare i32 @show_blacklight(...) #1
declare i32 @increases_blacklight(...) #1
declare i32 @decreases_blacklight(...) #1
declare i32 @set_backlight_from_stdin(...) #1
declare i64 @isdigit(i8 noundef signext) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @change_blacklight(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_wy2yk4p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"--help\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"--show\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"--inc\00", align 1
@.str.3 = private unnamed_addr constant [6 x i8] c"--dec\00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"--stdin\00", align 1
@.str.5 = private unnamed_addr constant [2 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
%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 -1, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 1, ptr %8, align 4
%9 = load i32, ptr %8, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %.lr.ph, label %105
.lr.ph: ; preds = %2
br label %12
12: ; preds = %.lr.ph, %99
%13 = load ptr, ptr %5, align 8
%14 = load i32, ptr %8, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds ptr, ptr %13, i64 %15
%17 = load ptr, ptr %16, align 8
%18 = call i32 @strcmp(ptr noundef %17, ptr noundef @.str)
%19 = icmp ne i32 %18, 0
br i1 %19, label %25, label %20
20: ; preds = %12
%21 = load ptr, ptr %5, align 8
%22 = getelementptr inbounds ptr, ptr %21, i64 0
%23 = load ptr, ptr %22, align 8
%24 = call i32 @help(ptr noundef %23)
store i32 0, ptr %3, align 4
br label %117
25: ; preds = %12
%26 = load ptr, ptr %5, align 8
%27 = load i32, ptr %8, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds ptr, ptr %26, i64 %28
%30 = load ptr, ptr %29, align 8
%31 = call i32 @strcmp(ptr noundef %30, ptr noundef @.str.1)
%32 = icmp ne i32 %31, 0
br i1 %32, label %35, label %33
33: ; preds = %25
%34 = call i32 (...) @show_blacklight()
store i32 0, ptr %3, align 4
br label %117
35: ; preds = %25
%36 = load ptr, ptr %5, align 8
%37 = load i32, ptr %8, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds ptr, ptr %36, i64 %38
%40 = load ptr, ptr %39, align 8
%41 = call i32 @strcmp(ptr noundef %40, ptr noundef @.str.2)
%42 = icmp ne i32 %41, 0
br i1 %42, label %45, label %43
43: ; preds = %35
%44 = call i32 (...) @increases_blacklight()
store i32 0, ptr %3, align 4
br label %117
45: ; preds = %35
%46 = load ptr, ptr %5, align 8
%47 = load i32, ptr %8, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds ptr, ptr %46, i64 %48
%50 = load ptr, ptr %49, align 8
%51 = call i32 @strcmp(ptr noundef %50, ptr noundef @.str.3)
%52 = icmp ne i32 %51, 0
br i1 %52, label %55, label %53
53: ; preds = %45
%54 = call i32 (...) @decreases_blacklight()
store i32 0, ptr %3, align 4
br label %117
55: ; preds = %45
%56 = load ptr, ptr %5, align 8
%57 = load i32, ptr %8, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds ptr, ptr %56, i64 %58
%60 = load ptr, ptr %59, align 8
%61 = call i32 @strcmp(ptr noundef %60, ptr noundef @.str.4)
%62 = icmp ne i32 %61, 0
br i1 %62, label %65, label %63
63: ; preds = %55
%64 = call i32 (...) @set_backlight_from_stdin()
store i32 0, ptr %3, align 4
br label %117
65: ; preds = %55
%66 = load ptr, ptr %5, align 8
%67 = load i32, ptr %8, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds ptr, ptr %66, i64 %68
%70 = load ptr, ptr %69, align 8
%71 = call i32 @strcmp(ptr noundef %70, ptr noundef @.str.5)
%72 = icmp ne i32 %71, 0
br i1 %72, label %74, label %73
73: ; preds = %65
store i32 1, ptr %7, align 4
br label %97
74: ; preds = %65
%75 = load ptr, ptr %5, align 8
%76 = load i32, ptr %8, align 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds ptr, ptr %75, i64 %77
%79 = load ptr, ptr %78, align 8
%80 = getelementptr inbounds i8, ptr %79, i64 0
%81 = load i8, ptr %80, align 1
%82 = call i64 @isdigit(i8 noundef signext %81)
%83 = icmp ne i64 %82, 0
br i1 %83, label %84, label %91
84: ; preds = %74
%85 = load ptr, ptr %5, align 8
%86 = load i32, ptr %8, align 4
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds ptr, ptr %85, i64 %87
%89 = load ptr, ptr %88, align 8
%90 = call i32 @atoi(ptr noundef %89)
store i32 %90, ptr %6, align 4
br label %96
91: ; preds = %74
%92 = load ptr, ptr %5, align 8
%93 = getelementptr inbounds ptr, ptr %92, i64 0
%94 = load ptr, ptr %93, align 8
%95 = call i32 @help(ptr noundef %94)
store i32 0, ptr %3, align 4
br label %117
96: ; preds = %84
br label %97
97: ; preds = %96, %73
br label %98
98: ; preds = %97
br label %99
99: ; preds = %98
%100 = load i32, ptr %8, align 4
%101 = add nsw i32 %100, 1
store i32 %101, ptr %8, align 4
%102 = load i32, ptr %8, align 4
%103 = load i32, ptr %4, align 4
%104 = icmp slt i32 %102, %103
br i1 %104, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %99
br label %105
105: ; preds = %._crit_edge, %2
%106 = load i32, ptr %4, align 4
%107 = icmp eq i32 %106, 1
br i1 %107, label %108, label %113
108: ; preds = %105
%109 = load ptr, ptr %5, align 8
%110 = getelementptr inbounds ptr, ptr %109, i64 0
%111 = load ptr, ptr %110, align 8
%112 = call i32 @help(ptr noundef %111)
store i32 0, ptr %3, align 4
br label %117
113: ; preds = %105
%114 = load i32, ptr %6, align 4
%115 = load i32, ptr %7, align 4
%116 = call i32 @change_blacklight(i32 noundef %114, i32 noundef %115)
store i32 0, ptr %3, align 4
br label %117
117: ; preds = %113, %108, %91, %63, %53, %43, %33, %20
%118 = load i32, ptr %3, align 4
ret i32 %118
}
declare i32 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @help(ptr noundef) #1
declare i32 @show_blacklight(...) #1
declare i32 @increases_blacklight(...) #1
declare i32 @decreases_blacklight(...) #1
declare i32 @set_backlight_from_stdin(...) #1
declare i64 @isdigit(i8 noundef signext) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @change_blacklight(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmphaa57g5c.c'
source_filename = "/tmp/tmphaa57g5c.c"
target datalayout = "e-m:e-p270: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/tmphaa57g5c.c"
target datalayout = "e-m:e-p270: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/tmpedvljj5h.c'
source_filename = "/tmp/tmpedvljj5h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @countULP(x86_fp80 noundef %0, x86_fp80 noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca x86_fp80, align 16
%5 = alloca x86_fp80, align 16
%6 = alloca double, align 8
%7 = alloca double, align 8
store x86_fp80 %0, ptr %4, align 16
store x86_fp80 %1, ptr %5, align 16
%8 = load x86_fp80, ptr %4, align 16
%9 = fptrunc x86_fp80 %8 to double
store double %9, ptr %6, align 8
%10 = load x86_fp80, ptr %5, align 16
%11 = fptrunc x86_fp80 %10 to double
store double %11, ptr %7, align 8
%12 = load double, ptr %6, align 8
%13 = call i64 @xisnan(double noundef %12)
%14 = icmp ne i64 %13, 0
br i1 %14, label %15, label %20
15: ; preds = %2
%16 = load double, ptr %7, align 8
%17 = call i64 @xisnan(double noundef %16)
%18 = icmp ne i64 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %15
store double 0.000000e+00, ptr %3, align 8
br label %93
20: ; preds = %15, %2
%21 = load double, ptr %6, align 8
%22 = call i64 @xisnan(double noundef %21)
%23 = icmp ne i64 %22, 0
br i1 %23, label %28, label %24
24: ; preds = %20
%25 = load double, ptr %7, align 8
%26 = call i64 @xisnan(double noundef %25)
%27 = icmp ne i64 %26, 0
br i1 %27, label %28, label %29
28: ; preds = %24, %20
store double 1.000000e+04, ptr %3, align 8
br label %93
29: ; preds = %24
%30 = load double, ptr %6, align 8
%31 = call i64 @isinf(double noundef %30)
%32 = icmp ne i64 %31, 0
br i1 %32, label %33, label %46
33: ; preds = %29
%34 = load double, ptr %6, align 8
%35 = call i64 @sign(double noundef %34)
%36 = load double, ptr %7, align 8
%37 = call i64 @sign(double noundef %36)
%38 = icmp eq i64 %35, %37
br i1 %38, label %39, label %45
39: ; preds = %33
%40 = load double, ptr %7, align 8
%41 = fpext double %40 to x86_fp80
%42 = call double @fabs(x86_fp80 noundef %41)
%43 = fcmp ogt double %42, 1.000000e+300
br i1 %43, label %44, label %45
44: ; preds = %39
store double 0.000000e+00, ptr %3, align 8
br label %93
45: ; preds = %39, %33
store double 1.000100e+04, ptr %3, align 8
br label %93
46: ; preds = %29
%47 = load double, ptr %6, align 8
%48 = fcmp oeq double %47, 0x7FF0000000000000
br i1 %48, label %49, label %53
49: ; preds = %46
%50 = load double, ptr %7, align 8
%51 = fcmp oeq double %50, 0x7FF0000000000000
br i1 %51, label %52, label %53
52: ; preds = %49
store double 0.000000e+00, ptr %3, align 8
br label %93
53: ; preds = %49, %46
%54 = load double, ptr %6, align 8
%55 = fcmp oeq double %54, 0xFFF0000000000000
br i1 %55, label %56, label %60
56: ; preds = %53
%57 = load double, ptr %7, align 8
%58 = fcmp oeq double %57, 0xFFF0000000000000
br i1 %58, label %59, label %60
59: ; preds = %56
store double 0.000000e+00, ptr %3, align 8
br label %93
60: ; preds = %56, %53
%61 = load double, ptr %7, align 8
%62 = fcmp oeq double %61, 0.000000e+00
br i1 %62, label %63, label %68
63: ; preds = %60
%64 = load double, ptr %6, align 8
%65 = fcmp oeq double %64, 0.000000e+00
br i1 %65, label %66, label %67
66: ; preds = %63
store double 0.000000e+00, ptr %3, align 8
br label %93
67: ; preds = %63
store double 1.000200e+04, ptr %3, align 8
br label %93
68: ; preds = %60
%69 = load double, ptr %6, align 8
%70 = call i64 @xisnan(double noundef %69)
%71 = icmp ne i64 %70, 0
br i1 %71, label %92, label %72
72: ; preds = %68
%73 = load double, ptr %7, align 8
%74 = call i64 @xisnan(double noundef %73)
%75 = icmp ne i64 %74, 0
br i1 %75, label %92, label %76
76: ; preds = %72
%77 = load double, ptr %6, align 8
%78 = call i64 @isinf(double noundef %77)
%79 = icmp ne i64 %78, 0
br i1 %79, label %92, label %80
80: ; preds = %76
%81 = load double, ptr %7, align 8
%82 = call i64 @isinf(double noundef %81)
%83 = icmp ne i64 %82, 0
br i1 %83, label %92, label %84
84: ; preds = %80
%85 = load x86_fp80, ptr %4, align 16
%86 = load x86_fp80, ptr %5, align 16
%87 = fsub x86_fp80 %85, %86
%88 = load x86_fp80, ptr %5, align 16
%89 = call x86_fp80 @ulp(x86_fp80 noundef %88)
%90 = fdiv x86_fp80 %87, %89
%91 = call double @fabs(x86_fp80 noundef %90)
store double %91, ptr %3, align 8
br label %93
92: ; preds = %80, %76, %72, %68
store double 1.000300e+04, ptr %3, align 8
br label %93
93: ; preds = %92, %84, %67, %66, %59, %52, %45, %44, %28, %19
%94 = load double, ptr %3, align 8
ret double %94
}
declare i64 @xisnan(double noundef) #1
declare i64 @isinf(double noundef) #1
declare i64 @sign(double noundef) #1
declare double @fabs(x86_fp80 noundef) #1
declare x86_fp80 @ulp(x86_fp80 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpedvljj5h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @countULP(x86_fp80 noundef %0, x86_fp80 noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca x86_fp80, align 16
%5 = alloca x86_fp80, align 16
%6 = alloca double, align 8
%7 = alloca double, align 8
store x86_fp80 %0, ptr %4, align 16
store x86_fp80 %1, ptr %5, align 16
%8 = load x86_fp80, ptr %4, align 16
%9 = fptrunc x86_fp80 %8 to double
store double %9, ptr %6, align 8
%10 = load x86_fp80, ptr %5, align 16
%11 = fptrunc x86_fp80 %10 to double
store double %11, ptr %7, align 8
%12 = load double, ptr %6, align 8
%13 = call i64 @xisnan(double noundef %12)
%14 = icmp ne i64 %13, 0
br i1 %14, label %15, label %20
15: ; preds = %2
%16 = load double, ptr %7, align 8
%17 = call i64 @xisnan(double noundef %16)
%18 = icmp ne i64 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %15
store double 0.000000e+00, ptr %3, align 8
br label %93
20: ; preds = %15, %2
%21 = load double, ptr %6, align 8
%22 = call i64 @xisnan(double noundef %21)
%23 = icmp ne i64 %22, 0
br i1 %23, label %28, label %24
24: ; preds = %20
%25 = load double, ptr %7, align 8
%26 = call i64 @xisnan(double noundef %25)
%27 = icmp ne i64 %26, 0
br i1 %27, label %28, label %29
28: ; preds = %24, %20
store double 1.000000e+04, ptr %3, align 8
br label %93
29: ; preds = %24
%30 = load double, ptr %6, align 8
%31 = call i64 @isinf(double noundef %30)
%32 = icmp ne i64 %31, 0
br i1 %32, label %33, label %46
33: ; preds = %29
%34 = load double, ptr %6, align 8
%35 = call i64 @sign(double noundef %34)
%36 = load double, ptr %7, align 8
%37 = call i64 @sign(double noundef %36)
%38 = icmp eq i64 %35, %37
br i1 %38, label %39, label %45
39: ; preds = %33
%40 = load double, ptr %7, align 8
%41 = fpext double %40 to x86_fp80
%42 = call double @fabs(x86_fp80 noundef %41)
%43 = fcmp ogt double %42, 1.000000e+300
br i1 %43, label %44, label %45
44: ; preds = %39
store double 0.000000e+00, ptr %3, align 8
br label %93
45: ; preds = %39, %33
store double 1.000100e+04, ptr %3, align 8
br label %93
46: ; preds = %29
%47 = load double, ptr %6, align 8
%48 = fcmp oeq double %47, 0x7FF0000000000000
br i1 %48, label %49, label %53
49: ; preds = %46
%50 = load double, ptr %7, align 8
%51 = fcmp oeq double %50, 0x7FF0000000000000
br i1 %51, label %52, label %53
52: ; preds = %49
store double 0.000000e+00, ptr %3, align 8
br label %93
53: ; preds = %49, %46
%54 = load double, ptr %6, align 8
%55 = fcmp oeq double %54, 0xFFF0000000000000
br i1 %55, label %56, label %60
56: ; preds = %53
%57 = load double, ptr %7, align 8
%58 = fcmp oeq double %57, 0xFFF0000000000000
br i1 %58, label %59, label %60
59: ; preds = %56
store double 0.000000e+00, ptr %3, align 8
br label %93
60: ; preds = %56, %53
%61 = load double, ptr %7, align 8
%62 = fcmp oeq double %61, 0.000000e+00
br i1 %62, label %63, label %68
63: ; preds = %60
%64 = load double, ptr %6, align 8
%65 = fcmp oeq double %64, 0.000000e+00
br i1 %65, label %66, label %67
66: ; preds = %63
store double 0.000000e+00, ptr %3, align 8
br label %93
67: ; preds = %63
store double 1.000200e+04, ptr %3, align 8
br label %93
68: ; preds = %60
%69 = load double, ptr %6, align 8
%70 = call i64 @xisnan(double noundef %69)
%71 = icmp ne i64 %70, 0
br i1 %71, label %92, label %72
72: ; preds = %68
%73 = load double, ptr %7, align 8
%74 = call i64 @xisnan(double noundef %73)
%75 = icmp ne i64 %74, 0
br i1 %75, label %92, label %76
76: ; preds = %72
%77 = load double, ptr %6, align 8
%78 = call i64 @isinf(double noundef %77)
%79 = icmp ne i64 %78, 0
br i1 %79, label %92, label %80
80: ; preds = %76
%81 = load double, ptr %7, align 8
%82 = call i64 @isinf(double noundef %81)
%83 = icmp ne i64 %82, 0
br i1 %83, label %92, label %84
84: ; preds = %80
%85 = load x86_fp80, ptr %4, align 16
%86 = load x86_fp80, ptr %5, align 16
%87 = fsub x86_fp80 %85, %86
%88 = load x86_fp80, ptr %5, align 16
%89 = call x86_fp80 @ulp(x86_fp80 noundef %88)
%90 = fdiv x86_fp80 %87, %89
%91 = call double @fabs(x86_fp80 noundef %90)
store double %91, ptr %3, align 8
br label %93
92: ; preds = %80, %76, %72, %68
store double 1.000300e+04, ptr %3, align 8
br label %93
93: ; preds = %92, %84, %67, %66, %59, %52, %45, %44, %28, %19
%94 = load double, ptr %3, align 8
ret double %94
}
declare i64 @xisnan(double noundef) #1
declare i64 @isinf(double noundef) #1
declare i64 @sign(double noundef) #1
declare double @fabs(x86_fp80 noundef) #1
declare x86_fp80 @ulp(x86_fp80 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqvtp37d_.c'
source_filename = "/tmp/tmpqvtp37d_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@norc = external global i32, align 4
@nc = external global i32, align 4
@dmax = external global i32, align 4
@ncl = external global i32, align 4
@dvec = external global ptr, align 8
@dstart = external global ptr, align 8
@x = external global ptr, align 8
@y = external global ptr, align 8
@.str = private unnamed_addr constant [28 x i8] c"pa[%d]=%6.3f, pb[%d]=%6.3f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @nllkexchord(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca [20 x [20 x double]], align 16
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca double, align 8
%16 = alloca double, align 8
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%24 = load i32, ptr @norc, align 4
%25 = add nsw i32 %24, 1
%26 = sext i32 %25 to i64
%27 = mul i64 %26, 8
%28 = trunc i64 %27 to i32
%29 = call i64 @malloc(i32 noundef %28)
%30 = inttoptr i64 %29 to ptr
store ptr %30, ptr %13, align 8
%31 = load i32, ptr @nc, align 4
%32 = add nsw i32 %31, 1
%33 = sext i32 %32 to i64
%34 = mul i64 %33, 8
%35 = trunc i64 %34 to i32
%36 = call i64 @malloc(i32 noundef %35)
%37 = inttoptr i64 %36 to ptr
store ptr %37, ptr %14, align 8
%38 = load i32, ptr @dmax, align 4
%39 = add nsw i32 %38, 1
%40 = sext i32 %39 to i64
%41 = mul i64 %40, 8
%42 = trunc i64 %41 to i32
%43 = call i64 @malloc(i32 noundef %42)
%44 = inttoptr i64 %43 to ptr
store ptr %44, ptr %7, align 8
%45 = load i32, ptr @dmax, align 4
%46 = add nsw i32 %45, 1
%47 = sext i32 %46 to i64
%48 = mul i64 %47, 8
%49 = trunc i64 %48 to i32
%50 = call i64 @malloc(i32 noundef %49)
%51 = inttoptr i64 %50 to ptr
store ptr %51, ptr %8, align 8
store double 0.000000e+00, ptr %11, align 8
%52 = load ptr, ptr %13, align 8
%53 = getelementptr inbounds double, ptr %52, i64 0
store double 0.000000e+00, ptr %53, align 8
store double 0x3EB0C6F7A0B5ED8D, ptr %12, align 8
store i32 1, ptr %17, align 4
br label %54
54: ; preds = %69, %3
%55 = load i32, ptr %17, align 4
%56 = load i32, ptr @norc, align 4
%57 = sub nsw i32 %56, 1
%58 = icmp sle i32 %55, %57
br i1 %58, label %59, label %72
59: ; preds = %54
%60 = load ptr, ptr %5, align 8
%61 = load i32, ptr %17, align 4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds double, ptr %60, i64 %62
%64 = load double, ptr %63, align 8
%65 = load ptr, ptr %13, align 8
%66 = load i32, ptr %17, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds double, ptr %65, i64 %67
store double %64, ptr %68, align 8
br label %69
69: ; preds = %59
%70 = load i32, ptr %17, align 4
%71 = add nsw i32 %70, 1
store i32 %71, ptr %17, align 4
br label %54, !llvm.loop !6
72: ; preds = %54
store i32 1, ptr %17, align 4
br label %73
73: ; preds = %90, %72
%74 = load i32, ptr %17, align 4
%75 = load i32, ptr @nc, align 4
%76 = icmp sle i32 %74, %75
br i1 %76, label %77, label %93
77: ; preds = %73
%78 = load ptr, ptr %5, align 8
%79 = load i32, ptr @norc, align 4
%80 = sub nsw i32 %79, 1
%81 = load i32, ptr %17, align 4
%82 = add nsw i32 %80, %81
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds double, ptr %78, i64 %83
%85 = load double, ptr %84, align 8
%86 = load ptr, ptr %14, align 8
%87 = load i32, ptr %17, align 4
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds double, ptr %86, i64 %88
store double %85, ptr %89, align 8
br label %90
90: ; preds = %77
%91 = load i32, ptr %17, align 4
%92 = add nsw i32 %91, 1
store i32 %92, ptr %17, align 4
br label %73, !llvm.loop !8
93: ; preds = %73
%94 = load ptr, ptr %5, align 8
%95 = load i32, ptr %4, align 4
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds double, ptr %94, i64 %96
%98 = load double, ptr %97, align 8
store double %98, ptr %16, align 8
%99 = load double, ptr %16, align 8
%100 = fcmp olt double %99, 0.000000e+00
br i1 %100, label %104, label %101
101: ; preds = %93
%102 = load double, ptr %16, align 8
%103 = fcmp oge double %102, 1.000000e+00
br i1 %103, label %104, label %106
104: ; preds = %101, %93
%105 = load ptr, ptr %6, align 8
store double 1.000000e+10, ptr %105, align 8
br label %350
106: ; preds = %101
store i32 1, ptr %18, align 4
br label %107
107: ; preds = %140, %106
%108 = load i32, ptr %18, align 4
%109 = load i32, ptr @dmax, align 4
%110 = icmp sle i32 %108, %109
br i1 %110, label %111, label %143
111: ; preds = %107
store i32 1, ptr %19, align 4
br label %112
112: ; preds = %136, %111
%113 = load i32, ptr %19, align 4
%114 = load i32, ptr @dmax, align 4
%115 = icmp sle i32 %113, %114
br i1 %115, label %116, label %139
116: ; preds = %112
%117 = load i32, ptr %18, align 4
%118 = load i32, ptr %19, align 4
%119 = icmp eq i32 %117, %118
br i1 %119, label %120, label %127
120: ; preds = %116
%121 = load i32, ptr %18, align 4
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds [20 x [20 x double]], ptr %9, i64 0, i64 %122
%124 = load i32, ptr %19, align 4
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds [20 x double], ptr %123, i64 0, i64 %125
store double 1.000000e+00, ptr %126, align 8
br label %135
127: ; preds = %116
%128 = load double, ptr %16, align 8
%129 = load i32, ptr %18, align 4
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds [20 x [20 x double]], ptr %9, i64 0, i64 %130
%132 = load i32, ptr %19, align 4
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds [20 x double], ptr %131, i64 0, i64 %133
store double %128, ptr %134, align 8
br label %135
135: ; preds = %127, %120
br label %136
136: ; preds = %135
%137 = load i32, ptr %19, align 4
%138 = add nsw i32 %137, 1
store i32 %138, ptr %19, align 4
br label %112, !llvm.loop !9
139: ; preds = %112
br label %140
140: ; preds = %139
%141 = load i32, ptr %18, align 4
%142 = add nsw i32 %141, 1
store i32 %142, ptr %18, align 4
br label %107, !llvm.loop !10
143: ; preds = %107
store i32 1, ptr %17, align 4
br label %144
144: ; preds = %336, %143
%145 = load i32, ptr %17, align 4
%146 = load i32, ptr @ncl, align 4
%147 = icmp sle i32 %145, %146
br i1 %147, label %148, label %339
148: ; preds = %144
%149 = load ptr, ptr @dvec, align 8
%150 = load i32, ptr %17, align 4
%151 = sext i32 %150 to i64
%152 = getelementptr inbounds i32, ptr %149, i64 %151
%153 = load i32, ptr %152, align 4
store i32 %153, ptr %22, align 4
%154 = load ptr, ptr @dstart, align 8
%155 = load i32, ptr %17, align 4
%156 = sext i32 %155 to i64
%157 = getelementptr inbounds i32, ptr %154, i64 %156
%158 = load i32, ptr %157, align 4
store i32 %158, ptr %23, align 4
%159 = load i32, ptr %22, align 4
%160 = icmp sle i32 %159, 7
br i1 %160, label %161, label %162
161: ; preds = %148
store i32 0, ptr %21, align 4
br label %163
162: ; preds = %148
store i32 2000, ptr %21, align 4
br label %163
163: ; preds = %162, %161
store i32 1, ptr %18, align 4
br label %164
164: ; preds = %272, %163
%165 = load i32, ptr %18, align 4
%166 = load i32, ptr %22, align 4
%167 = icmp sle i32 %165, %166
br i1 %167, label %168, label %275
168: ; preds = %164
%169 = load ptr, ptr %13, align 8
%170 = getelementptr inbounds double, ptr %169, i64 0
store double 0.000000e+00, ptr %170, align 8
store i32 1, ptr %20, align 4
store double 0.000000e+00, ptr %15, align 8
br label %171
171: ; preds = %195, %168
%172 = load i32, ptr %20, align 4
%173 = load i32, ptr @nc, align 4
%174 = icmp sle i32 %172, %173
br i1 %174, label %175, label %198
175: ; preds = %171
%176 = load ptr, ptr %14, align 8
%177 = load i32, ptr %20, align 4
%178 = sext i32 %177 to i64
%179 = getelementptr inbounds double, ptr %176, i64 %178
%180 = load double, ptr %179, align 8
%181 = load ptr, ptr @x, align 8
%182 = load i32, ptr %23, align 4
%183 = load i32, ptr %18, align 4
%184 = add nsw i32 %182, %183
%185 = sub nsw i32 %184, 1
%186 = sext i32 %185 to i64
%187 = getelementptr inbounds ptr, ptr %181, i64 %186
%188 = load ptr, ptr %187, align 8
%189 = load i32, ptr %20, align 4
%190 = sext i32 %189 to i64
%191 = getelementptr inbounds double, ptr %188, i64 %190
%192 = load double, ptr %191, align 8
%193 = load double, ptr %15, align 8
%194 = call double @llvm.fmuladd.f64(double %180, double %192, double %193)
store double %194, ptr %15, align 8
br label %195
195: ; preds = %175
%196 = load i32, ptr %20, align 4
%197 = add nsw i32 %196, 1
store i32 %197, ptr %20, align 4
br label %171, !llvm.loop !11
198: ; preds = %171
%199 = load ptr, ptr @y, align 8
%200 = load i32, ptr %23, align 4
%201 = load i32, ptr %18, align 4
%202 = add nsw i32 %200, %201
%203 = sub nsw i32 %202, 1
%204 = sext i32 %203 to i64
%205 = getelementptr inbounds i32, ptr %199, i64 %204
%206 = load i32, ptr %205, align 4
store i32 %206, ptr %19, align 4
%207 = load i32, ptr %19, align 4
%208 = icmp eq i32 %207, 1
br i1 %208, label %209, label %225
209: ; preds = %198
%210 = load ptr, ptr %7, align 8
%211 = load i32, ptr %18, align 4
%212 = sext i32 %211 to i64
%213 = getelementptr inbounds double, ptr %210, i64 %212
store double -6.000000e+00, ptr %213, align 8
%214 = load double, ptr %15, align 8
%215 = load ptr, ptr %13, align 8
%216 = load i32, ptr %19, align 4
%217 = sext i32 %216 to i64
%218 = getelementptr inbounds double, ptr %215, i64 %217
%219 = load double, ptr %218, align 8
%220 = fadd double %214, %219
%221 = load ptr, ptr %8, align 8
%222 = load i32, ptr %18, align 4
%223 = sext i32 %222 to i64
%224 = getelementptr inbounds double, ptr %221, i64 %223
store double %220, ptr %224, align 8
br label %271
225: ; preds = %198
%226 = load i32, ptr %19, align 4
%227 = load i32, ptr @norc, align 4
%228 = icmp eq i32 %226, %227
br i1 %228, label %229, label %246
229: ; preds = %225
%230 = load double, ptr %15, align 8
%231 = load ptr, ptr %13, align 8
%232 = load i32, ptr %19, align 4
%233 = sub nsw i32 %232, 1
%234 = sext i32 %233 to i64
%235 = getelementptr inbounds double, ptr %231, i64 %234
%236 = load double, ptr %235, align 8
%237 = fadd double %230, %236
%238 = load ptr, ptr %7, align 8
%239 = load i32, ptr %18, align 4
%240 = sext i32 %239 to i64
%241 = getelementptr inbounds double, ptr %238, i64 %240
store double %237, ptr %241, align 8
%242 = load ptr, ptr %8, align 8
%243 = load i32, ptr %18, align 4
%244 = sext i32 %243 to i64
%245 = getelementptr inbounds double, ptr %242, i64 %244
store double 6.000000e+00, ptr %245, align 8
br label %270
246: ; preds = %225
%247 = load double, ptr %15, align 8
%248 = load ptr, ptr %13, align 8
%249 = load i32, ptr %19, align 4
%250 = sub nsw i32 %249, 1
%251 = sext i32 %250 to i64
%252 = getelementptr inbounds double, ptr %248, i64 %251
%253 = load double, ptr %252, align 8
%254 = fadd double %247, %253
%255 = load ptr, ptr %7, align 8
%256 = load i32, ptr %18, align 4
%257 = sext i32 %256 to i64
%258 = getelementptr inbounds double, ptr %255, i64 %257
store double %254, ptr %258, align 8
%259 = load double, ptr %15, align 8
%260 = load ptr, ptr %13, align 8
%261 = load i32, ptr %19, align 4
%262 = sext i32 %261 to i64
%263 = getelementptr inbounds double, ptr %260, i64 %262
%264 = load double, ptr %263, align 8
%265 = fadd double %259, %264
%266 = load ptr, ptr %8, align 8
%267 = load i32, ptr %18, align 4
%268 = sext i32 %267 to i64
%269 = getelementptr inbounds double, ptr %266, i64 %268
store double %265, ptr %269, align 8
br label %270
270: ; preds = %246, %229
br label %271
271: ; preds = %270, %209
br label %272
272: ; preds = %271
%273 = load i32, ptr %18, align 4
%274 = add nsw i32 %273, 1
store i32 %274, ptr %18, align 4
br label %164, !llvm.loop !12
275: ; preds = %164
%276 = load i32, ptr %22, align 4
%277 = icmp sge i32 %276, 2
br i1 %277, label %278, label %285
278: ; preds = %275
%279 = load i32, ptr %22, align 4
%280 = load ptr, ptr %7, align 8
%281 = load ptr, ptr %8, align 8
%282 = load double, ptr %16, align 8
%283 = load double, ptr %12, align 8
%284 = call double @exchmvn(i32 noundef %279, ptr noundef %280, ptr noundef %281, double noundef %282, double noundef %283)
store double %284, ptr %10, align 8
br label %299
285: ; preds = %275
%286 = load i32, ptr %19, align 4
%287 = icmp sge i32 %286, 1
br i1 %287, label %288, label %298
288: ; preds = %285
%289 = load ptr, ptr %8, align 8
%290 = getelementptr inbounds double, ptr %289, i64 1
%291 = load double, ptr %290, align 8
%292 = call double @pnorms(double noundef %291)
%293 = load ptr, ptr %7, align 8
%294 = getelementptr inbounds double, ptr %293, i64 1
%295 = load double, ptr %294, align 8
%296 = call double @pnorms(double noundef %295)
%297 = fsub double %292, %296
store double %297, ptr %10, align 8
br label %298
298: ; preds = %288, %285
br label %299
299: ; preds = %298, %278
%300 = load double, ptr %10, align 8
%301 = fcmp ole double %300, -1.000000e-01
br i1 %301, label %302, label %326
302: ; preds = %299
%303 = load ptr, ptr %6, align 8
store double 1.000000e+09, ptr %303, align 8
store i32 1, ptr %18, align 4
br label %304
304: ; preds = %322, %302
%305 = load i32, ptr %18, align 4
%306 = load i32, ptr %22, align 4
%307 = icmp sle i32 %305, %306
br i1 %307, label %308, label %325
308: ; preds = %304
%309 = load i32, ptr %18, align 4
%310 = load ptr, ptr %7, align 8
%311 = load i32, ptr %18, align 4
%312 = sext i32 %311 to i64
%313 = getelementptr inbounds double, ptr %310, i64 %312
%314 = load double, ptr %313, align 8
%315 = load i32, ptr %18, align 4
%316 = load ptr, ptr %8, align 8
%317 = load i32, ptr %18, align 4
%318 = sext i32 %317 to i64
%319 = getelementptr inbounds double, ptr %316, i64 %318
%320 = load double, ptr %319, align 8
%321 = call i32 @printf(ptr noundef @.str, i32 noundef %309, double noundef %314, i32 noundef %315, double noundef %320)
br label %322
322: ; preds = %308
%323 = load i32, ptr %18, align 4
%324 = add nsw i32 %323, 1
store i32 %324, ptr %18, align 4
br label %304, !llvm.loop !13
325: ; preds = %304
br label %350
326: ; preds = %299
%327 = load double, ptr %10, align 8
%328 = fcmp ole double %327, 0.000000e+00
br i1 %328, label %329, label %330
329: ; preds = %326
store double 1.000000e-15, ptr %10, align 8
br label %330
330: ; preds = %329, %326
%331 = load double, ptr %10, align 8
%332 = call i64 @log(double noundef %331)
%333 = sitofp i64 %332 to double
%334 = load double, ptr %11, align 8
%335 = fsub double %334, %333
store double %335, ptr %11, align 8
br label %336
336: ; preds = %330
%337 = load i32, ptr %17, align 4
%338 = add nsw i32 %337, 1
store i32 %338, ptr %17, align 4
br label %144, !llvm.loop !14
339: ; preds = %144
%340 = load double, ptr %11, align 8
%341 = load ptr, ptr %6, align 8
store double %340, ptr %341, align 8
%342 = load ptr, ptr %13, align 8
%343 = call i32 @free(ptr noundef %342)
%344 = load ptr, ptr %14, align 8
%345 = call i32 @free(ptr noundef %344)
%346 = load ptr, ptr %7, align 8
%347 = call i32 @free(ptr noundef %346)
%348 = load ptr, ptr %8, align 8
%349 = call i32 @free(ptr noundef %348)
br label %350
350: ; preds = %339, %325, %104
ret void
}
declare i64 @malloc(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
declare double @exchmvn(i32 noundef, ptr noundef, ptr noundef, double noundef, double noundef) #1
declare double @pnorms(double noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, double noundef, i32 noundef, double noundef) #1
declare i64 @log(double 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" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqvtp37d_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@norc = external global i32, align 4
@nc = external global i32, align 4
@dmax = external global i32, align 4
@ncl = external global i32, align 4
@dvec = external global ptr, align 8
@dstart = external global ptr, align 8
@x = external global ptr, align 8
@y = external global ptr, align 8
@.str = private unnamed_addr constant [28 x i8] c"pa[%d]=%6.3f, pb[%d]=%6.3f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @nllkexchord(i32 noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca [20 x [20 x double]], align 16
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca double, align 8
%16 = alloca double, align 8
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%24 = load i32, ptr @norc, align 4
%25 = add nsw i32 %24, 1
%26 = sext i32 %25 to i64
%27 = mul i64 %26, 8
%28 = trunc i64 %27 to i32
%29 = call i64 @malloc(i32 noundef %28)
%30 = inttoptr i64 %29 to ptr
store ptr %30, ptr %13, align 8
%31 = load i32, ptr @nc, align 4
%32 = add nsw i32 %31, 1
%33 = sext i32 %32 to i64
%34 = mul i64 %33, 8
%35 = trunc i64 %34 to i32
%36 = call i64 @malloc(i32 noundef %35)
%37 = inttoptr i64 %36 to ptr
store ptr %37, ptr %14, align 8
%38 = load i32, ptr @dmax, align 4
%39 = add nsw i32 %38, 1
%40 = sext i32 %39 to i64
%41 = mul i64 %40, 8
%42 = trunc i64 %41 to i32
%43 = call i64 @malloc(i32 noundef %42)
%44 = inttoptr i64 %43 to ptr
store ptr %44, ptr %7, align 8
%45 = load i32, ptr @dmax, align 4
%46 = add nsw i32 %45, 1
%47 = sext i32 %46 to i64
%48 = mul i64 %47, 8
%49 = trunc i64 %48 to i32
%50 = call i64 @malloc(i32 noundef %49)
%51 = inttoptr i64 %50 to ptr
store ptr %51, ptr %8, align 8
store double 0.000000e+00, ptr %11, align 8
%52 = load ptr, ptr %13, align 8
%53 = getelementptr inbounds double, ptr %52, i64 0
store double 0.000000e+00, ptr %53, align 8
store double 0x3EB0C6F7A0B5ED8D, ptr %12, align 8
store i32 1, ptr %17, align 4
%54 = load i32, ptr %17, align 4
%55 = load i32, ptr @norc, align 4
%56 = sub nsw i32 %55, 1
%57 = icmp sle i32 %54, %56
br i1 %57, label %.lr.ph, label %75
.lr.ph: ; preds = %3
br label %58
58: ; preds = %.lr.ph, %68
%59 = load ptr, ptr %5, align 8
%60 = load i32, ptr %17, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds double, ptr %59, i64 %61
%63 = load double, ptr %62, align 8
%64 = load ptr, ptr %13, align 8
%65 = load i32, ptr %17, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds double, ptr %64, i64 %66
store double %63, ptr %67, align 8
br label %68
68: ; preds = %58
%69 = load i32, ptr %17, align 4
%70 = add nsw i32 %69, 1
store i32 %70, ptr %17, align 4
%71 = load i32, ptr %17, align 4
%72 = load i32, ptr @norc, align 4
%73 = sub nsw i32 %72, 1
%74 = icmp sle i32 %71, %73
br i1 %74, label %58, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %68
br label %75
75: ; preds = %._crit_edge, %3
store i32 1, ptr %17, align 4
%76 = load i32, ptr %17, align 4
%77 = load i32, ptr @nc, align 4
%78 = icmp sle i32 %76, %77
br i1 %78, label %.lr.ph2, label %98
.lr.ph2: ; preds = %75
br label %79
79: ; preds = %.lr.ph2, %92
%80 = load ptr, ptr %5, align 8
%81 = load i32, ptr @norc, align 4
%82 = sub nsw i32 %81, 1
%83 = load i32, ptr %17, align 4
%84 = add nsw i32 %82, %83
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds double, ptr %80, i64 %85
%87 = load double, ptr %86, align 8
%88 = load ptr, ptr %14, align 8
%89 = load i32, ptr %17, align 4
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds double, ptr %88, i64 %90
store double %87, ptr %91, align 8
br label %92
92: ; preds = %79
%93 = load i32, ptr %17, align 4
%94 = add nsw i32 %93, 1
store i32 %94, ptr %17, align 4
%95 = load i32, ptr %17, align 4
%96 = load i32, ptr @nc, align 4
%97 = icmp sle i32 %95, %96
br i1 %97, label %79, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %92
br label %98
98: ; preds = %._crit_edge3, %75
%99 = load ptr, ptr %5, align 8
%100 = load i32, ptr %4, align 4
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds double, ptr %99, i64 %101
%103 = load double, ptr %102, align 8
store double %103, ptr %16, align 8
%104 = load double, ptr %16, align 8
%105 = fcmp olt double %104, 0.000000e+00
br i1 %105, label %109, label %106
106: ; preds = %98
%107 = load double, ptr %16, align 8
%108 = fcmp oge double %107, 1.000000e+00
br i1 %108, label %109, label %111
109: ; preds = %106, %98
%110 = load ptr, ptr %6, align 8
store double 1.000000e+10, ptr %110, align 8
br label %367
111: ; preds = %106
store i32 1, ptr %18, align 4
%112 = load i32, ptr %18, align 4
%113 = load i32, ptr @dmax, align 4
%114 = icmp sle i32 %112, %113
br i1 %114, label %.lr.ph8, label %152
.lr.ph8: ; preds = %111
br label %115
115: ; preds = %.lr.ph8, %146
store i32 1, ptr %19, align 4
%116 = load i32, ptr %19, align 4
%117 = load i32, ptr @dmax, align 4
%118 = icmp sle i32 %116, %117
br i1 %118, label %.lr.ph5, label %145
.lr.ph5: ; preds = %115
br label %119
119: ; preds = %.lr.ph5, %139
%120 = load i32, ptr %18, align 4
%121 = load i32, ptr %19, align 4
%122 = icmp eq i32 %120, %121
br i1 %122, label %123, label %130
123: ; preds = %119
%124 = load i32, ptr %18, align 4
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds [20 x [20 x double]], ptr %9, i64 0, i64 %125
%127 = load i32, ptr %19, align 4
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds [20 x double], ptr %126, i64 0, i64 %128
store double 1.000000e+00, ptr %129, align 8
br label %138
130: ; preds = %119
%131 = load double, ptr %16, align 8
%132 = load i32, ptr %18, align 4
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds [20 x [20 x double]], ptr %9, i64 0, i64 %133
%135 = load i32, ptr %19, align 4
%136 = sext i32 %135 to i64
%137 = getelementptr inbounds [20 x double], ptr %134, i64 0, i64 %136
store double %131, ptr %137, align 8
br label %138
138: ; preds = %130, %123
br label %139
139: ; preds = %138
%140 = load i32, ptr %19, align 4
%141 = add nsw i32 %140, 1
store i32 %141, ptr %19, align 4
%142 = load i32, ptr %19, align 4
%143 = load i32, ptr @dmax, align 4
%144 = icmp sle i32 %142, %143
br i1 %144, label %119, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %139
br label %145
145: ; preds = %._crit_edge6, %115
br label %146
146: ; preds = %145
%147 = load i32, ptr %18, align 4
%148 = add nsw i32 %147, 1
store i32 %148, ptr %18, align 4
%149 = load i32, ptr %18, align 4
%150 = load i32, ptr @dmax, align 4
%151 = icmp sle i32 %149, %150
br i1 %151, label %115, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %146
br label %152
152: ; preds = %._crit_edge9, %111
store i32 1, ptr %17, align 4
%153 = load i32, ptr %17, align 4
%154 = load i32, ptr @ncl, align 4
%155 = icmp sle i32 %153, %154
br i1 %155, label %.lr.ph17, label %356
.lr.ph17: ; preds = %152
br label %156
156: ; preds = %.lr.ph17, %350
%157 = load ptr, ptr @dvec, align 8
%158 = load i32, ptr %17, align 4
%159 = sext i32 %158 to i64
%160 = getelementptr inbounds i32, ptr %157, i64 %159
%161 = load i32, ptr %160, align 4
store i32 %161, ptr %22, align 4
%162 = load ptr, ptr @dstart, align 8
%163 = load i32, ptr %17, align 4
%164 = sext i32 %163 to i64
%165 = getelementptr inbounds i32, ptr %162, i64 %164
%166 = load i32, ptr %165, align 4
store i32 %166, ptr %23, align 4
%167 = load i32, ptr %22, align 4
%168 = icmp sle i32 %167, 7
br i1 %168, label %169, label %170
169: ; preds = %156
store i32 0, ptr %21, align 4
br label %171
170: ; preds = %156
store i32 2000, ptr %21, align 4
br label %171
171: ; preds = %170, %169
store i32 1, ptr %18, align 4
%172 = load i32, ptr %18, align 4
%173 = load i32, ptr %22, align 4
%174 = icmp sle i32 %172, %173
br i1 %174, label %.lr.ph14, label %287
.lr.ph14: ; preds = %171
br label %175
175: ; preds = %.lr.ph14, %281
%176 = load ptr, ptr %13, align 8
%177 = getelementptr inbounds double, ptr %176, i64 0
store double 0.000000e+00, ptr %177, align 8
store i32 1, ptr %20, align 4
store double 0.000000e+00, ptr %15, align 8
%178 = load i32, ptr %20, align 4
%179 = load i32, ptr @nc, align 4
%180 = icmp sle i32 %178, %179
br i1 %180, label %.lr.ph11, label %207
.lr.ph11: ; preds = %175
br label %181
181: ; preds = %.lr.ph11, %201
%182 = load ptr, ptr %14, align 8
%183 = load i32, ptr %20, align 4
%184 = sext i32 %183 to i64
%185 = getelementptr inbounds double, ptr %182, i64 %184
%186 = load double, ptr %185, align 8
%187 = load ptr, ptr @x, align 8
%188 = load i32, ptr %23, align 4
%189 = load i32, ptr %18, align 4
%190 = add nsw i32 %188, %189
%191 = sub nsw i32 %190, 1
%192 = sext i32 %191 to i64
%193 = getelementptr inbounds ptr, ptr %187, i64 %192
%194 = load ptr, ptr %193, align 8
%195 = load i32, ptr %20, align 4
%196 = sext i32 %195 to i64
%197 = getelementptr inbounds double, ptr %194, i64 %196
%198 = load double, ptr %197, align 8
%199 = load double, ptr %15, align 8
%200 = call double @llvm.fmuladd.f64(double %186, double %198, double %199)
store double %200, ptr %15, align 8
br label %201
201: ; preds = %181
%202 = load i32, ptr %20, align 4
%203 = add nsw i32 %202, 1
store i32 %203, ptr %20, align 4
%204 = load i32, ptr %20, align 4
%205 = load i32, ptr @nc, align 4
%206 = icmp sle i32 %204, %205
br i1 %206, label %181, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %201
br label %207
207: ; preds = %._crit_edge12, %175
%208 = load ptr, ptr @y, align 8
%209 = load i32, ptr %23, align 4
%210 = load i32, ptr %18, align 4
%211 = add nsw i32 %209, %210
%212 = sub nsw i32 %211, 1
%213 = sext i32 %212 to i64
%214 = getelementptr inbounds i32, ptr %208, i64 %213
%215 = load i32, ptr %214, align 4
store i32 %215, ptr %19, align 4
%216 = load i32, ptr %19, align 4
%217 = icmp eq i32 %216, 1
br i1 %217, label %218, label %234
218: ; preds = %207
%219 = load ptr, ptr %7, align 8
%220 = load i32, ptr %18, align 4
%221 = sext i32 %220 to i64
%222 = getelementptr inbounds double, ptr %219, i64 %221
store double -6.000000e+00, ptr %222, align 8
%223 = load double, ptr %15, align 8
%224 = load ptr, ptr %13, align 8
%225 = load i32, ptr %19, align 4
%226 = sext i32 %225 to i64
%227 = getelementptr inbounds double, ptr %224, i64 %226
%228 = load double, ptr %227, align 8
%229 = fadd double %223, %228
%230 = load ptr, ptr %8, align 8
%231 = load i32, ptr %18, align 4
%232 = sext i32 %231 to i64
%233 = getelementptr inbounds double, ptr %230, i64 %232
store double %229, ptr %233, align 8
br label %280
234: ; preds = %207
%235 = load i32, ptr %19, align 4
%236 = load i32, ptr @norc, align 4
%237 = icmp eq i32 %235, %236
br i1 %237, label %238, label %255
238: ; preds = %234
%239 = load double, ptr %15, align 8
%240 = load ptr, ptr %13, align 8
%241 = load i32, ptr %19, align 4
%242 = sub nsw i32 %241, 1
%243 = sext i32 %242 to i64
%244 = getelementptr inbounds double, ptr %240, i64 %243
%245 = load double, ptr %244, align 8
%246 = fadd double %239, %245
%247 = load ptr, ptr %7, align 8
%248 = load i32, ptr %18, align 4
%249 = sext i32 %248 to i64
%250 = getelementptr inbounds double, ptr %247, i64 %249
store double %246, ptr %250, align 8
%251 = load ptr, ptr %8, align 8
%252 = load i32, ptr %18, align 4
%253 = sext i32 %252 to i64
%254 = getelementptr inbounds double, ptr %251, i64 %253
store double 6.000000e+00, ptr %254, align 8
br label %279
255: ; preds = %234
%256 = load double, ptr %15, align 8
%257 = load ptr, ptr %13, align 8
%258 = load i32, ptr %19, align 4
%259 = sub nsw i32 %258, 1
%260 = sext i32 %259 to i64
%261 = getelementptr inbounds double, ptr %257, i64 %260
%262 = load double, ptr %261, align 8
%263 = fadd double %256, %262
%264 = load ptr, ptr %7, align 8
%265 = load i32, ptr %18, align 4
%266 = sext i32 %265 to i64
%267 = getelementptr inbounds double, ptr %264, i64 %266
store double %263, ptr %267, align 8
%268 = load double, ptr %15, align 8
%269 = load ptr, ptr %13, align 8
%270 = load i32, ptr %19, align 4
%271 = sext i32 %270 to i64
%272 = getelementptr inbounds double, ptr %269, i64 %271
%273 = load double, ptr %272, align 8
%274 = fadd double %268, %273
%275 = load ptr, ptr %8, align 8
%276 = load i32, ptr %18, align 4
%277 = sext i32 %276 to i64
%278 = getelementptr inbounds double, ptr %275, i64 %277
store double %274, ptr %278, align 8
br label %279
279: ; preds = %255, %238
br label %280
280: ; preds = %279, %218
br label %281
281: ; preds = %280
%282 = load i32, ptr %18, align 4
%283 = add nsw i32 %282, 1
store i32 %283, ptr %18, align 4
%284 = load i32, ptr %18, align 4
%285 = load i32, ptr %22, align 4
%286 = icmp sle i32 %284, %285
br i1 %286, label %175, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %281
br label %287
287: ; preds = %._crit_edge15, %171
%288 = load i32, ptr %22, align 4
%289 = icmp sge i32 %288, 2
br i1 %289, label %290, label %297
290: ; preds = %287
%291 = load i32, ptr %22, align 4
%292 = load ptr, ptr %7, align 8
%293 = load ptr, ptr %8, align 8
%294 = load double, ptr %16, align 8
%295 = load double, ptr %12, align 8
%296 = call double @exchmvn(i32 noundef %291, ptr noundef %292, ptr noundef %293, double noundef %294, double noundef %295)
store double %296, ptr %10, align 8
br label %311
297: ; preds = %287
%298 = load i32, ptr %19, align 4
%299 = icmp sge i32 %298, 1
br i1 %299, label %300, label %310
300: ; preds = %297
%301 = load ptr, ptr %8, align 8
%302 = getelementptr inbounds double, ptr %301, i64 1
%303 = load double, ptr %302, align 8
%304 = call double @pnorms(double noundef %303)
%305 = load ptr, ptr %7, align 8
%306 = getelementptr inbounds double, ptr %305, i64 1
%307 = load double, ptr %306, align 8
%308 = call double @pnorms(double noundef %307)
%309 = fsub double %304, %308
store double %309, ptr %10, align 8
br label %310
310: ; preds = %300, %297
br label %311
311: ; preds = %310, %290
%312 = load double, ptr %10, align 8
%313 = fcmp ole double %312, -1.000000e-01
br i1 %313, label %314, label %340
314: ; preds = %311
%315 = load ptr, ptr %6, align 8
store double 1.000000e+09, ptr %315, align 8
store i32 1, ptr %18, align 4
%316 = load i32, ptr %18, align 4
%317 = load i32, ptr %22, align 4
%318 = icmp sle i32 %316, %317
br i1 %318, label %.lr.ph20, label %339
.lr.ph20: ; preds = %314
br label %319
319: ; preds = %.lr.ph20, %333
%320 = load i32, ptr %18, align 4
%321 = load ptr, ptr %7, align 8
%322 = load i32, ptr %18, align 4
%323 = sext i32 %322 to i64
%324 = getelementptr inbounds double, ptr %321, i64 %323
%325 = load double, ptr %324, align 8
%326 = load i32, ptr %18, align 4
%327 = load ptr, ptr %8, align 8
%328 = load i32, ptr %18, align 4
%329 = sext i32 %328 to i64
%330 = getelementptr inbounds double, ptr %327, i64 %329
%331 = load double, ptr %330, align 8
%332 = call i32 @printf(ptr noundef @.str, i32 noundef %320, double noundef %325, i32 noundef %326, double noundef %331)
br label %333
333: ; preds = %319
%334 = load i32, ptr %18, align 4
%335 = add nsw i32 %334, 1
store i32 %335, ptr %18, align 4
%336 = load i32, ptr %18, align 4
%337 = load i32, ptr %22, align 4
%338 = icmp sle i32 %336, %337
br i1 %338, label %319, label %._crit_edge21, !llvm.loop !13
._crit_edge21: ; preds = %333
br label %339
339: ; preds = %._crit_edge21, %314
br label %367
340: ; preds = %311
%341 = load double, ptr %10, align 8
%342 = fcmp ole double %341, 0.000000e+00
br i1 %342, label %343, label %344
343: ; preds = %340
store double 1.000000e-15, ptr %10, align 8
br label %344
344: ; preds = %343, %340
%345 = load double, ptr %10, align 8
%346 = call i64 @log(double noundef %345)
%347 = sitofp i64 %346 to double
%348 = load double, ptr %11, align 8
%349 = fsub double %348, %347
store double %349, ptr %11, align 8
br label %350
350: ; preds = %344
%351 = load i32, ptr %17, align 4
%352 = add nsw i32 %351, 1
store i32 %352, ptr %17, align 4
%353 = load i32, ptr %17, align 4
%354 = load i32, ptr @ncl, align 4
%355 = icmp sle i32 %353, %354
br i1 %355, label %156, label %._crit_edge18, !llvm.loop !14
._crit_edge18: ; preds = %350
br label %356
356: ; preds = %._crit_edge18, %152
%357 = load double, ptr %11, align 8
%358 = load ptr, ptr %6, align 8
store double %357, ptr %358, align 8
%359 = load ptr, ptr %13, align 8
%360 = call i32 @free(ptr noundef %359)
%361 = load ptr, ptr %14, align 8
%362 = call i32 @free(ptr noundef %361)
%363 = load ptr, ptr %7, align 8
%364 = call i32 @free(ptr noundef %363)
%365 = load ptr, ptr %8, align 8
%366 = call i32 @free(ptr noundef %365)
br label %367
367: ; preds = %356, %339, %109
ret void
}
declare i64 @malloc(i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
declare double @exchmvn(i32 noundef, ptr noundef, ptr noundef, double noundef, double noundef) #1
declare double @pnorms(double noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, double noundef, i32 noundef, double noundef) #1
declare i64 @log(double 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" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
|
; ModuleID = '/tmp/tmpcx9q5pkg.c'
source_filename = "/tmp/tmpcx9q5pkg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 = load ptr, ptr %5, align 8
%7 = getelementptr inbounds ptr, ptr %6, i64 1
%8 = load ptr, ptr %7, align 8
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds ptr, ptr %9, i64 2
%11 = load ptr, ptr %10, align 8
%12 = call i32 @link(ptr noundef %8, ptr noundef %11)
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 2
%15 = load ptr, ptr %14, align 8
%16 = call i32 @unlink(ptr noundef %15)
ret i32 0
}
declare i32 @link(ptr noundef, ptr noundef) #1
declare i32 @unlink(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcx9q5pkg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 = load ptr, ptr %5, align 8
%7 = getelementptr inbounds ptr, ptr %6, i64 1
%8 = load ptr, ptr %7, align 8
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds ptr, ptr %9, i64 2
%11 = load ptr, ptr %10, align 8
%12 = call i32 @link(ptr noundef %8, ptr noundef %11)
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 2
%15 = load ptr, ptr %14, align 8
%16 = call i32 @unlink(ptr noundef %15)
ret i32 0
}
declare i32 @link(ptr noundef, ptr noundef) #1
declare i32 @unlink(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpb194wgei.c'
source_filename = "/tmp/tmpb194wgei.c"
target datalayout = "e-m:e-p270: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/tmpb194wgei.c"
target datalayout = "e-m:e-p270: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/tmpjlq7nqlu.c'
source_filename = "/tmp/tmpjlq7nqlu.c"
target datalayout = "e-m:e-p270: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/tmpjlq7nqlu.c"
target datalayout = "e-m:e-p270: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/tmp8jia4a7m.c'
source_filename = "/tmp/tmp8jia4a7m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @glLoop() #0 {
%1 = call i32 (...) @glutMainLoop()
ret void
}
declare i32 @glutMainLoop(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8jia4a7m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @glLoop() #0 {
%1 = call i32 (...) @glutMainLoop()
ret void
}
declare i32 @glutMainLoop(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpe0zvfqwq.c'
source_filename = "/tmp/tmpe0zvfqwq.c"
target datalayout = "e-m:e-p270: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/tmpe0zvfqwq.c"
target datalayout = "e-m:e-p270: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/tmpsljpbcqt.c'
source_filename = "/tmp/tmpsljpbcqt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@main.vtemp = internal global [6 x [6 x float]] [[6 x float] [float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00], [6 x float] [float 2.000000e+00, float 2.000000e+00, float 2.000000e+00, float 2.000000e+00, float 2.000000e+00, float 2.000000e+00], [6 x float] [float 3.000000e+00, float 3.000000e+00, float 3.000000e+00, float 3.000000e+00, float 3.000000e+00, float 3.000000e+00], [6 x float] [float 4.000000e+00, float 4.000000e+00, float 4.000000e+00, float 4.000000e+00, float 4.000000e+00, float 4.000000e+00], [6 x float] [float 5.000000e+00, float 5.000000e+00, float 5.000000e+00, float 5.000000e+00, float 5.000000e+00, float 5.000000e+00], [6 x float] [float 6.000000e+00, float 6.000000e+00, float 6.000000e+00, float 6.000000e+00, float 6.000000e+00, float 6.000000e+00]], align 16
@main.w = internal global [7 x float] [float 0.000000e+00, float 0.000000e+00, float 1.000000e+00, float 2.000000e+00, float 3.000000e+00, float 4.000000e+00, float 5.000000e+00], align 16
@main.tru = internal global [3 x [3 x float]] [[3 x float] [float 1.250000e+00, float 2.500000e+00, float 3.750000e+00], [3 x float] [float 2.500000e+00, float 5.000000e+00, float 7.500000e+00], [3 x float] [float 3.750000e+00, float 7.500000e+00, float 1.125000e+01]], align 16
@.str = private unnamed_addr constant [11 x i8] c"\0Amatrix v\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"%12.6f\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.3 = private unnamed_addr constant [11 x i8] c"\0Avector w\0A\00", align 1
@.str.4 = private unnamed_addr constant [32 x i8] c"\0Acovariance matrix from svdvar\0A\00", align 1
@.str.5 = private unnamed_addr constant [29 x i8] c"\0Aexpected covariance matrix\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 ptr, align 8
%5 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%6 = call ptr @matrix(i32 noundef 1, i32 noundef 3, i32 noundef 1, i32 noundef 3)
store ptr %6, ptr %4, align 8
%7 = call ptr @convert_matrix(ptr noundef @main.vtemp, i32 noundef 1, i32 noundef 6, i32 noundef 1, i32 noundef 6)
store ptr %7, ptr %5, align 8
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 1, ptr %2, align 4
br label %9
9: ; preds = %33, %0
%10 = load i32, ptr %2, align 4
%11 = icmp sle i32 %10, 6
br i1 %11, label %12, label %36
12: ; preds = %9
store i32 1, ptr %3, align 4
br label %13
13: ; preds = %28, %12
%14 = load i32, ptr %3, align 4
%15 = icmp sle i32 %14, 6
br i1 %15, label %16, label %31
16: ; preds = %13
%17 = load ptr, ptr %5, align 8
%18 = load i32, ptr %2, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds ptr, ptr %17, i64 %19
%21 = load ptr, ptr %20, align 8
%22 = load i32, ptr %3, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds float, ptr %21, i64 %23
%25 = load float, ptr %24, align 4
%26 = fpext float %25 to double
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %26)
br label %28
28: ; preds = %16
%29 = load i32, ptr %3, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %3, align 4
br label %13, !llvm.loop !6
31: ; preds = %13
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %33
33: ; preds = %31
%34 = load i32, ptr %2, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %2, align 4
br label %9, !llvm.loop !8
36: ; preds = %9
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 1, ptr %2, align 4
br label %38
38: ; preds = %48, %36
%39 = load i32, ptr %2, align 4
%40 = icmp sle i32 %39, 6
br i1 %40, label %41, label %51
41: ; preds = %38
%42 = load i32, ptr %2, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds [7 x float], ptr @main.w, i64 0, i64 %43
%45 = load float, ptr %44, align 4
%46 = fpext float %45 to double
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %46)
br label %48
48: ; preds = %41
%49 = load i32, ptr %2, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %2, align 4
br label %38, !llvm.loop !9
51: ; preds = %38
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%53 = load ptr, ptr %5, align 8
%54 = load ptr, ptr %4, align 8
%55 = call i32 @svdvar(ptr noundef %53, i32 noundef 3, ptr noundef @main.w, ptr noundef %54)
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 1, ptr %2, align 4
br label %57
57: ; preds = %81, %51
%58 = load i32, ptr %2, align 4
%59 = icmp sle i32 %58, 3
br i1 %59, label %60, label %84
60: ; preds = %57
store i32 1, ptr %3, align 4
br label %61
61: ; preds = %76, %60
%62 = load i32, ptr %3, align 4
%63 = icmp sle i32 %62, 3
br i1 %63, label %64, label %79
64: ; preds = %61
%65 = load ptr, ptr %4, align 8
%66 = load i32, ptr %2, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds ptr, ptr %65, i64 %67
%69 = load ptr, ptr %68, align 8
%70 = load i32, ptr %3, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds float, ptr %69, i64 %71
%73 = load float, ptr %72, align 4
%74 = fpext float %73 to double
%75 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %74)
br label %76
76: ; preds = %64
%77 = load i32, ptr %3, align 4
%78 = add nsw i32 %77, 1
store i32 %78, ptr %3, align 4
br label %61, !llvm.loop !10
79: ; preds = %61
%80 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %81
81: ; preds = %79
%82 = load i32, ptr %2, align 4
%83 = add nsw i32 %82, 1
store i32 %83, ptr %2, align 4
br label %57, !llvm.loop !11
84: ; preds = %57
%85 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
store i32 1, ptr %2, align 4
br label %86
86: ; preds = %110, %84
%87 = load i32, ptr %2, align 4
%88 = icmp sle i32 %87, 3
br i1 %88, label %89, label %113
89: ; preds = %86
store i32 1, ptr %3, align 4
br label %90
90: ; preds = %105, %89
%91 = load i32, ptr %3, align 4
%92 = icmp sle i32 %91, 3
br i1 %92, label %93, label %108
93: ; preds = %90
%94 = load i32, ptr %2, align 4
%95 = sub nsw i32 %94, 1
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds [3 x [3 x float]], ptr @main.tru, i64 0, i64 %96
%98 = load i32, ptr %3, align 4
%99 = sub nsw i32 %98, 1
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds [3 x float], ptr %97, i64 0, i64 %100
%102 = load float, ptr %101, align 4
%103 = fpext float %102 to double
%104 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %103)
br label %105
105: ; preds = %93
%106 = load i32, ptr %3, align 4
%107 = add nsw i32 %106, 1
store i32 %107, ptr %3, align 4
br label %90, !llvm.loop !12
108: ; preds = %90
%109 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %110
110: ; preds = %108
%111 = load i32, ptr %2, align 4
%112 = add nsw i32 %111, 1
store i32 %112, ptr %2, align 4
br label %86, !llvm.loop !13
113: ; preds = %86
%114 = load ptr, ptr %5, align 8
%115 = call i32 @free_convert_matrix(ptr noundef %114, i32 noundef 1, i32 noundef 6, i32 noundef 1, i32 noundef 6)
%116 = load ptr, ptr %4, align 8
%117 = call i32 @free_matrix(ptr noundef %116, i32 noundef 1, i32 noundef 3, i32 noundef 1, i32 noundef 3)
ret i32 0
}
declare ptr @matrix(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare ptr @convert_matrix(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @svdvar(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @free_convert_matrix(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @free_matrix(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsljpbcqt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@main.vtemp = internal global [6 x [6 x float]] [[6 x float] [float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00], [6 x float] [float 2.000000e+00, float 2.000000e+00, float 2.000000e+00, float 2.000000e+00, float 2.000000e+00, float 2.000000e+00], [6 x float] [float 3.000000e+00, float 3.000000e+00, float 3.000000e+00, float 3.000000e+00, float 3.000000e+00, float 3.000000e+00], [6 x float] [float 4.000000e+00, float 4.000000e+00, float 4.000000e+00, float 4.000000e+00, float 4.000000e+00, float 4.000000e+00], [6 x float] [float 5.000000e+00, float 5.000000e+00, float 5.000000e+00, float 5.000000e+00, float 5.000000e+00, float 5.000000e+00], [6 x float] [float 6.000000e+00, float 6.000000e+00, float 6.000000e+00, float 6.000000e+00, float 6.000000e+00, float 6.000000e+00]], align 16
@main.w = internal global [7 x float] [float 0.000000e+00, float 0.000000e+00, float 1.000000e+00, float 2.000000e+00, float 3.000000e+00, float 4.000000e+00, float 5.000000e+00], align 16
@main.tru = internal global [3 x [3 x float]] [[3 x float] [float 1.250000e+00, float 2.500000e+00, float 3.750000e+00], [3 x float] [float 2.500000e+00, float 5.000000e+00, float 7.500000e+00], [3 x float] [float 3.750000e+00, float 7.500000e+00, float 1.125000e+01]], align 16
@.str = private unnamed_addr constant [11 x i8] c"\0Amatrix v\0A\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"%12.6f\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.3 = private unnamed_addr constant [11 x i8] c"\0Avector w\0A\00", align 1
@.str.4 = private unnamed_addr constant [32 x i8] c"\0Acovariance matrix from svdvar\0A\00", align 1
@.str.5 = private unnamed_addr constant [29 x i8] c"\0Aexpected covariance matrix\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 ptr, align 8
%5 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%6 = call ptr @matrix(i32 noundef 1, i32 noundef 3, i32 noundef 1, i32 noundef 3)
store ptr %6, ptr %4, align 8
%7 = call ptr @convert_matrix(ptr noundef @main.vtemp, i32 noundef 1, i32 noundef 6, i32 noundef 1, i32 noundef 6)
store ptr %7, ptr %5, align 8
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 1, ptr %2, align 4
%9 = load i32, ptr %2, align 4
%10 = icmp sle i32 %9, 6
br i1 %10, label %.lr.ph2, label %38
.lr.ph2: ; preds = %0
br label %11
11: ; preds = %.lr.ph2, %33
store i32 1, ptr %3, align 4
%12 = load i32, ptr %3, align 4
%13 = icmp sle i32 %12, 6
br i1 %13, label %.lr.ph, label %31
.lr.ph: ; preds = %11
br label %14
14: ; preds = %.lr.ph, %26
%15 = load ptr, ptr %5, align 8
%16 = load i32, ptr %2, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds ptr, ptr %15, i64 %17
%19 = load ptr, ptr %18, align 8
%20 = load i32, ptr %3, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds float, ptr %19, i64 %21
%23 = load float, ptr %22, align 4
%24 = fpext float %23 to double
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %24)
br label %26
26: ; preds = %14
%27 = load i32, ptr %3, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %3, align 4
%29 = load i32, ptr %3, align 4
%30 = icmp sle i32 %29, 6
br i1 %30, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %26
br label %31
31: ; preds = %._crit_edge, %11
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %33
33: ; preds = %31
%34 = load i32, ptr %2, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %2, align 4
%36 = load i32, ptr %2, align 4
%37 = icmp sle i32 %36, 6
br i1 %37, label %11, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %33
br label %38
38: ; preds = %._crit_edge3, %0
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 1, ptr %2, align 4
%40 = load i32, ptr %2, align 4
%41 = icmp sle i32 %40, 6
br i1 %41, label %.lr.ph5, label %54
.lr.ph5: ; preds = %38
br label %42
42: ; preds = %.lr.ph5, %49
%43 = load i32, ptr %2, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [7 x float], ptr @main.w, i64 0, i64 %44
%46 = load float, ptr %45, align 4
%47 = fpext float %46 to double
%48 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %47)
br label %49
49: ; preds = %42
%50 = load i32, ptr %2, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %2, align 4
%52 = load i32, ptr %2, align 4
%53 = icmp sle i32 %52, 6
br i1 %53, label %42, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %49
br label %54
54: ; preds = %._crit_edge6, %38
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%56 = load ptr, ptr %5, align 8
%57 = load ptr, ptr %4, align 8
%58 = call i32 @svdvar(ptr noundef %56, i32 noundef 3, ptr noundef @main.w, ptr noundef %57)
%59 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 1, ptr %2, align 4
%60 = load i32, ptr %2, align 4
%61 = icmp sle i32 %60, 3
br i1 %61, label %.lr.ph11, label %89
.lr.ph11: ; preds = %54
br label %62
62: ; preds = %.lr.ph11, %84
store i32 1, ptr %3, align 4
%63 = load i32, ptr %3, align 4
%64 = icmp sle i32 %63, 3
br i1 %64, label %.lr.ph8, label %82
.lr.ph8: ; preds = %62
br label %65
65: ; preds = %.lr.ph8, %77
%66 = load ptr, ptr %4, align 8
%67 = load i32, ptr %2, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds ptr, ptr %66, i64 %68
%70 = load ptr, ptr %69, align 8
%71 = load i32, ptr %3, align 4
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds float, ptr %70, i64 %72
%74 = load float, ptr %73, align 4
%75 = fpext float %74 to double
%76 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %75)
br label %77
77: ; preds = %65
%78 = load i32, ptr %3, align 4
%79 = add nsw i32 %78, 1
store i32 %79, ptr %3, align 4
%80 = load i32, ptr %3, align 4
%81 = icmp sle i32 %80, 3
br i1 %81, label %65, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %77
br label %82
82: ; preds = %._crit_edge9, %62
%83 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %84
84: ; preds = %82
%85 = load i32, ptr %2, align 4
%86 = add nsw i32 %85, 1
store i32 %86, ptr %2, align 4
%87 = load i32, ptr %2, align 4
%88 = icmp sle i32 %87, 3
br i1 %88, label %62, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %84
br label %89
89: ; preds = %._crit_edge12, %54
%90 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
store i32 1, ptr %2, align 4
%91 = load i32, ptr %2, align 4
%92 = icmp sle i32 %91, 3
br i1 %92, label %.lr.ph17, label %120
.lr.ph17: ; preds = %89
br label %93
93: ; preds = %.lr.ph17, %115
store i32 1, ptr %3, align 4
%94 = load i32, ptr %3, align 4
%95 = icmp sle i32 %94, 3
br i1 %95, label %.lr.ph14, label %113
.lr.ph14: ; preds = %93
br label %96
96: ; preds = %.lr.ph14, %108
%97 = load i32, ptr %2, align 4
%98 = sub nsw i32 %97, 1
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds [3 x [3 x float]], ptr @main.tru, i64 0, i64 %99
%101 = load i32, ptr %3, align 4
%102 = sub nsw i32 %101, 1
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds [3 x float], ptr %100, i64 0, i64 %103
%105 = load float, ptr %104, align 4
%106 = fpext float %105 to double
%107 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %106)
br label %108
108: ; preds = %96
%109 = load i32, ptr %3, align 4
%110 = add nsw i32 %109, 1
store i32 %110, ptr %3, align 4
%111 = load i32, ptr %3, align 4
%112 = icmp sle i32 %111, 3
br i1 %112, label %96, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %108
br label %113
113: ; preds = %._crit_edge15, %93
%114 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %115
115: ; preds = %113
%116 = load i32, ptr %2, align 4
%117 = add nsw i32 %116, 1
store i32 %117, ptr %2, align 4
%118 = load i32, ptr %2, align 4
%119 = icmp sle i32 %118, 3
br i1 %119, label %93, label %._crit_edge18, !llvm.loop !13
._crit_edge18: ; preds = %115
br label %120
120: ; preds = %._crit_edge18, %89
%121 = load ptr, ptr %5, align 8
%122 = call i32 @free_convert_matrix(ptr noundef %121, i32 noundef 1, i32 noundef 6, i32 noundef 1, i32 noundef 6)
%123 = load ptr, ptr %4, align 8
%124 = call i32 @free_matrix(ptr noundef %123, i32 noundef 1, i32 noundef 3, i32 noundef 1, i32 noundef 3)
ret i32 0
}
declare ptr @matrix(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare ptr @convert_matrix(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @svdvar(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @free_convert_matrix(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @free_matrix(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
|
; ModuleID = '/tmp/tmpo4831rvv.c'
source_filename = "/tmp/tmpo4831rvv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @paddr_guest2host(ptr noundef %0, i64 noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load i64, ptr %5, align 8
%9 = load i64, ptr %6, align 8
%10 = call ptr @vm_map_gpa(ptr noundef %7, i64 noundef %8, i64 noundef %9)
ret ptr %10
}
declare ptr @vm_map_gpa(ptr noundef, i64 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpo4831rvv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @paddr_guest2host(ptr noundef %0, i64 noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load i64, ptr %5, align 8
%9 = load i64, ptr %6, align 8
%10 = call ptr @vm_map_gpa(ptr noundef %7, i64 noundef %8, i64 noundef %9)
ret ptr %10
}
declare ptr @vm_map_gpa(ptr noundef, i64 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmps__bbi1h.c'
source_filename = "/tmp/tmps__bbi1h.c"
target datalayout = "e-m:e-p270: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/tmps__bbi1h.c"
target datalayout = "e-m:e-p270: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/tmpyrxxoibd.c'
source_filename = "/tmp/tmpyrxxoibd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"enter a 24-hour time:\0A\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%d:%d\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"equivalent 12-hour time:\00", align 1
@.str.3 = private unnamed_addr constant [11 x i8] c" %d:%d PM\0A\00", align 1
@.str.4 = private unnamed_addr constant [11 x i8] c" %d:%d AM\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
store i32 0, ptr %2, align 4
store i32 0, ptr %3, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2, ptr noundef %3)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%7 = load i32, ptr %2, align 4
%8 = icmp sgt i32 %7, 12
br i1 %8, label %9, label %14
9: ; preds = %0
%10 = load i32, ptr %2, align 4
%11 = sub nsw i32 %10, 12
%12 = load i32, ptr %3, align 4
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %11, i32 noundef %12)
br label %18
14: ; preds = %0
%15 = load i32, ptr %2, align 4
%16 = load i32, ptr %3, align 4
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %15, i32 noundef %16)
br label %18
18: ; preds = %14, %9
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(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/tmpyrxxoibd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"enter a 24-hour time:\0A\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%d:%d\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"equivalent 12-hour time:\00", align 1
@.str.3 = private unnamed_addr constant [11 x i8] c" %d:%d PM\0A\00", align 1
@.str.4 = private unnamed_addr constant [11 x i8] c" %d:%d AM\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
store i32 0, ptr %2, align 4
store i32 0, ptr %3, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2, ptr noundef %3)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%7 = load i32, ptr %2, align 4
%8 = icmp sgt i32 %7, 12
br i1 %8, label %9, label %14
9: ; preds = %0
%10 = load i32, ptr %2, align 4
%11 = sub nsw i32 %10, 12
%12 = load i32, ptr %3, align 4
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %11, i32 noundef %12)
br label %18
14: ; preds = %0
%15 = load i32, ptr %2, align 4
%16 = load i32, ptr %3, align 4
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %15, i32 noundef %16)
br label %18
18: ; preds = %14, %9
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(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/tmp1ucgch6a.c'
source_filename = "/tmp/tmp1ucgch6a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @compat_strdup(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i64 @strlen(ptr noundef %5)
store i64 %6, ptr %3, align 8
%7 = load i64, ptr %3, align 8
%8 = add i64 %7, 1
%9 = call i64 @malloc(i64 noundef %8)
%10 = inttoptr i64 %9 to ptr
store ptr %10, ptr %4, align 8
%11 = load ptr, ptr %4, align 8
%12 = load ptr, ptr %2, align 8
%13 = call i32 @strcpy(ptr noundef %11, ptr noundef %12)
%14 = load ptr, ptr %4, align 8
ret ptr %14
}
declare i64 @strlen(ptr noundef) #1
declare i64 @malloc(i64 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1ucgch6a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @compat_strdup(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i64 @strlen(ptr noundef %5)
store i64 %6, ptr %3, align 8
%7 = load i64, ptr %3, align 8
%8 = add i64 %7, 1
%9 = call i64 @malloc(i64 noundef %8)
%10 = inttoptr i64 %9 to ptr
store ptr %10, ptr %4, align 8
%11 = load ptr, ptr %4, align 8
%12 = load ptr, ptr %2, align 8
%13 = call i32 @strcpy(ptr noundef %11, ptr noundef %12)
%14 = load ptr, ptr %4, align 8
ret ptr %14
}
declare i64 @strlen(ptr noundef) #1
declare i64 @malloc(i64 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpwc5lzncp.c'
source_filename = "/tmp/tmpwc5lzncp.c"
target datalayout = "e-m:e-p270: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/tmpwc5lzncp.c"
target datalayout = "e-m:e-p270: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/tmp86_ema5q.c'
source_filename = "/tmp/tmp86_ema5q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"hello\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp86_ema5q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"hello\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2r55mcp5.c'
source_filename = "/tmp/tmp2r55mcp5.c"
target datalayout = "e-m:e-p270: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/tmp2r55mcp5.c"
target datalayout = "e-m:e-p270: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/tmph47kuv29.c'
source_filename = "/tmp/tmph47kuv29.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @ft_unsigned_itoa(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%6 = load i64, ptr %2, align 8
store i64 %6, ptr %5, align 8
store i32 0, ptr %4, align 4
br label %7
7: ; preds = %10, %1
%8 = load i64, ptr %5, align 8
%9 = icmp uge i64 %8, 10
br i1 %9, label %10, label %15
10: ; preds = %7
%11 = load i64, ptr %5, align 8
%12 = udiv i64 %11, 10
store i64 %12, ptr %5, align 8
%13 = load i32, ptr %4, align 4
%14 = add nsw i32 %13, 1
store i32 %14, ptr %4, align 4
br label %7, !llvm.loop !6
15: ; preds = %7
%16 = load i32, ptr %4, align 4
%17 = add nsw i32 %16, 1
%18 = sext i32 %17 to i64
%19 = mul i64 8, %18
%20 = trunc i64 %19 to i32
%21 = call i64 @malloc(i32 noundef %20)
%22 = inttoptr i64 %21 to ptr
store ptr %22, ptr %3, align 8
%23 = load ptr, ptr %3, align 8
%24 = icmp ne ptr %23, null
br i1 %24, label %25, label %49
25: ; preds = %15
%26 = load ptr, ptr %3, align 8
%27 = load i32, ptr %4, align 4
%28 = add nsw i32 %27, 1
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8, ptr %26, i64 %29
store i8 0, ptr %30, align 1
br label %31
31: ; preds = %34, %25
%32 = load i32, ptr %4, align 4
%33 = icmp sge i32 %32, 0
br i1 %33, label %34, label %48
34: ; preds = %31
%35 = load i64, ptr %2, align 8
%36 = urem i64 %35, 10
store i64 %36, ptr %5, align 8
%37 = load i64, ptr %5, align 8
%38 = add i64 48, %37
%39 = trunc i64 %38 to i8
%40 = load ptr, ptr %3, align 8
%41 = load i32, ptr %4, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i8, ptr %40, i64 %42
store i8 %39, ptr %43, align 1
%44 = load i64, ptr %2, align 8
%45 = udiv i64 %44, 10
store i64 %45, ptr %2, align 8
%46 = load i32, ptr %4, align 4
%47 = add nsw i32 %46, -1
store i32 %47, ptr %4, align 4
br label %31, !llvm.loop !8
48: ; preds = %31
br label %49
49: ; preds = %48, %15
%50 = load ptr, ptr %3, align 8
ret ptr %50
}
declare i64 @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmph47kuv29.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @ft_unsigned_itoa(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%6 = load i64, ptr %2, align 8
store i64 %6, ptr %5, align 8
store i32 0, ptr %4, align 4
%7 = load i64, ptr %5, align 8
%8 = icmp uge i64 %7, 10
br i1 %8, label %.lr.ph, label %16
.lr.ph: ; preds = %1
br label %9
9: ; preds = %.lr.ph, %9
%10 = load i64, ptr %5, align 8
%11 = udiv i64 %10, 10
store i64 %11, ptr %5, align 8
%12 = load i32, ptr %4, align 4
%13 = add nsw i32 %12, 1
store i32 %13, ptr %4, align 4
%14 = load i64, ptr %5, align 8
%15 = icmp uge i64 %14, 10
br i1 %15, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %9
br label %16
16: ; preds = %._crit_edge, %1
%17 = load i32, ptr %4, align 4
%18 = add nsw i32 %17, 1
%19 = sext i32 %18 to i64
%20 = mul i64 8, %19
%21 = trunc i64 %20 to i32
%22 = call i64 @malloc(i32 noundef %21)
%23 = inttoptr i64 %22 to ptr
store ptr %23, ptr %3, align 8
%24 = load ptr, ptr %3, align 8
%25 = icmp ne ptr %24, null
br i1 %25, label %26, label %51
26: ; preds = %16
%27 = load ptr, ptr %3, align 8
%28 = load i32, ptr %4, align 4
%29 = add nsw i32 %28, 1
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i8, ptr %27, i64 %30
store i8 0, ptr %31, align 1
%32 = load i32, ptr %4, align 4
%33 = icmp sge i32 %32, 0
br i1 %33, label %.lr.ph2, label %50
.lr.ph2: ; preds = %26
br label %34
34: ; preds = %.lr.ph2, %34
%35 = load i64, ptr %2, align 8
%36 = urem i64 %35, 10
store i64 %36, ptr %5, align 8
%37 = load i64, ptr %5, align 8
%38 = add i64 48, %37
%39 = trunc i64 %38 to i8
%40 = load ptr, ptr %3, align 8
%41 = load i32, ptr %4, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i8, ptr %40, i64 %42
store i8 %39, ptr %43, align 1
%44 = load i64, ptr %2, align 8
%45 = udiv i64 %44, 10
store i64 %45, ptr %2, align 8
%46 = load i32, ptr %4, align 4
%47 = add nsw i32 %46, -1
store i32 %47, ptr %4, align 4
%48 = load i32, ptr %4, align 4
%49 = icmp sge i32 %48, 0
br i1 %49, label %34, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %34
br label %50
50: ; preds = %._crit_edge3, %26
br label %51
51: ; preds = %50, %16
%52 = load ptr, ptr %3, align 8
ret ptr %52
}
declare i64 @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpg147b8h6.c'
source_filename = "/tmp/tmpg147b8h6.c"
target datalayout = "e-m:e-p270: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/tmpg147b8h6.c"
target datalayout = "e-m:e-p270: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/tmpps13y6n2.c'
source_filename = "/tmp/tmpps13y6n2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Gibbs_int(ptr noundef %0, ptr noundef %1, i32 noundef %2, double noundef %3, i32 noundef %4, ptr noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca double, align 8
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca double, align 8
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca double, align 8
%20 = alloca double, align 8
%21 = alloca double, align 8
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store i32 %2, ptr %9, align 4
store double %3, ptr %10, align 8
store i32 %4, ptr %11, align 4
store ptr %5, ptr %12, align 8
store i32 1, ptr %15, align 4
br label %22
22: ; preds = %36, %6
%23 = load i32, ptr %15, align 4
%24 = load i32, ptr %9, align 4
%25 = icmp sle i32 %23, %24
br i1 %25, label %26, label %39
26: ; preds = %22
%27 = load ptr, ptr %7, align 8
%28 = load i32, ptr %15, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i32, ptr %27, i64 %29
%31 = load i32, ptr %30, align 4
%32 = load ptr, ptr %12, align 8
%33 = load i32, ptr %15, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i32, ptr %32, i64 %34
store i32 %31, ptr %35, align 4
br label %36
36: ; preds = %26
%37 = load i32, ptr %15, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %15, align 4
br label %22, !llvm.loop !6
39: ; preds = %22
store i32 1, ptr %18, align 4
br label %40
40: ; preds = %100, %39
%41 = load i32, ptr %18, align 4
%42 = load i32, ptr %11, align 4
%43 = icmp sle i32 %41, %42
br i1 %43, label %44, label %103
44: ; preds = %40
%45 = load i32, ptr %9, align 4
%46 = call i32 @integerrng(i32 noundef 1, i32 noundef %45)
store i32 %46, ptr %17, align 4
%47 = load ptr, ptr %12, align 8
%48 = load i32, ptr %17, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i32, ptr %47, i64 %49
%51 = load i32, ptr %50, align 4
%52 = sub nsw i32 1, %51
%53 = load ptr, ptr %12, align 8
%54 = load i32, ptr %17, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i32, ptr %53, i64 %55
store i32 %52, ptr %56, align 4
%57 = load ptr, ptr %12, align 8
%58 = load i32, ptr %9, align 4
%59 = call double @cost(ptr noundef %57, i32 noundef %58)
store double %59, ptr %19, align 8
%60 = load double, ptr %19, align 8
%61 = load double, ptr %10, align 8
%62 = fdiv double %60, %61
%63 = load ptr, ptr %8, align 8
%64 = load double, ptr %63, align 8
%65 = load double, ptr %10, align 8
%66 = fdiv double %64, %65
%67 = fsub double %62, %66
store double %67, ptr %20, align 8
%68 = load double, ptr %20, align 8
%69 = call double @exp(double noundef %68) #3
%70 = fadd double 1.000000e+00, %69
%71 = fdiv double 1.000000e+00, %70
store double %71, ptr %16, align 8
%72 = call double (...) @uniformrng()
store double %72, ptr %21, align 8
%73 = load double, ptr %16, align 8
%74 = load double, ptr %21, align 8
%75 = fcmp oge double %73, %74
br i1 %75, label %76, label %88
76: ; preds = %44
%77 = load double, ptr %19, align 8
%78 = load ptr, ptr %8, align 8
store double %77, ptr %78, align 8
%79 = load ptr, ptr %12, align 8
%80 = load i32, ptr %17, align 4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds i32, ptr %79, i64 %81
%83 = load i32, ptr %82, align 4
%84 = load ptr, ptr %7, align 8
%85 = load i32, ptr %17, align 4
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds i32, ptr %84, i64 %86
store i32 %83, ptr %87, align 4
br label %99
88: ; preds = %44
%89 = load ptr, ptr %12, align 8
%90 = load i32, ptr %17, align 4
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds i32, ptr %89, i64 %91
%93 = load i32, ptr %92, align 4
%94 = sub nsw i32 1, %93
%95 = load ptr, ptr %12, align 8
%96 = load i32, ptr %17, align 4
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds i32, ptr %95, i64 %97
store i32 %94, ptr %98, align 4
br label %99
99: ; preds = %88, %76
br label %100
100: ; preds = %99
%101 = load i32, ptr %18, align 4
%102 = add nsw i32 %101, 1
store i32 %102, ptr %18, align 4
br label %40, !llvm.loop !8
103: ; preds = %40
ret void
}
declare i32 @integerrng(i32 noundef, i32 noundef) #1
declare double @cost(ptr noundef, i32 noundef) #1
; Function Attrs: nounwind
declare double @exp(double noundef) #2
declare double @uniformrng(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpps13y6n2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Gibbs_int(ptr noundef %0, ptr noundef %1, i32 noundef %2, double noundef %3, i32 noundef %4, ptr noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca double, align 8
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca double, align 8
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca double, align 8
%20 = alloca double, align 8
%21 = alloca double, align 8
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store i32 %2, ptr %9, align 4
store double %3, ptr %10, align 8
store i32 %4, ptr %11, align 4
store ptr %5, ptr %12, align 8
store i32 1, ptr %15, align 4
%22 = load i32, ptr %15, align 4
%23 = load i32, ptr %9, align 4
%24 = icmp sle i32 %22, %23
br i1 %24, label %.lr.ph, label %41
.lr.ph: ; preds = %6
br label %25
25: ; preds = %.lr.ph, %35
%26 = load ptr, ptr %7, align 8
%27 = load i32, ptr %15, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i32, ptr %26, i64 %28
%30 = load i32, ptr %29, align 4
%31 = load ptr, ptr %12, align 8
%32 = load i32, ptr %15, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i32, ptr %31, i64 %33
store i32 %30, ptr %34, align 4
br label %35
35: ; preds = %25
%36 = load i32, ptr %15, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %15, align 4
%38 = load i32, ptr %15, align 4
%39 = load i32, ptr %9, align 4
%40 = icmp sle i32 %38, %39
br i1 %40, label %25, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %35
br label %41
41: ; preds = %._crit_edge, %6
store i32 1, ptr %18, align 4
%42 = load i32, ptr %18, align 4
%43 = load i32, ptr %11, align 4
%44 = icmp sle i32 %42, %43
br i1 %44, label %.lr.ph2, label %107
.lr.ph2: ; preds = %41
br label %45
45: ; preds = %.lr.ph2, %101
%46 = load i32, ptr %9, align 4
%47 = call i32 @integerrng(i32 noundef 1, i32 noundef %46)
store i32 %47, ptr %17, align 4
%48 = load ptr, ptr %12, align 8
%49 = load i32, ptr %17, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds i32, ptr %48, i64 %50
%52 = load i32, ptr %51, align 4
%53 = sub nsw i32 1, %52
%54 = load ptr, ptr %12, align 8
%55 = load i32, ptr %17, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds i32, ptr %54, i64 %56
store i32 %53, ptr %57, align 4
%58 = load ptr, ptr %12, align 8
%59 = load i32, ptr %9, align 4
%60 = call double @cost(ptr noundef %58, i32 noundef %59)
store double %60, ptr %19, align 8
%61 = load double, ptr %19, align 8
%62 = load double, ptr %10, align 8
%63 = fdiv double %61, %62
%64 = load ptr, ptr %8, align 8
%65 = load double, ptr %64, align 8
%66 = load double, ptr %10, align 8
%67 = fdiv double %65, %66
%68 = fsub double %63, %67
store double %68, ptr %20, align 8
%69 = load double, ptr %20, align 8
%70 = call double @exp(double noundef %69) #3
%71 = fadd double 1.000000e+00, %70
%72 = fdiv double 1.000000e+00, %71
store double %72, ptr %16, align 8
%73 = call double (...) @uniformrng()
store double %73, ptr %21, align 8
%74 = load double, ptr %16, align 8
%75 = load double, ptr %21, align 8
%76 = fcmp oge double %74, %75
br i1 %76, label %77, label %89
77: ; preds = %45
%78 = load double, ptr %19, align 8
%79 = load ptr, ptr %8, align 8
store double %78, ptr %79, align 8
%80 = load ptr, ptr %12, align 8
%81 = load i32, ptr %17, align 4
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds i32, ptr %80, i64 %82
%84 = load i32, ptr %83, align 4
%85 = load ptr, ptr %7, align 8
%86 = load i32, ptr %17, align 4
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds i32, ptr %85, i64 %87
store i32 %84, ptr %88, align 4
br label %100
89: ; preds = %45
%90 = load ptr, ptr %12, align 8
%91 = load i32, ptr %17, align 4
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds i32, ptr %90, i64 %92
%94 = load i32, ptr %93, align 4
%95 = sub nsw i32 1, %94
%96 = load ptr, ptr %12, align 8
%97 = load i32, ptr %17, align 4
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds i32, ptr %96, i64 %98
store i32 %95, ptr %99, align 4
br label %100
100: ; preds = %89, %77
br label %101
101: ; preds = %100
%102 = load i32, ptr %18, align 4
%103 = add nsw i32 %102, 1
store i32 %103, ptr %18, align 4
%104 = load i32, ptr %18, align 4
%105 = load i32, ptr %11, align 4
%106 = icmp sle i32 %104, %105
br i1 %106, label %45, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %101
br label %107
107: ; preds = %._crit_edge3, %41
ret void
}
declare i32 @integerrng(i32 noundef, i32 noundef) #1
declare double @cost(ptr noundef, i32 noundef) #1
; Function Attrs: nounwind
declare double @exp(double noundef) #2
declare double @uniformrng(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp3o41gm5h.c'
source_filename = "/tmp/tmp3o41gm5h.c"
target datalayout = "e-m:e-p270: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 [8 x i8] c"I'm f!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @f() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
ret i32 0
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3o41gm5h.c"
target datalayout = "e-m:e-p270: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 [8 x i8] c"I'm f!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @f() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
ret i32 0
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.