llvm-ir stringlengths 479 303k | llvm-optimized-ir stringlengths 468 303k |
|---|---|
; ModuleID = '/tmp/tmpazbdv77e.c'
source_filename = "/tmp/tmpazbdv77e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dup_line_until(ptr noundef %0, i8 noundef signext %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i8, align 1
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca [1024 x i8], align 16
store ptr %0, ptr %3, align 8
store i8 %1, ptr %4, align 1
%8 = load ptr, ptr %3, align 8
%9 = load ptr, ptr %8, align 8
store ptr %9, ptr %5, align 8
%10 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
store ptr %10, ptr %6, align 8
br label %11
11: ; preds = %36, %2
%12 = load ptr, ptr %5, align 8
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %34
16: ; preds = %11
%17 = load ptr, ptr %5, align 8
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = icmp ne i32 %19, 10
br i1 %20, label %21, label %34
21: ; preds = %16
%22 = load ptr, ptr %5, align 8
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = load i8, ptr %4, align 1
%26 = sext i8 %25 to i32
%27 = icmp ne i32 %24, %26
br i1 %27, label %28, label %34
28: ; preds = %21
%29 = load ptr, ptr %6, align 8
%30 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%31 = getelementptr inbounds i8, ptr %30, i64 1024
%32 = getelementptr inbounds i8, ptr %31, i64 -1
%33 = icmp ult ptr %29, %32
br label %34
34: ; preds = %28, %21, %16, %11
%35 = phi i1 [ false, %21 ], [ false, %16 ], [ false, %11 ], [ %33, %28 ]
br i1 %35, label %36, label %42
36: ; preds = %34
%37 = load ptr, ptr %5, align 8
%38 = getelementptr inbounds i8, ptr %37, i32 1
store ptr %38, ptr %5, align 8
%39 = load i8, ptr %37, align 1
%40 = load ptr, ptr %6, align 8
%41 = getelementptr inbounds i8, ptr %40, i32 1
store ptr %41, ptr %6, align 8
store i8 %39, ptr %40, align 1
br label %11, !llvm.loop !6
42: ; preds = %34
%43 = load ptr, ptr %6, align 8
store i8 0, ptr %43, align 1
%44 = load ptr, ptr %5, align 8
%45 = load ptr, ptr %3, align 8
store ptr %44, ptr %45, align 8
%46 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%47 = call ptr @strdup(ptr noundef %46)
ret ptr %47
}
declare ptr @strdup(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpazbdv77e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dup_line_until(ptr noundef %0, i8 noundef signext %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i8, align 1
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca [1024 x i8], align 16
store ptr %0, ptr %3, align 8
store i8 %1, ptr %4, align 1
%8 = load ptr, ptr %3, align 8
%9 = load ptr, ptr %8, align 8
store ptr %9, ptr %5, align 8
%10 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
store ptr %10, ptr %6, align 8
br label %11
11: ; preds = %36, %2
%12 = load ptr, ptr %5, align 8
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %34
16: ; preds = %11
%17 = load ptr, ptr %5, align 8
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = icmp ne i32 %19, 10
br i1 %20, label %21, label %34
21: ; preds = %16
%22 = load ptr, ptr %5, align 8
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = load i8, ptr %4, align 1
%26 = sext i8 %25 to i32
%27 = icmp ne i32 %24, %26
br i1 %27, label %28, label %34
28: ; preds = %21
%29 = load ptr, ptr %6, align 8
%30 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%31 = getelementptr inbounds i8, ptr %30, i64 1024
%32 = getelementptr inbounds i8, ptr %31, i64 -1
%33 = icmp ult ptr %29, %32
br label %34
34: ; preds = %28, %21, %16, %11
%35 = phi i1 [ false, %21 ], [ false, %16 ], [ false, %11 ], [ %33, %28 ]
br i1 %35, label %36, label %42
36: ; preds = %34
%37 = load ptr, ptr %5, align 8
%38 = getelementptr inbounds i8, ptr %37, i32 1
store ptr %38, ptr %5, align 8
%39 = load i8, ptr %37, align 1
%40 = load ptr, ptr %6, align 8
%41 = getelementptr inbounds i8, ptr %40, i32 1
store ptr %41, ptr %6, align 8
store i8 %39, ptr %40, align 1
br label %11, !llvm.loop !6
42: ; preds = %34
%43 = load ptr, ptr %6, align 8
store i8 0, ptr %43, align 1
%44 = load ptr, ptr %5, align 8
%45 = load ptr, ptr %3, align 8
store ptr %44, ptr %45, align 8
%46 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 0
%47 = call ptr @strdup(ptr noundef %46)
ret ptr %47
}
declare ptr @strdup(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpdxwk8n84.c'
source_filename = "/tmp/tmpdxwk8n84.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_FAILURE = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdxwk8n84.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EXIT_FAILURE = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpy4ciup1g.c'
source_filename = "/tmp/tmpy4ciup1g.c"
target datalayout = "e-m:e-p270: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/tmpy4ciup1g.c"
target datalayout = "e-m:e-p270: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/tmprnkbnebc.c'
source_filename = "/tmp/tmprnkbnebc.c"
target datalayout = "e-m:e-p270: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/tmprnkbnebc.c"
target datalayout = "e-m:e-p270: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/tmppa0of99p.c'
source_filename = "/tmp/tmppa0of99p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @vec_malloc(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call ptr @malloc(i32 noundef %3)
ret ptr %4
}
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/tmppa0of99p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @vec_malloc(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call ptr @malloc(i32 noundef %3)
ret ptr %4
}
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/tmp9134wg4f.c'
source_filename = "/tmp/tmp9134wg4f.c"
target datalayout = "e-m:e-p270: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/tmp9134wg4f.c"
target datalayout = "e-m:e-p270: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/tmpwczzv87_.c'
source_filename = "/tmp/tmpwczzv87_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Axis %d: %8d\0D\00", align 1
@stdout = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_position(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 @printf(ptr noundef @.str, i32 noundef %5, i32 noundef %6)
%8 = load i32, ptr @stdout, align 4
%9 = call i32 @fflush(i32 noundef %8)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @fflush(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwczzv87_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Axis %d: %8d\0D\00", align 1
@stdout = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_position(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 @printf(ptr noundef @.str, i32 noundef %5, i32 noundef %6)
%8 = load i32, ptr @stdout, align 4
%9 = call i32 @fflush(i32 noundef %8)
ret void
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @fflush(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjsq9onwo.c'
source_filename = "/tmp/tmpjsq9onwo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @GerarBarco(ptr 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
store ptr %0, ptr %2, align 8
store i32 1, ptr %3, align 4
store i32 3, ptr %4, align 4
br label %7
7: ; preds = %102, %1
%8 = load i32, ptr %3, align 4
%9 = icmp ne i32 %8, 0
br i1 %9, label %13, label %10
10: ; preds = %7
%11 = load i32, ptr %4, align 4
%12 = icmp ne i32 %11, 0
br label %13
13: ; preds = %10, %7
%14 = phi i1 [ true, %7 ], [ %12, %10 ]
br i1 %14, label %15, label %103
15: ; preds = %13
%16 = call i32 (...) @rand()
%17 = srem i32 %16, 6
store i32 %17, ptr %5, align 4
%18 = call i32 (...) @rand()
%19 = srem i32 %18, 4
store i32 %19, ptr %6, align 4
%20 = load i32, ptr %3, align 4
%21 = icmp sgt i32 %20, 0
br i1 %21, label %22, label %56
22: ; preds = %15
%23 = load i32, ptr %3, align 4
%24 = sub nsw i32 %23, 1
store i32 %24, ptr %3, align 4
%25 = load ptr, ptr %2, align 8
%26 = load i32, ptr %5, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [7 x i32], ptr %25, i64 %27
%29 = load i32, ptr %6, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [7 x i32], ptr %28, i64 0, i64 %30
store i32 4, ptr %31, align 4
%32 = load ptr, ptr %2, align 8
%33 = load i32, ptr %5, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [7 x i32], ptr %32, i64 %34
%36 = load i32, ptr %6, align 4
%37 = add nsw i32 %36, 1
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [7 x i32], ptr %35, i64 0, i64 %38
store i32 4, ptr %39, align 4
%40 = load ptr, ptr %2, align 8
%41 = load i32, ptr %5, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [7 x i32], ptr %40, i64 %42
%44 = load i32, ptr %6, align 4
%45 = add nsw i32 %44, 2
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [7 x i32], ptr %43, i64 0, i64 %46
store i32 4, ptr %47, align 4
%48 = load ptr, ptr %2, align 8
%49 = load i32, ptr %5, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [7 x i32], ptr %48, i64 %50
%52 = load i32, ptr %6, align 4
%53 = add nsw i32 %52, 3
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [7 x i32], ptr %51, i64 0, i64 %54
store i32 4, ptr %55, align 4
br label %56
56: ; preds = %22, %15
%57 = call i32 (...) @rand()
%58 = srem i32 %57, 6
store i32 %58, ptr %5, align 4
%59 = call i32 (...) @rand()
%60 = srem i32 %59, 6
store i32 %60, ptr %6, align 4
%61 = load i32, ptr %4, align 4
%62 = icmp sgt i32 %61, 0
br i1 %62, label %63, label %102
63: ; preds = %56
%64 = load ptr, ptr %2, align 8
%65 = load i32, ptr %5, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [7 x i32], ptr %64, i64 %66
%68 = load i32, ptr %6, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds [7 x i32], ptr %67, i64 0, i64 %69
%71 = load i32, ptr %70, align 4
%72 = icmp sle i32 %71, 0
br i1 %72, label %73, label %102
73: ; preds = %63
%74 = load ptr, ptr %2, align 8
%75 = load i32, ptr %5, align 4
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds [7 x i32], ptr %74, i64 %76
%78 = load i32, ptr %6, align 4
%79 = add nsw i32 %78, 1
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds [7 x i32], ptr %77, i64 0, i64 %80
%82 = load i32, ptr %81, align 4
%83 = icmp sle i32 %82, 0
br i1 %83, label %84, label %102
84: ; preds = %73
%85 = load i32, ptr %4, align 4
%86 = sub nsw i32 %85, 1
store i32 %86, ptr %4, align 4
%87 = load ptr, ptr %2, align 8
%88 = load i32, ptr %5, align 4
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds [7 x i32], ptr %87, i64 %89
%91 = load i32, ptr %6, align 4
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds [7 x i32], ptr %90, i64 0, i64 %92
store i32 2, ptr %93, align 4
%94 = load ptr, ptr %2, align 8
%95 = load i32, ptr %5, align 4
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds [7 x i32], ptr %94, i64 %96
%98 = load i32, ptr %6, align 4
%99 = add nsw i32 %98, 1
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds [7 x i32], ptr %97, i64 0, i64 %100
store i32 2, ptr %101, align 4
br label %102
102: ; preds = %84, %73, %63, %56
br label %7, !llvm.loop !6
103: ; preds = %13
ret void
}
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/tmpjsq9onwo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @GerarBarco(ptr 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
store ptr %0, ptr %2, align 8
store i32 1, ptr %3, align 4
store i32 3, ptr %4, align 4
br label %7
7: ; preds = %102, %1
%8 = load i32, ptr %3, align 4
%9 = icmp ne i32 %8, 0
br i1 %9, label %13, label %10
10: ; preds = %7
%11 = load i32, ptr %4, align 4
%12 = icmp ne i32 %11, 0
br label %13
13: ; preds = %10, %7
%14 = phi i1 [ true, %7 ], [ %12, %10 ]
br i1 %14, label %15, label %103
15: ; preds = %13
%16 = call i32 (...) @rand()
%17 = srem i32 %16, 6
store i32 %17, ptr %5, align 4
%18 = call i32 (...) @rand()
%19 = srem i32 %18, 4
store i32 %19, ptr %6, align 4
%20 = load i32, ptr %3, align 4
%21 = icmp sgt i32 %20, 0
br i1 %21, label %22, label %56
22: ; preds = %15
%23 = load i32, ptr %3, align 4
%24 = sub nsw i32 %23, 1
store i32 %24, ptr %3, align 4
%25 = load ptr, ptr %2, align 8
%26 = load i32, ptr %5, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [7 x i32], ptr %25, i64 %27
%29 = load i32, ptr %6, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [7 x i32], ptr %28, i64 0, i64 %30
store i32 4, ptr %31, align 4
%32 = load ptr, ptr %2, align 8
%33 = load i32, ptr %5, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [7 x i32], ptr %32, i64 %34
%36 = load i32, ptr %6, align 4
%37 = add nsw i32 %36, 1
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [7 x i32], ptr %35, i64 0, i64 %38
store i32 4, ptr %39, align 4
%40 = load ptr, ptr %2, align 8
%41 = load i32, ptr %5, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [7 x i32], ptr %40, i64 %42
%44 = load i32, ptr %6, align 4
%45 = add nsw i32 %44, 2
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [7 x i32], ptr %43, i64 0, i64 %46
store i32 4, ptr %47, align 4
%48 = load ptr, ptr %2, align 8
%49 = load i32, ptr %5, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [7 x i32], ptr %48, i64 %50
%52 = load i32, ptr %6, align 4
%53 = add nsw i32 %52, 3
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [7 x i32], ptr %51, i64 0, i64 %54
store i32 4, ptr %55, align 4
br label %56
56: ; preds = %22, %15
%57 = call i32 (...) @rand()
%58 = srem i32 %57, 6
store i32 %58, ptr %5, align 4
%59 = call i32 (...) @rand()
%60 = srem i32 %59, 6
store i32 %60, ptr %6, align 4
%61 = load i32, ptr %4, align 4
%62 = icmp sgt i32 %61, 0
br i1 %62, label %63, label %102
63: ; preds = %56
%64 = load ptr, ptr %2, align 8
%65 = load i32, ptr %5, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [7 x i32], ptr %64, i64 %66
%68 = load i32, ptr %6, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds [7 x i32], ptr %67, i64 0, i64 %69
%71 = load i32, ptr %70, align 4
%72 = icmp sle i32 %71, 0
br i1 %72, label %73, label %102
73: ; preds = %63
%74 = load ptr, ptr %2, align 8
%75 = load i32, ptr %5, align 4
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds [7 x i32], ptr %74, i64 %76
%78 = load i32, ptr %6, align 4
%79 = add nsw i32 %78, 1
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds [7 x i32], ptr %77, i64 0, i64 %80
%82 = load i32, ptr %81, align 4
%83 = icmp sle i32 %82, 0
br i1 %83, label %84, label %102
84: ; preds = %73
%85 = load i32, ptr %4, align 4
%86 = sub nsw i32 %85, 1
store i32 %86, ptr %4, align 4
%87 = load ptr, ptr %2, align 8
%88 = load i32, ptr %5, align 4
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds [7 x i32], ptr %87, i64 %89
%91 = load i32, ptr %6, align 4
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds [7 x i32], ptr %90, i64 0, i64 %92
store i32 2, ptr %93, align 4
%94 = load ptr, ptr %2, align 8
%95 = load i32, ptr %5, align 4
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds [7 x i32], ptr %94, i64 %96
%98 = load i32, ptr %6, align 4
%99 = add nsw i32 %98, 1
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds [7 x i32], ptr %97, i64 0, i64 %100
store i32 2, ptr %101, align 4
br label %102
102: ; preds = %84, %73, %63, %56
br label %7, !llvm.loop !6
103: ; preds = %13
ret void
}
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/tmpbkquagu2.c'
source_filename = "/tmp/tmpbkquagu2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
@.str = private unnamed_addr constant [12 x i8] c"./cmd/%s/%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @cmdpath(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca %struct.stat, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
%10 = load ptr, ptr %5, align 8
%11 = load i32, ptr %6, align 4
%12 = load ptr, ptr %7, align 8
%13 = load ptr, ptr %7, align 8
%14 = call i32 @snprintf(ptr noundef %10, i32 noundef %11, ptr noundef @.str, ptr noundef %12, ptr noundef %13)
store i32 %14, ptr %8, align 4
%15 = load i32, ptr %8, align 4
%16 = icmp sgt i32 %15, 0
%17 = zext i1 %16 to i32
%18 = call i32 @assert(i32 noundef %17)
%19 = load ptr, ptr %5, align 8
%20 = call i32 @stat(ptr noundef %19, ptr noundef %9)
%21 = icmp ne i32 %20, -1
br i1 %21, label %22, label %24
22: ; preds = %3
%23 = load i32, ptr %8, align 4
store i32 %23, ptr %4, align 4
br label %31
24: ; preds = %3
%25 = load ptr, ptr %7, align 8
%26 = call i32 @strlen(ptr noundef %25)
store i32 %26, ptr %8, align 4
%27 = load ptr, ptr %5, align 8
%28 = load ptr, ptr %7, align 8
%29 = call i32 @strcpy(ptr noundef %27, ptr noundef %28)
%30 = load i32, ptr %8, align 4
store i32 %30, ptr %4, align 4
br label %31
31: ; preds = %24, %22
%32 = load i32, ptr %4, align 4
ret i32 %32
}
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @assert(i32 noundef) #1
declare i32 @stat(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbkquagu2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
@.str = private unnamed_addr constant [12 x i8] c"./cmd/%s/%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @cmdpath(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca %struct.stat, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store ptr %2, ptr %7, align 8
%10 = load ptr, ptr %5, align 8
%11 = load i32, ptr %6, align 4
%12 = load ptr, ptr %7, align 8
%13 = load ptr, ptr %7, align 8
%14 = call i32 @snprintf(ptr noundef %10, i32 noundef %11, ptr noundef @.str, ptr noundef %12, ptr noundef %13)
store i32 %14, ptr %8, align 4
%15 = load i32, ptr %8, align 4
%16 = icmp sgt i32 %15, 0
%17 = zext i1 %16 to i32
%18 = call i32 @assert(i32 noundef %17)
%19 = load ptr, ptr %5, align 8
%20 = call i32 @stat(ptr noundef %19, ptr noundef %9)
%21 = icmp ne i32 %20, -1
br i1 %21, label %22, label %24
22: ; preds = %3
%23 = load i32, ptr %8, align 4
store i32 %23, ptr %4, align 4
br label %31
24: ; preds = %3
%25 = load ptr, ptr %7, align 8
%26 = call i32 @strlen(ptr noundef %25)
store i32 %26, ptr %8, align 4
%27 = load ptr, ptr %5, align 8
%28 = load ptr, ptr %7, align 8
%29 = call i32 @strcpy(ptr noundef %27, ptr noundef %28)
%30 = load i32, ptr %8, align 4
store i32 %30, ptr %4, align 4
br label %31
31: ; preds = %24, %22
%32 = load i32, ptr %4, align 4
ret i32 %32
}
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @assert(i32 noundef) #1
declare i32 @stat(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpz_dr3ig2.c'
source_filename = "/tmp/tmpz_dr3ig2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @do_abort() #0 {
%1 = call i32 (...) @abort() #2
unreachable
}
; Function Attrs: noreturn
declare i32 @abort(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpz_dr3ig2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @do_abort() #0 {
%1 = call i32 (...) @abort() #2
unreachable
}
; Function Attrs: noreturn
declare i32 @abort(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpflcrxpfo.c'
source_filename = "/tmp/tmpflcrxpfo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @calculateSubgridError_Harari_tau_sd(i32 noundef %0, i32 noundef %1, i32 noundef %2, double noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8) #0 {
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca double, align 8
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca ptr, align 8
%18 = alloca ptr, align 8
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca i32, align 4
%24 = alloca double, align 8
%25 = alloca double, align 8
%26 = alloca double, align 8
%27 = alloca double, align 8
%28 = alloca double, align 8
store i32 %0, ptr %10, align 4
store i32 %1, ptr %11, align 4
store i32 %2, ptr %12, align 4
store double %3, ptr %13, align 8
store ptr %4, ptr %14, align 8
store ptr %5, ptr %15, align 8
store ptr %6, ptr %16, align 8
store ptr %7, ptr %17, align 8
store ptr %8, ptr %18, align 8
%29 = load ptr, ptr %14, align 8
%30 = load i32, ptr %12, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i32, ptr %29, i64 %31
%33 = load i32, ptr %32, align 4
store i32 %33, ptr %23, align 4
store i32 0, ptr %19, align 4
br label %34
34: ; preds = %158, %9
%35 = load i32, ptr %19, align 4
%36 = load i32, ptr %10, align 4
%37 = icmp slt i32 %35, %36
br i1 %37, label %38, label %161
38: ; preds = %34
%39 = load ptr, ptr %16, align 8
%40 = load i32, ptr %19, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds double, ptr %39, i64 %41
%43 = load double, ptr %42, align 8
store double %43, ptr %24, align 8
store double 0.000000e+00, ptr %27, align 8
store i32 0, ptr %20, align 4
br label %44
44: ; preds = %154, %38
%45 = load i32, ptr %20, align 4
%46 = load i32, ptr %11, align 4
%47 = icmp slt i32 %45, %46
br i1 %47, label %48, label %157
48: ; preds = %44
store double 0.000000e+00, ptr %25, align 8
store i32 0, ptr %21, align 4
br label %49
49: ; preds = %106, %48
%50 = load i32, ptr %21, align 4
%51 = load i32, ptr %12, align 4
%52 = icmp slt i32 %50, %51
br i1 %52, label %53, label %109
53: ; preds = %49
%54 = load ptr, ptr %14, align 8
%55 = load i32, ptr %21, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds i32, ptr %54, i64 %56
%58 = load i32, ptr %57, align 4
store i32 %58, ptr %22, align 4
br label %59
59: ; preds = %102, %53
%60 = load i32, ptr %22, align 4
%61 = load ptr, ptr %14, align 8
%62 = load i32, ptr %21, align 4
%63 = add nsw i32 %62, 1
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds i32, ptr %61, i64 %64
%66 = load i32, ptr %65, align 4
%67 = icmp slt i32 %60, %66
br i1 %67, label %68, label %105
68: ; preds = %59
%69 = load i32, ptr %21, align 4
%70 = load ptr, ptr %15, align 8
%71 = load i32, ptr %22, align 4
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds i32, ptr %70, i64 %72
%74 = load i32, ptr %73, align 4
%75 = icmp eq i32 %69, %74
br i1 %75, label %76, label %101
76: ; preds = %68
%77 = load ptr, ptr %17, align 8
%78 = load i32, ptr %19, align 4
%79 = load i32, ptr %11, align 4
%80 = mul nsw i32 %78, %79
%81 = load i32, ptr %23, align 4
%82 = mul nsw i32 %80, %81
%83 = load i32, ptr %20, align 4
%84 = load i32, ptr %23, align 4
%85 = mul nsw i32 %83, %84
%86 = add nsw i32 %82, %85
%87 = load i32, ptr %22, align 4
%88 = add nsw i32 %86, %87
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds double, ptr %77, i64 %89
%91 = load double, ptr %90, align 8
store double %91, ptr %26, align 8
%92 = load double, ptr %26, align 8
%93 = load double, ptr %25, align 8
%94 = fcmp ogt double %92, %93
br i1 %94, label %95, label %97
95: ; preds = %76
%96 = load double, ptr %26, align 8
br label %99
97: ; preds = %76
%98 = load double, ptr %25, align 8
br label %99
99: ; preds = %97, %95
%100 = phi double [ %96, %95 ], [ %98, %97 ]
store double %100, ptr %25, align 8
br label %101
101: ; preds = %99, %68
br label %102
102: ; preds = %101
%103 = load i32, ptr %22, align 4
%104 = add nsw i32 %103, 1
store i32 %104, ptr %22, align 4
br label %59, !llvm.loop !6
105: ; preds = %59
br label %106
106: ; preds = %105
%107 = load i32, ptr %21, align 4
%108 = add nsw i32 %107, 1
store i32 %108, ptr %21, align 4
br label %49, !llvm.loop !8
109: ; preds = %49
%110 = load double, ptr %25, align 8
%111 = fcmp ogt double %110, 0.000000e+00
br i1 %111, label %112, label %125
112: ; preds = %109
%113 = load double, ptr %24, align 8
%114 = load double, ptr %25, align 8
%115 = load double, ptr %13, align 8
%116 = fmul double %114, %115
%117 = fdiv double %113, %116
store double %117, ptr %28, align 8
%118 = load double, ptr %28, align 8
%119 = fcmp ogt double %118, 2.000000e+01
br i1 %119, label %120, label %121
120: ; preds = %112
br label %123
121: ; preds = %112
%122 = load double, ptr %28, align 8
br label %123
123: ; preds = %121, %120
%124 = phi double [ 2.000000e+01, %120 ], [ %122, %121 ]
store double %124, ptr %28, align 8
br label %125
125: ; preds = %123, %109
%126 = load double, ptr %13, align 8
%127 = load double, ptr %25, align 8
%128 = fmul double 6.000000e+00, %127
%129 = load double, ptr %13, align 8
%130 = fmul double %128, %129
%131 = load double, ptr %13, align 8
%132 = fmul double %130, %131
%133 = load double, ptr %24, align 8
%134 = load double, ptr %24, align 8
%135 = fmul double %133, %134
%136 = fdiv double %132, %135
%137 = load double, ptr %28, align 8
%138 = call double @cosh(double noundef %137) #2
%139 = fsub double 1.000000e+00, %138
%140 = fmul double %136, %139
%141 = load double, ptr %28, align 8
%142 = call double @cosh(double noundef %141) #2
%143 = fadd double 2.000000e+00, %142
%144 = fdiv double %140, %143
%145 = fadd double %126, %144
%146 = load ptr, ptr %18, align 8
%147 = load i32, ptr %19, align 4
%148 = load i32, ptr %11, align 4
%149 = mul nsw i32 %147, %148
%150 = load i32, ptr %20, align 4
%151 = add nsw i32 %149, %150
%152 = sext i32 %151 to i64
%153 = getelementptr inbounds double, ptr %146, i64 %152
store double %145, ptr %153, align 8
br label %154
154: ; preds = %125
%155 = load i32, ptr %20, align 4
%156 = add nsw i32 %155, 1
store i32 %156, ptr %20, align 4
br label %44, !llvm.loop !9
157: ; preds = %44
br label %158
158: ; preds = %157
%159 = load i32, ptr %19, align 4
%160 = add nsw i32 %159, 1
store i32 %160, ptr %19, align 4
br label %34, !llvm.loop !10
161: ; preds = %34
ret void
}
; Function Attrs: nounwind
declare double @cosh(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpflcrxpfo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @calculateSubgridError_Harari_tau_sd(i32 noundef %0, i32 noundef %1, i32 noundef %2, double noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8) #0 {
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca double, align 8
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca ptr, align 8
%18 = alloca ptr, align 8
%19 = alloca i32, align 4
%20 = alloca i32, align 4
%21 = alloca i32, align 4
%22 = alloca i32, align 4
%23 = alloca i32, align 4
%24 = alloca double, align 8
%25 = alloca double, align 8
%26 = alloca double, align 8
%27 = alloca double, align 8
%28 = alloca double, align 8
store i32 %0, ptr %10, align 4
store i32 %1, ptr %11, align 4
store i32 %2, ptr %12, align 4
store double %3, ptr %13, align 8
store ptr %4, ptr %14, align 8
store ptr %5, ptr %15, align 8
store ptr %6, ptr %16, align 8
store ptr %7, ptr %17, align 8
store ptr %8, ptr %18, align 8
%29 = load ptr, ptr %14, align 8
%30 = load i32, ptr %12, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i32, ptr %29, i64 %31
%33 = load i32, ptr %32, align 4
store i32 %33, ptr %23, align 4
store i32 0, ptr %19, align 4
%34 = load i32, ptr %19, align 4
%35 = load i32, ptr %10, align 4
%36 = icmp slt i32 %34, %35
br i1 %36, label %.lr.ph8, label %174
.lr.ph8: ; preds = %9
br label %37
37: ; preds = %.lr.ph8, %168
%38 = load ptr, ptr %16, align 8
%39 = load i32, ptr %19, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds double, ptr %38, i64 %40
%42 = load double, ptr %41, align 8
store double %42, ptr %24, align 8
store double 0.000000e+00, ptr %27, align 8
store i32 0, ptr %20, align 4
%43 = load i32, ptr %20, align 4
%44 = load i32, ptr %11, align 4
%45 = icmp slt i32 %43, %44
br i1 %45, label %.lr.ph5, label %167
.lr.ph5: ; preds = %37
br label %46
46: ; preds = %.lr.ph5, %161
store double 0.000000e+00, ptr %25, align 8
store i32 0, ptr %21, align 4
%47 = load i32, ptr %21, align 4
%48 = load i32, ptr %12, align 4
%49 = icmp slt i32 %47, %48
br i1 %49, label %.lr.ph2, label %116
.lr.ph2: ; preds = %46
br label %50
50: ; preds = %.lr.ph2, %110
%51 = load ptr, ptr %14, align 8
%52 = load i32, ptr %21, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i32, ptr %51, i64 %53
%55 = load i32, ptr %54, align 4
store i32 %55, ptr %22, align 4
%56 = load i32, ptr %22, align 4
%57 = load ptr, ptr %14, align 8
%58 = load i32, ptr %21, align 4
%59 = add nsw i32 %58, 1
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds i32, ptr %57, i64 %60
%62 = load i32, ptr %61, align 4
%63 = icmp slt i32 %56, %62
br i1 %63, label %.lr.ph, label %109
.lr.ph: ; preds = %50
br label %64
64: ; preds = %.lr.ph, %98
%65 = load i32, ptr %21, align 4
%66 = load ptr, ptr %15, align 8
%67 = load i32, ptr %22, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds i32, ptr %66, i64 %68
%70 = load i32, ptr %69, align 4
%71 = icmp eq i32 %65, %70
br i1 %71, label %72, label %97
72: ; preds = %64
%73 = load ptr, ptr %17, align 8
%74 = load i32, ptr %19, align 4
%75 = load i32, ptr %11, align 4
%76 = mul nsw i32 %74, %75
%77 = load i32, ptr %23, align 4
%78 = mul nsw i32 %76, %77
%79 = load i32, ptr %20, align 4
%80 = load i32, ptr %23, align 4
%81 = mul nsw i32 %79, %80
%82 = add nsw i32 %78, %81
%83 = load i32, ptr %22, align 4
%84 = add nsw i32 %82, %83
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds double, ptr %73, i64 %85
%87 = load double, ptr %86, align 8
store double %87, ptr %26, align 8
%88 = load double, ptr %26, align 8
%89 = load double, ptr %25, align 8
%90 = fcmp ogt double %88, %89
br i1 %90, label %91, label %93
91: ; preds = %72
%92 = load double, ptr %26, align 8
br label %95
93: ; preds = %72
%94 = load double, ptr %25, align 8
br label %95
95: ; preds = %93, %91
%96 = phi double [ %92, %91 ], [ %94, %93 ]
store double %96, ptr %25, align 8
br label %97
97: ; preds = %95, %64
br label %98
98: ; preds = %97
%99 = load i32, ptr %22, align 4
%100 = add nsw i32 %99, 1
store i32 %100, ptr %22, align 4
%101 = load i32, ptr %22, align 4
%102 = load ptr, ptr %14, align 8
%103 = load i32, ptr %21, align 4
%104 = add nsw i32 %103, 1
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds i32, ptr %102, i64 %105
%107 = load i32, ptr %106, align 4
%108 = icmp slt i32 %101, %107
br i1 %108, label %64, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %98
br label %109
109: ; preds = %._crit_edge, %50
br label %110
110: ; preds = %109
%111 = load i32, ptr %21, align 4
%112 = add nsw i32 %111, 1
store i32 %112, ptr %21, align 4
%113 = load i32, ptr %21, align 4
%114 = load i32, ptr %12, align 4
%115 = icmp slt i32 %113, %114
br i1 %115, label %50, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %110
br label %116
116: ; preds = %._crit_edge3, %46
%117 = load double, ptr %25, align 8
%118 = fcmp ogt double %117, 0.000000e+00
br i1 %118, label %119, label %132
119: ; preds = %116
%120 = load double, ptr %24, align 8
%121 = load double, ptr %25, align 8
%122 = load double, ptr %13, align 8
%123 = fmul double %121, %122
%124 = fdiv double %120, %123
store double %124, ptr %28, align 8
%125 = load double, ptr %28, align 8
%126 = fcmp ogt double %125, 2.000000e+01
br i1 %126, label %127, label %128
127: ; preds = %119
br label %130
128: ; preds = %119
%129 = load double, ptr %28, align 8
br label %130
130: ; preds = %128, %127
%131 = phi double [ 2.000000e+01, %127 ], [ %129, %128 ]
store double %131, ptr %28, align 8
br label %132
132: ; preds = %130, %116
%133 = load double, ptr %13, align 8
%134 = load double, ptr %25, align 8
%135 = fmul double 6.000000e+00, %134
%136 = load double, ptr %13, align 8
%137 = fmul double %135, %136
%138 = load double, ptr %13, align 8
%139 = fmul double %137, %138
%140 = load double, ptr %24, align 8
%141 = load double, ptr %24, align 8
%142 = fmul double %140, %141
%143 = fdiv double %139, %142
%144 = load double, ptr %28, align 8
%145 = call double @cosh(double noundef %144) #2
%146 = fsub double 1.000000e+00, %145
%147 = fmul double %143, %146
%148 = load double, ptr %28, align 8
%149 = call double @cosh(double noundef %148) #2
%150 = fadd double 2.000000e+00, %149
%151 = fdiv double %147, %150
%152 = fadd double %133, %151
%153 = load ptr, ptr %18, align 8
%154 = load i32, ptr %19, align 4
%155 = load i32, ptr %11, align 4
%156 = mul nsw i32 %154, %155
%157 = load i32, ptr %20, align 4
%158 = add nsw i32 %156, %157
%159 = sext i32 %158 to i64
%160 = getelementptr inbounds double, ptr %153, i64 %159
store double %152, ptr %160, align 8
br label %161
161: ; preds = %132
%162 = load i32, ptr %20, align 4
%163 = add nsw i32 %162, 1
store i32 %163, ptr %20, align 4
%164 = load i32, ptr %20, align 4
%165 = load i32, ptr %11, align 4
%166 = icmp slt i32 %164, %165
br i1 %166, label %46, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %161
br label %167
167: ; preds = %._crit_edge6, %37
br label %168
168: ; preds = %167
%169 = load i32, ptr %19, align 4
%170 = add nsw i32 %169, 1
store i32 %170, ptr %19, align 4
%171 = load i32, ptr %19, align 4
%172 = load i32, ptr %10, align 4
%173 = icmp slt i32 %171, %172
br i1 %173, label %37, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %168
br label %174
174: ; preds = %._crit_edge9, %9
ret void
}
; Function Attrs: nounwind
declare double @cosh(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpnhmkc20x.c'
source_filename = "/tmp/tmpnhmkc20x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 -1431655766, ptr %2, align 4
store i32 1431655765, ptr %3, align 4
%5 = load i32, ptr %2, align 4
%6 = call i32 @f1(i32 noundef %5)
store i32 %6, ptr %4, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp ne i32 %7, -43383508
br i1 %8, label %9, label %11
9: ; preds = %0
%10 = call i32 (...) @abort() #3
unreachable
11: ; preds = %0
%12 = load i32, ptr %3, align 4
%13 = call i32 @f1(i32 noundef %12)
store i32 %13, ptr %4, align 4
%14 = load i32, ptr %4, align 4
%15 = icmp ne i32 %14, 43383508
br i1 %15, label %16, label %18
16: ; preds = %11
%17 = call i32 (...) @abort() #3
unreachable
18: ; preds = %11
%19 = load i32, ptr %2, align 4
%20 = call i32 @f2(i32 noundef %19)
store i32 %20, ptr %4, align 4
%21 = load i32, ptr %4, align 4
%22 = icmp ne i32 %21, -18592932
br i1 %22, label %23, label %25
23: ; preds = %18
%24 = call i32 (...) @abort() #3
unreachable
25: ; preds = %18
%26 = load i32, ptr %3, align 4
%27 = call i32 @f2(i32 noundef %26)
store i32 %27, ptr %4, align 4
%28 = load i32, ptr %4, align 4
%29 = icmp ne i32 %28, 18592932
br i1 %29, label %30, label %32
30: ; preds = %25
%31 = call i32 (...) @abort() #3
unreachable
32: ; preds = %25
ret i32 0
}
declare i32 @f1(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
declare i32 @f2(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmpnhmkc20x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 -1431655766, ptr %2, align 4
store i32 1431655765, ptr %3, align 4
%5 = load i32, ptr %2, align 4
%6 = call i32 @f1(i32 noundef %5)
store i32 %6, ptr %4, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp ne i32 %7, -43383508
br i1 %8, label %9, label %11
9: ; preds = %0
%10 = call i32 (...) @abort() #3
unreachable
11: ; preds = %0
%12 = load i32, ptr %3, align 4
%13 = call i32 @f1(i32 noundef %12)
store i32 %13, ptr %4, align 4
%14 = load i32, ptr %4, align 4
%15 = icmp ne i32 %14, 43383508
br i1 %15, label %16, label %18
16: ; preds = %11
%17 = call i32 (...) @abort() #3
unreachable
18: ; preds = %11
%19 = load i32, ptr %2, align 4
%20 = call i32 @f2(i32 noundef %19)
store i32 %20, ptr %4, align 4
%21 = load i32, ptr %4, align 4
%22 = icmp ne i32 %21, -18592932
br i1 %22, label %23, label %25
23: ; preds = %18
%24 = call i32 (...) @abort() #3
unreachable
25: ; preds = %18
%26 = load i32, ptr %3, align 4
%27 = call i32 @f2(i32 noundef %26)
store i32 %27, ptr %4, align 4
%28 = load i32, ptr %4, align 4
%29 = icmp ne i32 %28, 18592932
br i1 %29, label %30, label %32
30: ; preds = %25
%31 = call i32 (...) @abort() #3
unreachable
32: ; preds = %25
ret i32 0
}
declare i32 @f1(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
declare i32 @f2(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-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/tmpqq3gru_w.c'
source_filename = "/tmp/tmpqq3gru_w.c"
target datalayout = "e-m:e-p270: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/tmpqq3gru_w.c"
target datalayout = "e-m:e-p270: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/tmpb8gooyfa.c'
source_filename = "/tmp/tmpb8gooyfa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"debug hook\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @debugHook() #0 {
%1 = alloca ptr, align 8
store ptr @.str, ptr %1, align 8
%2 = load ptr, ptr %1, align 8
%3 = call i32 @printf(ptr noundef @.str.1, ptr noundef %2)
ret void
}
declare i32 @printf(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/tmpb8gooyfa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"debug hook\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @debugHook() #0 {
%1 = alloca ptr, align 8
store ptr @.str, ptr %1, align 8
%2 = load ptr, ptr %1, align 8
%3 = call i32 @printf(ptr noundef @.str.1, ptr noundef %2)
ret void
}
declare i32 @printf(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/tmp574khia8.c'
source_filename = "/tmp/tmp574khia8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [33 x i8] c"Enter the first (single) digit: \00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%1d\00", align 1
@.str.2 = private unnamed_addr constant [35 x i8] c"Enter first group of five digits: \00", align 1
@.str.3 = private unnamed_addr constant [16 x i8] c"%1d%1d%1d%1d%1d\00", align 1
@.str.4 = private unnamed_addr constant [36 x i8] c"Enter second group of five digits: \00", align 1
@.str.5 = private unnamed_addr constant [17 x i8] c"Check digit: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
store i32 0, ptr %1, align 4
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%17 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %2)
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%19 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.3, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7)
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%21 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.3, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12)
%22 = load i32, ptr %2, align 4
%23 = load i32, ptr %4, align 4
%24 = add nsw i32 %22, %23
%25 = load i32, ptr %6, align 4
%26 = add nsw i32 %24, %25
%27 = load i32, ptr %8, align 4
%28 = add nsw i32 %26, %27
%29 = load i32, ptr %10, align 4
%30 = add nsw i32 %28, %29
%31 = load i32, ptr %12, align 4
%32 = add nsw i32 %30, %31
store i32 %32, ptr %13, align 4
%33 = load i32, ptr %3, align 4
%34 = load i32, ptr %5, align 4
%35 = add nsw i32 %33, %34
%36 = load i32, ptr %7, align 4
%37 = add nsw i32 %35, %36
%38 = load i32, ptr %9, align 4
%39 = add nsw i32 %37, %38
%40 = load i32, ptr %11, align 4
%41 = add nsw i32 %39, %40
store i32 %41, ptr %14, align 4
%42 = load i32, ptr %13, align 4
%43 = mul nsw i32 3, %42
%44 = load i32, ptr %14, align 4
%45 = add nsw i32 %43, %44
store i32 %45, ptr %15, align 4
%46 = load i32, ptr %15, align 4
%47 = sub nsw i32 %46, 1
%48 = srem i32 %47, 10
%49 = sub nsw i32 9, %48
%50 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %49)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp574khia8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [33 x i8] c"Enter the first (single) digit: \00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%1d\00", align 1
@.str.2 = private unnamed_addr constant [35 x i8] c"Enter first group of five digits: \00", align 1
@.str.3 = private unnamed_addr constant [16 x i8] c"%1d%1d%1d%1d%1d\00", align 1
@.str.4 = private unnamed_addr constant [36 x i8] c"Enter second group of five digits: \00", align 1
@.str.5 = private unnamed_addr constant [17 x i8] c"Check digit: %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca i32, align 4
store i32 0, ptr %1, align 4
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%17 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %2)
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%19 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.3, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7)
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%21 = call i32 (ptr, ptr, ...) @scanf(ptr noundef @.str.3, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12)
%22 = load i32, ptr %2, align 4
%23 = load i32, ptr %4, align 4
%24 = add nsw i32 %22, %23
%25 = load i32, ptr %6, align 4
%26 = add nsw i32 %24, %25
%27 = load i32, ptr %8, align 4
%28 = add nsw i32 %26, %27
%29 = load i32, ptr %10, align 4
%30 = add nsw i32 %28, %29
%31 = load i32, ptr %12, align 4
%32 = add nsw i32 %30, %31
store i32 %32, ptr %13, align 4
%33 = load i32, ptr %3, align 4
%34 = load i32, ptr %5, align 4
%35 = add nsw i32 %33, %34
%36 = load i32, ptr %7, align 4
%37 = add nsw i32 %35, %36
%38 = load i32, ptr %9, align 4
%39 = add nsw i32 %37, %38
%40 = load i32, ptr %11, align 4
%41 = add nsw i32 %39, %40
store i32 %41, ptr %14, align 4
%42 = load i32, ptr %13, align 4
%43 = mul nsw i32 3, %42
%44 = load i32, ptr %14, align 4
%45 = add nsw i32 %43, %44
store i32 %45, ptr %15, align 4
%46 = load i32, ptr %15, align 4
%47 = sub nsw i32 %46, 1
%48 = srem i32 %47, 10
%49 = sub nsw i32 9, %48
%50 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %49)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzs8xtc8b.c'
source_filename = "/tmp/tmpzs8xtc8b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @substitute(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = 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
store i32 %3, ptr %8, align 4
%14 = load i32, ptr %7, align 4
%15 = icmp sgt i32 %14, 0
br i1 %15, label %16, label %21
16: ; preds = %4
%17 = load ptr, ptr %5, align 8
%18 = load i32, ptr %7, align 4
%19 = sub nsw i32 %18, 1
%20 = call ptr @substring(ptr noundef %17, i32 noundef 0, i32 noundef %19)
store ptr %20, ptr %9, align 8
br label %21
21: ; preds = %16, %4
%22 = load i32, ptr %8, align 4
%23 = load ptr, ptr %5, align 8
%24 = call i32 @slength(ptr noundef %23)
%25 = icmp slt i32 %22, %24
br i1 %25, label %26, label %32
26: ; preds = %21
%27 = load ptr, ptr %5, align 8
%28 = load i32, ptr %8, align 4
%29 = load ptr, ptr %5, align 8
%30 = call i32 @slength(ptr noundef %29)
%31 = call ptr @substring(ptr noundef %27, i32 noundef %28, i32 noundef %30)
store ptr %31, ptr %10, align 8
br label %32
32: ; preds = %26, %21
%33 = load ptr, ptr %5, align 8
%34 = load ptr, ptr %9, align 8
%35 = call i32 @slength(ptr noundef %34)
%36 = load ptr, ptr %6, align 8
%37 = call i32 @slength(ptr noundef %36)
%38 = add nsw i32 %35, %37
%39 = load ptr, ptr %10, align 8
%40 = call i32 @slength(ptr noundef %39)
%41 = add nsw i32 %38, %40
%42 = sext i32 %41 to i64
%43 = mul i64 1, %42
%44 = trunc i64 %43 to i32
%45 = call ptr @realloc(ptr noundef %33, i32 noundef %44)
store ptr %45, ptr %13, align 8
%46 = load ptr, ptr %13, align 8
store ptr %46, ptr %12, align 8
%47 = load ptr, ptr %9, align 8
store ptr %47, ptr %11, align 8
br label %48
48: ; preds = %53, %32
%49 = load ptr, ptr %11, align 8
%50 = load i8, ptr %49, align 1
%51 = sext i8 %50 to i32
%52 = icmp ne i32 %51, 0
br i1 %52, label %53, label %59
53: ; preds = %48
%54 = load ptr, ptr %11, align 8
%55 = getelementptr inbounds i8, ptr %54, i32 1
store ptr %55, ptr %11, align 8
%56 = load i8, ptr %54, align 1
%57 = load ptr, ptr %12, align 8
%58 = getelementptr inbounds i8, ptr %57, i32 1
store ptr %58, ptr %12, align 8
store i8 %56, ptr %57, align 1
br label %48, !llvm.loop !6
59: ; preds = %48
%60 = load ptr, ptr %6, align 8
store ptr %60, ptr %11, align 8
br label %61
61: ; preds = %66, %59
%62 = load ptr, ptr %11, align 8
%63 = load i8, ptr %62, align 1
%64 = sext i8 %63 to i32
%65 = icmp ne i32 %64, 0
br i1 %65, label %66, label %72
66: ; preds = %61
%67 = load ptr, ptr %11, align 8
%68 = getelementptr inbounds i8, ptr %67, i32 1
store ptr %68, ptr %11, align 8
%69 = load i8, ptr %67, align 1
%70 = load ptr, ptr %12, align 8
%71 = getelementptr inbounds i8, ptr %70, i32 1
store ptr %71, ptr %12, align 8
store i8 %69, ptr %70, align 1
br label %61, !llvm.loop !8
72: ; preds = %61
%73 = load ptr, ptr %10, align 8
store ptr %73, ptr %11, align 8
br label %74
74: ; preds = %79, %72
%75 = load ptr, ptr %11, align 8
%76 = load i8, ptr %75, align 1
%77 = sext i8 %76 to i32
%78 = icmp ne i32 %77, 0
br i1 %78, label %79, label %85
79: ; preds = %74
%80 = load ptr, ptr %11, align 8
%81 = getelementptr inbounds i8, ptr %80, i32 1
store ptr %81, ptr %11, align 8
%82 = load i8, ptr %80, align 1
%83 = load ptr, ptr %12, align 8
%84 = getelementptr inbounds i8, ptr %83, i32 1
store ptr %84, ptr %12, align 8
store i8 %82, ptr %83, align 1
br label %74, !llvm.loop !9
85: ; preds = %74
%86 = load ptr, ptr %12, align 8
store i8 0, ptr %86, align 1
%87 = load ptr, ptr %13, align 8
ret ptr %87
}
declare ptr @substring(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @slength(ptr noundef) #1
declare ptr @realloc(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzs8xtc8b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @substitute(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = 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
store i32 %3, ptr %8, align 4
%14 = load i32, ptr %7, align 4
%15 = icmp sgt i32 %14, 0
br i1 %15, label %16, label %21
16: ; preds = %4
%17 = load ptr, ptr %5, align 8
%18 = load i32, ptr %7, align 4
%19 = sub nsw i32 %18, 1
%20 = call ptr @substring(ptr noundef %17, i32 noundef 0, i32 noundef %19)
store ptr %20, ptr %9, align 8
br label %21
21: ; preds = %16, %4
%22 = load i32, ptr %8, align 4
%23 = load ptr, ptr %5, align 8
%24 = call i32 @slength(ptr noundef %23)
%25 = icmp slt i32 %22, %24
br i1 %25, label %26, label %32
26: ; preds = %21
%27 = load ptr, ptr %5, align 8
%28 = load i32, ptr %8, align 4
%29 = load ptr, ptr %5, align 8
%30 = call i32 @slength(ptr noundef %29)
%31 = call ptr @substring(ptr noundef %27, i32 noundef %28, i32 noundef %30)
store ptr %31, ptr %10, align 8
br label %32
32: ; preds = %26, %21
%33 = load ptr, ptr %5, align 8
%34 = load ptr, ptr %9, align 8
%35 = call i32 @slength(ptr noundef %34)
%36 = load ptr, ptr %6, align 8
%37 = call i32 @slength(ptr noundef %36)
%38 = add nsw i32 %35, %37
%39 = load ptr, ptr %10, align 8
%40 = call i32 @slength(ptr noundef %39)
%41 = add nsw i32 %38, %40
%42 = sext i32 %41 to i64
%43 = mul i64 1, %42
%44 = trunc i64 %43 to i32
%45 = call ptr @realloc(ptr noundef %33, i32 noundef %44)
store ptr %45, ptr %13, align 8
%46 = load ptr, ptr %13, align 8
store ptr %46, ptr %12, align 8
%47 = load ptr, ptr %9, align 8
store ptr %47, ptr %11, align 8
%48 = load ptr, ptr %11, align 8
%49 = load i8, ptr %48, align 1
%50 = sext i8 %49 to i32
%51 = icmp ne i32 %50, 0
br i1 %51, label %.lr.ph, label %62
.lr.ph: ; preds = %32
br label %52
52: ; preds = %.lr.ph, %52
%53 = load ptr, ptr %11, align 8
%54 = getelementptr inbounds i8, ptr %53, i32 1
store ptr %54, ptr %11, align 8
%55 = load i8, ptr %53, align 1
%56 = load ptr, ptr %12, align 8
%57 = getelementptr inbounds i8, ptr %56, i32 1
store ptr %57, ptr %12, align 8
store i8 %55, ptr %56, align 1
%58 = load ptr, ptr %11, align 8
%59 = load i8, ptr %58, align 1
%60 = sext i8 %59 to i32
%61 = icmp ne i32 %60, 0
br i1 %61, label %52, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %52
br label %62
62: ; preds = %._crit_edge, %32
%63 = load ptr, ptr %6, align 8
store ptr %63, ptr %11, align 8
%64 = load ptr, ptr %11, align 8
%65 = load i8, ptr %64, align 1
%66 = sext i8 %65 to i32
%67 = icmp ne i32 %66, 0
br i1 %67, label %.lr.ph2, label %78
.lr.ph2: ; preds = %62
br label %68
68: ; preds = %.lr.ph2, %68
%69 = load ptr, ptr %11, align 8
%70 = getelementptr inbounds i8, ptr %69, i32 1
store ptr %70, ptr %11, align 8
%71 = load i8, ptr %69, align 1
%72 = load ptr, ptr %12, align 8
%73 = getelementptr inbounds i8, ptr %72, i32 1
store ptr %73, ptr %12, align 8
store i8 %71, ptr %72, align 1
%74 = load ptr, ptr %11, align 8
%75 = load i8, ptr %74, align 1
%76 = sext i8 %75 to i32
%77 = icmp ne i32 %76, 0
br i1 %77, label %68, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %68
br label %78
78: ; preds = %._crit_edge3, %62
%79 = load ptr, ptr %10, align 8
store ptr %79, ptr %11, align 8
%80 = load ptr, ptr %11, align 8
%81 = load i8, ptr %80, align 1
%82 = sext i8 %81 to i32
%83 = icmp ne i32 %82, 0
br i1 %83, label %.lr.ph5, label %94
.lr.ph5: ; preds = %78
br label %84
84: ; preds = %.lr.ph5, %84
%85 = load ptr, ptr %11, align 8
%86 = getelementptr inbounds i8, ptr %85, i32 1
store ptr %86, ptr %11, align 8
%87 = load i8, ptr %85, align 1
%88 = load ptr, ptr %12, align 8
%89 = getelementptr inbounds i8, ptr %88, i32 1
store ptr %89, ptr %12, align 8
store i8 %87, ptr %88, align 1
%90 = load ptr, ptr %11, align 8
%91 = load i8, ptr %90, align 1
%92 = sext i8 %91 to i32
%93 = icmp ne i32 %92, 0
br i1 %93, label %84, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %84
br label %94
94: ; preds = %._crit_edge6, %78
%95 = load ptr, ptr %12, align 8
store i8 0, ptr %95, align 1
%96 = load ptr, ptr %13, align 8
ret ptr %96
}
declare ptr @substring(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @slength(ptr noundef) #1
declare ptr @realloc(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpxqvb8zdk.c'
source_filename = "/tmp/tmpxqvb8zdk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @add_round_key(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
store i32 0, ptr %7, align 4
br label %8
8: ; preds = %100, %3
%9 = load i32, ptr %7, align 4
%10 = icmp slt i32 %9, 4
br i1 %10, label %11, label %103
11: ; preds = %8
%12 = load ptr, ptr %4, align 8
%13 = load i32, ptr %7, align 4
%14 = add nsw i32 0, %13
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i32, ptr %12, i64 %15
%17 = load i32, ptr %16, align 4
%18 = load ptr, ptr %5, align 8
%19 = load i32, ptr %6, align 4
%20 = mul nsw i32 16, %19
%21 = load i32, ptr %7, align 4
%22 = mul nsw i32 4, %21
%23 = add nsw i32 %20, %22
%24 = add nsw i32 %23, 0
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i32, ptr %18, i64 %25
%27 = load i32, ptr %26, align 4
%28 = xor i32 %17, %27
%29 = load ptr, ptr %4, align 8
%30 = load i32, ptr %7, align 4
%31 = add nsw i32 0, %30
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i32, ptr %29, i64 %32
store i32 %28, ptr %33, align 4
%34 = load ptr, ptr %4, align 8
%35 = load i32, ptr %7, align 4
%36 = add nsw i32 4, %35
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i32, ptr %34, i64 %37
%39 = load i32, ptr %38, align 4
%40 = load ptr, ptr %5, align 8
%41 = load i32, ptr %6, align 4
%42 = mul nsw i32 16, %41
%43 = load i32, ptr %7, align 4
%44 = mul nsw i32 4, %43
%45 = add nsw i32 %42, %44
%46 = add nsw i32 %45, 1
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i32, ptr %40, i64 %47
%49 = load i32, ptr %48, align 4
%50 = xor i32 %39, %49
%51 = load ptr, ptr %4, align 8
%52 = load i32, ptr %7, align 4
%53 = add nsw i32 4, %52
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i32, ptr %51, i64 %54
store i32 %50, ptr %55, align 4
%56 = load ptr, ptr %4, align 8
%57 = load i32, ptr %7, align 4
%58 = add nsw i32 8, %57
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i32, ptr %56, i64 %59
%61 = load i32, ptr %60, align 4
%62 = load ptr, ptr %5, align 8
%63 = load i32, ptr %6, align 4
%64 = mul nsw i32 16, %63
%65 = load i32, ptr %7, align 4
%66 = mul nsw i32 4, %65
%67 = add nsw i32 %64, %66
%68 = add nsw i32 %67, 2
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds i32, ptr %62, i64 %69
%71 = load i32, ptr %70, align 4
%72 = xor i32 %61, %71
%73 = load ptr, ptr %4, align 8
%74 = load i32, ptr %7, align 4
%75 = add nsw i32 8, %74
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds i32, ptr %73, i64 %76
store i32 %72, ptr %77, align 4
%78 = load ptr, ptr %4, align 8
%79 = load i32, ptr %7, align 4
%80 = add nsw i32 12, %79
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds i32, ptr %78, i64 %81
%83 = load i32, ptr %82, align 4
%84 = load ptr, ptr %5, align 8
%85 = load i32, ptr %6, align 4
%86 = mul nsw i32 16, %85
%87 = load i32, ptr %7, align 4
%88 = mul nsw i32 4, %87
%89 = add nsw i32 %86, %88
%90 = add nsw i32 %89, 3
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds i32, ptr %84, i64 %91
%93 = load i32, ptr %92, align 4
%94 = xor i32 %83, %93
%95 = load ptr, ptr %4, align 8
%96 = load i32, ptr %7, align 4
%97 = add nsw i32 12, %96
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds i32, ptr %95, i64 %98
store i32 %94, ptr %99, align 4
br label %100
100: ; preds = %11
%101 = load i32, ptr %7, align 4
%102 = add nsw i32 %101, 1
store i32 %102, ptr %7, align 4
br label %8, !llvm.loop !6
103: ; preds = %8
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/tmpxqvb8zdk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @add_round_key(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
store i32 0, ptr %7, align 4
%8 = load i32, ptr %7, align 4
%9 = icmp slt i32 %8, 4
br i1 %9, label %.lr.ph, label %104
.lr.ph: ; preds = %3
br label %10
10: ; preds = %.lr.ph, %99
%11 = load ptr, ptr %4, align 8
%12 = load i32, ptr %7, align 4
%13 = add nsw i32 0, %12
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i32, ptr %11, i64 %14
%16 = load i32, ptr %15, align 4
%17 = load ptr, ptr %5, align 8
%18 = load i32, ptr %6, align 4
%19 = mul nsw i32 16, %18
%20 = load i32, ptr %7, align 4
%21 = mul nsw i32 4, %20
%22 = add nsw i32 %19, %21
%23 = add nsw i32 %22, 0
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i32, ptr %17, i64 %24
%26 = load i32, ptr %25, align 4
%27 = xor i32 %16, %26
%28 = load ptr, ptr %4, align 8
%29 = load i32, ptr %7, align 4
%30 = add nsw i32 0, %29
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i32, ptr %28, i64 %31
store i32 %27, ptr %32, align 4
%33 = load ptr, ptr %4, align 8
%34 = load i32, ptr %7, align 4
%35 = add nsw i32 4, %34
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i32, ptr %33, i64 %36
%38 = load i32, ptr %37, align 4
%39 = load ptr, ptr %5, align 8
%40 = load i32, ptr %6, align 4
%41 = mul nsw i32 16, %40
%42 = load i32, ptr %7, align 4
%43 = mul nsw i32 4, %42
%44 = add nsw i32 %41, %43
%45 = add nsw i32 %44, 1
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds i32, ptr %39, i64 %46
%48 = load i32, ptr %47, align 4
%49 = xor i32 %38, %48
%50 = load ptr, ptr %4, align 8
%51 = load i32, ptr %7, align 4
%52 = add nsw i32 4, %51
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i32, ptr %50, i64 %53
store i32 %49, ptr %54, align 4
%55 = load ptr, ptr %4, align 8
%56 = load i32, ptr %7, align 4
%57 = add nsw i32 8, %56
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds i32, ptr %55, i64 %58
%60 = load i32, ptr %59, align 4
%61 = load ptr, ptr %5, align 8
%62 = load i32, ptr %6, align 4
%63 = mul nsw i32 16, %62
%64 = load i32, ptr %7, align 4
%65 = mul nsw i32 4, %64
%66 = add nsw i32 %63, %65
%67 = add nsw i32 %66, 2
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds i32, ptr %61, i64 %68
%70 = load i32, ptr %69, align 4
%71 = xor i32 %60, %70
%72 = load ptr, ptr %4, align 8
%73 = load i32, ptr %7, align 4
%74 = add nsw i32 8, %73
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds i32, ptr %72, i64 %75
store i32 %71, ptr %76, align 4
%77 = load ptr, ptr %4, align 8
%78 = load i32, ptr %7, align 4
%79 = add nsw i32 12, %78
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds i32, ptr %77, i64 %80
%82 = load i32, ptr %81, align 4
%83 = load ptr, ptr %5, align 8
%84 = load i32, ptr %6, align 4
%85 = mul nsw i32 16, %84
%86 = load i32, ptr %7, align 4
%87 = mul nsw i32 4, %86
%88 = add nsw i32 %85, %87
%89 = add nsw i32 %88, 3
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds i32, ptr %83, i64 %90
%92 = load i32, ptr %91, align 4
%93 = xor i32 %82, %92
%94 = load ptr, ptr %4, align 8
%95 = load i32, ptr %7, align 4
%96 = add nsw i32 12, %95
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds i32, ptr %94, i64 %97
store i32 %93, ptr %98, align 4
br label %99
99: ; preds = %10
%100 = load i32, ptr %7, align 4
%101 = add nsw i32 %100, 1
store i32 %101, ptr %7, align 4
%102 = load i32, ptr %7, align 4
%103 = icmp slt i32 %102, 4
br i1 %103, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %99
br label %104
104: ; preds = %._crit_edge, %3
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/tmpgjy9d03y.c'
source_filename = "/tmp/tmpgjy9d03y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ssl_rc4_info_delete(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 @g_free(ptr noundef %3)
ret void
}
declare i32 @g_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/tmpgjy9d03y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ssl_rc4_info_delete(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 @g_free(ptr noundef %3)
ret void
}
declare i32 @g_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/tmptd972xp_.c'
source_filename = "/tmp/tmptd972xp_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @NRF24_CE_Test() #0 {
%1 = call i32 (...) @NRF24_CE_Enable()
%2 = call i32 (...) @NRF24_CE_Disable()
ret void
}
declare i32 @NRF24_CE_Enable(...) #1
declare i32 @NRF24_CE_Disable(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptd972xp_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @NRF24_CE_Test() #0 {
%1 = call i32 (...) @NRF24_CE_Enable()
%2 = call i32 (...) @NRF24_CE_Disable()
ret void
}
declare i32 @NRF24_CE_Enable(...) #1
declare i32 @NRF24_CE_Disable(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmlyu29nd.c'
source_filename = "/tmp/tmpmlyu29nd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@STDIN_FILENO = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [11 x i8] c"read error\00", align 1
@STDOUT_FILENO = 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 [4096 x i8], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = call i32 @alarm(i32 noundef 10)
%9 = load i32, ptr @STDIN_FILENO, align 4
%10 = getelementptr inbounds [4096 x i8], ptr %7, i64 0, i64 0
%11 = call i32 @read(i32 noundef %9, ptr noundef %10, i32 noundef 4096)
store i32 %11, ptr %6, align 4
%12 = icmp slt i32 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %2
%14 = call i32 @err_sys(ptr noundef @.str)
br label %15
15: ; preds = %13, %2
%16 = call i32 @alarm(i32 noundef 0)
%17 = load i32, ptr @STDOUT_FILENO, align 4
%18 = getelementptr inbounds [4096 x i8], ptr %7, i64 0, i64 0
%19 = load i32, ptr %6, align 4
%20 = call i32 @write(i32 noundef %17, ptr noundef %18, i32 noundef %19)
ret i32 0
}
declare i32 @alarm(i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @err_sys(ptr noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmlyu29nd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@STDIN_FILENO = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [11 x i8] c"read error\00", align 1
@STDOUT_FILENO = 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 [4096 x i8], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = call i32 @alarm(i32 noundef 10)
%9 = load i32, ptr @STDIN_FILENO, align 4
%10 = getelementptr inbounds [4096 x i8], ptr %7, i64 0, i64 0
%11 = call i32 @read(i32 noundef %9, ptr noundef %10, i32 noundef 4096)
store i32 %11, ptr %6, align 4
%12 = icmp slt i32 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %2
%14 = call i32 @err_sys(ptr noundef @.str)
br label %15
15: ; preds = %13, %2
%16 = call i32 @alarm(i32 noundef 0)
%17 = load i32, ptr @STDOUT_FILENO, align 4
%18 = getelementptr inbounds [4096 x i8], ptr %7, i64 0, i64 0
%19 = load i32, ptr %6, align 4
%20 = call i32 @write(i32 noundef %17, ptr noundef %18, i32 noundef %19)
ret i32 0
}
declare i32 @alarm(i32 noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @err_sys(ptr noundef) #1
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3ilxe3d6.c'
source_filename = "/tmp/tmp3ilxe3d6.c"
target datalayout = "e-m:e-p270: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/tmp3ilxe3d6.c"
target datalayout = "e-m:e-p270: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/tmpkhfr2yzi.c'
source_filename = "/tmp/tmpkhfr2yzi.c"
target datalayout = "e-m:e-p270: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/tmpkhfr2yzi.c"
target datalayout = "e-m:e-p270: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/tmpl1_2kh3l.c'
source_filename = "/tmp/tmpl1_2kh3l.c"
target datalayout = "e-m:e-p270: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/tmpl1_2kh3l.c"
target datalayout = "e-m:e-p270: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/tmpt_ymnc03.c'
source_filename = "/tmp/tmpt_ymnc03.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"0100\0D\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @obd_find_protocol(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca [50 x i8], align 16
store i32 %0, ptr %3, align 4
%5 = load i32, ptr %3, align 4
%6 = call i32 @write(i32 noundef %5, ptr noundef @.str, i32 noundef 5)
%7 = call i32 @usleep(i32 noundef 2000000)
%8 = load i32, ptr %3, align 4
%9 = getelementptr inbounds [50 x i8], ptr %4, i64 0, i64 0
%10 = call i32 @obd_read(i32 noundef %8, ptr noundef %9)
%11 = icmp sge i32 %10, 17
br i1 %11, label %12, label %13
12: ; preds = %1
store i32 1, ptr %2, align 4
br label %14
13: ; preds = %1
store i32 0, ptr %2, align 4
br label %14
14: ; preds = %13, %12
%15 = load i32, ptr %2, align 4
ret i32 %15
}
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @usleep(i32 noundef) #1
declare i32 @obd_read(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/tmpt_ymnc03.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"0100\0D\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @obd_find_protocol(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca [50 x i8], align 16
store i32 %0, ptr %3, align 4
%5 = load i32, ptr %3, align 4
%6 = call i32 @write(i32 noundef %5, ptr noundef @.str, i32 noundef 5)
%7 = call i32 @usleep(i32 noundef 2000000)
%8 = load i32, ptr %3, align 4
%9 = getelementptr inbounds [50 x i8], ptr %4, i64 0, i64 0
%10 = call i32 @obd_read(i32 noundef %8, ptr noundef %9)
%11 = icmp sge i32 %10, 17
br i1 %11, label %12, label %13
12: ; preds = %1
store i32 1, ptr %2, align 4
br label %14
13: ; preds = %1
store i32 0, ptr %2, align 4
br label %14
14: ; preds = %13, %12
%15 = load i32, ptr %2, align 4
ret i32 %15
}
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @usleep(i32 noundef) #1
declare i32 @obd_read(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/tmpa49q0j0r.c'
source_filename = "/tmp/tmpa49q0j0r.c"
target datalayout = "e-m:e-p270: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.areas = private unnamed_addr constant [5 x i32] [i32 10, i32 12, i32 13, i32 14, i32 20], align 16
@__const.main.name = private unnamed_addr constant [4 x i8] c"Zed\00", align 1
@__const.main.full_name = private unnamed_addr constant [12 x i8] c"Zed A. Shaw\00", align 1
@.str = private unnamed_addr constant [25 x i8] c"The size of an int: %ld\0A\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"The size of an areas: %ld\0A\00", align 1
@.str.2 = private unnamed_addr constant [34 x i8] c"The number of ints in areas: %ld\0A\00", align 1
@.str.3 = private unnamed_addr constant [38 x i8] c"The first area is %d, the 2nd is %d.\0A\00", align 1
@.str.4 = private unnamed_addr constant [25 x i8] c"The size of a char: %ld\0A\00", align 1
@.str.5 = private unnamed_addr constant [31 x i8] c"The size of name (char[]) %ld\0A\00", align 1
@.str.6 = private unnamed_addr constant [25 x i8] c"The number of chars %ld\0A\00", align 1
@.str.7 = private unnamed_addr constant [34 x i8] c"name = \22%s\22 and full_name = \22%s\22\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 [5 x i32], align 16
%7 = alloca [4 x i8], align 1
%8 = alloca [12 x i8], align 1
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 16 %6, ptr align 16 @__const.main.areas, i64 20, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %7, ptr align 1 @__const.main.name, i64 4, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %8, ptr align 1 @__const.main.full_name, i64 12, i1 false)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str, i64 noundef 4)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i64 noundef 20)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef 5)
%12 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 0
%13 = load i32, ptr %12, align 16
%14 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 1
%15 = load i32, ptr %14, align 4
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %13, i32 noundef %15)
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i64 noundef 1)
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i64 noundef 4)
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i64 noundef 4)
%20 = getelementptr inbounds [4 x i8], ptr %7, i64 0, i64 0
%21 = getelementptr inbounds [12 x i8], ptr %8, i64 0, i64 0
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef %20, ptr noundef %21)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(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/tmpa49q0j0r.c"
target datalayout = "e-m:e-p270: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.areas = private unnamed_addr constant [5 x i32] [i32 10, i32 12, i32 13, i32 14, i32 20], align 16
@__const.main.name = private unnamed_addr constant [4 x i8] c"Zed\00", align 1
@__const.main.full_name = private unnamed_addr constant [12 x i8] c"Zed A. Shaw\00", align 1
@.str = private unnamed_addr constant [25 x i8] c"The size of an int: %ld\0A\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"The size of an areas: %ld\0A\00", align 1
@.str.2 = private unnamed_addr constant [34 x i8] c"The number of ints in areas: %ld\0A\00", align 1
@.str.3 = private unnamed_addr constant [38 x i8] c"The first area is %d, the 2nd is %d.\0A\00", align 1
@.str.4 = private unnamed_addr constant [25 x i8] c"The size of a char: %ld\0A\00", align 1
@.str.5 = private unnamed_addr constant [31 x i8] c"The size of name (char[]) %ld\0A\00", align 1
@.str.6 = private unnamed_addr constant [25 x i8] c"The number of chars %ld\0A\00", align 1
@.str.7 = private unnamed_addr constant [34 x i8] c"name = \22%s\22 and full_name = \22%s\22\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 [5 x i32], align 16
%7 = alloca [4 x i8], align 1
%8 = alloca [12 x i8], align 1
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 16 %6, ptr align 16 @__const.main.areas, i64 20, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %7, ptr align 1 @__const.main.name, i64 4, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %8, ptr align 1 @__const.main.full_name, i64 12, i1 false)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str, i64 noundef 4)
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i64 noundef 20)
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef 5)
%12 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 0
%13 = load i32, ptr %12, align 16
%14 = getelementptr inbounds [5 x i32], ptr %6, i64 0, i64 1
%15 = load i32, ptr %14, align 4
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %13, i32 noundef %15)
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i64 noundef 1)
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i64 noundef 4)
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i64 noundef 4)
%20 = getelementptr inbounds [4 x i8], ptr %7, i64 0, i64 0
%21 = getelementptr inbounds [12 x i8], ptr %8, i64 0, i64 0
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef %20, ptr noundef %21)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @printf(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/tmp3wny92jg.c'
source_filename = "/tmp/tmp3wny92jg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"pthread_attr_destroy\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Pthread_attr_destroy(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = icmp ne ptr %4, null
%6 = zext i1 %5 to i32
%7 = call i32 @assert(i32 noundef %6)
%8 = load ptr, ptr %2, align 8
%9 = call i32 @pthread_attr_destroy(ptr noundef %8)
store i32 %9, ptr %3, align 4
%10 = load i32, ptr %3, align 4
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %1
%13 = call i32 @Sys_failure(ptr noundef @.str)
br label %14
14: ; preds = %12, %1
ret void
}
declare i32 @assert(i32 noundef) #1
declare i32 @pthread_attr_destroy(ptr noundef) #1
declare i32 @Sys_failure(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3wny92jg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"pthread_attr_destroy\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Pthread_attr_destroy(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = icmp ne ptr %4, null
%6 = zext i1 %5 to i32
%7 = call i32 @assert(i32 noundef %6)
%8 = load ptr, ptr %2, align 8
%9 = call i32 @pthread_attr_destroy(ptr noundef %8)
store i32 %9, ptr %3, align 4
%10 = load i32, ptr %3, align 4
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %1
%13 = call i32 @Sys_failure(ptr noundef @.str)
br label %14
14: ; preds = %12, %1
ret void
}
declare i32 @assert(i32 noundef) #1
declare i32 @pthread_attr_destroy(ptr noundef) #1
declare i32 @Sys_failure(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1vrm9qbu.c'
source_filename = "/tmp/tmp1vrm9qbu.c"
target datalayout = "e-m:e-p270: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/tmp1vrm9qbu.c"
target datalayout = "e-m:e-p270: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/tmp1pcw2rwg.c'
source_filename = "/tmp/tmp1pcw2rwg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @unparse_pair_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 %4, align 8
%7 = call i32 @unparse_pair_line_sep(ptr noundef %5, ptr noundef %6, i32 noundef -1)
ret i32 %7
}
declare i32 @unparse_pair_line_sep(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/tmp1pcw2rwg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @unparse_pair_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 %4, align 8
%7 = call i32 @unparse_pair_line_sep(ptr noundef %5, ptr noundef %6, i32 noundef -1)
ret i32 %7
}
declare i32 @unparse_pair_line_sep(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/tmp8djjwg6c.c'
source_filename = "/tmp/tmp8djjwg6c.c"
target datalayout = "e-m:e-p270: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/tmp8djjwg6c.c"
target datalayout = "e-m:e-p270: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/tmpq6006a2u.c'
source_filename = "/tmp/tmpq6006a2u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %8, align 4
store i32 1, ptr %6, align 4
br label %9
9: ; preds = %31, %2
%10 = load i32, ptr %6, align 4
%11 = icmp slt i32 %10, 10
br i1 %11, label %12, label %34
12: ; preds = %9
store i32 1, ptr %7, align 4
br label %13
13: ; preds = %27, %12
%14 = load i32, ptr %7, align 4
%15 = icmp slt i32 %14, 22
br i1 %15, label %16, label %30
16: ; preds = %13
%17 = load i32, ptr %6, align 4
%18 = load i32, ptr %7, align 4
%19 = call i32 @pow(i32 noundef %17, i32 noundef %18)
%20 = call i32 @num_length(i32 noundef %19)
%21 = load i32, ptr %7, align 4
%22 = icmp eq i32 %20, %21
br i1 %22, label %23, label %26
23: ; preds = %16
%24 = load i32, ptr %8, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %8, align 4
br label %26
26: ; preds = %23, %16
br label %27
27: ; preds = %26
%28 = load i32, ptr %7, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %7, align 4
br label %13, !llvm.loop !6
30: ; preds = %13
br label %31
31: ; preds = %30
%32 = load i32, ptr %6, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %6, align 4
br label %9, !llvm.loop !8
34: ; preds = %9
%35 = load i32, ptr %8, align 4
%36 = call i32 @printf(ptr noundef @.str, i32 noundef %35)
ret i32 0
}
declare i32 @num_length(i32 noundef) #1
declare i32 @pow(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpq6006a2u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %8, align 4
store i32 1, ptr %6, align 4
%9 = load i32, ptr %6, align 4
%10 = icmp slt i32 %9, 10
br i1 %10, label %.lr.ph2, label %36
.lr.ph2: ; preds = %2
br label %11
11: ; preds = %.lr.ph2, %31
store i32 1, ptr %7, align 4
%12 = load i32, ptr %7, align 4
%13 = icmp slt i32 %12, 22
br i1 %13, label %.lr.ph, label %30
.lr.ph: ; preds = %11
br label %14
14: ; preds = %.lr.ph, %25
%15 = load i32, ptr %6, align 4
%16 = load i32, ptr %7, align 4
%17 = call i32 @pow(i32 noundef %15, i32 noundef %16)
%18 = call i32 @num_length(i32 noundef %17)
%19 = load i32, ptr %7, align 4
%20 = icmp eq i32 %18, %19
br i1 %20, label %21, label %24
21: ; preds = %14
%22 = load i32, ptr %8, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %8, align 4
br label %24
24: ; preds = %21, %14
br label %25
25: ; preds = %24
%26 = load i32, ptr %7, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %7, align 4
%28 = load i32, ptr %7, align 4
%29 = icmp slt i32 %28, 22
br i1 %29, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %25
br label %30
30: ; preds = %._crit_edge, %11
br label %31
31: ; preds = %30
%32 = load i32, ptr %6, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %6, align 4
%34 = load i32, ptr %6, align 4
%35 = icmp slt i32 %34, 10
br i1 %35, label %11, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %31
br label %36
36: ; preds = %._crit_edge3, %2
%37 = load i32, ptr %8, align 4
%38 = call i32 @printf(ptr noundef @.str, i32 noundef %37)
ret i32 0
}
declare i32 @num_length(i32 noundef) #1
declare i32 @pow(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp7ueoiwmb.c'
source_filename = "/tmp/tmp7ueoiwmb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rand_array_generator(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
store i32 0, ptr %7, align 4
br label %8
8: ; preds = %19, %3
%9 = load i32, ptr %7, align 4
%10 = load i32, ptr %6, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %22
12: ; preds = %8
%13 = load i32, ptr %5, align 4
%14 = call i32 @rand_int_generator(i32 noundef %13)
%15 = load ptr, ptr %4, align 8
%16 = load i32, ptr %7, 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 = %12
%20 = load i32, ptr %7, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %7, align 4
br label %8, !llvm.loop !6
22: ; preds = %8
ret void
}
declare i32 @rand_int_generator(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp7ueoiwmb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rand_array_generator(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
store i32 0, ptr %7, align 4
%8 = load i32, ptr %7, align 4
%9 = load i32, ptr %6, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %.lr.ph, label %24
.lr.ph: ; preds = %3
br label %11
11: ; preds = %.lr.ph, %18
%12 = load i32, ptr %5, align 4
%13 = call i32 @rand_int_generator(i32 noundef %12)
%14 = load ptr, ptr %4, align 8
%15 = load i32, ptr %7, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i32, ptr %14, i64 %16
store i32 %13, ptr %17, align 4
br label %18
18: ; preds = %11
%19 = load i32, ptr %7, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %7, align 4
%21 = load i32, ptr %7, align 4
%22 = load i32, ptr %6, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %18
br label %24
24: ; preds = %._crit_edge, %3
ret void
}
declare i32 @rand_int_generator(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpfgifn_0f.c'
source_filename = "/tmp/tmpfgifn_0f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ft_isalnum(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @ft_isalpha(i32 noundef %3)
%5 = icmp eq i32 %4, 1
br i1 %5, label %10, label %6
6: ; preds = %1
%7 = load i32, ptr %2, align 4
%8 = call i32 @ft_isdigit(i32 noundef %7)
%9 = icmp eq i32 %8, 1
br label %10
10: ; preds = %6, %1
%11 = phi i1 [ true, %1 ], [ %9, %6 ]
%12 = zext i1 %11 to i64
%13 = select i1 %11, i32 1, i32 0
ret i32 %13
}
declare i32 @ft_isalpha(i32 noundef) #1
declare i32 @ft_isdigit(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfgifn_0f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ft_isalnum(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = call i32 @ft_isalpha(i32 noundef %3)
%5 = icmp eq i32 %4, 1
br i1 %5, label %10, label %6
6: ; preds = %1
%7 = load i32, ptr %2, align 4
%8 = call i32 @ft_isdigit(i32 noundef %7)
%9 = icmp eq i32 %8, 1
br label %10
10: ; preds = %6, %1
%11 = phi i1 [ true, %1 ], [ %9, %6 ]
%12 = zext i1 %11 to i64
%13 = select i1 %11, i32 1, i32 0
ret i32 %13
}
declare i32 @ft_isalpha(i32 noundef) #1
declare i32 @ft_isdigit(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpk5p90xy1.c'
source_filename = "/tmp/tmpk5p90xy1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @intrev16(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 @memrev16(ptr noundef %2)
%4 = load i32, ptr %2, align 4
ret i32 %4
}
declare i32 @memrev16(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpk5p90xy1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @intrev16(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 @memrev16(ptr noundef %2)
%4 = load i32, ptr %2, align 4
ret i32 %4
}
declare i32 @memrev16(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpkdy8wc63.c'
source_filename = "/tmp/tmpkdy8wc63.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @FpToNum(ptr 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 i32, align 4
%8 = alloca i32, align 4
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
store double 0.000000e+00, ptr %11, align 8
%13 = call ptr @malloc(i32 noundef 312)
store ptr %13, ptr %12, align 8
%14 = load ptr, ptr %2, align 8
%15 = getelementptr inbounds i8, ptr %14, i64 0
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = icmp eq i32 %17, 48
br i1 %18, label %19, label %20
19: ; preds = %1
store i32 0, ptr %6, align 4
br label %21
20: ; preds = %1
store i32 1, ptr %6, align 4
br label %21
21: ; preds = %20, %19
%22 = load ptr, ptr %2, align 8
%23 = call i32 @strlen(ptr noundef %22)
%24 = icmp eq i32 %23, 32
br i1 %24, label %25, label %26
25: ; preds = %21
store i32 8, ptr %3, align 4
store i32 127, ptr %7, align 4
br label %32
26: ; preds = %21
%27 = load ptr, ptr %2, align 8
%28 = call i32 @strlen(ptr noundef %27)
%29 = icmp eq i32 %28, 64
br i1 %29, label %30, label %31
30: ; preds = %26
store i32 11, ptr %3, align 4
store i32 1023, ptr %7, align 4
br label %31
31: ; preds = %30, %26
br label %32
32: ; preds = %31, %25
store i32 1, ptr %5, align 4
%33 = load i32, ptr %3, align 4
%34 = sub nsw i32 %33, 1
store i32 %34, ptr %8, align 4
br label %35
35: ; preds = %56, %32
%36 = load i32, ptr %5, align 4
%37 = load i32, ptr %3, align 4
%38 = add nsw i32 %37, 1
%39 = icmp slt i32 %36, %38
br i1 %39, label %40, label %61
40: ; preds = %35
%41 = load ptr, ptr %2, align 8
%42 = load i32, ptr %5, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i8, ptr %41, i64 %43
%45 = load i8, ptr %44, align 1
%46 = sext i8 %45 to i32
%47 = icmp eq i32 %46, 49
br i1 %47, label %48, label %55
48: ; preds = %40
%49 = load double, ptr %11, align 8
%50 = load i32, ptr %8, align 4
%51 = sitofp i32 %50 to double
%52 = call i32 @pow(i32 noundef 2, double noundef %51)
%53 = sitofp i32 %52 to double
%54 = fadd double %49, %53
store double %54, ptr %11, align 8
br label %55
55: ; preds = %48, %40
br label %56
56: ; preds = %55
%57 = load i32, ptr %5, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %5, align 4
%59 = load i32, ptr %8, align 4
%60 = add nsw i32 %59, -1
store i32 %60, ptr %8, align 4
br label %35, !llvm.loop !6
61: ; preds = %35
%62 = load i32, ptr %3, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %5, align 4
store i32 1, ptr %8, align 4
br label %64
64: ; preds = %86, %61
%65 = load i32, ptr %5, align 4
%66 = load ptr, ptr %2, align 8
%67 = call i32 @strlen(ptr noundef %66)
%68 = icmp slt i32 %65, %67
br i1 %68, label %69, label %91
69: ; preds = %64
%70 = load ptr, ptr %2, align 8
%71 = load i32, ptr %5, align 4
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds i8, ptr %70, i64 %72
%74 = load i8, ptr %73, align 1
%75 = sext i8 %74 to i32
%76 = icmp eq i32 %75, 49
br i1 %76, label %77, label %85
77: ; preds = %69
%78 = load double, ptr %9, align 8
%79 = load i32, ptr %8, align 4
%80 = sitofp i32 %79 to double
%81 = call i32 @pow(i32 noundef 2, double noundef %80)
%82 = sdiv i32 1, %81
%83 = sitofp i32 %82 to double
%84 = fadd double %78, %83
store double %84, ptr %9, align 8
br label %85
85: ; preds = %77, %69
br label %86
86: ; preds = %85
%87 = load i32, ptr %5, align 4
%88 = add nsw i32 %87, 1
store i32 %88, ptr %5, align 4
%89 = load i32, ptr %8, align 4
%90 = add nsw i32 %89, 1
store i32 %90, ptr %8, align 4
br label %64, !llvm.loop !8
91: ; preds = %64
%92 = load i32, ptr %6, align 4
%93 = sitofp i32 %92 to double
%94 = call i32 @pow(i32 noundef -1, double noundef %93)
%95 = load double, ptr %11, align 8
%96 = load i32, ptr %7, align 4
%97 = sitofp i32 %96 to double
%98 = fsub double %95, %97
%99 = call i32 @pow(i32 noundef 2, double noundef %98)
%100 = mul nsw i32 %94, %99
%101 = sitofp i32 %100 to double
%102 = load double, ptr %9, align 8
%103 = fadd double 1.000000e+00, %102
%104 = fmul double %101, %103
store double %104, ptr %10, align 8
%105 = load double, ptr %10, align 8
ret double %105
}
declare ptr @malloc(i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @pow(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkdy8wc63.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @FpToNum(ptr 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 i32, align 4
%8 = alloca i32, align 4
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca double, align 8
%12 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
store double 0.000000e+00, ptr %11, align 8
%13 = call ptr @malloc(i32 noundef 312)
store ptr %13, ptr %12, align 8
%14 = load ptr, ptr %2, align 8
%15 = getelementptr inbounds i8, ptr %14, i64 0
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = icmp eq i32 %17, 48
br i1 %18, label %19, label %20
19: ; preds = %1
store i32 0, ptr %6, align 4
br label %21
20: ; preds = %1
store i32 1, ptr %6, align 4
br label %21
21: ; preds = %20, %19
%22 = load ptr, ptr %2, align 8
%23 = call i32 @strlen(ptr noundef %22)
%24 = icmp eq i32 %23, 32
br i1 %24, label %25, label %26
25: ; preds = %21
store i32 8, ptr %3, align 4
store i32 127, ptr %7, align 4
br label %32
26: ; preds = %21
%27 = load ptr, ptr %2, align 8
%28 = call i32 @strlen(ptr noundef %27)
%29 = icmp eq i32 %28, 64
br i1 %29, label %30, label %31
30: ; preds = %26
store i32 11, ptr %3, align 4
store i32 1023, ptr %7, align 4
br label %31
31: ; preds = %30, %26
br label %32
32: ; preds = %31, %25
store i32 1, ptr %5, align 4
%33 = load i32, ptr %3, align 4
%34 = sub nsw i32 %33, 1
store i32 %34, ptr %8, align 4
%35 = load i32, ptr %5, align 4
%36 = load i32, ptr %3, align 4
%37 = add nsw i32 %36, 1
%38 = icmp slt i32 %35, %37
br i1 %38, label %.lr.ph, label %64
.lr.ph: ; preds = %32
br label %39
39: ; preds = %.lr.ph, %55
%40 = load ptr, ptr %2, align 8
%41 = load i32, ptr %5, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i8, ptr %40, i64 %42
%44 = load i8, ptr %43, align 1
%45 = sext i8 %44 to i32
%46 = icmp eq i32 %45, 49
br i1 %46, label %47, label %54
47: ; preds = %39
%48 = load double, ptr %11, align 8
%49 = load i32, ptr %8, align 4
%50 = sitofp i32 %49 to double
%51 = call i32 @pow(i32 noundef 2, double noundef %50)
%52 = sitofp i32 %51 to double
%53 = fadd double %48, %52
store double %53, ptr %11, align 8
br label %54
54: ; preds = %47, %39
br label %55
55: ; preds = %54
%56 = load i32, ptr %5, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %5, align 4
%58 = load i32, ptr %8, align 4
%59 = add nsw i32 %58, -1
store i32 %59, ptr %8, align 4
%60 = load i32, ptr %5, align 4
%61 = load i32, ptr %3, align 4
%62 = add nsw i32 %61, 1
%63 = icmp slt i32 %60, %62
br i1 %63, label %39, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %55
br label %64
64: ; preds = %._crit_edge, %32
%65 = load i32, ptr %3, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %5, align 4
store i32 1, ptr %8, align 4
%67 = load i32, ptr %5, align 4
%68 = load ptr, ptr %2, align 8
%69 = call i32 @strlen(ptr noundef %68)
%70 = icmp slt i32 %67, %69
br i1 %70, label %.lr.ph2, label %97
.lr.ph2: ; preds = %64
br label %71
71: ; preds = %.lr.ph2, %88
%72 = load ptr, ptr %2, align 8
%73 = load i32, ptr %5, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds i8, ptr %72, i64 %74
%76 = load i8, ptr %75, align 1
%77 = sext i8 %76 to i32
%78 = icmp eq i32 %77, 49
br i1 %78, label %79, label %87
79: ; preds = %71
%80 = load double, ptr %9, align 8
%81 = load i32, ptr %8, align 4
%82 = sitofp i32 %81 to double
%83 = call i32 @pow(i32 noundef 2, double noundef %82)
%84 = sdiv i32 1, %83
%85 = sitofp i32 %84 to double
%86 = fadd double %80, %85
store double %86, ptr %9, align 8
br label %87
87: ; preds = %79, %71
br label %88
88: ; preds = %87
%89 = load i32, ptr %5, align 4
%90 = add nsw i32 %89, 1
store i32 %90, ptr %5, align 4
%91 = load i32, ptr %8, align 4
%92 = add nsw i32 %91, 1
store i32 %92, ptr %8, align 4
%93 = load i32, ptr %5, align 4
%94 = load ptr, ptr %2, align 8
%95 = call i32 @strlen(ptr noundef %94)
%96 = icmp slt i32 %93, %95
br i1 %96, label %71, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %88
br label %97
97: ; preds = %._crit_edge3, %64
%98 = load i32, ptr %6, align 4
%99 = sitofp i32 %98 to double
%100 = call i32 @pow(i32 noundef -1, double noundef %99)
%101 = load double, ptr %11, align 8
%102 = load i32, ptr %7, align 4
%103 = sitofp i32 %102 to double
%104 = fsub double %101, %103
%105 = call i32 @pow(i32 noundef 2, double noundef %104)
%106 = mul nsw i32 %100, %105
%107 = sitofp i32 %106 to double
%108 = load double, ptr %9, align 8
%109 = fadd double 1.000000e+00, %108
%110 = fmul double %107, %109
store double %110, ptr %10, align 8
%111 = load double, ptr %10, align 8
ret double %111
}
declare ptr @malloc(i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @pow(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpxvvf_fj3.c'
source_filename = "/tmp/tmpxvvf_fj3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"UTF8\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @nl_langinfo(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
ret ptr @.str
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxvvf_fj3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"UTF8\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @nl_langinfo(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
ret ptr @.str
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2z2_xt4e.c'
source_filename = "/tmp/tmp2z2_xt4e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"%s = \00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%02x\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @hexprint(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%8 = load ptr, ptr %4, align 8
%9 = icmp ne ptr %8, null
br i1 %9, label %10, label %13
10: ; preds = %3
%11 = load ptr, ptr %4, align 8
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %11)
br label %13
13: ; preds = %10, %3
store i32 0, ptr %7, align 4
br label %14
14: ; preds = %26, %13
%15 = load i32, ptr %7, align 4
%16 = load i32, ptr %6, align 4
%17 = icmp ult i32 %15, %16
br i1 %17, label %18, label %29
18: ; preds = %14
%19 = load ptr, ptr %5, align 8
%20 = load i32, ptr %7, align 4
%21 = zext i32 %20 to i64
%22 = getelementptr inbounds i8, ptr %19, i64 %21
%23 = load i8, ptr %22, align 1
%24 = zext i8 %23 to i32
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %24)
br label %26
26: ; preds = %18
%27 = load i32, ptr %7, align 4
%28 = add i32 %27, 1
store i32 %28, ptr %7, align 4
br label %14, !llvm.loop !6
29: ; preds = %14
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2z2_xt4e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [6 x i8] c"%s = \00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%02x\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @hexprint(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%8 = load ptr, ptr %4, align 8
%9 = icmp ne ptr %8, null
br i1 %9, label %10, label %13
10: ; preds = %3
%11 = load ptr, ptr %4, align 8
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %11)
br label %13
13: ; preds = %10, %3
store i32 0, ptr %7, align 4
%14 = load i32, ptr %7, align 4
%15 = load i32, ptr %6, align 4
%16 = icmp ult i32 %14, %15
br i1 %16, label %.lr.ph, label %31
.lr.ph: ; preds = %13
br label %17
17: ; preds = %.lr.ph, %25
%18 = load ptr, ptr %5, align 8
%19 = load i32, ptr %7, align 4
%20 = zext i32 %19 to i64
%21 = getelementptr inbounds i8, ptr %18, i64 %20
%22 = load i8, ptr %21, align 1
%23 = zext i8 %22 to i32
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %23)
br label %25
25: ; preds = %17
%26 = load i32, ptr %7, align 4
%27 = add i32 %26, 1
store i32 %27, ptr %7, align 4
%28 = load i32, ptr %7, align 4
%29 = load i32, ptr %6, align 4
%30 = icmp ult i32 %28, %29
br i1 %30, label %17, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %25
br label %31
31: ; preds = %._crit_edge, %13
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpsqn9yz39.c'
source_filename = "/tmp/tmpsqn9yz39.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mutexCancelCleanup(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
%5 = zext i1 %4 to i32
%6 = call i32 @assert(i32 noundef %5)
%7 = load ptr, ptr %2, align 8
%8 = call i32 @pthread_mutex_unlock(ptr noundef %7)
ret void
}
declare i32 @assert(i32 noundef) #1
declare i32 @pthread_mutex_unlock(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsqn9yz39.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mutexCancelCleanup(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
%5 = zext i1 %4 to i32
%6 = call i32 @assert(i32 noundef %5)
%7 = load ptr, ptr %2, align 8
%8 = call i32 @pthread_mutex_unlock(ptr noundef %7)
ret void
}
declare i32 @assert(i32 noundef) #1
declare i32 @pthread_mutex_unlock(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpyqg99y6f.c'
source_filename = "/tmp/tmpyqg99y6f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @primes(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%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
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%10 = load i32, ptr %2, align 4
%11 = add nsw i32 %10, 1
%12 = zext i32 %11 to i64
%13 = call ptr @llvm.stacksave()
store ptr %13, ptr %5, align 8
%14 = alloca i32, i64 %12, align 16
store i64 %12, ptr %6, align 8
store i32 0, ptr %3, align 4
br label %15
15: ; preds = %24, %1
%16 = load i32, ptr %3, align 4
%17 = load i32, ptr %2, align 4
%18 = icmp sle i32 %16, %17
br i1 %18, label %19, label %27
19: ; preds = %15
%20 = load i32, ptr %3, align 4
%21 = load i32, ptr %3, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i32, ptr %14, i64 %22
store i32 %20, ptr %23, align 4
br label %24
24: ; preds = %19
%25 = load i32, ptr %3, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %3, align 4
br label %15, !llvm.loop !6
27: ; preds = %15
store i32 2, ptr %7, align 4
br label %28
28: ; preds = %58, %27
%29 = load i32, ptr %7, align 4
%30 = load i32, ptr %2, align 4
%31 = call i32 @sqrt(i32 noundef %30)
%32 = icmp sle i32 %29, %31
br i1 %32, label %33, label %39
33: ; preds = %28
%34 = load i32, ptr %7, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i32, ptr %14, i64 %35
%37 = load i32, ptr %36, align 4
%38 = icmp ne i32 %37, 0
br label %39
39: ; preds = %33, %28
%40 = phi i1 [ false, %28 ], [ %38, %33 ]
br i1 %40, label %41, label %61
41: ; preds = %39
%42 = load i32, ptr %7, align 4
%43 = load i32, ptr %7, align 4
%44 = mul nsw i32 %42, %43
store i32 %44, ptr %4, align 4
br label %45
45: ; preds = %53, %41
%46 = load i32, ptr %4, align 4
%47 = load i32, ptr %2, align 4
%48 = icmp sle i32 %46, %47
br i1 %48, label %49, label %57
49: ; preds = %45
%50 = load i32, ptr %4, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds i32, ptr %14, i64 %51
store i32 0, ptr %52, align 4
br label %53
53: ; preds = %49
%54 = load i32, ptr %4, align 4
%55 = load i32, ptr %7, align 4
%56 = add nsw i32 %54, %55
store i32 %56, ptr %4, align 4
br label %45, !llvm.loop !8
57: ; preds = %45
br label %58
58: ; preds = %57
%59 = load i32, ptr %7, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %7, align 4
br label %28, !llvm.loop !9
61: ; preds = %39
%62 = load i32, ptr %2, align 4
%63 = sext i32 %62 to i64
%64 = mul i64 %63, 4
%65 = trunc i64 %64 to i32
%66 = call ptr @malloc(i32 noundef %65)
store ptr %66, ptr %8, align 8
%67 = load ptr, ptr %8, align 8
store ptr %67, ptr %9, align 8
store i32 2, ptr %3, align 4
br label %68
68: ; preds = %87, %61
%69 = load i32, ptr %3, align 4
%70 = load i32, ptr %2, align 4
%71 = icmp sle i32 %69, %70
br i1 %71, label %72, label %90
72: ; preds = %68
%73 = load i32, ptr %3, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds i32, ptr %14, i64 %74
%76 = load i32, ptr %75, align 4
%77 = icmp ne i32 %76, 0
br i1 %77, label %78, label %86
78: ; preds = %72
%79 = load i32, ptr %3, align 4
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds i32, ptr %14, i64 %80
%82 = load i32, ptr %81, align 4
%83 = load ptr, ptr %9, align 8
store i32 %82, ptr %83, align 4
%84 = load ptr, ptr %9, align 8
%85 = getelementptr inbounds i32, ptr %84, i32 1
store ptr %85, ptr %9, align 8
br label %86
86: ; preds = %78, %72
br label %87
87: ; preds = %86
%88 = load i32, ptr %3, align 4
%89 = add nsw i32 %88, 1
store i32 %89, ptr %3, align 4
br label %68, !llvm.loop !10
90: ; preds = %68
%91 = load ptr, ptr %9, align 8
store i32 -1, ptr %91, align 4
%92 = load ptr, ptr %8, align 8
%93 = load ptr, ptr %5, align 8
call void @llvm.stackrestore(ptr %93)
ret ptr %92
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @sqrt(i32 noundef) #2
declare ptr @malloc(i32 noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyqg99y6f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @primes(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%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
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%10 = load i32, ptr %2, align 4
%11 = add nsw i32 %10, 1
%12 = zext i32 %11 to i64
%13 = call ptr @llvm.stacksave()
store ptr %13, ptr %5, align 8
%14 = alloca i32, i64 %12, align 16
store i64 %12, ptr %6, align 8
store i32 0, ptr %3, align 4
%15 = load i32, ptr %3, align 4
%16 = load i32, ptr %2, align 4
%17 = icmp sle i32 %15, %16
br i1 %17, label %.lr.ph, label %29
.lr.ph: ; preds = %1
br label %18
18: ; preds = %.lr.ph, %23
%19 = load i32, ptr %3, align 4
%20 = load i32, ptr %3, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i32, ptr %14, i64 %21
store i32 %19, ptr %22, align 4
br label %23
23: ; preds = %18
%24 = load i32, ptr %3, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %3, align 4
%26 = load i32, ptr %3, align 4
%27 = load i32, ptr %2, align 4
%28 = icmp sle i32 %26, %27
br i1 %28, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %29
29: ; preds = %._crit_edge, %1
store i32 2, ptr %7, align 4
br label %30
30: ; preds = %62, %29
%31 = load i32, ptr %7, align 4
%32 = load i32, ptr %2, align 4
%33 = call i32 @sqrt(i32 noundef %32)
%34 = icmp sle i32 %31, %33
br i1 %34, label %35, label %41
35: ; preds = %30
%36 = load i32, ptr %7, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i32, ptr %14, i64 %37
%39 = load i32, ptr %38, align 4
%40 = icmp ne i32 %39, 0
br label %41
41: ; preds = %35, %30
%42 = phi i1 [ false, %30 ], [ %40, %35 ]
br i1 %42, label %43, label %65
43: ; preds = %41
%44 = load i32, ptr %7, align 4
%45 = load i32, ptr %7, align 4
%46 = mul nsw i32 %44, %45
store i32 %46, ptr %4, align 4
%47 = load i32, ptr %4, align 4
%48 = load i32, ptr %2, align 4
%49 = icmp sle i32 %47, %48
br i1 %49, label %.lr.ph2, label %61
.lr.ph2: ; preds = %43
br label %50
50: ; preds = %.lr.ph2, %54
%51 = load i32, ptr %4, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i32, ptr %14, i64 %52
store i32 0, ptr %53, align 4
br label %54
54: ; preds = %50
%55 = load i32, ptr %4, align 4
%56 = load i32, ptr %7, align 4
%57 = add nsw i32 %55, %56
store i32 %57, ptr %4, align 4
%58 = load i32, ptr %4, align 4
%59 = load i32, ptr %2, align 4
%60 = icmp sle i32 %58, %59
br i1 %60, label %50, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %54
br label %61
61: ; preds = %._crit_edge3, %43
br label %62
62: ; preds = %61
%63 = load i32, ptr %7, align 4
%64 = add nsw i32 %63, 1
store i32 %64, ptr %7, align 4
br label %30, !llvm.loop !9
65: ; preds = %41
%66 = load i32, ptr %2, align 4
%67 = sext i32 %66 to i64
%68 = mul i64 %67, 4
%69 = trunc i64 %68 to i32
%70 = call ptr @malloc(i32 noundef %69)
store ptr %70, ptr %8, align 8
%71 = load ptr, ptr %8, align 8
store ptr %71, ptr %9, align 8
store i32 2, ptr %3, align 4
%72 = load i32, ptr %3, align 4
%73 = load i32, ptr %2, align 4
%74 = icmp sle i32 %72, %73
br i1 %74, label %.lr.ph5, label %96
.lr.ph5: ; preds = %65
br label %75
75: ; preds = %.lr.ph5, %90
%76 = load i32, ptr %3, align 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds i32, ptr %14, i64 %77
%79 = load i32, ptr %78, align 4
%80 = icmp ne i32 %79, 0
br i1 %80, label %81, label %89
81: ; preds = %75
%82 = load i32, ptr %3, align 4
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds i32, ptr %14, i64 %83
%85 = load i32, ptr %84, align 4
%86 = load ptr, ptr %9, align 8
store i32 %85, ptr %86, align 4
%87 = load ptr, ptr %9, align 8
%88 = getelementptr inbounds i32, ptr %87, i32 1
store ptr %88, ptr %9, align 8
br label %89
89: ; preds = %81, %75
br label %90
90: ; preds = %89
%91 = load i32, ptr %3, align 4
%92 = add nsw i32 %91, 1
store i32 %92, ptr %3, align 4
%93 = load i32, ptr %3, align 4
%94 = load i32, ptr %2, align 4
%95 = icmp sle i32 %93, %94
br i1 %95, label %75, label %._crit_edge6, !llvm.loop !10
._crit_edge6: ; preds = %90
br label %96
96: ; preds = %._crit_edge6, %65
%97 = load ptr, ptr %9, align 8
store i32 -1, ptr %97, align 4
%98 = load ptr, ptr %8, align 8
%99 = load ptr, ptr %5, align 8
call void @llvm.stackrestore(ptr %99)
ret ptr %98
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @sqrt(i32 noundef) #2
declare ptr @malloc(i32 noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpxj0szd4_.c'
source_filename = "/tmp/tmpxj0szd4_.c"
target datalayout = "e-m:e-p270: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/tmpxj0szd4_.c"
target datalayout = "e-m:e-p270: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/tmp0dqyfcma.c'
source_filename = "/tmp/tmp0dqyfcma.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = dso_local global i32 0, align 4
@stdout = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0dqyfcma.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = dso_local global i32 0, align 4
@stdout = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmppb8yqse3.c'
source_filename = "/tmp/tmppb8yqse3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"panic: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @panic(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @printf(ptr noundef @.str, ptr noundef %3)
%5 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr 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/tmppb8yqse3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c"panic: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @panic(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = call i32 @printf(ptr noundef @.str, ptr noundef %3)
%5 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @printf(ptr 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/tmppoxf27t3.c'
source_filename = "/tmp/tmppoxf27t3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [32 x i8] c"\0A\0AYou have following choices.\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [35 x i8] c"1: \09To change the value by index.\0A\00", align 1
@.str.2 = private unnamed_addr constant [43 x i8] c"2: \09To replace a value with a new value.\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @changechoices() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @printf(ptr noundef @.str.1)
%3 = call i32 @printf(ptr noundef @.str.2)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppoxf27t3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [32 x i8] c"\0A\0AYou have following choices.\0A\0A\00", align 1
@.str.1 = private unnamed_addr constant [35 x i8] c"1: \09To change the value by index.\0A\00", align 1
@.str.2 = private unnamed_addr constant [43 x i8] c"2: \09To replace a value with a new value.\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @changechoices() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @printf(ptr noundef @.str.1)
%3 = call i32 @printf(ptr noundef @.str.2)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp4u8htdmo.c'
source_filename = "/tmp/tmp4u8htdmo.c"
target datalayout = "e-m:e-p270: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/tmp4u8htdmo.c"
target datalayout = "e-m:e-p270: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/tmpnw0s7cxp.c'
source_filename = "/tmp/tmpnw0s7cxp.c"
target datalayout = "e-m:e-p270: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/tmpnw0s7cxp.c"
target datalayout = "e-m:e-p270: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/tmpz9wkpaf7.c'
source_filename = "/tmp/tmpz9wkpaf7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @str_to_int(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%9 = load ptr, ptr %4, align 8
%10 = call i64 @strtol(ptr noundef %9, ptr noundef %6, i32 noundef 10)
store i64 %10, ptr %7, align 8
%11 = load i64, ptr %7, align 8
%12 = trunc i64 %11 to i32
store i32 %12, ptr %8, align 4
%13 = load ptr, ptr %6, align 8
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = icmp ne i32 %15, 0
br i1 %16, label %22, label %17
17: ; preds = %2
%18 = load i32, ptr %8, align 4
%19 = sext i32 %18 to i64
%20 = load i64, ptr %7, align 8
%21 = icmp ne i64 %19, %20
br i1 %21, label %22, label %23
22: ; preds = %17, %2
store i32 0, ptr %3, align 4
br label %26
23: ; preds = %17
%24 = load i32, ptr %8, align 4
%25 = load ptr, ptr %5, align 8
store i32 %24, ptr %25, align 4
store i32 1, ptr %3, align 4
br label %26
26: ; preds = %23, %22
%27 = load i32, ptr %3, align 4
ret i32 %27
}
declare i64 @strtol(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/tmpz9wkpaf7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @str_to_int(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%9 = load ptr, ptr %4, align 8
%10 = call i64 @strtol(ptr noundef %9, ptr noundef %6, i32 noundef 10)
store i64 %10, ptr %7, align 8
%11 = load i64, ptr %7, align 8
%12 = trunc i64 %11 to i32
store i32 %12, ptr %8, align 4
%13 = load ptr, ptr %6, align 8
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = icmp ne i32 %15, 0
br i1 %16, label %22, label %17
17: ; preds = %2
%18 = load i32, ptr %8, align 4
%19 = sext i32 %18 to i64
%20 = load i64, ptr %7, align 8
%21 = icmp ne i64 %19, %20
br i1 %21, label %22, label %23
22: ; preds = %17, %2
store i32 0, ptr %3, align 4
br label %26
23: ; preds = %17
%24 = load i32, ptr %8, align 4
%25 = load ptr, ptr %5, align 8
store i32 %24, ptr %25, align 4
store i32 1, ptr %3, align 4
br label %26
26: ; preds = %23, %22
%27 = load i32, ptr %3, align 4
ret i32 %27
}
declare i64 @strtol(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/tmp1pol2wx3.c'
source_filename = "/tmp/tmp1pol2wx3.c"
target datalayout = "e-m:e-p270: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/tmp1pol2wx3.c"
target datalayout = "e-m:e-p270: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/tmpy8yk5h1j.c'
source_filename = "/tmp/tmpy8yk5h1j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
br label %4
4: ; preds = %38, %0
%5 = load i32, ptr %2, align 4
%6 = icmp sle i32 %5, 8
br i1 %6, label %7, label %41
7: ; preds = %4
store i32 1, ptr %3, align 4
br label %8
8: ; preds = %34, %7
%9 = load i32, ptr %3, align 4
%10 = icmp sle i32 %9, 9
br i1 %10, label %11, label %37
11: ; preds = %8
%12 = load i32, ptr %2, align 4
%13 = load i32, ptr %3, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %15, label %33
15: ; preds = %11
%16 = load i32, ptr %2, align 4
%17 = add nsw i32 48, %16
%18 = trunc i32 %17 to i8
%19 = call i32 @putchar(i8 noundef signext %18)
%20 = load i32, ptr %3, align 4
%21 = add nsw i32 48, %20
%22 = trunc i32 %21 to i8
%23 = call i32 @putchar(i8 noundef signext %22)
%24 = load i32, ptr %2, align 4
%25 = icmp ne i32 %24, 8
br i1 %25, label %29, label %26
26: ; preds = %15
%27 = load i32, ptr %3, align 4
%28 = icmp ne i32 %27, 9
br i1 %28, label %29, label %32
29: ; preds = %26, %15
%30 = call i32 @putchar(i8 noundef signext 44)
%31 = call i32 @putchar(i8 noundef signext 32)
br label %32
32: ; preds = %29, %26
br label %33
33: ; preds = %32, %11
br label %34
34: ; preds = %33
%35 = load i32, ptr %3, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %3, align 4
br label %8, !llvm.loop !6
37: ; preds = %8
br label %38
38: ; preds = %37
%39 = load i32, ptr %2, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %2, align 4
br label %4, !llvm.loop !8
41: ; preds = %4
%42 = call i32 @putchar(i8 noundef signext 10)
ret i32 0
}
declare i32 @putchar(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"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpy8yk5h1j.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = icmp sle i32 %4, 8
br i1 %5, label %.lr.ph2, label %43
.lr.ph2: ; preds = %0
br label %6
6: ; preds = %.lr.ph2, %38
store i32 1, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = icmp sle i32 %7, 9
br i1 %8, label %.lr.ph, label %37
.lr.ph: ; preds = %6
br label %9
9: ; preds = %.lr.ph, %32
%10 = load i32, ptr %2, align 4
%11 = load i32, ptr %3, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %31
13: ; preds = %9
%14 = load i32, ptr %2, align 4
%15 = add nsw i32 48, %14
%16 = trunc i32 %15 to i8
%17 = call i32 @putchar(i8 noundef signext %16)
%18 = load i32, ptr %3, align 4
%19 = add nsw i32 48, %18
%20 = trunc i32 %19 to i8
%21 = call i32 @putchar(i8 noundef signext %20)
%22 = load i32, ptr %2, align 4
%23 = icmp ne i32 %22, 8
br i1 %23, label %27, label %24
24: ; preds = %13
%25 = load i32, ptr %3, align 4
%26 = icmp ne i32 %25, 9
br i1 %26, label %27, label %30
27: ; preds = %24, %13
%28 = call i32 @putchar(i8 noundef signext 44)
%29 = call i32 @putchar(i8 noundef signext 32)
br label %30
30: ; preds = %27, %24
br label %31
31: ; preds = %30, %9
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 sle i32 %35, 9
br i1 %36, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %32
br label %37
37: ; preds = %._crit_edge, %6
br label %38
38: ; preds = %37
%39 = load i32, ptr %2, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %2, align 4
%41 = load i32, ptr %2, align 4
%42 = icmp sle i32 %41, 8
br i1 %42, label %6, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %38
br label %43
43: ; preds = %._crit_edge3, %0
%44 = call i32 @putchar(i8 noundef signext 10)
ret i32 0
}
declare i32 @putchar(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"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpsh0e0hyh.c'
source_filename = "/tmp/tmpsh0e0hyh.c"
target datalayout = "e-m:e-p270: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 [33 x i8] c"am2321: Unsupported option \22%s\22\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @parse_options(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
br label %7
7: ; preds = %55, %2
%8 = load i32, ptr %6, align 4
%9 = add nsw i32 1, %8
%10 = load i32, ptr %3, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %23
12: ; preds = %7
%13 = load ptr, ptr %4, align 8
%14 = load i32, ptr %6, align 4
%15 = add nsw i32 1, %14
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds ptr, ptr %13, i64 %16
%18 = load ptr, ptr %17, align 8
%19 = getelementptr inbounds i8, ptr %18, i64 0
%20 = load i8, ptr %19, align 1
%21 = sext i8 %20 to i32
%22 = icmp eq i32 %21, 45
br label %23
23: ; preds = %12, %7
%24 = phi i1 [ false, %7 ], [ %22, %12 ]
br i1 %24, label %25, label %58
25: ; preds = %23
%26 = load ptr, ptr %4, align 8
%27 = load i32, ptr %6, align 4
%28 = add nsw i32 1, %27
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds ptr, ptr %26, i64 %29
%31 = load ptr, ptr %30, align 8
%32 = getelementptr inbounds i8, ptr %31, i64 1
%33 = load i8, ptr %32, align 1
%34 = sext i8 %33 to i32
switch i32 %34, label %44 [
i32 114, label %35
i32 109, label %38
i32 115, label %41
]
35: ; preds = %25
%36 = load i32, ptr %5, align 4
%37 = or i32 %36, 1
store i32 %37, ptr %5, align 4
br label %55
38: ; preds = %25
%39 = load i32, ptr %5, align 4
%40 = or i32 %39, 4
store i32 %40, ptr %5, align 4
br label %55
41: ; preds = %25
%42 = load i32, ptr %5, align 4
%43 = or i32 %42, 2
store i32 %43, ptr %5, align 4
br label %55
44: ; preds = %25
%45 = load i32, ptr @stderr, align 4
%46 = load ptr, ptr %4, align 8
%47 = load i32, ptr %6, align 4
%48 = add nsw i32 1, %47
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds ptr, ptr %46, i64 %49
%51 = load ptr, ptr %50, align 8
%52 = call i32 @fprintf(i32 noundef %45, ptr noundef @.str, ptr noundef %51)
%53 = call i32 (...) @print_help()
%54 = call i32 @exit(i32 noundef 1) #3
unreachable
55: ; preds = %41, %38, %35
%56 = load i32, ptr %6, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %6, align 4
br label %7, !llvm.loop !6
58: ; preds = %23
%59 = load i32, ptr %5, align 4
ret i32 %59
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @print_help(...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsh0e0hyh.c"
target datalayout = "e-m:e-p270: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 [33 x i8] c"am2321: Unsupported option \22%s\22\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @parse_options(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
br label %7
7: ; preds = %55, %2
%8 = load i32, ptr %6, align 4
%9 = add nsw i32 1, %8
%10 = load i32, ptr %3, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %23
12: ; preds = %7
%13 = load ptr, ptr %4, align 8
%14 = load i32, ptr %6, align 4
%15 = add nsw i32 1, %14
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds ptr, ptr %13, i64 %16
%18 = load ptr, ptr %17, align 8
%19 = getelementptr inbounds i8, ptr %18, i64 0
%20 = load i8, ptr %19, align 1
%21 = sext i8 %20 to i32
%22 = icmp eq i32 %21, 45
br label %23
23: ; preds = %12, %7
%24 = phi i1 [ false, %7 ], [ %22, %12 ]
br i1 %24, label %25, label %58
25: ; preds = %23
%26 = load ptr, ptr %4, align 8
%27 = load i32, ptr %6, align 4
%28 = add nsw i32 1, %27
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds ptr, ptr %26, i64 %29
%31 = load ptr, ptr %30, align 8
%32 = getelementptr inbounds i8, ptr %31, i64 1
%33 = load i8, ptr %32, align 1
%34 = sext i8 %33 to i32
switch i32 %34, label %44 [
i32 114, label %35
i32 109, label %38
i32 115, label %41
]
35: ; preds = %25
%36 = load i32, ptr %5, align 4
%37 = or i32 %36, 1
store i32 %37, ptr %5, align 4
br label %55
38: ; preds = %25
%39 = load i32, ptr %5, align 4
%40 = or i32 %39, 4
store i32 %40, ptr %5, align 4
br label %55
41: ; preds = %25
%42 = load i32, ptr %5, align 4
%43 = or i32 %42, 2
store i32 %43, ptr %5, align 4
br label %55
44: ; preds = %25
%45 = load i32, ptr @stderr, align 4
%46 = load ptr, ptr %4, align 8
%47 = load i32, ptr %6, align 4
%48 = add nsw i32 1, %47
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds ptr, ptr %46, i64 %49
%51 = load ptr, ptr %50, align 8
%52 = call i32 @fprintf(i32 noundef %45, ptr noundef @.str, ptr noundef %51)
%53 = call i32 (...) @print_help()
%54 = call i32 @exit(i32 noundef 1) #3
unreachable
55: ; preds = %41, %38, %35
%56 = load i32, ptr %6, align 4
%57 = add nsw i32 %56, 1
store i32 %57, ptr %6, align 4
br label %7, !llvm.loop !6
58: ; preds = %23
%59 = load i32, ptr %5, align 4
ret i32 %59
}
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @print_help(...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpe5k0wpqb.c'
source_filename = "/tmp/tmpe5k0wpqb.c"
target datalayout = "e-m:e-p270: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/tmpe5k0wpqb.c"
target datalayout = "e-m:e-p270: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/tmpiypgm28h.c'
source_filename = "/tmp/tmpiypgm28h.c"
target datalayout = "e-m:e-p270: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/tmpiypgm28h.c"
target datalayout = "e-m:e-p270: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/tmpshnhde9s.c'
source_filename = "/tmp/tmpshnhde9s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @brealloc(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = load i64, ptr %4, align 8
%8 = call ptr @realloc(ptr noundef %6, i64 noundef %7) #3
store ptr %8, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %13
11: ; preds = %2
%12 = call i32 @err(i32 noundef 1, ptr noundef null)
br label %13
13: ; preds = %11, %2
%14 = load ptr, ptr %5, align 8
ret ptr %14
}
; Function Attrs: allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #1
declare i32 @err(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 = { 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/tmpshnhde9s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @brealloc(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = load i64, ptr %4, align 8
%8 = call ptr @realloc(ptr noundef %6, i64 noundef %7) #3
store ptr %8, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %13
11: ; preds = %2
%12 = call i32 @err(i32 noundef 1, ptr noundef null)
br label %13
13: ; preds = %11, %2
%14 = load ptr, ptr %5, align 8
ret ptr %14
}
; Function Attrs: allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #1
declare i32 @err(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 = { 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/tmpfn3jhv9s.c'
source_filename = "/tmp/tmpfn3jhv9s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @read_string(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
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
%8 = load ptr, ptr %4, align 8
%9 = icmp eq ptr %8, null
br i1 %9, label %13, label %10
10: ; preds = %2
%11 = load ptr, ptr %5, align 8
%12 = icmp eq ptr %11, null
br i1 %12, label %13, label %14
13: ; preds = %10, %2
store i32 0, ptr %3, align 4
br label %147
14: ; preds = %10
%15 = load ptr, ptr %5, align 8
%16 = call i32 @memset(ptr noundef %15, i32 noundef 0, i32 noundef 1001)
%17 = load ptr, ptr %5, align 8
%18 = load ptr, ptr %4, align 8
%19 = call ptr @fgets(ptr noundef %17, i32 noundef 1001, ptr noundef %18)
%20 = icmp eq ptr %19, null
br i1 %20, label %21, label %22
21: ; preds = %14
store i32 0, ptr %3, align 4
br label %147
22: ; preds = %14
br label %23
23: ; preds = %64, %22
%24 = load ptr, ptr %5, align 8
%25 = load i32, ptr %6, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i8, ptr %24, i64 %26
%28 = load i8, ptr %27, align 1
%29 = sext i8 %28 to i32
%30 = icmp ne i32 %29, 0
br i1 %30, label %31, label %67
31: ; preds = %23
%32 = load ptr, ptr %5, align 8
%33 = load i32, ptr %6, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i8, ptr %32, i64 %34
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = icmp ne i32 %37, 32
br i1 %38, label %39, label %64
39: ; preds = %31
%40 = load ptr, ptr %5, align 8
%41 = load i32, ptr %6, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i8, ptr %40, i64 %42
%44 = load i8, ptr %43, align 1
%45 = sext i8 %44 to i32
%46 = icmp ne i32 %45, 9
br i1 %46, label %47, label %64
47: ; preds = %39
%48 = load ptr, ptr %5, align 8
%49 = load i32, ptr %6, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds i8, ptr %48, i64 %50
%52 = load i8, ptr %51, align 1
%53 = sext i8 %52 to i32
%54 = icmp ne i32 %53, 10
br i1 %54, label %55, label %64
55: ; preds = %47
%56 = load ptr, ptr %5, align 8
%57 = load i32, ptr %6, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds i8, ptr %56, i64 %58
%60 = load i8, ptr %59, align 1
%61 = sext i8 %60 to i32
%62 = icmp ne i32 %61, 13
br i1 %62, label %63, label %64
63: ; preds = %55
br label %67
64: ; preds = %55, %47, %39, %31
%65 = load i32, ptr %6, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %6, align 4
br label %23, !llvm.loop !6
67: ; preds = %63, %23
%68 = load ptr, ptr %5, align 8
%69 = load i32, ptr %6, align 4
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds i8, ptr %68, i64 %70
%72 = load i8, ptr %71, align 1
%73 = sext i8 %72 to i32
%74 = icmp eq i32 %73, 0
br i1 %74, label %75, label %78
75: ; preds = %67
%76 = load ptr, ptr %5, align 8
%77 = call i32 @memset(ptr noundef %76, i32 noundef 0, i32 noundef 1001)
store i32 0, ptr %3, align 4
br label %147
78: ; preds = %67
%79 = load ptr, ptr %5, align 8
%80 = call i32 @strlen(ptr noundef %79)
%81 = sub nsw i32 %80, 1
store i32 %81, ptr %7, align 4
br label %82
82: ; preds = %119, %78
%83 = load i32, ptr %7, align 4
%84 = load i32, ptr %6, align 4
%85 = icmp sgt i32 %83, %84
br i1 %85, label %86, label %122
86: ; preds = %82
%87 = load ptr, ptr %5, align 8
%88 = load i32, ptr %7, align 4
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds i8, ptr %87, i64 %89
%91 = load i8, ptr %90, align 1
%92 = sext i8 %91 to i32
%93 = icmp ne i32 %92, 32
br i1 %93, label %94, label %119
94: ; preds = %86
%95 = load ptr, ptr %5, align 8
%96 = load i32, ptr %7, align 4
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds i8, ptr %95, i64 %97
%99 = load i8, ptr %98, align 1
%100 = sext i8 %99 to i32
%101 = icmp ne i32 %100, 9
br i1 %101, label %102, label %119
102: ; preds = %94
%103 = load ptr, ptr %5, align 8
%104 = load i32, ptr %7, align 4
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds i8, ptr %103, i64 %105
%107 = load i8, ptr %106, align 1
%108 = sext i8 %107 to i32
%109 = icmp ne i32 %108, 10
br i1 %109, label %110, label %119
110: ; preds = %102
%111 = load ptr, ptr %5, align 8
%112 = load i32, ptr %7, align 4
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds i8, ptr %111, i64 %113
%115 = load i8, ptr %114, align 1
%116 = sext i8 %115 to i32
%117 = icmp ne i32 %116, 13
br i1 %117, label %118, label %119
118: ; preds = %110
br label %122
119: ; preds = %110, %102, %94, %86
%120 = load i32, ptr %7, align 4
%121 = add nsw i32 %120, -1
store i32 %121, ptr %7, align 4
br label %82, !llvm.loop !8
122: ; preds = %118, %82
%123 = load ptr, ptr %5, align 8
%124 = load i32, ptr %7, align 4
%125 = add nsw i32 %124, 1
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds i8, ptr %123, i64 %126
store i8 0, ptr %127, align 1
%128 = load i32, ptr %6, align 4
%129 = icmp sgt i32 %128, 0
br i1 %129, label %130, label %142
130: ; preds = %122
%131 = load ptr, ptr %5, align 8
%132 = getelementptr inbounds i8, ptr %131, i64 0
%133 = load ptr, ptr %5, align 8
%134 = load i32, ptr %6, align 4
%135 = sext i32 %134 to i64
%136 = getelementptr inbounds i8, ptr %133, i64 %135
%137 = load i32, ptr %7, align 4
%138 = load i32, ptr %6, align 4
%139 = sub nsw i32 %137, %138
%140 = add nsw i32 %139, 2
%141 = call i32 @memmove(ptr noundef %132, ptr noundef %136, i32 noundef %140)
br label %142
142: ; preds = %130, %122
%143 = load i32, ptr %7, align 4
%144 = load i32, ptr %6, align 4
%145 = sub nsw i32 %143, %144
%146 = add nsw i32 %145, 1
store i32 %146, ptr %3, align 4
br label %147
147: ; preds = %142, %75, %21, %13
%148 = load i32, ptr %3, align 4
ret i32 %148
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @memmove(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfn3jhv9s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @read_string(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
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
%8 = load ptr, ptr %4, align 8
%9 = icmp eq ptr %8, null
br i1 %9, label %13, label %10
10: ; preds = %2
%11 = load ptr, ptr %5, align 8
%12 = icmp eq ptr %11, null
br i1 %12, label %13, label %14
13: ; preds = %10, %2
store i32 0, ptr %3, align 4
br label %155
14: ; preds = %10
%15 = load ptr, ptr %5, align 8
%16 = call i32 @memset(ptr noundef %15, i32 noundef 0, i32 noundef 1001)
%17 = load ptr, ptr %5, align 8
%18 = load ptr, ptr %4, align 8
%19 = call ptr @fgets(ptr noundef %17, i32 noundef 1001, ptr noundef %18)
%20 = icmp eq ptr %19, null
br i1 %20, label %21, label %22
21: ; preds = %14
store i32 0, ptr %3, align 4
br label %155
22: ; preds = %14
%23 = load ptr, ptr %5, align 8
%24 = load i32, ptr %6, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i8, ptr %23, i64 %25
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = icmp ne i32 %28, 0
br i1 %29, label %.lr.ph, label %.loopexit1
.lr.ph: ; preds = %22
br label %30
30: ; preds = %.lr.ph, %63
%31 = load ptr, ptr %5, align 8
%32 = load i32, ptr %6, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i8, ptr %31, i64 %33
%35 = load i8, ptr %34, align 1
%36 = sext i8 %35 to i32
%37 = icmp ne i32 %36, 32
br i1 %37, label %38, label %63
38: ; preds = %30
%39 = load ptr, ptr %5, align 8
%40 = load i32, ptr %6, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i8, ptr %39, i64 %41
%43 = load i8, ptr %42, align 1
%44 = sext i8 %43 to i32
%45 = icmp ne i32 %44, 9
br i1 %45, label %46, label %63
46: ; preds = %38
%47 = load ptr, ptr %5, align 8
%48 = load i32, ptr %6, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i8, ptr %47, i64 %49
%51 = load i8, ptr %50, align 1
%52 = sext i8 %51 to i32
%53 = icmp ne i32 %52, 10
br i1 %53, label %54, label %63
54: ; preds = %46
%55 = load ptr, ptr %5, align 8
%56 = load i32, ptr %6, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i8, ptr %55, i64 %57
%59 = load i8, ptr %58, align 1
%60 = sext i8 %59 to i32
%61 = icmp ne i32 %60, 13
br i1 %61, label %62, label %63
62: ; preds = %54
br label %73
63: ; preds = %54, %46, %38, %30
%64 = load i32, ptr %6, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %6, align 4
%66 = load ptr, ptr %5, align 8
%67 = load i32, ptr %6, align 4
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds i8, ptr %66, i64 %68
%70 = load i8, ptr %69, align 1
%71 = sext i8 %70 to i32
%72 = icmp ne i32 %71, 0
br i1 %72, label %30, label %..loopexit1_crit_edge, !llvm.loop !6
..loopexit1_crit_edge: ; preds = %63
br label %.loopexit1
.loopexit1: ; preds = %..loopexit1_crit_edge, %22
br label %73
73: ; preds = %.loopexit1, %62
%74 = load ptr, ptr %5, align 8
%75 = load i32, ptr %6, align 4
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds i8, ptr %74, i64 %76
%78 = load i8, ptr %77, align 1
%79 = sext i8 %78 to i32
%80 = icmp eq i32 %79, 0
br i1 %80, label %81, label %84
81: ; preds = %73
%82 = load ptr, ptr %5, align 8
%83 = call i32 @memset(ptr noundef %82, i32 noundef 0, i32 noundef 1001)
store i32 0, ptr %3, align 4
br label %155
84: ; preds = %73
%85 = load ptr, ptr %5, align 8
%86 = call i32 @strlen(ptr noundef %85)
%87 = sub nsw i32 %86, 1
store i32 %87, ptr %7, align 4
%88 = load i32, ptr %7, align 4
%89 = load i32, ptr %6, align 4
%90 = icmp sgt i32 %88, %89
br i1 %90, label %.lr.ph2, label %.loopexit
.lr.ph2: ; preds = %84
br label %91
91: ; preds = %.lr.ph2, %124
%92 = load ptr, ptr %5, align 8
%93 = load i32, ptr %7, align 4
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds i8, ptr %92, i64 %94
%96 = load i8, ptr %95, align 1
%97 = sext i8 %96 to i32
%98 = icmp ne i32 %97, 32
br i1 %98, label %99, label %124
99: ; preds = %91
%100 = load ptr, ptr %5, align 8
%101 = load i32, ptr %7, align 4
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds i8, ptr %100, i64 %102
%104 = load i8, ptr %103, align 1
%105 = sext i8 %104 to i32
%106 = icmp ne i32 %105, 9
br i1 %106, label %107, label %124
107: ; preds = %99
%108 = load ptr, ptr %5, align 8
%109 = load i32, ptr %7, align 4
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds i8, ptr %108, i64 %110
%112 = load i8, ptr %111, align 1
%113 = sext i8 %112 to i32
%114 = icmp ne i32 %113, 10
br i1 %114, label %115, label %124
115: ; preds = %107
%116 = load ptr, ptr %5, align 8
%117 = load i32, ptr %7, align 4
%118 = sext i32 %117 to i64
%119 = getelementptr inbounds i8, ptr %116, i64 %118
%120 = load i8, ptr %119, align 1
%121 = sext i8 %120 to i32
%122 = icmp ne i32 %121, 13
br i1 %122, label %123, label %124
123: ; preds = %115
br label %130
124: ; preds = %115, %107, %99, %91
%125 = load i32, ptr %7, align 4
%126 = add nsw i32 %125, -1
store i32 %126, ptr %7, align 4
%127 = load i32, ptr %7, align 4
%128 = load i32, ptr %6, align 4
%129 = icmp sgt i32 %127, %128
br i1 %129, label %91, label %..loopexit_crit_edge, !llvm.loop !8
..loopexit_crit_edge: ; preds = %124
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %84
br label %130
130: ; preds = %.loopexit, %123
%131 = load ptr, ptr %5, align 8
%132 = load i32, ptr %7, align 4
%133 = add nsw i32 %132, 1
%134 = sext i32 %133 to i64
%135 = getelementptr inbounds i8, ptr %131, i64 %134
store i8 0, ptr %135, align 1
%136 = load i32, ptr %6, align 4
%137 = icmp sgt i32 %136, 0
br i1 %137, label %138, label %150
138: ; preds = %130
%139 = load ptr, ptr %5, align 8
%140 = getelementptr inbounds i8, ptr %139, i64 0
%141 = load ptr, ptr %5, align 8
%142 = load i32, ptr %6, align 4
%143 = sext i32 %142 to i64
%144 = getelementptr inbounds i8, ptr %141, i64 %143
%145 = load i32, ptr %7, align 4
%146 = load i32, ptr %6, align 4
%147 = sub nsw i32 %145, %146
%148 = add nsw i32 %147, 2
%149 = call i32 @memmove(ptr noundef %140, ptr noundef %144, i32 noundef %148)
br label %150
150: ; preds = %138, %130
%151 = load i32, ptr %7, align 4
%152 = load i32, ptr %6, align 4
%153 = sub nsw i32 %151, %152
%154 = add nsw i32 %153, 1
store i32 %154, ptr %3, align 4
br label %155
155: ; preds = %150, %81, %21, %13
%156 = load i32, ptr %3, align 4
ret i32 %156
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @memmove(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp51hovyd2.c'
source_filename = "/tmp/tmp51hovyd2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ll_destroy(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 = icmp ne ptr %5, null
br i1 %6, label %8, label %7
7: ; preds = %2
br label %19
8: ; preds = %2
br label %9
9: ; preds = %13, %8
%10 = load ptr, ptr %3, align 8
%11 = load ptr, ptr %10, align 8
%12 = icmp ne ptr %11, null
br i1 %12, label %13, label %19
13: ; preds = %9
%14 = load ptr, ptr %3, align 8
%15 = load ptr, ptr %3, align 8
%16 = load ptr, ptr %15, align 8
%17 = load ptr, ptr %4, align 8
%18 = call i32 @ll_delete(ptr noundef %14, ptr noundef %16, ptr noundef %17)
br label %9, !llvm.loop !6
19: ; preds = %7, %9
ret void
}
declare i32 @ll_delete(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp51hovyd2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ll_destroy(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 = icmp ne ptr %5, null
br i1 %6, label %8, label %7
7: ; preds = %2
br label %21
8: ; preds = %2
%9 = load ptr, ptr %3, align 8
%10 = load ptr, ptr %9, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %8
br label %12
12: ; preds = %.lr.ph, %12
%13 = load ptr, ptr %3, align 8
%14 = load ptr, ptr %3, align 8
%15 = load ptr, ptr %14, align 8
%16 = load ptr, ptr %4, align 8
%17 = call i32 @ll_delete(ptr noundef %13, ptr noundef %15, ptr noundef %16)
%18 = load ptr, ptr %3, align 8
%19 = load ptr, ptr %18, align 8
%20 = icmp ne ptr %19, null
br i1 %20, label %12, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %12
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %8
br label %21
21: ; preds = %.loopexit, %7
ret void
}
declare i32 @ll_delete(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp12001ydj.c'
source_filename = "/tmp/tmp12001ydj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sig_pause() #0 {
%1 = alloca i32, align 4
%2 = call i32 @sigemptyset(ptr noundef %1)
%3 = call i32 @sigsuspend(ptr noundef %1)
ret void
}
declare i32 @sigemptyset(ptr noundef) #1
declare i32 @sigsuspend(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp12001ydj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sig_pause() #0 {
%1 = alloca i32, align 4
%2 = call i32 @sigemptyset(ptr noundef %1)
%3 = call i32 @sigsuspend(ptr noundef %1)
ret void
}
declare i32 @sigemptyset(ptr noundef) #1
declare i32 @sigsuspend(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpsadbjan_.c'
source_filename = "/tmp/tmpsadbjan_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENOSYS = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @statvfs(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load i32, ptr @ENOSYS, align 4
store i32 %5, ptr @errno, align 4
ret i32 -1
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsadbjan_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENOSYS = dso_local global i32 0, align 4
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @statvfs(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load i32, ptr @ENOSYS, align 4
store i32 %5, ptr @errno, align 4
ret i32 -1
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3xe90ibb.c'
source_filename = "/tmp/tmp3xe90ibb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [39 x i8] c"\C2\BB\C2\AA\C3\8A\C3\8F27\C2\B6\C3\88\C3\8E\C2\AA\C3\89\C3\A3\C3\8A\C3\8F\C2\B6\C3\88 %f \C2\B6\C3\88\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 float, align 4
store i32 0, ptr %1, align 4
store i32 27, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = sub nsw i32 %4, 32
%6 = sitofp i32 %5 to double
%7 = fdiv double %6, 1.800000e+00
%8 = fptrunc double %7 to float
store float %8, ptr %3, align 4
%9 = load float, ptr %3, align 4
%10 = call i32 @printf(ptr noundef @.str, float noundef %9)
ret i32 0
}
declare i32 @printf(ptr noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3xe90ibb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [39 x i8] c"\C2\BB\C2\AA\C3\8A\C3\8F27\C2\B6\C3\88\C3\8E\C2\AA\C3\89\C3\A3\C3\8A\C3\8F\C2\B6\C3\88 %f \C2\B6\C3\88\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 float, align 4
store i32 0, ptr %1, align 4
store i32 27, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = sub nsw i32 %4, 32
%6 = sitofp i32 %5 to double
%7 = fdiv double %6, 1.800000e+00
%8 = fptrunc double %7 to float
store float %8, ptr %3, align 4
%9 = load float, ptr %3, align 4
%10 = call i32 @printf(ptr noundef @.str, float noundef %9)
ret i32 0
}
declare i32 @printf(ptr noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7wm44zft.c'
source_filename = "/tmp/tmp7wm44zft.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cs2spcb_(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 @cs2spcb(ptr noundef %5, ptr noundef %6)
ret void
}
declare i32 @cs2spcb(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/tmp7wm44zft.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @cs2spcb_(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 @cs2spcb(ptr noundef %5, ptr noundef %6)
ret void
}
declare i32 @cs2spcb(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/tmp4ij31g1x.c'
source_filename = "/tmp/tmp4ij31g1x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @foo()
%3 = icmp ne i32 %2, 1
br i1 %3, label %4, label %6
4: ; preds = %0
%5 = call i32 (...) @abort() #3
unreachable
6: ; preds = %0
%7 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @foo(...) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
; 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/tmp4ij31g1x.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @foo()
%3 = icmp ne i32 %2, 1
br i1 %3, label %4, label %6
4: ; preds = %0
%5 = call i32 (...) @abort() #3
unreachable
6: ; preds = %0
%7 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare i32 @foo(...) #1
; Function Attrs: noreturn
declare i32 @abort(...) #2
; 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/tmptuunj4wt.c'
source_filename = "/tmp/tmptuunj4wt.c"
target datalayout = "e-m:e-p270: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/tmptuunj4wt.c"
target datalayout = "e-m:e-p270: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/tmpd7ucp0lj.c'
source_filename = "/tmp/tmpd7ucp0lj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @kernel_dgetrf_nn_4x4_lib4(i32 noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) #0 {
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
store i32 %0, ptr %9, align 4
store ptr %1, ptr %10, align 8
store ptr %2, ptr %11, align 8
store i32 %3, ptr %12, align 4
store i32 %4, ptr %13, align 4
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 %9, align 4
%18 = load ptr, ptr %10, align 8
%19 = load ptr, ptr %11, align 8
%20 = load i32, ptr %12, align 4
%21 = load i32, ptr %13, align 4
%22 = load ptr, ptr %14, align 8
%23 = load ptr, ptr %15, align 8
%24 = load ptr, ptr %16, align 8
%25 = call i32 @kernel_dgetrf_nn_4x4_vs_lib4(i32 noundef 4, i32 noundef 4, i32 noundef %17, ptr noundef %18, ptr noundef %19, i32 noundef %20, i32 noundef %21, ptr noundef %22, ptr noundef %23, ptr noundef %24)
ret void
}
declare i32 @kernel_dgetrf_nn_4x4_vs_lib4(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpd7ucp0lj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @kernel_dgetrf_nn_4x4_lib4(i32 noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) #0 {
%9 = alloca i32, align 4
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
store i32 %0, ptr %9, align 4
store ptr %1, ptr %10, align 8
store ptr %2, ptr %11, align 8
store i32 %3, ptr %12, align 4
store i32 %4, ptr %13, align 4
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 %9, align 4
%18 = load ptr, ptr %10, align 8
%19 = load ptr, ptr %11, align 8
%20 = load i32, ptr %12, align 4
%21 = load i32, ptr %13, align 4
%22 = load ptr, ptr %14, align 8
%23 = load ptr, ptr %15, align 8
%24 = load ptr, ptr %16, align 8
%25 = call i32 @kernel_dgetrf_nn_4x4_vs_lib4(i32 noundef 4, i32 noundef 4, i32 noundef %17, ptr noundef %18, ptr noundef %19, i32 noundef %20, i32 noundef %21, ptr noundef %22, ptr noundef %23, ptr noundef %24)
ret void
}
declare i32 @kernel_dgetrf_nn_4x4_vs_lib4(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzsgzlnbj.c'
source_filename = "/tmp/tmpzsgzlnbj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @iRobot_SafeMode() #0 {
%1 = call i32 @SerialWriteChar(i32 noundef 131)
ret void
}
declare i32 @SerialWriteChar(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzsgzlnbj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @iRobot_SafeMode() #0 {
%1 = call i32 @SerialWriteChar(i32 noundef 131)
ret void
}
declare i32 @SerialWriteChar(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3pifgzfw.c'
source_filename = "/tmp/tmp3pifgzfw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"a\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"Zahl: %d\0AVersuche: %d\0A--\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @writeToLog(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
%9 = load ptr, ptr %5, align 8
%10 = call ptr @openFile(ptr noundef %9, ptr noundef @.str)
store ptr %10, ptr %8, align 8
%11 = load ptr, ptr %8, align 8
%12 = icmp eq ptr %11, null
br i1 %12, label %13, label %14
13: ; preds = %3
store i32 0, ptr %4, align 4
br label %21
14: ; preds = %3
%15 = load ptr, ptr %8, align 8
%16 = load i32, ptr %6, align 4
%17 = load i32, ptr %7, align 4
%18 = call i32 @fprintf(ptr noundef %15, ptr noundef @.str.1, i32 noundef %16, i32 noundef %17)
%19 = load ptr, ptr %8, align 8
%20 = call i32 @fclose(ptr noundef %19)
store i32 1, ptr %4, align 4
br label %21
21: ; preds = %14, %13
%22 = load i32, ptr %4, align 4
ret i32 %22
}
declare ptr @openFile(ptr noundef, ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3pifgzfw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"a\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"Zahl: %d\0AVersuche: %d\0A--\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @writeToLog(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
%9 = load ptr, ptr %5, align 8
%10 = call ptr @openFile(ptr noundef %9, ptr noundef @.str)
store ptr %10, ptr %8, align 8
%11 = load ptr, ptr %8, align 8
%12 = icmp eq ptr %11, null
br i1 %12, label %13, label %14
13: ; preds = %3
store i32 0, ptr %4, align 4
br label %21
14: ; preds = %3
%15 = load ptr, ptr %8, align 8
%16 = load i32, ptr %6, align 4
%17 = load i32, ptr %7, align 4
%18 = call i32 @fprintf(ptr noundef %15, ptr noundef @.str.1, i32 noundef %16, i32 noundef %17)
%19 = load ptr, ptr %8, align 8
%20 = call i32 @fclose(ptr noundef %19)
store i32 1, ptr %4, align 4
br label %21
21: ; preds = %14, %13
%22 = load i32, ptr %4, align 4
ret i32 %22
}
declare ptr @openFile(ptr noundef, ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpexzfybti.c'
source_filename = "/tmp/tmpexzfybti.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"return\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"delete\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"export\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"import\00", align 1
@.str.4 = private unnamed_addr constant [9 x i8] c"shutdown\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @control_command(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i64 @strncmp(ptr noundef %6, ptr noundef @.str, i32 noundef 6)
%8 = icmp eq i64 %7, 0
br i1 %8, label %9, label %13
9: ; preds = %2
%10 = load ptr, ptr %4, align 8
%11 = getelementptr inbounds i8, ptr %10, i64 7
%12 = load ptr, ptr %5, align 8
store ptr %11, ptr %12, align 8
store i32 1, ptr %3, align 4
br label %50
13: ; preds = %2
%14 = load ptr, ptr %4, align 8
%15 = call i64 @strncmp(ptr noundef %14, ptr noundef @.str.1, i32 noundef 6)
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %21
17: ; preds = %13
%18 = load ptr, ptr %4, align 8
%19 = getelementptr inbounds i8, ptr %18, i64 7
%20 = load ptr, ptr %5, align 8
store ptr %19, ptr %20, align 8
store i32 5, ptr %3, align 4
br label %50
21: ; preds = %13
%22 = load ptr, ptr %4, align 8
%23 = call i64 @strncmp(ptr noundef %22, ptr noundef @.str.2, i32 noundef 6)
%24 = icmp eq i64 %23, 0
br i1 %24, label %25, label %29
25: ; preds = %21
%26 = load ptr, ptr %4, align 8
%27 = getelementptr inbounds i8, ptr %26, i64 7
%28 = load ptr, ptr %5, align 8
store ptr %27, ptr %28, align 8
store i32 3, ptr %3, align 4
br label %50
29: ; preds = %21
%30 = load ptr, ptr %4, align 8
%31 = call i64 @strncmp(ptr noundef %30, ptr noundef @.str.3, i32 noundef 6)
%32 = icmp eq i64 %31, 0
br i1 %32, label %33, label %37
33: ; preds = %29
%34 = load ptr, ptr %4, align 8
%35 = getelementptr inbounds i8, ptr %34, i64 7
%36 = load ptr, ptr %5, align 8
store ptr %35, ptr %36, align 8
store i32 2, ptr %3, align 4
br label %50
37: ; preds = %29
%38 = load ptr, ptr %4, align 8
%39 = call i64 @strncmp(ptr noundef %38, ptr noundef @.str.4, i32 noundef 8)
%40 = icmp eq i64 %39, 0
br i1 %40, label %41, label %43
41: ; preds = %37
%42 = load ptr, ptr %5, align 8
store ptr null, ptr %42, align 8
store i32 6, ptr %3, align 4
br label %50
43: ; preds = %37
br label %44
44: ; preds = %43
br label %45
45: ; preds = %44
br label %46
46: ; preds = %45
br label %47
47: ; preds = %46
%48 = load ptr, ptr %4, align 8
%49 = load ptr, ptr %5, align 8
store ptr %48, ptr %49, align 8
store i32 -1, ptr %3, align 4
br label %50
50: ; preds = %47, %41, %33, %25, %17, %9
%51 = load i32, ptr %3, align 4
ret i32 %51
}
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpexzfybti.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"return\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"delete\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"export\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"import\00", align 1
@.str.4 = private unnamed_addr constant [9 x i8] c"shutdown\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @control_command(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i64 @strncmp(ptr noundef %6, ptr noundef @.str, i32 noundef 6)
%8 = icmp eq i64 %7, 0
br i1 %8, label %9, label %13
9: ; preds = %2
%10 = load ptr, ptr %4, align 8
%11 = getelementptr inbounds i8, ptr %10, i64 7
%12 = load ptr, ptr %5, align 8
store ptr %11, ptr %12, align 8
store i32 1, ptr %3, align 4
br label %50
13: ; preds = %2
%14 = load ptr, ptr %4, align 8
%15 = call i64 @strncmp(ptr noundef %14, ptr noundef @.str.1, i32 noundef 6)
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %21
17: ; preds = %13
%18 = load ptr, ptr %4, align 8
%19 = getelementptr inbounds i8, ptr %18, i64 7
%20 = load ptr, ptr %5, align 8
store ptr %19, ptr %20, align 8
store i32 5, ptr %3, align 4
br label %50
21: ; preds = %13
%22 = load ptr, ptr %4, align 8
%23 = call i64 @strncmp(ptr noundef %22, ptr noundef @.str.2, i32 noundef 6)
%24 = icmp eq i64 %23, 0
br i1 %24, label %25, label %29
25: ; preds = %21
%26 = load ptr, ptr %4, align 8
%27 = getelementptr inbounds i8, ptr %26, i64 7
%28 = load ptr, ptr %5, align 8
store ptr %27, ptr %28, align 8
store i32 3, ptr %3, align 4
br label %50
29: ; preds = %21
%30 = load ptr, ptr %4, align 8
%31 = call i64 @strncmp(ptr noundef %30, ptr noundef @.str.3, i32 noundef 6)
%32 = icmp eq i64 %31, 0
br i1 %32, label %33, label %37
33: ; preds = %29
%34 = load ptr, ptr %4, align 8
%35 = getelementptr inbounds i8, ptr %34, i64 7
%36 = load ptr, ptr %5, align 8
store ptr %35, ptr %36, align 8
store i32 2, ptr %3, align 4
br label %50
37: ; preds = %29
%38 = load ptr, ptr %4, align 8
%39 = call i64 @strncmp(ptr noundef %38, ptr noundef @.str.4, i32 noundef 8)
%40 = icmp eq i64 %39, 0
br i1 %40, label %41, label %43
41: ; preds = %37
%42 = load ptr, ptr %5, align 8
store ptr null, ptr %42, align 8
store i32 6, ptr %3, align 4
br label %50
43: ; preds = %37
br label %44
44: ; preds = %43
br label %45
45: ; preds = %44
br label %46
46: ; preds = %45
br label %47
47: ; preds = %46
%48 = load ptr, ptr %4, align 8
%49 = load ptr, ptr %5, align 8
store ptr %48, ptr %49, align 8
store i32 -1, ptr %3, align 4
br label %50
50: ; preds = %47, %41, %33, %25, %17, %9
%51 = load i32, ptr %3, align 4
ret i32 %51
}
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpbv8adfl2.c'
source_filename = "/tmp/tmpbv8adfl2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @arg2code_modearg(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 -1, ptr %3, align 4
%4 = load ptr, ptr %2, align 8
%5 = load i8, ptr %4, align 1
%6 = sext i8 %5 to i32
%7 = icmp eq i32 %6, 35
br i1 %7, label %8, label %11
8: ; preds = %1
store i32 0, ptr %3, align 4
%9 = load ptr, ptr %2, align 8
%10 = getelementptr inbounds i8, ptr %9, i32 1
store ptr %10, ptr %2, align 8
br label %21
11: ; preds = %1
%12 = load ptr, ptr %2, align 8
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = icmp eq i32 %14, 64
br i1 %15, label %16, label %19
16: ; preds = %11
store i32 2, ptr %3, align 4
%17 = load ptr, ptr %2, align 8
%18 = getelementptr inbounds i8, ptr %17, i32 1
store ptr %18, ptr %2, align 8
br label %20
19: ; preds = %11
store i32 1, ptr %3, align 4
br label %20
20: ; preds = %19, %16
br label %21
21: ; preds = %20, %8
%22 = load ptr, ptr %2, align 8
%23 = load i8, ptr %22, align 1
%24 = call i32 @isdigit(i8 noundef signext %23)
%25 = icmp ne i32 %24, 0
br i1 %25, label %38, label %26
26: ; preds = %21
%27 = load ptr, ptr %2, align 8
%28 = load i8, ptr %27, align 1
%29 = sext i8 %28 to i32
%30 = icmp ne i32 %29, 45
br i1 %30, label %37, label %31
31: ; preds = %26
%32 = load ptr, ptr %2, align 8
%33 = getelementptr inbounds i8, ptr %32, i64 1
%34 = load i8, ptr %33, align 1
%35 = call i32 @isdigit(i8 noundef signext %34)
%36 = icmp ne i32 %35, 0
br i1 %36, label %38, label %37
37: ; preds = %31, %26
store i32 -1, ptr %3, align 4
br label %38
38: ; preds = %37, %31, %21
%39 = load i32, ptr %3, align 4
ret i32 %39
}
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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbv8adfl2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @arg2code_modearg(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 -1, ptr %3, align 4
%4 = load ptr, ptr %2, align 8
%5 = load i8, ptr %4, align 1
%6 = sext i8 %5 to i32
%7 = icmp eq i32 %6, 35
br i1 %7, label %8, label %11
8: ; preds = %1
store i32 0, ptr %3, align 4
%9 = load ptr, ptr %2, align 8
%10 = getelementptr inbounds i8, ptr %9, i32 1
store ptr %10, ptr %2, align 8
br label %21
11: ; preds = %1
%12 = load ptr, ptr %2, align 8
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = icmp eq i32 %14, 64
br i1 %15, label %16, label %19
16: ; preds = %11
store i32 2, ptr %3, align 4
%17 = load ptr, ptr %2, align 8
%18 = getelementptr inbounds i8, ptr %17, i32 1
store ptr %18, ptr %2, align 8
br label %20
19: ; preds = %11
store i32 1, ptr %3, align 4
br label %20
20: ; preds = %19, %16
br label %21
21: ; preds = %20, %8
%22 = load ptr, ptr %2, align 8
%23 = load i8, ptr %22, align 1
%24 = call i32 @isdigit(i8 noundef signext %23)
%25 = icmp ne i32 %24, 0
br i1 %25, label %38, label %26
26: ; preds = %21
%27 = load ptr, ptr %2, align 8
%28 = load i8, ptr %27, align 1
%29 = sext i8 %28 to i32
%30 = icmp ne i32 %29, 45
br i1 %30, label %37, label %31
31: ; preds = %26
%32 = load ptr, ptr %2, align 8
%33 = getelementptr inbounds i8, ptr %32, i64 1
%34 = load i8, ptr %33, align 1
%35 = call i32 @isdigit(i8 noundef signext %34)
%36 = icmp ne i32 %35, 0
br i1 %36, label %38, label %37
37: ; preds = %31, %26
store i32 -1, ptr %3, align 4
br label %38
38: ; preds = %37, %31, %21
%39 = load i32, ptr %3, align 4
ret i32 %39
}
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"}
|
; ModuleID = '/tmp/tmpb54nteso.c'
source_filename = "/tmp/tmpb54nteso.c"
target datalayout = "e-m:e-p270: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/tmpb54nteso.c"
target datalayout = "e-m:e-p270: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/tmpidur1z6c.c'
source_filename = "/tmp/tmpidur1z6c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"Times-Italic.bw\00", align 1
@GL_TEXTURE_2D = dso_local global i32 0, align 4
@GL_PROJECTION = dso_local global i32 0, align 4
@GL_MODELVIEW = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @init() #0 {
%1 = call i32 @texfntinit(ptr noundef @.str)
%2 = load i32, ptr @GL_TEXTURE_2D, align 4
%3 = call i32 @glEnable(i32 noundef %2)
%4 = load i32, ptr @GL_PROJECTION, align 4
%5 = call i32 @glMatrixMode(i32 noundef %4)
%6 = call i32 (...) @glLoadIdentity()
%7 = call i32 @gluPerspective(i32 noundef 90, i32 noundef 1, double noundef 1.000000e-01, i32 noundef 10)
%8 = load i32, ptr @GL_MODELVIEW, align 4
%9 = call i32 @glMatrixMode(i32 noundef %8)
%10 = call i32 (...) @glLoadIdentity()
%11 = call i32 @glTranslatef(i32 noundef 0, i32 noundef 0, double noundef -1.500000e+00)
ret void
}
declare i32 @texfntinit(ptr noundef) #1
declare i32 @glEnable(i32 noundef) #1
declare i32 @glMatrixMode(i32 noundef) #1
declare i32 @glLoadIdentity(...) #1
declare i32 @gluPerspective(i32 noundef, i32 noundef, double noundef, i32 noundef) #1
declare i32 @glTranslatef(i32 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/tmpidur1z6c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"Times-Italic.bw\00", align 1
@GL_TEXTURE_2D = dso_local global i32 0, align 4
@GL_PROJECTION = dso_local global i32 0, align 4
@GL_MODELVIEW = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @init() #0 {
%1 = call i32 @texfntinit(ptr noundef @.str)
%2 = load i32, ptr @GL_TEXTURE_2D, align 4
%3 = call i32 @glEnable(i32 noundef %2)
%4 = load i32, ptr @GL_PROJECTION, align 4
%5 = call i32 @glMatrixMode(i32 noundef %4)
%6 = call i32 (...) @glLoadIdentity()
%7 = call i32 @gluPerspective(i32 noundef 90, i32 noundef 1, double noundef 1.000000e-01, i32 noundef 10)
%8 = load i32, ptr @GL_MODELVIEW, align 4
%9 = call i32 @glMatrixMode(i32 noundef %8)
%10 = call i32 (...) @glLoadIdentity()
%11 = call i32 @glTranslatef(i32 noundef 0, i32 noundef 0, double noundef -1.500000e+00)
ret void
}
declare i32 @texfntinit(ptr noundef) #1
declare i32 @glEnable(i32 noundef) #1
declare i32 @glMatrixMode(i32 noundef) #1
declare i32 @glLoadIdentity(...) #1
declare i32 @gluPerspective(i32 noundef, i32 noundef, double noundef, i32 noundef) #1
declare i32 @glTranslatef(i32 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/tmpceiah8vq.c'
source_filename = "/tmp/tmpceiah8vq.c"
target datalayout = "e-m:e-p270: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/tmpceiah8vq.c"
target datalayout = "e-m:e-p270: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/tmpavo7lbjs.c'
source_filename = "/tmp/tmpavo7lbjs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"in vnc test main\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr null, ptr %6, align 8
%7 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpavo7lbjs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"in vnc test main\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr null, ptr %6, align 8
%7 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzcswtt66.c'
source_filename = "/tmp/tmpzcswtt66.c"
target datalayout = "e-m:e-p270: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/tmpzcswtt66.c"
target datalayout = "e-m:e-p270: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/tmp93mvx6qg.c'
source_filename = "/tmp/tmp93mvx6qg.c"
target datalayout = "e-m:e-p270: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_storage = type { i32 }
@.str = private unnamed_addr constant [2 x i8] c"*\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"34999\00", align 1
@AI_PASSIVE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @host2bindaddr(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca %struct.sockaddr_storage, align 4
%12 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store ptr %3, ptr %9, align 8
%13 = load ptr, ptr %7, align 8
%14 = icmp ne ptr %13, null
br i1 %14, label %15, label %20
15: ; preds = %4
%16 = load ptr, ptr %7, align 8
%17 = call i64 @strcmp(ptr noundef %16, ptr noundef @.str)
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %15
store ptr null, ptr %7, align 8
br label %20
20: ; preds = %19, %15, %4
%21 = load i32, ptr %8, align 4
%22 = load ptr, ptr %7, align 8
%23 = load i32, ptr @AI_PASSIVE, align 4
%24 = call i32 @resolve(ptr noundef %11, i32 noundef %21, ptr noundef %22, ptr noundef @.str.1, i32 noundef %23)
store i32 %24, ptr %10, align 4
%25 = icmp ne i32 %24, 0
br i1 %25, label %26, label %30
26: ; preds = %20
%27 = load i32, ptr %10, align 4
%28 = call ptr @gai_strerror(i32 noundef %27)
%29 = load ptr, ptr %9, align 8
store ptr %28, ptr %29, align 8
store ptr null, ptr %5, align 8
br label %35
30: ; preds = %20
%31 = load ptr, ptr %6, align 8
%32 = load ptr, ptr %9, align 8
%33 = call ptr @addr2bindaddr(ptr noundef %31, ptr noundef %11, ptr noundef %32)
store ptr %33, ptr %12, align 8
%34 = load ptr, ptr %12, align 8
store ptr %34, ptr %5, align 8
br label %35
35: ; preds = %30, %26
%36 = load ptr, ptr %5, align 8
ret ptr %36
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @resolve(ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare ptr @gai_strerror(i32 noundef) #1
declare ptr @addr2bindaddr(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp93mvx6qg.c"
target datalayout = "e-m:e-p270: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_storage = type { i32 }
@.str = private unnamed_addr constant [2 x i8] c"*\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"34999\00", align 1
@AI_PASSIVE = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @host2bindaddr(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca i32, align 4
%11 = alloca %struct.sockaddr_storage, align 4
%12 = alloca ptr, align 8
store ptr %0, ptr %6, align 8
store ptr %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store ptr %3, ptr %9, align 8
%13 = load ptr, ptr %7, align 8
%14 = icmp ne ptr %13, null
br i1 %14, label %15, label %20
15: ; preds = %4
%16 = load ptr, ptr %7, align 8
%17 = call i64 @strcmp(ptr noundef %16, ptr noundef @.str)
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %15
store ptr null, ptr %7, align 8
br label %20
20: ; preds = %19, %15, %4
%21 = load i32, ptr %8, align 4
%22 = load ptr, ptr %7, align 8
%23 = load i32, ptr @AI_PASSIVE, align 4
%24 = call i32 @resolve(ptr noundef %11, i32 noundef %21, ptr noundef %22, ptr noundef @.str.1, i32 noundef %23)
store i32 %24, ptr %10, align 4
%25 = icmp ne i32 %24, 0
br i1 %25, label %26, label %30
26: ; preds = %20
%27 = load i32, ptr %10, align 4
%28 = call ptr @gai_strerror(i32 noundef %27)
%29 = load ptr, ptr %9, align 8
store ptr %28, ptr %29, align 8
store ptr null, ptr %5, align 8
br label %35
30: ; preds = %20
%31 = load ptr, ptr %6, align 8
%32 = load ptr, ptr %9, align 8
%33 = call ptr @addr2bindaddr(ptr noundef %31, ptr noundef %11, ptr noundef %32)
store ptr %33, ptr %12, align 8
%34 = load ptr, ptr %12, align 8
store ptr %34, ptr %5, align 8
br label %35
35: ; preds = %30, %26
%36 = load ptr, ptr %5, align 8
ret ptr %36
}
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @resolve(ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare ptr @gai_strerror(i32 noundef) #1
declare ptr @addr2bindaddr(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpplk2o_js.c'
source_filename = "/tmp/tmpplk2o_js.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 (...) @foobar()
%4 = call i32 (...) @foo()
%5 = call i32 (...) @bar()
%6 = call i32 (...) @foobar()
ret void
}
declare i32 @foobar(...) #1
declare i32 @foo(...) #1
declare i32 @bar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpplk2o_js.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @main(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = call i32 (...) @foobar()
%4 = call i32 (...) @foo()
%5 = call i32 (...) @bar()
%6 = call i32 (...) @foobar()
ret void
}
declare i32 @foobar(...) #1
declare i32 @foo(...) #1
declare i32 @bar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmptd7ca7_1.c'
source_filename = "/tmp/tmptd7ca7_1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @convert_to_numbers(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = call i32 @strlen(ptr noundef %7)
store i32 %8, ptr %5, align 4
%9 = load i32, ptr %5, align 4
%10 = sext i32 %9 to i64
%11 = mul i64 4, %10
%12 = trunc i64 %11 to i32
%13 = call ptr @my_malloc(i32 noundef %12)
store ptr %13, ptr %4, align 8
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %16
15: ; preds = %1
store ptr inttoptr (i64 1 to ptr), ptr %2, align 8
br label %37
16: ; preds = %1
store i32 0, ptr %6, align 4
br label %17
17: ; preds = %32, %16
%18 = load i32, ptr %6, align 4
%19 = load i32, ptr %5, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %21, label %35
21: ; preds = %17
%22 = load ptr, ptr %3, align 8
%23 = load i32, ptr %6, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i8, ptr %22, i64 %24
%26 = load i8, ptr %25, align 1
%27 = sext i8 %26 to i32
%28 = load ptr, ptr %4, align 8
%29 = load i32, ptr %6, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i32, ptr %28, i64 %30
store i32 %27, ptr %31, align 4
br label %32
32: ; preds = %21
%33 = load i32, ptr %6, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %6, align 4
br label %17, !llvm.loop !6
35: ; preds = %17
%36 = load ptr, ptr %4, align 8
store ptr %36, ptr %2, align 8
br label %37
37: ; preds = %35, %15
%38 = load ptr, ptr %2, align 8
ret ptr %38
}
declare i32 @strlen(ptr noundef) #1
declare ptr @my_malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptd7ca7_1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @convert_to_numbers(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = call i32 @strlen(ptr noundef %7)
store i32 %8, ptr %5, align 4
%9 = load i32, ptr %5, align 4
%10 = sext i32 %9 to i64
%11 = mul i64 4, %10
%12 = trunc i64 %11 to i32
%13 = call ptr @my_malloc(i32 noundef %12)
store ptr %13, ptr %4, align 8
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %16
15: ; preds = %1
store ptr inttoptr (i64 1 to ptr), ptr %2, align 8
br label %39
16: ; preds = %1
store i32 0, ptr %6, align 4
%17 = load i32, ptr %6, align 4
%18 = load i32, ptr %5, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %.lr.ph, label %37
.lr.ph: ; preds = %16
br label %20
20: ; preds = %.lr.ph, %31
%21 = load ptr, ptr %3, align 8
%22 = load i32, ptr %6, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i8, ptr %21, i64 %23
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
%27 = load ptr, ptr %4, align 8
%28 = load i32, ptr %6, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i32, ptr %27, i64 %29
store i32 %26, ptr %30, align 4
br label %31
31: ; preds = %20
%32 = load i32, ptr %6, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %6, align 4
%34 = load i32, ptr %6, align 4
%35 = load i32, ptr %5, align 4
%36 = icmp slt i32 %34, %35
br i1 %36, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %31
br label %37
37: ; preds = %._crit_edge, %16
%38 = load ptr, ptr %4, align 8
store ptr %38, ptr %2, align 8
br label %39
39: ; preds = %37, %15
%40 = load ptr, ptr %2, align 8
ret ptr %40
}
declare i32 @strlen(ptr noundef) #1
declare ptr @my_malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpnc7gbx7h.c'
source_filename = "/tmp/tmpnc7gbx7h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Chromatic\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"Major\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"Nat Minor\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"Har Minor\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"Dorian\00", align 1
@.str.5 = private unnamed_addr constant [6 x i8] c"Whole\00", align 1
@.str.6 = private unnamed_addr constant [11 x i8] c"Pentatonic\00", align 1
@.str.7 = private unnamed_addr constant [11 x i8] c"Diminished\00", align 1
@.str.8 = private unnamed_addr constant [9 x i8] c"Phrygian\00", align 1
@.str.9 = private unnamed_addr constant [7 x i8] c"Lydian\00", align 1
@.str.10 = private unnamed_addr constant [11 x i8] c"Mixolydian\00", align 1
@.str.11 = private unnamed_addr constant [8 x i8] c"Locrian\00", align 1
@.str.12 = private unnamed_addr constant [9 x i8] c"Min Pent\00", align 1
@.str.13 = private unnamed_addr constant [6 x i8] c"Blues\00", align 1
@.str.14 = private unnamed_addr constant [9 x i8] c"Half Dim\00", align 1
@.str.15 = private unnamed_addr constant [12 x i8] c"Seven Chord\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @scale_type_to_name(ptr noundef %0, i8 noundef zeroext %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i8, align 1
store ptr %0, ptr %3, align 8
store i8 %1, ptr %4, align 1
%5 = load i8, ptr %4, align 1
%6 = zext i8 %5 to i32
switch i32 %6, label %55 [
i32 0, label %7
i32 1, label %10
i32 2, label %13
i32 3, label %16
i32 4, label %19
i32 5, label %22
i32 6, label %25
i32 7, label %28
i32 8, label %31
i32 9, label %34
i32 10, label %37
i32 11, label %40
i32 12, label %43
i32 13, label %46
i32 14, label %49
i32 15, label %52
]
7: ; preds = %2
%8 = load ptr, ptr %3, align 8
%9 = call i32 @sprintf(ptr noundef %8, ptr noundef @.str)
br label %55
10: ; preds = %2
%11 = load ptr, ptr %3, align 8
%12 = call i32 @sprintf(ptr noundef %11, ptr noundef @.str.1)
br label %55
13: ; preds = %2
%14 = load ptr, ptr %3, align 8
%15 = call i32 @sprintf(ptr noundef %14, ptr noundef @.str.2)
br label %55
16: ; preds = %2
%17 = load ptr, ptr %3, align 8
%18 = call i32 @sprintf(ptr noundef %17, ptr noundef @.str.3)
br label %55
19: ; preds = %2
%20 = load ptr, ptr %3, align 8
%21 = call i32 @sprintf(ptr noundef %20, ptr noundef @.str.4)
br label %55
22: ; preds = %2
%23 = load ptr, ptr %3, align 8
%24 = call i32 @sprintf(ptr noundef %23, ptr noundef @.str.5)
br label %55
25: ; preds = %2
%26 = load ptr, ptr %3, align 8
%27 = call i32 @sprintf(ptr noundef %26, ptr noundef @.str.6)
br label %55
28: ; preds = %2
%29 = load ptr, ptr %3, align 8
%30 = call i32 @sprintf(ptr noundef %29, ptr noundef @.str.7)
br label %55
31: ; preds = %2
%32 = load ptr, ptr %3, align 8
%33 = call i32 @sprintf(ptr noundef %32, ptr noundef @.str.8)
br label %55
34: ; preds = %2
%35 = load ptr, ptr %3, align 8
%36 = call i32 @sprintf(ptr noundef %35, ptr noundef @.str.9)
br label %55
37: ; preds = %2
%38 = load ptr, ptr %3, align 8
%39 = call i32 @sprintf(ptr noundef %38, ptr noundef @.str.10)
br label %55
40: ; preds = %2
%41 = load ptr, ptr %3, align 8
%42 = call i32 @sprintf(ptr noundef %41, ptr noundef @.str.11)
br label %55
43: ; preds = %2
%44 = load ptr, ptr %3, align 8
%45 = call i32 @sprintf(ptr noundef %44, ptr noundef @.str.12)
br label %55
46: ; preds = %2
%47 = load ptr, ptr %3, align 8
%48 = call i32 @sprintf(ptr noundef %47, ptr noundef @.str.13)
br label %55
49: ; preds = %2
%50 = load ptr, ptr %3, align 8
%51 = call i32 @sprintf(ptr noundef %50, ptr noundef @.str.14)
br label %55
52: ; preds = %2
%53 = load ptr, ptr %3, align 8
%54 = call i32 @sprintf(ptr noundef %53, ptr noundef @.str.15)
br label %55
55: ; preds = %2, %52, %49, %46, %43, %40, %37, %34, %31, %28, %25, %22, %19, %16, %13, %10, %7
ret void
}
declare i32 @sprintf(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/tmpnc7gbx7h.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Chromatic\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"Major\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"Nat Minor\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"Har Minor\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"Dorian\00", align 1
@.str.5 = private unnamed_addr constant [6 x i8] c"Whole\00", align 1
@.str.6 = private unnamed_addr constant [11 x i8] c"Pentatonic\00", align 1
@.str.7 = private unnamed_addr constant [11 x i8] c"Diminished\00", align 1
@.str.8 = private unnamed_addr constant [9 x i8] c"Phrygian\00", align 1
@.str.9 = private unnamed_addr constant [7 x i8] c"Lydian\00", align 1
@.str.10 = private unnamed_addr constant [11 x i8] c"Mixolydian\00", align 1
@.str.11 = private unnamed_addr constant [8 x i8] c"Locrian\00", align 1
@.str.12 = private unnamed_addr constant [9 x i8] c"Min Pent\00", align 1
@.str.13 = private unnamed_addr constant [6 x i8] c"Blues\00", align 1
@.str.14 = private unnamed_addr constant [9 x i8] c"Half Dim\00", align 1
@.str.15 = private unnamed_addr constant [12 x i8] c"Seven Chord\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @scale_type_to_name(ptr noundef %0, i8 noundef zeroext %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i8, align 1
store ptr %0, ptr %3, align 8
store i8 %1, ptr %4, align 1
%5 = load i8, ptr %4, align 1
%6 = zext i8 %5 to i32
switch i32 %6, label %55 [
i32 0, label %7
i32 1, label %10
i32 2, label %13
i32 3, label %16
i32 4, label %19
i32 5, label %22
i32 6, label %25
i32 7, label %28
i32 8, label %31
i32 9, label %34
i32 10, label %37
i32 11, label %40
i32 12, label %43
i32 13, label %46
i32 14, label %49
i32 15, label %52
]
7: ; preds = %2
%8 = load ptr, ptr %3, align 8
%9 = call i32 @sprintf(ptr noundef %8, ptr noundef @.str)
br label %55
10: ; preds = %2
%11 = load ptr, ptr %3, align 8
%12 = call i32 @sprintf(ptr noundef %11, ptr noundef @.str.1)
br label %55
13: ; preds = %2
%14 = load ptr, ptr %3, align 8
%15 = call i32 @sprintf(ptr noundef %14, ptr noundef @.str.2)
br label %55
16: ; preds = %2
%17 = load ptr, ptr %3, align 8
%18 = call i32 @sprintf(ptr noundef %17, ptr noundef @.str.3)
br label %55
19: ; preds = %2
%20 = load ptr, ptr %3, align 8
%21 = call i32 @sprintf(ptr noundef %20, ptr noundef @.str.4)
br label %55
22: ; preds = %2
%23 = load ptr, ptr %3, align 8
%24 = call i32 @sprintf(ptr noundef %23, ptr noundef @.str.5)
br label %55
25: ; preds = %2
%26 = load ptr, ptr %3, align 8
%27 = call i32 @sprintf(ptr noundef %26, ptr noundef @.str.6)
br label %55
28: ; preds = %2
%29 = load ptr, ptr %3, align 8
%30 = call i32 @sprintf(ptr noundef %29, ptr noundef @.str.7)
br label %55
31: ; preds = %2
%32 = load ptr, ptr %3, align 8
%33 = call i32 @sprintf(ptr noundef %32, ptr noundef @.str.8)
br label %55
34: ; preds = %2
%35 = load ptr, ptr %3, align 8
%36 = call i32 @sprintf(ptr noundef %35, ptr noundef @.str.9)
br label %55
37: ; preds = %2
%38 = load ptr, ptr %3, align 8
%39 = call i32 @sprintf(ptr noundef %38, ptr noundef @.str.10)
br label %55
40: ; preds = %2
%41 = load ptr, ptr %3, align 8
%42 = call i32 @sprintf(ptr noundef %41, ptr noundef @.str.11)
br label %55
43: ; preds = %2
%44 = load ptr, ptr %3, align 8
%45 = call i32 @sprintf(ptr noundef %44, ptr noundef @.str.12)
br label %55
46: ; preds = %2
%47 = load ptr, ptr %3, align 8
%48 = call i32 @sprintf(ptr noundef %47, ptr noundef @.str.13)
br label %55
49: ; preds = %2
%50 = load ptr, ptr %3, align 8
%51 = call i32 @sprintf(ptr noundef %50, ptr noundef @.str.14)
br label %55
52: ; preds = %2
%53 = load ptr, ptr %3, align 8
%54 = call i32 @sprintf(ptr noundef %53, ptr noundef @.str.15)
br label %55
55: ; preds = %52, %49, %46, %43, %40, %37, %34, %31, %28, %25, %22, %19, %16, %13, %10, %7, %2
ret void
}
declare i32 @sprintf(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/tmpc4p5e9aa.c'
source_filename = "/tmp/tmpc4p5e9aa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%ld\00", align 1
@.str.1 = private unnamed_addr constant [44 x i8] c"Sum of Totients between [%ld..%ld] is %ld \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 i64, align 8
%8 = alloca i32, align 4
%9 = alloca i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = load ptr, ptr %5, align 8
%11 = getelementptr inbounds ptr, ptr %10, i64 1
%12 = load ptr, ptr %11, align 8
%13 = call i32 @sscanf(ptr noundef %12, ptr noundef @.str, ptr noundef %6)
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 2
%16 = load ptr, ptr %15, align 8
%17 = call i32 @sscanf(ptr noundef %16, ptr noundef @.str, ptr noundef %7)
store i64 0, ptr %9, align 8
%18 = load i64, ptr %6, align 8
%19 = icmp eq i64 %18, 1
br i1 %19, label %20, label %21
20: ; preds = %2
store i64 1, ptr %9, align 8
store i64 2, ptr %6, align 8
br label %21
21: ; preds = %20, %2
%22 = load i64, ptr %6, align 8
%23 = trunc i64 %22 to i32
store i32 %23, ptr %8, align 4
br label %24
24: ; preds = %34, %21
%25 = load i32, ptr %8, align 4
%26 = sext i32 %25 to i64
%27 = load i64, ptr %7, align 8
%28 = icmp sle i64 %26, %27
br i1 %28, label %29, label %37
29: ; preds = %24
%30 = load i64, ptr %9, align 8
%31 = load i32, ptr %8, align 4
%32 = call i64 @getTotient(i32 noundef %31)
%33 = add nsw i64 %30, %32
store i64 %33, ptr %9, align 8
br label %34
34: ; preds = %29
%35 = load i32, ptr %8, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %8, align 4
br label %24, !llvm.loop !6
37: ; preds = %24
%38 = load i64, ptr %6, align 8
%39 = load i64, ptr %7, align 8
%40 = load i64, ptr %9, align 8
%41 = call i32 @printf(ptr noundef @.str.1, i64 noundef %38, i64 noundef %39, i64 noundef %40)
ret i32 0
}
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @getTotient(i32 noundef) #1
declare i32 @printf(ptr noundef, i64 noundef, i64 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpc4p5e9aa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%ld\00", align 1
@.str.1 = private unnamed_addr constant [44 x i8] c"Sum of Totients between [%ld..%ld] is %ld \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 i64, align 8
%8 = alloca i32, align 4
%9 = alloca i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%10 = load ptr, ptr %5, align 8
%11 = getelementptr inbounds ptr, ptr %10, i64 1
%12 = load ptr, ptr %11, align 8
%13 = call i32 @sscanf(ptr noundef %12, ptr noundef @.str, ptr noundef %6)
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 2
%16 = load ptr, ptr %15, align 8
%17 = call i32 @sscanf(ptr noundef %16, ptr noundef @.str, ptr noundef %7)
store i64 0, ptr %9, align 8
%18 = load i64, ptr %6, align 8
%19 = icmp eq i64 %18, 1
br i1 %19, label %20, label %21
20: ; preds = %2
store i64 1, ptr %9, align 8
store i64 2, ptr %6, align 8
br label %21
21: ; preds = %20, %2
%22 = load i64, ptr %6, align 8
%23 = trunc i64 %22 to i32
store i32 %23, ptr %8, align 4
%24 = load i32, ptr %8, align 4
%25 = sext i32 %24 to i64
%26 = load i64, ptr %7, align 8
%27 = icmp sle i64 %25, %26
br i1 %27, label %.lr.ph, label %40
.lr.ph: ; preds = %21
br label %28
28: ; preds = %.lr.ph, %33
%29 = load i64, ptr %9, align 8
%30 = load i32, ptr %8, align 4
%31 = call i64 @getTotient(i32 noundef %30)
%32 = add nsw i64 %29, %31
store i64 %32, ptr %9, align 8
br label %33
33: ; preds = %28
%34 = load i32, ptr %8, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %8, align 4
%36 = load i32, ptr %8, align 4
%37 = sext i32 %36 to i64
%38 = load i64, ptr %7, align 8
%39 = icmp sle i64 %37, %38
br i1 %39, label %28, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %33
br label %40
40: ; preds = %._crit_edge, %21
%41 = load i64, ptr %6, align 8
%42 = load i64, ptr %7, align 8
%43 = load i64, ptr %9, align 8
%44 = call i32 @printf(ptr noundef @.str.1, i64 noundef %41, i64 noundef %42, i64 noundef %43)
ret i32 0
}
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @getTotient(i32 noundef) #1
declare i32 @printf(ptr noundef, i64 noundef, i64 noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpyemylln3.c'
source_filename = "/tmp/tmpyemylln3.c"
target datalayout = "e-m:e-p270: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/tmpyemylln3.c"
target datalayout = "e-m:e-p270: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/tmpgw3fyp6u.c'
source_filename = "/tmp/tmpgw3fyp6u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @start_all_threads() #0 {
%1 = call i32 @__builtin_nyuzi_write_control_reg(i32 noundef 21, i32 noundef -1)
ret void
}
declare i32 @__builtin_nyuzi_write_control_reg(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/tmpgw3fyp6u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @start_all_threads() #0 {
%1 = call i32 @__builtin_nyuzi_write_control_reg(i32 noundef 21, i32 noundef -1)
ret void
}
declare i32 @__builtin_nyuzi_write_control_reg(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/tmpqrm0pog5.c'
source_filename = "/tmp/tmpqrm0pog5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @html_mdoc(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 %4, align 8
%6 = call i32 @mdoc_meta(ptr noundef %5)
%7 = load ptr, ptr %4, align 8
%8 = call i32 @mdoc_node(ptr noundef %7)
%9 = load ptr, ptr %3, align 8
%10 = call i32 @print_mdoc(i32 noundef %6, i32 noundef %8, ptr noundef %9)
%11 = call i32 @putchar(i8 noundef signext 10)
ret void
}
declare i32 @print_mdoc(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @mdoc_meta(ptr noundef) #1
declare i32 @mdoc_node(ptr noundef) #1
declare i32 @putchar(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/tmpqrm0pog5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @html_mdoc(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 %4, align 8
%6 = call i32 @mdoc_meta(ptr noundef %5)
%7 = load ptr, ptr %4, align 8
%8 = call i32 @mdoc_node(ptr noundef %7)
%9 = load ptr, ptr %3, align 8
%10 = call i32 @print_mdoc(i32 noundef %6, i32 noundef %8, ptr noundef %9)
%11 = call i32 @putchar(i8 noundef signext 10)
ret void
}
declare i32 @print_mdoc(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @mdoc_meta(ptr noundef) #1
declare i32 @mdoc_node(ptr noundef) #1
declare i32 @putchar(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/tmpwdbdhq2z.c'
source_filename = "/tmp/tmpwdbdhq2z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"new order is: \00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @output(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = load ptr, ptr %2, align 8
store ptr %5, ptr %3, align 8
br label %6
6: ; preds = %15, %1
%7 = load ptr, ptr %3, align 8
%8 = load ptr, ptr %2, align 8
%9 = getelementptr inbounds i32, ptr %8, i64 10
%10 = icmp ult ptr %7, %9
br i1 %10, label %11, label %18
11: ; preds = %6
%12 = load ptr, ptr %3, align 8
%13 = load i32, ptr %12, align 4
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %13)
br label %15
15: ; preds = %11
%16 = load ptr, ptr %3, align 8
%17 = getelementptr inbounds i32, ptr %16, i32 1
store ptr %17, ptr %3, align 8
br label %6, !llvm.loop !6
18: ; preds = %6
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwdbdhq2z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"new order is: \00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @output(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = load ptr, ptr %2, align 8
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = load ptr, ptr %2, align 8
%8 = getelementptr inbounds i32, ptr %7, i64 10
%9 = icmp ult ptr %6, %8
br i1 %9, label %.lr.ph, label %21
.lr.ph: ; preds = %1
br label %10
10: ; preds = %.lr.ph, %14
%11 = load ptr, ptr %3, align 8
%12 = load i32, ptr %11, align 4
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %12)
br label %14
14: ; preds = %10
%15 = load ptr, ptr %3, align 8
%16 = getelementptr inbounds i32, ptr %15, i32 1
store ptr %16, ptr %3, align 8
%17 = load ptr, ptr %3, align 8
%18 = load ptr, ptr %2, align 8
%19 = getelementptr inbounds i32, ptr %18, i64 10
%20 = icmp ult ptr %17, %19
br i1 %20, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %14
br label %21
21: ; preds = %._crit_edge, %1
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp9gg_4p9s.c'
source_filename = "/tmp/tmp9gg_4p9s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Hello World !\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp9gg_4p9s.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Hello World !\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @printf(ptr noundef @.str)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_nb4ulgz.c'
source_filename = "/tmp/tmp_nb4ulgz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"/etc/cduck.key\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [47 x i8] c"Refusing to overwrite existing /etc/cduck.key\0A\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.4 = private unnamed_addr constant [43 x i8] c"Failed to open /etc/cduck.key for reading\0A\00", align 1
@.str.5 = private unnamed_addr constant [12 x i8] c"/dev/random\00", align 1
@.str.6 = private unnamed_addr constant [40 x i8] c"Failed to open /dev/random for reading\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 [48 x i8], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %9, ptr %6, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %11, label %16
11: ; preds = %2
%12 = load ptr, ptr %6, align 8
%13 = call i32 @fclose(ptr noundef %12)
%14 = load i32, ptr @stderr, align 4
%15 = call i32 @fprintf(i32 noundef %14, ptr noundef @.str.2)
store i32 1, ptr %3, align 4
br label %43
16: ; preds = %2
%17 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.3)
store ptr %17, ptr %6, align 8
%18 = load ptr, ptr %6, align 8
%19 = icmp ne ptr %18, null
br i1 %19, label %23, label %20
20: ; preds = %16
%21 = load i32, ptr @stderr, align 4
%22 = call i32 @fprintf(i32 noundef %21, ptr noundef @.str.4)
store i32 1, ptr %3, align 4
br label %43
23: ; preds = %16
%24 = call ptr @fopen(ptr noundef @.str.5, ptr noundef @.str.1)
store ptr %24, ptr %7, align 8
%25 = load ptr, ptr %7, align 8
%26 = icmp ne ptr %25, null
br i1 %26, label %32, label %27
27: ; preds = %23
%28 = load ptr, ptr %6, align 8
%29 = call i32 @fclose(ptr noundef %28)
%30 = load i32, ptr @stderr, align 4
%31 = call i32 @fprintf(i32 noundef %30, ptr noundef @.str.6)
store i32 1, ptr %3, align 4
br label %43
32: ; preds = %23
%33 = getelementptr inbounds [48 x i8], ptr %8, i64 0, i64 0
%34 = load ptr, ptr %7, align 8
%35 = call i32 @fread(ptr noundef %33, i32 noundef 48, i32 noundef 1, ptr noundef %34)
%36 = getelementptr inbounds [48 x i8], ptr %8, i64 0, i64 0
%37 = load ptr, ptr %6, align 8
%38 = call i32 @fwrite(ptr noundef %36, i32 noundef 48, i32 noundef 1, ptr noundef %37)
%39 = load ptr, ptr %6, align 8
%40 = call i32 @fclose(ptr noundef %39)
%41 = load ptr, ptr %7, align 8
%42 = call i32 @fclose(ptr noundef %41)
store i32 0, ptr %3, align 4
br label %43
43: ; preds = %32, %27, %20, %11
%44 = load i32, ptr %3, align 4
ret i32 %44
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_nb4ulgz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"/etc/cduck.key\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [47 x i8] c"Refusing to overwrite existing /etc/cduck.key\0A\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@.str.4 = private unnamed_addr constant [43 x i8] c"Failed to open /etc/cduck.key for reading\0A\00", align 1
@.str.5 = private unnamed_addr constant [12 x i8] c"/dev/random\00", align 1
@.str.6 = private unnamed_addr constant [40 x i8] c"Failed to open /dev/random for reading\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 [48 x i8], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %9, ptr %6, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %11, label %16
11: ; preds = %2
%12 = load ptr, ptr %6, align 8
%13 = call i32 @fclose(ptr noundef %12)
%14 = load i32, ptr @stderr, align 4
%15 = call i32 @fprintf(i32 noundef %14, ptr noundef @.str.2)
store i32 1, ptr %3, align 4
br label %43
16: ; preds = %2
%17 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.3)
store ptr %17, ptr %6, align 8
%18 = load ptr, ptr %6, align 8
%19 = icmp ne ptr %18, null
br i1 %19, label %23, label %20
20: ; preds = %16
%21 = load i32, ptr @stderr, align 4
%22 = call i32 @fprintf(i32 noundef %21, ptr noundef @.str.4)
store i32 1, ptr %3, align 4
br label %43
23: ; preds = %16
%24 = call ptr @fopen(ptr noundef @.str.5, ptr noundef @.str.1)
store ptr %24, ptr %7, align 8
%25 = load ptr, ptr %7, align 8
%26 = icmp ne ptr %25, null
br i1 %26, label %32, label %27
27: ; preds = %23
%28 = load ptr, ptr %6, align 8
%29 = call i32 @fclose(ptr noundef %28)
%30 = load i32, ptr @stderr, align 4
%31 = call i32 @fprintf(i32 noundef %30, ptr noundef @.str.6)
store i32 1, ptr %3, align 4
br label %43
32: ; preds = %23
%33 = getelementptr inbounds [48 x i8], ptr %8, i64 0, i64 0
%34 = load ptr, ptr %7, align 8
%35 = call i32 @fread(ptr noundef %33, i32 noundef 48, i32 noundef 1, ptr noundef %34)
%36 = getelementptr inbounds [48 x i8], ptr %8, i64 0, i64 0
%37 = load ptr, ptr %6, align 8
%38 = call i32 @fwrite(ptr noundef %36, i32 noundef 48, i32 noundef 1, ptr noundef %37)
%39 = load ptr, ptr %6, align 8
%40 = call i32 @fclose(ptr noundef %39)
%41 = load ptr, ptr %7, align 8
%42 = call i32 @fclose(ptr noundef %41)
store i32 0, ptr %3, align 4
br label %43
43: ; preds = %32, %27, %20, %11
%44 = load i32, ptr %3, align 4
ret i32 %44
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @fwrite(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpg_xivf89.c'
source_filename = "/tmp/tmpg_xivf89.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { double, i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @dtime() #0 {
%1 = alloca double, align 8
%2 = alloca %struct.timeval, align 8
%3 = call i32 @gettimeofday(ptr noundef %2, ptr noundef null)
%4 = getelementptr inbounds %struct.timeval, ptr %2, i32 0, i32 0
%5 = load double, ptr %4, align 8
%6 = getelementptr inbounds %struct.timeval, ptr %2, i32 0, i32 1
%7 = load i64, ptr %6, align 8
%8 = sitofp i64 %7 to double
%9 = fdiv double %8, 1.000000e+06
%10 = fadd double %5, %9
store double %10, ptr %1, align 8
%11 = load double, ptr %1, align 8
ret double %11
}
declare i32 @gettimeofday(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/tmpg_xivf89.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { double, i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @dtime() #0 {
%1 = alloca double, align 8
%2 = alloca %struct.timeval, align 8
%3 = call i32 @gettimeofday(ptr noundef %2, ptr noundef null)
%4 = getelementptr inbounds %struct.timeval, ptr %2, i32 0, i32 0
%5 = load double, ptr %4, align 8
%6 = getelementptr inbounds %struct.timeval, ptr %2, i32 0, i32 1
%7 = load i64, ptr %6, align 8
%8 = sitofp i64 %7 to double
%9 = fdiv double %8, 1.000000e+06
%10 = fadd double %5, %9
store double %10, ptr %1, align 8
%11 = load double, ptr %1, align 8
ret double %11
}
declare i32 @gettimeofday(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/tmpaid8vw_g.c'
source_filename = "/tmp/tmpaid8vw_g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [39 x i8] c"Stop after arg length word is found.%s\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 @infoSetStopLength() #0 {
%1 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.1)
ret void
}
declare i32 @printf(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/tmpaid8vw_g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [39 x i8] c"Stop after arg length word is found.%s\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 @infoSetStopLength() #0 {
%1 = call i32 @printf(ptr noundef @.str, ptr noundef @.str.1)
ret void
}
declare i32 @printf(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/tmp04wbjl8k.c'
source_filename = "/tmp/tmp04wbjl8k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"*\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"Hajj\00", align 1
@.str.3 = private unnamed_addr constant [23 x i8] c"Case %d: Hajj-e-Akbar\0A\00", align 1
@.str.4 = private unnamed_addr constant [24 x i8] c"Case %d: Hajj-e-Asghar\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 i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 1, ptr %7, align 4
%8 = call ptr @malloc(i32 noundef 31)
store ptr %8, ptr %6, align 8
%9 = load ptr, ptr %6, align 8
%10 = call i32 @scanf(ptr noundef @.str, ptr noundef %9)
br label %11
11: ; preds = %25, %2
%12 = load ptr, ptr %6, align 8
%13 = call i64 @strcmp(ptr noundef %12, ptr noundef @.str.1)
%14 = icmp ne i64 %13, 0
br i1 %14, label %15, label %30
15: ; preds = %11
%16 = load ptr, ptr %6, align 8
%17 = call i64 @strcmp(ptr noundef %16, ptr noundef @.str.2)
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %22
19: ; preds = %15
%20 = load i32, ptr %7, align 4
%21 = call i32 @printf(ptr noundef @.str.3, i32 noundef %20)
br label %25
22: ; preds = %15
%23 = load i32, ptr %7, align 4
%24 = call i32 @printf(ptr noundef @.str.4, i32 noundef %23)
br label %25
25: ; preds = %22, %19
%26 = load i32, ptr %7, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %7, align 4
%28 = load ptr, ptr %6, align 8
%29 = call i32 @scanf(ptr noundef @.str, ptr noundef %28)
br label %11, !llvm.loop !6
30: ; preds = %11
ret i32 0
}
declare ptr @malloc(i32 noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i64 @strcmp(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/tmp04wbjl8k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"*\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"Hajj\00", align 1
@.str.3 = private unnamed_addr constant [23 x i8] c"Case %d: Hajj-e-Akbar\0A\00", align 1
@.str.4 = private unnamed_addr constant [24 x i8] c"Case %d: Hajj-e-Asghar\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 i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 1, ptr %7, align 4
%8 = call ptr @malloc(i32 noundef 31)
store ptr %8, ptr %6, align 8
%9 = load ptr, ptr %6, align 8
%10 = call i32 @scanf(ptr noundef @.str, ptr noundef %9)
%11 = load ptr, ptr %6, align 8
%12 = call i64 @strcmp(ptr noundef %11, ptr noundef @.str.1)
%13 = icmp ne i64 %12, 0
br i1 %13, label %.lr.ph, label %32
.lr.ph: ; preds = %2
br label %14
14: ; preds = %.lr.ph, %24
%15 = load ptr, ptr %6, align 8
%16 = call i64 @strcmp(ptr noundef %15, ptr noundef @.str.2)
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %21
18: ; preds = %14
%19 = load i32, ptr %7, align 4
%20 = call i32 @printf(ptr noundef @.str.3, i32 noundef %19)
br label %24
21: ; preds = %14
%22 = load i32, ptr %7, align 4
%23 = call i32 @printf(ptr noundef @.str.4, i32 noundef %22)
br label %24
24: ; preds = %21, %18
%25 = load i32, ptr %7, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %7, align 4
%27 = load ptr, ptr %6, align 8
%28 = call i32 @scanf(ptr noundef @.str, ptr noundef %27)
%29 = load ptr, ptr %6, align 8
%30 = call i64 @strcmp(ptr noundef %29, ptr noundef @.str.1)
%31 = icmp ne i64 %30, 0
br i1 %31, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %24
br label %32
32: ; preds = %._crit_edge, %2
ret i32 0
}
declare ptr @malloc(i32 noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i64 @strcmp(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/tmpimw9ax7f.c'
source_filename = "/tmp/tmpimw9ax7f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@M_PI = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @deg2rad(float noundef %0) #0 {
%2 = alloca float, align 4
store float %0, ptr %2, align 4
%3 = load float, ptr %2, align 4
%4 = load i64, ptr @M_PI, align 8
%5 = sitofp i64 %4 to float
%6 = fmul float %3, %5
%7 = fdiv float %6, 1.800000e+02
ret float %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/tmpimw9ax7f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@M_PI = dso_local global i64 0, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @deg2rad(float noundef %0) #0 {
%2 = alloca float, align 4
store float %0, ptr %2, align 4
%3 = load float, ptr %2, align 4
%4 = load i64, ptr @M_PI, align 8
%5 = sitofp i64 %4 to float
%6 = fmul float %3, %5
%7 = fdiv float %6, 1.800000e+02
ret float %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/tmp2vp0gmlc.c'
source_filename = "/tmp/tmp2vp0gmlc.c"
target datalayout = "e-m:e-p270: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/tmp2vp0gmlc.c"
target datalayout = "e-m:e-p270: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/tmpe4pyqhj8.c'
source_filename = "/tmp/tmpe4pyqhj8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [188 x i8] c"usage: vcontrold [-x|--xmlfile xml-file] [-d|--device <device>] [-l|--logfile <logfile>] [-p|--port port] [-s|--syslog] [-n|--nodaemon] [-i|--vsim] [-g|--debug] [-4|--inet4] [-6|--inet6]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpe4pyqhj8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [188 x i8] c"usage: vcontrold [-x|--xmlfile xml-file] [-d|--device <device>] [-l|--logfile <logfile>] [-p|--port port] [-s|--syslog] [-n|--nodaemon] [-i|--vsim] [-g|--debug] [-4|--inet4] [-6|--inet6]\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @usage() #0 {
%1 = call i32 @printf(ptr noundef @.str)
%2 = call i32 @exit(i32 noundef 1) #3
unreachable
}
declare i32 @printf(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdsmtk8_p.c'
source_filename = "/tmp/tmpdsmtk8_p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong allocsize(1) uwtable
define dso_local ptr @realloc(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
%7 = load i64, ptr %5, align 8
%8 = icmp eq i64 %7, 0
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = load ptr, ptr %4, align 8
%11 = call i32 @free(ptr noundef %10)
store ptr null, ptr %3, align 8
br label %25
12: ; preds = %2
%13 = load ptr, ptr %4, align 8
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %18
15: ; preds = %12
%16 = load i64, ptr %5, align 8
%17 = call ptr @malloc(i64 noundef %16) #3
store ptr %17, ptr %3, align 8
br label %25
18: ; preds = %12
%19 = call i32 (...) @lock()
%20 = load ptr, ptr %4, align 8
%21 = load i64, ptr %5, align 8
%22 = call ptr @realloc_internal(ptr noundef %20, i64 noundef %21)
store ptr %22, ptr %6, align 8
%23 = call i32 (...) @unlock()
%24 = load ptr, ptr %6, align 8
store ptr %24, ptr %3, align 8
br label %25
25: ; preds = %18, %15, %9
%26 = load ptr, ptr %3, align 8
ret ptr %26
}
declare i32 @free(ptr noundef) #1
; Function Attrs: allocsize(0)
declare ptr @malloc(i64 noundef) #2
declare i32 @lock(...) #1
declare ptr @realloc_internal(ptr noundef, i64 noundef) #1
declare i32 @unlock(...) #1
attributes #0 = { noinline nounwind sspstrong allocsize(1) uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { allocsize(0) "frame-pointer"="all" "no-trapping-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(0) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdsmtk8_p.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong allocsize(1) uwtable
define dso_local ptr @realloc(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i64 %1, ptr %5, align 8
%7 = load i64, ptr %5, align 8
%8 = icmp eq i64 %7, 0
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = load ptr, ptr %4, align 8
%11 = call i32 @free(ptr noundef %10)
store ptr null, ptr %3, align 8
br label %25
12: ; preds = %2
%13 = load ptr, ptr %4, align 8
%14 = icmp eq ptr %13, null
br i1 %14, label %15, label %18
15: ; preds = %12
%16 = load i64, ptr %5, align 8
%17 = call ptr @malloc(i64 noundef %16) #3
store ptr %17, ptr %3, align 8
br label %25
18: ; preds = %12
%19 = call i32 (...) @lock()
%20 = load ptr, ptr %4, align 8
%21 = load i64, ptr %5, align 8
%22 = call ptr @realloc_internal(ptr noundef %20, i64 noundef %21)
store ptr %22, ptr %6, align 8
%23 = call i32 (...) @unlock()
%24 = load ptr, ptr %6, align 8
store ptr %24, ptr %3, align 8
br label %25
25: ; preds = %18, %15, %9
%26 = load ptr, ptr %3, align 8
ret ptr %26
}
declare i32 @free(ptr noundef) #1
; Function Attrs: allocsize(0)
declare ptr @malloc(i64 noundef) #2
declare i32 @lock(...) #1
declare ptr @realloc_internal(ptr noundef, i64 noundef) #1
declare i32 @unlock(...) #1
attributes #0 = { noinline nounwind sspstrong allocsize(1) uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { allocsize(0) "frame-pointer"="all" "no-trapping-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(0) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1e7oqacg.c'
source_filename = "/tmp/tmp1e7oqacg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @COM_GetExtension(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = call ptr @strrchr(ptr noundef %6, i8 noundef signext 46)
store ptr %7, ptr %4, align 8
%8 = load ptr, ptr %4, align 8
%9 = icmp ne ptr %8, null
br i1 %9, label %10, label %21
10: ; preds = %1
%11 = load ptr, ptr %3, align 8
%12 = call ptr @strrchr(ptr noundef %11, i8 noundef signext 47)
store ptr %12, ptr %5, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %14, label %18
14: ; preds = %10
%15 = load ptr, ptr %5, align 8
%16 = load ptr, ptr %4, align 8
%17 = icmp ult ptr %15, %16
br i1 %17, label %18, label %21
18: ; preds = %14, %10
%19 = load ptr, ptr %4, align 8
%20 = getelementptr inbounds i8, ptr %19, i64 1
store ptr %20, ptr %2, align 8
br label %22
21: ; preds = %14, %1
store ptr @.str, ptr %2, align 8
br label %22
22: ; preds = %21, %18
%23 = load ptr, ptr %2, align 8
ret ptr %23
}
declare ptr @strrchr(ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1e7oqacg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @COM_GetExtension(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = call ptr @strrchr(ptr noundef %6, i8 noundef signext 46)
store ptr %7, ptr %4, align 8
%8 = load ptr, ptr %4, align 8
%9 = icmp ne ptr %8, null
br i1 %9, label %10, label %21
10: ; preds = %1
%11 = load ptr, ptr %3, align 8
%12 = call ptr @strrchr(ptr noundef %11, i8 noundef signext 47)
store ptr %12, ptr %5, align 8
%13 = icmp ne ptr %12, null
br i1 %13, label %14, label %18
14: ; preds = %10
%15 = load ptr, ptr %5, align 8
%16 = load ptr, ptr %4, align 8
%17 = icmp ult ptr %15, %16
br i1 %17, label %18, label %21
18: ; preds = %14, %10
%19 = load ptr, ptr %4, align 8
%20 = getelementptr inbounds i8, ptr %19, i64 1
store ptr %20, ptr %2, align 8
br label %22
21: ; preds = %14, %1
store ptr @.str, ptr %2, align 8
br label %22
22: ; preds = %21, %18
%23 = load ptr, ptr %2, align 8
ret ptr %23
}
declare ptr @strrchr(ptr noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmphvwqqjh0.c'
source_filename = "/tmp/tmphvwqqjh0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [27 x i8] c"isxdigit should be 1 for 5\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isxdigit_0x35() #0 {
%1 = call i32 @isxdigit(i32 noundef 53) #3
%2 = call i32 @Assert_real(i32 noundef %1, ptr noundef @.str, i32 noundef 270, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
; Function Attrs: nounwind willreturn memory(read)
declare i32 @isxdigit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind willreturn memory(read) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(read) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphvwqqjh0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [27 x i8] c"isxdigit should be 1 for 5\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isxdigit_0x35() #0 {
%1 = call i32 @isxdigit(i32 noundef 53) #3
%2 = call i32 @Assert_real(i32 noundef %1, ptr noundef @.str, i32 noundef 270, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
; Function Attrs: nounwind willreturn memory(read)
declare i32 @isxdigit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind willreturn memory(read) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(read) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_3bdgxcb.c'
source_filename = "/tmp/tmp_3bdgxcb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fsafegets(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store ptr null, ptr %6, align 8
store ptr null, ptr %7, align 8
%9 = load i32, ptr %4, align 4
%10 = icmp ugt i32 %9, 0
br i1 %10, label %11, label %73
11: ; preds = %2
%12 = load i32, ptr %4, align 4
%13 = call i64 @xmalloc(i32 noundef %12)
%14 = inttoptr i64 %13 to ptr
store ptr %14, ptr %5, align 8
store i32 0, ptr %8, align 4
br label %15
15: ; preds = %60, %11
%16 = load ptr, ptr %5, align 8
%17 = load i32, ptr %4, align 4
%18 = load ptr, ptr %3, align 8
%19 = call ptr @fgets(ptr noundef %16, i32 noundef %17, ptr noundef %18)
%20 = icmp eq ptr %19, null
br i1 %20, label %21, label %28
21: ; preds = %15
%22 = load ptr, ptr %6, align 8
%23 = icmp ne ptr %22, null
br i1 %23, label %24, label %27
24: ; preds = %21
%25 = load ptr, ptr %6, align 8
%26 = call i32 @free(ptr noundef %25)
store ptr null, ptr %6, align 8
br label %27
27: ; preds = %24, %21
br label %62
28: ; preds = %15
%29 = load i32, ptr %4, align 4
%30 = load i32, ptr %8, align 4
%31 = add i32 %30, %29
store i32 %31, ptr %8, align 4
%32 = load ptr, ptr %6, align 8
%33 = icmp ne ptr %32, null
br i1 %33, label %34, label %42
34: ; preds = %28
%35 = load ptr, ptr %6, align 8
%36 = load i32, ptr %8, align 4
%37 = call i64 @xrealloc(ptr noundef %35, i32 noundef %36)
%38 = inttoptr i64 %37 to ptr
store ptr %38, ptr %6, align 8
%39 = load ptr, ptr %6, align 8
%40 = load ptr, ptr %5, align 8
%41 = call i32 @strcat(ptr noundef %39, ptr noundef %40)
br label %49
42: ; preds = %28
%43 = load i32, ptr %8, align 4
%44 = call i64 @xmalloc(i32 noundef %43)
%45 = inttoptr i64 %44 to ptr
store ptr %45, ptr %6, align 8
%46 = load ptr, ptr %6, align 8
%47 = load ptr, ptr %5, align 8
%48 = call i32 @strcpy(ptr noundef %46, ptr noundef %47)
br label %49
49: ; preds = %42, %34
%50 = load ptr, ptr %6, align 8
%51 = call ptr @strchr(ptr noundef %50, i8 noundef signext 10)
store ptr %51, ptr %7, align 8
br label %52
52: ; preds = %49
%53 = load ptr, ptr %7, align 8
%54 = icmp eq ptr %53, null
br i1 %54, label %55, label %60
55: ; preds = %52
%56 = load ptr, ptr %3, align 8
%57 = call i32 @feof(ptr noundef %56)
%58 = icmp ne i32 %57, 0
%59 = xor i1 %58, true
br label %60
60: ; preds = %55, %52
%61 = phi i1 [ false, %52 ], [ %59, %55 ]
br i1 %61, label %15, label %62, !llvm.loop !6
62: ; preds = %60, %27
%63 = load ptr, ptr %6, align 8
%64 = icmp ne ptr %63, null
br i1 %64, label %65, label %70
65: ; preds = %62
%66 = load ptr, ptr %7, align 8
%67 = icmp ne ptr %66, null
br i1 %67, label %68, label %70
68: ; preds = %65
%69 = load ptr, ptr %7, align 8
store i8 0, ptr %69, align 1
br label %70
70: ; preds = %68, %65, %62
%71 = load ptr, ptr %5, align 8
%72 = call i32 @free(ptr noundef %71)
br label %74
73: ; preds = %2
store ptr null, ptr %6, align 8
br label %74
74: ; preds = %73, %70
%75 = load ptr, ptr %6, align 8
ret ptr %75
}
declare i64 @xmalloc(i32 noundef) #1
declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare i64 @xrealloc(ptr noundef, i32 noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i32 @feof(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_3bdgxcb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @fsafegets(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store ptr null, ptr %6, align 8
store ptr null, ptr %7, align 8
%9 = load i32, ptr %4, align 4
%10 = icmp ugt i32 %9, 0
br i1 %10, label %11, label %73
11: ; preds = %2
%12 = load i32, ptr %4, align 4
%13 = call i64 @xmalloc(i32 noundef %12)
%14 = inttoptr i64 %13 to ptr
store ptr %14, ptr %5, align 8
store i32 0, ptr %8, align 4
br label %15
15: ; preds = %60, %11
%16 = load ptr, ptr %5, align 8
%17 = load i32, ptr %4, align 4
%18 = load ptr, ptr %3, align 8
%19 = call ptr @fgets(ptr noundef %16, i32 noundef %17, ptr noundef %18)
%20 = icmp eq ptr %19, null
br i1 %20, label %21, label %28
21: ; preds = %15
%22 = load ptr, ptr %6, align 8
%23 = icmp ne ptr %22, null
br i1 %23, label %24, label %27
24: ; preds = %21
%25 = load ptr, ptr %6, align 8
%26 = call i32 @free(ptr noundef %25)
store ptr null, ptr %6, align 8
br label %27
27: ; preds = %24, %21
br label %62
28: ; preds = %15
%29 = load i32, ptr %4, align 4
%30 = load i32, ptr %8, align 4
%31 = add i32 %30, %29
store i32 %31, ptr %8, align 4
%32 = load ptr, ptr %6, align 8
%33 = icmp ne ptr %32, null
br i1 %33, label %34, label %42
34: ; preds = %28
%35 = load ptr, ptr %6, align 8
%36 = load i32, ptr %8, align 4
%37 = call i64 @xrealloc(ptr noundef %35, i32 noundef %36)
%38 = inttoptr i64 %37 to ptr
store ptr %38, ptr %6, align 8
%39 = load ptr, ptr %6, align 8
%40 = load ptr, ptr %5, align 8
%41 = call i32 @strcat(ptr noundef %39, ptr noundef %40)
br label %49
42: ; preds = %28
%43 = load i32, ptr %8, align 4
%44 = call i64 @xmalloc(i32 noundef %43)
%45 = inttoptr i64 %44 to ptr
store ptr %45, ptr %6, align 8
%46 = load ptr, ptr %6, align 8
%47 = load ptr, ptr %5, align 8
%48 = call i32 @strcpy(ptr noundef %46, ptr noundef %47)
br label %49
49: ; preds = %42, %34
%50 = load ptr, ptr %6, align 8
%51 = call ptr @strchr(ptr noundef %50, i8 noundef signext 10)
store ptr %51, ptr %7, align 8
br label %52
52: ; preds = %49
%53 = load ptr, ptr %7, align 8
%54 = icmp eq ptr %53, null
br i1 %54, label %55, label %60
55: ; preds = %52
%56 = load ptr, ptr %3, align 8
%57 = call i32 @feof(ptr noundef %56)
%58 = icmp ne i32 %57, 0
%59 = xor i1 %58, true
br label %60
60: ; preds = %55, %52
%61 = phi i1 [ false, %52 ], [ %59, %55 ]
br i1 %61, label %15, label %.loopexit, !llvm.loop !6
.loopexit: ; preds = %60
br label %62
62: ; preds = %.loopexit, %27
%63 = load ptr, ptr %6, align 8
%64 = icmp ne ptr %63, null
br i1 %64, label %65, label %70
65: ; preds = %62
%66 = load ptr, ptr %7, align 8
%67 = icmp ne ptr %66, null
br i1 %67, label %68, label %70
68: ; preds = %65
%69 = load ptr, ptr %7, align 8
store i8 0, ptr %69, align 1
br label %70
70: ; preds = %68, %65, %62
%71 = load ptr, ptr %5, align 8
%72 = call i32 @free(ptr noundef %71)
br label %74
73: ; preds = %2
store ptr null, ptr %6, align 8
br label %74
74: ; preds = %73, %70
%75 = load ptr, ptr %6, align 8
ret ptr %75
}
declare i64 @xmalloc(i32 noundef) #1
declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare i64 @xrealloc(ptr noundef, i32 noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i32 @feof(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmppwa_yb6y.c'
source_filename = "/tmp/tmppwa_yb6y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"zmap\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"Out of memory\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @die() #0 {
%1 = call i32 @log_fatal(ptr noundef @.str, ptr noundef @.str.1)
ret void
}
declare i32 @log_fatal(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/tmppwa_yb6y.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"zmap\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c"Out of memory\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @die() #0 {
%1 = call i32 @log_fatal(ptr noundef @.str, ptr noundef @.str.1)
ret void
}
declare i32 @log_fatal(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/tmpi7mq2t0f.c'
source_filename = "/tmp/tmpi7mq2t0f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @test_builtin_ppc_get_timebase() #0 {
%1 = call i64 (...) @__builtin_ppc_get_timebase()
ret i64 %1
}
declare i64 @__builtin_ppc_get_timebase(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpi7mq2t0f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @test_builtin_ppc_get_timebase() #0 {
%1 = call i64 (...) @__builtin_ppc_get_timebase()
ret i64 %1
}
declare i64 @__builtin_ppc_get_timebase(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp4jlkj54q.c'
source_filename = "/tmp/tmp4jlkj54q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @q_random() #0 {
%1 = call i32 (...) @random()
ret i32 %1
}
declare i32 @random(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4jlkj54q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @q_random() #0 {
%1 = call i32 (...) @random()
ret i32 %1
}
declare i32 @random(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmcjt2fqr.c'
source_filename = "/tmp/tmpmcjt2fqr.c"
target datalayout = "e-m:e-p270: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 [5 x i8] c"blah\00", align 1
@__const.main.bufw = private unnamed_addr constant [6 x i8] c"abcde\00", align 1
@O_CREAT = dso_local global i32 0, align 4
@O_RDWR = dso_local global i32 0, align 4
@O_TRUNC = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [19 x i8] c"failed to open %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"failed to write to %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"failed to read from %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [19 x i8] c"%d bytes read: %s\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 [5 x i8], align 1
%5 = alloca [6 x i8], align 1
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %4, ptr align 1 @__const.main.filename, i64 5, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %5, ptr align 1 @__const.main.bufw, i64 6, i1 false)
store i32 3, ptr %6, align 4
%9 = call ptr @llvm.stacksave()
store ptr %9, ptr %7, align 8
%10 = alloca i8, i64 3, align 16
%11 = getelementptr inbounds [6 x i8], ptr %5, i64 0, i64 0
%12 = call i32 @strlen(ptr noundef %11)
%13 = icmp sle i32 3, %12
%14 = zext i1 %13 to i32
%15 = call i32 @assert(i32 noundef %14)
%16 = getelementptr inbounds [5 x i8], ptr %4, i64 0, i64 0
%17 = load i32, ptr @O_CREAT, align 4
%18 = load i32, ptr @O_RDWR, align 4
%19 = or i32 %17, %18
%20 = load i32, ptr @O_TRUNC, align 4
%21 = or i32 %19, %20
%22 = call i32 (ptr, i32, ...) @open(ptr noundef %16, i32 noundef %21, i32 noundef 420)
store i32 %22, ptr %2, align 4
%23 = load i32, ptr %2, align 4
%24 = icmp eq i32 %23, -1
br i1 %24, label %25, label %28
25: ; preds = %0
%26 = getelementptr inbounds [5 x i8], ptr %4, i64 0, i64 0
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %26)
store i32 1, ptr %1, align 4
store i32 1, ptr %8, align 4
br label %72
28: ; preds = %0
%29 = load i32, ptr %2, align 4
%30 = getelementptr inbounds [6 x i8], ptr %5, i64 0, i64 0
%31 = getelementptr inbounds [6 x i8], ptr %5, i64 0, i64 0
%32 = call i32 @strlen(ptr noundef %31)
%33 = call i32 @write(i32 noundef %29, ptr noundef %30, i32 noundef %32)
store i32 %33, ptr %3, align 4
%34 = load i32, ptr %3, align 4
%35 = getelementptr inbounds [6 x i8], ptr %5, i64 0, i64 0
%36 = call i32 @strlen(ptr noundef %35)
%37 = icmp ne i32 %34, %36
br i1 %37, label %38, label %43
38: ; preds = %28
%39 = getelementptr inbounds [5 x i8], ptr %4, i64 0, i64 0
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %39)
%41 = load i32, ptr %2, align 4
%42 = call i32 @close(i32 noundef %41)
store i32 2, ptr %1, align 4
store i32 1, ptr %8, align 4
br label %72
43: ; preds = %28
%44 = load i32, ptr %2, align 4
%45 = call i32 @close(i32 noundef %44)
%46 = getelementptr inbounds [5 x i8], ptr %4, i64 0, i64 0
%47 = load i32, ptr @O_RDWR, align 4
%48 = call i32 (ptr, i32, ...) @open(ptr noundef %46, i32 noundef %47)
store i32 %48, ptr %2, align 4
%49 = load i32, ptr %2, align 4
%50 = icmp eq i32 %49, -1
br i1 %50, label %51, label %54
51: ; preds = %43
%52 = getelementptr inbounds [5 x i8], ptr %4, i64 0, i64 0
%53 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %52)
store i32 3, ptr %1, align 4
store i32 1, ptr %8, align 4
br label %72
54: ; preds = %43
%55 = load i32, ptr %2, align 4
%56 = call i32 @read(i32 noundef %55, ptr noundef %10, i32 noundef 3)
store i32 %56, ptr %3, align 4
%57 = load i32, ptr %3, align 4
%58 = icmp ne i32 %57, 3
br i1 %58, label %59, label %64
59: ; preds = %54
%60 = getelementptr inbounds [5 x i8], ptr %4, i64 0, i64 0
%61 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %60)
%62 = load i32, ptr %2, align 4
%63 = call i32 @close(i32 noundef %62)
store i32 4, ptr %1, align 4
store i32 1, ptr %8, align 4
br label %72
64: ; preds = %54
%65 = load i32, ptr %3, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds i8, ptr %10, i64 %66
store i8 0, ptr %67, align 1
%68 = load i32, ptr %3, align 4
%69 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %68, ptr noundef %10)
%70 = load i32, ptr %2, align 4
%71 = call i32 @close(i32 noundef %70)
store i32 0, ptr %1, align 4
store i32 1, ptr %8, align 4
br label %72
72: ; preds = %64, %59, %51, %38, %25
%73 = load ptr, ptr %7, align 8
call void @llvm.stackrestore(ptr %73)
%74 = load i32, ptr %1, align 4
ret i32 %74
}
; 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
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @assert(i32 noundef) #3
declare i32 @strlen(ptr noundef) #3
declare i32 @open(ptr noundef, i32 noundef, ...) #3
declare i32 @printf(ptr noundef, ...) #3
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #3
declare i32 @close(i32 noundef) #3
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #3
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
attributes #3 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmcjt2fqr.c"
target datalayout = "e-m:e-p270: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 [5 x i8] c"blah\00", align 1
@__const.main.bufw = private unnamed_addr constant [6 x i8] c"abcde\00", align 1
@O_CREAT = dso_local global i32 0, align 4
@O_RDWR = dso_local global i32 0, align 4
@O_TRUNC = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [19 x i8] c"failed to open %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"failed to write to %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"failed to read from %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [19 x i8] c"%d bytes read: %s\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 [5 x i8], align 1
%5 = alloca [6 x i8], align 1
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %4, ptr align 1 @__const.main.filename, i64 5, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %5, ptr align 1 @__const.main.bufw, i64 6, i1 false)
store i32 3, ptr %6, align 4
%9 = call ptr @llvm.stacksave()
store ptr %9, ptr %7, align 8
%10 = alloca i8, i64 3, align 16
%11 = getelementptr inbounds [6 x i8], ptr %5, i64 0, i64 0
%12 = call i32 @strlen(ptr noundef %11)
%13 = icmp sle i32 3, %12
%14 = zext i1 %13 to i32
%15 = call i32 @assert(i32 noundef %14)
%16 = getelementptr inbounds [5 x i8], ptr %4, i64 0, i64 0
%17 = load i32, ptr @O_CREAT, align 4
%18 = load i32, ptr @O_RDWR, align 4
%19 = or i32 %17, %18
%20 = load i32, ptr @O_TRUNC, align 4
%21 = or i32 %19, %20
%22 = call i32 (ptr, i32, ...) @open(ptr noundef %16, i32 noundef %21, i32 noundef 420)
store i32 %22, ptr %2, align 4
%23 = load i32, ptr %2, align 4
%24 = icmp eq i32 %23, -1
br i1 %24, label %25, label %28
25: ; preds = %0
%26 = getelementptr inbounds [5 x i8], ptr %4, i64 0, i64 0
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %26)
store i32 1, ptr %1, align 4
store i32 1, ptr %8, align 4
br label %72
28: ; preds = %0
%29 = load i32, ptr %2, align 4
%30 = getelementptr inbounds [6 x i8], ptr %5, i64 0, i64 0
%31 = getelementptr inbounds [6 x i8], ptr %5, i64 0, i64 0
%32 = call i32 @strlen(ptr noundef %31)
%33 = call i32 @write(i32 noundef %29, ptr noundef %30, i32 noundef %32)
store i32 %33, ptr %3, align 4
%34 = load i32, ptr %3, align 4
%35 = getelementptr inbounds [6 x i8], ptr %5, i64 0, i64 0
%36 = call i32 @strlen(ptr noundef %35)
%37 = icmp ne i32 %34, %36
br i1 %37, label %38, label %43
38: ; preds = %28
%39 = getelementptr inbounds [5 x i8], ptr %4, i64 0, i64 0
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %39)
%41 = load i32, ptr %2, align 4
%42 = call i32 @close(i32 noundef %41)
store i32 2, ptr %1, align 4
store i32 1, ptr %8, align 4
br label %72
43: ; preds = %28
%44 = load i32, ptr %2, align 4
%45 = call i32 @close(i32 noundef %44)
%46 = getelementptr inbounds [5 x i8], ptr %4, i64 0, i64 0
%47 = load i32, ptr @O_RDWR, align 4
%48 = call i32 (ptr, i32, ...) @open(ptr noundef %46, i32 noundef %47)
store i32 %48, ptr %2, align 4
%49 = load i32, ptr %2, align 4
%50 = icmp eq i32 %49, -1
br i1 %50, label %51, label %54
51: ; preds = %43
%52 = getelementptr inbounds [5 x i8], ptr %4, i64 0, i64 0
%53 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %52)
store i32 3, ptr %1, align 4
store i32 1, ptr %8, align 4
br label %72
54: ; preds = %43
%55 = load i32, ptr %2, align 4
%56 = call i32 @read(i32 noundef %55, ptr noundef %10, i32 noundef 3)
store i32 %56, ptr %3, align 4
%57 = load i32, ptr %3, align 4
%58 = icmp ne i32 %57, 3
br i1 %58, label %59, label %64
59: ; preds = %54
%60 = getelementptr inbounds [5 x i8], ptr %4, i64 0, i64 0
%61 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %60)
%62 = load i32, ptr %2, align 4
%63 = call i32 @close(i32 noundef %62)
store i32 4, ptr %1, align 4
store i32 1, ptr %8, align 4
br label %72
64: ; preds = %54
%65 = load i32, ptr %3, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds i8, ptr %10, i64 %66
store i8 0, ptr %67, align 1
%68 = load i32, ptr %3, align 4
%69 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %68, ptr noundef %10)
%70 = load i32, ptr %2, align 4
%71 = call i32 @close(i32 noundef %70)
store i32 0, ptr %1, align 4
store i32 1, ptr %8, align 4
br label %72
72: ; preds = %64, %59, %51, %38, %25
%73 = load ptr, ptr %7, align 8
call void @llvm.stackrestore(ptr %73)
%74 = load i32, ptr %1, align 4
ret i32 %74
}
; 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
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @assert(i32 noundef) #3
declare i32 @strlen(ptr noundef) #3
declare i32 @open(ptr noundef, i32 noundef, ...) #3
declare i32 @printf(ptr noundef, ...) #3
declare i32 @write(i32 noundef, ptr noundef, i32 noundef) #3
declare i32 @close(i32 noundef) #3
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #3
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
attributes #3 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmps5_dseqw.c'
source_filename = "/tmp/tmps5_dseqw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"%d <- iteracja\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @wypelnijSlimak(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store i32 %1, ptr %8, align 4
store i32 %2, ptr %9, align 4
store i32 %3, ptr %10, align 4
store i32 %4, ptr %11, align 4
store i32 %5, ptr %12, align 4
%15 = load i32, ptr %10, align 4
%16 = srem i32 %15, 2
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %68
18: ; preds = %6
%19 = load i32, ptr %9, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %9, align 4
store i32 0, ptr %13, align 4
br label %21
21: ; preds = %39, %18
%22 = load i32, ptr %13, align 4
%23 = load i32, ptr %10, align 4
%24 = icmp slt i32 %22, %23
br i1 %24, label %25, label %42
25: ; preds = %21
%26 = load i32, ptr %11, align 4
%27 = load ptr, ptr %7, align 8
%28 = load i32, ptr %8, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds ptr, ptr %27, i64 %29
%31 = load ptr, ptr %30, align 8
%32 = load i32, ptr %9, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i32, ptr %31, i64 %33
store i32 %26, ptr %34, align 4
%35 = load i32, ptr %8, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %8, align 4
%37 = load i32, ptr %11, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %11, align 4
br label %39
39: ; preds = %25
%40 = load i32, ptr %13, align 4
%41 = add nsw i32 %40, 1
store i32 %41, ptr %13, align 4
br label %21, !llvm.loop !6
42: ; preds = %21
%43 = load i32, ptr %8, align 4
%44 = add nsw i32 %43, -1
store i32 %44, ptr %8, align 4
store i32 0, ptr %13, align 4
br label %45
45: ; preds = %64, %42
%46 = load i32, ptr %13, align 4
%47 = load i32, ptr %10, align 4
%48 = sub nsw i32 %47, 1
%49 = icmp slt i32 %46, %48
br i1 %49, label %50, label %67
50: ; preds = %45
%51 = load i32, ptr %9, align 4
%52 = add nsw i32 %51, -1
store i32 %52, ptr %9, align 4
%53 = load i32, ptr %11, align 4
%54 = load ptr, ptr %7, align 8
%55 = load i32, ptr %8, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds ptr, ptr %54, i64 %56
%58 = load ptr, ptr %57, align 8
%59 = load i32, ptr %9, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds i32, ptr %58, i64 %60
store i32 %53, ptr %61, align 4
%62 = load i32, ptr %11, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %11, align 4
br label %64
64: ; preds = %50
%65 = load i32, ptr %13, align 4
%66 = add nsw i32 %65, 1
store i32 %66, ptr %13, align 4
br label %45, !llvm.loop !8
67: ; preds = %45
br label %118
68: ; preds = %6
%69 = load i32, ptr %9, align 4
%70 = add nsw i32 %69, -1
store i32 %70, ptr %9, align 4
store i32 0, ptr %13, align 4
br label %71
71: ; preds = %89, %68
%72 = load i32, ptr %13, align 4
%73 = load i32, ptr %10, align 4
%74 = icmp slt i32 %72, %73
br i1 %74, label %75, label %92
75: ; preds = %71
%76 = load i32, ptr %11, align 4
%77 = load ptr, ptr %7, align 8
%78 = load i32, ptr %8, align 4
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds ptr, ptr %77, i64 %79
%81 = load ptr, ptr %80, align 8
%82 = load i32, ptr %9, align 4
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds i32, ptr %81, i64 %83
store i32 %76, ptr %84, align 4
%85 = load i32, ptr %8, align 4
%86 = add nsw i32 %85, -1
store i32 %86, ptr %8, align 4
%87 = load i32, ptr %11, align 4
%88 = add nsw i32 %87, 1
store i32 %88, ptr %11, align 4
br label %89
89: ; preds = %75
%90 = load i32, ptr %13, align 4
%91 = add nsw i32 %90, 1
store i32 %91, ptr %13, align 4
br label %71, !llvm.loop !9
92: ; preds = %71
%93 = load i32, ptr %8, align 4
%94 = add nsw i32 %93, 1
store i32 %94, ptr %8, align 4
store i32 0, ptr %13, align 4
br label %95
95: ; preds = %114, %92
%96 = load i32, ptr %13, align 4
%97 = load i32, ptr %10, align 4
%98 = sub nsw i32 %97, 1
%99 = icmp slt i32 %96, %98
br i1 %99, label %100, label %117
100: ; preds = %95
%101 = load i32, ptr %9, align 4
%102 = add nsw i32 %101, 1
store i32 %102, ptr %9, align 4
%103 = load i32, ptr %11, align 4
%104 = load ptr, ptr %7, align 8
%105 = load i32, ptr %8, align 4
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds ptr, ptr %104, i64 %106
%108 = load ptr, ptr %107, align 8
%109 = load i32, ptr %9, align 4
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds i32, ptr %108, i64 %110
store i32 %103, ptr %111, align 4
%112 = load i32, ptr %11, align 4
%113 = add nsw i32 %112, 1
store i32 %113, ptr %11, align 4
br label %114
114: ; preds = %100
%115 = load i32, ptr %13, align 4
%116 = add nsw i32 %115, 1
store i32 %116, ptr %13, align 4
br label %95, !llvm.loop !10
117: ; preds = %95
br label %118
118: ; preds = %117, %67
%119 = load ptr, ptr %7, align 8
%120 = load i32, ptr %12, align 4
%121 = call i32 @rysujSlimak(ptr noundef %119, i32 noundef %120)
%122 = load i32, ptr %10, align 4
%123 = call i32 @printf(ptr noundef @.str, i32 noundef %122)
%124 = load i32, ptr %10, align 4
%125 = add nsw i32 %124, 1
store i32 %125, ptr %10, align 4
%126 = load i32, ptr %10, align 4
%127 = load i32, ptr %12, align 4
%128 = icmp sgt i32 %126, %127
br i1 %128, label %129, label %133
129: ; preds = %118
%130 = load ptr, ptr %7, align 8
%131 = load i32, ptr %12, align 4
%132 = call i32 @sumaPrzekatnych(ptr noundef %130, i32 noundef %131)
br label %140
133: ; preds = %118
%134 = load ptr, ptr %7, align 8
%135 = load i32, ptr %8, align 4
%136 = load i32, ptr %9, align 4
%137 = load i32, ptr %10, align 4
%138 = load i32, ptr %11, align 4
%139 = load i32, ptr %12, align 4
call void @wypelnijSlimak(ptr noundef %134, i32 noundef %135, i32 noundef %136, i32 noundef %137, i32 noundef %138, i32 noundef %139)
br label %140
140: ; preds = %133, %129
ret void
}
declare i32 @rysujSlimak(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @sumaPrzekatnych(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmps5_dseqw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [16 x i8] c"%d <- iteracja\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @wypelnijSlimak(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store ptr %0, ptr %7, align 8
store i32 %1, ptr %8, align 4
store i32 %2, ptr %9, align 4
store i32 %3, ptr %10, align 4
store i32 %4, ptr %11, align 4
store i32 %5, ptr %12, align 4
%15 = load i32, ptr %10, align 4
%16 = srem i32 %15, 2
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %73
18: ; preds = %6
%19 = load i32, ptr %9, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %9, align 4
store i32 0, ptr %13, align 4
%21 = load i32, ptr %13, align 4
%22 = load i32, ptr %10, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %.lr.ph5, label %44
.lr.ph5: ; preds = %18
br label %24
24: ; preds = %.lr.ph5, %38
%25 = load i32, ptr %11, align 4
%26 = load ptr, ptr %7, align 8
%27 = load i32, ptr %8, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds ptr, ptr %26, i64 %28
%30 = load ptr, ptr %29, align 8
%31 = load i32, ptr %9, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i32, ptr %30, i64 %32
store i32 %25, ptr %33, align 4
%34 = load i32, ptr %8, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %8, align 4
%36 = load i32, ptr %11, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %11, align 4
br label %38
38: ; preds = %24
%39 = load i32, ptr %13, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %13, align 4
%41 = load i32, ptr %13, align 4
%42 = load i32, ptr %10, align 4
%43 = icmp slt i32 %41, %42
br i1 %43, label %24, label %._crit_edge6, !llvm.loop !6
._crit_edge6: ; preds = %38
br label %44
44: ; preds = %._crit_edge6, %18
%45 = load i32, ptr %8, align 4
%46 = add nsw i32 %45, -1
store i32 %46, ptr %8, align 4
store i32 0, ptr %13, align 4
%47 = load i32, ptr %13, align 4
%48 = load i32, ptr %10, align 4
%49 = sub nsw i32 %48, 1
%50 = icmp slt i32 %47, %49
br i1 %50, label %.lr.ph8, label %72
.lr.ph8: ; preds = %44
br label %51
51: ; preds = %.lr.ph8, %65
%52 = load i32, ptr %9, align 4
%53 = add nsw i32 %52, -1
store i32 %53, ptr %9, align 4
%54 = load i32, ptr %11, align 4
%55 = load ptr, ptr %7, align 8
%56 = load i32, ptr %8, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds ptr, ptr %55, i64 %57
%59 = load ptr, ptr %58, align 8
%60 = load i32, ptr %9, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i32, ptr %59, i64 %61
store i32 %54, ptr %62, align 4
%63 = load i32, ptr %11, align 4
%64 = add nsw i32 %63, 1
store i32 %64, ptr %11, align 4
br label %65
65: ; preds = %51
%66 = load i32, ptr %13, align 4
%67 = add nsw i32 %66, 1
store i32 %67, ptr %13, align 4
%68 = load i32, ptr %13, align 4
%69 = load i32, ptr %10, align 4
%70 = sub nsw i32 %69, 1
%71 = icmp slt i32 %68, %70
br i1 %71, label %51, label %._crit_edge9, !llvm.loop !8
._crit_edge9: ; preds = %65
br label %72
72: ; preds = %._crit_edge9, %44
br label %128
73: ; preds = %6
%74 = load i32, ptr %9, align 4
%75 = add nsw i32 %74, -1
store i32 %75, ptr %9, align 4
store i32 0, ptr %13, align 4
%76 = load i32, ptr %13, align 4
%77 = load i32, ptr %10, align 4
%78 = icmp slt i32 %76, %77
br i1 %78, label %.lr.ph, label %99
.lr.ph: ; preds = %73
br label %79
79: ; preds = %.lr.ph, %93
%80 = load i32, ptr %11, align 4
%81 = load ptr, ptr %7, align 8
%82 = load i32, ptr %8, align 4
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds ptr, ptr %81, i64 %83
%85 = load ptr, ptr %84, align 8
%86 = load i32, ptr %9, align 4
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds i32, ptr %85, i64 %87
store i32 %80, ptr %88, align 4
%89 = load i32, ptr %8, align 4
%90 = add nsw i32 %89, -1
store i32 %90, ptr %8, align 4
%91 = load i32, ptr %11, align 4
%92 = add nsw i32 %91, 1
store i32 %92, ptr %11, align 4
br label %93
93: ; preds = %79
%94 = load i32, ptr %13, align 4
%95 = add nsw i32 %94, 1
store i32 %95, ptr %13, align 4
%96 = load i32, ptr %13, align 4
%97 = load i32, ptr %10, align 4
%98 = icmp slt i32 %96, %97
br i1 %98, label %79, label %._crit_edge, !llvm.loop !9
._crit_edge: ; preds = %93
br label %99
99: ; preds = %._crit_edge, %73
%100 = load i32, ptr %8, align 4
%101 = add nsw i32 %100, 1
store i32 %101, ptr %8, align 4
store i32 0, ptr %13, align 4
%102 = load i32, ptr %13, align 4
%103 = load i32, ptr %10, align 4
%104 = sub nsw i32 %103, 1
%105 = icmp slt i32 %102, %104
br i1 %105, label %.lr.ph2, label %127
.lr.ph2: ; preds = %99
br label %106
106: ; preds = %.lr.ph2, %120
%107 = load i32, ptr %9, align 4
%108 = add nsw i32 %107, 1
store i32 %108, ptr %9, align 4
%109 = load i32, ptr %11, align 4
%110 = load ptr, ptr %7, align 8
%111 = load i32, ptr %8, align 4
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds ptr, ptr %110, i64 %112
%114 = load ptr, ptr %113, align 8
%115 = load i32, ptr %9, align 4
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds i32, ptr %114, i64 %116
store i32 %109, ptr %117, align 4
%118 = load i32, ptr %11, align 4
%119 = add nsw i32 %118, 1
store i32 %119, ptr %11, align 4
br label %120
120: ; preds = %106
%121 = load i32, ptr %13, align 4
%122 = add nsw i32 %121, 1
store i32 %122, ptr %13, align 4
%123 = load i32, ptr %13, align 4
%124 = load i32, ptr %10, align 4
%125 = sub nsw i32 %124, 1
%126 = icmp slt i32 %123, %125
br i1 %126, label %106, label %._crit_edge3, !llvm.loop !10
._crit_edge3: ; preds = %120
br label %127
127: ; preds = %._crit_edge3, %99
br label %128
128: ; preds = %127, %72
%129 = load ptr, ptr %7, align 8
%130 = load i32, ptr %12, align 4
%131 = call i32 @rysujSlimak(ptr noundef %129, i32 noundef %130)
%132 = load i32, ptr %10, align 4
%133 = call i32 @printf(ptr noundef @.str, i32 noundef %132)
%134 = load i32, ptr %10, align 4
%135 = add nsw i32 %134, 1
store i32 %135, ptr %10, align 4
%136 = load i32, ptr %10, align 4
%137 = load i32, ptr %12, align 4
%138 = icmp sgt i32 %136, %137
br i1 %138, label %139, label %143
139: ; preds = %128
%140 = load ptr, ptr %7, align 8
%141 = load i32, ptr %12, align 4
%142 = call i32 @sumaPrzekatnych(ptr noundef %140, i32 noundef %141)
br label %150
143: ; preds = %128
%144 = load ptr, ptr %7, align 8
%145 = load i32, ptr %8, align 4
%146 = load i32, ptr %9, align 4
%147 = load i32, ptr %10, align 4
%148 = load i32, ptr %11, align 4
%149 = load i32, ptr %12, align 4
call void @wypelnijSlimak(ptr noundef %144, i32 noundef %145, i32 noundef %146, i32 noundef %147, i32 noundef %148, i32 noundef %149)
br label %150
150: ; preds = %143, %139
ret void
}
declare i32 @rysujSlimak(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @sumaPrzekatnych(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpt3m7qo4a.c'
source_filename = "/tmp/tmpt3m7qo4a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dirfd(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
ret i32 -1
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpt3m7qo4a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dirfd(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
ret i32 -1
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp37jxj1_b.c'
source_filename = "/tmp/tmp37jxj1_b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp37jxj1_b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE 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_q6m_7ef.c'
source_filename = "/tmp/tmp_q6m_7ef.c"
target datalayout = "e-m:e-p270: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 i32 0, align 4
@.str = private unnamed_addr constant [3 x i8] c"%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %3
3: ; preds = %18, %0
%4 = call i32 (...) @getchar()
store i32 %4, ptr %2, align 4
%5 = load i32, ptr @EOF, align 4
%6 = icmp ne i32 %4, %5
br i1 %6, label %7, label %19
7: ; preds = %3
%8 = load i32, ptr %2, align 4
%9 = call i64 @isalpha(i32 noundef %8)
%10 = icmp ne i64 %9, 0
br i1 %10, label %11, label %15
11: ; preds = %7
%12 = load i32, ptr %2, align 4
%13 = call i32 @encode_character(i32 noundef %12, i32 noundef 3)
%14 = call i32 @printf(ptr noundef @.str, i32 noundef %13)
br label %18
15: ; preds = %7
%16 = load i32, ptr %2, align 4
%17 = call i32 @printf(ptr noundef @.str, i32 noundef %16)
br label %18
18: ; preds = %15, %11
br label %3, !llvm.loop !6
19: ; preds = %3
ret i32 0
}
declare i32 @getchar(...) #1
declare i64 @isalpha(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @encode_character(i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_q6m_7ef.c"
target datalayout = "e-m:e-p270: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 i32 0, align 4
@.str = private unnamed_addr constant [3 x i8] c"%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
%3 = call i32 (...) @getchar()
store i32 %3, ptr %2, align 4
%4 = load i32, ptr @EOF, align 4
%5 = icmp ne i32 %3, %4
br i1 %5, label %.lr.ph, label %21
.lr.ph: ; preds = %0
br label %6
6: ; preds = %.lr.ph, %17
%7 = load i32, ptr %2, align 4
%8 = call i64 @isalpha(i32 noundef %7)
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %14
10: ; preds = %6
%11 = load i32, ptr %2, align 4
%12 = call i32 @encode_character(i32 noundef %11, i32 noundef 3)
%13 = call i32 @printf(ptr noundef @.str, i32 noundef %12)
br label %17
14: ; preds = %6
%15 = load i32, ptr %2, align 4
%16 = call i32 @printf(ptr noundef @.str, i32 noundef %15)
br label %17
17: ; preds = %14, %10
%18 = call i32 (...) @getchar()
store i32 %18, ptr %2, align 4
%19 = load i32, ptr @EOF, align 4
%20 = icmp ne i32 %18, %19
br i1 %20, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %21
21: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @getchar(...) #1
declare i64 @isalpha(i32 noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @encode_character(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/tmppj29wlae.c'
source_filename = "/tmp/tmppj29wlae.c"
target datalayout = "e-m:e-p270: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/tmppj29wlae.c"
target datalayout = "e-m:e-p270: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/tmpj0zu7anl.c'
source_filename = "/tmp/tmpj0zu7anl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @random_number(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%6 = call i32 (...) @rand()
%7 = load i32, ptr %4, align 4
%8 = load i32, ptr %3, align 4
%9 = sub nsw i32 %7, %8
%10 = add nsw i32 %9, 1
%11 = srem i32 %6, %10
store i32 %11, ptr %5, align 4
%12 = load i32, ptr %5, align 4
%13 = load i32, ptr %3, align 4
%14 = add nsw i32 %12, %13
ret i32 %14
}
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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpj0zu7anl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @random_number(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%6 = call i32 (...) @rand()
%7 = load i32, ptr %4, align 4
%8 = load i32, ptr %3, align 4
%9 = sub nsw i32 %7, %8
%10 = add nsw i32 %9, 1
%11 = srem i32 %6, %10
store i32 %11, ptr %5, align 4
%12 = load i32, ptr %5, align 4
%13 = load i32, ptr %3, align 4
%14 = add nsw i32 %12, %13
ret i32 %14
}
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"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.