llvm-ir stringlengths 479 303k | llvm-optimized-ir stringlengths 468 303k |
|---|---|
; ModuleID = '/tmp/tmpsh8xq65j.c'
source_filename = "/tmp/tmpsh8xq65j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [6 x i8] c"%d %d\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2)
store i32 0, ptr %3, align 4
br label %7
7: ; preds = %18, %0
%8 = load i32, ptr %3, align 4
%9 = load i32, ptr %2, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %21
11: ; preds = %7
%12 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %4, ptr noundef %5)
%13 = load i32, ptr %4, align 4
%14 = call i32 @fibo(i32 noundef %13)
%15 = load i32, ptr %5, align 4
%16 = srem i32 %14, %15
%17 = call i32 @printf(ptr noundef @.str.2, i32 noundef %16)
br label %18
18: ; preds = %11
%19 = load i32, ptr %3, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %3, align 4
br label %7, !llvm.loop !6
21: ; preds = %7
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ...) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @fibo(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpsh8xq65j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [6 x i8] c"%d %d\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str, ptr noundef %2)
store i32 0, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = load i32, ptr %2, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %.lr.ph, label %23
.lr.ph: ; preds = %0
br label %10
10: ; preds = %.lr.ph, %17
%11 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %4, ptr noundef %5)
%12 = load i32, ptr %4, align 4
%13 = call i32 @fibo(i32 noundef %12)
%14 = load i32, ptr %5, align 4
%15 = srem i32 %13, %14
%16 = call i32 @printf(ptr noundef @.str.2, i32 noundef %15)
br label %17
17: ; preds = %10
%18 = load i32, ptr %3, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %3, align 4
%20 = load i32, ptr %3, align 4
%21 = load i32, ptr %2, align 4
%22 = icmp slt i32 %20, %21
br i1 %22, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %23
23: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ...) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @fibo(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp9sjeiu9e.c'
source_filename = "/tmp/tmp9sjeiu9e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @towupper(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca i32, align 4
store i64 %0, ptr %2, align 8
%4 = load i64, ptr %2, align 8
%5 = trunc i64 %4 to i32
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = call i64 @__toupper(i32 noundef %6)
ret i64 %7
}
declare i64 @__toupper(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9sjeiu9e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @towupper(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca i32, align 4
store i64 %0, ptr %2, align 8
%4 = load i64, ptr %2, align 8
%5 = trunc i64 %4 to i32
store i32 %5, ptr %3, align 4
%6 = load i32, ptr %3, align 4
%7 = call i64 @__toupper(i32 noundef %6)
ret i64 %7
}
declare i64 @__toupper(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqkbfpn53.c'
source_filename = "/tmp/tmpqkbfpn53.c"
target datalayout = "e-m:e-p270: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/tmpqkbfpn53.c"
target datalayout = "e-m:e-p270: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/tmp3g_0czk8.c'
source_filename = "/tmp/tmp3g_0czk8.c"
target datalayout = "e-m:e-p270: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/tmp3g_0czk8.c"
target datalayout = "e-m:e-p270: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/tmp92e4cl72.c'
source_filename = "/tmp/tmp92e4cl72.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\1B[?25l\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @start_progress() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp92e4cl72.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\1B[?25l\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @start_progress() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6k46i4bm.c'
source_filename = "/tmp/tmp6k46i4bm.c"
target datalayout = "e-m:e-p270: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 [30 x i8] c"Usage: %s <file> [<form-id>]\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@O_RDONLY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [5 x i8] c"open\00", align 1
@.str.2 = private unnamed_addr constant [38 x i8] c"Failed to read the expression count!\0A\00", align 1
@.str.3 = private unnamed_addr constant [36 x i8] c"Form ID %d is over the maximum %d!\0A\00", align 1
@.str.4 = private unnamed_addr constant [13 x i8] c"Form %d: %s\0A\00", align 1
@.str.5 = private unnamed_addr constant [25 x i8] c"Failed to read form %d!\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca [8192 x i8], align 16
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%12 = load i32, ptr %4, align 4
%13 = icmp slt i32 %12, 2
br i1 %13, label %17, label %14
14: ; preds = %2
%15 = load i32, ptr %4, align 4
%16 = icmp sgt i32 %15, 3
br i1 %16, label %17, label %24
17: ; preds = %14, %2
%18 = load i32, ptr @stderr, align 4
%19 = load ptr, ptr %5, align 8
%20 = getelementptr inbounds ptr, ptr %19, i64 0
%21 = load ptr, ptr %20, align 8
%22 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %18, ptr noundef @.str, ptr noundef %21)
%23 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %23, ptr %3, align 4
br label %110
24: ; preds = %14
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds ptr, ptr %25, i64 1
%27 = load ptr, ptr %26, align 8
store ptr %27, ptr %11, align 8
%28 = load i32, ptr %4, align 4
%29 = icmp eq i32 %28, 3
br i1 %29, label %30, label %35
30: ; preds = %24
%31 = load ptr, ptr %5, align 8
%32 = getelementptr inbounds ptr, ptr %31, i64 2
%33 = load ptr, ptr %32, align 8
%34 = call i32 @atoi(ptr noundef %33)
br label %36
35: ; preds = %24
br label %36
36: ; preds = %35, %30
%37 = phi i32 [ %34, %30 ], [ -1, %35 ]
store i32 %37, ptr %10, align 4
%38 = load ptr, ptr %11, align 8
%39 = load i32, ptr @O_RDONLY, align 4
%40 = call i32 @open(ptr noundef %38, i32 noundef %39)
store i32 %40, ptr %6, align 4
%41 = load i32, ptr %6, align 4
%42 = icmp slt i32 %41, 0
br i1 %42, label %43, label %46
43: ; preds = %36
%44 = call i32 @perror(ptr noundef @.str.1)
%45 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %45, ptr %3, align 4
br label %110
46: ; preds = %36
%47 = load i32, ptr %6, align 4
%48 = getelementptr inbounds [8192 x i8], ptr %7, i64 0, i64 0
%49 = call i32 @read(i32 noundef %47, ptr noundef %48, i32 noundef 1)
%50 = icmp ne i32 %49, 1
br i1 %50, label %51, label %55
51: ; preds = %46
%52 = load i32, ptr @stderr, align 4
%53 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %52, ptr noundef @.str.2)
%54 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %54, ptr %3, align 4
br label %110
55: ; preds = %46
%56 = getelementptr inbounds [8192 x i8], ptr %7, i64 0, i64 0
%57 = load i8, ptr %56, align 16
%58 = sext i8 %57 to i32
%59 = and i32 %58, 255
store i32 %59, ptr %8, align 4
%60 = load i32, ptr %10, align 4
%61 = add nsw i32 %60, 1
%62 = load i32, ptr %8, align 4
%63 = icmp sgt i32 %61, %62
br i1 %63, label %64, label %71
64: ; preds = %55
%65 = load i32, ptr @stderr, align 4
%66 = load i32, ptr %10, align 4
%67 = load i32, ptr %8, align 4
%68 = sub nsw i32 %67, 1
%69 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %65, ptr noundef @.str.3, i32 noundef %66, i32 noundef %68)
%70 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %70, ptr %3, align 4
br label %110
71: ; preds = %55
store i32 0, ptr %9, align 4
br label %72
72: ; preds = %103, %71
%73 = load i32, ptr %9, align 4
%74 = load i32, ptr %8, align 4
%75 = icmp slt i32 %73, %74
br i1 %75, label %76, label %106
76: ; preds = %72
%77 = load i32, ptr %6, align 4
%78 = getelementptr inbounds [8192 x i8], ptr %7, i64 0, i64 0
%79 = call i64 @read_form(i32 noundef %77, ptr noundef %78, i32 noundef 8192)
%80 = icmp ne i64 %79, 0
br i1 %80, label %81, label %98
81: ; preds = %76
%82 = load i32, ptr %10, align 4
%83 = icmp eq i32 %82, -1
br i1 %83, label %88, label %84
84: ; preds = %81
%85 = load i32, ptr %10, align 4
%86 = load i32, ptr %9, align 4
%87 = icmp eq i32 %85, %86
br i1 %87, label %88, label %97
88: ; preds = %84, %81
%89 = load i32, ptr %9, align 4
%90 = getelementptr inbounds [8192 x i8], ptr %7, i64 0, i64 0
%91 = call i32 @printf(ptr noundef @.str.4, i32 noundef %89, ptr noundef %90)
%92 = load i32, ptr %10, align 4
%93 = load i32, ptr %9, align 4
%94 = icmp eq i32 %92, %93
br i1 %94, label %95, label %96
95: ; preds = %88
br label %106
96: ; preds = %88
br label %97
97: ; preds = %96, %84
br label %102
98: ; preds = %76
%99 = load i32, ptr @stderr, align 4
%100 = load i32, ptr %9, align 4
%101 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %99, ptr noundef @.str.5, i32 noundef %100)
br label %106
102: ; preds = %97
br label %103
103: ; preds = %102
%104 = load i32, ptr %9, align 4
%105 = add nsw i32 %104, 1
store i32 %105, ptr %9, align 4
br label %72, !llvm.loop !6
106: ; preds = %98, %95, %72
%107 = load i32, ptr %6, align 4
%108 = call i32 @close(i32 noundef %107)
%109 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %109, ptr %3, align 4
br label %110
110: ; preds = %106, %64, %51, %43, %17
%111 = load i32, ptr %3, align 4
ret i32 %111
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @read_form(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6k46i4bm.c"
target datalayout = "e-m:e-p270: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 [30 x i8] c"Usage: %s <file> [<form-id>]\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@O_RDONLY = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [5 x i8] c"open\00", align 1
@.str.2 = private unnamed_addr constant [38 x i8] c"Failed to read the expression count!\0A\00", align 1
@.str.3 = private unnamed_addr constant [36 x i8] c"Form ID %d is over the maximum %d!\0A\00", align 1
@.str.4 = private unnamed_addr constant [13 x i8] c"Form %d: %s\0A\00", align 1
@.str.5 = private unnamed_addr constant [25 x i8] c"Failed to read form %d!\0A\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca [8192 x i8], align 16
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%12 = load i32, ptr %4, align 4
%13 = icmp slt i32 %12, 2
br i1 %13, label %17, label %14
14: ; preds = %2
%15 = load i32, ptr %4, align 4
%16 = icmp sgt i32 %15, 3
br i1 %16, label %17, label %24
17: ; preds = %14, %2
%18 = load i32, ptr @stderr, align 4
%19 = load ptr, ptr %5, align 8
%20 = getelementptr inbounds ptr, ptr %19, i64 0
%21 = load ptr, ptr %20, align 8
%22 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %18, ptr noundef @.str, ptr noundef %21)
%23 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %23, ptr %3, align 4
br label %112
24: ; preds = %14
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds ptr, ptr %25, i64 1
%27 = load ptr, ptr %26, align 8
store ptr %27, ptr %11, align 8
%28 = load i32, ptr %4, align 4
%29 = icmp eq i32 %28, 3
br i1 %29, label %30, label %35
30: ; preds = %24
%31 = load ptr, ptr %5, align 8
%32 = getelementptr inbounds ptr, ptr %31, i64 2
%33 = load ptr, ptr %32, align 8
%34 = call i32 @atoi(ptr noundef %33)
br label %36
35: ; preds = %24
br label %36
36: ; preds = %35, %30
%37 = phi i32 [ %34, %30 ], [ -1, %35 ]
store i32 %37, ptr %10, align 4
%38 = load ptr, ptr %11, align 8
%39 = load i32, ptr @O_RDONLY, align 4
%40 = call i32 @open(ptr noundef %38, i32 noundef %39)
store i32 %40, ptr %6, align 4
%41 = load i32, ptr %6, align 4
%42 = icmp slt i32 %41, 0
br i1 %42, label %43, label %46
43: ; preds = %36
%44 = call i32 @perror(ptr noundef @.str.1)
%45 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %45, ptr %3, align 4
br label %112
46: ; preds = %36
%47 = load i32, ptr %6, align 4
%48 = getelementptr inbounds [8192 x i8], ptr %7, i64 0, i64 0
%49 = call i32 @read(i32 noundef %47, ptr noundef %48, i32 noundef 1)
%50 = icmp ne i32 %49, 1
br i1 %50, label %51, label %55
51: ; preds = %46
%52 = load i32, ptr @stderr, align 4
%53 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %52, ptr noundef @.str.2)
%54 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %54, ptr %3, align 4
br label %112
55: ; preds = %46
%56 = getelementptr inbounds [8192 x i8], ptr %7, i64 0, i64 0
%57 = load i8, ptr %56, align 16
%58 = sext i8 %57 to i32
%59 = and i32 %58, 255
store i32 %59, ptr %8, align 4
%60 = load i32, ptr %10, align 4
%61 = add nsw i32 %60, 1
%62 = load i32, ptr %8, align 4
%63 = icmp sgt i32 %61, %62
br i1 %63, label %64, label %71
64: ; preds = %55
%65 = load i32, ptr @stderr, align 4
%66 = load i32, ptr %10, align 4
%67 = load i32, ptr %8, align 4
%68 = sub nsw i32 %67, 1
%69 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %65, ptr noundef @.str.3, i32 noundef %66, i32 noundef %68)
%70 = load i32, ptr @EXIT_FAILURE, align 4
store i32 %70, ptr %3, align 4
br label %112
71: ; preds = %55
store i32 0, ptr %9, align 4
%72 = load i32, ptr %9, align 4
%73 = load i32, ptr %8, align 4
%74 = icmp slt i32 %72, %73
br i1 %74, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %71
br label %75
75: ; preds = %.lr.ph, %102
%76 = load i32, ptr %6, align 4
%77 = getelementptr inbounds [8192 x i8], ptr %7, i64 0, i64 0
%78 = call i64 @read_form(i32 noundef %76, ptr noundef %77, i32 noundef 8192)
%79 = icmp ne i64 %78, 0
br i1 %79, label %80, label %97
80: ; preds = %75
%81 = load i32, ptr %10, align 4
%82 = icmp eq i32 %81, -1
br i1 %82, label %87, label %83
83: ; preds = %80
%84 = load i32, ptr %10, align 4
%85 = load i32, ptr %9, align 4
%86 = icmp eq i32 %84, %85
br i1 %86, label %87, label %96
87: ; preds = %83, %80
%88 = load i32, ptr %9, align 4
%89 = getelementptr inbounds [8192 x i8], ptr %7, i64 0, i64 0
%90 = call i32 @printf(ptr noundef @.str.4, i32 noundef %88, ptr noundef %89)
%91 = load i32, ptr %10, align 4
%92 = load i32, ptr %9, align 4
%93 = icmp eq i32 %91, %92
br i1 %93, label %94, label %95
94: ; preds = %87
br label %108
95: ; preds = %87
br label %96
96: ; preds = %95, %83
br label %101
97: ; preds = %75
%98 = load i32, ptr @stderr, align 4
%99 = load i32, ptr %9, align 4
%100 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %98, ptr noundef @.str.5, i32 noundef %99)
br label %108
101: ; preds = %96
br label %102
102: ; preds = %101
%103 = load i32, ptr %9, align 4
%104 = add nsw i32 %103, 1
store i32 %104, ptr %9, align 4
%105 = load i32, ptr %9, align 4
%106 = load i32, ptr %8, align 4
%107 = icmp slt i32 %105, %106
br i1 %107, label %75, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %102
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %71
br label %108
108: ; preds = %.loopexit, %97, %94
%109 = load i32, ptr %6, align 4
%110 = call i32 @close(i32 noundef %109)
%111 = load i32, ptr @EXIT_SUCCESS, align 4
store i32 %111, ptr %3, align 4
br label %112
112: ; preds = %108, %64, %51, %43, %17
%113 = load i32, ptr %3, align 4
ret i32 %113
}
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i64 @read_form(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp29ti5t2b.c'
source_filename = "/tmp/tmp29ti5t2b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [5 x i8] c"odd\0A\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"even\0A\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"Goodbye!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 1564861237, ptr %2, align 4
store i32 1161218921, ptr %3, align 4
store i32 -1738655969, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %6
6: ; preds = %25, %0
%7 = load i32, ptr %2, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp ne i32 %7, %8
br i1 %9, label %14, label %10
10: ; preds = %6
%11 = load i32, ptr %3, align 4
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %11, %12
br label %14
14: ; preds = %10, %6
%15 = phi i1 [ true, %6 ], [ %13, %10 ]
br i1 %15, label %16, label %29
16: ; preds = %14
%17 = call i32 @scanf(ptr noundef @.str, ptr noundef %5)
%18 = load i32, ptr %5, align 4
%19 = srem i32 %18, 2
%20 = icmp ne i32 %19, 0
br i1 %20, label %21, label %23
21: ; preds = %16
%22 = call i32 @printf(ptr noundef @.str.1)
br label %25
23: ; preds = %16
%24 = call i32 @printf(ptr noundef @.str.2)
br label %25
25: ; preds = %23, %21
%26 = load i32, ptr %3, align 4
store i32 %26, ptr %4, align 4
%27 = load i32, ptr %2, align 4
store i32 %27, ptr %3, align 4
%28 = load i32, ptr %5, align 4
store i32 %28, ptr %2, align 4
br label %6, !llvm.loop !6
29: ; preds = %14
%30 = call i32 @printf(ptr noundef @.str.3)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp29ti5t2b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [5 x i8] c"odd\0A\00", align 1
@.str.2 = private unnamed_addr constant [6 x i8] c"even\0A\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"Goodbye!\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 1564861237, ptr %2, align 4
store i32 1161218921, ptr %3, align 4
store i32 -1738655969, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %6
6: ; preds = %25, %0
%7 = load i32, ptr %2, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp ne i32 %7, %8
br i1 %9, label %14, label %10
10: ; preds = %6
%11 = load i32, ptr %3, align 4
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %11, %12
br label %14
14: ; preds = %10, %6
%15 = phi i1 [ true, %6 ], [ %13, %10 ]
br i1 %15, label %16, label %29
16: ; preds = %14
%17 = call i32 @scanf(ptr noundef @.str, ptr noundef %5)
%18 = load i32, ptr %5, align 4
%19 = srem i32 %18, 2
%20 = icmp ne i32 %19, 0
br i1 %20, label %21, label %23
21: ; preds = %16
%22 = call i32 @printf(ptr noundef @.str.1)
br label %25
23: ; preds = %16
%24 = call i32 @printf(ptr noundef @.str.2)
br label %25
25: ; preds = %23, %21
%26 = load i32, ptr %3, align 4
store i32 %26, ptr %4, align 4
%27 = load i32, ptr %2, align 4
store i32 %27, ptr %3, align 4
%28 = load i32, ptr %5, align 4
store i32 %28, ptr %2, align 4
br label %6, !llvm.loop !6
29: ; preds = %14
%30 = call i32 @printf(ptr noundef @.str.3)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp145ioria.c'
source_filename = "/tmp/tmp145ioria.c"
target datalayout = "e-m:e-p270: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/tmp145ioria.c"
target datalayout = "e-m:e-p270: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/tmp7mnio0y8.c'
source_filename = "/tmp/tmp7mnio0y8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"proolhttpd.log\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"a\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"%s %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @log_(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %4, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = icmp ne ptr %5, null
br i1 %6, label %7, label %14
7: ; preds = %1
%8 = load ptr, ptr %3, align 8
%9 = call ptr (...) @ptime()
%10 = load ptr, ptr %2, align 8
%11 = call i32 @fprintf(ptr noundef %8, ptr noundef @.str.2, ptr noundef %9, ptr noundef %10)
%12 = load ptr, ptr %3, align 8
%13 = call i32 @fclose(ptr noundef %12)
br label %14
14: ; preds = %7, %1
ret void
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @ptime(...) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7mnio0y8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"proolhttpd.log\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"a\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"%s %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @log_(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %4, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = icmp ne ptr %5, null
br i1 %6, label %7, label %14
7: ; preds = %1
%8 = load ptr, ptr %3, align 8
%9 = call ptr (...) @ptime()
%10 = load ptr, ptr %2, align 8
%11 = call i32 @fprintf(ptr noundef %8, ptr noundef @.str.2, ptr noundef %9, ptr noundef %10)
%12 = load ptr, ptr %3, align 8
%13 = call i32 @fclose(ptr noundef %12)
br label %14
14: ; preds = %7, %1
ret void
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @ptime(...) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpsn2iyu8t.c'
source_filename = "/tmp/tmpsn2iyu8t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @filenameStrcmp(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @strcmp(ptr noundef %5, ptr noundef %6)
ret i32 %7
}
declare i32 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsn2iyu8t.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @filenameStrcmp(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @strcmp(ptr noundef %5, ptr noundef %6)
ret i32 %7
}
declare i32 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmptog42fzr.c'
source_filename = "/tmp/tmptog42fzr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_isalpha.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isalpha should be 0 for 0xe8\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isalpha_0xe8() #0 {
%1 = call i64 @isalpha(i32 noundef 232)
%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 1165, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isalpha(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptog42fzr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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_isalpha.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isalpha should be 0 for 0xe8\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isalpha_0xe8() #0 {
%1 = call i64 @isalpha(i32 noundef 232)
%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 1165, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isalpha(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpenqf7vqg.c'
source_filename = "/tmp/tmpenqf7vqg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @rapl_read_msr(i32 noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i8, align 1
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
%8 = load i32, ptr %5, align 4
%9 = load ptr, ptr %7, align 8
%10 = load i32, ptr %6, align 4
%11 = call i32 @pread(i32 noundef %8, ptr noundef %9, i32 noundef 8, i32 noundef %10)
%12 = sext i32 %11 to i64
%13 = icmp ne i64 %12, 8
br i1 %13, label %14, label %15
14: ; preds = %3
store i8 0, ptr %4, align 1
br label %16
15: ; preds = %3
store i8 1, ptr %4, align 1
br label %16
16: ; preds = %15, %14
%17 = load i8, ptr %4, align 1
ret i8 %17
}
declare i32 @pread(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpenqf7vqg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @rapl_read_msr(i32 noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i8, align 1
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
%8 = load i32, ptr %5, align 4
%9 = load ptr, ptr %7, align 8
%10 = load i32, ptr %6, align 4
%11 = call i32 @pread(i32 noundef %8, ptr noundef %9, i32 noundef 8, i32 noundef %10)
%12 = sext i32 %11 to i64
%13 = icmp ne i64 %12, 8
br i1 %13, label %14, label %15
14: ; preds = %3
store i8 0, ptr %4, align 1
br label %16
15: ; preds = %3
store i8 1, ptr %4, align 1
br label %16
16: ; preds = %15, %14
%17 = load i8, ptr %4, align 1
ret i8 %17
}
declare i32 @pread(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpykta_gwa.c'
source_filename = "/tmp/tmpykta_gwa.c"
target datalayout = "e-m:e-p270: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 [30 x i8] c"Usage: clockdiff [-o] <host>\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
%3 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpykta_gwa.c"
target datalayout = "e-m:e-p270: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 [30 x i8] c"Usage: clockdiff [-o] <host>\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
%3 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpecgsaij8.c'
source_filename = "/tmp/tmpecgsaij8.c"
target datalayout = "e-m:e-p270: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/tmpecgsaij8.c"
target datalayout = "e-m:e-p270: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/tmprily52io.c'
source_filename = "/tmp/tmprily52io.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Character %c has code %d.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i8, align 1
store i32 0, ptr %1, align 4
store i8 65, ptr %2, align 1
%3 = load i8, ptr %2, align 1
%4 = load i8, ptr %2, align 1
%5 = call i32 @printf(ptr noundef @.str, i8 noundef signext %3, i8 noundef signext %4)
store i8 66, ptr %2, align 1
%6 = load i8, ptr %2, align 1
%7 = load i8, ptr %2, align 1
%8 = call i32 @printf(ptr noundef @.str, i8 noundef signext %6, i8 noundef signext %7)
%9 = load i8, ptr %2, align 1
%10 = sext i8 %9 to i32
%11 = add nsw i32 %10, 1
%12 = trunc i32 %11 to i8
store i8 %12, ptr %2, align 1
%13 = load i8, ptr %2, align 1
%14 = load i8, ptr %2, align 1
%15 = call i32 @printf(ptr noundef @.str, i8 noundef signext %13, i8 noundef signext %14)
ret i32 0
}
declare i32 @printf(ptr noundef, i8 noundef signext, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprily52io.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Character %c has code %d.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i8, align 1
store i32 0, ptr %1, align 4
store i8 65, ptr %2, align 1
%3 = load i8, ptr %2, align 1
%4 = load i8, ptr %2, align 1
%5 = call i32 @printf(ptr noundef @.str, i8 noundef signext %3, i8 noundef signext %4)
store i8 66, ptr %2, align 1
%6 = load i8, ptr %2, align 1
%7 = load i8, ptr %2, align 1
%8 = call i32 @printf(ptr noundef @.str, i8 noundef signext %6, i8 noundef signext %7)
%9 = load i8, ptr %2, align 1
%10 = sext i8 %9 to i32
%11 = add nsw i32 %10, 1
%12 = trunc i32 %11 to i8
store i8 %12, ptr %2, align 1
%13 = load i8, ptr %2, align 1
%14 = load i8, ptr %2, align 1
%15 = call i32 @printf(ptr noundef @.str, i8 noundef signext %13, i8 noundef signext %14)
ret i32 0
}
declare i32 @printf(ptr noundef, i8 noundef signext, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0_s_78mi.c'
source_filename = "/tmp/tmp0_s_78mi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"malloc(0) requested.\00", align 1
@.str.1 = private unnamed_addr constant [35 x i8] c"Out of memory: %u bytes requested.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @mymalloc(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = call i32 (ptr, ...) @err(ptr noundef @.str)
br label %8
8: ; preds = %6, %1
%9 = load i32, ptr %2, align 4
%10 = call ptr @malloc(i32 noundef %9)
store ptr %10, ptr %3, align 8
%11 = load ptr, ptr %3, align 8
%12 = icmp eq ptr null, %11
br i1 %12, label %13, label %16
13: ; preds = %8
%14 = load i32, ptr %2, align 4
%15 = call i32 (ptr, ...) @err(ptr noundef @.str.1, i32 noundef %14)
br label %16
16: ; preds = %13, %8
%17 = load ptr, ptr %3, align 8
ret ptr %17
}
declare i32 @err(ptr noundef, ...) #1
declare ptr @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0_s_78mi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"malloc(0) requested.\00", align 1
@.str.1 = private unnamed_addr constant [35 x i8] c"Out of memory: %u bytes requested.\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @mymalloc(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = call i32 (ptr, ...) @err(ptr noundef @.str)
br label %8
8: ; preds = %6, %1
%9 = load i32, ptr %2, align 4
%10 = call ptr @malloc(i32 noundef %9)
store ptr %10, ptr %3, align 8
%11 = load ptr, ptr %3, align 8
%12 = icmp eq ptr null, %11
br i1 %12, label %13, label %16
13: ; preds = %8
%14 = load i32, ptr %2, align 4
%15 = call i32 (ptr, ...) @err(ptr noundef @.str.1, i32 noundef %14)
br label %16
16: ; preds = %13, %8
%17 = load ptr, ptr %3, align 8
ret ptr %17
}
declare i32 @err(ptr noundef, ...) #1
declare ptr @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxnhxejax.c'
source_filename = "/tmp/tmpxnhxejax.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @f9b() #0 {
%1 = call i32 (...) @f9a()
ret void
}
declare i32 @f9a(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxnhxejax.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @f9b() #0 {
%1 = call i32 (...) @f9a()
ret void
}
declare i32 @f9a(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6x9srkbc.c'
source_filename = "/tmp/tmp6x9srkbc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@IPPROTO_IP = 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/tmp6x9srkbc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@IPPROTO_IP = 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/tmpmi6o_76r.c'
source_filename = "/tmp/tmpmi6o_76r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @compare_text_line(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %5, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %7, align 8
%9 = call i32 @m_stricmp(ptr noundef %6, ptr noundef %8)
ret i32 %9
}
declare i32 @m_stricmp(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/tmpmi6o_76r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @compare_text_line(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %5, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %7, align 8
%9 = call i32 @m_stricmp(ptr noundef %6, ptr noundef %8)
ret i32 %9
}
declare i32 @m_stricmp(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/tmp6grxsxyq.c'
source_filename = "/tmp/tmp6grxsxyq.c"
target datalayout = "e-m:e-p270: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/tmp6grxsxyq.c"
target datalayout = "e-m:e-p270: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/tmpp4bwh89v.c'
source_filename = "/tmp/tmpp4bwh89v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [169 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_isxdigit.c\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"isxdigit should be 0 for 0xc4\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isxdigit_0xc4() #0 {
%1 = call i64 @isxdigit(i32 noundef 196)
%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 985, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isxdigit(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpp4bwh89v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [169 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_isxdigit.c\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"isxdigit should be 0 for 0xc4\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isxdigit_0xc4() #0 {
%1 = call i64 @isxdigit(i32 noundef 196)
%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 985, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isxdigit(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0foojuie.c'
source_filename = "/tmp/tmp0foojuie.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Notas.txt\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [29 x i8] c"Erro na abertura do arquivo\0A\00", align 1
@.str.3 = private unnamed_addr constant [21 x i8] c"O resultado \C3\A9 %.1f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%3 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %3, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = icmp eq ptr %4, null
br i1 %5, label %6, label %9
6: ; preds = %0
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%8 = call i32 @exit(i32 noundef 1) #3
unreachable
9: ; preds = %0
%10 = load ptr, ptr %2, align 8
%11 = call double @media_t(ptr noundef %10)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %11)
%13 = load ptr, ptr %2, align 8
%14 = call i32 @fclose(ptr noundef %13)
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare double @media_t(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0foojuie.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Notas.txt\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [29 x i8] c"Erro na abertura do arquivo\0A\00", align 1
@.str.3 = private unnamed_addr constant [21 x i8] c"O resultado \C3\A9 %.1f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%3 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %3, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = icmp eq ptr %4, null
br i1 %5, label %6, label %9
6: ; preds = %0
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%8 = call i32 @exit(i32 noundef 1) #3
unreachable
9: ; preds = %0
%10 = load ptr, ptr %2, align 8
%11 = call double @media_t(ptr noundef %10)
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %11)
%13 = load ptr, ptr %2, align 8
%14 = call i32 @fclose(ptr noundef %13)
ret i32 0
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare double @media_t(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqlmvvp1w.c'
source_filename = "/tmp/tmpqlmvvp1w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqlmvvp1w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzy088hyp.c'
source_filename = "/tmp/tmpzy088hyp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"(*a)[%d] = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @foo(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 = zext i32 %5 to i64
br label %7
7: ; preds = %11, %2
%8 = load i32, ptr %3, align 4
%9 = add nsw i32 %8, -1
store i32 %9, ptr %3, align 4
%10 = icmp ne i32 %8, 0
br i1 %10, label %11, label %21
11: ; preds = %7
%12 = load i32, ptr %3, align 4
%13 = load ptr, ptr %4, align 8
%14 = mul nsw i64 0, %6
%15 = getelementptr inbounds i32, ptr %13, i64 %14
%16 = load i32, ptr %3, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i32, ptr %15, i64 %17
%19 = load i32, ptr %18, align 4
%20 = call i32 @printf(ptr noundef @.str, i32 noundef %12, i32 noundef %19)
br label %7, !llvm.loop !6
21: ; preds = %7
%22 = load ptr, ptr %4, align 8
%23 = mul nuw i64 4, %6
%24 = trunc i64 %23 to i32
ret i32 %24
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzy088hyp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"(*a)[%d] = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @foo(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 = zext i32 %5 to i64
%7 = load i32, ptr %3, align 4
%8 = add nsw i32 %7, -1
store i32 %8, ptr %3, align 4
%9 = icmp ne i32 %7, 0
br i1 %9, label %.lr.ph, label %23
.lr.ph: ; preds = %2
br label %10
10: ; preds = %.lr.ph, %10
%11 = load i32, ptr %3, align 4
%12 = load ptr, ptr %4, align 8
%13 = mul nsw i64 0, %6
%14 = getelementptr inbounds i32, ptr %12, i64 %13
%15 = load i32, ptr %3, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i32, ptr %14, i64 %16
%18 = load i32, ptr %17, align 4
%19 = call i32 @printf(ptr noundef @.str, i32 noundef %11, i32 noundef %18)
%20 = load i32, ptr %3, align 4
%21 = add nsw i32 %20, -1
store i32 %21, ptr %3, align 4
%22 = icmp ne i32 %20, 0
br i1 %22, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %10
br label %23
23: ; preds = %._crit_edge, %2
%24 = load ptr, ptr %4, align 8
%25 = mul nuw i64 4, %6
%26 = trunc i64 %25 to i32
ret i32 %26
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp_6d7a6k7.c'
source_filename = "/tmp/tmp_6d7a6k7.c"
target datalayout = "e-m:e-p270: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.filename = private unnamed_addr constant [8 x i8] c"out.dat\00", align 1
@__const.main.devnode = private unnamed_addr constant [13 x i8] c"/dev/pwm_dma\00", align 1
@.str = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.1 = private unnamed_addr constant [48 x i8] c"Can't open /dev/pwm_dma. Check that it exists.\0A\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.3 = private unnamed_addr constant [24 x i8] c"Can't open input file.\0A\00", align 1
@.str.4 = private unnamed_addr constant [23 x i8] c"Can't allocate memory\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca [8 x i8], align 1
%9 = alloca [13 x i8], align 1
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %8, ptr align 1 @__const.main.filename, i64 8, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %9, ptr align 1 @__const.main.devnode, i64 13, i1 false)
store ptr null, ptr %10, align 8
store ptr null, ptr %11, align 8
%12 = getelementptr inbounds [13 x i8], ptr %9, i64 0, i64 0
%13 = call ptr @fopen(ptr noundef %12, ptr noundef @.str)
store ptr %13, ptr %7, align 8
%14 = load ptr, ptr %7, align 8
%15 = icmp ne ptr %14, null
br i1 %15, label %18, label %16
16: ; preds = %2
%17 = call i32 @printf(ptr noundef @.str.1)
store i32 -1, ptr %3, align 4
br label %44
18: ; preds = %2
%19 = getelementptr inbounds [13 x i8], ptr %9, i64 0, i64 0
%20 = call i32 @do_tests(ptr noundef %19)
%21 = getelementptr inbounds [8 x i8], ptr %8, i64 0, i64 0
%22 = call ptr @fopen(ptr noundef %21, ptr noundef @.str.2)
store ptr %22, ptr %6, align 8
%23 = load ptr, ptr %6, align 8
%24 = icmp ne ptr %23, null
br i1 %24, label %29, label %25
25: ; preds = %18
%26 = call i32 @printf(ptr noundef @.str.3)
%27 = load ptr, ptr %7, align 8
%28 = call i32 @fclose(ptr noundef %27)
store i32 -1, ptr %3, align 4
br label %44
29: ; preds = %18
%30 = call i64 @malloc(i32 noundef 134217728)
%31 = inttoptr i64 %30 to ptr
store ptr %31, ptr %10, align 8
%32 = load ptr, ptr %10, align 8
%33 = icmp ne ptr %32, null
br i1 %33, label %36, label %34
34: ; preds = %29
%35 = call i32 @printf(ptr noundef @.str.4)
store i32 -1, ptr %3, align 4
br label %44
36: ; preds = %29
%37 = load ptr, ptr %10, align 8
store ptr %37, ptr %11, align 8
%38 = load ptr, ptr %10, align 8
%39 = load ptr, ptr %6, align 8
%40 = call i32 @fread(ptr noundef %38, i32 noundef 4, i32 noundef 33554432, ptr noundef %39)
%41 = load ptr, ptr %10, align 8
%42 = getelementptr inbounds [13 x i8], ptr %9, i64 0, i64 0
%43 = call i32 @fwrite(ptr noundef %41, i32 noundef 4, i32 noundef 33554432, ptr noundef %42)
store i32 0, ptr %3, align 4
br label %44
44: ; preds = %36, %34, %25, %16
%45 = load i32, ptr %3, align 4
ret i32 %45
}
; 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 i32 @do_tests(ptr noundef) #2
declare i32 @fclose(ptr noundef) #2
declare i64 @malloc(i32 noundef) #2
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #2
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_6d7a6k7.c"
target datalayout = "e-m:e-p270: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.filename = private unnamed_addr constant [8 x i8] c"out.dat\00", align 1
@__const.main.devnode = private unnamed_addr constant [13 x i8] c"/dev/pwm_dma\00", align 1
@.str = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.1 = private unnamed_addr constant [48 x i8] c"Can't open /dev/pwm_dma. Check that it exists.\0A\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.3 = private unnamed_addr constant [24 x i8] c"Can't open input file.\0A\00", align 1
@.str.4 = private unnamed_addr constant [23 x i8] c"Can't allocate memory\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca [8 x i8], align 1
%9 = alloca [13 x i8], align 1
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %8, ptr align 1 @__const.main.filename, i64 8, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %9, ptr align 1 @__const.main.devnode, i64 13, i1 false)
store ptr null, ptr %10, align 8
store ptr null, ptr %11, align 8
%12 = getelementptr inbounds [13 x i8], ptr %9, i64 0, i64 0
%13 = call ptr @fopen(ptr noundef %12, ptr noundef @.str)
store ptr %13, ptr %7, align 8
%14 = load ptr, ptr %7, align 8
%15 = icmp ne ptr %14, null
br i1 %15, label %18, label %16
16: ; preds = %2
%17 = call i32 @printf(ptr noundef @.str.1)
store i32 -1, ptr %3, align 4
br label %44
18: ; preds = %2
%19 = getelementptr inbounds [13 x i8], ptr %9, i64 0, i64 0
%20 = call i32 @do_tests(ptr noundef %19)
%21 = getelementptr inbounds [8 x i8], ptr %8, i64 0, i64 0
%22 = call ptr @fopen(ptr noundef %21, ptr noundef @.str.2)
store ptr %22, ptr %6, align 8
%23 = load ptr, ptr %6, align 8
%24 = icmp ne ptr %23, null
br i1 %24, label %29, label %25
25: ; preds = %18
%26 = call i32 @printf(ptr noundef @.str.3)
%27 = load ptr, ptr %7, align 8
%28 = call i32 @fclose(ptr noundef %27)
store i32 -1, ptr %3, align 4
br label %44
29: ; preds = %18
%30 = call i64 @malloc(i32 noundef 134217728)
%31 = inttoptr i64 %30 to ptr
store ptr %31, ptr %10, align 8
%32 = load ptr, ptr %10, align 8
%33 = icmp ne ptr %32, null
br i1 %33, label %36, label %34
34: ; preds = %29
%35 = call i32 @printf(ptr noundef @.str.4)
store i32 -1, ptr %3, align 4
br label %44
36: ; preds = %29
%37 = load ptr, ptr %10, align 8
store ptr %37, ptr %11, align 8
%38 = load ptr, ptr %10, align 8
%39 = load ptr, ptr %6, align 8
%40 = call i32 @fread(ptr noundef %38, i32 noundef 4, i32 noundef 33554432, ptr noundef %39)
%41 = load ptr, ptr %10, align 8
%42 = getelementptr inbounds [13 x i8], ptr %9, i64 0, i64 0
%43 = call i32 @fwrite(ptr noundef %41, i32 noundef 4, i32 noundef 33554432, ptr noundef %42)
store i32 0, ptr %3, align 4
br label %44
44: ; preds = %36, %34, %25, %16
%45 = load i32, ptr %3, align 4
ret i32 %45
}
; 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 i32 @do_tests(ptr noundef) #2
declare i32 @fclose(ptr noundef) #2
declare i64 @malloc(i32 noundef) #2
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #2
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpy033oe59.c'
source_filename = "/tmp/tmpy033oe59.c"
target datalayout = "e-m:e-p270: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/tmpy033oe59.c"
target datalayout = "e-m:e-p270: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/tmp7ct8j7nq.c'
source_filename = "/tmp/tmp7ct8j7nq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @stb_filewritestr(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = load ptr, ptr %4, align 8
%8 = call i32 @strlen(ptr noundef %7)
%9 = call i32 @stb_filewrite(ptr noundef %5, ptr noundef %6, i32 noundef %8)
ret i32 %9
}
declare i32 @stb_filewrite(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7ct8j7nq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @stb_filewritestr(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = load ptr, ptr %4, align 8
%8 = call i32 @strlen(ptr noundef %7)
%9 = call i32 @stb_filewrite(ptr noundef %5, ptr noundef %6, i32 noundef %8)
ret i32 %9
}
declare i32 @stb_filewrite(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpcent6l0s.c'
source_filename = "/tmp/tmpcent6l0s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.termios = type { i16, ptr, i64, i64, i32 }
@CS8 = dso_local global i16 0, align 2
@CREAD = dso_local global i16 0, align 2
@CLOCAL = dso_local global i16 0, align 2
@IGNPAR = dso_local global i32 0, align 4
@VINTR = dso_local global i64 0, align 8
@VQUIT = dso_local global i64 0, align 8
@VERASE = dso_local global i64 0, align 8
@VKILL = dso_local global i64 0, align 8
@VEOF = dso_local global i64 0, align 8
@VTIME = dso_local global i64 0, align 8
@VMIN = dso_local global i64 0, align 8
@VSWTC = dso_local global i64 0, align 8
@VSTART = dso_local global i64 0, align 8
@VSTOP = dso_local global i64 0, align 8
@VSUSP = dso_local global i64 0, align 8
@VEOL = dso_local global i64 0, align 8
@VREPRINT = dso_local global i64 0, align 8
@VDISCARD = dso_local global i64 0, align 8
@VWERASE = dso_local global i64 0, align 8
@VLNEXT = dso_local global i64 0, align 8
@VEOL2 = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @setTermios(ptr noundef %0, i16 noundef zeroext %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i16, align 2
store ptr %0, ptr %3, align 8
store i16 %1, ptr %4, align 2
%5 = load ptr, ptr %3, align 8
%6 = call i32 @bzero(ptr noundef %5, i32 noundef 40)
%7 = load i16, ptr %4, align 2
%8 = zext i16 %7 to i32
%9 = load i16, ptr @CS8, align 2
%10 = zext i16 %9 to i32
%11 = or i32 %8, %10
%12 = load i16, ptr @CREAD, align 2
%13 = zext i16 %12 to i32
%14 = or i32 %11, %13
%15 = load i16, ptr @CLOCAL, align 2
%16 = zext i16 %15 to i32
%17 = or i32 %14, %16
%18 = trunc i32 %17 to i16
%19 = load ptr, ptr %3, align 8
%20 = getelementptr inbounds %struct.termios, ptr %19, i32 0, i32 0
store i16 %18, ptr %20, align 8
%21 = load i32, ptr @IGNPAR, align 4
%22 = load ptr, ptr %3, align 8
%23 = getelementptr inbounds %struct.termios, ptr %22, i32 0, i32 4
store i32 %21, ptr %23, align 8
%24 = load ptr, ptr %3, align 8
%25 = getelementptr inbounds %struct.termios, ptr %24, i32 0, i32 3
store i64 0, ptr %25, align 8
%26 = load ptr, ptr %3, align 8
%27 = getelementptr inbounds %struct.termios, ptr %26, i32 0, i32 2
store i64 0, ptr %27, align 8
%28 = load ptr, ptr %3, align 8
%29 = getelementptr inbounds %struct.termios, ptr %28, i32 0, i32 1
%30 = load ptr, ptr %29, align 8
%31 = load i64, ptr @VINTR, align 8
%32 = getelementptr inbounds i32, ptr %30, i64 %31
store i32 0, ptr %32, align 4
%33 = load ptr, ptr %3, align 8
%34 = getelementptr inbounds %struct.termios, ptr %33, i32 0, i32 1
%35 = load ptr, ptr %34, align 8
%36 = load i64, ptr @VQUIT, align 8
%37 = getelementptr inbounds i32, ptr %35, i64 %36
store i32 0, ptr %37, align 4
%38 = load ptr, ptr %3, align 8
%39 = getelementptr inbounds %struct.termios, ptr %38, i32 0, i32 1
%40 = load ptr, ptr %39, align 8
%41 = load i64, ptr @VERASE, align 8
%42 = getelementptr inbounds i32, ptr %40, i64 %41
store i32 0, ptr %42, align 4
%43 = load ptr, ptr %3, align 8
%44 = getelementptr inbounds %struct.termios, ptr %43, i32 0, i32 1
%45 = load ptr, ptr %44, align 8
%46 = load i64, ptr @VKILL, align 8
%47 = getelementptr inbounds i32, ptr %45, i64 %46
store i32 0, ptr %47, align 4
%48 = load ptr, ptr %3, align 8
%49 = getelementptr inbounds %struct.termios, ptr %48, i32 0, i32 1
%50 = load ptr, ptr %49, align 8
%51 = load i64, ptr @VEOF, align 8
%52 = getelementptr inbounds i32, ptr %50, i64 %51
store i32 4, ptr %52, align 4
%53 = load ptr, ptr %3, align 8
%54 = getelementptr inbounds %struct.termios, ptr %53, i32 0, i32 1
%55 = load ptr, ptr %54, align 8
%56 = load i64, ptr @VTIME, align 8
%57 = getelementptr inbounds i32, ptr %55, i64 %56
store i32 5, ptr %57, align 4
%58 = load ptr, ptr %3, align 8
%59 = getelementptr inbounds %struct.termios, ptr %58, i32 0, i32 1
%60 = load ptr, ptr %59, align 8
%61 = load i64, ptr @VMIN, align 8
%62 = getelementptr inbounds i32, ptr %60, i64 %61
store i32 0, ptr %62, align 4
%63 = load ptr, ptr %3, align 8
%64 = getelementptr inbounds %struct.termios, ptr %63, i32 0, i32 1
%65 = load ptr, ptr %64, align 8
%66 = load i64, ptr @VSWTC, align 8
%67 = getelementptr inbounds i32, ptr %65, i64 %66
store i32 0, ptr %67, align 4
%68 = load ptr, ptr %3, align 8
%69 = getelementptr inbounds %struct.termios, ptr %68, i32 0, i32 1
%70 = load ptr, ptr %69, align 8
%71 = load i64, ptr @VSTART, align 8
%72 = getelementptr inbounds i32, ptr %70, i64 %71
store i32 0, ptr %72, align 4
%73 = load ptr, ptr %3, align 8
%74 = getelementptr inbounds %struct.termios, ptr %73, i32 0, i32 1
%75 = load ptr, ptr %74, align 8
%76 = load i64, ptr @VSTOP, align 8
%77 = getelementptr inbounds i32, ptr %75, i64 %76
store i32 0, ptr %77, align 4
%78 = load ptr, ptr %3, align 8
%79 = getelementptr inbounds %struct.termios, ptr %78, i32 0, i32 1
%80 = load ptr, ptr %79, align 8
%81 = load i64, ptr @VSUSP, align 8
%82 = getelementptr inbounds i32, ptr %80, i64 %81
store i32 0, ptr %82, align 4
%83 = load ptr, ptr %3, align 8
%84 = getelementptr inbounds %struct.termios, ptr %83, i32 0, i32 1
%85 = load ptr, ptr %84, align 8
%86 = load i64, ptr @VEOL, align 8
%87 = getelementptr inbounds i32, ptr %85, i64 %86
store i32 0, ptr %87, align 4
%88 = load ptr, ptr %3, align 8
%89 = getelementptr inbounds %struct.termios, ptr %88, i32 0, i32 1
%90 = load ptr, ptr %89, align 8
%91 = load i64, ptr @VREPRINT, align 8
%92 = getelementptr inbounds i32, ptr %90, i64 %91
store i32 0, ptr %92, align 4
%93 = load ptr, ptr %3, align 8
%94 = getelementptr inbounds %struct.termios, ptr %93, i32 0, i32 1
%95 = load ptr, ptr %94, align 8
%96 = load i64, ptr @VDISCARD, align 8
%97 = getelementptr inbounds i32, ptr %95, i64 %96
store i32 0, ptr %97, align 4
%98 = load ptr, ptr %3, align 8
%99 = getelementptr inbounds %struct.termios, ptr %98, i32 0, i32 1
%100 = load ptr, ptr %99, align 8
%101 = load i64, ptr @VWERASE, align 8
%102 = getelementptr inbounds i32, ptr %100, i64 %101
store i32 0, ptr %102, align 4
%103 = load ptr, ptr %3, align 8
%104 = getelementptr inbounds %struct.termios, ptr %103, i32 0, i32 1
%105 = load ptr, ptr %104, align 8
%106 = load i64, ptr @VLNEXT, align 8
%107 = getelementptr inbounds i32, ptr %105, i64 %106
store i32 0, ptr %107, align 4
%108 = load ptr, ptr %3, align 8
%109 = getelementptr inbounds %struct.termios, ptr %108, i32 0, i32 1
%110 = load ptr, ptr %109, align 8
%111 = load i64, ptr @VEOL2, align 8
%112 = getelementptr inbounds i32, ptr %110, i64 %111
store i32 0, ptr %112, align 4
ret void
}
declare i32 @bzero(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/tmpcent6l0s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.termios = type { i16, ptr, i64, i64, i32 }
@CS8 = dso_local global i16 0, align 2
@CREAD = dso_local global i16 0, align 2
@CLOCAL = dso_local global i16 0, align 2
@IGNPAR = dso_local global i32 0, align 4
@VINTR = dso_local global i64 0, align 8
@VQUIT = dso_local global i64 0, align 8
@VERASE = dso_local global i64 0, align 8
@VKILL = dso_local global i64 0, align 8
@VEOF = dso_local global i64 0, align 8
@VTIME = dso_local global i64 0, align 8
@VMIN = dso_local global i64 0, align 8
@VSWTC = dso_local global i64 0, align 8
@VSTART = dso_local global i64 0, align 8
@VSTOP = dso_local global i64 0, align 8
@VSUSP = dso_local global i64 0, align 8
@VEOL = dso_local global i64 0, align 8
@VREPRINT = dso_local global i64 0, align 8
@VDISCARD = dso_local global i64 0, align 8
@VWERASE = dso_local global i64 0, align 8
@VLNEXT = dso_local global i64 0, align 8
@VEOL2 = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @setTermios(ptr noundef %0, i16 noundef zeroext %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i16, align 2
store ptr %0, ptr %3, align 8
store i16 %1, ptr %4, align 2
%5 = load ptr, ptr %3, align 8
%6 = call i32 @bzero(ptr noundef %5, i32 noundef 40)
%7 = load i16, ptr %4, align 2
%8 = zext i16 %7 to i32
%9 = load i16, ptr @CS8, align 2
%10 = zext i16 %9 to i32
%11 = or i32 %8, %10
%12 = load i16, ptr @CREAD, align 2
%13 = zext i16 %12 to i32
%14 = or i32 %11, %13
%15 = load i16, ptr @CLOCAL, align 2
%16 = zext i16 %15 to i32
%17 = or i32 %14, %16
%18 = trunc i32 %17 to i16
%19 = load ptr, ptr %3, align 8
%20 = getelementptr inbounds %struct.termios, ptr %19, i32 0, i32 0
store i16 %18, ptr %20, align 8
%21 = load i32, ptr @IGNPAR, align 4
%22 = load ptr, ptr %3, align 8
%23 = getelementptr inbounds %struct.termios, ptr %22, i32 0, i32 4
store i32 %21, ptr %23, align 8
%24 = load ptr, ptr %3, align 8
%25 = getelementptr inbounds %struct.termios, ptr %24, i32 0, i32 3
store i64 0, ptr %25, align 8
%26 = load ptr, ptr %3, align 8
%27 = getelementptr inbounds %struct.termios, ptr %26, i32 0, i32 2
store i64 0, ptr %27, align 8
%28 = load ptr, ptr %3, align 8
%29 = getelementptr inbounds %struct.termios, ptr %28, i32 0, i32 1
%30 = load ptr, ptr %29, align 8
%31 = load i64, ptr @VINTR, align 8
%32 = getelementptr inbounds i32, ptr %30, i64 %31
store i32 0, ptr %32, align 4
%33 = load ptr, ptr %3, align 8
%34 = getelementptr inbounds %struct.termios, ptr %33, i32 0, i32 1
%35 = load ptr, ptr %34, align 8
%36 = load i64, ptr @VQUIT, align 8
%37 = getelementptr inbounds i32, ptr %35, i64 %36
store i32 0, ptr %37, align 4
%38 = load ptr, ptr %3, align 8
%39 = getelementptr inbounds %struct.termios, ptr %38, i32 0, i32 1
%40 = load ptr, ptr %39, align 8
%41 = load i64, ptr @VERASE, align 8
%42 = getelementptr inbounds i32, ptr %40, i64 %41
store i32 0, ptr %42, align 4
%43 = load ptr, ptr %3, align 8
%44 = getelementptr inbounds %struct.termios, ptr %43, i32 0, i32 1
%45 = load ptr, ptr %44, align 8
%46 = load i64, ptr @VKILL, align 8
%47 = getelementptr inbounds i32, ptr %45, i64 %46
store i32 0, ptr %47, align 4
%48 = load ptr, ptr %3, align 8
%49 = getelementptr inbounds %struct.termios, ptr %48, i32 0, i32 1
%50 = load ptr, ptr %49, align 8
%51 = load i64, ptr @VEOF, align 8
%52 = getelementptr inbounds i32, ptr %50, i64 %51
store i32 4, ptr %52, align 4
%53 = load ptr, ptr %3, align 8
%54 = getelementptr inbounds %struct.termios, ptr %53, i32 0, i32 1
%55 = load ptr, ptr %54, align 8
%56 = load i64, ptr @VTIME, align 8
%57 = getelementptr inbounds i32, ptr %55, i64 %56
store i32 5, ptr %57, align 4
%58 = load ptr, ptr %3, align 8
%59 = getelementptr inbounds %struct.termios, ptr %58, i32 0, i32 1
%60 = load ptr, ptr %59, align 8
%61 = load i64, ptr @VMIN, align 8
%62 = getelementptr inbounds i32, ptr %60, i64 %61
store i32 0, ptr %62, align 4
%63 = load ptr, ptr %3, align 8
%64 = getelementptr inbounds %struct.termios, ptr %63, i32 0, i32 1
%65 = load ptr, ptr %64, align 8
%66 = load i64, ptr @VSWTC, align 8
%67 = getelementptr inbounds i32, ptr %65, i64 %66
store i32 0, ptr %67, align 4
%68 = load ptr, ptr %3, align 8
%69 = getelementptr inbounds %struct.termios, ptr %68, i32 0, i32 1
%70 = load ptr, ptr %69, align 8
%71 = load i64, ptr @VSTART, align 8
%72 = getelementptr inbounds i32, ptr %70, i64 %71
store i32 0, ptr %72, align 4
%73 = load ptr, ptr %3, align 8
%74 = getelementptr inbounds %struct.termios, ptr %73, i32 0, i32 1
%75 = load ptr, ptr %74, align 8
%76 = load i64, ptr @VSTOP, align 8
%77 = getelementptr inbounds i32, ptr %75, i64 %76
store i32 0, ptr %77, align 4
%78 = load ptr, ptr %3, align 8
%79 = getelementptr inbounds %struct.termios, ptr %78, i32 0, i32 1
%80 = load ptr, ptr %79, align 8
%81 = load i64, ptr @VSUSP, align 8
%82 = getelementptr inbounds i32, ptr %80, i64 %81
store i32 0, ptr %82, align 4
%83 = load ptr, ptr %3, align 8
%84 = getelementptr inbounds %struct.termios, ptr %83, i32 0, i32 1
%85 = load ptr, ptr %84, align 8
%86 = load i64, ptr @VEOL, align 8
%87 = getelementptr inbounds i32, ptr %85, i64 %86
store i32 0, ptr %87, align 4
%88 = load ptr, ptr %3, align 8
%89 = getelementptr inbounds %struct.termios, ptr %88, i32 0, i32 1
%90 = load ptr, ptr %89, align 8
%91 = load i64, ptr @VREPRINT, align 8
%92 = getelementptr inbounds i32, ptr %90, i64 %91
store i32 0, ptr %92, align 4
%93 = load ptr, ptr %3, align 8
%94 = getelementptr inbounds %struct.termios, ptr %93, i32 0, i32 1
%95 = load ptr, ptr %94, align 8
%96 = load i64, ptr @VDISCARD, align 8
%97 = getelementptr inbounds i32, ptr %95, i64 %96
store i32 0, ptr %97, align 4
%98 = load ptr, ptr %3, align 8
%99 = getelementptr inbounds %struct.termios, ptr %98, i32 0, i32 1
%100 = load ptr, ptr %99, align 8
%101 = load i64, ptr @VWERASE, align 8
%102 = getelementptr inbounds i32, ptr %100, i64 %101
store i32 0, ptr %102, align 4
%103 = load ptr, ptr %3, align 8
%104 = getelementptr inbounds %struct.termios, ptr %103, i32 0, i32 1
%105 = load ptr, ptr %104, align 8
%106 = load i64, ptr @VLNEXT, align 8
%107 = getelementptr inbounds i32, ptr %105, i64 %106
store i32 0, ptr %107, align 4
%108 = load ptr, ptr %3, align 8
%109 = getelementptr inbounds %struct.termios, ptr %108, i32 0, i32 1
%110 = load ptr, ptr %109, align 8
%111 = load i64, ptr @VEOL2, align 8
%112 = getelementptr inbounds i32, ptr %110, i64 %111
store i32 0, ptr %112, align 4
ret void
}
declare i32 @bzero(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/tmp60cjio8u.c'
source_filename = "/tmp/tmp60cjio8u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.addrinfo = type { i32, i64, i32, i32, i32 }
@AF_INET = dso_local global i32 0, align 4
@SOCK_DGRAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [10 x i8] c"localhost\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"6249\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @fnInitSocket(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca %struct.addrinfo, align 8
%9 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%10 = call i32 @memset(ptr noundef %8, i32 noundef 0, i32 noundef 32)
%11 = load i32, ptr @AF_INET, align 4
%12 = getelementptr inbounds %struct.addrinfo, ptr %8, i32 0, i32 4
store i32 %11, ptr %12, align 8
%13 = load i32, ptr @SOCK_DGRAM, align 4
%14 = getelementptr inbounds %struct.addrinfo, ptr %8, i32 0, i32 3
store i32 %13, ptr %14, align 4
%15 = call i32 @getaddrinfo(ptr noundef @.str, ptr noundef @.str.1, ptr noundef %8, ptr noundef %9)
store i32 %15, ptr %7, align 4
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %2
store i32 -1, ptr %3, align 4
br label %44
18: ; preds = %2
%19 = load ptr, ptr %9, align 8
%20 = getelementptr inbounds %struct.addrinfo, ptr %19, i32 0, i32 4
%21 = load i32, ptr %20, align 8
%22 = load ptr, ptr %9, align 8
%23 = getelementptr inbounds %struct.addrinfo, ptr %22, i32 0, i32 3
%24 = load i32, ptr %23, align 4
%25 = load ptr, ptr %9, align 8
%26 = getelementptr inbounds %struct.addrinfo, ptr %25, i32 0, i32 2
%27 = load i32, ptr %26, align 8
%28 = call i32 @socket(i32 noundef %21, i32 noundef %24, i32 noundef %27)
store i32 %28, ptr %6, align 4
%29 = icmp slt i32 %28, 0
br i1 %29, label %30, label %31
30: ; preds = %18
store i32 -1, ptr %3, align 4
br label %44
31: ; preds = %18
%32 = load ptr, ptr %4, align 8
%33 = load ptr, ptr %9, align 8
%34 = getelementptr inbounds %struct.addrinfo, ptr %33, i32 0, i32 1
%35 = load i64, ptr %34, align 8
%36 = inttoptr i64 %35 to ptr
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %32, ptr align 4 %36, i64 4, i1 false)
%37 = load ptr, ptr %9, align 8
%38 = getelementptr inbounds %struct.addrinfo, ptr %37, i32 0, i32 0
%39 = load i32, ptr %38, align 8
%40 = load ptr, ptr %5, align 8
store i32 %39, ptr %40, align 4
%41 = load ptr, ptr %9, align 8
%42 = call i32 @freeaddrinfo(ptr noundef %41)
%43 = load i32, ptr %6, align 4
store i32 %43, ptr %3, align 4
br label %44
44: ; preds = %31, %30, %17
%45 = load i32, ptr %3, align 4
ret i32 %45
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @getaddrinfo(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
declare i32 @freeaddrinfo(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp60cjio8u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.addrinfo = type { i32, i64, i32, i32, i32 }
@AF_INET = dso_local global i32 0, align 4
@SOCK_DGRAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [10 x i8] c"localhost\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"6249\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @fnInitSocket(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca %struct.addrinfo, align 8
%9 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%10 = call i32 @memset(ptr noundef %8, i32 noundef 0, i32 noundef 32)
%11 = load i32, ptr @AF_INET, align 4
%12 = getelementptr inbounds %struct.addrinfo, ptr %8, i32 0, i32 4
store i32 %11, ptr %12, align 8
%13 = load i32, ptr @SOCK_DGRAM, align 4
%14 = getelementptr inbounds %struct.addrinfo, ptr %8, i32 0, i32 3
store i32 %13, ptr %14, align 4
%15 = call i32 @getaddrinfo(ptr noundef @.str, ptr noundef @.str.1, ptr noundef %8, ptr noundef %9)
store i32 %15, ptr %7, align 4
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %2
store i32 -1, ptr %3, align 4
br label %44
18: ; preds = %2
%19 = load ptr, ptr %9, align 8
%20 = getelementptr inbounds %struct.addrinfo, ptr %19, i32 0, i32 4
%21 = load i32, ptr %20, align 8
%22 = load ptr, ptr %9, align 8
%23 = getelementptr inbounds %struct.addrinfo, ptr %22, i32 0, i32 3
%24 = load i32, ptr %23, align 4
%25 = load ptr, ptr %9, align 8
%26 = getelementptr inbounds %struct.addrinfo, ptr %25, i32 0, i32 2
%27 = load i32, ptr %26, align 8
%28 = call i32 @socket(i32 noundef %21, i32 noundef %24, i32 noundef %27)
store i32 %28, ptr %6, align 4
%29 = icmp slt i32 %28, 0
br i1 %29, label %30, label %31
30: ; preds = %18
store i32 -1, ptr %3, align 4
br label %44
31: ; preds = %18
%32 = load ptr, ptr %4, align 8
%33 = load ptr, ptr %9, align 8
%34 = getelementptr inbounds %struct.addrinfo, ptr %33, i32 0, i32 1
%35 = load i64, ptr %34, align 8
%36 = inttoptr i64 %35 to ptr
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %32, ptr align 4 %36, i64 4, i1 false)
%37 = load ptr, ptr %9, align 8
%38 = getelementptr inbounds %struct.addrinfo, ptr %37, i32 0, i32 0
%39 = load i32, ptr %38, align 8
%40 = load ptr, ptr %5, align 8
store i32 %39, ptr %40, align 4
%41 = load ptr, ptr %9, align 8
%42 = call i32 @freeaddrinfo(ptr noundef %41)
%43 = load i32, ptr %6, align 4
store i32 %43, ptr %3, align 4
br label %44
44: ; preds = %31, %30, %17
%45 = load i32, ptr %3, align 4
ret i32 %45
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @getaddrinfo(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
declare i32 @freeaddrinfo(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpoqvv39wx.c'
source_filename = "/tmp/tmpoqvv39wx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"shlq\09$3,%rax\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cgscale() #0 {
%1 = call i32 @gen(ptr noundef @.str)
ret void
}
declare i32 @gen(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/tmpoqvv39wx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"shlq\09$3,%rax\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @cgscale() #0 {
%1 = call i32 @gen(ptr noundef @.str)
ret void
}
declare i32 @gen(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/tmpytwc9eqd.c'
source_filename = "/tmp/tmpytwc9eqd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"Too few arguments...\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [28 x i8] c"Cache not opened, exiting.\0A\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%i\0A\00", align 1
@.str.4 = private unnamed_addr constant [20 x i8] c"cache_array[%i]=%i\0A\00", align 1
@.str.5 = private unnamed_addr constant [29 x i8] c"The result is obviously: %i\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca [128 x i8], align 16
%8 = alloca [64 x i64], align 16
%9 = alloca i32, align 4
%10 = alloca i64, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%13 = load i32, ptr %4, align 4
%14 = icmp slt i32 %13, 2
br i1 %14, label %15, label %18
15: ; preds = %2
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%17 = call i32 (...) @usage()
store i32 -1, ptr %3, align 4
br label %85
18: ; preds = %2
store i32 0, ptr %9, align 4
%19 = load ptr, ptr %5, align 8
%20 = getelementptr inbounds ptr, ptr %19, i64 1
%21 = load ptr, ptr %20, align 8
%22 = call ptr @fopen(ptr noundef %21, ptr noundef @.str.1)
store ptr %22, ptr %6, align 8
%23 = icmp eq ptr %22, null
br i1 %23, label %24, label %29
24: ; preds = %18
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%26 = load ptr, ptr %6, align 8
%27 = call i32 @fclose(ptr noundef %26)
%28 = call i32 @exit(i32 noundef 1) #3
unreachable
29: ; preds = %18
br label %30
30: ; preds = %35, %29
%31 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%32 = load ptr, ptr %6, align 8
%33 = call i64 @fgets(ptr noundef %31, i32 noundef 128, ptr noundef %32)
%34 = icmp ne i64 %33, 0
br i1 %34, label %35, label %43
35: ; preds = %30
%36 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%37 = call i64 @atoi(ptr noundef %36)
%38 = load i32, ptr %9, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [64 x i64], ptr %8, i64 0, i64 %39
store i64 %37, ptr %40, align 8
%41 = load i32, ptr %9, align 4
%42 = add nsw i32 %41, 1
store i32 %42, ptr %9, align 4
br label %30, !llvm.loop !6
43: ; preds = %30
%44 = load i32, ptr %9, align 4
%45 = add nsw i32 %44, -1
store i32 %45, ptr %9, align 4
%46 = load ptr, ptr %6, align 8
%47 = call i32 @fclose(ptr noundef %46)
%48 = getelementptr inbounds [64 x i64], ptr %8, i64 0, i64 0
%49 = call i32 @fib(i32 noundef 46, ptr noundef %48, ptr noundef %9)
%50 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %49)
store i64 0, ptr %10, align 8
store i32 0, ptr %11, align 4
br label %51
51: ; preds = %79, %43
%52 = load i32, ptr %11, align 4
%53 = icmp sle i32 %52, 50
br i1 %53, label %54, label %82
54: ; preds = %51
%55 = load i32, ptr %11, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [64 x i64], ptr %8, i64 0, i64 %56
%58 = load i64, ptr %57, align 8
%59 = trunc i64 %58 to i32
store i32 %59, ptr %12, align 4
%60 = load i32, ptr %12, align 4
%61 = srem i32 %60, 2
%62 = icmp eq i32 %61, 0
br i1 %62, label %63, label %78
63: ; preds = %54
%64 = load i32, ptr %12, align 4
%65 = sext i32 %64 to i64
%66 = icmp sle i64 %65, 4000000000
br i1 %66, label %67, label %78
67: ; preds = %63
%68 = load i32, ptr %12, align 4
%69 = sext i32 %68 to i64
%70 = load i64, ptr %10, align 8
%71 = add nsw i64 %70, %69
store i64 %71, ptr %10, align 8
%72 = load i32, ptr %11, align 4
%73 = load i32, ptr %11, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [64 x i64], ptr %8, i64 0, i64 %74
%76 = load i64, ptr %75, align 8
%77 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %72, i64 noundef %76)
br label %78
78: ; preds = %67, %63, %54
br label %79
79: ; preds = %78
%80 = load i32, ptr %11, align 4
%81 = add nsw i32 %80, 1
store i32 %81, ptr %11, align 4
br label %51, !llvm.loop !8
82: ; preds = %51
%83 = load i64, ptr %10, align 8
%84 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i64 noundef %83)
br label %85
85: ; preds = %82, %15
%86 = load i32, ptr %3, align 4
ret i32 %86
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @usage(...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @atoi(ptr noundef) #1
declare i32 @fib(i32 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"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpytwc9eqd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"Too few arguments...\0A\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.2 = private unnamed_addr constant [28 x i8] c"Cache not opened, exiting.\0A\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%i\0A\00", align 1
@.str.4 = private unnamed_addr constant [20 x i8] c"cache_array[%i]=%i\0A\00", align 1
@.str.5 = private unnamed_addr constant [29 x i8] c"The result is obviously: %i\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca [128 x i8], align 16
%8 = alloca [64 x i64], align 16
%9 = alloca i32, align 4
%10 = alloca i64, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%13 = load i32, ptr %4, align 4
%14 = icmp slt i32 %13, 2
br i1 %14, label %15, label %18
15: ; preds = %2
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%17 = call i32 (...) @usage()
store i32 -1, ptr %3, align 4
br label %88
18: ; preds = %2
store i32 0, ptr %9, align 4
%19 = load ptr, ptr %5, align 8
%20 = getelementptr inbounds ptr, ptr %19, i64 1
%21 = load ptr, ptr %20, align 8
%22 = call ptr @fopen(ptr noundef %21, ptr noundef @.str.1)
store ptr %22, ptr %6, align 8
%23 = icmp eq ptr %22, null
br i1 %23, label %24, label %29
24: ; preds = %18
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%26 = load ptr, ptr %6, align 8
%27 = call i32 @fclose(ptr noundef %26)
%28 = call i32 @exit(i32 noundef 1) #3
unreachable
29: ; preds = %18
%30 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%31 = load ptr, ptr %6, align 8
%32 = call i64 @fgets(ptr noundef %30, i32 noundef 128, ptr noundef %31)
%33 = icmp ne i64 %32, 0
br i1 %33, label %.lr.ph, label %45
.lr.ph: ; preds = %29
br label %34
34: ; preds = %.lr.ph, %34
%35 = getelementptr inbounds [128 x i8], ptr %7, i64 0, i64 0
%36 = call i64 @atoi(ptr noundef %35)
%37 = load i32, ptr %9, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [64 x i64], ptr %8, i64 0, i64 %38
store i64 %36, ptr %39, align 8
%40 = load i32, ptr %9, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %9, align 4
%42 = load ptr, ptr %6, align 8
%43 = call i64 @fgets(ptr noundef %30, i32 noundef 128, ptr noundef %42)
%44 = icmp ne i64 %43, 0
br i1 %44, label %34, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %34
br label %45
45: ; preds = %._crit_edge, %29
%46 = load i32, ptr %9, align 4
%47 = add nsw i32 %46, -1
store i32 %47, ptr %9, align 4
%48 = load ptr, ptr %6, align 8
%49 = call i32 @fclose(ptr noundef %48)
%50 = getelementptr inbounds [64 x i64], ptr %8, i64 0, i64 0
%51 = call i32 @fib(i32 noundef 46, ptr noundef %50, ptr noundef %9)
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %51)
store i64 0, ptr %10, align 8
store i32 0, ptr %11, align 4
%53 = load i32, ptr %11, align 4
%54 = icmp sle i32 %53, 50
br i1 %54, label %.lr.ph2, label %85
.lr.ph2: ; preds = %45
br label %55
55: ; preds = %.lr.ph2, %80
%56 = load i32, ptr %11, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [64 x i64], ptr %8, i64 0, i64 %57
%59 = load i64, ptr %58, align 8
%60 = trunc i64 %59 to i32
store i32 %60, ptr %12, align 4
%61 = load i32, ptr %12, align 4
%62 = srem i32 %61, 2
%63 = icmp eq i32 %62, 0
br i1 %63, label %64, label %79
64: ; preds = %55
%65 = load i32, ptr %12, align 4
%66 = sext i32 %65 to i64
%67 = icmp sle i64 %66, 4000000000
br i1 %67, label %68, label %79
68: ; preds = %64
%69 = load i32, ptr %12, align 4
%70 = sext i32 %69 to i64
%71 = load i64, ptr %10, align 8
%72 = add nsw i64 %71, %70
store i64 %72, ptr %10, align 8
%73 = load i32, ptr %11, align 4
%74 = load i32, ptr %11, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds [64 x i64], ptr %8, i64 0, i64 %75
%77 = load i64, ptr %76, align 8
%78 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %73, i64 noundef %77)
br label %79
79: ; preds = %68, %64, %55
br label %80
80: ; preds = %79
%81 = load i32, ptr %11, align 4
%82 = add nsw i32 %81, 1
store i32 %82, ptr %11, align 4
%83 = load i32, ptr %11, align 4
%84 = icmp sle i32 %83, 50
br i1 %84, label %55, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %80
br label %85
85: ; preds = %._crit_edge3, %45
%86 = load i64, ptr %10, align 8
%87 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i64 noundef %86)
br label %88
88: ; preds = %85, %15
%89 = load i32, ptr %3, align 4
ret i32 %89
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @usage(...) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @atoi(ptr noundef) #1
declare i32 @fib(i32 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"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpffbpkg6f.c'
source_filename = "/tmp/tmpffbpkg6f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @foo(i32 noundef %0, i8 noundef signext %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i8, align 1
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i8 %1, ptr %4, align 1
%6 = load i32, ptr %3, align 4
%7 = load i8, ptr %4, align 1
%8 = call i32 @bar(i32 noundef %6, i8 noundef signext %7)
store i32 %8, ptr %5, align 4
%9 = load i32, ptr %5, align 4
ret i32 %9
}
declare i32 @bar(i32 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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpffbpkg6f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @foo(i32 noundef %0, i8 noundef signext %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i8, align 1
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i8 %1, ptr %4, align 1
%6 = load i32, ptr %3, align 4
%7 = load i8, ptr %4, align 1
%8 = call i32 @bar(i32 noundef %6, i8 noundef signext %7)
store i32 %8, ptr %5, align 4
%9 = load i32, ptr %5, align 4
ret i32 %9
}
declare i32 @bar(i32 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"}
|
; ModuleID = '/tmp/tmpq3t_sbin.c'
source_filename = "/tmp/tmpq3t_sbin.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @greaterInt(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
%8 = load i64, ptr %5, align 8
%9 = sub i64 %8, 1
store i64 %9, ptr %6, align 8
store i64 0, ptr %7, align 8
br label %10
10: ; preds = %27, %2
%11 = load i64, ptr %7, align 8
%12 = load i64, ptr %6, align 8
%13 = icmp ult i64 %11, %12
br i1 %13, label %14, label %30
14: ; preds = %10
%15 = load ptr, ptr %4, align 8
%16 = load i64, ptr %7, align 8
%17 = getelementptr inbounds i32, ptr %15, i64 %16
%18 = load i32, ptr %17, align 4
%19 = load ptr, ptr %4, align 8
%20 = load i64, ptr %7, align 8
%21 = add i64 %20, 1
%22 = getelementptr inbounds i32, ptr %19, i64 %21
%23 = load i32, ptr %22, align 4
%24 = icmp sgt i32 %18, %23
br i1 %24, label %25, label %26
25: ; preds = %14
store i32 -1, ptr %3, align 4
br label %31
26: ; preds = %14
br label %27
27: ; preds = %26
%28 = load i64, ptr %7, align 8
%29 = add i64 %28, 1
store i64 %29, ptr %7, align 8
br label %10, !llvm.loop !6
30: ; preds = %10
store i32 1, ptr %3, align 4
br label %31
31: ; preds = %30, %25
%32 = load i32, ptr %3, align 4
ret i32 %32
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpq3t_sbin.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @greaterInt(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
%7 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
%8 = load i64, ptr %5, align 8
%9 = sub i64 %8, 1
store i64 %9, ptr %6, align 8
store i64 0, ptr %7, align 8
%10 = load i64, ptr %7, align 8
%11 = load i64, ptr %6, align 8
%12 = icmp ult i64 %10, %11
br i1 %12, label %.lr.ph, label %32
.lr.ph: ; preds = %2
br label %13
13: ; preds = %.lr.ph, %26
%14 = load ptr, ptr %4, align 8
%15 = load i64, ptr %7, align 8
%16 = getelementptr inbounds i32, ptr %14, i64 %15
%17 = load i32, ptr %16, align 4
%18 = load ptr, ptr %4, align 8
%19 = load i64, ptr %7, align 8
%20 = add i64 %19, 1
%21 = getelementptr inbounds i32, ptr %18, i64 %20
%22 = load i32, ptr %21, align 4
%23 = icmp sgt i32 %17, %22
br i1 %23, label %24, label %25
24: ; preds = %13
store i32 -1, ptr %3, align 4
br label %33
25: ; preds = %13
br label %26
26: ; preds = %25
%27 = load i64, ptr %7, align 8
%28 = add i64 %27, 1
store i64 %28, ptr %7, align 8
%29 = load i64, ptr %7, align 8
%30 = load i64, ptr %6, align 8
%31 = icmp ult i64 %29, %30
br i1 %31, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %26
br label %32
32: ; preds = %._crit_edge, %2
store i32 1, ptr %3, align 4
br label %33
33: ; preds = %32, %24
%34 = load i32, ptr %3, align 4
ret i32 %34
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp0b4tn7_f.c'
source_filename = "/tmp/tmp0b4tn7_f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @test_alloc2d() #0 {
%1 = alloca ptr, align 8
%2 = alloca i32, align 4
%3 = call ptr @alloc2d(i32 noundef 10, i32 noundef 10)
store ptr %3, ptr %1, align 8
%4 = load ptr, ptr %1, align 8
%5 = call i32 @test_2d_array(ptr noundef %4, i32 noundef 10, i32 noundef 10)
store i32 %5, ptr %2, align 4
%6 = load ptr, ptr %1, align 8
%7 = call i32 @free2d(ptr noundef %6, i32 noundef 10)
%8 = load i32, ptr %2, align 4
ret i32 %8
}
declare ptr @alloc2d(i32 noundef, i32 noundef) #1
declare i32 @test_2d_array(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @free2d(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/tmp0b4tn7_f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @test_alloc2d() #0 {
%1 = alloca ptr, align 8
%2 = alloca i32, align 4
%3 = call ptr @alloc2d(i32 noundef 10, i32 noundef 10)
store ptr %3, ptr %1, align 8
%4 = load ptr, ptr %1, align 8
%5 = call i32 @test_2d_array(ptr noundef %4, i32 noundef 10, i32 noundef 10)
store i32 %5, ptr %2, align 4
%6 = load ptr, ptr %1, align 8
%7 = call i32 @free2d(ptr noundef %6, i32 noundef 10)
%8 = load i32, ptr %2, align 4
ret i32 %8
}
declare ptr @alloc2d(i32 noundef, i32 noundef) #1
declare i32 @test_2d_array(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @free2d(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/tmp7b8dbtng.c'
source_filename = "/tmp/tmp7b8dbtng.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"0\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @is_number(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %9
8: ; preds = %1
store i32 -1, ptr %2, align 4
br label %43
9: ; preds = %1
%10 = load ptr, ptr %3, align 8
%11 = call i32 @strcmp(ptr noundef %10, ptr noundef @.str)
%12 = icmp ne i32 %11, 0
br i1 %12, label %14, label %13
13: ; preds = %9
store i32 0, ptr %2, align 4
br label %43
14: ; preds = %9
%15 = load ptr, ptr %3, align 8
%16 = call i32 @strlen(ptr noundef %15)
store i32 %16, ptr %5, align 4
store i32 0, ptr %4, align 4
br label %17
17: ; preds = %31, %14
%18 = load i32, ptr %4, align 4
%19 = load i32, ptr %5, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %21, label %34
21: ; preds = %17
%22 = load ptr, ptr %3, align 8
%23 = load i32, ptr %4, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i8, ptr %22, i64 %24
%26 = load i8, ptr %25, align 1
%27 = call i32 @isdigit(i8 noundef signext %26)
%28 = icmp ne i32 %27, 0
br i1 %28, label %30, label %29
29: ; preds = %21
store i32 0, ptr %2, align 4
br label %43
30: ; preds = %21
br label %31
31: ; preds = %30
%32 = load i32, ptr %4, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %4, align 4
br label %17, !llvm.loop !6
34: ; preds = %17
%35 = load i32, ptr %4, align 4
%36 = load i32, ptr %5, align 4
%37 = icmp eq i32 %35, %36
br i1 %37, label %38, label %42
38: ; preds = %34
%39 = load i32, ptr %4, align 4
%40 = icmp sgt i32 %39, 0
br i1 %40, label %41, label %42
41: ; preds = %38
store i32 1, ptr %2, align 4
br label %43
42: ; preds = %38, %34
store i32 0, ptr %2, align 4
br label %43
43: ; preds = %42, %41, %29, %13, %8
%44 = load i32, ptr %2, align 4
ret i32 %44
}
declare i32 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @isdigit(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/tmp7b8dbtng.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"0\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @is_number(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %9
8: ; preds = %1
store i32 -1, ptr %2, align 4
br label %45
9: ; preds = %1
%10 = load ptr, ptr %3, align 8
%11 = call i32 @strcmp(ptr noundef %10, ptr noundef @.str)
%12 = icmp ne i32 %11, 0
br i1 %12, label %14, label %13
13: ; preds = %9
store i32 0, ptr %2, align 4
br label %45
14: ; preds = %9
%15 = load ptr, ptr %3, align 8
%16 = call i32 @strlen(ptr noundef %15)
store i32 %16, ptr %5, align 4
store i32 0, ptr %4, align 4
%17 = load i32, ptr %4, align 4
%18 = load i32, ptr %5, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %.lr.ph, label %36
.lr.ph: ; preds = %14
br label %20
20: ; preds = %.lr.ph, %30
%21 = load ptr, ptr %3, align 8
%22 = load i32, ptr %4, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i8, ptr %21, i64 %23
%25 = load i8, ptr %24, align 1
%26 = call i32 @isdigit(i8 noundef signext %25)
%27 = icmp ne i32 %26, 0
br i1 %27, label %29, label %28
28: ; preds = %20
store i32 0, ptr %2, align 4
br label %45
29: ; preds = %20
br label %30
30: ; preds = %29
%31 = load i32, ptr %4, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %4, align 4
%33 = load i32, ptr %4, align 4
%34 = load i32, ptr %5, align 4
%35 = icmp slt i32 %33, %34
br i1 %35, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %30
br label %36
36: ; preds = %._crit_edge, %14
%37 = load i32, ptr %4, align 4
%38 = load i32, ptr %5, align 4
%39 = icmp eq i32 %37, %38
br i1 %39, label %40, label %44
40: ; preds = %36
%41 = load i32, ptr %4, align 4
%42 = icmp sgt i32 %41, 0
br i1 %42, label %43, label %44
43: ; preds = %40
store i32 1, ptr %2, align 4
br label %45
44: ; preds = %40, %36
store i32 0, ptr %2, align 4
br label %45
45: ; preds = %44, %43, %28, %13, %8
%46 = load i32, ptr %2, align 4
ret i32 %46
}
declare i32 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @isdigit(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/tmp9a5ccocf.c'
source_filename = "/tmp/tmp9a5ccocf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%u\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = call i32 @printf(ptr noundef @.str, i32 noundef 10)
%2 = call i32 @printf(ptr noundef @.str.1, i32 noundef 10)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9a5ccocf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%u\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = call i32 @printf(ptr noundef @.str, i32 noundef 10)
%2 = call i32 @printf(ptr noundef @.str.1, i32 noundef 10)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpnf0f4bfz.c'
source_filename = "/tmp/tmpnf0f4bfz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnf0f4bfz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqd58yns_.c'
source_filename = "/tmp/tmpqd58yns_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @btfree(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/tmpqd58yns_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @btfree(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/tmp95v7_n0b.c'
source_filename = "/tmp/tmp95v7_n0b.c"
target datalayout = "e-m:e-p270: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/tmp95v7_n0b.c"
target datalayout = "e-m:e-p270: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/tmpllitmm6i.c'
source_filename = "/tmp/tmpllitmm6i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"co\00", align 1
@.str.1 = private unnamed_addr constant [828 x i8] c"WEREWOLVES AND WANDERER COMMANDS\0A\0AGO - Travel to a different room. GO then EAST,\0A GO EAST, or just EAST are all the same.\0ALOOK - Get a description of the room\0AINVENTORY - See your stats.\0AGET or PICK UP - Add the treasure in the room\0A to your wealth total.\0ATRADE or BUY - Purchase items from the merchant\0A if available. Typing TRADE then AXE or\0A BUY AXE are the same.\0AEAT - Consume food to increase your strength.\0AFIGHT - Engage monster in the room to combat.\0ARUN or FLEE - Attempt to escape from monsters\0A in the room. RUN then EAST or RUN EAST\0A both have the same effect.\0AMAGIC - If you have the amulet you can summon\0A its power to teleport you within the castle.\0AEXAMINE - In certain rooms you may learn more\0A about the story.\0AHIGH SCORE - look at the high score table.\0AQUIT - End your game.\0A\0A\00", align 1
@.str.2 = private unnamed_addr constant [723 x i8] c"WEREWOLVES AND WANDERER\0AOriginal game by Tim Hartnell.\0ARemake by Joseph Larson\0A\0AIn this adventure you are the wanderer and\0Awerewolves and other strange creatures inhabit\0Aan ancient, abandoned, stone castle where you\0Aare seeking untold fortune.\0A\0AThis is a basic text-adventure that seeks to\0Asimplify the experience by giving you the\0Aavailable exits and commands without needing\0Ato hunt around for them, tho it will also\0Aaccept a few other commands as well as\0Aoccasional two word commands.\0A\0AThe EXAMINE command is the one exception. Typing\0AEXAMINE in a room may give you extra expository\0Ainformation about that room, tho the game may not\0Aalways tell you when you can use it.\0A\0AType HELP COMMANDS for a list of all commands.\0A\0A\00", align 1
@.str.3 = private unnamed_addr constant [25 x i8] c"Press ENTER to continue\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @help(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 @strtolower(ptr noundef %6)
br label %8
8: ; preds = %5, %1
%9 = load ptr, ptr %2, align 8
%10 = call i32 @strncmp(ptr noundef %9, ptr noundef @.str, i32 noundef 2)
%11 = icmp ne i32 %10, 0
br i1 %11, label %14, label %12
12: ; preds = %8
%13 = call i32 @slowprintf(ptr noundef @.str.1)
br label %16
14: ; preds = %8
%15 = call i32 @slowprintf(ptr noundef @.str.2)
br label %16
16: ; preds = %14, %12
%17 = call i32 @slowprintf(ptr noundef @.str.3)
%18 = call i32 (...) @getchar()
ret void
}
declare i32 @strtolower(ptr noundef) #1
declare i32 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @slowprintf(ptr noundef) #1
declare i32 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpllitmm6i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"co\00", align 1
@.str.1 = private unnamed_addr constant [828 x i8] c"WEREWOLVES AND WANDERER COMMANDS\0A\0AGO - Travel to a different room. GO then EAST,\0A GO EAST, or just EAST are all the same.\0ALOOK - Get a description of the room\0AINVENTORY - See your stats.\0AGET or PICK UP - Add the treasure in the room\0A to your wealth total.\0ATRADE or BUY - Purchase items from the merchant\0A if available. Typing TRADE then AXE or\0A BUY AXE are the same.\0AEAT - Consume food to increase your strength.\0AFIGHT - Engage monster in the room to combat.\0ARUN or FLEE - Attempt to escape from monsters\0A in the room. RUN then EAST or RUN EAST\0A both have the same effect.\0AMAGIC - If you have the amulet you can summon\0A its power to teleport you within the castle.\0AEXAMINE - In certain rooms you may learn more\0A about the story.\0AHIGH SCORE - look at the high score table.\0AQUIT - End your game.\0A\0A\00", align 1
@.str.2 = private unnamed_addr constant [723 x i8] c"WEREWOLVES AND WANDERER\0AOriginal game by Tim Hartnell.\0ARemake by Joseph Larson\0A\0AIn this adventure you are the wanderer and\0Awerewolves and other strange creatures inhabit\0Aan ancient, abandoned, stone castle where you\0Aare seeking untold fortune.\0A\0AThis is a basic text-adventure that seeks to\0Asimplify the experience by giving you the\0Aavailable exits and commands without needing\0Ato hunt around for them, tho it will also\0Aaccept a few other commands as well as\0Aoccasional two word commands.\0A\0AThe EXAMINE command is the one exception. Typing\0AEXAMINE in a room may give you extra expository\0Ainformation about that room, tho the game may not\0Aalways tell you when you can use it.\0A\0AType HELP COMMANDS for a list of all commands.\0A\0A\00", align 1
@.str.3 = private unnamed_addr constant [25 x i8] c"Press ENTER to continue\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @help(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 @strtolower(ptr noundef %6)
br label %8
8: ; preds = %5, %1
%9 = load ptr, ptr %2, align 8
%10 = call i32 @strncmp(ptr noundef %9, ptr noundef @.str, i32 noundef 2)
%11 = icmp ne i32 %10, 0
br i1 %11, label %14, label %12
12: ; preds = %8
%13 = call i32 @slowprintf(ptr noundef @.str.1)
br label %16
14: ; preds = %8
%15 = call i32 @slowprintf(ptr noundef @.str.2)
br label %16
16: ; preds = %14, %12
%17 = call i32 @slowprintf(ptr noundef @.str.3)
%18 = call i32 (...) @getchar()
ret void
}
declare i32 @strtolower(ptr noundef) #1
declare i32 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @slowprintf(ptr noundef) #1
declare i32 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpeyr9qvh5.c'
source_filename = "/tmp/tmpeyr9qvh5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_vorrimm_u8x8(ptr noalias noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
br label %6
6: ; preds = %20, %2
%7 = load i32, ptr %5, align 4
%8 = icmp slt i32 %7, 8
br i1 %8, label %9, label %23
9: ; preds = %6
%10 = load ptr, ptr %4, align 8
%11 = load i32, ptr %5, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i32, ptr %10, i64 %12
%14 = load i32, ptr %13, align 4
%15 = or i32 %14, 1
%16 = load ptr, ptr %3, align 8
%17 = load i32, ptr %5, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i32, ptr %16, i64 %18
store i32 %15, ptr %19, align 4
br label %20
20: ; preds = %9
%21 = load i32, ptr %5, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %5, align 4
br label %6, !llvm.loop !6
23: ; preds = %6
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpeyr9qvh5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_vorrimm_u8x8(ptr noalias noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
%6 = load i32, ptr %5, align 4
%7 = icmp slt i32 %6, 8
br i1 %7, label %.lr.ph, label %24
.lr.ph: ; preds = %2
br label %8
8: ; preds = %.lr.ph, %19
%9 = load ptr, ptr %4, align 8
%10 = load i32, ptr %5, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds i32, ptr %9, i64 %11
%13 = load i32, ptr %12, align 4
%14 = or i32 %13, 1
%15 = load ptr, ptr %3, align 8
%16 = load i32, ptr %5, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i32, ptr %15, i64 %17
store i32 %14, ptr %18, align 4
br label %19
19: ; preds = %8
%20 = load i32, ptr %5, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %5, align 4
%22 = load i32, ptr %5, align 4
%23 = icmp slt i32 %22, 8
br i1 %23, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %24
24: ; preds = %._crit_edge, %2
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmptoa57reh.c'
source_filename = "/tmp/tmptoa57reh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = load i32, ptr %4, align 4
%11 = icmp sgt i32 %10, 1
br i1 %11, label %12, label %17
12: ; preds = %2
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 1
%15 = load ptr, ptr %14, align 8
%16 = call i32 @strtol(ptr noundef %15, ptr noundef null, i32 noundef 0)
br label %18
17: ; preds = %2
br label %18
18: ; preds = %17, %12
%19 = phi i32 [ %16, %12 ], [ 500, %17 ]
store i32 %19, ptr %6, align 4
%20 = load i32, ptr %4, align 4
%21 = icmp sgt i32 %20, 2
br i1 %21, label %22, label %27
22: ; preds = %18
%23 = load ptr, ptr %5, align 8
%24 = getelementptr inbounds ptr, ptr %23, i64 2
%25 = load ptr, ptr %24, align 8
%26 = call i32 @strtol(ptr noundef %25, ptr noundef null, i32 noundef 0)
br label %28
27: ; preds = %18
br label %28
28: ; preds = %27, %22
%29 = phi i32 [ %26, %22 ], [ 450, %27 ]
store i32 %29, ptr %7, align 4
%30 = load i32, ptr %4, align 4
%31 = icmp sgt i32 %30, 3
br i1 %31, label %32, label %37
32: ; preds = %28
%33 = load ptr, ptr %5, align 8
%34 = getelementptr inbounds ptr, ptr %33, i64 3
%35 = load ptr, ptr %34, align 8
%36 = call i32 @strtol(ptr noundef %35, ptr noundef null, i32 noundef 0)
br label %38
37: ; preds = %28
br label %38
38: ; preds = %37, %32
%39 = phi i32 [ %36, %32 ], [ 405, %37 ]
store i32 %39, ptr %8, align 4
%40 = load i32, ptr %6, align 4
%41 = load i32, ptr %7, align 4
%42 = load i32, ptr %8, align 4
%43 = call i32 @calcTak(i32 noundef %40, i32 noundef %41, i32 noundef %42)
store i32 %43, ptr %9, align 4
ret i32 0
}
declare i32 @strtol(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @calcTak(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/tmptoa57reh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = load i32, ptr %4, align 4
%11 = icmp sgt i32 %10, 1
br i1 %11, label %12, label %17
12: ; preds = %2
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 1
%15 = load ptr, ptr %14, align 8
%16 = call i32 @strtol(ptr noundef %15, ptr noundef null, i32 noundef 0)
br label %18
17: ; preds = %2
br label %18
18: ; preds = %17, %12
%19 = phi i32 [ %16, %12 ], [ 500, %17 ]
store i32 %19, ptr %6, align 4
%20 = load i32, ptr %4, align 4
%21 = icmp sgt i32 %20, 2
br i1 %21, label %22, label %27
22: ; preds = %18
%23 = load ptr, ptr %5, align 8
%24 = getelementptr inbounds ptr, ptr %23, i64 2
%25 = load ptr, ptr %24, align 8
%26 = call i32 @strtol(ptr noundef %25, ptr noundef null, i32 noundef 0)
br label %28
27: ; preds = %18
br label %28
28: ; preds = %27, %22
%29 = phi i32 [ %26, %22 ], [ 450, %27 ]
store i32 %29, ptr %7, align 4
%30 = load i32, ptr %4, align 4
%31 = icmp sgt i32 %30, 3
br i1 %31, label %32, label %37
32: ; preds = %28
%33 = load ptr, ptr %5, align 8
%34 = getelementptr inbounds ptr, ptr %33, i64 3
%35 = load ptr, ptr %34, align 8
%36 = call i32 @strtol(ptr noundef %35, ptr noundef null, i32 noundef 0)
br label %38
37: ; preds = %28
br label %38
38: ; preds = %37, %32
%39 = phi i32 [ %36, %32 ], [ 405, %37 ]
store i32 %39, ptr %8, align 4
%40 = load i32, ptr %6, align 4
%41 = load i32, ptr %7, align 4
%42 = load i32, ptr %8, align 4
%43 = call i32 @calcTak(i32 noundef %40, i32 noundef %41, i32 noundef %42)
store i32 %43, ptr %9, align 4
ret i32 0
}
declare i32 @strtol(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @calcTak(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/tmp3rgqksen.c'
source_filename = "/tmp/tmp3rgqksen.c"
target datalayout = "e-m:e-p270: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/tmp3rgqksen.c"
target datalayout = "e-m:e-p270: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/tmpmyb8fpv3.c'
source_filename = "/tmp/tmpmyb8fpv3.c"
target datalayout = "e-m:e-p270: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/tmpmyb8fpv3.c"
target datalayout = "e-m:e-p270: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/tmpgruq0ez4.c'
source_filename = "/tmp/tmpgruq0ez4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%04d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @to_hhmm(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca [128 x i8], align 16
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%7 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 0
%8 = load ptr, ptr %5, align 8
%9 = call i32 @column(ptr noundef %7, i32 noundef 1, ptr noundef %8)
%10 = icmp ne i32 %9, 0
br i1 %10, label %12, label %11
11: ; preds = %2
store ptr null, ptr %3, align 8
br label %27
12: ; preds = %2
%13 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 0
%14 = call i32 @character_count(i8 noundef signext 58, ptr noundef %13)
%15 = icmp eq i32 %14, 2
br i1 %15, label %16, label %19
16: ; preds = %12
%17 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 0
%18 = call i32 @piece_inverse(ptr noundef %17, i8 noundef signext 58, i32 noundef 2)
br label %19
19: ; preds = %16, %12
%20 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 0
%21 = call i32 @timlib_delete_character(ptr noundef %20, i8 noundef signext 58)
%22 = load ptr, ptr %4, align 8
%23 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 0
%24 = call i32 @atoi(ptr noundef %23)
%25 = call i32 @sprintf(ptr noundef %22, ptr noundef @.str, i32 noundef %24)
%26 = load ptr, ptr %4, align 8
store ptr %26, ptr %3, align 8
br label %27
27: ; preds = %19, %11
%28 = load ptr, ptr %3, align 8
ret ptr %28
}
declare i32 @column(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @character_count(i8 noundef signext, ptr noundef) #1
declare i32 @piece_inverse(ptr noundef, i8 noundef signext, i32 noundef) #1
declare i32 @timlib_delete_character(ptr noundef, i8 noundef signext) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 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/tmpgruq0ez4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%04d\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @to_hhmm(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca [128 x i8], align 16
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%7 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 0
%8 = load ptr, ptr %5, align 8
%9 = call i32 @column(ptr noundef %7, i32 noundef 1, ptr noundef %8)
%10 = icmp ne i32 %9, 0
br i1 %10, label %12, label %11
11: ; preds = %2
store ptr null, ptr %3, align 8
br label %27
12: ; preds = %2
%13 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 0
%14 = call i32 @character_count(i8 noundef signext 58, ptr noundef %13)
%15 = icmp eq i32 %14, 2
br i1 %15, label %16, label %19
16: ; preds = %12
%17 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 0
%18 = call i32 @piece_inverse(ptr noundef %17, i8 noundef signext 58, i32 noundef 2)
br label %19
19: ; preds = %16, %12
%20 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 0
%21 = call i32 @timlib_delete_character(ptr noundef %20, i8 noundef signext 58)
%22 = load ptr, ptr %4, align 8
%23 = getelementptr inbounds [128 x i8], ptr %6, i64 0, i64 0
%24 = call i32 @atoi(ptr noundef %23)
%25 = call i32 @sprintf(ptr noundef %22, ptr noundef @.str, i32 noundef %24)
%26 = load ptr, ptr %4, align 8
store ptr %26, ptr %3, align 8
br label %27
27: ; preds = %19, %11
%28 = load ptr, ptr %3, align 8
ret ptr %28
}
declare i32 @column(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @character_count(i8 noundef signext, ptr noundef) #1
declare i32 @piece_inverse(ptr noundef, i8 noundef signext, i32 noundef) #1
declare i32 @timlib_delete_character(ptr noundef, i8 noundef signext) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i32 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/tmpsfin79oj.c'
source_filename = "/tmp/tmpsfin79oj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @c_deque_max_size() #0 {
ret i64 -1
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsfin79oj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @c_deque_max_size() #0 {
ret i64 -1
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpt2ziohzu.c'
source_filename = "/tmp/tmpt2ziohzu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"input circle radius\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%lf\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"length: %.2f\0A\00", align 1
@.str.3 = private unnamed_addr constant [19 x i8] c"circle_area: %.2f\0A\00", align 1
@.str.4 = private unnamed_addr constant [19 x i8] c"sphere_area: %.2f\0A\00", align 1
@.str.5 = private unnamed_addr constant [21 x i8] c"sphere_volume: %.2f\0A\00", align 1
@.str.6 = private unnamed_addr constant [14 x i8] c"input height\0A\00", align 1
@.str.7 = private unnamed_addr constant [28 x i8] c"circle_column_volume: %.2f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca double, align 8
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %4)
%8 = load double, ptr %4, align 8
%9 = call double @circle_length(double noundef %8)
store double %9, ptr %1, align 8
%10 = load double, ptr %1, align 8
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %10)
%12 = load double, ptr %4, align 8
%13 = call double @circle_area(double noundef %12)
store double %13, ptr %2, align 8
%14 = load double, ptr %2, align 8
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %14)
%16 = load double, ptr %4, align 8
%17 = call double @sphere_area(double noundef %16)
store double %17, ptr %2, align 8
%18 = load double, ptr %2, align 8
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %18)
%20 = load double, ptr %4, align 8
%21 = call double @sphere_volume(double noundef %20)
store double %21, ptr %3, align 8
%22 = load double, ptr %3, align 8
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, double noundef %22)
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%25 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %5)
%26 = load double, ptr %4, align 8
%27 = load double, ptr %5, align 8
%28 = call double @circle_column_volume(double noundef %26, double noundef %27)
store double %28, ptr %3, align 8
%29 = load double, ptr %3, align 8
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, double noundef %29)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare double @circle_length(double noundef) #1
declare double @circle_area(double noundef) #1
declare double @sphere_area(double noundef) #1
declare double @sphere_volume(double noundef) #1
declare double @circle_column_volume(double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpt2ziohzu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [21 x i8] c"input circle radius\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%lf\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"length: %.2f\0A\00", align 1
@.str.3 = private unnamed_addr constant [19 x i8] c"circle_area: %.2f\0A\00", align 1
@.str.4 = private unnamed_addr constant [19 x i8] c"sphere_area: %.2f\0A\00", align 1
@.str.5 = private unnamed_addr constant [21 x i8] c"sphere_volume: %.2f\0A\00", align 1
@.str.6 = private unnamed_addr constant [14 x i8] c"input height\0A\00", align 1
@.str.7 = private unnamed_addr constant [28 x i8] c"circle_column_volume: %.2f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca double, align 8
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %4)
%8 = load double, ptr %4, align 8
%9 = call double @circle_length(double noundef %8)
store double %9, ptr %1, align 8
%10 = load double, ptr %1, align 8
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, double noundef %10)
%12 = load double, ptr %4, align 8
%13 = call double @circle_area(double noundef %12)
store double %13, ptr %2, align 8
%14 = load double, ptr %2, align 8
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %14)
%16 = load double, ptr %4, align 8
%17 = call double @sphere_area(double noundef %16)
store double %17, ptr %2, align 8
%18 = load double, ptr %2, align 8
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %18)
%20 = load double, ptr %4, align 8
%21 = call double @sphere_volume(double noundef %20)
store double %21, ptr %3, align 8
%22 = load double, ptr %3, align 8
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, double noundef %22)
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%25 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %5)
%26 = load double, ptr %4, align 8
%27 = load double, ptr %5, align 8
%28 = call double @circle_column_volume(double noundef %26, double noundef %27)
store double %28, ptr %3, align 8
%29 = load double, ptr %3, align 8
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, double noundef %29)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare double @circle_length(double noundef) #1
declare double @circle_area(double noundef) #1
declare double @sphere_area(double noundef) #1
declare double @sphere_volume(double noundef) #1
declare double @circle_column_volume(double noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpddmzk2tg.c'
source_filename = "/tmp/tmpddmzk2tg.c"
target datalayout = "e-m:e-p270: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/tmpddmzk2tg.c"
target datalayout = "e-m:e-p270: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/tmp0zypbh00.c'
source_filename = "/tmp/tmp0zypbh00.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @draw_cave() #0 {
%1 = call i32 (...) @clear_screen()
%2 = call i32 (...) @prt_stat_block()
%3 = call i32 (...) @prt_map()
%4 = call i32 (...) @prt_depth()
ret void
}
declare i32 @clear_screen(...) #1
declare i32 @prt_stat_block(...) #1
declare i32 @prt_map(...) #1
declare i32 @prt_depth(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0zypbh00.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @draw_cave() #0 {
%1 = call i32 (...) @clear_screen()
%2 = call i32 (...) @prt_stat_block()
%3 = call i32 (...) @prt_map()
%4 = call i32 (...) @prt_depth()
ret void
}
declare i32 @clear_screen(...) #1
declare i32 @prt_stat_block(...) #1
declare i32 @prt_map(...) #1
declare i32 @prt_depth(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpeuos53r5.c'
source_filename = "/tmp/tmpeuos53r5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i64, i32, %struct.TYPE_2__ }
%struct.TYPE_2__ = type { i32 }
%struct.hostent = type { i64, i64 }
%struct.sockaddr = type { i64 }
@EINVAL = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@AF_INET = dso_local global i64 0, align 8
@EPROTOTYPE = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @connect_to_server(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca %struct.sockaddr_in, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%11 = load ptr, ptr %4, align 8
%12 = call i32 @inet_addr(ptr noundef %11)
%13 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 2
%14 = getelementptr inbounds %struct.TYPE_2__, ptr %13, i32 0, i32 0
store i32 %12, ptr %14, align 4
%15 = icmp eq i32 %12, -1
br i1 %15, label %16, label %41
16: ; preds = %2
%17 = load ptr, ptr %4, align 8
%18 = call ptr (ptr, ...) @gethostbyname(ptr noundef %17)
store ptr %18, ptr %8, align 8
%19 = icmp eq ptr %18, null
br i1 %19, label %20, label %22
20: ; preds = %16
%21 = load i32, ptr @EINVAL, align 4
store i32 %21, ptr @errno, align 4
store i32 0, ptr %3, align 4
br label %70
22: ; preds = %16
%23 = load ptr, ptr %8, align 8
%24 = getelementptr inbounds %struct.hostent, ptr %23, i32 0, i32 0
%25 = load i64, ptr %24, align 8
%26 = load i64, ptr @AF_INET, align 8
%27 = icmp ne i64 %25, %26
br i1 %27, label %28, label %30
28: ; preds = %22
%29 = load i32, ptr @EPROTOTYPE, align 4
store i32 %29, ptr @errno, align 4
store i32 0, ptr %3, align 4
br label %70
30: ; preds = %22
%31 = load ptr, ptr %8, align 8
%32 = getelementptr inbounds %struct.hostent, ptr %31, i32 0, i32 0
%33 = load i64, ptr %32, align 8
%34 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 0
store i64 %33, ptr %34, align 8
%35 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 2
%36 = load ptr, ptr %8, align 8
%37 = getelementptr inbounds %struct.hostent, ptr %36, i32 0, i32 1
%38 = load i64, ptr %37, align 8
%39 = inttoptr i64 %38 to ptr
%40 = call i32 @memcpy(ptr noundef %35, ptr noundef %39, i32 noundef 4)
br label %44
41: ; preds = %2
%42 = load i64, ptr @AF_INET, align 8
%43 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 0
store i64 %42, ptr %43, align 8
br label %44
44: ; preds = %41, %30
store ptr %6, ptr %7, align 8
store i32 16, ptr %9, align 4
%45 = load i32, ptr %5, align 4
%46 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 1
store i32 %45, ptr %46, align 8
%47 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 1
%48 = load i32, ptr %47, align 8
%49 = call i32 @htons(i32 noundef %48)
%50 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 1
store i32 %49, ptr %50, align 8
%51 = load ptr, ptr %7, align 8
%52 = getelementptr inbounds %struct.sockaddr, ptr %51, i32 0, i32 0
%53 = load i64, ptr %52, align 8
%54 = trunc i64 %53 to i32
%55 = load i32, ptr @SOCK_STREAM, align 4
%56 = call i32 @socket(i32 noundef %54, i32 noundef %55, i32 noundef 0)
store i32 %56, ptr %10, align 4
%57 = icmp slt i32 %56, 0
br i1 %57, label %58, label %59
58: ; preds = %44
store i32 0, ptr %3, align 4
br label %70
59: ; preds = %44
%60 = load i32, ptr %10, align 4
%61 = load ptr, ptr %7, align 8
%62 = load i32, ptr %9, align 4
%63 = call i32 @connect(i32 noundef %60, ptr noundef %61, i32 noundef %62)
%64 = icmp eq i32 %63, -1
br i1 %64, label %65, label %68
65: ; preds = %59
%66 = load i32, ptr %10, align 4
%67 = call i32 @close(i32 noundef %66)
store i32 0, ptr %3, align 4
br label %70
68: ; preds = %59
%69 = load i32, ptr %10, align 4
store i32 %69, ptr %3, align 4
br label %70
70: ; preds = %68, %65, %58, %28, %20
%71 = load i32, ptr %3, align 4
ret i32 %71
}
declare i32 @inet_addr(ptr noundef) #1
declare ptr @gethostbyname(...) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpeuos53r5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i64, i32, %struct.TYPE_2__ }
%struct.TYPE_2__ = type { i32 }
%struct.hostent = type { i64, i64 }
%struct.sockaddr = type { i64 }
@EINVAL = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
@AF_INET = dso_local global i64 0, align 8
@EPROTOTYPE = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @connect_to_server(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca %struct.sockaddr_in, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%11 = load ptr, ptr %4, align 8
%12 = call i32 @inet_addr(ptr noundef %11)
%13 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 2
%14 = getelementptr inbounds %struct.TYPE_2__, ptr %13, i32 0, i32 0
store i32 %12, ptr %14, align 4
%15 = icmp eq i32 %12, -1
br i1 %15, label %16, label %41
16: ; preds = %2
%17 = load ptr, ptr %4, align 8
%18 = call ptr (ptr, ...) @gethostbyname(ptr noundef %17)
store ptr %18, ptr %8, align 8
%19 = icmp eq ptr %18, null
br i1 %19, label %20, label %22
20: ; preds = %16
%21 = load i32, ptr @EINVAL, align 4
store i32 %21, ptr @errno, align 4
store i32 0, ptr %3, align 4
br label %70
22: ; preds = %16
%23 = load ptr, ptr %8, align 8
%24 = getelementptr inbounds %struct.hostent, ptr %23, i32 0, i32 0
%25 = load i64, ptr %24, align 8
%26 = load i64, ptr @AF_INET, align 8
%27 = icmp ne i64 %25, %26
br i1 %27, label %28, label %30
28: ; preds = %22
%29 = load i32, ptr @EPROTOTYPE, align 4
store i32 %29, ptr @errno, align 4
store i32 0, ptr %3, align 4
br label %70
30: ; preds = %22
%31 = load ptr, ptr %8, align 8
%32 = getelementptr inbounds %struct.hostent, ptr %31, i32 0, i32 0
%33 = load i64, ptr %32, align 8
%34 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 0
store i64 %33, ptr %34, align 8
%35 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 2
%36 = load ptr, ptr %8, align 8
%37 = getelementptr inbounds %struct.hostent, ptr %36, i32 0, i32 1
%38 = load i64, ptr %37, align 8
%39 = inttoptr i64 %38 to ptr
%40 = call i32 @memcpy(ptr noundef %35, ptr noundef %39, i32 noundef 4)
br label %44
41: ; preds = %2
%42 = load i64, ptr @AF_INET, align 8
%43 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 0
store i64 %42, ptr %43, align 8
br label %44
44: ; preds = %41, %30
store ptr %6, ptr %7, align 8
store i32 16, ptr %9, align 4
%45 = load i32, ptr %5, align 4
%46 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 1
store i32 %45, ptr %46, align 8
%47 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 1
%48 = load i32, ptr %47, align 8
%49 = call i32 @htons(i32 noundef %48)
%50 = getelementptr inbounds %struct.sockaddr_in, ptr %6, i32 0, i32 1
store i32 %49, ptr %50, align 8
%51 = load ptr, ptr %7, align 8
%52 = getelementptr inbounds %struct.sockaddr, ptr %51, i32 0, i32 0
%53 = load i64, ptr %52, align 8
%54 = trunc i64 %53 to i32
%55 = load i32, ptr @SOCK_STREAM, align 4
%56 = call i32 @socket(i32 noundef %54, i32 noundef %55, i32 noundef 0)
store i32 %56, ptr %10, align 4
%57 = icmp slt i32 %56, 0
br i1 %57, label %58, label %59
58: ; preds = %44
store i32 0, ptr %3, align 4
br label %70
59: ; preds = %44
%60 = load i32, ptr %10, align 4
%61 = load ptr, ptr %7, align 8
%62 = load i32, ptr %9, align 4
%63 = call i32 @connect(i32 noundef %60, ptr noundef %61, i32 noundef %62)
%64 = icmp eq i32 %63, -1
br i1 %64, label %65, label %68
65: ; preds = %59
%66 = load i32, ptr %10, align 4
%67 = call i32 @close(i32 noundef %66)
store i32 0, ptr %3, align 4
br label %70
68: ; preds = %59
%69 = load i32, ptr %10, align 4
store i32 %69, ptr %3, align 4
br label %70
70: ; preds = %68, %65, %58, %28, %20
%71 = load i32, ptr %3, align 4
ret i32 %71
}
declare i32 @inet_addr(ptr noundef) #1
declare ptr @gethostbyname(...) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpg2twyo53.c'
source_filename = "/tmp/tmpg2twyo53.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0C\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ED() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpg2twyo53.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0C\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ED() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9botkl9c.c'
source_filename = "/tmp/tmp9botkl9c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @EthernetPacketPut(i64 noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
store i64 %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%7 = load i64, ptr %4, align 8
%8 = icmp eq i64 %7, 1074036736
%9 = zext i1 %8 to i32
%10 = call i32 @DEBUG_ASSERT(i32 noundef %9)
%11 = load ptr, ptr %5, align 8
%12 = icmp ne ptr %11, null
%13 = zext i1 %12 to i32
%14 = call i32 @DEBUG_ASSERT(i32 noundef %13)
%15 = load i64, ptr %6, align 8
%16 = icmp sgt i64 %15, 0
%17 = zext i1 %16 to i32
%18 = call i32 @DEBUG_ASSERT(i32 noundef %17)
br label %19
19: ; preds = %26, %3
%20 = load i64, ptr %4, align 8
%21 = add i64 %20, 56
%22 = inttoptr i64 %21 to ptr
%23 = load volatile i64, ptr %22, align 8
%24 = and i64 %23, 1
%25 = icmp ne i64 %24, 0
br i1 %25, label %26, label %27
26: ; preds = %19
br label %19, !llvm.loop !6
27: ; preds = %19
%28 = load i64, ptr %4, align 8
%29 = load ptr, ptr %5, align 8
%30 = load i64, ptr %6, align 8
%31 = call i64 @EthernetPacketPutInternal(i64 noundef %28, ptr noundef %29, i64 noundef %30)
ret i64 %31
}
declare i32 @DEBUG_ASSERT(i32 noundef) #1
declare i64 @EthernetPacketPutInternal(i64 noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9botkl9c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @EthernetPacketPut(i64 noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
store i64 %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%7 = load i64, ptr %4, align 8
%8 = icmp eq i64 %7, 1074036736
%9 = zext i1 %8 to i32
%10 = call i32 @DEBUG_ASSERT(i32 noundef %9)
%11 = load ptr, ptr %5, align 8
%12 = icmp ne ptr %11, null
%13 = zext i1 %12 to i32
%14 = call i32 @DEBUG_ASSERT(i32 noundef %13)
%15 = load i64, ptr %6, align 8
%16 = icmp sgt i64 %15, 0
%17 = zext i1 %16 to i32
%18 = call i32 @DEBUG_ASSERT(i32 noundef %17)
br label %19
19: ; preds = %19, %3
%20 = load i64, ptr %4, align 8
%21 = add i64 %20, 56
%22 = inttoptr i64 %21 to ptr
%23 = load volatile i64, ptr %22, align 8
%24 = and i64 %23, 1
%25 = icmp ne i64 %24, 0
br i1 %25, label %19, label %26, !llvm.loop !6
26: ; preds = %19
%27 = load i64, ptr %4, align 8
%28 = load ptr, ptr %5, align 8
%29 = load i64, ptr %6, align 8
%30 = call i64 @EthernetPacketPutInternal(i64 noundef %27, ptr noundef %28, i64 noundef %29)
ret i64 %30
}
declare i32 @DEBUG_ASSERT(i32 noundef) #1
declare i64 @EthernetPacketPutInternal(i64 noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpuqsu86um.c'
source_filename = "/tmp/tmpuqsu86um.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Central_TO_NonCentral(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 i32, align 4
%8 = 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
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds double, ptr %9, i64 0
%11 = load double, ptr %10, align 8
%12 = load ptr, ptr %6, align 8
%13 = getelementptr inbounds double, ptr %12, i64 0
store double %11, ptr %13, align 8
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds double, ptr %14, i64 0
store double 0.000000e+00, ptr %15, align 8
store i32 2, ptr %8, align 4
br label %16
16: ; preds = %74, %3
%17 = load i32, ptr %8, align 4
%18 = load i32, ptr %4, align 4
%19 = icmp sle i32 %17, %18
br i1 %19, label %20, label %77
20: ; preds = %16
%21 = load ptr, ptr %6, align 8
%22 = load i32, ptr %8, align 4
%23 = sub nsw i32 %22, 1
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds double, ptr %21, i64 %24
store double 0.000000e+00, ptr %25, align 8
store i32 0, ptr %7, align 4
br label %26
26: ; preds = %55, %20
%27 = load i32, ptr %7, align 4
%28 = load i32, ptr %8, align 4
%29 = icmp slt i32 %27, %28
br i1 %29, label %30, label %58
30: ; preds = %26
%31 = load i32, ptr %8, align 4
%32 = load i32, ptr %7, align 4
%33 = call double @CombNumber(i32 noundef %31, i32 noundef %32)
%34 = load ptr, ptr %6, align 8
%35 = getelementptr inbounds double, ptr %34, i64 0
%36 = load double, ptr %35, align 8
%37 = load i32, ptr %7, align 4
%38 = call double @pow(double noundef %36, i32 noundef %37)
%39 = fmul double %33, %38
%40 = load ptr, ptr %5, align 8
%41 = load i32, ptr %8, align 4
%42 = sub nsw i32 %41, 1
%43 = load i32, ptr %7, align 4
%44 = sub nsw i32 %42, %43
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds double, ptr %40, i64 %45
%47 = load double, ptr %46, align 8
%48 = load ptr, ptr %6, align 8
%49 = load i32, ptr %8, align 4
%50 = sub nsw i32 %49, 1
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds double, ptr %48, i64 %51
%53 = load double, ptr %52, align 8
%54 = call double @llvm.fmuladd.f64(double %39, double %47, double %53)
store double %54, ptr %52, align 8
br label %55
55: ; preds = %30
%56 = load i32, ptr %7, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %7, align 4
br label %26, !llvm.loop !6
58: ; preds = %26
%59 = load i32, ptr %8, align 4
%60 = load i32, ptr %7, align 4
%61 = call double @CombNumber(i32 noundef %59, i32 noundef %60)
%62 = load ptr, ptr %6, align 8
%63 = getelementptr inbounds double, ptr %62, i64 0
%64 = load double, ptr %63, align 8
%65 = load i32, ptr %7, align 4
%66 = call double @pow(double noundef %64, i32 noundef %65)
%67 = load ptr, ptr %6, align 8
%68 = load i32, ptr %8, align 4
%69 = sub nsw i32 %68, 1
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds double, ptr %67, i64 %70
%72 = load double, ptr %71, align 8
%73 = call double @llvm.fmuladd.f64(double %61, double %66, double %72)
store double %73, ptr %71, align 8
br label %74
74: ; preds = %58
%75 = load i32, ptr %8, align 4
%76 = add nsw i32 %75, 1
store i32 %76, ptr %8, align 4
br label %16, !llvm.loop !8
77: ; preds = %16
%78 = load ptr, ptr %6, align 8
%79 = getelementptr inbounds double, ptr %78, i64 0
%80 = load double, ptr %79, align 8
%81 = load ptr, ptr %5, align 8
%82 = getelementptr inbounds double, ptr %81, i64 0
store double %80, ptr %82, align 8
ret void
}
declare double @CombNumber(i32 noundef, i32 noundef) #1
declare double @pow(double 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"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpuqsu86um.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Central_TO_NonCentral(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 i32, align 4
%8 = 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
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds double, ptr %9, i64 0
%11 = load double, ptr %10, align 8
%12 = load ptr, ptr %6, align 8
%13 = getelementptr inbounds double, ptr %12, i64 0
store double %11, ptr %13, align 8
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds double, ptr %14, i64 0
store double 0.000000e+00, ptr %15, align 8
store i32 2, ptr %8, align 4
%16 = load i32, ptr %8, align 4
%17 = load i32, ptr %4, align 4
%18 = icmp sle i32 %16, %17
br i1 %18, label %.lr.ph2, label %81
.lr.ph2: ; preds = %3
br label %19
19: ; preds = %.lr.ph2, %75
%20 = load ptr, ptr %6, align 8
%21 = load i32, ptr %8, align 4
%22 = sub nsw i32 %21, 1
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds double, ptr %20, i64 %23
store double 0.000000e+00, ptr %24, align 8
store i32 0, ptr %7, align 4
%25 = load i32, ptr %7, align 4
%26 = load i32, ptr %8, align 4
%27 = icmp slt i32 %25, %26
br i1 %27, label %.lr.ph, label %59
.lr.ph: ; preds = %19
br label %28
28: ; preds = %.lr.ph, %53
%29 = load i32, ptr %8, align 4
%30 = load i32, ptr %7, align 4
%31 = call double @CombNumber(i32 noundef %29, i32 noundef %30)
%32 = load ptr, ptr %6, align 8
%33 = getelementptr inbounds double, ptr %32, i64 0
%34 = load double, ptr %33, align 8
%35 = load i32, ptr %7, align 4
%36 = call double @pow(double noundef %34, i32 noundef %35)
%37 = fmul double %31, %36
%38 = load ptr, ptr %5, align 8
%39 = load i32, ptr %8, align 4
%40 = sub nsw i32 %39, 1
%41 = load i32, ptr %7, align 4
%42 = sub nsw i32 %40, %41
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds double, ptr %38, i64 %43
%45 = load double, ptr %44, align 8
%46 = load ptr, ptr %6, align 8
%47 = load i32, ptr %8, align 4
%48 = sub nsw i32 %47, 1
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds double, ptr %46, i64 %49
%51 = load double, ptr %50, align 8
%52 = call double @llvm.fmuladd.f64(double %37, double %45, double %51)
store double %52, ptr %50, align 8
br label %53
53: ; preds = %28
%54 = load i32, ptr %7, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %7, align 4
%56 = load i32, ptr %7, align 4
%57 = load i32, ptr %8, align 4
%58 = icmp slt i32 %56, %57
br i1 %58, label %28, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %53
br label %59
59: ; preds = %._crit_edge, %19
%60 = load i32, ptr %8, align 4
%61 = load i32, ptr %7, align 4
%62 = call double @CombNumber(i32 noundef %60, i32 noundef %61)
%63 = load ptr, ptr %6, align 8
%64 = getelementptr inbounds double, ptr %63, i64 0
%65 = load double, ptr %64, align 8
%66 = load i32, ptr %7, align 4
%67 = call double @pow(double noundef %65, i32 noundef %66)
%68 = load ptr, ptr %6, align 8
%69 = load i32, ptr %8, align 4
%70 = sub nsw i32 %69, 1
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds double, ptr %68, i64 %71
%73 = load double, ptr %72, align 8
%74 = call double @llvm.fmuladd.f64(double %62, double %67, double %73)
store double %74, ptr %72, align 8
br label %75
75: ; preds = %59
%76 = load i32, ptr %8, align 4
%77 = add nsw i32 %76, 1
store i32 %77, ptr %8, align 4
%78 = load i32, ptr %8, align 4
%79 = load i32, ptr %4, align 4
%80 = icmp sle i32 %78, %79
br i1 %80, label %19, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %75
br label %81
81: ; preds = %._crit_edge3, %3
%82 = load ptr, ptr %6, align 8
%83 = getelementptr inbounds double, ptr %82, i64 0
%84 = load double, ptr %83, align 8
%85 = load ptr, ptr %5, align 8
%86 = getelementptr inbounds double, ptr %85, i64 0
store double %84, ptr %86, align 8
ret void
}
declare double @CombNumber(i32 noundef, i32 noundef) #1
declare double @pow(double 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"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpv4_u4cdi.c'
source_filename = "/tmp/tmpv4_u4cdi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 0 for !\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_islower_0x21() #0 {
%1 = call i64 @islower(i32 noundef 33)
%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 170, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @islower(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpv4_u4cdi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 0 for !\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_islower_0x21() #0 {
%1 = call i64 @islower(i32 noundef 33)
%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 170, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @islower(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2u6hqgv4.c'
source_filename = "/tmp/tmp2u6hqgv4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @blz_max_packed_size(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%3 = load i64, ptr %2, align 8
%4 = load i64, ptr %2, align 8
%5 = udiv i64 %4, 8
%6 = add i64 %3, %5
%7 = add i64 %6, 64
ret i64 %7
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2u6hqgv4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @blz_max_packed_size(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%3 = load i64, ptr %2, align 8
%4 = load i64, ptr %2, align 8
%5 = udiv i64 %4, 8
%6 = add i64 %3, %5
%7 = add i64 %6, 64
ret i64 %7
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2ap1t92g.c'
source_filename = "/tmp/tmp2ap1t92g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SQLITE_ERROR = 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/tmp2ap1t92g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SQLITE_ERROR = 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/tmpn52u75el.c'
source_filename = "/tmp/tmpn52u75el.c"
target datalayout = "e-m:e-p270: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/tmpn52u75el.c"
target datalayout = "e-m:e-p270: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/tmp3y3hqcu_.c'
source_filename = "/tmp/tmp3y3hqcu_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINVAL = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sd_bus_get_property(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) #0 {
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
store ptr %0, ptr %9, align 8
store ptr %1, ptr %10, align 8
store ptr %2, ptr %11, align 8
store ptr %3, ptr %12, align 8
store ptr %4, ptr %13, align 8
store ptr %5, ptr %14, align 8
store ptr %6, ptr %15, align 8
store ptr %7, ptr %16, align 8
%17 = load i32, ptr @EINVAL, align 4
%18 = sub nsw i32 0, %17
ret i32 %18
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3y3hqcu_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINVAL = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sd_bus_get_property(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) #0 {
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
store ptr %0, ptr %9, align 8
store ptr %1, ptr %10, align 8
store ptr %2, ptr %11, align 8
store ptr %3, ptr %12, align 8
store ptr %4, ptr %13, align 8
store ptr %5, ptr %14, align 8
store ptr %6, ptr %15, align 8
store ptr %7, ptr %16, align 8
%17 = load i32, ptr @EINVAL, align 4
%18 = sub nsw i32 0, %17
ret i32 %18
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpkbrqr2ij.c'
source_filename = "/tmp/tmpkbrqr2ij.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkbrqr2ij.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpvhz57d6w.c'
source_filename = "/tmp/tmpvhz57d6w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @outside_dup2(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 @dup2(i32 noundef %5, i32 noundef %6)
ret i32 %7
}
declare i32 @dup2(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/tmpvhz57d6w.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @outside_dup2(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 @dup2(i32 noundef %5, i32 noundef %6)
ret i32 %7
}
declare i32 @dup2(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/tmpfywor53d.c'
source_filename = "/tmp/tmpfywor53d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"realloc of %zu failed\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @realloc_nofail(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
%6 = load ptr, ptr %4, align 8
%7 = load i64, ptr %5, align 8
%8 = call ptr @realloc(ptr noundef %6, i64 noundef %7) #3
store ptr %8, ptr %4, align 8
%9 = load ptr, ptr %4, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %11, label %13
11: ; preds = %2
%12 = load ptr, ptr %4, align 8
store ptr %12, ptr %3, align 8
br label %16
13: ; preds = %2
%14 = load i64, ptr %5, align 8
%15 = call i32 @barf(ptr noundef @.str, i64 noundef %14)
br label %16
16: ; preds = %13, %11
%17 = load ptr, ptr %3, align 8
ret ptr %17
}
; Function Attrs: allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #1
declare i32 @barf(ptr noundef, i64 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 = { allocsize(1) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-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 = { allocsize(1) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfywor53d.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"realloc of %zu failed\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @realloc_nofail(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
%6 = load ptr, ptr %4, align 8
%7 = load i64, ptr %5, align 8
%8 = call ptr @realloc(ptr noundef %6, i64 noundef %7) #3
store ptr %8, ptr %4, align 8
%9 = load ptr, ptr %4, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %11, label %13
11: ; preds = %2
%12 = load ptr, ptr %4, align 8
store ptr %12, ptr %3, align 8
br label %16
13: ; preds = %2
%14 = load i64, ptr %5, align 8
%15 = call i32 @barf(ptr noundef @.str, i64 noundef %14)
br label %16
16: ; preds = %13, %11
%17 = load ptr, ptr %3, align 8
ret ptr %17
}
; Function Attrs: allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #1
declare i32 @barf(ptr noundef, i64 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 = { allocsize(1) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-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 = { allocsize(1) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmphhdhjw5z.c'
source_filename = "/tmp/tmphhdhjw5z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"-2147483648\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"2147483647\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @ft_itoa(i32 noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca float, align 4
%8 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
%9 = call i32 @ft_init(ptr noundef %3, ptr noundef %6, ptr noundef %4, ptr noundef %5)
%10 = load i32, ptr %3, align 4
%11 = sext i32 %10 to i64
%12 = icmp eq i64 %11, -2147483648
br i1 %12, label %13, label %15
13: ; preds = %1
%14 = call ptr @ft_strdup(ptr noundef @.str)
br label %23
15: ; preds = %1
%16 = load i32, ptr %5, align 4
%17 = add nsw i32 %16, 1
%18 = sext i32 %17 to i64
%19 = mul i64 1, %18
%20 = trunc i64 %19 to i32
%21 = call i64 @malloc(i32 noundef %20)
%22 = inttoptr i64 %21 to ptr
br label %23
23: ; preds = %15, %13
%24 = phi ptr [ %14, %13 ], [ %22, %15 ]
store ptr %24, ptr %8, align 8
%25 = icmp ne ptr %24, null
br i1 %25, label %26, label %49
26: ; preds = %23
%27 = load ptr, ptr %8, align 8
%28 = icmp ne ptr %27, null
br i1 %28, label %29, label %33
29: ; preds = %26
%30 = load i32, ptr %3, align 4
%31 = sext i32 %30 to i64
%32 = icmp eq i64 %31, -2147483648
br i1 %32, label %49, label %33
33: ; preds = %29, %26
%34 = load i32, ptr %3, align 4
%35 = icmp eq i32 %34, 2147483647
br i1 %35, label %36, label %38
36: ; preds = %33
%37 = call ptr @ft_strdup(ptr noundef @.str.1)
br label %40
38: ; preds = %33
%39 = load ptr, ptr %8, align 8
br label %40
40: ; preds = %38, %36
%41 = phi ptr [ %37, %36 ], [ %39, %38 ]
store ptr %41, ptr %8, align 8
%42 = icmp ne ptr %41, null
br i1 %42, label %43, label %49
43: ; preds = %40
%44 = load ptr, ptr %8, align 8
%45 = icmp ne ptr %44, null
br i1 %45, label %46, label %51
46: ; preds = %43
%47 = load i32, ptr %3, align 4
%48 = icmp eq i32 %47, 2147483647
br i1 %48, label %49, label %51
49: ; preds = %46, %40, %29, %23
%50 = load ptr, ptr %8, align 8
store ptr %50, ptr %2, align 8
br label %92
51: ; preds = %46, %43
%52 = load ptr, ptr %8, align 8
%53 = load i32, ptr %5, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i8, ptr %52, i64 %54
store i8 0, ptr %55, align 1
%56 = load i32, ptr %6, align 4
%57 = icmp ne i32 %56, 0
br i1 %57, label %58, label %61
58: ; preds = %51
%59 = load ptr, ptr %8, align 8
%60 = getelementptr inbounds i8, ptr %59, i32 1
store ptr %60, ptr %8, align 8
store i8 45, ptr %59, align 1
br label %61
61: ; preds = %58, %51
br label %62
62: ; preds = %65, %61
%63 = load i32, ptr %4, align 4
%64 = icmp sge i32 %63, 1
br i1 %64, label %65, label %86
65: ; preds = %62
%66 = load i32, ptr %3, align 4
%67 = load i32, ptr %4, align 4
%68 = sdiv i32 %66, %67
%69 = sitofp i32 %68 to float
store float %69, ptr %7, align 4
%70 = load ptr, ptr %8, align 8
%71 = load float, ptr %7, align 4
%72 = fptosi float %71 to i32
%73 = add nsw i32 %72, 48
%74 = load i32, ptr %3, align 4
%75 = load float, ptr %7, align 4
%76 = fptosi float %75 to i32
%77 = load i32, ptr %4, align 4
%78 = mul nsw i32 %76, %77
%79 = sub nsw i32 %74, %78
%80 = call i32 @set(ptr noundef %70, ptr noundef %3, i32 noundef %73, i32 noundef %79)
%81 = load ptr, ptr %8, align 8
%82 = getelementptr inbounds i8, ptr %81, i64 1
%83 = load i32, ptr %4, align 4
%84 = sdiv i32 %83, 10
%85 = call i32 @ft_setintchar(ptr noundef %8, ptr noundef %4, ptr noundef %82, i32 noundef %84)
br label %62, !llvm.loop !6
86: ; preds = %62
%87 = load ptr, ptr %8, align 8
%88 = load i32, ptr %5, align 4
%89 = sext i32 %88 to i64
%90 = sub i64 0, %89
%91 = getelementptr inbounds i8, ptr %87, i64 %90
store ptr %91, ptr %2, align 8
br label %92
92: ; preds = %86, %49
%93 = load ptr, ptr %2, align 8
ret ptr %93
}
declare i32 @ft_init(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @ft_strdup(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @set(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @ft_setintchar(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphhdhjw5z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"-2147483648\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"2147483647\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @ft_itoa(i32 noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca float, align 4
%8 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
%9 = call i32 @ft_init(ptr noundef %3, ptr noundef %6, ptr noundef %4, ptr noundef %5)
%10 = load i32, ptr %3, align 4
%11 = sext i32 %10 to i64
%12 = icmp eq i64 %11, -2147483648
br i1 %12, label %13, label %15
13: ; preds = %1
%14 = call ptr @ft_strdup(ptr noundef @.str)
br label %23
15: ; preds = %1
%16 = load i32, ptr %5, align 4
%17 = add nsw i32 %16, 1
%18 = sext i32 %17 to i64
%19 = mul i64 1, %18
%20 = trunc i64 %19 to i32
%21 = call i64 @malloc(i32 noundef %20)
%22 = inttoptr i64 %21 to ptr
br label %23
23: ; preds = %15, %13
%24 = phi ptr [ %14, %13 ], [ %22, %15 ]
store ptr %24, ptr %8, align 8
%25 = icmp ne ptr %24, null
br i1 %25, label %26, label %49
26: ; preds = %23
%27 = load ptr, ptr %8, align 8
%28 = icmp ne ptr %27, null
br i1 %28, label %29, label %33
29: ; preds = %26
%30 = load i32, ptr %3, align 4
%31 = sext i32 %30 to i64
%32 = icmp eq i64 %31, -2147483648
br i1 %32, label %49, label %33
33: ; preds = %29, %26
%34 = load i32, ptr %3, align 4
%35 = icmp eq i32 %34, 2147483647
br i1 %35, label %36, label %38
36: ; preds = %33
%37 = call ptr @ft_strdup(ptr noundef @.str.1)
br label %40
38: ; preds = %33
%39 = load ptr, ptr %8, align 8
br label %40
40: ; preds = %38, %36
%41 = phi ptr [ %37, %36 ], [ %39, %38 ]
store ptr %41, ptr %8, align 8
%42 = icmp ne ptr %41, null
br i1 %42, label %43, label %49
43: ; preds = %40
%44 = load ptr, ptr %8, align 8
%45 = icmp ne ptr %44, null
br i1 %45, label %46, label %51
46: ; preds = %43
%47 = load i32, ptr %3, align 4
%48 = icmp eq i32 %47, 2147483647
br i1 %48, label %49, label %51
49: ; preds = %46, %40, %29, %23
%50 = load ptr, ptr %8, align 8
store ptr %50, ptr %2, align 8
br label %93
51: ; preds = %46, %43
%52 = load ptr, ptr %8, align 8
%53 = load i32, ptr %5, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i8, ptr %52, i64 %54
store i8 0, ptr %55, align 1
%56 = load i32, ptr %6, align 4
%57 = icmp ne i32 %56, 0
br i1 %57, label %58, label %61
58: ; preds = %51
%59 = load ptr, ptr %8, align 8
%60 = getelementptr inbounds i8, ptr %59, i32 1
store ptr %60, ptr %8, align 8
store i8 45, ptr %59, align 1
br label %61
61: ; preds = %58, %51
%62 = load i32, ptr %4, align 4
%63 = icmp sge i32 %62, 1
br i1 %63, label %.lr.ph, label %87
.lr.ph: ; preds = %61
br label %64
64: ; preds = %.lr.ph, %64
%65 = load i32, ptr %3, align 4
%66 = load i32, ptr %4, align 4
%67 = sdiv i32 %65, %66
%68 = sitofp i32 %67 to float
store float %68, ptr %7, align 4
%69 = load ptr, ptr %8, align 8
%70 = load float, ptr %7, align 4
%71 = fptosi float %70 to i32
%72 = add nsw i32 %71, 48
%73 = load i32, ptr %3, align 4
%74 = load float, ptr %7, align 4
%75 = fptosi float %74 to i32
%76 = load i32, ptr %4, align 4
%77 = mul nsw i32 %75, %76
%78 = sub nsw i32 %73, %77
%79 = call i32 @set(ptr noundef %69, ptr noundef %3, i32 noundef %72, i32 noundef %78)
%80 = load ptr, ptr %8, align 8
%81 = getelementptr inbounds i8, ptr %80, i64 1
%82 = load i32, ptr %4, align 4
%83 = sdiv i32 %82, 10
%84 = call i32 @ft_setintchar(ptr noundef %8, ptr noundef %4, ptr noundef %81, i32 noundef %83)
%85 = load i32, ptr %4, align 4
%86 = icmp sge i32 %85, 1
br i1 %86, label %64, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %64
br label %87
87: ; preds = %._crit_edge, %61
%88 = load ptr, ptr %8, align 8
%89 = load i32, ptr %5, align 4
%90 = sext i32 %89 to i64
%91 = sub i64 0, %90
%92 = getelementptr inbounds i8, ptr %88, i64 %91
store ptr %92, ptr %2, align 8
br label %93
93: ; preds = %87, %49
%94 = load ptr, ptr %2, align 8
ret ptr %94
}
declare i32 @ft_init(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @ft_strdup(ptr noundef) #1
declare i64 @malloc(i32 noundef) #1
declare i32 @set(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @ft_setintchar(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpylqa9wn6.c'
source_filename = "/tmp/tmpylqa9wn6.c"
target datalayout = "e-m:e-p270: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 [7 x i8] c"trc_3\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @trc_3() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpylqa9wn6.c"
target datalayout = "e-m:e-p270: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 [7 x i8] c"trc_3\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @trc_3() #0 {
%1 = load i32, ptr @stderr, align 4
%2 = call i32 @fprintf(i32 noundef %1, ptr noundef @.str)
ret void
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_24sywp9.c'
source_filename = "/tmp/tmp_24sywp9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"Hello World\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"Hello Dave\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 ptr, align 8
store i32 0, ptr %1, align 4
store ptr @.str, ptr %2, align 8
store ptr @.str.1, ptr %3, align 8
%4 = load ptr, ptr %2, align 8
%5 = load ptr, ptr %3, align 8
%6 = call i32 @memcmp(ptr noundef %4, ptr noundef %5, i32 noundef 9)
%7 = icmp eq i32 %6, 0
%8 = xor i1 %7, true
%9 = zext i1 %8 to i32
ret i32 %9
}
declare i32 @memcmp(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/tmp_24sywp9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"Hello World\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"Hello Dave\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 ptr, align 8
store i32 0, ptr %1, align 4
store ptr @.str, ptr %2, align 8
store ptr @.str.1, ptr %3, align 8
%4 = load ptr, ptr %2, align 8
%5 = load ptr, ptr %3, align 8
%6 = call i32 @memcmp(ptr noundef %4, ptr noundef %5, i32 noundef 9)
%7 = icmp eq i32 %6, 0
%8 = xor i1 %7, true
%9 = zext i1 %8 to i32
ret i32 %9
}
declare i32 @memcmp(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/tmp4_3s7h72.c'
source_filename = "/tmp/tmp4_3s7h72.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dvb_frontend_is_busy(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 %4, align 4
%5 = load ptr, ptr %2, align 8
%6 = call i32 @dvb_frontend_open(ptr noundef %5, i32 noundef 1)
store i32 %6, ptr %3, align 4
%7 = icmp slt i32 %6, 0
br i1 %7, label %8, label %9
8: ; preds = %1
store i32 1, ptr %4, align 4
br label %12
9: ; preds = %1
%10 = load ptr, ptr %2, align 8
%11 = call i32 @dvb_frontend_release(ptr noundef %10, i32 noundef 1)
br label %12
12: ; preds = %9, %8
%13 = load i32, ptr %4, align 4
ret i32 %13
}
declare i32 @dvb_frontend_open(ptr noundef, i32 noundef) #1
declare i32 @dvb_frontend_release(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/tmp4_3s7h72.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dvb_frontend_is_busy(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 %4, align 4
%5 = load ptr, ptr %2, align 8
%6 = call i32 @dvb_frontend_open(ptr noundef %5, i32 noundef 1)
store i32 %6, ptr %3, align 4
%7 = icmp slt i32 %6, 0
br i1 %7, label %8, label %9
8: ; preds = %1
store i32 1, ptr %4, align 4
br label %12
9: ; preds = %1
%10 = load ptr, ptr %2, align 8
%11 = call i32 @dvb_frontend_release(ptr noundef %10, i32 noundef 1)
br label %12
12: ; preds = %9, %8
%13 = load i32, ptr %4, align 4
ret i32 %13
}
declare i32 @dvb_frontend_open(ptr noundef, i32 noundef) #1
declare i32 @dvb_frontend_release(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/tmpy_0m34ja.c'
source_filename = "/tmp/tmpy_0m34ja.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong willreturn memory(none) uwtable
define dso_local float @fmaxf(float noundef %0, float noundef %1) #0 {
%3 = alloca float, align 4
%4 = alloca float, align 4
store float %0, ptr %3, align 4
store float %1, ptr %4, align 4
%5 = call float (...) @__infer_nondet_float()
ret float %5
}
declare float @__infer_nondet_float(...) #1
attributes #0 = { noinline nounwind sspstrong willreturn memory(none) uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpy_0m34ja.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong willreturn memory(none) uwtable
define dso_local float @fmaxf(float noundef %0, float noundef %1) #0 {
%3 = alloca float, align 4
%4 = alloca float, align 4
store float %0, ptr %3, align 4
store float %1, ptr %4, align 4
%5 = call float (...) @__infer_nondet_float()
ret float %5
}
declare float @__infer_nondet_float(...) #1
attributes #0 = { noinline nounwind sspstrong willreturn memory(none) uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmppd4w0x1n.c'
source_filename = "/tmp/tmppd4w0x1n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @col(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %4, align 8
%6 = call ptr @nonsp(ptr noundef %5)
store ptr %6, ptr %4, align 8
br label %7
7: ; preds = %10, %2
%8 = load i32, ptr %3, align 4
%9 = icmp sgt i32 %8, 0
br i1 %9, label %10, label %16
10: ; preds = %7
%11 = load ptr, ptr %4, align 8
%12 = call ptr @getsp(ptr noundef %11)
%13 = call ptr @nonsp(ptr noundef %12)
store ptr %13, ptr %4, align 8
%14 = load i32, ptr %3, align 4
%15 = add nsw i32 %14, -1
store i32 %15, ptr %3, align 4
br label %7, !llvm.loop !6
16: ; preds = %7
%17 = load ptr, ptr %4, align 8
ret ptr %17
}
declare ptr @nonsp(ptr noundef) #1
declare ptr @getsp(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/tmppd4w0x1n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @col(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %4, align 8
%6 = call ptr @nonsp(ptr noundef %5)
store ptr %6, ptr %4, align 8
%7 = load i32, ptr %3, align 4
%8 = icmp sgt i32 %7, 0
br i1 %8, label %.lr.ph, label %17
.lr.ph: ; preds = %2
br label %9
9: ; preds = %.lr.ph, %9
%10 = load ptr, ptr %4, align 8
%11 = call ptr @getsp(ptr noundef %10)
%12 = call ptr @nonsp(ptr noundef %11)
store ptr %12, ptr %4, align 8
%13 = load i32, ptr %3, align 4
%14 = add nsw i32 %13, -1
store i32 %14, ptr %3, align 4
%15 = load i32, ptr %3, align 4
%16 = icmp sgt i32 %15, 0
br i1 %16, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %9
br label %17
17: ; preds = %._crit_edge, %2
%18 = load ptr, ptr %4, align 8
ret ptr %18
}
declare ptr @nonsp(ptr noundef) #1
declare ptr @getsp(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/tmpqzf9q0en.c'
source_filename = "/tmp/tmpqzf9q0en.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"result is %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 @test(i32 noundef 1, i32 noundef 2)
store i32 %3, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = call i32 @printf(ptr noundef @.str, i32 noundef %4)
ret i32 0
}
declare i32 @test(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqzf9q0en.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"result is %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 @test(i32 noundef 1, i32 noundef 2)
store i32 %3, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = call i32 @printf(ptr noundef @.str, i32 noundef %4)
ret i32 0
}
declare i32 @test(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpaplpeyzc.c'
source_filename = "/tmp/tmpaplpeyzc.c"
target datalayout = "e-m:e-p270: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/tmpaplpeyzc.c"
target datalayout = "e-m:e-p270: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/tmpb7fubkms.c'
source_filename = "/tmp/tmpb7fubkms.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@BUFSIZ = 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/tmpb7fubkms.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@BUFSIZ = 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/tmpdc_kk_mu.c'
source_filename = "/tmp/tmpdc_kk_mu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@TS_F_TS_RESP_SET_GENTIME_WITH_PRECISION = dso_local global i32 0, align 4
@TS_MAX_CLOCK_PRECISION_DIGITS = dso_local global i32 0, align 4
@TS_R_COULD_NOT_SET_TIME = 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/tmpdc_kk_mu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@TS_F_TS_RESP_SET_GENTIME_WITH_PRECISION = dso_local global i32 0, align 4
@TS_MAX_CLOCK_PRECISION_DIGITS = dso_local global i32 0, align 4
@TS_R_COULD_NOT_SET_TIME = 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/tmpmj8due4x.c'
source_filename = "/tmp/tmpmj8due4x.c"
target datalayout = "e-m:e-p270: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/tmpmj8due4x.c"
target datalayout = "e-m:e-p270: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/tmpqprzbt8p.c'
source_filename = "/tmp/tmpqprzbt8p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @EMACPHYConfigSet(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 %4, align 4
%6 = load i32, ptr %3, align 4
%7 = add nsw i32 %6, 4036
%8 = sext i32 %7 to i64
%9 = inttoptr i64 %8 to ptr
store volatile i32 %5, ptr %9, align 4
%10 = load i32, ptr %4, align 4
%11 = and i32 %10, -1073741824
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %22
13: ; preds = %2
%14 = call i32 @SysCtlPeripheralReset(i32 noundef -268423168)
br label %15
15: ; preds = %19, %13
%16 = call i32 @SysCtlPeripheralReady(i32 noundef -268423168)
%17 = icmp ne i32 %16, 0
%18 = xor i1 %17, true
br i1 %18, label %19, label %20
19: ; preds = %15
br label %15, !llvm.loop !6
20: ; preds = %15
%21 = call i32 @SysCtlDelay(i32 noundef 10000)
br label %22
22: ; preds = %20, %2
%23 = load i32, ptr %4, align 4
%24 = and i32 %23, -1073741824
%25 = icmp eq i32 %24, -1073741824
br i1 %25, label %26, label %29
26: ; preds = %22
%27 = load volatile i32, ptr inttoptr (i64 1074712520 to ptr), align 4
%28 = or i32 %27, 65536
store volatile i32 %28, ptr inttoptr (i64 1074712520 to ptr), align 4
br label %32
29: ; preds = %22
%30 = load volatile i32, ptr inttoptr (i64 1074712520 to ptr), align 4
%31 = and i32 %30, -65537
store volatile i32 %31, ptr inttoptr (i64 1074712520 to ptr), align 4
br label %32
32: ; preds = %29, %26
%33 = call i32 @EMACReset(i32 noundef 1074708480)
%34 = call i32 @SysCtlDelay(i32 noundef 1000)
ret void
}
declare i32 @SysCtlPeripheralReset(i32 noundef) #1
declare i32 @SysCtlPeripheralReady(i32 noundef) #1
declare i32 @SysCtlDelay(i32 noundef) #1
declare i32 @EMACReset(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpqprzbt8p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @EMACPHYConfigSet(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 %4, align 4
%6 = load i32, ptr %3, align 4
%7 = add nsw i32 %6, 4036
%8 = sext i32 %7 to i64
%9 = inttoptr i64 %8 to ptr
store volatile i32 %5, ptr %9, align 4
%10 = load i32, ptr %4, align 4
%11 = and i32 %10, -1073741824
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %21
13: ; preds = %2
%14 = call i32 @SysCtlPeripheralReset(i32 noundef -268423168)
br label %15
15: ; preds = %15, %13
%16 = call i32 @SysCtlPeripheralReady(i32 noundef -268423168)
%17 = icmp ne i32 %16, 0
%18 = xor i1 %17, true
br i1 %18, label %15, label %19, !llvm.loop !6
19: ; preds = %15
%20 = call i32 @SysCtlDelay(i32 noundef 10000)
br label %21
21: ; preds = %19, %2
%22 = load i32, ptr %4, align 4
%23 = and i32 %22, -1073741824
%24 = icmp eq i32 %23, -1073741824
br i1 %24, label %25, label %28
25: ; preds = %21
%26 = load volatile i32, ptr inttoptr (i64 1074712520 to ptr), align 4
%27 = or i32 %26, 65536
store volatile i32 %27, ptr inttoptr (i64 1074712520 to ptr), align 4
br label %31
28: ; preds = %21
%29 = load volatile i32, ptr inttoptr (i64 1074712520 to ptr), align 4
%30 = and i32 %29, -65537
store volatile i32 %30, ptr inttoptr (i64 1074712520 to ptr), align 4
br label %31
31: ; preds = %28, %25
%32 = call i32 @EMACReset(i32 noundef 1074708480)
%33 = call i32 @SysCtlDelay(i32 noundef 1000)
ret void
}
declare i32 @SysCtlPeripheralReset(i32 noundef) #1
declare i32 @SysCtlPeripheralReady(i32 noundef) #1
declare i32 @SysCtlDelay(i32 noundef) #1
declare i32 @EMACReset(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpu75c7cx4.c'
source_filename = "/tmp/tmpu75c7cx4.c"
target datalayout = "e-m:e-p270: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/tmpu75c7cx4.c"
target datalayout = "e-m:e-p270: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/tmpenllc238.c'
source_filename = "/tmp/tmpenllc238.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gerarNumeros(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%10 = call i32 @time(ptr noundef null)
%11 = call i32 @srand(i32 noundef %10)
store i32 0, ptr %9, align 4
br label %12
12: ; preds = %26, %4
%13 = load i32, ptr %9, align 4
%14 = load i32, ptr %8, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %16, label %29
16: ; preds = %12
%17 = load i32, ptr %6, align 4
%18 = call i32 (...) @rand()
%19 = load i32, ptr %7, align 4
%20 = srem i32 %18, %19
%21 = add nsw i32 %17, %20
%22 = load ptr, ptr %5, align 8
%23 = load i32, ptr %9, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i32, ptr %22, i64 %24
store i32 %21, ptr %25, align 4
br label %26
26: ; preds = %16
%27 = load i32, ptr %9, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %9, align 4
br label %12, !llvm.loop !6
29: ; preds = %12
ret void
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpenllc238.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gerarNumeros(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%10 = call i32 @time(ptr noundef null)
%11 = call i32 @srand(i32 noundef %10)
store i32 0, ptr %9, align 4
%12 = load i32, ptr %9, align 4
%13 = load i32, ptr %8, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %.lr.ph, label %31
.lr.ph: ; preds = %4
br label %15
15: ; preds = %.lr.ph, %25
%16 = load i32, ptr %6, align 4
%17 = call i32 (...) @rand()
%18 = load i32, ptr %7, align 4
%19 = srem i32 %17, %18
%20 = add nsw i32 %16, %19
%21 = load ptr, ptr %5, align 8
%22 = load i32, ptr %9, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i32, ptr %21, i64 %23
store i32 %20, ptr %24, align 4
br label %25
25: ; preds = %15
%26 = load i32, ptr %9, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %9, align 4
%28 = load i32, ptr %9, align 4
%29 = load i32, ptr %8, align 4
%30 = icmp slt i32 %28, %29
br i1 %30, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %25
br label %31
31: ; preds = %._crit_edge, %4
ret void
}
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @rand(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpf_xj39vn.c'
source_filename = "/tmp/tmpf_xj39vn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
br label %3
3: ; preds = %20, %0
%4 = load i32, ptr %2, align 4
%5 = icmp sle i32 %4, 100
br i1 %5, label %6, label %23
6: ; preds = %3
%7 = load i32, ptr %2, align 4
%8 = icmp slt i32 %7, 50
br i1 %8, label %12, label %9
9: ; preds = %6
%10 = load i32, ptr %2, align 4
%11 = icmp sgt i32 %10, 70
br i1 %11, label %12, label %19
12: ; preds = %9, %6
%13 = load i32, ptr %2, align 4
%14 = srem i32 %13, 2
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %19
16: ; preds = %12
%17 = load i32, ptr %2, align 4
%18 = call i32 @printf(ptr noundef @.str, i32 noundef %17)
br label %19
19: ; preds = %16, %12, %9
br label %20
20: ; preds = %19
%21 = load i32, ptr %2, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %2, align 4
br label %3, !llvm.loop !6
23: ; preds = %3
%24 = load i32, ptr %1, align 4
ret i32 %24
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpf_xj39vn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp sle i32 %3, 100
br i1 %4, label %.lr.ph, label %24
.lr.ph: ; preds = %0
br label %5
5: ; preds = %.lr.ph, %19
%6 = load i32, ptr %2, align 4
%7 = icmp slt i32 %6, 50
br i1 %7, label %11, label %8
8: ; preds = %5
%9 = load i32, ptr %2, align 4
%10 = icmp sgt i32 %9, 70
br i1 %10, label %11, label %18
11: ; preds = %8, %5
%12 = load i32, ptr %2, align 4
%13 = srem i32 %12, 2
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %18
15: ; preds = %11
%16 = load i32, ptr %2, align 4
%17 = call i32 @printf(ptr noundef @.str, i32 noundef %16)
br label %18
18: ; preds = %15, %11, %8
br label %19
19: ; preds = %18
%20 = load i32, ptr %2, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %2, align 4
%22 = load i32, ptr %2, align 4
%23 = icmp sle i32 %22, 100
br i1 %23, label %5, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %24
24: ; preds = %._crit_edge, %0
%25 = load i32, ptr %1, align 4
ret i32 %25
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmppder5qnf.c'
source_filename = "/tmp/tmppder5qnf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EVP_PKEY_SCRYPT = 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/tmppder5qnf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EVP_PKEY_SCRYPT = 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/tmpmn4taoo2.c'
source_filename = "/tmp/tmpmn4taoo2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%d %d %lf\00", align 1
@.str.1 = private unnamed_addr constant [31 x i8] c"NUMBER = %d\0ASALARY = U$ %.2lf\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 double, align 8
%5 = alloca double, align 8
store i32 0, ptr %1, align 4
%6 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %4)
%7 = load i32, ptr %3, align 4
%8 = sitofp i32 %7 to double
%9 = load double, ptr %4, align 8
%10 = fmul double %8, %9
store double %10, ptr %5, align 8
%11 = load i32, ptr %2, align 4
%12 = load double, ptr %5, align 8
%13 = call i32 @printf(ptr noundef @.str.1, i32 noundef %11, double noundef %12)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmn4taoo2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%d %d %lf\00", align 1
@.str.1 = private unnamed_addr constant [31 x i8] c"NUMBER = %d\0ASALARY = U$ %.2lf\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 double, align 8
%5 = alloca double, align 8
store i32 0, ptr %1, align 4
%6 = call i32 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %4)
%7 = load i32, ptr %3, align 4
%8 = sitofp i32 %7 to double
%9 = load double, ptr %4, align 8
%10 = fmul double %8, %9
store double %10, ptr %5, align 8
%11 = load i32, ptr %2, align 4
%12 = load double, ptr %5, align 8
%13 = call i32 @printf(ptr noundef @.str.1, i32 noundef %11, double noundef %12)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef, double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpwc7xu1hi.c'
source_filename = "/tmp/tmpwc7xu1hi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local zeroext i8 @TriSts_lc898122_sharp() #0 {
%1 = alloca i8, align 1
%2 = alloca i8, align 1
store i8 0, ptr %1, align 1
%3 = call i32 @RegReadA_lc898122_sharp(i32 noundef 297, ptr noundef %2)
%4 = load i8, ptr %2, align 1
%5 = zext i8 %4 to i32
%6 = and i32 %5, 3
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %18
8: ; preds = %0
%9 = call i32 @RegReadA_lc898122_sharp(i32 noundef 500, ptr noundef %2)
%10 = load i8, ptr %2, align 1
%11 = zext i8 %10 to i32
%12 = and i32 %11, 17
%13 = trunc i32 %12 to i8
store i8 %13, ptr %1, align 1
%14 = load i8, ptr %1, align 1
%15 = zext i8 %14 to i32
%16 = or i32 %15, 128
%17 = trunc i32 %16 to i8
store i8 %17, ptr %1, align 1
br label %18
18: ; preds = %8, %0
%19 = load i8, ptr %1, align 1
ret i8 %19
}
declare i32 @RegReadA_lc898122_sharp(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/tmpwc7xu1hi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local zeroext i8 @TriSts_lc898122_sharp() #0 {
%1 = alloca i8, align 1
%2 = alloca i8, align 1
store i8 0, ptr %1, align 1
%3 = call i32 @RegReadA_lc898122_sharp(i32 noundef 297, ptr noundef %2)
%4 = load i8, ptr %2, align 1
%5 = zext i8 %4 to i32
%6 = and i32 %5, 3
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %18
8: ; preds = %0
%9 = call i32 @RegReadA_lc898122_sharp(i32 noundef 500, ptr noundef %2)
%10 = load i8, ptr %2, align 1
%11 = zext i8 %10 to i32
%12 = and i32 %11, 17
%13 = trunc i32 %12 to i8
store i8 %13, ptr %1, align 1
%14 = load i8, ptr %1, align 1
%15 = zext i8 %14 to i32
%16 = or i32 %15, 128
%17 = trunc i32 %16 to i8
store i8 %17, ptr %1, align 1
br label %18
18: ; preds = %8, %0
%19 = load i8, ptr %1, align 1
ret i8 %19
}
declare i32 @RegReadA_lc898122_sharp(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/tmpj7nf6s18.c'
source_filename = "/tmp/tmpj7nf6s18.c"
target datalayout = "e-m:e-p270: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/tmpj7nf6s18.c"
target datalayout = "e-m:e-p270: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/tmppxs0v2d3.c'
source_filename = "/tmp/tmppxs0v2d3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @lineFileChopNextTab(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
br label %11
11: ; preds = %31, %21, %3
%12 = load ptr, ptr %5, align 8
%13 = call i64 @lineFileNext(ptr noundef %12, ptr noundef %10, ptr noundef %8)
%14 = icmp ne i64 %13, 0
br i1 %14, label %15, label %32
15: ; preds = %11
%16 = load ptr, ptr %10, align 8
%17 = getelementptr inbounds i8, ptr %16, i64 0
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = icmp eq i32 %19, 35
br i1 %20, label %21, label %22
21: ; preds = %15
br label %11, !llvm.loop !6
22: ; preds = %15
%23 = load ptr, ptr %10, align 8
%24 = load ptr, ptr %6, align 8
%25 = load i32, ptr %7, align 4
%26 = call i32 @chopByChar(ptr noundef %23, i8 noundef signext 9, ptr noundef %24, i32 noundef %25)
store i32 %26, ptr %9, align 4
%27 = load i32, ptr %9, align 4
%28 = icmp ne i32 %27, 0
br i1 %28, label %29, label %31
29: ; preds = %22
%30 = load i32, ptr %9, align 4
store i32 %30, ptr %4, align 4
br label %33
31: ; preds = %22
br label %11, !llvm.loop !6
32: ; preds = %11
store i32 0, ptr %4, align 4
br label %33
33: ; preds = %32, %29
%34 = load i32, ptr %4, align 4
ret i32 %34
}
declare i64 @lineFileNext(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @chopByChar(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/tmppxs0v2d3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @lineFileChopNextTab(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%11 = load ptr, ptr %5, align 8
%12 = call i64 @lineFileNext(ptr noundef %11, ptr noundef %10, ptr noundef %8)
%13 = icmp ne i64 %12, 0
br i1 %13, label %.lr.ph, label %34
.lr.ph: ; preds = %3
br label %14
14: ; preds = %.lr.ph, %.backedge
%15 = load ptr, ptr %10, align 8
%16 = getelementptr inbounds i8, ptr %15, i64 0
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = icmp eq i32 %18, 35
br i1 %19, label %20, label %24
20: ; preds = %14
br label %.backedge
.backedge: ; preds = %20, %33
%21 = load ptr, ptr %5, align 8
%22 = call i64 @lineFileNext(ptr noundef %21, ptr noundef %10, ptr noundef %8)
%23 = icmp ne i64 %22, 0
br i1 %23, label %14, label %._crit_edge, !llvm.loop !6
24: ; preds = %14
%25 = load ptr, ptr %10, align 8
%26 = load ptr, ptr %6, align 8
%27 = load i32, ptr %7, align 4
%28 = call i32 @chopByChar(ptr noundef %25, i8 noundef signext 9, ptr noundef %26, i32 noundef %27)
store i32 %28, ptr %9, align 4
%29 = load i32, ptr %9, align 4
%30 = icmp ne i32 %29, 0
br i1 %30, label %31, label %33
31: ; preds = %24
%32 = load i32, ptr %9, align 4
store i32 %32, ptr %4, align 4
br label %35
33: ; preds = %24
br label %.backedge
._crit_edge: ; preds = %.backedge
br label %34
34: ; preds = %._crit_edge, %3
store i32 0, ptr %4, align 4
br label %35
35: ; preds = %34, %31
%36 = load i32, ptr %4, align 4
ret i32 %36
}
declare i64 @lineFileNext(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @chopByChar(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/tmpakk0w5s4.c'
source_filename = "/tmp/tmpakk0w5s4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Not enough arguments.\0A\00", align 1
@.str.1 = private unnamed_addr constant [43 x i8] c"Total time: %lu second(s).\0AStarted at: %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"Ended at: %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [8 x i8] c"Ring!\07\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 i64, 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 %4, align 4
%9 = icmp slt i32 %8, 2
br i1 %9, label %10, label %17
10: ; preds = %2
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 0
%14 = load ptr, ptr %13, align 8
%15 = call i32 @usage(ptr noundef %14)
%16 = call i32 @exit(i32 noundef 1) #3
unreachable
17: ; preds = %2
store i64 0, ptr %6, align 8
store i32 1, ptr %7, align 4
br label %18
18: ; preds = %31, %17
%19 = load i32, ptr %7, align 4
%20 = load i32, ptr %4, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %22, label %34
22: ; preds = %18
%23 = load ptr, ptr %5, align 8
%24 = load i32, ptr %7, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds ptr, ptr %23, i64 %25
%27 = load ptr, ptr %26, align 8
%28 = call i64 @get_seconds(ptr noundef %27)
%29 = load i64, ptr %6, align 8
%30 = add i64 %29, %28
store i64 %30, ptr %6, align 8
br label %31
31: ; preds = %22
%32 = load i32, ptr %7, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %7, align 4
br label %18, !llvm.loop !6
34: ; preds = %18
%35 = load i64, ptr %6, align 8
%36 = call i32 @time(ptr noundef null)
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i64 noundef %35, i32 noundef %36)
%38 = load i64, ptr %6, align 8
%39 = trunc i64 %38 to i32
%40 = call i32 @sleep(i32 noundef %39)
%41 = call i32 @time(ptr noundef null)
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %41)
br label %43
43: ; preds = %34, %43
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%45 = call i32 @sleep(i32 noundef 1)
br label %43
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @usage(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @get_seconds(ptr noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @sleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmpakk0w5s4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Not enough arguments.\0A\00", align 1
@.str.1 = private unnamed_addr constant [43 x i8] c"Total time: %lu second(s).\0AStarted at: %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"Ended at: %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [8 x i8] c"Ring!\07\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 i64, 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 %4, align 4
%9 = icmp slt i32 %8, 2
br i1 %9, label %10, label %17
10: ; preds = %2
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 0
%14 = load ptr, ptr %13, align 8
%15 = call i32 @usage(ptr noundef %14)
%16 = call i32 @exit(i32 noundef 1) #3
unreachable
17: ; preds = %2
store i64 0, ptr %6, align 8
store i32 1, ptr %7, align 4
%18 = load i32, ptr %7, align 4
%19 = load i32, ptr %4, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %.lr.ph, label %36
.lr.ph: ; preds = %17
br label %21
21: ; preds = %.lr.ph, %30
%22 = load ptr, ptr %5, align 8
%23 = load i32, ptr %7, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds ptr, ptr %22, i64 %24
%26 = load ptr, ptr %25, align 8
%27 = call i64 @get_seconds(ptr noundef %26)
%28 = load i64, ptr %6, align 8
%29 = add i64 %28, %27
store i64 %29, ptr %6, align 8
br label %30
30: ; preds = %21
%31 = load i32, ptr %7, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %7, align 4
%33 = load i32, ptr %7, align 4
%34 = load i32, ptr %4, align 4
%35 = icmp slt i32 %33, %34
br i1 %35, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %30
br label %36
36: ; preds = %._crit_edge, %17
%37 = load i64, ptr %6, align 8
%38 = call i32 @time(ptr noundef null)
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i64 noundef %37, i32 noundef %38)
%40 = load i64, ptr %6, align 8
%41 = trunc i64 %40 to i32
%42 = call i32 @sleep(i32 noundef %41)
%43 = call i32 @time(ptr noundef null)
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %43)
br label %45
45: ; preds = %45, %36
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%47 = call i32 @sleep(i32 noundef 1)
br label %45
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @usage(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @get_seconds(ptr noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @sleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmphdsd80uk.c'
source_filename = "/tmp/tmphdsd80uk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_FAILURE = dso_local global i32 0, align 4
@O_RDONLY = 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/tmphdsd80uk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_FAILURE = dso_local global i32 0, align 4
@O_RDONLY = 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/tmp514w549b.c'
source_filename = "/tmp/tmp514w549b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [370 x i8] c"Mugwump Hunt\0A-----------\0AYou are hunting Mugwumps using a state of the art radar system. There are\0A%d mugwumps hidden hiding in a %d,%d grid. After every guess you will be\0Atold how close the remaining Mugwumps are to your guess.\0AInput the your guess by typing the x and y location seperated by a comma\0A(IE \225,5\22 or \223,10\22)\0A(Mugwumps only hide whole number locations.)\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @intro() #0 {
%1 = call i32 @printf(ptr noundef @.str, i32 noundef 5, i32 noundef 20, i32 noundef 20)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp514w549b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [370 x i8] c"Mugwump Hunt\0A-----------\0AYou are hunting Mugwumps using a state of the art radar system. There are\0A%d mugwumps hidden hiding in a %d,%d grid. After every guess you will be\0Atold how close the remaining Mugwumps are to your guess.\0AInput the your guess by typing the x and y location seperated by a comma\0A(IE \225,5\22 or \223,10\22)\0A(Mugwumps only hide whole number locations.)\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @intro() #0 {
%1 = call i32 @printf(ptr noundef @.str, i32 noundef 5, i32 noundef 20, i32 noundef 20)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7uw1m_va.c'
source_filename = "/tmp/tmp7uw1m_va.c"
target datalayout = "e-m:e-p270: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/tmp7uw1m_va.c"
target datalayout = "e-m:e-p270: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/tmpuo1q4og0.c'
source_filename = "/tmp/tmpuo1q4og0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%d ,\00", align 1
@.str.2 = private unnamed_addr constant [56 x i8] c"Line %d: largest pair is %d and %d, with a total of %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca [6 x [10 x i32]], align 16
%8 = alloca [6 x [4 x i32]], align 16
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memset.p0.i64(ptr align 16 %8, i8 0, i64 96, i1 false)
store i32 0, ptr %11, align 4
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 1
%14 = load ptr, ptr %13, align 8
%15 = call ptr @fopen(ptr noundef %14, ptr noundef @.str)
store ptr %15, ptr %6, align 8
store i32 0, ptr %9, align 4
br label %16
16: ; preds = %65, %2
%17 = load i32, ptr %9, align 4
%18 = icmp slt i32 %17, 6
br i1 %18, label %19, label %68
19: ; preds = %16
store i32 0, ptr %10, align 4
br label %20
20: ; preds = %32, %19
%21 = load i32, ptr %10, align 4
%22 = icmp slt i32 %21, 10
br i1 %22, label %23, label %35
23: ; preds = %20
%24 = load ptr, ptr %6, align 8
%25 = load i32, ptr %9, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [6 x [10 x i32]], ptr %7, i64 0, i64 %26
%28 = load i32, ptr %10, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [10 x i32], ptr %27, i64 0, i64 %29
%31 = call i32 @fscanf(ptr noundef %24, ptr noundef @.str.1, ptr noundef %30)
br label %32
32: ; preds = %23
%33 = load i32, ptr %10, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %10, align 4
br label %20, !llvm.loop !6
35: ; preds = %20
%36 = load i32, ptr %9, align 4
%37 = load i32, ptr %9, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [6 x [4 x i32]], ptr %8, i64 0, i64 %38
%40 = getelementptr inbounds [4 x i32], ptr %39, i64 0, i64 3
store i32 %36, ptr %40, align 4
%41 = load ptr, ptr %6, align 8
%42 = load i32, ptr %9, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds [6 x [10 x i32]], ptr %7, i64 0, i64 %43
%45 = getelementptr inbounds [10 x i32], ptr %44, i64 0, i64 0
%46 = load i32, ptr %9, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [6 x [4 x i32]], ptr %8, i64 0, i64 %47
%49 = getelementptr inbounds [4 x i32], ptr %48, i64 0, i64 0
%50 = call i32 @findLineLargestPairSum(ptr noundef %41, ptr noundef %45, ptr noundef %49)
%51 = load i32, ptr %11, align 4
%52 = load i32, ptr %9, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [6 x [4 x i32]], ptr %8, i64 0, i64 %53
%55 = getelementptr inbounds [4 x i32], ptr %54, i64 0, i64 2
%56 = load i32, ptr %55, align 8
%57 = icmp slt i32 %51, %56
br i1 %57, label %58, label %64
58: ; preds = %35
%59 = load i32, ptr %9, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [6 x [4 x i32]], ptr %8, i64 0, i64 %60
%62 = getelementptr inbounds [4 x i32], ptr %61, i64 0, i64 2
%63 = load i32, ptr %62, align 8
store i32 %63, ptr %11, align 4
br label %64
64: ; preds = %58, %35
br label %65
65: ; preds = %64
%66 = load i32, ptr %9, align 4
%67 = add nsw i32 %66, 1
store i32 %67, ptr %9, align 4
br label %16, !llvm.loop !8
68: ; preds = %16
store i32 0, ptr %9, align 4
br label %69
69: ; preds = %103, %68
%70 = load i32, ptr %9, align 4
%71 = icmp slt i32 %70, 6
br i1 %71, label %72, label %106
72: ; preds = %69
%73 = load i32, ptr %11, align 4
%74 = load i32, ptr %9, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds [6 x [4 x i32]], ptr %8, i64 0, i64 %75
%77 = getelementptr inbounds [4 x i32], ptr %76, i64 0, i64 2
%78 = load i32, ptr %77, align 8
%79 = icmp eq i32 %73, %78
br i1 %79, label %80, label %102
80: ; preds = %72
%81 = load i32, ptr %9, align 4
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds [6 x [4 x i32]], ptr %8, i64 0, i64 %82
%84 = getelementptr inbounds [4 x i32], ptr %83, i64 0, i64 3
%85 = load i32, ptr %84, align 4
%86 = load i32, ptr %9, align 4
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds [6 x [4 x i32]], ptr %8, i64 0, i64 %87
%89 = getelementptr inbounds [4 x i32], ptr %88, i64 0, i64 0
%90 = load i32, ptr %89, align 16
%91 = load i32, ptr %9, align 4
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds [6 x [4 x i32]], ptr %8, i64 0, i64 %92
%94 = getelementptr inbounds [4 x i32], ptr %93, i64 0, i64 1
%95 = load i32, ptr %94, align 4
%96 = load i32, ptr %9, align 4
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds [6 x [4 x i32]], ptr %8, i64 0, i64 %97
%99 = getelementptr inbounds [4 x i32], ptr %98, i64 0, i64 2
%100 = load i32, ptr %99, align 8
%101 = call i32 @printf(ptr noundef @.str.2, i32 noundef %85, i32 noundef %90, i32 noundef %95, i32 noundef %100)
br label %102
102: ; preds = %80, %72
br label %103
103: ; preds = %102
%104 = load i32, ptr %9, align 4
%105 = add nsw i32 %104, 1
store i32 %105, ptr %9, align 4
br label %69, !llvm.loop !9
106: ; preds = %69
%107 = load ptr, ptr %6, align 8
%108 = call i32 @fclose(ptr noundef %107)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare ptr @fopen(ptr noundef, ptr noundef) #2
declare i32 @fscanf(ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @findLineLargestPairSum(ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 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: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpuo1q4og0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%d ,\00", align 1
@.str.2 = private unnamed_addr constant [56 x i8] c"Line %d: largest pair is %d and %d, with a total of %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca [6 x [10 x i32]], align 16
%8 = alloca [6 x [4 x i32]], align 16
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memset.p0.i64(ptr align 16 %8, i8 0, i64 96, i1 false)
store i32 0, ptr %11, align 4
%12 = load ptr, ptr %5, align 8
%13 = getelementptr inbounds ptr, ptr %12, i64 1
%14 = load ptr, ptr %13, align 8
%15 = call ptr @fopen(ptr noundef %14, ptr noundef @.str)
store ptr %15, ptr %6, align 8
store i32 0, ptr %9, align 4
%16 = load i32, ptr %9, align 4
%17 = icmp slt i32 %16, 6
br i1 %17, label %.lr.ph2, label %70
.lr.ph2: ; preds = %2
br label %18
18: ; preds = %.lr.ph2, %65
store i32 0, ptr %10, align 4
%19 = load i32, ptr %10, align 4
%20 = icmp slt i32 %19, 10
br i1 %20, label %.lr.ph, label %35
.lr.ph: ; preds = %18
br label %21
21: ; preds = %.lr.ph, %30
%22 = load ptr, ptr %6, align 8
%23 = load i32, ptr %9, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [6 x [10 x i32]], ptr %7, i64 0, i64 %24
%26 = load i32, ptr %10, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [10 x i32], ptr %25, i64 0, i64 %27
%29 = call i32 @fscanf(ptr noundef %22, ptr noundef @.str.1, ptr noundef %28)
br label %30
30: ; preds = %21
%31 = load i32, ptr %10, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %10, align 4
%33 = load i32, ptr %10, align 4
%34 = icmp slt i32 %33, 10
br i1 %34, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %30
br label %35
35: ; preds = %._crit_edge, %18
%36 = load i32, ptr %9, align 4
%37 = load i32, ptr %9, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [6 x [4 x i32]], ptr %8, i64 0, i64 %38
%40 = getelementptr inbounds [4 x i32], ptr %39, i64 0, i64 3
store i32 %36, ptr %40, align 4
%41 = load ptr, ptr %6, align 8
%42 = load i32, ptr %9, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds [6 x [10 x i32]], ptr %7, i64 0, i64 %43
%45 = getelementptr inbounds [10 x i32], ptr %44, i64 0, i64 0
%46 = load i32, ptr %9, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [6 x [4 x i32]], ptr %8, i64 0, i64 %47
%49 = getelementptr inbounds [4 x i32], ptr %48, i64 0, i64 0
%50 = call i32 @findLineLargestPairSum(ptr noundef %41, ptr noundef %45, ptr noundef %49)
%51 = load i32, ptr %11, align 4
%52 = load i32, ptr %9, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [6 x [4 x i32]], ptr %8, i64 0, i64 %53
%55 = getelementptr inbounds [4 x i32], ptr %54, i64 0, i64 2
%56 = load i32, ptr %55, align 8
%57 = icmp slt i32 %51, %56
br i1 %57, label %58, label %64
58: ; preds = %35
%59 = load i32, ptr %9, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [6 x [4 x i32]], ptr %8, i64 0, i64 %60
%62 = getelementptr inbounds [4 x i32], ptr %61, i64 0, i64 2
%63 = load i32, ptr %62, align 8
store i32 %63, ptr %11, align 4
br label %64
64: ; preds = %58, %35
br label %65
65: ; preds = %64
%66 = load i32, ptr %9, align 4
%67 = add nsw i32 %66, 1
store i32 %67, ptr %9, align 4
%68 = load i32, ptr %9, align 4
%69 = icmp slt i32 %68, 6
br i1 %69, label %18, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %65
br label %70
70: ; preds = %._crit_edge3, %2
store i32 0, ptr %9, align 4
%71 = load i32, ptr %9, align 4
%72 = icmp slt i32 %71, 6
br i1 %72, label %.lr.ph5, label %109
.lr.ph5: ; preds = %70
br label %73
73: ; preds = %.lr.ph5, %104
%74 = load i32, ptr %11, align 4
%75 = load i32, ptr %9, align 4
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds [6 x [4 x i32]], ptr %8, i64 0, i64 %76
%78 = getelementptr inbounds [4 x i32], ptr %77, i64 0, i64 2
%79 = load i32, ptr %78, align 8
%80 = icmp eq i32 %74, %79
br i1 %80, label %81, label %103
81: ; preds = %73
%82 = load i32, ptr %9, align 4
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds [6 x [4 x i32]], ptr %8, i64 0, i64 %83
%85 = getelementptr inbounds [4 x i32], ptr %84, i64 0, i64 3
%86 = load i32, ptr %85, align 4
%87 = load i32, ptr %9, align 4
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds [6 x [4 x i32]], ptr %8, i64 0, i64 %88
%90 = getelementptr inbounds [4 x i32], ptr %89, i64 0, i64 0
%91 = load i32, ptr %90, align 16
%92 = load i32, ptr %9, align 4
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds [6 x [4 x i32]], ptr %8, i64 0, i64 %93
%95 = getelementptr inbounds [4 x i32], ptr %94, i64 0, i64 1
%96 = load i32, ptr %95, align 4
%97 = load i32, ptr %9, align 4
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds [6 x [4 x i32]], ptr %8, i64 0, i64 %98
%100 = getelementptr inbounds [4 x i32], ptr %99, i64 0, i64 2
%101 = load i32, ptr %100, align 8
%102 = call i32 @printf(ptr noundef @.str.2, i32 noundef %86, i32 noundef %91, i32 noundef %96, i32 noundef %101)
br label %103
103: ; preds = %81, %73
br label %104
104: ; preds = %103
%105 = load i32, ptr %9, align 4
%106 = add nsw i32 %105, 1
store i32 %106, ptr %9, align 4
%107 = load i32, ptr %9, align 4
%108 = icmp slt i32 %107, 6
br i1 %108, label %73, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %104
br label %109
109: ; preds = %._crit_edge6, %70
%110 = load ptr, ptr %6, align 8
%111 = call i32 @fclose(ptr noundef %110)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
declare ptr @fopen(ptr noundef, ptr noundef) #2
declare i32 @fscanf(ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @findLineLargestPairSum(ptr noundef, ptr noundef, ptr noundef) #2
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 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: write) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpddw_8zdw.c'
source_filename = "/tmp/tmpddw_8zdw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Branch_length(i32 noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca double, align 8
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%10 = load i32, ptr %5, align 4
%11 = load i32, ptr %6, align 4
%12 = load ptr, ptr %7, align 8
%13 = call i32 @Distance(i32 noundef %10, i32 noundef %11, ptr noundef %12)
%14 = load i32, ptr %5, align 4
%15 = load ptr, ptr %7, align 8
%16 = call i32 @Sum_S(i32 noundef %14, ptr noundef %15)
%17 = load i32, ptr %6, align 4
%18 = load ptr, ptr %7, align 8
%19 = call i32 @Sum_S(i32 noundef %17, ptr noundef %18)
%20 = sub nsw i32 %16, %19
%21 = load i32, ptr %8, align 4
%22 = sub nsw i32 %21, 2
%23 = sdiv i32 %20, %22
%24 = add nsw i32 %13, %23
%25 = sdiv i32 %24, 2
%26 = sitofp i32 %25 to double
store double %26, ptr %9, align 8
%27 = load double, ptr %9, align 8
ret double %27
}
declare i32 @Distance(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @Sum_S(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/tmpddw_8zdw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Branch_length(i32 noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca double, align 8
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%10 = load i32, ptr %5, align 4
%11 = load i32, ptr %6, align 4
%12 = load ptr, ptr %7, align 8
%13 = call i32 @Distance(i32 noundef %10, i32 noundef %11, ptr noundef %12)
%14 = load i32, ptr %5, align 4
%15 = load ptr, ptr %7, align 8
%16 = call i32 @Sum_S(i32 noundef %14, ptr noundef %15)
%17 = load i32, ptr %6, align 4
%18 = load ptr, ptr %7, align 8
%19 = call i32 @Sum_S(i32 noundef %17, ptr noundef %18)
%20 = sub nsw i32 %16, %19
%21 = load i32, ptr %8, align 4
%22 = sub nsw i32 %21, 2
%23 = sdiv i32 %20, %22
%24 = add nsw i32 %13, %23
%25 = sdiv i32 %24, 2
%26 = sitofp i32 %25 to double
store double %26, ptr %9, align 8
%27 = load double, ptr %9, align 8
ret double %27
}
declare i32 @Distance(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @Sum_S(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/tmpxybapcs0.c'
source_filename = "/tmp/tmpxybapcs0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@IFA_F_TENTATIVE = 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/tmpxybapcs0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@IFA_F_TENTATIVE = 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/tmpp_0h755m.c'
source_filename = "/tmp/tmpp_0h755m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @execute(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i8, align 1
%6 = alloca i8, align 1
%7 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store i64 0, ptr %7, align 8
br label %8
8: ; preds = %183, %2
%9 = load i64, ptr %7, align 8
%10 = add i64 %9, 1
store i64 %10, ptr %7, align 8
%11 = icmp ne i64 %10, 0
br i1 %11, label %12, label %184
12: ; preds = %8
%13 = load ptr, ptr %3, align 8
%14 = load i64, ptr %7, align 8
%15 = getelementptr inbounds i8, ptr %13, i64 %14
%16 = load i8, ptr %15, align 1
%17 = zext i8 %16 to i32
%18 = and i32 %17, 240
%19 = trunc i32 %18 to i8
store i8 %19, ptr %5, align 1
%20 = load ptr, ptr %3, align 8
%21 = load i64, ptr %7, align 8
%22 = getelementptr inbounds i8, ptr %20, i64 %21
%23 = load i8, ptr %22, align 1
%24 = zext i8 %23 to i32
%25 = and i32 %24, 15
%26 = trunc i32 %25 to i8
store i8 %26, ptr %6, align 1
%27 = load i8, ptr %5, align 1
%28 = zext i8 %27 to i32
switch i32 %28, label %183 [
i32 0, label %29
i32 16, label %32
i32 32, label %46
i32 48, label %60
i32 64, label %69
i32 80, label %80
i32 96, label %87
i32 112, label %94
i32 128, label %101
i32 144, label %108
i32 160, label %120
i32 176, label %132
i32 192, label %144
i32 208, label %156
i32 224, label %164
i32 240, label %173
]
29: ; preds = %12
%30 = load i8, ptr %6, align 1
%31 = call i32 @exit(i8 noundef zeroext %30) #3
unreachable
32: ; preds = %12
%33 = load ptr, ptr %3, align 8
%34 = load i64, ptr %4, align 8
%35 = load i8, ptr %6, align 1
%36 = zext i8 %35 to i64
%37 = add i64 %34, %36
%38 = getelementptr inbounds i8, ptr %33, i64 %37
%39 = load i8, ptr %38, align 1
%40 = zext i8 %39 to i32
%41 = load ptr, ptr %3, align 8
%42 = load i8, ptr %41, align 1
%43 = zext i8 %42 to i32
%44 = add nsw i32 %43, %40
%45 = trunc i32 %44 to i8
store i8 %45, ptr %41, align 1
br label %183
46: ; preds = %12
%47 = load ptr, ptr %3, align 8
%48 = load i64, ptr %4, align 8
%49 = load i8, ptr %6, align 1
%50 = zext i8 %49 to i64
%51 = add i64 %48, %50
%52 = getelementptr inbounds i8, ptr %47, i64 %51
%53 = load i8, ptr %52, align 1
%54 = zext i8 %53 to i32
%55 = load ptr, ptr %3, align 8
%56 = load i8, ptr %55, align 1
%57 = zext i8 %56 to i32
%58 = sub nsw i32 %57, %54
%59 = trunc i32 %58 to i8
store i8 %59, ptr %55, align 1
br label %183
60: ; preds = %12
%61 = load ptr, ptr %3, align 8
%62 = load i8, ptr %61, align 1
%63 = load ptr, ptr %3, align 8
%64 = load i64, ptr %4, align 8
%65 = load i8, ptr %6, align 1
%66 = zext i8 %65 to i64
%67 = add i64 %64, %66
%68 = getelementptr inbounds i8, ptr %63, i64 %67
store i8 %62, ptr %68, align 1
br label %183
69: ; preds = %12
%70 = load ptr, ptr %3, align 8
%71 = load i64, ptr %4, align 8
%72 = getelementptr inbounds i8, ptr %70, i64 %71
%73 = load i8, ptr %72, align 1
%74 = zext i8 %73 to i32
%75 = load i8, ptr %6, align 1
%76 = zext i8 %75 to i32
%77 = add nsw i32 %74, %76
%78 = trunc i32 %77 to i8
%79 = load ptr, ptr %3, align 8
store i8 %78, ptr %79, align 1
br label %183
80: ; preds = %12
%81 = load i8, ptr %6, align 1
%82 = zext i8 %81 to i32
%83 = shl i32 1, %82
%84 = sext i32 %83 to i64
%85 = load i64, ptr %4, align 8
%86 = add i64 %85, %84
store i64 %86, ptr %4, align 8
br label %183
87: ; preds = %12
%88 = load i8, ptr %6, align 1
%89 = zext i8 %88 to i32
%90 = shl i32 1, %89
%91 = sext i32 %90 to i64
%92 = load i64, ptr %4, align 8
%93 = sub i64 %92, %91
store i64 %93, ptr %4, align 8
br label %183
94: ; preds = %12
%95 = load i8, ptr %6, align 1
%96 = zext i8 %95 to i32
%97 = add nsw i32 %96, 1
%98 = sext i32 %97 to i64
%99 = load i64, ptr %7, align 8
%100 = add i64 %99, %98
store i64 %100, ptr %7, align 8
br label %183
101: ; preds = %12
%102 = load i8, ptr %6, align 1
%103 = zext i8 %102 to i32
%104 = add nsw i32 %103, 2
%105 = sext i32 %104 to i64
%106 = load i64, ptr %7, align 8
%107 = sub i64 %106, %105
store i64 %107, ptr %7, align 8
br label %183
108: ; preds = %12
%109 = load ptr, ptr %3, align 8
%110 = load i8, ptr %109, align 1
%111 = icmp ne i8 %110, 0
br i1 %111, label %119, label %112
112: ; preds = %108
%113 = load i8, ptr %6, align 1
%114 = zext i8 %113 to i32
%115 = add nsw i32 %114, 1
%116 = sext i32 %115 to i64
%117 = load i64, ptr %7, align 8
%118 = add i64 %117, %116
store i64 %118, ptr %7, align 8
br label %119
119: ; preds = %112, %108
br label %183
120: ; preds = %12
%121 = load ptr, ptr %3, align 8
%122 = load i8, ptr %121, align 1
%123 = icmp ne i8 %122, 0
br i1 %123, label %131, label %124
124: ; preds = %120
%125 = load i8, ptr %6, align 1
%126 = zext i8 %125 to i32
%127 = add nsw i32 %126, 2
%128 = sext i32 %127 to i64
%129 = load i64, ptr %7, align 8
%130 = sub i64 %129, %128
store i64 %130, ptr %7, align 8
br label %131
131: ; preds = %124, %120
br label %183
132: ; preds = %12
%133 = load ptr, ptr %3, align 8
%134 = load i8, ptr %133, align 1
%135 = icmp ne i8 %134, 0
br i1 %135, label %136, label %143
136: ; preds = %132
%137 = load i8, ptr %6, align 1
%138 = zext i8 %137 to i32
%139 = add nsw i32 %138, 1
%140 = sext i32 %139 to i64
%141 = load i64, ptr %7, align 8
%142 = add i64 %141, %140
store i64 %142, ptr %7, align 8
br label %143
143: ; preds = %136, %132
br label %183
144: ; preds = %12
%145 = load ptr, ptr %3, align 8
%146 = load i8, ptr %145, align 1
%147 = icmp ne i8 %146, 0
br i1 %147, label %148, label %155
148: ; preds = %144
%149 = load i8, ptr %6, align 1
%150 = zext i8 %149 to i32
%151 = add nsw i32 %150, 2
%152 = sext i32 %151 to i64
%153 = load i64, ptr %7, align 8
%154 = sub i64 %153, %152
store i64 %154, ptr %7, align 8
br label %155
155: ; preds = %148, %144
br label %183
156: ; preds = %12
%157 = call zeroext i8 (...) @getchar()
%158 = load ptr, ptr %3, align 8
%159 = load i64, ptr %4, align 8
%160 = load i8, ptr %6, align 1
%161 = zext i8 %160 to i64
%162 = add i64 %159, %161
%163 = getelementptr inbounds i8, ptr %158, i64 %162
store i8 %157, ptr %163, align 1
br label %183
164: ; preds = %12
%165 = load ptr, ptr %3, align 8
%166 = load i64, ptr %4, align 8
%167 = load i8, ptr %6, align 1
%168 = zext i8 %167 to i64
%169 = add i64 %166, %168
%170 = getelementptr inbounds i8, ptr %165, i64 %169
%171 = load i8, ptr %170, align 1
%172 = call i32 @putchar(i8 noundef zeroext %171)
br label %183
173: ; preds = %12
%174 = call i32 (...) @rand()
%175 = srem i32 %174, 255
%176 = trunc i32 %175 to i8
%177 = load ptr, ptr %3, align 8
%178 = load i64, ptr %4, align 8
%179 = load i8, ptr %6, align 1
%180 = zext i8 %179 to i64
%181 = add i64 %178, %180
%182 = getelementptr inbounds i8, ptr %177, i64 %181
store i8 %176, ptr %182, align 1
br label %183
183: ; preds = %12, %173, %164, %156, %155, %143, %131, %119, %101, %94, %87, %80, %69, %60, %46, %32
br label %8, !llvm.loop !6
184: ; preds = %8
ret void
}
; Function Attrs: noreturn
declare i32 @exit(i8 noundef zeroext) #1
declare zeroext i8 @getchar(...) #2
declare i32 @putchar(i8 noundef zeroext) #2
declare i32 @rand(...) #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 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-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/tmpp_0h755m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @execute(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i8, align 1
%6 = alloca i8, align 1
%7 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store i64 0, ptr %7, align 8
%8 = load i64, ptr %7, align 8
%9 = add i64 %8, 1
store i64 %9, ptr %7, align 8
%10 = icmp ne i64 %9, 0
br i1 %10, label %.lr.ph, label %186
.lr.ph: ; preds = %2
br label %11
11: ; preds = %.lr.ph, %182
%12 = load ptr, ptr %3, align 8
%13 = load i64, ptr %7, align 8
%14 = getelementptr inbounds i8, ptr %12, i64 %13
%15 = load i8, ptr %14, align 1
%16 = zext i8 %15 to i32
%17 = and i32 %16, 240
%18 = trunc i32 %17 to i8
store i8 %18, ptr %5, align 1
%19 = load ptr, ptr %3, align 8
%20 = load i64, ptr %7, align 8
%21 = getelementptr inbounds i8, ptr %19, i64 %20
%22 = load i8, ptr %21, align 1
%23 = zext i8 %22 to i32
%24 = and i32 %23, 15
%25 = trunc i32 %24 to i8
store i8 %25, ptr %6, align 1
%26 = load i8, ptr %5, align 1
%27 = zext i8 %26 to i32
switch i32 %27, label %182 [
i32 0, label %28
i32 16, label %31
i32 32, label %45
i32 48, label %59
i32 64, label %68
i32 80, label %79
i32 96, label %86
i32 112, label %93
i32 128, label %100
i32 144, label %107
i32 160, label %119
i32 176, label %131
i32 192, label %143
i32 208, label %155
i32 224, label %163
i32 240, label %172
]
28: ; preds = %11
%29 = load i8, ptr %6, align 1
%30 = call i32 @exit(i8 noundef zeroext %29) #3
unreachable
31: ; preds = %11
%32 = load ptr, ptr %3, align 8
%33 = load i64, ptr %4, align 8
%34 = load i8, ptr %6, align 1
%35 = zext i8 %34 to i64
%36 = add i64 %33, %35
%37 = getelementptr inbounds i8, ptr %32, i64 %36
%38 = load i8, ptr %37, align 1
%39 = zext i8 %38 to i32
%40 = load ptr, ptr %3, align 8
%41 = load i8, ptr %40, align 1
%42 = zext i8 %41 to i32
%43 = add nsw i32 %42, %39
%44 = trunc i32 %43 to i8
store i8 %44, ptr %40, align 1
br label %182
45: ; preds = %11
%46 = load ptr, ptr %3, align 8
%47 = load i64, ptr %4, align 8
%48 = load i8, ptr %6, align 1
%49 = zext i8 %48 to i64
%50 = add i64 %47, %49
%51 = getelementptr inbounds i8, ptr %46, i64 %50
%52 = load i8, ptr %51, align 1
%53 = zext i8 %52 to i32
%54 = load ptr, ptr %3, align 8
%55 = load i8, ptr %54, align 1
%56 = zext i8 %55 to i32
%57 = sub nsw i32 %56, %53
%58 = trunc i32 %57 to i8
store i8 %58, ptr %54, align 1
br label %182
59: ; preds = %11
%60 = load ptr, ptr %3, align 8
%61 = load i8, ptr %60, align 1
%62 = load ptr, ptr %3, align 8
%63 = load i64, ptr %4, align 8
%64 = load i8, ptr %6, align 1
%65 = zext i8 %64 to i64
%66 = add i64 %63, %65
%67 = getelementptr inbounds i8, ptr %62, i64 %66
store i8 %61, ptr %67, align 1
br label %182
68: ; preds = %11
%69 = load ptr, ptr %3, align 8
%70 = load i64, ptr %4, align 8
%71 = getelementptr inbounds i8, ptr %69, i64 %70
%72 = load i8, ptr %71, align 1
%73 = zext i8 %72 to i32
%74 = load i8, ptr %6, align 1
%75 = zext i8 %74 to i32
%76 = add nsw i32 %73, %75
%77 = trunc i32 %76 to i8
%78 = load ptr, ptr %3, align 8
store i8 %77, ptr %78, align 1
br label %182
79: ; preds = %11
%80 = load i8, ptr %6, align 1
%81 = zext i8 %80 to i32
%82 = shl i32 1, %81
%83 = sext i32 %82 to i64
%84 = load i64, ptr %4, align 8
%85 = add i64 %84, %83
store i64 %85, ptr %4, align 8
br label %182
86: ; preds = %11
%87 = load i8, ptr %6, align 1
%88 = zext i8 %87 to i32
%89 = shl i32 1, %88
%90 = sext i32 %89 to i64
%91 = load i64, ptr %4, align 8
%92 = sub i64 %91, %90
store i64 %92, ptr %4, align 8
br label %182
93: ; preds = %11
%94 = load i8, ptr %6, align 1
%95 = zext i8 %94 to i32
%96 = add nsw i32 %95, 1
%97 = sext i32 %96 to i64
%98 = load i64, ptr %7, align 8
%99 = add i64 %98, %97
store i64 %99, ptr %7, align 8
br label %182
100: ; preds = %11
%101 = load i8, ptr %6, align 1
%102 = zext i8 %101 to i32
%103 = add nsw i32 %102, 2
%104 = sext i32 %103 to i64
%105 = load i64, ptr %7, align 8
%106 = sub i64 %105, %104
store i64 %106, ptr %7, align 8
br label %182
107: ; preds = %11
%108 = load ptr, ptr %3, align 8
%109 = load i8, ptr %108, align 1
%110 = icmp ne i8 %109, 0
br i1 %110, label %118, label %111
111: ; preds = %107
%112 = load i8, ptr %6, align 1
%113 = zext i8 %112 to i32
%114 = add nsw i32 %113, 1
%115 = sext i32 %114 to i64
%116 = load i64, ptr %7, align 8
%117 = add i64 %116, %115
store i64 %117, ptr %7, align 8
br label %118
118: ; preds = %111, %107
br label %182
119: ; preds = %11
%120 = load ptr, ptr %3, align 8
%121 = load i8, ptr %120, align 1
%122 = icmp ne i8 %121, 0
br i1 %122, label %130, label %123
123: ; preds = %119
%124 = load i8, ptr %6, align 1
%125 = zext i8 %124 to i32
%126 = add nsw i32 %125, 2
%127 = sext i32 %126 to i64
%128 = load i64, ptr %7, align 8
%129 = sub i64 %128, %127
store i64 %129, ptr %7, align 8
br label %130
130: ; preds = %123, %119
br label %182
131: ; preds = %11
%132 = load ptr, ptr %3, align 8
%133 = load i8, ptr %132, align 1
%134 = icmp ne i8 %133, 0
br i1 %134, label %135, label %142
135: ; preds = %131
%136 = load i8, ptr %6, align 1
%137 = zext i8 %136 to i32
%138 = add nsw i32 %137, 1
%139 = sext i32 %138 to i64
%140 = load i64, ptr %7, align 8
%141 = add i64 %140, %139
store i64 %141, ptr %7, align 8
br label %142
142: ; preds = %135, %131
br label %182
143: ; preds = %11
%144 = load ptr, ptr %3, align 8
%145 = load i8, ptr %144, align 1
%146 = icmp ne i8 %145, 0
br i1 %146, label %147, label %154
147: ; preds = %143
%148 = load i8, ptr %6, align 1
%149 = zext i8 %148 to i32
%150 = add nsw i32 %149, 2
%151 = sext i32 %150 to i64
%152 = load i64, ptr %7, align 8
%153 = sub i64 %152, %151
store i64 %153, ptr %7, align 8
br label %154
154: ; preds = %147, %143
br label %182
155: ; preds = %11
%156 = call zeroext i8 (...) @getchar()
%157 = load ptr, ptr %3, align 8
%158 = load i64, ptr %4, align 8
%159 = load i8, ptr %6, align 1
%160 = zext i8 %159 to i64
%161 = add i64 %158, %160
%162 = getelementptr inbounds i8, ptr %157, i64 %161
store i8 %156, ptr %162, align 1
br label %182
163: ; preds = %11
%164 = load ptr, ptr %3, align 8
%165 = load i64, ptr %4, align 8
%166 = load i8, ptr %6, align 1
%167 = zext i8 %166 to i64
%168 = add i64 %165, %167
%169 = getelementptr inbounds i8, ptr %164, i64 %168
%170 = load i8, ptr %169, align 1
%171 = call i32 @putchar(i8 noundef zeroext %170)
br label %182
172: ; preds = %11
%173 = call i32 (...) @rand()
%174 = srem i32 %173, 255
%175 = trunc i32 %174 to i8
%176 = load ptr, ptr %3, align 8
%177 = load i64, ptr %4, align 8
%178 = load i8, ptr %6, align 1
%179 = zext i8 %178 to i64
%180 = add i64 %177, %179
%181 = getelementptr inbounds i8, ptr %176, i64 %180
store i8 %175, ptr %181, align 1
br label %182
182: ; preds = %172, %163, %155, %154, %142, %130, %118, %100, %93, %86, %79, %68, %59, %45, %31, %11
%183 = load i64, ptr %7, align 8
%184 = add i64 %183, 1
store i64 %184, ptr %7, align 8
%185 = icmp ne i64 %184, 0
br i1 %185, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %182
br label %186
186: ; preds = %._crit_edge, %2
ret void
}
; Function Attrs: noreturn
declare i32 @exit(i8 noundef zeroext) #1
declare zeroext i8 @getchar(...) #2
declare i32 @putchar(i8 noundef zeroext) #2
declare i32 @rand(...) #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 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-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/tmpbdk_mdw0.c'
source_filename = "/tmp/tmpbdk_mdw0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [38 x i8] c"------------------------------------\0A\00", align 1
@.str.1 = private unnamed_addr constant [31 x i8] c"teste Q3: maior_valor_matriz.\0A\00", align 1
@__const.test_maior_valor_matriz.mat = private unnamed_addr constant [4 x [4 x i32]] [[4 x i32] [i32 1, i32 2, i32 3, i32 4], [4 x i32] [i32 4, i32 5, i32 6, i32 7], [4 x i32] [i32 7, i32 8, i32 9, i32 10], [4 x i32] [i32 10, i32 11, i32 12, i32 13]], align 16
@.str.2 = private unnamed_addr constant [9 x i8] c" ok.\0A\00", align 1
@.str.3 = private unnamed_addr constant [13 x i8] c" not ok.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_maior_valor_matriz() #0 {
%1 = alloca [4 x [4 x i32]], align 16
%2 = call i32 @printf(ptr noundef @.str)
%3 = call i32 @printf(ptr noundef @.str.1)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.test_maior_valor_matriz.mat, i64 64, i1 false)
%4 = getelementptr inbounds [4 x [4 x i32]], ptr %1, i64 0, i64 0
%5 = call i32 @maior_valor_matriz(ptr noundef %4)
%6 = icmp eq i32 %5, 13
br i1 %6, label %7, label %9
7: ; preds = %0
%8 = call i32 @printf(ptr noundef @.str.2)
br label %11
9: ; preds = %0
%10 = call i32 @printf(ptr noundef @.str.3)
br label %11
11: ; preds = %9, %7
ret void
}
declare i32 @printf(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 @maior_valor_matriz(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbdk_mdw0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [38 x i8] c"------------------------------------\0A\00", align 1
@.str.1 = private unnamed_addr constant [31 x i8] c"teste Q3: maior_valor_matriz.\0A\00", align 1
@__const.test_maior_valor_matriz.mat = private unnamed_addr constant [4 x [4 x i32]] [[4 x i32] [i32 1, i32 2, i32 3, i32 4], [4 x i32] [i32 4, i32 5, i32 6, i32 7], [4 x i32] [i32 7, i32 8, i32 9, i32 10], [4 x i32] [i32 10, i32 11, i32 12, i32 13]], align 16
@.str.2 = private unnamed_addr constant [9 x i8] c" ok.\0A\00", align 1
@.str.3 = private unnamed_addr constant [13 x i8] c" not ok.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_maior_valor_matriz() #0 {
%1 = alloca [4 x [4 x i32]], align 16
%2 = call i32 @printf(ptr noundef @.str)
%3 = call i32 @printf(ptr noundef @.str.1)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %1, ptr align 16 @__const.test_maior_valor_matriz.mat, i64 64, i1 false)
%4 = getelementptr inbounds [4 x [4 x i32]], ptr %1, i64 0, i64 0
%5 = call i32 @maior_valor_matriz(ptr noundef %4)
%6 = icmp eq i32 %5, 13
br i1 %6, label %7, label %9
7: ; preds = %0
%8 = call i32 @printf(ptr noundef @.str.2)
br label %11
9: ; preds = %0
%10 = call i32 @printf(ptr noundef @.str.3)
br label %11
11: ; preds = %9, %7
ret void
}
declare i32 @printf(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 @maior_valor_matriz(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzrxe65qt.c'
source_filename = "/tmp/tmpzrxe65qt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wBasSpace() #0 {
%1 = alloca ptr, align 8
%2 = alloca i32, align 4
%3 = call i64 (...) @wPopNumber()
%4 = trunc i64 %3 to i32
store i32 %4, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = icmp slt i32 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %0
store i32 0, ptr %2, align 4
br label %8
8: ; preds = %7, %0
%9 = load i32, ptr %2, align 4
%10 = add i32 %9, 1
%11 = call i64 @wMalloc(i32 noundef %10)
%12 = inttoptr i64 %11 to ptr
store ptr %12, ptr %1, align 8
%13 = load ptr, ptr %1, align 8
%14 = load i32, ptr %2, align 4
%15 = call i32 @memset(ptr noundef %13, i8 noundef signext 32, i32 noundef %14)
%16 = load ptr, ptr %1, align 8
%17 = load i32, ptr %2, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i8, ptr %16, i64 %18
store i8 0, ptr %19, align 1
%20 = load ptr, ptr %1, align 8
%21 = call i32 @wPushString(ptr noundef %20)
ret void
}
declare i64 @wPopNumber(...) #1
declare i64 @wMalloc(i32 noundef) #1
declare i32 @memset(ptr noundef, i8 noundef signext, i32 noundef) #1
declare i32 @wPushString(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/tmpzrxe65qt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wBasSpace() #0 {
%1 = alloca ptr, align 8
%2 = alloca i32, align 4
%3 = call i64 (...) @wPopNumber()
%4 = trunc i64 %3 to i32
store i32 %4, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = icmp slt i32 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %0
store i32 0, ptr %2, align 4
br label %8
8: ; preds = %7, %0
%9 = load i32, ptr %2, align 4
%10 = add i32 %9, 1
%11 = call i64 @wMalloc(i32 noundef %10)
%12 = inttoptr i64 %11 to ptr
store ptr %12, ptr %1, align 8
%13 = load ptr, ptr %1, align 8
%14 = load i32, ptr %2, align 4
%15 = call i32 @memset(ptr noundef %13, i8 noundef signext 32, i32 noundef %14)
%16 = load ptr, ptr %1, align 8
%17 = load i32, ptr %2, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i8, ptr %16, i64 %18
store i8 0, ptr %19, align 1
%20 = load ptr, ptr %1, align 8
%21 = call i32 @wPushString(ptr noundef %20)
ret void
}
declare i64 @wPopNumber(...) #1
declare i64 @wMalloc(i32 noundef) #1
declare i32 @memset(ptr noundef, i8 noundef signext, i32 noundef) #1
declare i32 @wPushString(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/tmpybhjybk_.c'
source_filename = "/tmp/tmpybhjybk_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [5 x i8] c"%d%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %4
4: ; preds = %8, %0
%5 = load i64, ptr @EOF, align 8
%6 = call i64 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
%7 = icmp ne i64 %5, %6
br i1 %7, label %8, label %13
8: ; preds = %4
%9 = load i32, ptr %2, align 4
%10 = load i32, ptr %3, align 4
%11 = add nsw i32 %9, %10
%12 = call i32 @printf(ptr noundef @.str.1, i32 noundef %11)
br label %4, !llvm.loop !6
13: ; preds = %4
ret i32 0
}
declare i64 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpybhjybk_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i64 0, align 8
@.str = private unnamed_addr constant [5 x i8] c"%d%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
%4 = load i64, ptr @EOF, align 8
%5 = call i64 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
%6 = icmp ne i64 %4, %5
br i1 %6, label %.lr.ph, label %15
.lr.ph: ; preds = %0
br label %7
7: ; preds = %.lr.ph, %7
%8 = load i32, ptr %2, align 4
%9 = load i32, ptr %3, align 4
%10 = add nsw i32 %8, %9
%11 = call i32 @printf(ptr noundef @.str.1, i32 noundef %10)
%12 = load i64, ptr @EOF, align 8
%13 = call i64 @scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
%14 = icmp ne i64 %12, %13
br i1 %14, label %7, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %7
br label %15
15: ; preds = %._crit_edge, %0
ret i32 0
}
declare i64 @scanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpm04yiuyk.c'
source_filename = "/tmp/tmpm04yiuyk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Usage: %s <int>\0A\00", align 1
@.str.1 = private unnamed_addr constant [28 x i8] c"The factorial of %d is %d.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp ne i32 %7, 2
br i1 %8, label %9, label %14
9: ; preds = %2
%10 = load ptr, ptr %5, align 8
%11 = getelementptr inbounds ptr, ptr %10, i64 0
%12 = load ptr, ptr %11, align 8
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %12)
store i32 1, ptr %3, align 4
br label %23
14: ; preds = %2
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 1
%17 = load ptr, ptr %16, align 8
%18 = call i32 @atoi(ptr noundef %17)
store i32 %18, ptr %6, align 4
%19 = load i32, ptr %6, align 4
%20 = load i32, ptr %6, align 4
%21 = call i32 @factorial(i32 noundef %20)
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %19, i32 noundef %21)
store i32 0, ptr %3, align 4
br label %23
23: ; preds = %14, %9
%24 = load i32, ptr %3, align 4
ret i32 %24
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @factorial(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpm04yiuyk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Usage: %s <int>\0A\00", align 1
@.str.1 = private unnamed_addr constant [28 x i8] c"The factorial of %d is %d.\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp ne i32 %7, 2
br i1 %8, label %9, label %14
9: ; preds = %2
%10 = load ptr, ptr %5, align 8
%11 = getelementptr inbounds ptr, ptr %10, i64 0
%12 = load ptr, ptr %11, align 8
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %12)
store i32 1, ptr %3, align 4
br label %23
14: ; preds = %2
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 1
%17 = load ptr, ptr %16, align 8
%18 = call i32 @atoi(ptr noundef %17)
store i32 %18, ptr %6, align 4
%19 = load i32, ptr %6, align 4
%20 = load i32, ptr %6, align 4
%21 = call i32 @factorial(i32 noundef %20)
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %19, i32 noundef %21)
store i32 0, ptr %3, align 4
br label %23
23: ; preds = %14, %9
%24 = load i32, ptr %3, align 4
ret i32 %24
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @factorial(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpml5wx9jb.c'
source_filename = "/tmp/tmpml5wx9jb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @CGDataConsumerRelease(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_cf(ptr noundef %3)
ret void
}
declare i32 @__free_cf(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/tmpml5wx9jb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @CGDataConsumerRelease(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_cf(ptr noundef %3)
ret void
}
declare i32 @__free_cf(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/tmpjrte01od.c'
source_filename = "/tmp/tmpjrte01od.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strlcpy(ptr noalias noundef %0, ptr noalias noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%10 = load ptr, ptr %4, align 8
store ptr %10, ptr %7, align 8
%11 = load ptr, ptr %5, align 8
store ptr %11, ptr %8, align 8
%12 = load i64, ptr %6, align 8
store i64 %12, ptr %9, align 8
%13 = load i64, ptr %9, align 8
%14 = icmp ne i64 %13, 0
br i1 %14, label %15, label %31
15: ; preds = %3
br label %16
16: ; preds = %29, %15
%17 = load i64, ptr %9, align 8
%18 = add i64 %17, -1
store i64 %18, ptr %9, align 8
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %30
20: ; preds = %16
%21 = load ptr, ptr %8, align 8
%22 = getelementptr inbounds i8, ptr %21, i32 1
store ptr %22, ptr %8, align 8
%23 = load i8, ptr %21, align 1
%24 = load ptr, ptr %7, align 8
%25 = getelementptr inbounds i8, ptr %24, i32 1
store ptr %25, ptr %7, align 8
store i8 %23, ptr %24, align 1
%26 = sext i8 %23 to i32
%27 = icmp eq i32 %26, 0
br i1 %27, label %28, label %29
28: ; preds = %20
br label %30
29: ; preds = %20
br label %16, !llvm.loop !6
30: ; preds = %28, %16
br label %31
31: ; preds = %30, %3
%32 = load i64, ptr %9, align 8
%33 = icmp eq i64 %32, 0
br i1 %33, label %34, label %47
34: ; preds = %31
%35 = load i64, ptr %6, align 8
%36 = icmp ne i64 %35, 0
br i1 %36, label %37, label %39
37: ; preds = %34
%38 = load ptr, ptr %7, align 8
store i8 0, ptr %38, align 1
br label %39
39: ; preds = %37, %34
br label %40
40: ; preds = %45, %39
%41 = load ptr, ptr %8, align 8
%42 = getelementptr inbounds i8, ptr %41, i32 1
store ptr %42, ptr %8, align 8
%43 = load i8, ptr %41, align 1
%44 = icmp ne i8 %43, 0
br i1 %44, label %45, label %46
45: ; preds = %40
br label %40, !llvm.loop !8
46: ; preds = %40
br label %47
47: ; preds = %46, %31
%48 = load ptr, ptr %8, align 8
%49 = load ptr, ptr %5, align 8
%50 = ptrtoint ptr %48 to i64
%51 = ptrtoint ptr %49 to i64
%52 = sub i64 %50, %51
%53 = sub nsw i64 %52, 1
ret i64 %53
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpjrte01od.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strlcpy(ptr noalias noundef %0, ptr noalias noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%10 = load ptr, ptr %4, align 8
store ptr %10, ptr %7, align 8
%11 = load ptr, ptr %5, align 8
store ptr %11, ptr %8, align 8
%12 = load i64, ptr %6, align 8
store i64 %12, ptr %9, align 8
%13 = load i64, ptr %9, align 8
%14 = icmp ne i64 %13, 0
br i1 %14, label %15, label %33
15: ; preds = %3
%16 = load i64, ptr %9, align 8
%17 = add i64 %16, -1
store i64 %17, ptr %9, align 8
%18 = icmp ne i64 %17, 0
br i1 %18, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %15
br label %23
19: ; preds = %23
%20 = load i64, ptr %9, align 8
%21 = add i64 %20, -1
store i64 %21, ptr %9, align 8
%22 = icmp ne i64 %21, 0
br i1 %22, label %23, label %..loopexit_crit_edge, !llvm.loop !6
23: ; preds = %.lr.ph, %19
%24 = load ptr, ptr %8, align 8
%25 = getelementptr inbounds i8, ptr %24, i32 1
store ptr %25, ptr %8, align 8
%26 = load i8, ptr %24, align 1
%27 = load ptr, ptr %7, align 8
%28 = getelementptr inbounds i8, ptr %27, i32 1
store ptr %28, ptr %7, align 8
store i8 %26, ptr %27, align 1
%29 = sext i8 %26 to i32
%30 = icmp eq i32 %29, 0
br i1 %30, label %31, label %19
31: ; preds = %23
br label %32
..loopexit_crit_edge: ; preds = %19
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %15
br label %32
32: ; preds = %.loopexit, %31
br label %33
33: ; preds = %32, %3
%34 = load i64, ptr %9, align 8
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %48
36: ; preds = %33
%37 = load i64, ptr %6, align 8
%38 = icmp ne i64 %37, 0
br i1 %38, label %39, label %41
39: ; preds = %36
%40 = load ptr, ptr %7, align 8
store i8 0, ptr %40, align 1
br label %41
41: ; preds = %39, %36
br label %42
42: ; preds = %42, %41
%43 = load ptr, ptr %8, align 8
%44 = getelementptr inbounds i8, ptr %43, i32 1
store ptr %44, ptr %8, align 8
%45 = load i8, ptr %43, align 1
%46 = icmp ne i8 %45, 0
br i1 %46, label %42, label %47, !llvm.loop !8
47: ; preds = %42
br label %48
48: ; preds = %47, %33
%49 = load ptr, ptr %8, align 8
%50 = load ptr, ptr %5, align 8
%51 = ptrtoint ptr %49 to i64
%52 = ptrtoint ptr %50 to i64
%53 = sub i64 %51, %52
%54 = sub nsw i64 %53, 1
ret i64 %54
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp4_a2dgaa.c'
source_filename = "/tmp/tmp4_a2dgaa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @GetExtensionFromFilename(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i8, align 1
store ptr %0, ptr %2, align 8
store ptr null, ptr %4, align 8
%7 = load ptr, ptr %2, align 8
%8 = call i32 @strlen(ptr noundef %7)
store i32 %8, ptr %5, align 4
%9 = load i32, ptr %5, align 4
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %37
11: ; preds = %1
%12 = load i32, ptr %5, align 4
%13 = sub nsw i32 %12, 1
store i32 %13, ptr %3, align 4
br label %14
14: ; preds = %33, %11
%15 = load i32, ptr %3, align 4
%16 = icmp sge i32 %15, 0
br i1 %16, label %17, label %36
17: ; preds = %14
%18 = load ptr, ptr %2, align 8
%19 = load i32, ptr %3, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i8, ptr %18, i64 %20
%22 = load i8, ptr %21, align 1
store i8 %22, ptr %6, align 1
%23 = load i8, ptr %6, align 1
%24 = sext i8 %23 to i32
%25 = icmp eq i32 %24, 46
br i1 %25, label %26, label %32
26: ; preds = %17
%27 = load ptr, ptr %2, align 8
%28 = load i32, ptr %3, align 4
%29 = add nsw i32 %28, 1
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i8, ptr %27, i64 %30
store ptr %31, ptr %4, align 8
br label %36
32: ; preds = %17
br label %33
33: ; preds = %32
%34 = load i32, ptr %3, align 4
%35 = add nsw i32 %34, -1
store i32 %35, ptr %3, align 4
br label %14, !llvm.loop !6
36: ; preds = %26, %14
br label %37
37: ; preds = %36, %1
%38 = load ptr, ptr %4, align 8
ret ptr %38
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4_a2dgaa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @GetExtensionFromFilename(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i8, align 1
store ptr %0, ptr %2, align 8
store ptr null, ptr %4, align 8
%7 = load ptr, ptr %2, align 8
%8 = call i32 @strlen(ptr noundef %7)
store i32 %8, ptr %5, align 4
%9 = load i32, ptr %5, align 4
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %38
11: ; preds = %1
%12 = load i32, ptr %5, align 4
%13 = sub nsw i32 %12, 1
store i32 %13, ptr %3, align 4
%14 = load i32, ptr %3, align 4
%15 = icmp sge i32 %14, 0
br i1 %15, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %11
br label %16
16: ; preds = %.lr.ph, %32
%17 = load ptr, ptr %2, align 8
%18 = load i32, ptr %3, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8, ptr %17, i64 %19
%21 = load i8, ptr %20, align 1
store i8 %21, ptr %6, align 1
%22 = load i8, ptr %6, align 1
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %23, 46
br i1 %24, label %25, label %31
25: ; preds = %16
%26 = load ptr, ptr %2, align 8
%27 = load i32, ptr %3, align 4
%28 = add nsw i32 %27, 1
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8, ptr %26, i64 %29
store ptr %30, ptr %4, align 8
br label %37
31: ; preds = %16
br label %32
32: ; preds = %31
%33 = load i32, ptr %3, align 4
%34 = add nsw i32 %33, -1
store i32 %34, ptr %3, align 4
%35 = load i32, ptr %3, align 4
%36 = icmp sge i32 %35, 0
br i1 %36, label %16, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %32
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %11
br label %37
37: ; preds = %.loopexit, %25
br label %38
38: ; preds = %37, %1
%39 = load ptr, ptr %4, align 8
ret ptr %39
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpuyi3844y.c'
source_filename = "/tmp/tmpuyi3844y.c"
target datalayout = "e-m:e-p270: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/tmpuyi3844y.c"
target datalayout = "e-m:e-p270: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/tmp11q39l5g.c'
source_filename = "/tmp/tmp11q39l5g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 ptr @leggiMatrice(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%8 = load i32, ptr %3, align 4
%9 = sext i32 %8 to i64
%10 = mul i64 8, %9
%11 = trunc i64 %10 to i32
%12 = call ptr @malloc(i32 noundef %11)
store ptr %12, ptr %5, align 8
store i32 0, ptr %6, align 4
br label %13
13: ; preds = %45, %2
%14 = load i32, ptr %6, align 4
%15 = load i32, ptr %3, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %17, label %48
17: ; preds = %13
%18 = load i32, ptr %4, align 4
%19 = sext i32 %18 to i64
%20 = mul i64 4, %19
%21 = trunc i64 %20 to i32
%22 = call ptr @malloc(i32 noundef %21)
%23 = load ptr, ptr %5, align 8
%24 = load i32, ptr %6, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds ptr, ptr %23, i64 %25
store ptr %22, ptr %26, align 8
store i32 0, ptr %7, align 4
br label %27
27: ; preds = %41, %17
%28 = load i32, ptr %7, align 4
%29 = load i32, ptr %4, align 4
%30 = icmp slt i32 %28, %29
br i1 %30, label %31, label %44
31: ; preds = %27
%32 = load ptr, ptr %5, align 8
%33 = load i32, ptr %6, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds ptr, ptr %32, i64 %34
%36 = load ptr, ptr %35, align 8
%37 = load i32, ptr %7, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i32, ptr %36, i64 %38
%40 = call i32 @scanf(ptr noundef @.str, ptr noundef %39)
br label %41
41: ; preds = %31
%42 = load i32, ptr %7, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %7, align 4
br label %27, !llvm.loop !6
44: ; preds = %27
br label %45
45: ; preds = %44
%46 = load i32, ptr %6, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %6, align 4
br label %13, !llvm.loop !8
48: ; preds = %13
%49 = load ptr, ptr %5, align 8
ret ptr %49
}
declare ptr @malloc(i32 noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp11q39l5g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 ptr @leggiMatrice(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%8 = load i32, ptr %3, align 4
%9 = sext i32 %8 to i64
%10 = mul i64 8, %9
%11 = trunc i64 %10 to i32
%12 = call ptr @malloc(i32 noundef %11)
store ptr %12, ptr %5, align 8
store i32 0, ptr %6, align 4
%13 = load i32, ptr %6, align 4
%14 = load i32, ptr %3, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %.lr.ph2, label %52
.lr.ph2: ; preds = %2
br label %16
16: ; preds = %.lr.ph2, %46
%17 = load i32, ptr %4, align 4
%18 = sext i32 %17 to i64
%19 = mul i64 4, %18
%20 = trunc i64 %19 to i32
%21 = call ptr @malloc(i32 noundef %20)
%22 = load ptr, ptr %5, align 8
%23 = load i32, ptr %6, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds ptr, ptr %22, i64 %24
store ptr %21, ptr %25, align 8
store i32 0, ptr %7, align 4
%26 = load i32, ptr %7, align 4
%27 = load i32, ptr %4, align 4
%28 = icmp slt i32 %26, %27
br i1 %28, label %.lr.ph, label %45
.lr.ph: ; preds = %16
br label %29
29: ; preds = %.lr.ph, %39
%30 = load ptr, ptr %5, align 8
%31 = load i32, ptr %6, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds ptr, ptr %30, i64 %32
%34 = load ptr, ptr %33, align 8
%35 = load i32, ptr %7, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i32, ptr %34, i64 %36
%38 = call i32 @scanf(ptr noundef @.str, ptr noundef %37)
br label %39
39: ; preds = %29
%40 = load i32, ptr %7, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %7, align 4
%42 = load i32, ptr %7, align 4
%43 = load i32, ptr %4, align 4
%44 = icmp slt i32 %42, %43
br i1 %44, label %29, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %39
br label %45
45: ; preds = %._crit_edge, %16
br label %46
46: ; preds = %45
%47 = load i32, ptr %6, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %6, align 4
%49 = load i32, ptr %6, align 4
%50 = load i32, ptr %3, align 4
%51 = icmp slt i32 %49, %50
br i1 %51, label %16, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %46
br label %52
52: ; preds = %._crit_edge3, %2
%53 = load ptr, ptr %5, align 8
ret ptr %53
}
declare ptr @malloc(i32 noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp209xi06_.c'
source_filename = "/tmp/tmp209xi06_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @makewt(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 i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca double, align 8
%16 = alloca double, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%17 = load i32, ptr %4, align 4
%18 = load ptr, ptr %5, align 8
%19 = getelementptr inbounds i32, ptr %18, i64 0
store i32 %17, ptr %19, align 4
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds i32, ptr %20, i64 1
store i32 1, ptr %21, align 4
%22 = load i32, ptr %4, align 4
%23 = icmp sgt i32 %22, 2
br i1 %23, label %24, label %289
24: ; preds = %3
%25 = load i32, ptr %4, align 4
%26 = ashr i32 %25, 1
store i32 %26, ptr %8, align 4
%27 = call i32 @atan(double noundef 1.000000e+00)
%28 = load i32, ptr %8, align 4
%29 = sdiv i32 %27, %28
%30 = sitofp i32 %29 to double
store double %30, ptr %11, align 8
%31 = load double, ptr %11, align 8
%32 = load i32, ptr %8, align 4
%33 = sitofp i32 %32 to double
%34 = fmul double %31, %33
%35 = fptosi double %34 to i32
%36 = call double @cos(i32 noundef %35)
store double %36, ptr %12, align 8
%37 = load ptr, ptr %6, align 8
%38 = getelementptr inbounds double, ptr %37, i64 0
store double 1.000000e+00, ptr %38, align 8
%39 = load double, ptr %12, align 8
%40 = load ptr, ptr %6, align 8
%41 = getelementptr inbounds double, ptr %40, i64 1
store double %39, ptr %41, align 8
%42 = load i32, ptr %8, align 4
%43 = icmp eq i32 %42, 4
br i1 %43, label %44, label %57
44: ; preds = %24
%45 = load double, ptr %11, align 8
%46 = fmul double %45, 2.000000e+00
%47 = fptosi double %46 to i32
%48 = call double @cos(i32 noundef %47)
%49 = load ptr, ptr %6, align 8
%50 = getelementptr inbounds double, ptr %49, i64 2
store double %48, ptr %50, align 8
%51 = load double, ptr %11, align 8
%52 = fmul double %51, 2.000000e+00
%53 = fptosi double %52 to i32
%54 = call double @sin(i32 noundef %53)
%55 = load ptr, ptr %6, align 8
%56 = getelementptr inbounds double, ptr %55, i64 3
store double %54, ptr %56, align 8
br label %133
57: ; preds = %24
%58 = load i32, ptr %8, align 4
%59 = icmp sgt i32 %58, 4
br i1 %59, label %60, label %132
60: ; preds = %57
%61 = load i32, ptr %4, align 4
%62 = load ptr, ptr %5, align 8
call void @makeipt(i32 noundef %61, ptr noundef %62)
%63 = load double, ptr %11, align 8
%64 = fmul double %63, 2.000000e+00
%65 = fptosi double %64 to i32
%66 = call double @cos(i32 noundef %65)
%67 = fdiv double 5.000000e-01, %66
%68 = load ptr, ptr %6, align 8
%69 = getelementptr inbounds double, ptr %68, i64 2
store double %67, ptr %69, align 8
%70 = load double, ptr %11, align 8
%71 = fmul double %70, 6.000000e+00
%72 = fptosi double %71 to i32
%73 = call double @cos(i32 noundef %72)
%74 = fdiv double 5.000000e-01, %73
%75 = load ptr, ptr %6, align 8
%76 = getelementptr inbounds double, ptr %75, i64 3
store double %74, ptr %76, align 8
store i32 4, ptr %7, align 4
br label %77
77: ; preds = %128, %60
%78 = load i32, ptr %7, align 4
%79 = load i32, ptr %8, align 4
%80 = icmp slt i32 %78, %79
br i1 %80, label %81, label %131
81: ; preds = %77
%82 = load double, ptr %11, align 8
%83 = load i32, ptr %7, align 4
%84 = sitofp i32 %83 to double
%85 = fmul double %82, %84
%86 = fptosi double %85 to i32
%87 = call double @cos(i32 noundef %86)
%88 = load ptr, ptr %6, align 8
%89 = load i32, ptr %7, align 4
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds double, ptr %88, i64 %90
store double %87, ptr %91, align 8
%92 = load double, ptr %11, align 8
%93 = load i32, ptr %7, align 4
%94 = sitofp i32 %93 to double
%95 = fmul double %92, %94
%96 = fptosi double %95 to i32
%97 = call double @sin(i32 noundef %96)
%98 = load ptr, ptr %6, align 8
%99 = load i32, ptr %7, align 4
%100 = add nsw i32 %99, 1
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds double, ptr %98, i64 %101
store double %97, ptr %102, align 8
%103 = load double, ptr %11, align 8
%104 = fmul double 3.000000e+00, %103
%105 = load i32, ptr %7, align 4
%106 = sitofp i32 %105 to double
%107 = fmul double %104, %106
%108 = fptosi double %107 to i32
%109 = call double @cos(i32 noundef %108)
%110 = load ptr, ptr %6, align 8
%111 = load i32, ptr %7, align 4
%112 = add nsw i32 %111, 2
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds double, ptr %110, i64 %113
store double %109, ptr %114, align 8
%115 = load double, ptr %11, align 8
%116 = fmul double 3.000000e+00, %115
%117 = load i32, ptr %7, align 4
%118 = sitofp i32 %117 to double
%119 = fmul double %116, %118
%120 = fptosi double %119 to i32
%121 = call double @sin(i32 noundef %120)
%122 = fneg double %121
%123 = load ptr, ptr %6, align 8
%124 = load i32, ptr %7, align 4
%125 = add nsw i32 %124, 3
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds double, ptr %123, i64 %126
store double %122, ptr %127, align 8
br label %128
128: ; preds = %81
%129 = load i32, ptr %7, align 4
%130 = add nsw i32 %129, 4
store i32 %130, ptr %7, align 4
br label %77, !llvm.loop !6
131: ; preds = %77
br label %132
132: ; preds = %131, %57
br label %133
133: ; preds = %132, %44
store i32 0, ptr %9, align 4
br label %134
134: ; preds = %286, %133
%135 = load i32, ptr %8, align 4
%136 = icmp sgt i32 %135, 2
br i1 %136, label %137, label %288
137: ; preds = %134
%138 = load i32, ptr %9, align 4
%139 = load i32, ptr %8, align 4
%140 = add nsw i32 %138, %139
store i32 %140, ptr %10, align 4
%141 = load i32, ptr %8, align 4
%142 = ashr i32 %141, 1
store i32 %142, ptr %8, align 4
%143 = load ptr, ptr %6, align 8
%144 = load i32, ptr %10, align 4
%145 = sext i32 %144 to i64
%146 = getelementptr inbounds double, ptr %143, i64 %145
store double 1.000000e+00, ptr %146, align 8
%147 = load double, ptr %12, align 8
%148 = load ptr, ptr %6, align 8
%149 = load i32, ptr %10, align 4
%150 = add nsw i32 %149, 1
%151 = sext i32 %150 to i64
%152 = getelementptr inbounds double, ptr %148, i64 %151
store double %147, ptr %152, align 8
%153 = load i32, ptr %8, align 4
%154 = icmp eq i32 %153, 4
br i1 %154, label %155, label %180
155: ; preds = %137
%156 = load ptr, ptr %6, align 8
%157 = load i32, ptr %9, align 4
%158 = add nsw i32 %157, 4
%159 = sext i32 %158 to i64
%160 = getelementptr inbounds double, ptr %156, i64 %159
%161 = load double, ptr %160, align 8
store double %161, ptr %13, align 8
%162 = load ptr, ptr %6, align 8
%163 = load i32, ptr %9, align 4
%164 = add nsw i32 %163, 5
%165 = sext i32 %164 to i64
%166 = getelementptr inbounds double, ptr %162, i64 %165
%167 = load double, ptr %166, align 8
store double %167, ptr %14, align 8
%168 = load double, ptr %13, align 8
%169 = load ptr, ptr %6, align 8
%170 = load i32, ptr %10, align 4
%171 = add nsw i32 %170, 2
%172 = sext i32 %171 to i64
%173 = getelementptr inbounds double, ptr %169, i64 %172
store double %168, ptr %173, align 8
%174 = load double, ptr %14, align 8
%175 = load ptr, ptr %6, align 8
%176 = load i32, ptr %10, align 4
%177 = add nsw i32 %176, 3
%178 = sext i32 %177 to i64
%179 = getelementptr inbounds double, ptr %175, i64 %178
store double %174, ptr %179, align 8
br label %286
180: ; preds = %137
%181 = load i32, ptr %8, align 4
%182 = icmp sgt i32 %181, 4
br i1 %182, label %183, label %285
183: ; preds = %180
%184 = load ptr, ptr %6, align 8
%185 = load i32, ptr %9, align 4
%186 = add nsw i32 %185, 4
%187 = sext i32 %186 to i64
%188 = getelementptr inbounds double, ptr %184, i64 %187
%189 = load double, ptr %188, align 8
store double %189, ptr %13, align 8
%190 = load ptr, ptr %6, align 8
%191 = load i32, ptr %9, align 4
%192 = add nsw i32 %191, 6
%193 = sext i32 %192 to i64
%194 = getelementptr inbounds double, ptr %190, i64 %193
%195 = load double, ptr %194, align 8
store double %195, ptr %15, align 8
%196 = load double, ptr %13, align 8
%197 = fdiv double 5.000000e-01, %196
%198 = load ptr, ptr %6, align 8
%199 = load i32, ptr %10, align 4
%200 = add nsw i32 %199, 2
%201 = sext i32 %200 to i64
%202 = getelementptr inbounds double, ptr %198, i64 %201
store double %197, ptr %202, align 8
%203 = load double, ptr %15, align 8
%204 = fdiv double 5.000000e-01, %203
%205 = load ptr, ptr %6, align 8
%206 = load i32, ptr %10, align 4
%207 = add nsw i32 %206, 3
%208 = sext i32 %207 to i64
%209 = getelementptr inbounds double, ptr %205, i64 %208
store double %204, ptr %209, align 8
store i32 4, ptr %7, align 4
br label %210
210: ; preds = %281, %183
%211 = load i32, ptr %7, align 4
%212 = load i32, ptr %8, align 4
%213 = icmp slt i32 %211, %212
br i1 %213, label %214, label %284
214: ; preds = %210
%215 = load ptr, ptr %6, align 8
%216 = load i32, ptr %9, align 4
%217 = load i32, ptr %7, align 4
%218 = mul nsw i32 2, %217
%219 = add nsw i32 %216, %218
%220 = sext i32 %219 to i64
%221 = getelementptr inbounds double, ptr %215, i64 %220
%222 = load double, ptr %221, align 8
store double %222, ptr %13, align 8
%223 = load ptr, ptr %6, align 8
%224 = load i32, ptr %9, align 4
%225 = load i32, ptr %7, align 4
%226 = mul nsw i32 2, %225
%227 = add nsw i32 %224, %226
%228 = add nsw i32 %227, 1
%229 = sext i32 %228 to i64
%230 = getelementptr inbounds double, ptr %223, i64 %229
%231 = load double, ptr %230, align 8
store double %231, ptr %14, align 8
%232 = load ptr, ptr %6, align 8
%233 = load i32, ptr %9, align 4
%234 = load i32, ptr %7, align 4
%235 = mul nsw i32 2, %234
%236 = add nsw i32 %233, %235
%237 = add nsw i32 %236, 2
%238 = sext i32 %237 to i64
%239 = getelementptr inbounds double, ptr %232, i64 %238
%240 = load double, ptr %239, align 8
store double %240, ptr %15, align 8
%241 = load ptr, ptr %6, align 8
%242 = load i32, ptr %9, align 4
%243 = load i32, ptr %7, align 4
%244 = mul nsw i32 2, %243
%245 = add nsw i32 %242, %244
%246 = add nsw i32 %245, 3
%247 = sext i32 %246 to i64
%248 = getelementptr inbounds double, ptr %241, i64 %247
%249 = load double, ptr %248, align 8
store double %249, ptr %16, align 8
%250 = load double, ptr %13, align 8
%251 = load ptr, ptr %6, align 8
%252 = load i32, ptr %10, align 4
%253 = load i32, ptr %7, align 4
%254 = add nsw i32 %252, %253
%255 = sext i32 %254 to i64
%256 = getelementptr inbounds double, ptr %251, i64 %255
store double %250, ptr %256, align 8
%257 = load double, ptr %14, align 8
%258 = load ptr, ptr %6, align 8
%259 = load i32, ptr %10, align 4
%260 = load i32, ptr %7, align 4
%261 = add nsw i32 %259, %260
%262 = add nsw i32 %261, 1
%263 = sext i32 %262 to i64
%264 = getelementptr inbounds double, ptr %258, i64 %263
store double %257, ptr %264, align 8
%265 = load double, ptr %15, align 8
%266 = load ptr, ptr %6, align 8
%267 = load i32, ptr %10, align 4
%268 = load i32, ptr %7, align 4
%269 = add nsw i32 %267, %268
%270 = add nsw i32 %269, 2
%271 = sext i32 %270 to i64
%272 = getelementptr inbounds double, ptr %266, i64 %271
store double %265, ptr %272, align 8
%273 = load double, ptr %16, align 8
%274 = load ptr, ptr %6, align 8
%275 = load i32, ptr %10, align 4
%276 = load i32, ptr %7, align 4
%277 = add nsw i32 %275, %276
%278 = add nsw i32 %277, 3
%279 = sext i32 %278 to i64
%280 = getelementptr inbounds double, ptr %274, i64 %279
store double %273, ptr %280, align 8
br label %281
281: ; preds = %214
%282 = load i32, ptr %7, align 4
%283 = add nsw i32 %282, 4
store i32 %283, ptr %7, align 4
br label %210, !llvm.loop !8
284: ; preds = %210
br label %285
285: ; preds = %284, %180
br label %286
286: ; preds = %285, %155
%287 = load i32, ptr %10, align 4
store i32 %287, ptr %9, align 4
br label %134, !llvm.loop !9
288: ; preds = %134
br label %289
289: ; preds = %288, %3
ret void
}
declare i32 @atan(double noundef) #1
declare double @cos(i32 noundef) #1
declare double @sin(i32 noundef) #1
declare void @makeipt(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp209xi06_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @makewt(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 i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca double, align 8
%16 = alloca double, align 8
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%17 = load i32, ptr %4, align 4
%18 = load ptr, ptr %5, align 8
%19 = getelementptr inbounds i32, ptr %18, i64 0
store i32 %17, ptr %19, align 4
%20 = load ptr, ptr %5, align 8
%21 = getelementptr inbounds i32, ptr %20, i64 1
store i32 1, ptr %21, align 4
%22 = load i32, ptr %4, align 4
%23 = icmp sgt i32 %22, 2
br i1 %23, label %24, label %294
24: ; preds = %3
%25 = load i32, ptr %4, align 4
%26 = ashr i32 %25, 1
store i32 %26, ptr %8, align 4
%27 = call i32 @atan(double noundef 1.000000e+00)
%28 = load i32, ptr %8, align 4
%29 = sdiv i32 %27, %28
%30 = sitofp i32 %29 to double
store double %30, ptr %11, align 8
%31 = load double, ptr %11, align 8
%32 = load i32, ptr %8, align 4
%33 = sitofp i32 %32 to double
%34 = fmul double %31, %33
%35 = fptosi double %34 to i32
%36 = call double @cos(i32 noundef %35)
store double %36, ptr %12, align 8
%37 = load ptr, ptr %6, align 8
%38 = getelementptr inbounds double, ptr %37, i64 0
store double 1.000000e+00, ptr %38, align 8
%39 = load double, ptr %12, align 8
%40 = load ptr, ptr %6, align 8
%41 = getelementptr inbounds double, ptr %40, i64 1
store double %39, ptr %41, align 8
%42 = load i32, ptr %8, align 4
%43 = icmp eq i32 %42, 4
br i1 %43, label %44, label %57
44: ; preds = %24
%45 = load double, ptr %11, align 8
%46 = fmul double %45, 2.000000e+00
%47 = fptosi double %46 to i32
%48 = call double @cos(i32 noundef %47)
%49 = load ptr, ptr %6, align 8
%50 = getelementptr inbounds double, ptr %49, i64 2
store double %48, ptr %50, align 8
%51 = load double, ptr %11, align 8
%52 = fmul double %51, 2.000000e+00
%53 = fptosi double %52 to i32
%54 = call double @sin(i32 noundef %53)
%55 = load ptr, ptr %6, align 8
%56 = getelementptr inbounds double, ptr %55, i64 3
store double %54, ptr %56, align 8
br label %135
57: ; preds = %24
%58 = load i32, ptr %8, align 4
%59 = icmp sgt i32 %58, 4
br i1 %59, label %60, label %134
60: ; preds = %57
%61 = load i32, ptr %4, align 4
%62 = load ptr, ptr %5, align 8
call void @makeipt(i32 noundef %61, ptr noundef %62)
%63 = load double, ptr %11, align 8
%64 = fmul double %63, 2.000000e+00
%65 = fptosi double %64 to i32
%66 = call double @cos(i32 noundef %65)
%67 = fdiv double 5.000000e-01, %66
%68 = load ptr, ptr %6, align 8
%69 = getelementptr inbounds double, ptr %68, i64 2
store double %67, ptr %69, align 8
%70 = load double, ptr %11, align 8
%71 = fmul double %70, 6.000000e+00
%72 = fptosi double %71 to i32
%73 = call double @cos(i32 noundef %72)
%74 = fdiv double 5.000000e-01, %73
%75 = load ptr, ptr %6, align 8
%76 = getelementptr inbounds double, ptr %75, i64 3
store double %74, ptr %76, align 8
store i32 4, ptr %7, align 4
%77 = load i32, ptr %7, align 4
%78 = load i32, ptr %8, align 4
%79 = icmp slt i32 %77, %78
br i1 %79, label %.lr.ph, label %133
.lr.ph: ; preds = %60
br label %80
80: ; preds = %.lr.ph, %127
%81 = load double, ptr %11, align 8
%82 = load i32, ptr %7, align 4
%83 = sitofp i32 %82 to double
%84 = fmul double %81, %83
%85 = fptosi double %84 to i32
%86 = call double @cos(i32 noundef %85)
%87 = load ptr, ptr %6, align 8
%88 = load i32, ptr %7, align 4
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds double, ptr %87, i64 %89
store double %86, ptr %90, align 8
%91 = load double, ptr %11, align 8
%92 = load i32, ptr %7, align 4
%93 = sitofp i32 %92 to double
%94 = fmul double %91, %93
%95 = fptosi double %94 to i32
%96 = call double @sin(i32 noundef %95)
%97 = load ptr, ptr %6, align 8
%98 = load i32, ptr %7, align 4
%99 = add nsw i32 %98, 1
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds double, ptr %97, i64 %100
store double %96, ptr %101, align 8
%102 = load double, ptr %11, align 8
%103 = fmul double 3.000000e+00, %102
%104 = load i32, ptr %7, align 4
%105 = sitofp i32 %104 to double
%106 = fmul double %103, %105
%107 = fptosi double %106 to i32
%108 = call double @cos(i32 noundef %107)
%109 = load ptr, ptr %6, align 8
%110 = load i32, ptr %7, align 4
%111 = add nsw i32 %110, 2
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds double, ptr %109, i64 %112
store double %108, ptr %113, align 8
%114 = load double, ptr %11, align 8
%115 = fmul double 3.000000e+00, %114
%116 = load i32, ptr %7, align 4
%117 = sitofp i32 %116 to double
%118 = fmul double %115, %117
%119 = fptosi double %118 to i32
%120 = call double @sin(i32 noundef %119)
%121 = fneg double %120
%122 = load ptr, ptr %6, align 8
%123 = load i32, ptr %7, align 4
%124 = add nsw i32 %123, 3
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds double, ptr %122, i64 %125
store double %121, ptr %126, align 8
br label %127
127: ; preds = %80
%128 = load i32, ptr %7, align 4
%129 = add nsw i32 %128, 4
store i32 %129, ptr %7, align 4
%130 = load i32, ptr %7, align 4
%131 = load i32, ptr %8, align 4
%132 = icmp slt i32 %130, %131
br i1 %132, label %80, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %127
br label %133
133: ; preds = %._crit_edge, %60
br label %134
134: ; preds = %133, %57
br label %135
135: ; preds = %134, %44
store i32 0, ptr %9, align 4
%136 = load i32, ptr %8, align 4
%137 = icmp sgt i32 %136, 2
br i1 %137, label %.lr.ph5, label %293
.lr.ph5: ; preds = %135
br label %138
138: ; preds = %.lr.ph5, %289
%139 = load i32, ptr %9, align 4
%140 = load i32, ptr %8, align 4
%141 = add nsw i32 %139, %140
store i32 %141, ptr %10, align 4
%142 = load i32, ptr %8, align 4
%143 = ashr i32 %142, 1
store i32 %143, ptr %8, align 4
%144 = load ptr, ptr %6, align 8
%145 = load i32, ptr %10, align 4
%146 = sext i32 %145 to i64
%147 = getelementptr inbounds double, ptr %144, i64 %146
store double 1.000000e+00, ptr %147, align 8
%148 = load double, ptr %12, align 8
%149 = load ptr, ptr %6, align 8
%150 = load i32, ptr %10, align 4
%151 = add nsw i32 %150, 1
%152 = sext i32 %151 to i64
%153 = getelementptr inbounds double, ptr %149, i64 %152
store double %148, ptr %153, align 8
%154 = load i32, ptr %8, align 4
%155 = icmp eq i32 %154, 4
br i1 %155, label %156, label %181
156: ; preds = %138
%157 = load ptr, ptr %6, align 8
%158 = load i32, ptr %9, align 4
%159 = add nsw i32 %158, 4
%160 = sext i32 %159 to i64
%161 = getelementptr inbounds double, ptr %157, i64 %160
%162 = load double, ptr %161, align 8
store double %162, ptr %13, align 8
%163 = load ptr, ptr %6, align 8
%164 = load i32, ptr %9, align 4
%165 = add nsw i32 %164, 5
%166 = sext i32 %165 to i64
%167 = getelementptr inbounds double, ptr %163, i64 %166
%168 = load double, ptr %167, align 8
store double %168, ptr %14, align 8
%169 = load double, ptr %13, align 8
%170 = load ptr, ptr %6, align 8
%171 = load i32, ptr %10, align 4
%172 = add nsw i32 %171, 2
%173 = sext i32 %172 to i64
%174 = getelementptr inbounds double, ptr %170, i64 %173
store double %169, ptr %174, align 8
%175 = load double, ptr %14, align 8
%176 = load ptr, ptr %6, align 8
%177 = load i32, ptr %10, align 4
%178 = add nsw i32 %177, 3
%179 = sext i32 %178 to i64
%180 = getelementptr inbounds double, ptr %176, i64 %179
store double %175, ptr %180, align 8
br label %289
181: ; preds = %138
%182 = load i32, ptr %8, align 4
%183 = icmp sgt i32 %182, 4
br i1 %183, label %184, label %288
184: ; preds = %181
%185 = load ptr, ptr %6, align 8
%186 = load i32, ptr %9, align 4
%187 = add nsw i32 %186, 4
%188 = sext i32 %187 to i64
%189 = getelementptr inbounds double, ptr %185, i64 %188
%190 = load double, ptr %189, align 8
store double %190, ptr %13, align 8
%191 = load ptr, ptr %6, align 8
%192 = load i32, ptr %9, align 4
%193 = add nsw i32 %192, 6
%194 = sext i32 %193 to i64
%195 = getelementptr inbounds double, ptr %191, i64 %194
%196 = load double, ptr %195, align 8
store double %196, ptr %15, align 8
%197 = load double, ptr %13, align 8
%198 = fdiv double 5.000000e-01, %197
%199 = load ptr, ptr %6, align 8
%200 = load i32, ptr %10, align 4
%201 = add nsw i32 %200, 2
%202 = sext i32 %201 to i64
%203 = getelementptr inbounds double, ptr %199, i64 %202
store double %198, ptr %203, align 8
%204 = load double, ptr %15, align 8
%205 = fdiv double 5.000000e-01, %204
%206 = load ptr, ptr %6, align 8
%207 = load i32, ptr %10, align 4
%208 = add nsw i32 %207, 3
%209 = sext i32 %208 to i64
%210 = getelementptr inbounds double, ptr %206, i64 %209
store double %205, ptr %210, align 8
store i32 4, ptr %7, align 4
%211 = load i32, ptr %7, align 4
%212 = load i32, ptr %8, align 4
%213 = icmp slt i32 %211, %212
br i1 %213, label %.lr.ph2, label %287
.lr.ph2: ; preds = %184
br label %214
214: ; preds = %.lr.ph2, %281
%215 = load ptr, ptr %6, align 8
%216 = load i32, ptr %9, align 4
%217 = load i32, ptr %7, align 4
%218 = mul nsw i32 2, %217
%219 = add nsw i32 %216, %218
%220 = sext i32 %219 to i64
%221 = getelementptr inbounds double, ptr %215, i64 %220
%222 = load double, ptr %221, align 8
store double %222, ptr %13, align 8
%223 = load ptr, ptr %6, align 8
%224 = load i32, ptr %9, align 4
%225 = load i32, ptr %7, align 4
%226 = mul nsw i32 2, %225
%227 = add nsw i32 %224, %226
%228 = add nsw i32 %227, 1
%229 = sext i32 %228 to i64
%230 = getelementptr inbounds double, ptr %223, i64 %229
%231 = load double, ptr %230, align 8
store double %231, ptr %14, align 8
%232 = load ptr, ptr %6, align 8
%233 = load i32, ptr %9, align 4
%234 = load i32, ptr %7, align 4
%235 = mul nsw i32 2, %234
%236 = add nsw i32 %233, %235
%237 = add nsw i32 %236, 2
%238 = sext i32 %237 to i64
%239 = getelementptr inbounds double, ptr %232, i64 %238
%240 = load double, ptr %239, align 8
store double %240, ptr %15, align 8
%241 = load ptr, ptr %6, align 8
%242 = load i32, ptr %9, align 4
%243 = load i32, ptr %7, align 4
%244 = mul nsw i32 2, %243
%245 = add nsw i32 %242, %244
%246 = add nsw i32 %245, 3
%247 = sext i32 %246 to i64
%248 = getelementptr inbounds double, ptr %241, i64 %247
%249 = load double, ptr %248, align 8
store double %249, ptr %16, align 8
%250 = load double, ptr %13, align 8
%251 = load ptr, ptr %6, align 8
%252 = load i32, ptr %10, align 4
%253 = load i32, ptr %7, align 4
%254 = add nsw i32 %252, %253
%255 = sext i32 %254 to i64
%256 = getelementptr inbounds double, ptr %251, i64 %255
store double %250, ptr %256, align 8
%257 = load double, ptr %14, align 8
%258 = load ptr, ptr %6, align 8
%259 = load i32, ptr %10, align 4
%260 = load i32, ptr %7, align 4
%261 = add nsw i32 %259, %260
%262 = add nsw i32 %261, 1
%263 = sext i32 %262 to i64
%264 = getelementptr inbounds double, ptr %258, i64 %263
store double %257, ptr %264, align 8
%265 = load double, ptr %15, align 8
%266 = load ptr, ptr %6, align 8
%267 = load i32, ptr %10, align 4
%268 = load i32, ptr %7, align 4
%269 = add nsw i32 %267, %268
%270 = add nsw i32 %269, 2
%271 = sext i32 %270 to i64
%272 = getelementptr inbounds double, ptr %266, i64 %271
store double %265, ptr %272, align 8
%273 = load double, ptr %16, align 8
%274 = load ptr, ptr %6, align 8
%275 = load i32, ptr %10, align 4
%276 = load i32, ptr %7, align 4
%277 = add nsw i32 %275, %276
%278 = add nsw i32 %277, 3
%279 = sext i32 %278 to i64
%280 = getelementptr inbounds double, ptr %274, i64 %279
store double %273, ptr %280, align 8
br label %281
281: ; preds = %214
%282 = load i32, ptr %7, align 4
%283 = add nsw i32 %282, 4
store i32 %283, ptr %7, align 4
%284 = load i32, ptr %7, align 4
%285 = load i32, ptr %8, align 4
%286 = icmp slt i32 %284, %285
br i1 %286, label %214, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %281
br label %287
287: ; preds = %._crit_edge3, %184
br label %288
288: ; preds = %287, %181
br label %289
289: ; preds = %288, %156
%290 = load i32, ptr %10, align 4
store i32 %290, ptr %9, align 4
%291 = load i32, ptr %8, align 4
%292 = icmp sgt i32 %291, 2
br i1 %292, label %138, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %289
br label %293
293: ; preds = %._crit_edge6, %135
br label %294
294: ; preds = %293, %3
ret void
}
declare i32 @atan(double noundef) #1
declare double @cos(i32 noundef) #1
declare double @sin(i32 noundef) #1
declare void @makeipt(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmp5bnvi9dq.c'
source_filename = "/tmp/tmp5bnvi9dq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%2.4f \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 @show_vector(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %6
6: ; preds = %17, %2
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %10, label %20
10: ; preds = %6
%11 = load ptr, ptr %3, align 8
%12 = load i32, ptr %5, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds double, ptr %11, i64 %13
%15 = load double, ptr %14, align 8
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str, double noundef %15)
br label %17
17: ; preds = %10
%18 = load i32, ptr %5, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %5, align 4
br label %6, !llvm.loop !6
20: ; preds = %6
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5bnvi9dq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%2.4f \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 @show_vector(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
%6 = load i32, ptr %5, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %6, %7
br i1 %8, label %.lr.ph, label %22
.lr.ph: ; preds = %2
br label %9
9: ; preds = %.lr.ph, %16
%10 = load ptr, ptr %3, align 8
%11 = load i32, ptr %5, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds double, ptr %10, i64 %12
%14 = load double, ptr %13, align 8
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, double noundef %14)
br label %16
16: ; preds = %9
%17 = load i32, ptr %5, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %5, align 4
%19 = load i32, ptr %5, align 4
%20 = load i32, ptr %4, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %16
br label %22
22: ; preds = %._crit_edge, %2
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.