llvm-ir stringlengths 479 303k | llvm-optimized-ir stringlengths 468 303k |
|---|---|
; ModuleID = '/tmp/tmp5zj82mxd.c'
source_filename = "/tmp/tmp5zj82mxd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [38 x i8] c"FAIL: %s:%d: Can't fork (errno = %d)\0A\00", align 1
@.str.1 = private unnamed_addr constant [153 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/OSLL/pmover/refs/heads/master/test/zdtm/live/transition/fork.c\00", align 1
@errno = dso_local global i32 0, align 4
@EINTR = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [93 x i8] c"FAIL: %s:%d: Pids do not match: expected %d instead of %d (errno=%d status=%x) (errno = %d)\0A\00", align 1
@.str.3 = private unnamed_addr constant [44 x i8] c"FAIL: %s:%d: Task didn't exit (errno = %d)\0A\00", align 1
@.str.4 = private unnamed_addr constant [55 x i8] c"FAIL: %s:%d: Task exited with wrong code (errno = %d)\0A\00", align 1
@.str.5 = private unnamed_addr constant [6 x i8] c"PASS\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = load i32, ptr %4, align 4
%10 = load ptr, ptr %5, align 8
%11 = call i32 @test_init(i32 noundef %9, ptr noundef %10)
%12 = call i32 (...) @test_daemon()
br label %13
13: ; preds = %64, %2
%14 = call i64 (...) @test_go()
%15 = icmp ne i64 %14, 0
br i1 %15, label %16, label %65
16: ; preds = %13
%17 = call i32 (...) @fork()
store i32 %17, ptr %6, align 4
%18 = load i32, ptr %6, align 4
%19 = icmp slt i32 %18, 0
br i1 %19, label %20, label %23
20: ; preds = %16
%21 = load i32, ptr @errno, align 4
%22 = call i32 (ptr, ...) @test_msg(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 28, i32 noundef %21)
br label %68
23: ; preds = %16
%24 = load i32, ptr %6, align 4
%25 = icmp eq i32 %24, 0
br i1 %25, label %26, label %28
26: ; preds = %23
%27 = call i32 @exit(i32 noundef 0) #3
unreachable
28: ; preds = %23
br label %29
29: ; preds = %38, %28
%30 = call i32 @wait(ptr noundef %8)
store i32 %30, ptr %7, align 4
%31 = icmp eq i32 %30, -1
br i1 %31, label %32, label %36
32: ; preds = %29
%33 = load i32, ptr @errno, align 4
%34 = load i32, ptr @EINTR, align 4
%35 = icmp eq i32 %33, %34
br label %36
36: ; preds = %32, %29
%37 = phi i1 [ false, %29 ], [ %35, %32 ]
br i1 %37, label %38, label %39
38: ; preds = %36
br label %29, !llvm.loop !6
39: ; preds = %36
%40 = load i32, ptr %7, align 4
%41 = load i32, ptr %6, align 4
%42 = icmp ne i32 %40, %41
br i1 %42, label %43, label %50
43: ; preds = %39
%44 = load i32, ptr %6, align 4
%45 = load i32, ptr %7, align 4
%46 = load i32, ptr @errno, align 4
%47 = load i32, ptr %8, align 4
%48 = load i32, ptr @errno, align 4
%49 = call i32 (ptr, ...) @test_msg(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 38, i32 noundef %44, i32 noundef %45, i32 noundef %46, i32 noundef %47, i32 noundef %48)
br label %68
50: ; preds = %39
%51 = load i32, ptr %8, align 4
%52 = call i32 @WIFEXITED(i32 noundef %51)
%53 = icmp ne i32 %52, 0
br i1 %53, label %57, label %54
54: ; preds = %50
%55 = load i32, ptr @errno, align 4
%56 = call i32 (ptr, ...) @test_msg(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 45, i32 noundef %55)
br label %68
57: ; preds = %50
%58 = load i32, ptr %8, align 4
%59 = call i64 @WEXITSTATUS(i32 noundef %58)
%60 = icmp ne i64 %59, 0
br i1 %60, label %61, label %64
61: ; preds = %57
%62 = load i32, ptr @errno, align 4
%63 = call i32 (ptr, ...) @test_msg(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 50, i32 noundef %62)
br label %68
64: ; preds = %57
br label %13, !llvm.loop !8
65: ; preds = %13
%66 = call i32 (...) @test_waitsig()
%67 = call i32 (ptr, ...) @test_msg(ptr noundef @.str.5)
br label %68
68: ; preds = %65, %61, %54, %43, %20
ret i32 0
}
declare i32 @test_init(i32 noundef, ptr noundef) #1
declare i32 @test_daemon(...) #1
declare i64 @test_go(...) #1
declare i32 @fork(...) #1
declare i32 @test_msg(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @wait(ptr noundef) #1
declare i32 @WIFEXITED(i32 noundef) #1
declare i64 @WEXITSTATUS(i32 noundef) #1
declare i32 @test_waitsig(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5zj82mxd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [38 x i8] c"FAIL: %s:%d: Can't fork (errno = %d)\0A\00", align 1
@.str.1 = private unnamed_addr constant [153 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/OSLL/pmover/refs/heads/master/test/zdtm/live/transition/fork.c\00", align 1
@errno = dso_local global i32 0, align 4
@EINTR = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [93 x i8] c"FAIL: %s:%d: Pids do not match: expected %d instead of %d (errno=%d status=%x) (errno = %d)\0A\00", align 1
@.str.3 = private unnamed_addr constant [44 x i8] c"FAIL: %s:%d: Task didn't exit (errno = %d)\0A\00", align 1
@.str.4 = private unnamed_addr constant [55 x i8] c"FAIL: %s:%d: Task exited with wrong code (errno = %d)\0A\00", align 1
@.str.5 = private unnamed_addr constant [6 x i8] c"PASS\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%9 = load i32, ptr %4, align 4
%10 = load ptr, ptr %5, align 8
%11 = call i32 @test_init(i32 noundef %9, ptr noundef %10)
%12 = call i32 (...) @test_daemon()
%13 = call i64 (...) @test_go()
%14 = icmp ne i64 %13, 0
br i1 %14, label %.lr.ph, label %65
.lr.ph: ; preds = %2
br label %18
15: ; preds = %58
%16 = call i64 (...) @test_go()
%17 = icmp ne i64 %16, 0
br i1 %17, label %18, label %._crit_edge, !llvm.loop !6
18: ; preds = %.lr.ph, %15
%19 = call i32 (...) @fork()
store i32 %19, ptr %6, align 4
%20 = load i32, ptr %6, align 4
%21 = icmp slt i32 %20, 0
br i1 %21, label %22, label %25
22: ; preds = %18
%23 = load i32, ptr @errno, align 4
%24 = call i32 (ptr, ...) @test_msg(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 28, i32 noundef %23)
br label %68
25: ; preds = %18
%26 = load i32, ptr %6, align 4
%27 = icmp eq i32 %26, 0
br i1 %27, label %28, label %30
28: ; preds = %25
%29 = call i32 @exit(i32 noundef 0) #3
unreachable
30: ; preds = %25
br label %31
31: ; preds = %38, %30
%32 = call i32 @wait(ptr noundef %8)
store i32 %32, ptr %7, align 4
%33 = icmp eq i32 %32, -1
br i1 %33, label %34, label %38
34: ; preds = %31
%35 = load i32, ptr @errno, align 4
%36 = load i32, ptr @EINTR, align 4
%37 = icmp eq i32 %35, %36
br label %38
38: ; preds = %34, %31
%39 = phi i1 [ false, %31 ], [ %37, %34 ]
br i1 %39, label %31, label %40, !llvm.loop !8
40: ; preds = %38
%41 = load i32, ptr %7, align 4
%42 = load i32, ptr %6, align 4
%43 = icmp ne i32 %41, %42
br i1 %43, label %44, label %51
44: ; preds = %40
%45 = load i32, ptr %6, align 4
%46 = load i32, ptr %7, align 4
%47 = load i32, ptr @errno, align 4
%48 = load i32, ptr %8, align 4
%49 = load i32, ptr @errno, align 4
%50 = call i32 (ptr, ...) @test_msg(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 38, i32 noundef %45, i32 noundef %46, i32 noundef %47, i32 noundef %48, i32 noundef %49)
br label %68
51: ; preds = %40
%52 = load i32, ptr %8, align 4
%53 = call i32 @WIFEXITED(i32 noundef %52)
%54 = icmp ne i32 %53, 0
br i1 %54, label %58, label %55
55: ; preds = %51
%56 = load i32, ptr @errno, align 4
%57 = call i32 (ptr, ...) @test_msg(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 45, i32 noundef %56)
br label %68
58: ; preds = %51
%59 = load i32, ptr %8, align 4
%60 = call i64 @WEXITSTATUS(i32 noundef %59)
%61 = icmp ne i64 %60, 0
br i1 %61, label %62, label %15
62: ; preds = %58
%63 = load i32, ptr @errno, align 4
%64 = call i32 (ptr, ...) @test_msg(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 50, i32 noundef %63)
br label %68
._crit_edge: ; preds = %15
br label %65
65: ; preds = %._crit_edge, %2
%66 = call i32 (...) @test_waitsig()
%67 = call i32 (ptr, ...) @test_msg(ptr noundef @.str.5)
br label %68
68: ; preds = %65, %62, %55, %44, %22
ret i32 0
}
declare i32 @test_init(i32 noundef, ptr noundef) #1
declare i32 @test_daemon(...) #1
declare i64 @test_go(...) #1
declare i32 @fork(...) #1
declare i32 @test_msg(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @wait(ptr noundef) #1
declare i32 @WIFEXITED(i32 noundef) #1
declare i64 @WEXITSTATUS(i32 noundef) #1
declare i32 @test_waitsig(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpl2jql2kj.c'
source_filename = "/tmp/tmpl2jql2kj.c"
target datalayout = "e-m:e-p270: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.timespec = type { i64, i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @get_offset(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca %struct.timespec, align 8
%6 = alloca %struct.timespec, align 8
store ptr %0, ptr %2, align 8
%7 = call i32 @get_time(ptr noundef %6)
%8 = call i32 @get_pcie_time(ptr noundef %5)
%9 = getelementptr inbounds %struct.timespec, ptr %6, i32 0, i32 1
%10 = load i64, ptr %9, align 8
%11 = mul i64 %10, 1000000000
%12 = getelementptr inbounds %struct.timespec, ptr %6, i32 0, i32 0
%13 = load i64, ptr %12, align 8
%14 = add i64 %11, %13
store i64 %14, ptr %4, align 8
%15 = getelementptr inbounds %struct.timespec, ptr %5, i32 0, i32 1
%16 = load i64, ptr %15, align 8
%17 = mul i64 %16, 1000000000
%18 = getelementptr inbounds %struct.timespec, ptr %5, i32 0, i32 0
%19 = load i64, ptr %18, align 8
%20 = add i64 %17, %19
store i64 %20, ptr %3, align 8
%21 = load i64, ptr %3, align 8
%22 = sub i64 %21, 35
store i64 %22, ptr %3, align 8
%23 = load i64, ptr %3, align 8
%24 = load i64, ptr %4, align 8
%25 = icmp ugt i64 %23, %24
br i1 %25, label %26, label %32
26: ; preds = %1
%27 = load i64, ptr %3, align 8
%28 = load i64, ptr %4, align 8
%29 = sub i64 %27, %28
%30 = sub i64 0, %29
%31 = load ptr, ptr %2, align 8
store i64 %30, ptr %31, align 8
br label %37
32: ; preds = %1
%33 = load i64, ptr %4, align 8
%34 = load i64, ptr %3, align 8
%35 = sub i64 %33, %34
%36 = load ptr, ptr %2, align 8
store i64 %35, ptr %36, align 8
br label %37
37: ; preds = %32, %26
ret void
}
declare i32 @get_time(ptr noundef) #1
declare i32 @get_pcie_time(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/tmpl2jql2kj.c"
target datalayout = "e-m:e-p270: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.timespec = type { i64, i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @get_offset(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
%4 = alloca i64, align 8
%5 = alloca %struct.timespec, align 8
%6 = alloca %struct.timespec, align 8
store ptr %0, ptr %2, align 8
%7 = call i32 @get_time(ptr noundef %6)
%8 = call i32 @get_pcie_time(ptr noundef %5)
%9 = getelementptr inbounds %struct.timespec, ptr %6, i32 0, i32 1
%10 = load i64, ptr %9, align 8
%11 = mul i64 %10, 1000000000
%12 = getelementptr inbounds %struct.timespec, ptr %6, i32 0, i32 0
%13 = load i64, ptr %12, align 8
%14 = add i64 %11, %13
store i64 %14, ptr %4, align 8
%15 = getelementptr inbounds %struct.timespec, ptr %5, i32 0, i32 1
%16 = load i64, ptr %15, align 8
%17 = mul i64 %16, 1000000000
%18 = getelementptr inbounds %struct.timespec, ptr %5, i32 0, i32 0
%19 = load i64, ptr %18, align 8
%20 = add i64 %17, %19
store i64 %20, ptr %3, align 8
%21 = load i64, ptr %3, align 8
%22 = sub i64 %21, 35
store i64 %22, ptr %3, align 8
%23 = load i64, ptr %3, align 8
%24 = load i64, ptr %4, align 8
%25 = icmp ugt i64 %23, %24
br i1 %25, label %26, label %32
26: ; preds = %1
%27 = load i64, ptr %3, align 8
%28 = load i64, ptr %4, align 8
%29 = sub i64 %27, %28
%30 = sub i64 0, %29
%31 = load ptr, ptr %2, align 8
store i64 %30, ptr %31, align 8
br label %37
32: ; preds = %1
%33 = load i64, ptr %4, align 8
%34 = load i64, ptr %3, align 8
%35 = sub i64 %33, %34
%36 = load ptr, ptr %2, align 8
store i64 %35, ptr %36, align 8
br label %37
37: ; preds = %32, %26
ret void
}
declare i32 @get_time(ptr noundef) #1
declare i32 @get_pcie_time(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/tmprgn_ej65.c'
source_filename = "/tmp/tmprgn_ej65.c"
target datalayout = "e-m:e-p270: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/tmprgn_ej65.c"
target datalayout = "e-m:e-p270: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/tmpaob2heqy.c'
source_filename = "/tmp/tmpaob2heqy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mergeSort(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = sub nsw i32 %6, 1
%8 = call i32 @sort(ptr noundef %5, i32 noundef 0, i32 noundef %7)
ret void
}
declare i32 @sort(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpaob2heqy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mergeSort(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = sub nsw i32 %6, 1
%8 = call i32 @sort(ptr noundef %5, i32 noundef 0, i32 noundef %7)
ret void
}
declare i32 @sort(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpg4zyuvj5.c'
source_filename = "/tmp/tmpg4zyuvj5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @search(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = load i32, ptr %6, align 4
%9 = load i32, ptr %5, align 4
%10 = sub nsw i32 %9, 1
%11 = call i32 @qsearch(ptr noundef %7, i32 noundef %8, i32 noundef 0, i32 noundef %10)
ret i32 %11
}
declare i32 @qsearch(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpg4zyuvj5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @search(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%7 = load ptr, ptr %4, align 8
%8 = load i32, ptr %6, align 4
%9 = load i32, ptr %5, align 4
%10 = sub nsw i32 %9, 1
%11 = call i32 @qsearch(ptr noundef %7, i32 noundef %8, i32 noundef 0, i32 noundef %10)
ret i32 %11
}
declare i32 @qsearch(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_qf3q5m1.c'
source_filename = "/tmp/tmp_qf3q5m1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Enter message: \00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"In B1FF-speak: \00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.3 = private unnamed_addr constant [12 x i8] c"!!!!!!!!!!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [100 x i32], align 16
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %3, align 4
br label %5
5: ; preds = %12, %0
%6 = call i32 (...) @getchar()
%7 = load i32, ptr %3, align 4
%8 = sext i32 %7 to i64
%9 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %8
store i32 %6, ptr %9, align 4
%10 = icmp ne i32 %6, 10
br i1 %10, label %11, label %15
11: ; preds = %5
br label %12
12: ; preds = %11
%13 = load i32, ptr %3, align 4
%14 = add nsw i32 %13, 1
store i32 %14, ptr %3, align 4
br label %5, !llvm.loop !6
15: ; preds = %5
%16 = load i32, ptr %3, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %17
store i32 0, ptr %18, align 4
store i32 0, ptr %3, align 4
br label %19
19: ; preds = %68, %15
%20 = load i32, ptr %3, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %21
%23 = load i32, ptr %22, align 4
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %71
25: ; preds = %19
%26 = load i32, ptr %3, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %27
%29 = load i32, ptr %28, align 4
%30 = icmp sgt i32 %29, 96
br i1 %30, label %31, label %37
31: ; preds = %25
%32 = load i32, ptr %3, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %33
%35 = load i32, ptr %34, align 4
%36 = sub nsw i32 %35, 32
store i32 %36, ptr %34, align 4
br label %37
37: ; preds = %31, %25
%38 = load i32, ptr %3, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %39
%41 = load i32, ptr %40, align 4
switch i32 %41, label %66 [
i32 65, label %42
i32 66, label %46
i32 69, label %50
i32 73, label %54
i32 79, label %58
i32 83, label %62
]
42: ; preds = %37
%43 = load i32, ptr %3, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %44
store i32 52, ptr %45, align 4
br label %67
46: ; preds = %37
%47 = load i32, ptr %3, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %48
store i32 56, ptr %49, align 4
br label %67
50: ; preds = %37
%51 = load i32, ptr %3, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %52
store i32 51, ptr %53, align 4
br label %67
54: ; preds = %37
%55 = load i32, ptr %3, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %56
store i32 49, ptr %57, align 4
br label %67
58: ; preds = %37
%59 = load i32, ptr %3, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %60
store i32 48, ptr %61, align 4
br label %67
62: ; preds = %37
%63 = load i32, ptr %3, align 4
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %64
store i32 53, ptr %65, align 4
br label %67
66: ; preds = %37
br label %68
67: ; preds = %62, %58, %54, %50, %46, %42
br label %68
68: ; preds = %67, %66
%69 = load i32, ptr %3, align 4
%70 = add nsw i32 %69, 1
store i32 %70, ptr %3, align 4
br label %19, !llvm.loop !8
71: ; preds = %19
%72 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %3, align 4
br label %73
73: ; preds = %85, %71
%74 = load i32, ptr %3, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %75
%77 = load i32, ptr %76, align 4
%78 = icmp ne i32 %77, 0
br i1 %78, label %79, label %88
79: ; preds = %73
%80 = load i32, ptr %3, align 4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %81
%83 = load i32, ptr %82, align 4
%84 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %83)
br label %85
85: ; preds = %79
%86 = load i32, ptr %3, align 4
%87 = add nsw i32 %86, 1
store i32 %87, ptr %3, align 4
br label %73, !llvm.loop !9
88: ; preds = %73
%89 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_qf3q5m1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Enter message: \00", align 1
@.str.1 = private unnamed_addr constant [16 x i8] c"In B1FF-speak: \00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%c\00", align 1
@.str.3 = private unnamed_addr constant [12 x i8] c"!!!!!!!!!!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [100 x i32], align 16
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %3, align 4
%5 = call i32 (...) @getchar()
%6 = load i32, ptr %3, align 4
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %7
store i32 %5, ptr %8, align 4
%9 = icmp ne i32 %5, 10
br i1 %9, label %.lr.ph, label %19
.lr.ph: ; preds = %0
br label %10
10: ; preds = %.lr.ph, %11
br label %11
11: ; preds = %10
%12 = load i32, ptr %3, align 4
%13 = add nsw i32 %12, 1
store i32 %13, ptr %3, align 4
%14 = call i32 (...) @getchar()
%15 = load i32, ptr %3, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %16
store i32 %14, ptr %17, align 4
%18 = icmp ne i32 %14, 10
br i1 %18, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %11
br label %19
19: ; preds = %._crit_edge, %0
%20 = load i32, ptr %3, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %21
store i32 0, ptr %22, align 4
store i32 0, ptr %3, align 4
%23 = load i32, ptr %3, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %24
%26 = load i32, ptr %25, align 4
%27 = icmp ne i32 %26, 0
br i1 %27, label %.lr.ph2, label %79
.lr.ph2: ; preds = %19
br label %28
28: ; preds = %.lr.ph2, %71
%29 = load i32, ptr %3, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %30
%32 = load i32, ptr %31, align 4
%33 = icmp sgt i32 %32, 96
br i1 %33, label %34, label %40
34: ; preds = %28
%35 = load i32, ptr %3, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %36
%38 = load i32, ptr %37, align 4
%39 = sub nsw i32 %38, 32
store i32 %39, ptr %37, align 4
br label %40
40: ; preds = %34, %28
%41 = load i32, ptr %3, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %42
%44 = load i32, ptr %43, align 4
switch i32 %44, label %69 [
i32 65, label %45
i32 66, label %49
i32 69, label %53
i32 73, label %57
i32 79, label %61
i32 83, label %65
]
45: ; preds = %40
%46 = load i32, ptr %3, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %47
store i32 52, ptr %48, align 4
br label %70
49: ; preds = %40
%50 = load i32, ptr %3, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %51
store i32 56, ptr %52, align 4
br label %70
53: ; preds = %40
%54 = load i32, ptr %3, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %55
store i32 51, ptr %56, align 4
br label %70
57: ; preds = %40
%58 = load i32, ptr %3, align 4
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %59
store i32 49, ptr %60, align 4
br label %70
61: ; preds = %40
%62 = load i32, ptr %3, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %63
store i32 48, ptr %64, align 4
br label %70
65: ; preds = %40
%66 = load i32, ptr %3, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %67
store i32 53, ptr %68, align 4
br label %70
69: ; preds = %40
br label %71
70: ; preds = %65, %61, %57, %53, %49, %45
br label %71
71: ; preds = %70, %69
%72 = load i32, ptr %3, align 4
%73 = add nsw i32 %72, 1
store i32 %73, ptr %3, align 4
%74 = load i32, ptr %3, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %75
%77 = load i32, ptr %76, align 4
%78 = icmp ne i32 %77, 0
br i1 %78, label %28, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %71
br label %79
79: ; preds = %._crit_edge3, %19
%80 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
store i32 0, ptr %3, align 4
%81 = load i32, ptr %3, align 4
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %82
%84 = load i32, ptr %83, align 4
%85 = icmp ne i32 %84, 0
br i1 %85, label %.lr.ph5, label %100
.lr.ph5: ; preds = %79
br label %86
86: ; preds = %.lr.ph5, %92
%87 = load i32, ptr %3, align 4
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %88
%90 = load i32, ptr %89, align 4
%91 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %90)
br label %92
92: ; preds = %86
%93 = load i32, ptr %3, align 4
%94 = add nsw i32 %93, 1
store i32 %94, ptr %3, align 4
%95 = load i32, ptr %3, align 4
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %96
%98 = load i32, ptr %97, align 4
%99 = icmp ne i32 %98, 0
br i1 %99, label %86, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %92
br label %100
100: ; preds = %._crit_edge6, %79
%101 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmp_bsca_gc.c'
source_filename = "/tmp/tmp_bsca_gc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @reverse_uint16_t(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
br label %6
6: ; preds = %10, %2
%7 = load ptr, ptr %3, align 8
%8 = load ptr, ptr %4, align 8
%9 = icmp ult ptr %7, %8
br i1 %9, label %10, label %21
10: ; preds = %6
%11 = load ptr, ptr %3, align 8
%12 = load i32, ptr %11, align 4
store i32 %12, ptr %5, align 4
%13 = load ptr, ptr %4, align 8
%14 = getelementptr inbounds i32, ptr %13, i32 -1
store ptr %14, ptr %4, align 8
%15 = load ptr, ptr %4, align 8
%16 = load i32, ptr %15, align 4
%17 = load ptr, ptr %3, align 8
%18 = getelementptr inbounds i32, ptr %17, i32 1
store ptr %18, ptr %3, align 8
store i32 %16, ptr %17, align 4
%19 = load i32, ptr %5, align 4
%20 = load ptr, ptr %4, align 8
store i32 %19, ptr %20, align 4
br label %6, !llvm.loop !6
21: ; preds = %6
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_bsca_gc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @reverse_uint16_t(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = load ptr, ptr %4, align 8
%8 = icmp ult ptr %6, %7
br i1 %8, label %.lr.ph, label %23
.lr.ph: ; preds = %2
br label %9
9: ; preds = %.lr.ph, %9
%10 = load ptr, ptr %3, align 8
%11 = load i32, ptr %10, align 4
store i32 %11, ptr %5, align 4
%12 = load ptr, ptr %4, align 8
%13 = getelementptr inbounds i32, ptr %12, i32 -1
store ptr %13, ptr %4, align 8
%14 = load ptr, ptr %4, align 8
%15 = load i32, ptr %14, align 4
%16 = load ptr, ptr %3, align 8
%17 = getelementptr inbounds i32, ptr %16, i32 1
store ptr %17, ptr %3, align 8
store i32 %15, ptr %16, align 4
%18 = load i32, ptr %5, align 4
%19 = load ptr, ptr %4, align 8
store i32 %18, ptr %19, align 4
%20 = load ptr, ptr %3, align 8
%21 = load ptr, ptr %4, align 8
%22 = icmp ult ptr %20, %21
br i1 %22, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %9
br label %23
23: ; preds = %._crit_edge, %2
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpp6kpdga8.c'
source_filename = "/tmp/tmpp6kpdga8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @db_sqlite3_vmfree(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 @sqlite3_free(ptr noundef %3)
ret void
}
declare i32 @sqlite3_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/tmpp6kpdga8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @db_sqlite3_vmfree(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 @sqlite3_free(ptr noundef %3)
ret void
}
declare i32 @sqlite3_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/tmp9sja52u9.c'
source_filename = "/tmp/tmp9sja52u9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [46 x i8] c"Error: unable to move the following file: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @MoveFile(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca [256 x i8], align 16
%9 = alloca [256 x i8], align 16
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
store i32 0, ptr %7, align 4
%10 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 0
%11 = load ptr, ptr %5, align 8
%12 = call i32 @strcpy(ptr noundef %10, ptr noundef %11)
%13 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 0
%14 = load ptr, ptr %4, align 8
%15 = call i32 @strcat(ptr noundef %13, ptr noundef %14)
%16 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
%17 = load ptr, ptr %6, align 8
%18 = call i32 @strcpy(ptr noundef %16, ptr noundef %17)
%19 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
%20 = load ptr, ptr %4, align 8
%21 = call i32 @strcat(ptr noundef %19, ptr noundef %20)
%22 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 0
%23 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
%24 = call i32 @rename(ptr noundef %22, ptr noundef %23)
store i32 %24, ptr %7, align 4
%25 = load i32, ptr %7, align 4
%26 = icmp ne i32 %25, 0
br i1 %26, label %27, label %30
27: ; preds = %3
%28 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 0
%29 = call i32 @printf(ptr noundef @.str, ptr noundef %28)
br label %30
30: ; preds = %27, %3
%31 = load i32, ptr %7, align 4
ret i32 %31
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare i32 @rename(ptr noundef, ptr noundef) #1
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/tmp9sja52u9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [46 x i8] c"Error: unable to move the following file: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @MoveFile(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca [256 x i8], align 16
%9 = alloca [256 x i8], align 16
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
store i32 0, ptr %7, align 4
%10 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 0
%11 = load ptr, ptr %5, align 8
%12 = call i32 @strcpy(ptr noundef %10, ptr noundef %11)
%13 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 0
%14 = load ptr, ptr %4, align 8
%15 = call i32 @strcat(ptr noundef %13, ptr noundef %14)
%16 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
%17 = load ptr, ptr %6, align 8
%18 = call i32 @strcpy(ptr noundef %16, ptr noundef %17)
%19 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
%20 = load ptr, ptr %4, align 8
%21 = call i32 @strcat(ptr noundef %19, ptr noundef %20)
%22 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 0
%23 = getelementptr inbounds [256 x i8], ptr %9, i64 0, i64 0
%24 = call i32 @rename(ptr noundef %22, ptr noundef %23)
store i32 %24, ptr %7, align 4
%25 = load i32, ptr %7, align 4
%26 = icmp ne i32 %25, 0
br i1 %26, label %27, label %30
27: ; preds = %3
%28 = getelementptr inbounds [256 x i8], ptr %8, i64 0, i64 0
%29 = call i32 @printf(ptr noundef @.str, ptr noundef %28)
br label %30
30: ; preds = %27, %3
%31 = load i32, ptr %7, align 4
ret i32 %31
}
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare i32 @rename(ptr noundef, ptr noundef) #1
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/tmpv07cbkiu.c'
source_filename = "/tmp/tmpv07cbkiu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"del(%s)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @del_addon(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca [30 x i8], align 16
%9 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%10 = load ptr, ptr %3, align 8
store ptr %10, ptr %7, align 8
br label %11
11: ; preds = %142, %2
%12 = load ptr, ptr %7, align 8
%13 = load i8, ptr %12, align 1
%14 = icmp ne i8 %13, 0
br i1 %14, label %15, label %144
15: ; preds = %11
br label %16
16: ; preds = %28, %15
%17 = load ptr, ptr %7, align 8
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = icmp ne i32 %19, 0
br i1 %20, label %21, label %26
21: ; preds = %16
%22 = load ptr, ptr %7, align 8
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = icmp sle i32 %24, 32
br label %26
26: ; preds = %21, %16
%27 = phi i1 [ false, %16 ], [ %25, %21 ]
br i1 %27, label %28, label %31
28: ; preds = %26
%29 = load ptr, ptr %7, align 8
%30 = getelementptr inbounds i8, ptr %29, i32 1
store ptr %30, ptr %7, align 8
br label %16, !llvm.loop !6
31: ; preds = %26
%32 = load ptr, ptr %7, align 8
store ptr %32, ptr %6, align 8
br label %33
33: ; preds = %45, %31
%34 = load ptr, ptr %6, align 8
%35 = load i8, ptr %34, align 1
%36 = sext i8 %35 to i32
%37 = icmp sgt i32 %36, 32
br i1 %37, label %38, label %43
38: ; preds = %33
%39 = load ptr, ptr %6, align 8
%40 = load i8, ptr %39, align 1
%41 = sext i8 %40 to i32
%42 = icmp ne i32 %41, 123
br label %43
43: ; preds = %38, %33
%44 = phi i1 [ false, %33 ], [ %42, %38 ]
br i1 %44, label %45, label %48
45: ; preds = %43
%46 = load ptr, ptr %6, align 8
%47 = getelementptr inbounds i8, ptr %46, i32 1
store ptr %47, ptr %6, align 8
br label %33, !llvm.loop !8
48: ; preds = %43
%49 = getelementptr inbounds [30 x i8], ptr %8, i64 0, i64 0
%50 = load ptr, ptr %7, align 8
%51 = load ptr, ptr %6, align 8
%52 = load ptr, ptr %7, align 8
%53 = ptrtoint ptr %51 to i64
%54 = ptrtoint ptr %52 to i64
%55 = sub i64 %53, %54
%56 = trunc i64 %55 to i32
%57 = call i32 @memcpy(ptr noundef %49, ptr noundef %50, i32 noundef %56)
%58 = load ptr, ptr %6, align 8
%59 = load ptr, ptr %7, align 8
%60 = ptrtoint ptr %58 to i64
%61 = ptrtoint ptr %59 to i64
%62 = sub i64 %60, %61
%63 = getelementptr inbounds [30 x i8], ptr %8, i64 0, i64 %62
store i8 0, ptr %63, align 1
%64 = load ptr, ptr %6, align 8
store ptr %64, ptr %5, align 8
br label %65
65: ; preds = %77, %48
%66 = load ptr, ptr %5, align 8
%67 = load i8, ptr %66, align 1
%68 = sext i8 %67 to i32
%69 = icmp ne i32 %68, 0
br i1 %69, label %70, label %75
70: ; preds = %65
%71 = load ptr, ptr %5, align 8
%72 = load i8, ptr %71, align 1
%73 = sext i8 %72 to i32
%74 = icmp sle i32 %73, 32
br label %75
75: ; preds = %70, %65
%76 = phi i1 [ false, %65 ], [ %74, %70 ]
br i1 %76, label %77, label %80
77: ; preds = %75
%78 = load ptr, ptr %5, align 8
%79 = getelementptr inbounds i8, ptr %78, i32 1
store ptr %79, ptr %5, align 8
br label %65, !llvm.loop !9
80: ; preds = %75
%81 = load ptr, ptr %5, align 8
%82 = load i8, ptr %81, align 1
%83 = sext i8 %82 to i32
%84 = icmp eq i32 %83, 123
br i1 %84, label %85, label %142
85: ; preds = %80
store i32 1, ptr %9, align 4
%86 = load ptr, ptr %5, align 8
%87 = getelementptr inbounds i8, ptr %86, i32 1
store ptr %87, ptr %5, align 8
br label %88
88: ; preds = %108, %85
%89 = load i32, ptr %9, align 4
%90 = icmp ne i32 %89, 0
br i1 %90, label %91, label %96
91: ; preds = %88
%92 = load ptr, ptr %5, align 8
%93 = load i8, ptr %92, align 1
%94 = sext i8 %93 to i32
%95 = icmp ne i32 %94, 0
br label %96
96: ; preds = %91, %88
%97 = phi i1 [ false, %88 ], [ %95, %91 ]
br i1 %97, label %98, label %111
98: ; preds = %96
%99 = load ptr, ptr %5, align 8
%100 = load i8, ptr %99, align 1
%101 = sext i8 %100 to i32
switch i32 %101, label %108 [
i32 123, label %102
i32 125, label %105
]
102: ; preds = %98
%103 = load i32, ptr %9, align 4
%104 = add nsw i32 %103, 1
store i32 %104, ptr %9, align 4
br label %108
105: ; preds = %98
%106 = load i32, ptr %9, align 4
%107 = add nsw i32 %106, -1
store i32 %107, ptr %9, align 4
br label %108
108: ; preds = %98, %105, %102
%109 = load ptr, ptr %5, align 8
%110 = getelementptr inbounds i8, ptr %109, i32 1
store ptr %110, ptr %5, align 8
br label %88, !llvm.loop !10
111: ; preds = %96
br label %112
112: ; preds = %124, %111
%113 = load ptr, ptr %5, align 8
%114 = load i8, ptr %113, align 1
%115 = sext i8 %114 to i32
%116 = icmp ne i32 %115, 0
br i1 %116, label %117, label %122
117: ; preds = %112
%118 = load ptr, ptr %5, align 8
%119 = load i8, ptr %118, align 1
%120 = sext i8 %119 to i32
%121 = icmp sle i32 %120, 32
br label %122
122: ; preds = %117, %112
%123 = phi i1 [ false, %112 ], [ %121, %117 ]
br i1 %123, label %124, label %127
124: ; preds = %122
%125 = load ptr, ptr %5, align 8
%126 = getelementptr inbounds i8, ptr %125, i32 1
store ptr %126, ptr %5, align 8
br label %112, !llvm.loop !11
127: ; preds = %122
%128 = getelementptr inbounds [30 x i8], ptr %8, i64 0, i64 0
%129 = load ptr, ptr %4, align 8
%130 = call i32 @strcmp(ptr noundef %128, ptr noundef %129)
%131 = icmp ne i32 %130, 0
br i1 %131, label %141, label %132
132: ; preds = %127
%133 = getelementptr inbounds [30 x i8], ptr %8, i64 0, i64 0
%134 = call i32 @printf(ptr noundef @.str, ptr noundef %133)
%135 = load ptr, ptr %7, align 8
%136 = load ptr, ptr %5, align 8
%137 = load ptr, ptr %5, align 8
%138 = call i64 @strlen(ptr noundef %137)
%139 = add nsw i64 %138, 1
%140 = call i32 @memmove(ptr noundef %135, ptr noundef %136, i64 noundef %139)
br label %144
141: ; preds = %127
br label %142
142: ; preds = %141, %80
%143 = load ptr, ptr %5, align 8
store ptr %143, ptr %7, align 8
br label %11, !llvm.loop !12
144: ; preds = %132, %11
ret void
}
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @memmove(ptr noundef, ptr noundef, i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpv07cbkiu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"del(%s)\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @del_addon(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca [30 x i8], align 16
%9 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%10 = load ptr, ptr %3, align 8
store ptr %10, ptr %7, align 8
%11 = load ptr, ptr %7, align 8
%12 = load i8, ptr %11, align 1
%13 = icmp ne i8 %12, 0
br i1 %13, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %2
br label %14
14: ; preds = %.lr.ph, %141
br label %15
15: ; preds = %27, %14
%16 = load ptr, ptr %7, align 8
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = icmp ne i32 %18, 0
br i1 %19, label %20, label %25
20: ; preds = %15
%21 = load ptr, ptr %7, align 8
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = icmp sle i32 %23, 32
br label %25
25: ; preds = %20, %15
%26 = phi i1 [ false, %15 ], [ %24, %20 ]
br i1 %26, label %27, label %30
27: ; preds = %25
%28 = load ptr, ptr %7, align 8
%29 = getelementptr inbounds i8, ptr %28, i32 1
store ptr %29, ptr %7, align 8
br label %15, !llvm.loop !6
30: ; preds = %25
%31 = load ptr, ptr %7, align 8
store ptr %31, ptr %6, align 8
br label %32
32: ; preds = %44, %30
%33 = load ptr, ptr %6, align 8
%34 = load i8, ptr %33, align 1
%35 = sext i8 %34 to i32
%36 = icmp sgt i32 %35, 32
br i1 %36, label %37, label %42
37: ; preds = %32
%38 = load ptr, ptr %6, align 8
%39 = load i8, ptr %38, align 1
%40 = sext i8 %39 to i32
%41 = icmp ne i32 %40, 123
br label %42
42: ; preds = %37, %32
%43 = phi i1 [ false, %32 ], [ %41, %37 ]
br i1 %43, label %44, label %47
44: ; preds = %42
%45 = load ptr, ptr %6, align 8
%46 = getelementptr inbounds i8, ptr %45, i32 1
store ptr %46, ptr %6, align 8
br label %32, !llvm.loop !8
47: ; preds = %42
%48 = getelementptr inbounds [30 x i8], ptr %8, i64 0, i64 0
%49 = load ptr, ptr %7, align 8
%50 = load ptr, ptr %6, align 8
%51 = load ptr, ptr %7, align 8
%52 = ptrtoint ptr %50 to i64
%53 = ptrtoint ptr %51 to i64
%54 = sub i64 %52, %53
%55 = trunc i64 %54 to i32
%56 = call i32 @memcpy(ptr noundef %48, ptr noundef %49, i32 noundef %55)
%57 = load ptr, ptr %6, align 8
%58 = load ptr, ptr %7, align 8
%59 = ptrtoint ptr %57 to i64
%60 = ptrtoint ptr %58 to i64
%61 = sub i64 %59, %60
%62 = getelementptr inbounds [30 x i8], ptr %8, i64 0, i64 %61
store i8 0, ptr %62, align 1
%63 = load ptr, ptr %6, align 8
store ptr %63, ptr %5, align 8
br label %64
64: ; preds = %76, %47
%65 = load ptr, ptr %5, align 8
%66 = load i8, ptr %65, align 1
%67 = sext i8 %66 to i32
%68 = icmp ne i32 %67, 0
br i1 %68, label %69, label %74
69: ; preds = %64
%70 = load ptr, ptr %5, align 8
%71 = load i8, ptr %70, align 1
%72 = sext i8 %71 to i32
%73 = icmp sle i32 %72, 32
br label %74
74: ; preds = %69, %64
%75 = phi i1 [ false, %64 ], [ %73, %69 ]
br i1 %75, label %76, label %79
76: ; preds = %74
%77 = load ptr, ptr %5, align 8
%78 = getelementptr inbounds i8, ptr %77, i32 1
store ptr %78, ptr %5, align 8
br label %64, !llvm.loop !9
79: ; preds = %74
%80 = load ptr, ptr %5, align 8
%81 = load i8, ptr %80, align 1
%82 = sext i8 %81 to i32
%83 = icmp eq i32 %82, 123
br i1 %83, label %84, label %141
84: ; preds = %79
store i32 1, ptr %9, align 4
%85 = load ptr, ptr %5, align 8
%86 = getelementptr inbounds i8, ptr %85, i32 1
store ptr %86, ptr %5, align 8
br label %87
87: ; preds = %107, %84
%88 = load i32, ptr %9, align 4
%89 = icmp ne i32 %88, 0
br i1 %89, label %90, label %95
90: ; preds = %87
%91 = load ptr, ptr %5, align 8
%92 = load i8, ptr %91, align 1
%93 = sext i8 %92 to i32
%94 = icmp ne i32 %93, 0
br label %95
95: ; preds = %90, %87
%96 = phi i1 [ false, %87 ], [ %94, %90 ]
br i1 %96, label %97, label %110
97: ; preds = %95
%98 = load ptr, ptr %5, align 8
%99 = load i8, ptr %98, align 1
%100 = sext i8 %99 to i32
switch i32 %100, label %107 [
i32 123, label %101
i32 125, label %104
]
101: ; preds = %97
%102 = load i32, ptr %9, align 4
%103 = add nsw i32 %102, 1
store i32 %103, ptr %9, align 4
br label %107
104: ; preds = %97
%105 = load i32, ptr %9, align 4
%106 = add nsw i32 %105, -1
store i32 %106, ptr %9, align 4
br label %107
107: ; preds = %104, %101, %97
%108 = load ptr, ptr %5, align 8
%109 = getelementptr inbounds i8, ptr %108, i32 1
store ptr %109, ptr %5, align 8
br label %87, !llvm.loop !10
110: ; preds = %95
br label %111
111: ; preds = %123, %110
%112 = load ptr, ptr %5, align 8
%113 = load i8, ptr %112, align 1
%114 = sext i8 %113 to i32
%115 = icmp ne i32 %114, 0
br i1 %115, label %116, label %121
116: ; preds = %111
%117 = load ptr, ptr %5, align 8
%118 = load i8, ptr %117, align 1
%119 = sext i8 %118 to i32
%120 = icmp sle i32 %119, 32
br label %121
121: ; preds = %116, %111
%122 = phi i1 [ false, %111 ], [ %120, %116 ]
br i1 %122, label %123, label %126
123: ; preds = %121
%124 = load ptr, ptr %5, align 8
%125 = getelementptr inbounds i8, ptr %124, i32 1
store ptr %125, ptr %5, align 8
br label %111, !llvm.loop !11
126: ; preds = %121
%127 = getelementptr inbounds [30 x i8], ptr %8, i64 0, i64 0
%128 = load ptr, ptr %4, align 8
%129 = call i32 @strcmp(ptr noundef %127, ptr noundef %128)
%130 = icmp ne i32 %129, 0
br i1 %130, label %140, label %131
131: ; preds = %126
%132 = getelementptr inbounds [30 x i8], ptr %8, i64 0, i64 0
%133 = call i32 @printf(ptr noundef @.str, ptr noundef %132)
%134 = load ptr, ptr %7, align 8
%135 = load ptr, ptr %5, align 8
%136 = load ptr, ptr %5, align 8
%137 = call i64 @strlen(ptr noundef %136)
%138 = add nsw i64 %137, 1
%139 = call i32 @memmove(ptr noundef %134, ptr noundef %135, i64 noundef %138)
br label %146
140: ; preds = %126
br label %141
141: ; preds = %140, %79
%142 = load ptr, ptr %5, align 8
store ptr %142, ptr %7, align 8
%143 = load ptr, ptr %7, align 8
%144 = load i8, ptr %143, align 1
%145 = icmp ne i8 %144, 0
br i1 %145, label %14, label %..loopexit_crit_edge, !llvm.loop !12
..loopexit_crit_edge: ; preds = %141
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %2
br label %146
146: ; preds = %.loopexit, %131
ret void
}
declare i32 @memcpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @memmove(ptr noundef, ptr noundef, i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
|
; ModuleID = '/tmp/tmp8fxjcy22.c'
source_filename = "/tmp/tmp8fxjcy22.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, i32, i32 }
@AF_INET = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local { i64, i32 } @NewTCPAddr(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca %struct.sockaddr_in, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca { i64, i32 }, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%7 = call i32 @memset(ptr noundef %3, i32 noundef 0, i32 noundef 12)
%8 = load i32, ptr @AF_INET, align 4
%9 = getelementptr inbounds %struct.sockaddr_in, ptr %3, i32 0, i32 2
store i32 %8, ptr %9, align 4
%10 = load i32, ptr %5, align 4
%11 = call i32 @htons(i32 noundef %10)
%12 = getelementptr inbounds %struct.sockaddr_in, ptr %3, i32 0, i32 1
store i32 %11, ptr %12, align 4
%13 = load i32, ptr @AF_INET, align 4
%14 = load ptr, ptr %4, align 8
%15 = call i32 @nslkup(ptr noundef %14)
%16 = getelementptr inbounds %struct.sockaddr_in, ptr %3, i32 0, i32 0
%17 = call i32 @inet_pton(i32 noundef %13, i32 noundef %15, ptr noundef %16)
call void @llvm.memcpy.p0.p0.i64(ptr align 8 %6, ptr align 4 %3, i64 12, i1 false)
%18 = load { i64, i32 }, ptr %6, align 8
ret { i64, i32 } %18
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @inet_pton(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @nslkup(ptr noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8fxjcy22.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, i32, i32 }
@AF_INET = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local { i64, i32 } @NewTCPAddr(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca %struct.sockaddr_in, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca { i64, i32 }, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%7 = call i32 @memset(ptr noundef %3, i32 noundef 0, i32 noundef 12)
%8 = load i32, ptr @AF_INET, align 4
%9 = getelementptr inbounds %struct.sockaddr_in, ptr %3, i32 0, i32 2
store i32 %8, ptr %9, align 4
%10 = load i32, ptr %5, align 4
%11 = call i32 @htons(i32 noundef %10)
%12 = getelementptr inbounds %struct.sockaddr_in, ptr %3, i32 0, i32 1
store i32 %11, ptr %12, align 4
%13 = load i32, ptr @AF_INET, align 4
%14 = load ptr, ptr %4, align 8
%15 = call i32 @nslkup(ptr noundef %14)
%16 = getelementptr inbounds %struct.sockaddr_in, ptr %3, i32 0, i32 0
%17 = call i32 @inet_pton(i32 noundef %13, i32 noundef %15, ptr noundef %16)
call void @llvm.memcpy.p0.p0.i64(ptr align 8 %6, ptr align 4 %3, i64 12, i1 false)
%18 = load { i64, i32 }, ptr %6, align 8
ret { i64, i32 } %18
}
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @inet_pton(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @nslkup(ptr noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmptkhq0tea.c'
source_filename = "/tmp/tmptkhq0tea.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"Call this program with %i arguments\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"You win!\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%u\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [1 x i32], align 4
%7 = alloca [1 x i32], align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = call i32 (...) @megaInit()
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef 1)
%16 = call i32 @exit(i32 noundef -1) #3
unreachable
17: ; preds = %2
br label %18
18: ; preds = %17
store i32 0, ptr %8, align 4
br label %19
19: ; preds = %22, %18
%20 = load i32, ptr %8, align 4
%21 = icmp slt i32 %20, 1
br i1 %21, label %22, label %37
22: ; preds = %19
%23 = load ptr, ptr %5, align 8
%24 = load i32, ptr %8, align 4
%25 = add nsw i32 %24, 1
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds ptr, ptr %23, i64 %26
%28 = load ptr, ptr %27, align 8
%29 = call i64 @strtoul(ptr noundef %28, i32 noundef 0, i32 noundef 10)
%30 = trunc i64 %29 to i32
store i32 %30, ptr %9, align 4
%31 = load i32, ptr %9, align 4
%32 = load i32, ptr %8, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [1 x i32], ptr %6, i64 0, i64 %33
store i32 %31, ptr %34, align 4
%35 = load i32, ptr %8, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %8, align 4
br label %19, !llvm.loop !6
37: ; preds = %19
%38 = getelementptr inbounds [1 x i32], ptr %6, i64 0, i64 0
%39 = getelementptr inbounds [1 x i32], ptr %7, i64 0, i64 0
%40 = call i32 @RandomFunc(ptr noundef %38, ptr noundef %39)
%41 = getelementptr inbounds [1 x i32], ptr %7, i64 0, i64 0
%42 = load i32, ptr %41, align 4
%43 = icmp eq i32 %42, 1533441493
br i1 %43, label %44, label %46
44: ; preds = %37
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %47
46: ; preds = %37
br label %47
47: ; preds = %46, %44
store i32 0, ptr %10, align 4
br label %48
48: ; preds = %51, %47
%49 = load i32, ptr %10, align 4
%50 = icmp slt i32 %49, 1
br i1 %50, label %51, label %59
51: ; preds = %48
%52 = load i32, ptr %10, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [1 x i32], ptr %7, i64 0, i64 %53
%55 = load i32, ptr %54, align 4
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %55)
%57 = load i32, ptr %10, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %10, align 4
br label %48, !llvm.loop !8
59: ; preds = %48
%60 = load i32, ptr %3, align 4
ret i32 %60
}
declare i32 @megaInit(...) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @strtoul(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @RandomFunc(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptkhq0tea.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"Call this program with %i arguments\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"You win!\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%u\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [1 x i32], align 4
%7 = alloca [1 x i32], align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = call i32 (...) @megaInit()
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef 1)
%16 = call i32 @exit(i32 noundef -1) #3
unreachable
17: ; preds = %2
br label %18
18: ; preds = %17
store i32 0, ptr %8, align 4
%19 = load i32, ptr %8, align 4
%20 = icmp slt i32 %19, 1
br i1 %20, label %.lr.ph, label %38
.lr.ph: ; preds = %18
br label %21
21: ; preds = %.lr.ph, %21
%22 = load ptr, ptr %5, align 8
%23 = load i32, ptr %8, align 4
%24 = add nsw i32 %23, 1
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds ptr, ptr %22, i64 %25
%27 = load ptr, ptr %26, align 8
%28 = call i64 @strtoul(ptr noundef %27, i32 noundef 0, i32 noundef 10)
%29 = trunc i64 %28 to i32
store i32 %29, ptr %9, align 4
%30 = load i32, ptr %9, align 4
%31 = load i32, ptr %8, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [1 x i32], ptr %6, i64 0, i64 %32
store i32 %30, 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 %8, align 4
%37 = icmp slt i32 %36, 1
br i1 %37, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %38
38: ; preds = %._crit_edge, %18
%39 = getelementptr inbounds [1 x i32], ptr %6, i64 0, i64 0
%40 = getelementptr inbounds [1 x i32], ptr %7, i64 0, i64 0
%41 = call i32 @RandomFunc(ptr noundef %39, ptr noundef %40)
%42 = getelementptr inbounds [1 x i32], ptr %7, i64 0, i64 0
%43 = load i32, ptr %42, align 4
%44 = icmp eq i32 %43, 1533441493
br i1 %44, label %45, label %47
45: ; preds = %38
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %48
47: ; preds = %38
br label %48
48: ; preds = %47, %45
store i32 0, ptr %10, align 4
%49 = load i32, ptr %10, align 4
%50 = icmp slt i32 %49, 1
br i1 %50, label %.lr.ph2, label %61
.lr.ph2: ; preds = %48
br label %51
51: ; preds = %.lr.ph2, %51
%52 = load i32, ptr %10, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [1 x i32], ptr %7, i64 0, i64 %53
%55 = load i32, ptr %54, align 4
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %55)
%57 = load i32, ptr %10, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %10, align 4
%59 = load i32, ptr %10, align 4
%60 = icmp slt i32 %59, 1
br i1 %60, label %51, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %51
br label %61
61: ; preds = %._crit_edge3, %48
%62 = load i32, ptr %3, align 4
ret i32 %62
}
declare i32 @megaInit(...) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @strtoul(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @RandomFunc(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpn6gg03xj.c'
source_filename = "/tmp/tmpn6gg03xj.c"
target datalayout = "e-m:e-p270: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/tmpn6gg03xj.c"
target datalayout = "e-m:e-p270: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/tmp141jo6he.c'
source_filename = "/tmp/tmp141jo6he.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINTR = dso_local global i64 0, align 8
@errno = dso_local global i64 0, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp141jo6he.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINTR = dso_local global i64 0, align 8
@errno = dso_local global i64 0, align 8
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpc663tpw9.c'
source_filename = "/tmp/tmpc663tpw9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @idrnet_accept(i32 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
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%7 = load ptr, ptr %4, align 8
store ptr %7, ptr %5, align 8
store i32 0, ptr %6, align 4
%8 = load i32, ptr %3, align 4
%9 = load ptr, ptr %5, align 8
%10 = call i32 @accept(i32 noundef %8, ptr noundef %9, ptr noundef %6)
ret i32 %10
}
declare i32 @accept(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpc663tpw9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @idrnet_accept(i32 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
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%7 = load ptr, ptr %4, align 8
store ptr %7, ptr %5, align 8
store i32 0, ptr %6, align 4
%8 = load i32, ptr %3, align 4
%9 = load ptr, ptr %5, align 8
%10 = call i32 @accept(i32 noundef %8, ptr noundef %9, ptr noundef %6)
ret i32 %10
}
declare i32 @accept(i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6a_ttczd.c'
source_filename = "/tmp/tmp6a_ttczd.c"
target datalayout = "e-m:e-p270: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/tmp6a_ttczd.c"
target datalayout = "e-m:e-p270: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/tmpc0ppkajv.c'
source_filename = "/tmp/tmpc0ppkajv.c"
target datalayout = "e-m:e-p270: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/tmpc0ppkajv.c"
target datalayout = "e-m:e-p270: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/tmpsc0gcvtt.c'
source_filename = "/tmp/tmpsc0gcvtt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @foo() #0 {
%1 = call i32 @bar(i32 noundef 0)
%2 = call i32 @WINE_ERR(i32 noundef 0)
%3 = call i32 @WINE_WARN(i32 noundef 0)
ret void
}
declare i32 @bar(i32 noundef) #1
declare i32 @WINE_ERR(i32 noundef) #1
declare i32 @WINE_WARN(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsc0gcvtt.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @foo() #0 {
%1 = call i32 @bar(i32 noundef 0)
%2 = call i32 @WINE_ERR(i32 noundef 0)
%3 = call i32 @WINE_WARN(i32 noundef 0)
ret void
}
declare i32 @bar(i32 noundef) #1
declare i32 @WINE_ERR(i32 noundef) #1
declare i32 @WINE_WARN(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpawhll8rw.c'
source_filename = "/tmp/tmpawhll8rw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
@stdout = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ask_for(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = call i32 @printf(ptr noundef @.str, ptr noundef %5)
%7 = load i32, ptr @stdout, align 4
%8 = call i32 @fflush(i32 noundef %7)
%9 = load i32, ptr %4, align 4
%10 = call i32 @count(i32 noundef %9)
ret void
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @fflush(i32 noundef) #1
declare i32 @count(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpawhll8rw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
@stdout = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ask_for(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = call i32 @printf(ptr noundef @.str, ptr noundef %5)
%7 = load i32, ptr @stdout, align 4
%8 = call i32 @fflush(i32 noundef %7)
%9 = load i32, ptr %4, align 4
%10 = call i32 @count(i32 noundef %9)
ret void
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @fflush(i32 noundef) #1
declare i32 @count(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmptur_gr_i.c'
source_filename = "/tmp/tmptur_gr_i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"/proc/mounts\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @getMountPoint(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca [1024 x i8], align 16
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%9 = call ptr @openOrHang(ptr noundef @.str, ptr noundef @.str.1)
store ptr %9, ptr %8, align 8
%10 = load ptr, ptr %3, align 8
%11 = getelementptr inbounds i8, ptr %10, i64 0
store i8 0, ptr %11, align 1
br label %12
12: ; preds = %41, %29, %2
%13 = load ptr, ptr %8, align 8
%14 = call i32 @feof(ptr noundef %13)
%15 = icmp ne i32 %14, 0
%16 = xor i1 %15, true
br i1 %16, label %17, label %42
17: ; preds = %12
%18 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%19 = load ptr, ptr %8, align 8
%20 = call i64 @fgets(ptr noundef %18, i32 noundef 1024, ptr noundef %19)
%21 = icmp ne i64 %20, 0
br i1 %21, label %22, label %41
22: ; preds = %17
%23 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%24 = load ptr, ptr %4, align 8
%25 = load ptr, ptr %4, align 8
%26 = call i32 @strlen(ptr noundef %25)
%27 = call i64 @strncmp(ptr noundef %23, ptr noundef %24, i32 noundef %26)
%28 = icmp ne i64 %27, 0
br i1 %28, label %29, label %30
29: ; preds = %22
br label %12, !llvm.loop !6
30: ; preds = %22
%31 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%32 = call ptr @strchr(ptr noundef %31, i8 noundef signext 32)
store ptr %32, ptr %6, align 8
%33 = load ptr, ptr %6, align 8
%34 = getelementptr inbounds i8, ptr %33, i64 1
store ptr %34, ptr %6, align 8
%35 = load ptr, ptr %6, align 8
%36 = call ptr @strchr(ptr noundef %35, i8 noundef signext 32)
store ptr %36, ptr %7, align 8
%37 = load ptr, ptr %7, align 8
store i8 0, ptr %37, align 1
%38 = load ptr, ptr %3, align 8
%39 = load ptr, ptr %6, align 8
%40 = call i32 @strcat(ptr noundef %38, ptr noundef %39)
br label %42
41: ; preds = %17
br label %12, !llvm.loop !6
42: ; preds = %30, %12
%43 = load ptr, ptr %8, align 8
%44 = call i32 @fclose(ptr noundef %43)
ret void
}
declare ptr @openOrHang(ptr noundef, ptr noundef) #1
declare i32 @feof(ptr noundef) #1
declare i64 @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptur_gr_i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [13 x i8] c"/proc/mounts\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"r\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @getMountPoint(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca [1024 x i8], align 16
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%9 = call ptr @openOrHang(ptr noundef @.str, ptr noundef @.str.1)
store ptr %9, ptr %8, align 8
%10 = load ptr, ptr %3, align 8
%11 = getelementptr inbounds i8, ptr %10, i64 0
store i8 0, ptr %11, align 1
%12 = load ptr, ptr %8, align 8
%13 = call i32 @feof(ptr noundef %12)
%14 = icmp ne i32 %13, 0
%15 = xor i1 %14, true
br i1 %15, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %2
br label %16
16: ; preds = %.lr.ph, %.backedge
%17 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%18 = load ptr, ptr %8, align 8
%19 = call i64 @fgets(ptr noundef %17, i32 noundef 1024, ptr noundef %18)
%20 = icmp ne i64 %19, 0
br i1 %20, label %21, label %44
21: ; preds = %16
%22 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%23 = load ptr, ptr %4, align 8
%24 = load ptr, ptr %4, align 8
%25 = call i32 @strlen(ptr noundef %24)
%26 = call i64 @strncmp(ptr noundef %22, ptr noundef %23, i32 noundef %25)
%27 = icmp ne i64 %26, 0
br i1 %27, label %28, label %33
28: ; preds = %21
br label %.backedge
.backedge: ; preds = %28, %44
%29 = load ptr, ptr %8, align 8
%30 = call i32 @feof(ptr noundef %29)
%31 = icmp ne i32 %30, 0
%32 = xor i1 %31, true
br i1 %32, label %16, label %..loopexit_crit_edge, !llvm.loop !6
33: ; preds = %21
%34 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%35 = call ptr @strchr(ptr noundef %34, i8 noundef signext 32)
store ptr %35, ptr %6, align 8
%36 = load ptr, ptr %6, align 8
%37 = getelementptr inbounds i8, ptr %36, i64 1
store ptr %37, ptr %6, align 8
%38 = load ptr, ptr %6, align 8
%39 = call ptr @strchr(ptr noundef %38, i8 noundef signext 32)
store ptr %39, ptr %7, align 8
%40 = load ptr, ptr %7, align 8
store i8 0, ptr %40, align 1
%41 = load ptr, ptr %3, align 8
%42 = load ptr, ptr %6, align 8
%43 = call i32 @strcat(ptr noundef %41, ptr noundef %42)
br label %45
44: ; preds = %16
br label %.backedge
..loopexit_crit_edge: ; preds = %.backedge
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %2
br label %45
45: ; preds = %.loopexit, %33
%46 = load ptr, ptr %8, align 8
%47 = call i32 @fclose(ptr noundef %46)
ret void
}
declare ptr @openOrHang(ptr noundef, ptr noundef) #1
declare i32 @feof(ptr noundef) #1
declare i64 @fgets(ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare ptr @strchr(ptr noundef, i8 noundef signext) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpwn85k540.c'
source_filename = "/tmp/tmpwn85k540.c"
target datalayout = "e-m:e-p270: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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @get_kernel_addr() #0 {
%1 = alloca ptr, align 8
%2 = alloca i32, align 4
%3 = call i32 @mmap_syslog(ptr noundef %1, ptr noundef %2)
%4 = load ptr, ptr %1, align 8
%5 = load i32, ptr %2, align 4
%6 = call i64 @get_kernel_addr_xenial(ptr noundef %4, i32 noundef %5)
ret i64 %6
}
declare i32 @mmap_syslog(ptr noundef, ptr noundef) #1
declare i64 @get_kernel_addr_xenial(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/tmpwn85k540.c"
target datalayout = "e-m:e-p270: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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @get_kernel_addr() #0 {
%1 = alloca ptr, align 8
%2 = alloca i32, align 4
%3 = call i32 @mmap_syslog(ptr noundef %1, ptr noundef %2)
%4 = load ptr, ptr %1, align 8
%5 = load i32, ptr %2, align 4
%6 = call i64 @get_kernel_addr_xenial(ptr noundef %4, i32 noundef %5)
ret i64 %6
}
declare i32 @mmap_syslog(ptr noundef, ptr noundef) #1
declare i64 @get_kernel_addr_xenial(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/tmpu1__9xur.c'
source_filename = "/tmp/tmpu1__9xur.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @noreturn() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = call i32 @pthread_mutex_init(ptr noundef %1, ptr noundef null)
%4 = call i32 @pthread_cond_init(ptr noundef %2, ptr noundef null)
%5 = call i32 @cond_wait(ptr noundef %2, ptr noundef %1)
ret void
}
declare i32 @pthread_mutex_init(ptr noundef, ptr noundef) #1
declare i32 @pthread_cond_init(ptr noundef, ptr noundef) #1
declare i32 @cond_wait(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/tmpu1__9xur.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @noreturn() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = call i32 @pthread_mutex_init(ptr noundef %1, ptr noundef null)
%4 = call i32 @pthread_cond_init(ptr noundef %2, ptr noundef null)
%5 = call i32 @cond_wait(ptr noundef %2, ptr noundef %1)
ret void
}
declare i32 @pthread_mutex_init(ptr noundef, ptr noundef) #1
declare i32 @pthread_cond_init(ptr noundef, ptr noundef) #1
declare i32 @cond_wait(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/tmpu0f0eovk.c'
source_filename = "/tmp/tmpu0f0eovk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ap_quit(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 @ap_do_command_only(i32 noundef %3, i32 noundef 52231)
ret i32 %4
}
declare i32 @ap_do_command_only(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/tmpu0f0eovk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ap_quit(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 @ap_do_command_only(i32 noundef %3, i32 noundef 52231)
ret i32 %4
}
declare i32 @ap_do_command_only(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/tmp74g8kllp.c'
source_filename = "/tmp/tmp74g8kllp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @C() #0 {
%1 = call i32 @A(i32 noundef 2)
ret void
}
declare i32 @A(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp74g8kllp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @C() #0 {
%1 = call i32 @A(i32 noundef 2)
ret void
}
declare i32 @A(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpv0zdka41.c'
source_filename = "/tmp/tmpv0zdka41.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @heap_permute(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%8 = load i32, ptr %5, align 4
%9 = icmp eq i32 %8, 1
br i1 %9, label %10, label %15
10: ; preds = %3
%11 = load ptr, ptr %4, align 8
%12 = load ptr, ptr %11, align 8
%13 = load i32, ptr %6, align 4
%14 = call i32 @print(ptr noundef %12, i32 noundef %13)
br label %57
15: ; preds = %3
store i32 0, ptr %7, align 4
br label %16
16: ; preds = %53, %15
%17 = load i32, ptr %7, align 4
%18 = load i32, ptr %5, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %20, label %56
20: ; preds = %16
%21 = load ptr, ptr %4, align 8
%22 = load i32, ptr %5, align 4
%23 = sub nsw i32 %22, 1
%24 = load i32, ptr %6, align 4
call void @heap_permute(ptr noundef %21, i32 noundef %23, i32 noundef %24)
%25 = load i32, ptr %5, align 4
%26 = srem i32 %25, 2
%27 = icmp eq i32 %26, 1
br i1 %27, label %28, label %39
28: ; preds = %20
%29 = load ptr, ptr %4, align 8
%30 = load ptr, ptr %29, align 8
%31 = getelementptr inbounds i8, ptr %30, i64 0
%32 = load ptr, ptr %4, align 8
%33 = load ptr, ptr %32, align 8
%34 = load i32, ptr %5, align 4
%35 = sub nsw i32 %34, 1
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i8, ptr %33, i64 %36
%38 = call i32 @swap(ptr noundef %31, ptr noundef %37)
br label %52
39: ; preds = %20
%40 = load ptr, ptr %4, align 8
%41 = load ptr, ptr %40, align 8
%42 = load i32, ptr %7, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i8, ptr %41, i64 %43
%45 = load ptr, ptr %4, align 8
%46 = load ptr, ptr %45, align 8
%47 = load i32, ptr %5, align 4
%48 = sub nsw i32 %47, 1
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i8, ptr %46, i64 %49
%51 = call i32 @swap(ptr noundef %44, ptr noundef %50)
br label %52
52: ; preds = %39, %28
br label %53
53: ; preds = %52
%54 = load i32, ptr %7, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %7, align 4
br label %16, !llvm.loop !6
56: ; preds = %16
br label %57
57: ; preds = %56, %10
ret void
}
declare i32 @print(ptr noundef, i32 noundef) #1
declare i32 @swap(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/tmpv0zdka41.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @heap_permute(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%8 = load i32, ptr %5, align 4
%9 = icmp eq i32 %8, 1
br i1 %9, label %10, label %15
10: ; preds = %3
%11 = load ptr, ptr %4, align 8
%12 = load ptr, ptr %11, align 8
%13 = load i32, ptr %6, align 4
%14 = call i32 @print(ptr noundef %12, i32 noundef %13)
br label %59
15: ; preds = %3
store i32 0, ptr %7, align 4
%16 = load i32, ptr %7, align 4
%17 = load i32, ptr %5, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %.lr.ph, label %58
.lr.ph: ; preds = %15
br label %19
19: ; preds = %.lr.ph, %52
%20 = load ptr, ptr %4, align 8
%21 = load i32, ptr %5, align 4
%22 = sub nsw i32 %21, 1
%23 = load i32, ptr %6, align 4
call void @heap_permute(ptr noundef %20, i32 noundef %22, i32 noundef %23)
%24 = load i32, ptr %5, align 4
%25 = srem i32 %24, 2
%26 = icmp eq i32 %25, 1
br i1 %26, label %27, label %38
27: ; preds = %19
%28 = load ptr, ptr %4, align 8
%29 = load ptr, ptr %28, align 8
%30 = getelementptr inbounds i8, ptr %29, i64 0
%31 = load ptr, ptr %4, align 8
%32 = load ptr, ptr %31, align 8
%33 = load i32, ptr %5, align 4
%34 = sub nsw i32 %33, 1
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8, ptr %32, i64 %35
%37 = call i32 @swap(ptr noundef %30, ptr noundef %36)
br label %51
38: ; preds = %19
%39 = load ptr, ptr %4, align 8
%40 = load ptr, ptr %39, align 8
%41 = load i32, ptr %7, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i8, ptr %40, i64 %42
%44 = load ptr, ptr %4, align 8
%45 = load ptr, ptr %44, align 8
%46 = load i32, ptr %5, align 4
%47 = sub nsw i32 %46, 1
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i8, ptr %45, i64 %48
%50 = call i32 @swap(ptr noundef %43, ptr noundef %49)
br label %51
51: ; preds = %38, %27
br label %52
52: ; preds = %51
%53 = load i32, ptr %7, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %7, align 4
%55 = load i32, ptr %7, align 4
%56 = load i32, ptr %5, align 4
%57 = icmp slt i32 %55, %56
br i1 %57, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %52
br label %58
58: ; preds = %._crit_edge, %15
br label %59
59: ; preds = %58, %10
ret void
}
declare i32 @print(ptr noundef, i32 noundef) #1
declare i32 @swap(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/tmpxvh38_w4.c'
source_filename = "/tmp/tmpxvh38_w4.c"
target datalayout = "e-m:e-p270: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/tmpxvh38_w4.c"
target datalayout = "e-m:e-p270: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/tmptg8pc1qe.c'
source_filename = "/tmp/tmptg8pc1qe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @isbetween(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca [3 x x86_fp80], align 16
%9 = alloca [3 x x86_fp80], align 16
%10 = alloca [3 x x86_fp80], align 16
%11 = alloca [3 x x86_fp80], align 16
%12 = alloca x86_fp80, align 16
%13 = alloca x86_fp80, align 16
%14 = alloca x86_fp80, align 16
%15 = alloca x86_fp80, align 16
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%16 = load ptr, ptr %7, align 8
%17 = getelementptr inbounds x86_fp80, ptr %16, i64 0
%18 = load x86_fp80, ptr %17, align 16
%19 = load ptr, ptr %5, align 8
%20 = getelementptr inbounds x86_fp80, ptr %19, i64 0
%21 = load x86_fp80, ptr %20, align 16
%22 = fsub x86_fp80 %18, %21
%23 = call double @fabsl(x86_fp80 noundef %22)
%24 = fcmp olt double %23, 0x3E7AD7F29ABCAF48
br i1 %24, label %25, label %36
25: ; preds = %3
%26 = load ptr, ptr %7, align 8
%27 = getelementptr inbounds x86_fp80, ptr %26, i64 1
%28 = load x86_fp80, ptr %27, align 16
%29 = load ptr, ptr %5, align 8
%30 = getelementptr inbounds x86_fp80, ptr %29, i64 1
%31 = load x86_fp80, ptr %30, align 16
%32 = fsub x86_fp80 %28, %31
%33 = call double @fabsl(x86_fp80 noundef %32)
%34 = fcmp olt double %33, 0x3E7AD7F29ABCAF48
br i1 %34, label %35, label %36
35: ; preds = %25
store i32 1, ptr %4, align 4
br label %109
36: ; preds = %25, %3
%37 = load ptr, ptr %7, align 8
%38 = getelementptr inbounds x86_fp80, ptr %37, i64 0
%39 = load x86_fp80, ptr %38, align 16
%40 = load ptr, ptr %6, align 8
%41 = getelementptr inbounds x86_fp80, ptr %40, i64 0
%42 = load x86_fp80, ptr %41, align 16
%43 = fsub x86_fp80 %39, %42
%44 = call double @fabsl(x86_fp80 noundef %43)
%45 = fcmp olt double %44, 0x3E7AD7F29ABCAF48
br i1 %45, label %46, label %57
46: ; preds = %36
%47 = load ptr, ptr %7, align 8
%48 = getelementptr inbounds x86_fp80, ptr %47, i64 1
%49 = load x86_fp80, ptr %48, align 16
%50 = load ptr, ptr %6, align 8
%51 = getelementptr inbounds x86_fp80, ptr %50, i64 1
%52 = load x86_fp80, ptr %51, align 16
%53 = fsub x86_fp80 %49, %52
%54 = call double @fabsl(x86_fp80 noundef %53)
%55 = fcmp olt double %54, 0x3E7AD7F29ABCAF48
br i1 %55, label %56, label %57
56: ; preds = %46
store i32 1, ptr %4, align 4
br label %109
57: ; preds = %46, %36
%58 = load ptr, ptr %5, align 8
%59 = getelementptr inbounds [3 x x86_fp80], ptr %8, i64 0, i64 0
%60 = call i32 @_to_cart(ptr noundef %58, ptr noundef %59)
%61 = load ptr, ptr %6, align 8
%62 = getelementptr inbounds [3 x x86_fp80], ptr %9, i64 0, i64 0
%63 = call i32 @_to_cart(ptr noundef %61, ptr noundef %62)
%64 = load ptr, ptr %7, align 8
%65 = getelementptr inbounds [3 x x86_fp80], ptr %10, i64 0, i64 0
%66 = call i32 @_to_cart(ptr noundef %64, ptr noundef %65)
%67 = getelementptr inbounds [3 x x86_fp80], ptr %8, i64 0, i64 0
%68 = getelementptr inbounds [3 x x86_fp80], ptr %9, i64 0, i64 0
%69 = getelementptr inbounds [3 x x86_fp80], ptr %11, i64 0, i64 0
%70 = call i32 @_cross_prod(ptr noundef %67, ptr noundef %68, ptr noundef %69)
%71 = getelementptr inbounds [3 x x86_fp80], ptr %11, i64 0, i64 0
%72 = load x86_fp80, ptr %71, align 16
%73 = getelementptr inbounds [3 x x86_fp80], ptr %10, i64 0, i64 0
%74 = load x86_fp80, ptr %73, align 16
%75 = getelementptr inbounds [3 x x86_fp80], ptr %11, i64 0, i64 1
%76 = load x86_fp80, ptr %75, align 16
%77 = getelementptr inbounds [3 x x86_fp80], ptr %10, i64 0, i64 1
%78 = load x86_fp80, ptr %77, align 16
%79 = fmul x86_fp80 %76, %78
%80 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %72, x86_fp80 %74, x86_fp80 %79)
%81 = getelementptr inbounds [3 x x86_fp80], ptr %11, i64 0, i64 2
%82 = load x86_fp80, ptr %81, align 16
%83 = getelementptr inbounds [3 x x86_fp80], ptr %10, i64 0, i64 2
%84 = load x86_fp80, ptr %83, align 16
%85 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %82, x86_fp80 %84, x86_fp80 %80)
store x86_fp80 %85, ptr %12, align 16
%86 = load x86_fp80, ptr %12, align 16
%87 = call double @fabsl(x86_fp80 noundef %86)
%88 = fcmp ogt double %87, 0x3E7AD7F29ABCAF48
br i1 %88, label %89, label %90
89: ; preds = %57
store i32 0, ptr %4, align 4
br label %109
90: ; preds = %57
%91 = getelementptr inbounds [3 x x86_fp80], ptr %8, i64 0, i64 0
%92 = getelementptr inbounds [3 x x86_fp80], ptr %10, i64 0, i64 0
%93 = call x86_fp80 @angle_betw_0pi(ptr noundef %91, ptr noundef %92)
store x86_fp80 %93, ptr %13, align 16
%94 = getelementptr inbounds [3 x x86_fp80], ptr %9, i64 0, i64 0
%95 = getelementptr inbounds [3 x x86_fp80], ptr %10, i64 0, i64 0
%96 = call x86_fp80 @angle_betw_0pi(ptr noundef %94, ptr noundef %95)
store x86_fp80 %96, ptr %14, align 16
%97 = getelementptr inbounds [3 x x86_fp80], ptr %8, i64 0, i64 0
%98 = getelementptr inbounds [3 x x86_fp80], ptr %9, i64 0, i64 0
%99 = call x86_fp80 @angle_betw_0pi(ptr noundef %97, ptr noundef %98)
store x86_fp80 %99, ptr %15, align 16
%100 = load x86_fp80, ptr %13, align 16
%101 = load x86_fp80, ptr %15, align 16
%102 = fcmp ole x86_fp80 %100, %101
br i1 %102, label %103, label %108
103: ; preds = %90
%104 = load x86_fp80, ptr %14, align 16
%105 = load x86_fp80, ptr %15, align 16
%106 = fcmp ole x86_fp80 %104, %105
br i1 %106, label %107, label %108
107: ; preds = %103
store i32 1, ptr %4, align 4
br label %109
108: ; preds = %103, %90
store i32 0, ptr %4, align 4
br label %109
109: ; preds = %108, %107, %89, %56, %35
%110 = load i32, ptr %4, align 4
ret i32 %110
}
declare double @fabsl(x86_fp80 noundef) #1
declare i32 @_to_cart(ptr noundef, ptr noundef) #1
declare i32 @_cross_prod(ptr noundef, ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare x86_fp80 @llvm.fmuladd.f80(x86_fp80, x86_fp80, x86_fp80) #2
declare x86_fp80 @angle_betw_0pi(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptg8pc1qe.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @isbetween(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca [3 x x86_fp80], align 16
%9 = alloca [3 x x86_fp80], align 16
%10 = alloca [3 x x86_fp80], align 16
%11 = alloca [3 x x86_fp80], align 16
%12 = alloca x86_fp80, align 16
%13 = alloca x86_fp80, align 16
%14 = alloca x86_fp80, align 16
%15 = alloca x86_fp80, align 16
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%16 = load ptr, ptr %7, align 8
%17 = getelementptr inbounds x86_fp80, ptr %16, i64 0
%18 = load x86_fp80, ptr %17, align 16
%19 = load ptr, ptr %5, align 8
%20 = getelementptr inbounds x86_fp80, ptr %19, i64 0
%21 = load x86_fp80, ptr %20, align 16
%22 = fsub x86_fp80 %18, %21
%23 = call double @fabsl(x86_fp80 noundef %22)
%24 = fcmp olt double %23, 0x3E7AD7F29ABCAF48
br i1 %24, label %25, label %36
25: ; preds = %3
%26 = load ptr, ptr %7, align 8
%27 = getelementptr inbounds x86_fp80, ptr %26, i64 1
%28 = load x86_fp80, ptr %27, align 16
%29 = load ptr, ptr %5, align 8
%30 = getelementptr inbounds x86_fp80, ptr %29, i64 1
%31 = load x86_fp80, ptr %30, align 16
%32 = fsub x86_fp80 %28, %31
%33 = call double @fabsl(x86_fp80 noundef %32)
%34 = fcmp olt double %33, 0x3E7AD7F29ABCAF48
br i1 %34, label %35, label %36
35: ; preds = %25
store i32 1, ptr %4, align 4
br label %109
36: ; preds = %25, %3
%37 = load ptr, ptr %7, align 8
%38 = getelementptr inbounds x86_fp80, ptr %37, i64 0
%39 = load x86_fp80, ptr %38, align 16
%40 = load ptr, ptr %6, align 8
%41 = getelementptr inbounds x86_fp80, ptr %40, i64 0
%42 = load x86_fp80, ptr %41, align 16
%43 = fsub x86_fp80 %39, %42
%44 = call double @fabsl(x86_fp80 noundef %43)
%45 = fcmp olt double %44, 0x3E7AD7F29ABCAF48
br i1 %45, label %46, label %57
46: ; preds = %36
%47 = load ptr, ptr %7, align 8
%48 = getelementptr inbounds x86_fp80, ptr %47, i64 1
%49 = load x86_fp80, ptr %48, align 16
%50 = load ptr, ptr %6, align 8
%51 = getelementptr inbounds x86_fp80, ptr %50, i64 1
%52 = load x86_fp80, ptr %51, align 16
%53 = fsub x86_fp80 %49, %52
%54 = call double @fabsl(x86_fp80 noundef %53)
%55 = fcmp olt double %54, 0x3E7AD7F29ABCAF48
br i1 %55, label %56, label %57
56: ; preds = %46
store i32 1, ptr %4, align 4
br label %109
57: ; preds = %46, %36
%58 = load ptr, ptr %5, align 8
%59 = getelementptr inbounds [3 x x86_fp80], ptr %8, i64 0, i64 0
%60 = call i32 @_to_cart(ptr noundef %58, ptr noundef %59)
%61 = load ptr, ptr %6, align 8
%62 = getelementptr inbounds [3 x x86_fp80], ptr %9, i64 0, i64 0
%63 = call i32 @_to_cart(ptr noundef %61, ptr noundef %62)
%64 = load ptr, ptr %7, align 8
%65 = getelementptr inbounds [3 x x86_fp80], ptr %10, i64 0, i64 0
%66 = call i32 @_to_cart(ptr noundef %64, ptr noundef %65)
%67 = getelementptr inbounds [3 x x86_fp80], ptr %8, i64 0, i64 0
%68 = getelementptr inbounds [3 x x86_fp80], ptr %9, i64 0, i64 0
%69 = getelementptr inbounds [3 x x86_fp80], ptr %11, i64 0, i64 0
%70 = call i32 @_cross_prod(ptr noundef %67, ptr noundef %68, ptr noundef %69)
%71 = getelementptr inbounds [3 x x86_fp80], ptr %11, i64 0, i64 0
%72 = load x86_fp80, ptr %71, align 16
%73 = getelementptr inbounds [3 x x86_fp80], ptr %10, i64 0, i64 0
%74 = load x86_fp80, ptr %73, align 16
%75 = getelementptr inbounds [3 x x86_fp80], ptr %11, i64 0, i64 1
%76 = load x86_fp80, ptr %75, align 16
%77 = getelementptr inbounds [3 x x86_fp80], ptr %10, i64 0, i64 1
%78 = load x86_fp80, ptr %77, align 16
%79 = fmul x86_fp80 %76, %78
%80 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %72, x86_fp80 %74, x86_fp80 %79)
%81 = getelementptr inbounds [3 x x86_fp80], ptr %11, i64 0, i64 2
%82 = load x86_fp80, ptr %81, align 16
%83 = getelementptr inbounds [3 x x86_fp80], ptr %10, i64 0, i64 2
%84 = load x86_fp80, ptr %83, align 16
%85 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %82, x86_fp80 %84, x86_fp80 %80)
store x86_fp80 %85, ptr %12, align 16
%86 = load x86_fp80, ptr %12, align 16
%87 = call double @fabsl(x86_fp80 noundef %86)
%88 = fcmp ogt double %87, 0x3E7AD7F29ABCAF48
br i1 %88, label %89, label %90
89: ; preds = %57
store i32 0, ptr %4, align 4
br label %109
90: ; preds = %57
%91 = getelementptr inbounds [3 x x86_fp80], ptr %8, i64 0, i64 0
%92 = getelementptr inbounds [3 x x86_fp80], ptr %10, i64 0, i64 0
%93 = call x86_fp80 @angle_betw_0pi(ptr noundef %91, ptr noundef %92)
store x86_fp80 %93, ptr %13, align 16
%94 = getelementptr inbounds [3 x x86_fp80], ptr %9, i64 0, i64 0
%95 = getelementptr inbounds [3 x x86_fp80], ptr %10, i64 0, i64 0
%96 = call x86_fp80 @angle_betw_0pi(ptr noundef %94, ptr noundef %95)
store x86_fp80 %96, ptr %14, align 16
%97 = getelementptr inbounds [3 x x86_fp80], ptr %8, i64 0, i64 0
%98 = getelementptr inbounds [3 x x86_fp80], ptr %9, i64 0, i64 0
%99 = call x86_fp80 @angle_betw_0pi(ptr noundef %97, ptr noundef %98)
store x86_fp80 %99, ptr %15, align 16
%100 = load x86_fp80, ptr %13, align 16
%101 = load x86_fp80, ptr %15, align 16
%102 = fcmp ole x86_fp80 %100, %101
br i1 %102, label %103, label %108
103: ; preds = %90
%104 = load x86_fp80, ptr %14, align 16
%105 = load x86_fp80, ptr %15, align 16
%106 = fcmp ole x86_fp80 %104, %105
br i1 %106, label %107, label %108
107: ; preds = %103
store i32 1, ptr %4, align 4
br label %109
108: ; preds = %103, %90
store i32 0, ptr %4, align 4
br label %109
109: ; preds = %108, %107, %89, %56, %35
%110 = load i32, ptr %4, align 4
ret i32 %110
}
declare double @fabsl(x86_fp80 noundef) #1
declare i32 @_to_cart(ptr noundef, ptr noundef) #1
declare i32 @_cross_prod(ptr noundef, ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare x86_fp80 @llvm.fmuladd.f80(x86_fp80, x86_fp80, x86_fp80) #2
declare x86_fp80 @angle_betw_0pi(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpn7km3zbq.c'
source_filename = "/tmp/tmpn7km3zbq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SYS_open = dso_local global i32 0, align 4
@O_RDONLY = dso_local global i32 0, align 4
@SYS_read = dso_local global i32 0, align 4
@SYS_close = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printID(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca [1048576 x i8], align 16
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca [1000 x i8], align 16
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%10 = load i32, ptr @SYS_open, align 4
%11 = load ptr, ptr %4, align 8
%12 = load i32, ptr @O_RDONLY, align 4
%13 = call i32 (i32, ...) @syscall(i32 noundef %10, ptr noundef %11, i32 noundef %12)
store i32 %13, ptr %6, align 4
%14 = load i32, ptr @SYS_read, align 4
%15 = load i32, ptr %6, align 4
%16 = getelementptr inbounds [1048576 x i8], ptr %5, i64 0, i64 0
%17 = call i32 (i32, ...) @syscall(i32 noundef %14, i32 noundef %15, ptr noundef %16, i64 noundef 1048576)
%18 = getelementptr inbounds [1048576 x i8], ptr %5, i64 0, i64 0
store ptr %18, ptr %7, align 8
br label %19
19: ; preds = %65, %2
%20 = load ptr, ptr %7, align 8
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp ne i32 %22, 0
br i1 %23, label %24, label %27
24: ; preds = %19
%25 = load ptr, ptr %7, align 8
%26 = icmp ne ptr %25, null
br label %27
27: ; preds = %24, %19
%28 = phi i1 [ false, %19 ], [ %26, %24 ]
br i1 %28, label %29, label %68
29: ; preds = %27
store i32 0, ptr %8, align 4
br label %30
30: ; preds = %42, %29
%31 = load ptr, ptr %7, align 8
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = icmp ne i32 %33, 0
br i1 %34, label %35, label %40
35: ; preds = %30
%36 = load ptr, ptr %7, align 8
%37 = load i8, ptr %36, align 1
%38 = sext i8 %37 to i32
%39 = icmp ne i32 %38, 10
br label %40
40: ; preds = %35, %30
%41 = phi i1 [ false, %30 ], [ %39, %35 ]
br i1 %41, label %42, label %52
42: ; preds = %40
%43 = load ptr, ptr %7, align 8
%44 = load i8, ptr %43, align 1
%45 = load i32, ptr %8, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [1000 x i8], ptr %9, i64 0, i64 %46
store i8 %44, ptr %47, align 1
%48 = load ptr, ptr %7, align 8
%49 = getelementptr inbounds i8, ptr %48, i32 1
store ptr %49, ptr %7, align 8
%50 = load i32, ptr %8, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %8, align 4
br label %30, !llvm.loop !6
52: ; preds = %40
%53 = load i32, ptr %8, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [1000 x i8], ptr %9, i64 0, i64 %54
store i8 10, ptr %55, align 1
%56 = load i32, ptr %8, align 4
%57 = add nsw i32 %56, 1
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds [1000 x i8], ptr %9, i64 0, i64 %58
store i8 0, ptr %59, align 1
%60 = getelementptr inbounds [1000 x i8], ptr %9, i64 0, i64 0
%61 = load i32, ptr %3, align 4
%62 = call i64 @findAndPrint(ptr noundef %60, i32 noundef %61)
%63 = icmp ne i64 %62, 0
br i1 %63, label %64, label %65
64: ; preds = %52
br label %68
65: ; preds = %52
%66 = load ptr, ptr %7, align 8
%67 = getelementptr inbounds i8, ptr %66, i32 1
store ptr %67, ptr %7, align 8
br label %19, !llvm.loop !8
68: ; preds = %64, %27
%69 = load i32, ptr @SYS_close, align 4
%70 = load i32, ptr %6, align 4
%71 = call i32 (i32, ...) @syscall(i32 noundef %69, i32 noundef %70)
ret void
}
declare i32 @syscall(i32 noundef, ...) #1
declare i64 @findAndPrint(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/tmpn7km3zbq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SYS_open = dso_local global i32 0, align 4
@O_RDONLY = dso_local global i32 0, align 4
@SYS_read = dso_local global i32 0, align 4
@SYS_close = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printID(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca [1048576 x i8], align 16
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca [1000 x i8], align 16
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%10 = load i32, ptr @SYS_open, align 4
%11 = load ptr, ptr %4, align 8
%12 = load i32, ptr @O_RDONLY, align 4
%13 = call i32 (i32, ...) @syscall(i32 noundef %10, ptr noundef %11, i32 noundef %12)
store i32 %13, ptr %6, align 4
%14 = load i32, ptr @SYS_read, align 4
%15 = load i32, ptr %6, align 4
%16 = getelementptr inbounds [1048576 x i8], ptr %5, i64 0, i64 0
%17 = call i32 (i32, ...) @syscall(i32 noundef %14, i32 noundef %15, ptr noundef %16, i64 noundef 1048576)
%18 = getelementptr inbounds [1048576 x i8], ptr %5, i64 0, i64 0
store ptr %18, ptr %7, align 8
br label %19
19: ; preds = %65, %2
%20 = load ptr, ptr %7, align 8
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = icmp ne i32 %22, 0
br i1 %23, label %24, label %27
24: ; preds = %19
%25 = load ptr, ptr %7, align 8
%26 = icmp ne ptr %25, null
br label %27
27: ; preds = %24, %19
%28 = phi i1 [ false, %19 ], [ %26, %24 ]
br i1 %28, label %29, label %.loopexit
29: ; preds = %27
store i32 0, ptr %8, align 4
br label %30
30: ; preds = %42, %29
%31 = load ptr, ptr %7, align 8
%32 = load i8, ptr %31, align 1
%33 = sext i8 %32 to i32
%34 = icmp ne i32 %33, 0
br i1 %34, label %35, label %40
35: ; preds = %30
%36 = load ptr, ptr %7, align 8
%37 = load i8, ptr %36, align 1
%38 = sext i8 %37 to i32
%39 = icmp ne i32 %38, 10
br label %40
40: ; preds = %35, %30
%41 = phi i1 [ false, %30 ], [ %39, %35 ]
br i1 %41, label %42, label %52
42: ; preds = %40
%43 = load ptr, ptr %7, align 8
%44 = load i8, ptr %43, align 1
%45 = load i32, ptr %8, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [1000 x i8], ptr %9, i64 0, i64 %46
store i8 %44, ptr %47, align 1
%48 = load ptr, ptr %7, align 8
%49 = getelementptr inbounds i8, ptr %48, i32 1
store ptr %49, ptr %7, align 8
%50 = load i32, ptr %8, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %8, align 4
br label %30, !llvm.loop !6
52: ; preds = %40
%53 = load i32, ptr %8, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [1000 x i8], ptr %9, i64 0, i64 %54
store i8 10, ptr %55, align 1
%56 = load i32, ptr %8, align 4
%57 = add nsw i32 %56, 1
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds [1000 x i8], ptr %9, i64 0, i64 %58
store i8 0, ptr %59, align 1
%60 = getelementptr inbounds [1000 x i8], ptr %9, i64 0, i64 0
%61 = load i32, ptr %3, align 4
%62 = call i64 @findAndPrint(ptr noundef %60, i32 noundef %61)
%63 = icmp ne i64 %62, 0
br i1 %63, label %64, label %65
64: ; preds = %52
br label %68
65: ; preds = %52
%66 = load ptr, ptr %7, align 8
%67 = getelementptr inbounds i8, ptr %66, i32 1
store ptr %67, ptr %7, align 8
br label %19, !llvm.loop !8
.loopexit: ; preds = %27
br label %68
68: ; preds = %.loopexit, %64
%69 = load i32, ptr @SYS_close, align 4
%70 = load i32, ptr %6, align 4
%71 = call i32 (i32, ...) @syscall(i32 noundef %69, i32 noundef %70)
ret void
}
declare i32 @syscall(i32 noundef, ...) #1
declare i64 @findAndPrint(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/tmpmqwcu2j1.c'
source_filename = "/tmp/tmpmqwcu2j1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9831 x i8] c"/Row 0 def\0A/Col 0 def\0A/DayNumber 0 def\0A/LM 60 def\0A/RM 780 def\0A/TM 550 def\0A/BM 50 def\0A\0A%------------------------------------------------------------------\0A% Utility routines are up here\0A\0A/Rectangle {\0A newpath 4 2 roll m exch dup 3 1 roll 0 rl 0 exch rl neg 0\0A rl closepath\0A} def\0A/DrawBox { slw Rectangle stroke 1 slw } def\0A/ColToX { BoxWidth mul LM add } def\0A/RowToY { 4 exch sub BoxHeight mul BM add } def\0A/DaysOfWeek {\0A FDOW 0 eq {\0A [(Sun) (Mon) (Tue) (Wed) (Thu) (Fri) (Sat)]\0A } {\0A [(Mon) (Tue) (Wed) (Thu) (Fri) (Sat) (Sun)]\0A } ifelse\0A} def\0A\0A%------------------------------------------------------------------\0A\0A/InitialisePage {\0A /FDOW edef % First day of week; 1 = Mon, 0 = Sun\0A /JpilotVersion edef % Jpilot version string\0A /TodaysDate edef % String for date of printing\0A /FirstDay edef % Day of 1st of month (0=Sun, 1=Mon...)\0A /MonthName edef % Month/year string\0A %----------------------------------------------------------\0A % Orient page and scale to fit paper size\0A initgraphics\0A A4Y ScaleY mul 0 translate\0A 90 rotate\0A ScaleX ScaleY Min dup scale\0A\0A %----------------------------------------------------------\0A % Draw various headings\0A /Helvetica-Bold findfont fontsize 3 mul scalefont setfont\0A LM TM 30 sub RM MonthName CenterText\0A /Helvetica findfont fontsize 0.8 mul scalefont setfont\0A LM TM 30 sub m (Printed on: ) show TodaysDate show\0A RM TM 30 sub JpilotVersion RightText\0A\0A %----------------------------------------------------------\0A % Now draw the seven days of week across top\0A /X LM def\0A /Y TM 60 sub def\0A /BoxWidth RM LM sub 7 div def\0A /BoxHeight Y BM sub 5 div def\0A /Helvetica-Bold findfont 16 scalefont setfont\0A DaysOfWeek\0A {\0A /DayName edef\0A 0.5 setgray X Y BoxWidth 20 Rectangle fill\0A 0 setgray X Y BoxWidth 20 1 DrawBox\0A 1 setgray X Y 3 add X BoxWidth add DayName CenterText\0A /X X BoxWidth add def\0A } forall\0A 0 setgray\0A\0A %----------------------------------------------------------\0A % Now draw all the empty, slightly gray boxes that are the\0A % backdrop\0A\0A 0 1 6 {\0A /Col edef\0A 0 1 4 {\0A /Row edef\0A Col ColToX Row RowToY BoxWidth BoxHeight Rectangle\0A gsave 0.95 setgray fill grestore 0 setgray stroke\0A } for\0A } for\0A /Col FirstDay FDOW 1 add sub def\0A Col -2 eq { /Col 5 def } if\0A /Row 0 def\0A gsave\0A} def\0A\0A%------------------------------------------------------------------\0A\0A/NextDay {\0A grestore gsave % This copes with a changing clipping path\0A /DayNumber DayNumber 1 add def\0A /Col Col 1 add def\0A Col 7 eq { \0A /Row Row 1 add def /Col 0 def \0A Row 5 eq { /Row 0 def } if\0A } if\0A %----------------------------------------------------------\0A % First box the thing off in white, and set a clipping path\0A Col ColToX Row RowToY BoxWidth BoxHeight Rectangle\0A gsave 1 setgray fill grestore 0 setgray stroke\0A\0A Col ColToX 1 add Row RowToY 1 add BoxWidth 2 sub BoxHeight\0A 2 sub Rectangle clip\0A\0A %----------------------------------------------------------\0A % Then put up the large number for the day...\0A /Helvetica-Bold findfont fontsize 2 mul scalefont setfont\0A Col ColToX 3 add\0A Row RowToY BoxHeight fontsize 2 mul 1 add sub add m\0A DayNumber nstr cvs show\0A\0A %----------------------------------------------------------\0A % Finally, set variables for the items\0A /X Col ColToX 3 add def\0A /Y Row RowToY BoxHeight fontsize sub 2 sub add def\0A /Ytop2 Row RowToY BoxHeight fontsize 3 mul sub add def\0A /fsize fontsize 0.8 mul def\0A} def\0A\0A%------------------------------------------------------------------\0A% 'spacify' routine to replace line-feeds with spaces in strings\0A% passed in - places string back on stack where it came from.\0A\0A/spacify {\0A /LF 10 def\0A /SP 32 def\0A\0A /String edef\0A\0A 0 1 String length 1 sub {\0A /I edef\0A String I get LF eq {\0A String I SP put\0A } if\0A } for\0A String\0A} def\0A\0A%------------------------------------------------------------------\0A% Move onto the next line\0A\0A/incY { /X X_LM def /Y Y fsize sub def } def\0A\0A%------------------------------------------------------------------\0A% This routine will do automatic line-breaking of the item text, so\0A% that as much of it as possible is visible.\0A%\0A% Arguments are: 'Paragraph Y para'\0A\0A/para {\0A /RMpara X PrintBoxWidth add def\0A /LMpara X def\0A /Y edef\0A spacify\0A /Paragraph edef\0A /SpaceW ( ) stringwidth pop def\0A RMpara LMpara sub Paragraph stringwidth pop gt\0A {\0A %----------------------------------------------\0A % The whole paragraph fits on one line - so\0A % just print it!\0A %----------------------------------------------\0A LMpara Y m Paragraph show\0A } {\0A %----------------------------------------------\0A % Have to do our clever formatting\0A %----------------------------------------------\0A /X LMpara def\0A /I 0 def\0A {\0A Paragraph ( ) search\0A {\0A %--------------------------------------------\0A % Found a space - so check where to print it.\0A %--------------------------------------------\0A dup\0A stringwidth pop /SW edef\0A SW RMpara X sub gt { /I I 1 add def I 2 eq { exit } if incY } if\0A X Y m show\0A pop\0A /X X SW SpaceW add add def\0A /Paragraph edef\0A } {\0A %----------------------------------------\0A % No space. Print rest of string and exit\0A %----------------------------------------\0A RMpara X sub Paragraph stringwidth pop lt\0A { /I I 1 add def I 2 eq { exit } if incY } if\0A X Y m Paragraph show\0A pop\0A exit\0A } ifelse\0A } loop\0A } ifelse\0A} def\0A\0A%------------------------------------------------------------------\0A% This procedure prints an item\0A\0A/TimedItem {\0A /ApptText edef\0A Y Ytop2 gt { /Y Ytop2 def } if\0A /Helvetica-Oblique findfont fsize scalefont setfont\0A X Y m show\0A /Helvetica-ISOLatin1 findfont fsize scalefont setfont\0A /X_LM X def\0A /X X 4.2 fsize mul add def\0A /PrintBoxWidth BoxWidth X X_LM sub sub 3 sub def\0A ApptText Y para\0A incY\0A} def\0A\0A/UntimedItem {\0A /ApptText edef\0A /Helvetica-ISOLatin1 findfont fsize scalefont setfont\0A /X_LM_save X def\0A /X X 3 fsize mul add def\0A /X_LM X def\0A /PrintBoxWidth BoxWidth X X_LM_save sub sub 3 sub def\0A ApptText Y para\0A /X_LM X_LM_save def\0A incY\0A} def\0A\0A%------------------------------------------------------------------\0A\0A/SmallMonth {\0A grestore gsave % This copes with a changing clipping path\0A /S_FDOM edef\0A /NumDays edef\0A /MonthName edef\0A /S_row edef\0A /S_col edef\0A\0A /X1 S_col ColToX def\0A /X2 S_col 1 add ColToX def\0A /Y1 S_row RowToY def\0A /Y2 S_row 1 sub RowToY def\0A /SmallBoxWidth .125 BoxWidth mul def\0A /SmallLeftMargin X1 .16 BoxWidth mul add def\0A /Helvetica-Bold findfont 10 scalefont setfont \0A X1 Y2 12 sub X2 MonthName CenterText\0A /Helvetica-Bold findfont 8 scalefont setfont \0A /X SmallLeftMargin def\0A /DayName 1 string def\0A DaysOfWeek\0A {\0A 0 get DayName 0 3 2 roll put\0A X S_row 1 sub RowToY 24 sub DayName RightText\0A /X X SmallBoxWidth add def\0A } forall\0A /Helvetica findfont 8 scalefont setfont \0A /SmallRow 0 def\0A /SmallCol S_FDOM FDOW sub def\0A SmallCol FDOW lt { /SmallCol SmallCol 7 add 7 mod def } if\0A 1 1 NumDays {\0A /Day edef\0A SmallLeftMargin SmallCol SmallBoxWidth mul add\0A Y1 4 SmallRow sub 11 mul 10 add add\0A Day nstr cvs RightText\0A /SmallCol SmallCol 1 add def\0A SmallCol 7 ge {\0A /SmallCol 0 def\0A /SmallRow SmallRow 1 add def\0A SmallRow 4 gt { /SmallRow 0 def } if\0A } if\0A } for\0A} def\0A\0A%------------------------------------------------------------------\0A\0A/SmallMonths {\0A /NumDays2 edef\0A /FDOM2 edef\0A /MonthName2 edef\0A /NumDays1 edef\0A /FDOM1 edef\0A /MonthName1 edef\0A\0A Col 5 lt {\0A Row 0 ne {\0A 5 4 MonthName1 NumDays1 FDOM1 SmallMonth\0A 6 4 MonthName2 NumDays2 FDOM2 SmallMonth\0A } {\0A Col 2 add 0 MonthName1 NumDays1 FDOM1 SmallMonth\0A Col 3 add 0 MonthName2 NumDays2 FDOM2 SmallMonth\0A } ifelse\0A } {\0A Row 4 eq {\0A 0 0 MonthName1 NumDays1 FDOM1 SmallMonth\0A 1 0 MonthName2 NumDays2 FDOM2 SmallMonth\0A } {\0A 5 4 MonthName1 NumDays1 FDOM1 SmallMonth\0A 6 4 MonthName2 NumDays2 FDOM2 SmallMonth\0A } ifelse\0A } ifelse\0A} def\0A\0A%------------------------------------------------------------------\0A% This is the end of the header\0A%------------------------------------------------------------------\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_month_header(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
store ptr @.str, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i32 @fputs(ptr noundef %4, ptr noundef %5)
ret void
}
declare i32 @fputs(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/tmpmqwcu2j1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9831 x i8] c"/Row 0 def\0A/Col 0 def\0A/DayNumber 0 def\0A/LM 60 def\0A/RM 780 def\0A/TM 550 def\0A/BM 50 def\0A\0A%------------------------------------------------------------------\0A% Utility routines are up here\0A\0A/Rectangle {\0A newpath 4 2 roll m exch dup 3 1 roll 0 rl 0 exch rl neg 0\0A rl closepath\0A} def\0A/DrawBox { slw Rectangle stroke 1 slw } def\0A/ColToX { BoxWidth mul LM add } def\0A/RowToY { 4 exch sub BoxHeight mul BM add } def\0A/DaysOfWeek {\0A FDOW 0 eq {\0A [(Sun) (Mon) (Tue) (Wed) (Thu) (Fri) (Sat)]\0A } {\0A [(Mon) (Tue) (Wed) (Thu) (Fri) (Sat) (Sun)]\0A } ifelse\0A} def\0A\0A%------------------------------------------------------------------\0A\0A/InitialisePage {\0A /FDOW edef % First day of week; 1 = Mon, 0 = Sun\0A /JpilotVersion edef % Jpilot version string\0A /TodaysDate edef % String for date of printing\0A /FirstDay edef % Day of 1st of month (0=Sun, 1=Mon...)\0A /MonthName edef % Month/year string\0A %----------------------------------------------------------\0A % Orient page and scale to fit paper size\0A initgraphics\0A A4Y ScaleY mul 0 translate\0A 90 rotate\0A ScaleX ScaleY Min dup scale\0A\0A %----------------------------------------------------------\0A % Draw various headings\0A /Helvetica-Bold findfont fontsize 3 mul scalefont setfont\0A LM TM 30 sub RM MonthName CenterText\0A /Helvetica findfont fontsize 0.8 mul scalefont setfont\0A LM TM 30 sub m (Printed on: ) show TodaysDate show\0A RM TM 30 sub JpilotVersion RightText\0A\0A %----------------------------------------------------------\0A % Now draw the seven days of week across top\0A /X LM def\0A /Y TM 60 sub def\0A /BoxWidth RM LM sub 7 div def\0A /BoxHeight Y BM sub 5 div def\0A /Helvetica-Bold findfont 16 scalefont setfont\0A DaysOfWeek\0A {\0A /DayName edef\0A 0.5 setgray X Y BoxWidth 20 Rectangle fill\0A 0 setgray X Y BoxWidth 20 1 DrawBox\0A 1 setgray X Y 3 add X BoxWidth add DayName CenterText\0A /X X BoxWidth add def\0A } forall\0A 0 setgray\0A\0A %----------------------------------------------------------\0A % Now draw all the empty, slightly gray boxes that are the\0A % backdrop\0A\0A 0 1 6 {\0A /Col edef\0A 0 1 4 {\0A /Row edef\0A Col ColToX Row RowToY BoxWidth BoxHeight Rectangle\0A gsave 0.95 setgray fill grestore 0 setgray stroke\0A } for\0A } for\0A /Col FirstDay FDOW 1 add sub def\0A Col -2 eq { /Col 5 def } if\0A /Row 0 def\0A gsave\0A} def\0A\0A%------------------------------------------------------------------\0A\0A/NextDay {\0A grestore gsave % This copes with a changing clipping path\0A /DayNumber DayNumber 1 add def\0A /Col Col 1 add def\0A Col 7 eq { \0A /Row Row 1 add def /Col 0 def \0A Row 5 eq { /Row 0 def } if\0A } if\0A %----------------------------------------------------------\0A % First box the thing off in white, and set a clipping path\0A Col ColToX Row RowToY BoxWidth BoxHeight Rectangle\0A gsave 1 setgray fill grestore 0 setgray stroke\0A\0A Col ColToX 1 add Row RowToY 1 add BoxWidth 2 sub BoxHeight\0A 2 sub Rectangle clip\0A\0A %----------------------------------------------------------\0A % Then put up the large number for the day...\0A /Helvetica-Bold findfont fontsize 2 mul scalefont setfont\0A Col ColToX 3 add\0A Row RowToY BoxHeight fontsize 2 mul 1 add sub add m\0A DayNumber nstr cvs show\0A\0A %----------------------------------------------------------\0A % Finally, set variables for the items\0A /X Col ColToX 3 add def\0A /Y Row RowToY BoxHeight fontsize sub 2 sub add def\0A /Ytop2 Row RowToY BoxHeight fontsize 3 mul sub add def\0A /fsize fontsize 0.8 mul def\0A} def\0A\0A%------------------------------------------------------------------\0A% 'spacify' routine to replace line-feeds with spaces in strings\0A% passed in - places string back on stack where it came from.\0A\0A/spacify {\0A /LF 10 def\0A /SP 32 def\0A\0A /String edef\0A\0A 0 1 String length 1 sub {\0A /I edef\0A String I get LF eq {\0A String I SP put\0A } if\0A } for\0A String\0A} def\0A\0A%------------------------------------------------------------------\0A% Move onto the next line\0A\0A/incY { /X X_LM def /Y Y fsize sub def } def\0A\0A%------------------------------------------------------------------\0A% This routine will do automatic line-breaking of the item text, so\0A% that as much of it as possible is visible.\0A%\0A% Arguments are: 'Paragraph Y para'\0A\0A/para {\0A /RMpara X PrintBoxWidth add def\0A /LMpara X def\0A /Y edef\0A spacify\0A /Paragraph edef\0A /SpaceW ( ) stringwidth pop def\0A RMpara LMpara sub Paragraph stringwidth pop gt\0A {\0A %----------------------------------------------\0A % The whole paragraph fits on one line - so\0A % just print it!\0A %----------------------------------------------\0A LMpara Y m Paragraph show\0A } {\0A %----------------------------------------------\0A % Have to do our clever formatting\0A %----------------------------------------------\0A /X LMpara def\0A /I 0 def\0A {\0A Paragraph ( ) search\0A {\0A %--------------------------------------------\0A % Found a space - so check where to print it.\0A %--------------------------------------------\0A dup\0A stringwidth pop /SW edef\0A SW RMpara X sub gt { /I I 1 add def I 2 eq { exit } if incY } if\0A X Y m show\0A pop\0A /X X SW SpaceW add add def\0A /Paragraph edef\0A } {\0A %----------------------------------------\0A % No space. Print rest of string and exit\0A %----------------------------------------\0A RMpara X sub Paragraph stringwidth pop lt\0A { /I I 1 add def I 2 eq { exit } if incY } if\0A X Y m Paragraph show\0A pop\0A exit\0A } ifelse\0A } loop\0A } ifelse\0A} def\0A\0A%------------------------------------------------------------------\0A% This procedure prints an item\0A\0A/TimedItem {\0A /ApptText edef\0A Y Ytop2 gt { /Y Ytop2 def } if\0A /Helvetica-Oblique findfont fsize scalefont setfont\0A X Y m show\0A /Helvetica-ISOLatin1 findfont fsize scalefont setfont\0A /X_LM X def\0A /X X 4.2 fsize mul add def\0A /PrintBoxWidth BoxWidth X X_LM sub sub 3 sub def\0A ApptText Y para\0A incY\0A} def\0A\0A/UntimedItem {\0A /ApptText edef\0A /Helvetica-ISOLatin1 findfont fsize scalefont setfont\0A /X_LM_save X def\0A /X X 3 fsize mul add def\0A /X_LM X def\0A /PrintBoxWidth BoxWidth X X_LM_save sub sub 3 sub def\0A ApptText Y para\0A /X_LM X_LM_save def\0A incY\0A} def\0A\0A%------------------------------------------------------------------\0A\0A/SmallMonth {\0A grestore gsave % This copes with a changing clipping path\0A /S_FDOM edef\0A /NumDays edef\0A /MonthName edef\0A /S_row edef\0A /S_col edef\0A\0A /X1 S_col ColToX def\0A /X2 S_col 1 add ColToX def\0A /Y1 S_row RowToY def\0A /Y2 S_row 1 sub RowToY def\0A /SmallBoxWidth .125 BoxWidth mul def\0A /SmallLeftMargin X1 .16 BoxWidth mul add def\0A /Helvetica-Bold findfont 10 scalefont setfont \0A X1 Y2 12 sub X2 MonthName CenterText\0A /Helvetica-Bold findfont 8 scalefont setfont \0A /X SmallLeftMargin def\0A /DayName 1 string def\0A DaysOfWeek\0A {\0A 0 get DayName 0 3 2 roll put\0A X S_row 1 sub RowToY 24 sub DayName RightText\0A /X X SmallBoxWidth add def\0A } forall\0A /Helvetica findfont 8 scalefont setfont \0A /SmallRow 0 def\0A /SmallCol S_FDOM FDOW sub def\0A SmallCol FDOW lt { /SmallCol SmallCol 7 add 7 mod def } if\0A 1 1 NumDays {\0A /Day edef\0A SmallLeftMargin SmallCol SmallBoxWidth mul add\0A Y1 4 SmallRow sub 11 mul 10 add add\0A Day nstr cvs RightText\0A /SmallCol SmallCol 1 add def\0A SmallCol 7 ge {\0A /SmallCol 0 def\0A /SmallRow SmallRow 1 add def\0A SmallRow 4 gt { /SmallRow 0 def } if\0A } if\0A } for\0A} def\0A\0A%------------------------------------------------------------------\0A\0A/SmallMonths {\0A /NumDays2 edef\0A /FDOM2 edef\0A /MonthName2 edef\0A /NumDays1 edef\0A /FDOM1 edef\0A /MonthName1 edef\0A\0A Col 5 lt {\0A Row 0 ne {\0A 5 4 MonthName1 NumDays1 FDOM1 SmallMonth\0A 6 4 MonthName2 NumDays2 FDOM2 SmallMonth\0A } {\0A Col 2 add 0 MonthName1 NumDays1 FDOM1 SmallMonth\0A Col 3 add 0 MonthName2 NumDays2 FDOM2 SmallMonth\0A } ifelse\0A } {\0A Row 4 eq {\0A 0 0 MonthName1 NumDays1 FDOM1 SmallMonth\0A 1 0 MonthName2 NumDays2 FDOM2 SmallMonth\0A } {\0A 5 4 MonthName1 NumDays1 FDOM1 SmallMonth\0A 6 4 MonthName2 NumDays2 FDOM2 SmallMonth\0A } ifelse\0A } ifelse\0A} def\0A\0A%------------------------------------------------------------------\0A% This is the end of the header\0A%------------------------------------------------------------------\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_month_header(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
store ptr @.str, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = load ptr, ptr %2, align 8
%6 = call i32 @fputs(ptr noundef %4, ptr noundef %5)
ret void
}
declare i32 @fputs(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/tmp6thldrov.c'
source_filename = "/tmp/tmp6thldrov.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @tau_n(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = call i32 @alpha_n(double noundef %3)
%5 = load double, ptr %2, align 8
%6 = call i32 @beta_n(double noundef %5)
%7 = add nsw i32 %4, %6
%8 = sitofp i32 %7 to double
%9 = fdiv double 1.000000e+00, %8
ret double %9
}
declare i32 @alpha_n(double noundef) #1
declare i32 @beta_n(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/tmp6thldrov.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @tau_n(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = call i32 @alpha_n(double noundef %3)
%5 = load double, ptr %2, align 8
%6 = call i32 @beta_n(double noundef %5)
%7 = add nsw i32 %4, %6
%8 = sitofp i32 %7 to double
%9 = fdiv double 1.000000e+00, %8
ret double %9
}
declare i32 @alpha_n(double noundef) #1
declare i32 @beta_n(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/tmpej5q3j4f.c'
source_filename = "/tmp/tmpej5q3j4f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINVAL = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [10 x i8] c"first %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"secd %d\0A\00", align 1
@ENOMEM = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [18 x i8] c"ucnt %d, cate %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"forth %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [10 x i8] c"ctemp %d\0A\00", align 1
@.str.5 = private unnamed_addr constant [17 x i8] c"cti scon:%s, %s\0A\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c"c%d\00", align 1
@.str.7 = private unnamed_addr constant [18 x i8] c"ctemp in cate %d\0A\00", align 1
@.str.8 = private unnamed_addr constant [14 x i8] c"cate[%d] = 1\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 ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = alloca ptr, align 8
%12 = alloca [5 x i8], align 1
%13 = alloca [255 x i32], align 16
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr null, ptr %6, align 8
store ptr null, ptr %7, align 8
store ptr null, ptr %8, align 8
store ptr null, ptr %9, align 8
%18 = load ptr, ptr %5, align 8
%19 = getelementptr inbounds ptr, ptr %18, i64 2
%20 = load ptr, ptr %19, align 8
%21 = call i64 @strtoul(ptr noundef %20, ptr noundef null, i32 noundef 0)
store i64 %21, ptr %10, align 8
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 1
%24 = load ptr, ptr %23, align 8
store ptr %24, ptr %11, align 8
%25 = load i64, ptr %10, align 8
%26 = icmp ult i64 %25, 5
br i1 %26, label %30, label %27
27: ; preds = %2
%28 = load ptr, ptr %11, align 8
%29 = icmp eq ptr %28, null
br i1 %29, label %30, label %33
30: ; preds = %27, %2
%31 = load i32, ptr @EINVAL, align 4
%32 = sub nsw i32 0, %31
store i32 %32, ptr %3, align 4
br label %390
33: ; preds = %27
%34 = load ptr, ptr %11, align 8
store ptr %34, ptr %7, align 8
store i32 0, ptr %16, align 4
store i32 0, ptr %14, align 4
br label %35
35: ; preds = %62, %33
%36 = load ptr, ptr %7, align 8
%37 = load i32, ptr %14, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i8, ptr %36, i64 %38
%40 = load i8, ptr %39, align 1
%41 = sext i8 %40 to i32
%42 = icmp ne i32 %41, 0
br i1 %42, label %43, label %48
43: ; preds = %35
%44 = load i32, ptr %14, align 4
%45 = sext i32 %44 to i64
%46 = load i64, ptr %10, align 8
%47 = icmp ult i64 %45, %46
br label %48
48: ; preds = %43, %35
%49 = phi i1 [ false, %35 ], [ %47, %43 ]
br i1 %49, label %50, label %65
50: ; preds = %48
%51 = load ptr, ptr %7, align 8
%52 = load i32, ptr %14, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i8, ptr %51, i64 %53
%55 = load i8, ptr %54, align 1
%56 = sext i8 %55 to i32
%57 = icmp eq i32 %56, 58
br i1 %57, label %58, label %61
58: ; preds = %50
%59 = load i32, ptr %16, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %16, align 4
br label %61
61: ; preds = %58, %50
br label %62
62: ; preds = %61
%63 = load i32, ptr %14, align 4
%64 = add nsw i32 %63, 1
store i32 %64, ptr %14, align 4
br label %35, !llvm.loop !6
65: ; preds = %48
%66 = load i32, ptr %16, align 4
%67 = icmp ne i32 %66, 3
br i1 %67, label %68, label %71
68: ; preds = %65
%69 = load i32, ptr @EINVAL, align 4
%70 = sub nsw i32 0, %69
store i32 %70, ptr %3, align 4
br label %390
71: ; preds = %65
store i32 1, ptr %16, align 4
%72 = load ptr, ptr %11, align 8
store ptr %72, ptr %8, align 8
%73 = load ptr, ptr %8, align 8
%74 = getelementptr inbounds i8, ptr %73, i64 0
%75 = load i8, ptr %74, align 1
%76 = sext i8 %75 to i32
%77 = icmp sge i32 %76, 48
br i1 %77, label %78, label %91
78: ; preds = %71
%79 = load ptr, ptr %8, align 8
%80 = getelementptr inbounds i8, ptr %79, i64 0
%81 = load i8, ptr %80, align 1
%82 = sext i8 %81 to i32
%83 = icmp sle i32 %82, 57
br i1 %83, label %84, label %91
84: ; preds = %78
%85 = load ptr, ptr %8, align 8
%86 = getelementptr inbounds i8, ptr %85, i64 0
%87 = load i8, ptr %86, align 1
%88 = sext i8 %87 to i32
%89 = sub nsw i32 %88, 48
%90 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %89)
br label %93
91: ; preds = %78, %71
%92 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef 0)
br label %93
93: ; preds = %91, %84
br label %94
94: ; preds = %99, %93
%95 = load ptr, ptr %8, align 8
%96 = load i8, ptr %95, align 1
%97 = sext i8 %96 to i32
%98 = icmp ne i32 %97, 58
br i1 %98, label %99, label %104
99: ; preds = %94
%100 = load ptr, ptr %8, align 8
%101 = getelementptr inbounds i8, ptr %100, i32 1
store ptr %101, ptr %8, align 8
%102 = load i32, ptr %16, align 4
%103 = add nsw i32 %102, 1
store i32 %103, ptr %16, align 4
br label %94, !llvm.loop !8
104: ; preds = %94
%105 = load ptr, ptr %8, align 8
%106 = getelementptr inbounds i8, ptr %105, i32 1
store ptr %106, ptr %8, align 8
%107 = load i32, ptr %16, align 4
%108 = add nsw i32 %107, 1
store i32 %108, ptr %16, align 4
%109 = load ptr, ptr %8, align 8
%110 = load i8, ptr %109, align 1
%111 = sext i8 %110 to i32
%112 = icmp sge i32 %111, 48
br i1 %112, label %113, label %125
113: ; preds = %104
%114 = load ptr, ptr %8, align 8
%115 = load i8, ptr %114, align 1
%116 = sext i8 %115 to i32
%117 = icmp sle i32 %116, 57
br i1 %117, label %118, label %125
118: ; preds = %113
%119 = load ptr, ptr %8, align 8
%120 = getelementptr inbounds i8, ptr %119, i64 0
%121 = load i8, ptr %120, align 1
%122 = sext i8 %121 to i32
%123 = sub nsw i32 %122, 48
%124 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %123)
br label %127
125: ; preds = %113, %104
%126 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef 0)
br label %127
127: ; preds = %125, %118
br label %128
128: ; preds = %133, %127
%129 = load ptr, ptr %8, align 8
%130 = load i8, ptr %129, align 1
%131 = sext i8 %130 to i32
%132 = icmp ne i32 %131, 58
br i1 %132, label %133, label %138
133: ; preds = %128
%134 = load ptr, ptr %8, align 8
%135 = getelementptr inbounds i8, ptr %134, i32 1
store ptr %135, ptr %8, align 8
%136 = load i32, ptr %16, align 4
%137 = add nsw i32 %136, 1
store i32 %137, ptr %16, align 4
br label %128, !llvm.loop !9
138: ; preds = %128
%139 = load ptr, ptr %8, align 8
%140 = getelementptr inbounds i8, ptr %139, i32 1
store ptr %140, ptr %8, align 8
%141 = load i32, ptr %16, align 4
%142 = add nsw i32 %141, 1
store i32 %142, ptr %16, align 4
%143 = load i64, ptr %10, align 8
%144 = call ptr @malloc(i64 noundef %143)
store ptr %144, ptr %6, align 8
%145 = load ptr, ptr %6, align 8
%146 = icmp eq ptr %145, null
br i1 %146, label %147, label %150
147: ; preds = %138
%148 = load i32, ptr @ENOMEM, align 4
%149 = sub nsw i32 0, %148
store i32 %149, ptr %3, align 4
br label %390
150: ; preds = %138
%151 = load ptr, ptr %6, align 8
%152 = load i64, ptr %10, align 8
%153 = trunc i64 %152 to i32
%154 = call i32 @memset(ptr noundef %151, i32 noundef 0, i32 noundef %153)
%155 = getelementptr inbounds [5 x i8], ptr %12, i64 0, i64 0
%156 = call i32 @memset(ptr noundef %155, i32 noundef 0, i32 noundef 5)
%157 = load ptr, ptr %6, align 8
store ptr %157, ptr %7, align 8
br label %158
158: ; preds = %163, %150
%159 = load ptr, ptr %8, align 8
%160 = load i8, ptr %159, align 1
%161 = sext i8 %160 to i32
%162 = icmp ne i32 %161, 58
br i1 %162, label %163, label %171
163: ; preds = %158
%164 = load ptr, ptr %8, align 8
%165 = getelementptr inbounds i8, ptr %164, i32 1
store ptr %165, ptr %8, align 8
%166 = load i8, ptr %164, align 1
%167 = load ptr, ptr %7, align 8
%168 = getelementptr inbounds i8, ptr %167, i32 1
store ptr %168, ptr %7, align 8
store i8 %166, ptr %167, align 1
%169 = load i32, ptr %16, align 4
%170 = add nsw i32 %169, 1
store i32 %170, ptr %16, align 4
br label %158, !llvm.loop !10
171: ; preds = %158
%172 = load ptr, ptr %8, align 8
%173 = getelementptr inbounds i8, ptr %172, i32 1
store ptr %173, ptr %8, align 8
%174 = load i32, ptr %16, align 4
%175 = add nsw i32 %174, 1
store i32 %175, ptr %16, align 4
%176 = load i32, ptr %16, align 4
%177 = sext i32 %176 to i64
%178 = load i64, ptr %10, align 8
%179 = icmp ugt i64 %177, %178
br i1 %179, label %180, label %183
180: ; preds = %171
%181 = load i32, ptr @EINVAL, align 4
%182 = sub nsw i32 0, %181
store i32 %182, ptr %3, align 4
br label %390
183: ; preds = %171
%184 = load i32, ptr %16, align 4
%185 = load ptr, ptr %6, align 8
%186 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %184, ptr noundef %185)
store i32 0, ptr %17, align 4
%187 = load i32, ptr %16, align 4
%188 = sext i32 %187 to i64
%189 = load i64, ptr %10, align 8
%190 = icmp eq i64 %188, %189
br i1 %190, label %191, label %207
191: ; preds = %183
%192 = load ptr, ptr %8, align 8
%193 = getelementptr inbounds i8, ptr %192, i64 0
%194 = load i8, ptr %193, align 1
%195 = call i64 @isdigit(i8 noundef signext %194)
%196 = icmp ne i64 %195, 0
br i1 %196, label %197, label %203
197: ; preds = %191
%198 = load ptr, ptr %8, align 8
%199 = getelementptr inbounds i8, ptr %198, i64 0
%200 = load i8, ptr %199, align 1
%201 = sext i8 %200 to i32
%202 = sub nsw i32 %201, 48
store i32 %202, ptr %17, align 4
br label %206
203: ; preds = %191
%204 = load i32, ptr @EINVAL, align 4
%205 = sub nsw i32 0, %204
store i32 %205, ptr %3, align 4
br label %390
206: ; preds = %197
br label %246
207: ; preds = %183
%208 = load i32, ptr %16, align 4
%209 = add nsw i32 %208, 1
%210 = sext i32 %209 to i64
%211 = load i64, ptr %10, align 8
%212 = icmp eq i64 %210, %211
br i1 %212, label %213, label %242
213: ; preds = %207
%214 = load ptr, ptr %8, align 8
%215 = getelementptr inbounds i8, ptr %214, i64 0
%216 = load i8, ptr %215, align 1
%217 = call i64 @isdigit(i8 noundef signext %216)
%218 = icmp ne i64 %217, 0
br i1 %218, label %219, label %238
219: ; preds = %213
%220 = load ptr, ptr %8, align 8
%221 = getelementptr inbounds i8, ptr %220, i64 1
%222 = load i8, ptr %221, align 1
%223 = call i64 @isdigit(i8 noundef signext %222)
%224 = icmp ne i64 %223, 0
br i1 %224, label %225, label %238
225: ; preds = %219
%226 = load ptr, ptr %8, align 8
%227 = getelementptr inbounds i8, ptr %226, i64 0
%228 = load i8, ptr %227, align 1
%229 = sext i8 %228 to i32
%230 = sub nsw i32 %229, 48
%231 = mul nsw i32 %230, 10
%232 = load ptr, ptr %8, align 8
%233 = getelementptr inbounds i8, ptr %232, i64 1
%234 = load i8, ptr %233, align 1
%235 = sext i8 %234 to i32
%236 = add nsw i32 %231, %235
%237 = sub nsw i32 %236, 48
store i32 %237, ptr %17, align 4
br label %241
238: ; preds = %219, %213
%239 = load i32, ptr @EINVAL, align 4
%240 = sub nsw i32 0, %239
store i32 %240, ptr %3, align 4
br label %390
241: ; preds = %225
br label %245
242: ; preds = %207
%243 = load i32, ptr @EINVAL, align 4
%244 = sub nsw i32 0, %243
store i32 %244, ptr %3, align 4
br label %390
245: ; preds = %241
br label %246
246: ; preds = %245, %206
%247 = load i32, ptr %17, align 4
%248 = icmp sge i32 %247, 0
br i1 %248, label %249, label %255
249: ; preds = %246
%250 = load i32, ptr %17, align 4
%251 = icmp sle i32 %250, 15
br i1 %251, label %252, label %255
252: ; preds = %249
%253 = load i32, ptr %17, align 4
%254 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %253)
br label %258
255: ; preds = %249, %246
%256 = load i32, ptr %17, align 4
%257 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %256)
br label %258
258: ; preds = %255, %252
%259 = load ptr, ptr %11, align 8
%260 = load ptr, ptr %6, align 8
%261 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %259, ptr noundef %260)
store i32 0, ptr %14, align 4
br label %262
262: ; preds = %269, %258
%263 = load i32, ptr %14, align 4
%264 = icmp slt i32 %263, 255
br i1 %264, label %265, label %272
265: ; preds = %262
%266 = load i32, ptr %14, align 4
%267 = sext i32 %266 to i64
%268 = getelementptr inbounds [255 x i32], ptr %13, i64 0, i64 %267
store i32 0, ptr %268, align 4
br label %269
269: ; preds = %265
%270 = load i32, ptr %14, align 4
%271 = add nsw i32 %270, 1
store i32 %271, ptr %14, align 4
br label %262, !llvm.loop !11
272: ; preds = %262
%273 = load ptr, ptr %6, align 8
store ptr %273, ptr %7, align 8
%274 = load ptr, ptr %6, align 8
store ptr %274, ptr %9, align 8
%275 = load ptr, ptr %6, align 8
%276 = call i32 @strlen(ptr noundef %275)
store i32 %276, ptr %15, align 4
store i32 0, ptr %17, align 4
store i32 0, ptr %16, align 4
store i32 0, ptr %14, align 4
br label %277
277: ; preds = %359, %272
%278 = load i32, ptr %14, align 4
%279 = load i32, ptr %15, align 4
%280 = icmp slt i32 %278, %279
br i1 %280, label %281, label %362
281: ; preds = %277
%282 = load ptr, ptr %6, align 8
%283 = load i32, ptr %14, align 4
%284 = sext i32 %283 to i64
%285 = getelementptr inbounds i8, ptr %282, i64 %284
%286 = load i8, ptr %285, align 1
%287 = sext i8 %286 to i32
%288 = icmp eq i32 %287, 44
br i1 %288, label %289, label %320
289: ; preds = %281
%290 = load ptr, ptr %6, align 8
%291 = load i32, ptr %14, align 4
%292 = sub nsw i32 %291, 1
%293 = sext i32 %292 to i64
%294 = getelementptr inbounds i8, ptr %290, i64 %293
store ptr %294, ptr %9, align 8
%295 = load ptr, ptr %9, align 8
%296 = load ptr, ptr %7, align 8
%297 = ptrtoint ptr %295 to i64
%298 = ptrtoint ptr %296 to i64
%299 = sub i64 %297, %298
%300 = add nsw i64 %299, 1
%301 = trunc i64 %300 to i32
store i32 %301, ptr %16, align 4
%302 = getelementptr inbounds [5 x i8], ptr %12, i64 0, i64 0
%303 = call i32 @memset(ptr noundef %302, i32 noundef 0, i32 noundef 5)
%304 = getelementptr inbounds [5 x i8], ptr %12, i64 0, i64 0
%305 = load ptr, ptr %7, align 8
%306 = load i32, ptr %16, align 4
%307 = call i32 @strncpy(ptr noundef %304, ptr noundef %305, i32 noundef %306)
%308 = getelementptr inbounds [5 x i8], ptr %12, i64 0, i64 0
%309 = call i32 @sscanf(ptr noundef %308, ptr noundef @.str.6, ptr noundef %17)
%310 = load i32, ptr %17, align 4
%311 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %310)
%312 = load i32, ptr %17, align 4
%313 = sext i32 %312 to i64
%314 = getelementptr inbounds [255 x i32], ptr %13, i64 0, i64 %313
store i32 1, ptr %314, align 4
%315 = load ptr, ptr %6, align 8
%316 = load i32, ptr %14, align 4
%317 = add nsw i32 %316, 1
%318 = sext i32 %317 to i64
%319 = getelementptr inbounds i8, ptr %315, i64 %318
store ptr %319, ptr %7, align 8
br label %359
320: ; preds = %281
%321 = load i32, ptr %14, align 4
%322 = load i32, ptr %15, align 4
%323 = sub nsw i32 %322, 1
%324 = icmp eq i32 %321, %323
br i1 %324, label %325, label %358
325: ; preds = %320
%326 = load ptr, ptr %6, align 8
%327 = load i32, ptr %14, align 4
%328 = sext i32 %327 to i64
%329 = getelementptr inbounds i8, ptr %326, i64 %328
%330 = load i8, ptr %329, align 1
%331 = sext i8 %330 to i32
%332 = icmp ne i32 %331, 44
br i1 %332, label %333, label %358
333: ; preds = %325
%334 = load ptr, ptr %6, align 8
%335 = load i32, ptr %14, align 4
%336 = sext i32 %335 to i64
%337 = getelementptr inbounds i8, ptr %334, i64 %336
store ptr %337, ptr %9, align 8
%338 = load ptr, ptr %9, align 8
%339 = load ptr, ptr %7, align 8
%340 = ptrtoint ptr %338 to i64
%341 = ptrtoint ptr %339 to i64
%342 = sub i64 %340, %341
%343 = add nsw i64 %342, 1
%344 = trunc i64 %343 to i32
store i32 %344, ptr %16, align 4
%345 = getelementptr inbounds [5 x i8], ptr %12, i64 0, i64 0
%346 = call i32 @memset(ptr noundef %345, i32 noundef 0, i32 noundef 5)
%347 = getelementptr inbounds [5 x i8], ptr %12, i64 0, i64 0
%348 = load ptr, ptr %7, align 8
%349 = load i32, ptr %16, align 4
%350 = call i32 @strncpy(ptr noundef %347, ptr noundef %348, i32 noundef %349)
%351 = getelementptr inbounds [5 x i8], ptr %12, i64 0, i64 0
%352 = call i32 @sscanf(ptr noundef %351, ptr noundef @.str.6, ptr noundef %17)
%353 = load i32, ptr %17, align 4
%354 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %353)
%355 = load i32, ptr %17, align 4
%356 = sext i32 %355 to i64
%357 = getelementptr inbounds [255 x i32], ptr %13, i64 0, i64 %356
store i32 1, ptr %357, align 4
br label %358
358: ; preds = %333, %325, %320
br label %359
359: ; preds = %358, %289
%360 = load i32, ptr %14, align 4
%361 = add nsw i32 %360, 1
store i32 %361, ptr %14, align 4
br label %277, !llvm.loop !12
362: ; preds = %277
store i32 0, ptr %15, align 4
store i32 0, ptr %14, align 4
br label %363
363: ; preds = %376, %362
%364 = load i32, ptr %14, align 4
%365 = icmp slt i32 %364, 255
br i1 %365, label %366, label %379
366: ; preds = %363
%367 = load i32, ptr %14, align 4
%368 = sext i32 %367 to i64
%369 = getelementptr inbounds [255 x i32], ptr %13, i64 0, i64 %368
%370 = load i32, ptr %369, align 4
%371 = icmp eq i32 %370, 1
br i1 %371, label %372, label %375
372: ; preds = %366
%373 = load i32, ptr %14, align 4
%374 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %373)
br label %375
375: ; preds = %372, %366
br label %376
376: ; preds = %375
%377 = load i32, ptr %14, align 4
%378 = add nsw i32 %377, 1
store i32 %378, ptr %14, align 4
br label %363, !llvm.loop !13
379: ; preds = %363
%380 = load ptr, ptr %6, align 8
%381 = icmp ne ptr %380, null
br i1 %381, label %382, label %389
382: ; preds = %379
%383 = load ptr, ptr %6, align 8
%384 = call i32 @strlen(ptr noundef %383)
%385 = icmp ne i32 %384, 0
br i1 %385, label %386, label %389
386: ; preds = %382
%387 = load ptr, ptr %6, align 8
%388 = call i32 @free(ptr noundef %387)
br label %389
389: ; preds = %386, %382, %379
store i32 0, ptr %3, align 4
br label %390
390: ; preds = %389, %242, %238, %203, %180, %147, %68, %30
%391 = load i32, ptr %3, align 4
ret i32 %391
}
declare i64 @strtoul(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare ptr @malloc(i64 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @isdigit(i8 noundef signext) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpej5q3j4f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EINVAL = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [10 x i8] c"first %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"secd %d\0A\00", align 1
@ENOMEM = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [18 x i8] c"ucnt %d, cate %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"forth %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [10 x i8] c"ctemp %d\0A\00", align 1
@.str.5 = private unnamed_addr constant [17 x i8] c"cti scon:%s, %s\0A\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c"c%d\00", align 1
@.str.7 = private unnamed_addr constant [18 x i8] c"ctemp in cate %d\0A\00", align 1
@.str.8 = private unnamed_addr constant [14 x i8] c"cate[%d] = 1\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 ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca i64, align 8
%11 = alloca ptr, align 8
%12 = alloca [5 x i8], align 1
%13 = alloca [255 x i32], align 16
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca i32, align 4
%17 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr null, ptr %6, align 8
store ptr null, ptr %7, align 8
store ptr null, ptr %8, align 8
store ptr null, ptr %9, align 8
%18 = load ptr, ptr %5, align 8
%19 = getelementptr inbounds ptr, ptr %18, i64 2
%20 = load ptr, ptr %19, align 8
%21 = call i64 @strtoul(ptr noundef %20, ptr noundef null, i32 noundef 0)
store i64 %21, ptr %10, align 8
%22 = load ptr, ptr %5, align 8
%23 = getelementptr inbounds ptr, ptr %22, i64 1
%24 = load ptr, ptr %23, align 8
store ptr %24, ptr %11, align 8
%25 = load i64, ptr %10, align 8
%26 = icmp ult i64 %25, 5
br i1 %26, label %30, label %27
27: ; preds = %2
%28 = load ptr, ptr %11, align 8
%29 = icmp eq ptr %28, null
br i1 %29, label %30, label %33
30: ; preds = %27, %2
%31 = load i32, ptr @EINVAL, align 4
%32 = sub nsw i32 0, %31
store i32 %32, ptr %3, align 4
br label %403
33: ; preds = %27
%34 = load ptr, ptr %11, align 8
store ptr %34, ptr %7, align 8
store i32 0, ptr %16, align 4
store i32 0, ptr %14, align 4
br label %35
35: ; preds = %62, %33
%36 = load ptr, ptr %7, align 8
%37 = load i32, ptr %14, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i8, ptr %36, i64 %38
%40 = load i8, ptr %39, align 1
%41 = sext i8 %40 to i32
%42 = icmp ne i32 %41, 0
br i1 %42, label %43, label %48
43: ; preds = %35
%44 = load i32, ptr %14, align 4
%45 = sext i32 %44 to i64
%46 = load i64, ptr %10, align 8
%47 = icmp ult i64 %45, %46
br label %48
48: ; preds = %43, %35
%49 = phi i1 [ false, %35 ], [ %47, %43 ]
br i1 %49, label %50, label %65
50: ; preds = %48
%51 = load ptr, ptr %7, align 8
%52 = load i32, ptr %14, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i8, ptr %51, i64 %53
%55 = load i8, ptr %54, align 1
%56 = sext i8 %55 to i32
%57 = icmp eq i32 %56, 58
br i1 %57, label %58, label %61
58: ; preds = %50
%59 = load i32, ptr %16, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %16, align 4
br label %61
61: ; preds = %58, %50
br label %62
62: ; preds = %61
%63 = load i32, ptr %14, align 4
%64 = add nsw i32 %63, 1
store i32 %64, ptr %14, align 4
br label %35, !llvm.loop !6
65: ; preds = %48
%66 = load i32, ptr %16, align 4
%67 = icmp ne i32 %66, 3
br i1 %67, label %68, label %71
68: ; preds = %65
%69 = load i32, ptr @EINVAL, align 4
%70 = sub nsw i32 0, %69
store i32 %70, ptr %3, align 4
br label %403
71: ; preds = %65
store i32 1, ptr %16, align 4
%72 = load ptr, ptr %11, align 8
store ptr %72, ptr %8, align 8
%73 = load ptr, ptr %8, align 8
%74 = getelementptr inbounds i8, ptr %73, i64 0
%75 = load i8, ptr %74, align 1
%76 = sext i8 %75 to i32
%77 = icmp sge i32 %76, 48
br i1 %77, label %78, label %91
78: ; preds = %71
%79 = load ptr, ptr %8, align 8
%80 = getelementptr inbounds i8, ptr %79, i64 0
%81 = load i8, ptr %80, align 1
%82 = sext i8 %81 to i32
%83 = icmp sle i32 %82, 57
br i1 %83, label %84, label %91
84: ; preds = %78
%85 = load ptr, ptr %8, align 8
%86 = getelementptr inbounds i8, ptr %85, i64 0
%87 = load i8, ptr %86, align 1
%88 = sext i8 %87 to i32
%89 = sub nsw i32 %88, 48
%90 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %89)
br label %93
91: ; preds = %78, %71
%92 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef 0)
br label %93
93: ; preds = %91, %84
%94 = load ptr, ptr %8, align 8
%95 = load i8, ptr %94, align 1
%96 = sext i8 %95 to i32
%97 = icmp ne i32 %96, 58
br i1 %97, label %.lr.ph, label %107
.lr.ph: ; preds = %93
br label %98
98: ; preds = %.lr.ph, %98
%99 = load ptr, ptr %8, align 8
%100 = getelementptr inbounds i8, ptr %99, i32 1
store ptr %100, ptr %8, align 8
%101 = load i32, ptr %16, align 4
%102 = add nsw i32 %101, 1
store i32 %102, ptr %16, align 4
%103 = load ptr, ptr %8, align 8
%104 = load i8, ptr %103, align 1
%105 = sext i8 %104 to i32
%106 = icmp ne i32 %105, 58
br i1 %106, label %98, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %98
br label %107
107: ; preds = %._crit_edge, %93
%108 = load ptr, ptr %8, align 8
%109 = getelementptr inbounds i8, ptr %108, i32 1
store ptr %109, ptr %8, align 8
%110 = load i32, ptr %16, align 4
%111 = add nsw i32 %110, 1
store i32 %111, ptr %16, align 4
%112 = load ptr, ptr %8, align 8
%113 = load i8, ptr %112, align 1
%114 = sext i8 %113 to i32
%115 = icmp sge i32 %114, 48
br i1 %115, label %116, label %128
116: ; preds = %107
%117 = load ptr, ptr %8, align 8
%118 = load i8, ptr %117, align 1
%119 = sext i8 %118 to i32
%120 = icmp sle i32 %119, 57
br i1 %120, label %121, label %128
121: ; preds = %116
%122 = load ptr, ptr %8, align 8
%123 = getelementptr inbounds i8, ptr %122, i64 0
%124 = load i8, ptr %123, align 1
%125 = sext i8 %124 to i32
%126 = sub nsw i32 %125, 48
%127 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %126)
br label %130
128: ; preds = %116, %107
%129 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef 0)
br label %130
130: ; preds = %128, %121
%131 = load ptr, ptr %8, align 8
%132 = load i8, ptr %131, align 1
%133 = sext i8 %132 to i32
%134 = icmp ne i32 %133, 58
br i1 %134, label %.lr.ph2, label %144
.lr.ph2: ; preds = %130
br label %135
135: ; preds = %.lr.ph2, %135
%136 = load ptr, ptr %8, align 8
%137 = getelementptr inbounds i8, ptr %136, i32 1
store ptr %137, ptr %8, align 8
%138 = load i32, ptr %16, align 4
%139 = add nsw i32 %138, 1
store i32 %139, ptr %16, align 4
%140 = load ptr, ptr %8, align 8
%141 = load i8, ptr %140, align 1
%142 = sext i8 %141 to i32
%143 = icmp ne i32 %142, 58
br i1 %143, label %135, label %._crit_edge3, !llvm.loop !9
._crit_edge3: ; preds = %135
br label %144
144: ; preds = %._crit_edge3, %130
%145 = load ptr, ptr %8, align 8
%146 = getelementptr inbounds i8, ptr %145, i32 1
store ptr %146, ptr %8, align 8
%147 = load i32, ptr %16, align 4
%148 = add nsw i32 %147, 1
store i32 %148, ptr %16, align 4
%149 = load i64, ptr %10, align 8
%150 = call ptr @malloc(i64 noundef %149)
store ptr %150, ptr %6, align 8
%151 = load ptr, ptr %6, align 8
%152 = icmp eq ptr %151, null
br i1 %152, label %153, label %156
153: ; preds = %144
%154 = load i32, ptr @ENOMEM, align 4
%155 = sub nsw i32 0, %154
store i32 %155, ptr %3, align 4
br label %403
156: ; preds = %144
%157 = load ptr, ptr %6, align 8
%158 = load i64, ptr %10, align 8
%159 = trunc i64 %158 to i32
%160 = call i32 @memset(ptr noundef %157, i32 noundef 0, i32 noundef %159)
%161 = getelementptr inbounds [5 x i8], ptr %12, i64 0, i64 0
%162 = call i32 @memset(ptr noundef %161, i32 noundef 0, i32 noundef 5)
%163 = load ptr, ptr %6, align 8
store ptr %163, ptr %7, align 8
%164 = load ptr, ptr %8, align 8
%165 = load i8, ptr %164, align 1
%166 = sext i8 %165 to i32
%167 = icmp ne i32 %166, 58
br i1 %167, label %.lr.ph5, label %180
.lr.ph5: ; preds = %156
br label %168
168: ; preds = %.lr.ph5, %168
%169 = load ptr, ptr %8, align 8
%170 = getelementptr inbounds i8, ptr %169, i32 1
store ptr %170, ptr %8, align 8
%171 = load i8, ptr %169, align 1
%172 = load ptr, ptr %7, align 8
%173 = getelementptr inbounds i8, ptr %172, i32 1
store ptr %173, ptr %7, align 8
store i8 %171, ptr %172, align 1
%174 = load i32, ptr %16, align 4
%175 = add nsw i32 %174, 1
store i32 %175, ptr %16, align 4
%176 = load ptr, ptr %8, align 8
%177 = load i8, ptr %176, align 1
%178 = sext i8 %177 to i32
%179 = icmp ne i32 %178, 58
br i1 %179, label %168, label %._crit_edge6, !llvm.loop !10
._crit_edge6: ; preds = %168
br label %180
180: ; preds = %._crit_edge6, %156
%181 = load ptr, ptr %8, align 8
%182 = getelementptr inbounds i8, ptr %181, i32 1
store ptr %182, ptr %8, align 8
%183 = load i32, ptr %16, align 4
%184 = add nsw i32 %183, 1
store i32 %184, ptr %16, align 4
%185 = load i32, ptr %16, align 4
%186 = sext i32 %185 to i64
%187 = load i64, ptr %10, align 8
%188 = icmp ugt i64 %186, %187
br i1 %188, label %189, label %192
189: ; preds = %180
%190 = load i32, ptr @EINVAL, align 4
%191 = sub nsw i32 0, %190
store i32 %191, ptr %3, align 4
br label %403
192: ; preds = %180
%193 = load i32, ptr %16, align 4
%194 = load ptr, ptr %6, align 8
%195 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %193, ptr noundef %194)
store i32 0, ptr %17, align 4
%196 = load i32, ptr %16, align 4
%197 = sext i32 %196 to i64
%198 = load i64, ptr %10, align 8
%199 = icmp eq i64 %197, %198
br i1 %199, label %200, label %216
200: ; preds = %192
%201 = load ptr, ptr %8, align 8
%202 = getelementptr inbounds i8, ptr %201, i64 0
%203 = load i8, ptr %202, align 1
%204 = call i64 @isdigit(i8 noundef signext %203)
%205 = icmp ne i64 %204, 0
br i1 %205, label %206, label %212
206: ; preds = %200
%207 = load ptr, ptr %8, align 8
%208 = getelementptr inbounds i8, ptr %207, i64 0
%209 = load i8, ptr %208, align 1
%210 = sext i8 %209 to i32
%211 = sub nsw i32 %210, 48
store i32 %211, ptr %17, align 4
br label %215
212: ; preds = %200
%213 = load i32, ptr @EINVAL, align 4
%214 = sub nsw i32 0, %213
store i32 %214, ptr %3, align 4
br label %403
215: ; preds = %206
br label %255
216: ; preds = %192
%217 = load i32, ptr %16, align 4
%218 = add nsw i32 %217, 1
%219 = sext i32 %218 to i64
%220 = load i64, ptr %10, align 8
%221 = icmp eq i64 %219, %220
br i1 %221, label %222, label %251
222: ; preds = %216
%223 = load ptr, ptr %8, align 8
%224 = getelementptr inbounds i8, ptr %223, i64 0
%225 = load i8, ptr %224, align 1
%226 = call i64 @isdigit(i8 noundef signext %225)
%227 = icmp ne i64 %226, 0
br i1 %227, label %228, label %247
228: ; preds = %222
%229 = load ptr, ptr %8, align 8
%230 = getelementptr inbounds i8, ptr %229, i64 1
%231 = load i8, ptr %230, align 1
%232 = call i64 @isdigit(i8 noundef signext %231)
%233 = icmp ne i64 %232, 0
br i1 %233, label %234, label %247
234: ; preds = %228
%235 = load ptr, ptr %8, align 8
%236 = getelementptr inbounds i8, ptr %235, i64 0
%237 = load i8, ptr %236, align 1
%238 = sext i8 %237 to i32
%239 = sub nsw i32 %238, 48
%240 = mul nsw i32 %239, 10
%241 = load ptr, ptr %8, align 8
%242 = getelementptr inbounds i8, ptr %241, i64 1
%243 = load i8, ptr %242, align 1
%244 = sext i8 %243 to i32
%245 = add nsw i32 %240, %244
%246 = sub nsw i32 %245, 48
store i32 %246, ptr %17, align 4
br label %250
247: ; preds = %228, %222
%248 = load i32, ptr @EINVAL, align 4
%249 = sub nsw i32 0, %248
store i32 %249, ptr %3, align 4
br label %403
250: ; preds = %234
br label %254
251: ; preds = %216
%252 = load i32, ptr @EINVAL, align 4
%253 = sub nsw i32 0, %252
store i32 %253, ptr %3, align 4
br label %403
254: ; preds = %250
br label %255
255: ; preds = %254, %215
%256 = load i32, ptr %17, align 4
%257 = icmp sge i32 %256, 0
br i1 %257, label %258, label %264
258: ; preds = %255
%259 = load i32, ptr %17, align 4
%260 = icmp sle i32 %259, 15
br i1 %260, label %261, label %264
261: ; preds = %258
%262 = load i32, ptr %17, align 4
%263 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %262)
br label %267
264: ; preds = %258, %255
%265 = load i32, ptr %17, align 4
%266 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %265)
br label %267
267: ; preds = %264, %261
%268 = load ptr, ptr %11, align 8
%269 = load ptr, ptr %6, align 8
%270 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %268, ptr noundef %269)
store i32 0, ptr %14, align 4
%271 = load i32, ptr %14, align 4
%272 = icmp slt i32 %271, 255
br i1 %272, label %.lr.ph8, label %282
.lr.ph8: ; preds = %267
br label %273
273: ; preds = %.lr.ph8, %277
%274 = load i32, ptr %14, align 4
%275 = sext i32 %274 to i64
%276 = getelementptr inbounds [255 x i32], ptr %13, i64 0, i64 %275
store i32 0, ptr %276, align 4
br label %277
277: ; preds = %273
%278 = load i32, ptr %14, align 4
%279 = add nsw i32 %278, 1
store i32 %279, ptr %14, align 4
%280 = load i32, ptr %14, align 4
%281 = icmp slt i32 %280, 255
br i1 %281, label %273, label %._crit_edge9, !llvm.loop !11
._crit_edge9: ; preds = %277
br label %282
282: ; preds = %._crit_edge9, %267
%283 = load ptr, ptr %6, align 8
store ptr %283, ptr %7, align 8
%284 = load ptr, ptr %6, align 8
store ptr %284, ptr %9, align 8
%285 = load ptr, ptr %6, align 8
%286 = call i32 @strlen(ptr noundef %285)
store i32 %286, ptr %15, align 4
store i32 0, ptr %17, align 4
store i32 0, ptr %16, align 4
store i32 0, ptr %14, align 4
%287 = load i32, ptr %14, align 4
%288 = load i32, ptr %15, align 4
%289 = icmp slt i32 %287, %288
br i1 %289, label %.lr.ph11, label %374
.lr.ph11: ; preds = %282
br label %290
290: ; preds = %.lr.ph11, %368
%291 = load ptr, ptr %6, align 8
%292 = load i32, ptr %14, align 4
%293 = sext i32 %292 to i64
%294 = getelementptr inbounds i8, ptr %291, i64 %293
%295 = load i8, ptr %294, align 1
%296 = sext i8 %295 to i32
%297 = icmp eq i32 %296, 44
br i1 %297, label %298, label %329
298: ; preds = %290
%299 = load ptr, ptr %6, align 8
%300 = load i32, ptr %14, align 4
%301 = sub nsw i32 %300, 1
%302 = sext i32 %301 to i64
%303 = getelementptr inbounds i8, ptr %299, i64 %302
store ptr %303, ptr %9, align 8
%304 = load ptr, ptr %9, align 8
%305 = load ptr, ptr %7, align 8
%306 = ptrtoint ptr %304 to i64
%307 = ptrtoint ptr %305 to i64
%308 = sub i64 %306, %307
%309 = add nsw i64 %308, 1
%310 = trunc i64 %309 to i32
store i32 %310, ptr %16, align 4
%311 = getelementptr inbounds [5 x i8], ptr %12, i64 0, i64 0
%312 = call i32 @memset(ptr noundef %311, i32 noundef 0, i32 noundef 5)
%313 = getelementptr inbounds [5 x i8], ptr %12, i64 0, i64 0
%314 = load ptr, ptr %7, align 8
%315 = load i32, ptr %16, align 4
%316 = call i32 @strncpy(ptr noundef %313, ptr noundef %314, i32 noundef %315)
%317 = getelementptr inbounds [5 x i8], ptr %12, i64 0, i64 0
%318 = call i32 @sscanf(ptr noundef %317, ptr noundef @.str.6, ptr noundef %17)
%319 = load i32, ptr %17, align 4
%320 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %319)
%321 = load i32, ptr %17, align 4
%322 = sext i32 %321 to i64
%323 = getelementptr inbounds [255 x i32], ptr %13, i64 0, i64 %322
store i32 1, ptr %323, align 4
%324 = load ptr, ptr %6, align 8
%325 = load i32, ptr %14, align 4
%326 = add nsw i32 %325, 1
%327 = sext i32 %326 to i64
%328 = getelementptr inbounds i8, ptr %324, i64 %327
store ptr %328, ptr %7, align 8
br label %368
329: ; preds = %290
%330 = load i32, ptr %14, align 4
%331 = load i32, ptr %15, align 4
%332 = sub nsw i32 %331, 1
%333 = icmp eq i32 %330, %332
br i1 %333, label %334, label %367
334: ; preds = %329
%335 = load ptr, ptr %6, align 8
%336 = load i32, ptr %14, align 4
%337 = sext i32 %336 to i64
%338 = getelementptr inbounds i8, ptr %335, i64 %337
%339 = load i8, ptr %338, align 1
%340 = sext i8 %339 to i32
%341 = icmp ne i32 %340, 44
br i1 %341, label %342, label %367
342: ; preds = %334
%343 = load ptr, ptr %6, align 8
%344 = load i32, ptr %14, align 4
%345 = sext i32 %344 to i64
%346 = getelementptr inbounds i8, ptr %343, i64 %345
store ptr %346, ptr %9, align 8
%347 = load ptr, ptr %9, align 8
%348 = load ptr, ptr %7, align 8
%349 = ptrtoint ptr %347 to i64
%350 = ptrtoint ptr %348 to i64
%351 = sub i64 %349, %350
%352 = add nsw i64 %351, 1
%353 = trunc i64 %352 to i32
store i32 %353, ptr %16, align 4
%354 = getelementptr inbounds [5 x i8], ptr %12, i64 0, i64 0
%355 = call i32 @memset(ptr noundef %354, i32 noundef 0, i32 noundef 5)
%356 = getelementptr inbounds [5 x i8], ptr %12, i64 0, i64 0
%357 = load ptr, ptr %7, align 8
%358 = load i32, ptr %16, align 4
%359 = call i32 @strncpy(ptr noundef %356, ptr noundef %357, i32 noundef %358)
%360 = getelementptr inbounds [5 x i8], ptr %12, i64 0, i64 0
%361 = call i32 @sscanf(ptr noundef %360, ptr noundef @.str.6, ptr noundef %17)
%362 = load i32, ptr %17, align 4
%363 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %362)
%364 = load i32, ptr %17, align 4
%365 = sext i32 %364 to i64
%366 = getelementptr inbounds [255 x i32], ptr %13, i64 0, i64 %365
store i32 1, ptr %366, align 4
br label %367
367: ; preds = %342, %334, %329
br label %368
368: ; preds = %367, %298
%369 = load i32, ptr %14, align 4
%370 = add nsw i32 %369, 1
store i32 %370, ptr %14, align 4
%371 = load i32, ptr %14, align 4
%372 = load i32, ptr %15, align 4
%373 = icmp slt i32 %371, %372
br i1 %373, label %290, label %._crit_edge12, !llvm.loop !12
._crit_edge12: ; preds = %368
br label %374
374: ; preds = %._crit_edge12, %282
store i32 0, ptr %15, align 4
store i32 0, ptr %14, align 4
%375 = load i32, ptr %14, align 4
%376 = icmp slt i32 %375, 255
br i1 %376, label %.lr.ph14, label %392
.lr.ph14: ; preds = %374
br label %377
377: ; preds = %.lr.ph14, %387
%378 = load i32, ptr %14, align 4
%379 = sext i32 %378 to i64
%380 = getelementptr inbounds [255 x i32], ptr %13, i64 0, i64 %379
%381 = load i32, ptr %380, align 4
%382 = icmp eq i32 %381, 1
br i1 %382, label %383, label %386
383: ; preds = %377
%384 = load i32, ptr %14, align 4
%385 = call i32 (ptr, ...) @printf(ptr noundef @.str.8, i32 noundef %384)
br label %386
386: ; preds = %383, %377
br label %387
387: ; preds = %386
%388 = load i32, ptr %14, align 4
%389 = add nsw i32 %388, 1
store i32 %389, ptr %14, align 4
%390 = load i32, ptr %14, align 4
%391 = icmp slt i32 %390, 255
br i1 %391, label %377, label %._crit_edge15, !llvm.loop !13
._crit_edge15: ; preds = %387
br label %392
392: ; preds = %._crit_edge15, %374
%393 = load ptr, ptr %6, align 8
%394 = icmp ne ptr %393, null
br i1 %394, label %395, label %402
395: ; preds = %392
%396 = load ptr, ptr %6, align 8
%397 = call i32 @strlen(ptr noundef %396)
%398 = icmp ne i32 %397, 0
br i1 %398, label %399, label %402
399: ; preds = %395
%400 = load ptr, ptr %6, align 8
%401 = call i32 @free(ptr noundef %400)
br label %402
402: ; preds = %399, %395, %392
store i32 0, ptr %3, align 4
br label %403
403: ; preds = %402, %251, %247, %212, %189, %153, %68, %30
%404 = load i32, ptr %3, align 4
ret i32 %404
}
declare i64 @strtoul(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare ptr @malloc(i64 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @isdigit(i8 noundef signext) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
|
; ModuleID = '/tmp/tmp8_xi_stf.c'
source_filename = "/tmp/tmp8_xi_stf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @GPS_Math_Orthog_EN_To_LatLon(double noundef %0, double noundef %1, ptr noundef %2, ptr noundef %3, double noundef %4, double noundef %5, double noundef %6, double noundef %7, double noundef %8, double noundef %9) #0 {
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca double, align 8
%16 = alloca double, align 8
%17 = alloca double, align 8
%18 = alloca double, align 8
%19 = alloca double, align 8
%20 = alloca double, align 8
%21 = alloca double, align 8
%22 = alloca double, align 8
%23 = alloca double, align 8
%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
%29 = alloca double, align 8
%30 = alloca double, align 8
%31 = alloca double, align 8
%32 = alloca double, align 8
%33 = alloca double, align 8
%34 = alloca double, align 8
%35 = alloca double, align 8
%36 = alloca double, align 8
%37 = alloca double, align 8
%38 = alloca double, align 8
store double %0, ptr %11, align 8
store double %1, ptr %12, align 8
store ptr %2, ptr %13, align 8
store ptr %3, ptr %14, align 8
store double %4, ptr %15, align 8
store double %5, ptr %16, align 8
store double %6, ptr %17, align 8
store double %7, ptr %18, align 8
store double %8, ptr %19, align 8
store double %9, ptr %20, align 8
%39 = load double, ptr %15, align 8
%40 = call double @GPS_Math_Deg_To_Rad(double noundef %39)
store double %40, ptr %15, align 8
%41 = load double, ptr %16, align 8
%42 = call double @GPS_Math_Deg_To_Rad(double noundef %41)
store double %42, ptr %16, align 8
store double 0x401921FB5444261E, ptr %21, align 8
store double 0x3FF921FB5444261E, ptr %22, align 8
%43 = load double, ptr %16, align 8
%44 = fcmp ogt double %43, 0x400921FB5444261E
br i1 %44, label %45, label %49
45: ; preds = %10
%46 = load double, ptr %21, align 8
%47 = load double, ptr %16, align 8
%48 = fsub double %47, %46
store double %48, ptr %16, align 8
br label %49
49: ; preds = %45, %10
%50 = load double, ptr %19, align 8
%51 = load double, ptr %19, align 8
%52 = fmul double %50, %51
store double %52, ptr %23, align 8
%53 = load double, ptr %20, align 8
%54 = load double, ptr %20, align 8
%55 = fmul double %53, %54
store double %55, ptr %24, align 8
%56 = load double, ptr %23, align 8
%57 = load double, ptr %24, align 8
%58 = fsub double %56, %57
%59 = load double, ptr %23, align 8
%60 = fdiv double %58, %59
store double %60, ptr %25, align 8
%61 = load double, ptr %25, align 8
%62 = load double, ptr %25, align 8
%63 = fmul double %61, %62
store double %63, ptr %26, align 8
%64 = load double, ptr %25, align 8
%65 = load double, ptr %26, align 8
%66 = fmul double %64, %65
store double %66, ptr %27, align 8
%67 = load double, ptr %19, align 8
%68 = load double, ptr %25, align 8
%69 = fdiv double %68, 6.000000e+00
%70 = fsub double 1.000000e+00, %69
%71 = load double, ptr %26, align 8
%72 = fmul double 1.700000e+01, %71
%73 = fdiv double %72, 3.600000e+02
%74 = fsub double %70, %73
%75 = load double, ptr %27, align 8
%76 = fmul double 6.700000e+01, %75
%77 = fdiv double %76, 3.024000e+03
%78 = fsub double %74, %77
%79 = fmul double %67, %78
store double %79, ptr %28, align 8
%80 = load double, ptr %15, align 8
%81 = call double @sin(double noundef %80) #4
store double %81, ptr %29, align 8
%82 = load double, ptr %15, align 8
%83 = call double @cos(double noundef %82) #4
store double %83, ptr %30, align 8
%84 = load double, ptr %11, align 8
%85 = load double, ptr %17, align 8
%86 = fsub double %84, %85
store double %86, ptr %31, align 8
%87 = load double, ptr %12, align 8
%88 = load double, ptr %18, align 8
%89 = fsub double %87, %88
store double %89, ptr %32, align 8
%90 = load double, ptr %31, align 8
%91 = load double, ptr %32, align 8
%92 = fdiv double %90, %91
%93 = call double @atan(double noundef %92) #4
store double %93, ptr %34, align 8
%94 = load double, ptr %31, align 8
%95 = load double, ptr %31, align 8
%96 = load double, ptr %32, align 8
%97 = load double, ptr %32, align 8
%98 = fmul double %96, %97
%99 = call double @llvm.fmuladd.f64(double %94, double %95, double %98)
%100 = call double @pow(double noundef %99, double noundef 5.000000e-01) #4
store double %100, ptr %33, align 8
%101 = load double, ptr %33, align 8
%102 = fcmp une double %101, 0.000000e+00
br i1 %102, label %108, label %103
103: ; preds = %49
%104 = load double, ptr %15, align 8
%105 = load ptr, ptr %13, align 8
store double %104, ptr %105, align 8
%106 = load double, ptr %16, align 8
%107 = load ptr, ptr %14, align 8
store double %106, ptr %107, align 8
br label %179
108: ; preds = %49
%109 = load double, ptr %33, align 8
%110 = load double, ptr %28, align 8
%111 = fdiv double %109, %110
store double %111, ptr %35, align 8
%112 = load double, ptr %35, align 8
%113 = fcmp ogt double %112, 1.000000e+00
br i1 %113, label %114, label %115
114: ; preds = %108
store double 1.000000e+00, ptr %35, align 8
br label %120
115: ; preds = %108
%116 = load double, ptr %35, align 8
%117 = fcmp olt double %116, -1.000000e+00
br i1 %117, label %118, label %119
118: ; preds = %115
store double -1.000000e+00, ptr %35, align 8
br label %119
119: ; preds = %118, %115
br label %120
120: ; preds = %119, %114
%121 = load double, ptr %35, align 8
%122 = call double @asin(double noundef %121) #4
store double %122, ptr %36, align 8
%123 = load double, ptr %36, align 8
%124 = call double @sin(double noundef %123) #4
store double %124, ptr %37, align 8
%125 = load double, ptr %36, align 8
%126 = call double @cos(double noundef %125) #4
store double %126, ptr %38, align 8
%127 = load double, ptr %38, align 8
%128 = load double, ptr %29, align 8
%129 = load double, ptr %32, align 8
%130 = load double, ptr %37, align 8
%131 = fmul double %129, %130
%132 = load double, ptr %30, align 8
%133 = fmul double %131, %132
%134 = load double, ptr %33, align 8
%135 = fdiv double %133, %134
%136 = call double @llvm.fmuladd.f64(double %127, double %128, double %135)
%137 = call double @asin(double noundef %136) #4
%138 = load ptr, ptr %13, align 8
store double %137, ptr %138, align 8
%139 = load double, ptr %15, align 8
%140 = load double, ptr %22, align 8
%141 = fcmp oeq double %139, %140
br i1 %141, label %142, label %147
142: ; preds = %120
%143 = load double, ptr %16, align 8
%144 = load double, ptr %34, align 8
%145 = fsub double %143, %144
%146 = load ptr, ptr %14, align 8
store double %145, ptr %146, align 8
br label %178
147: ; preds = %120
%148 = load double, ptr %15, align 8
%149 = load double, ptr %22, align 8
%150 = fneg double %149
%151 = fcmp oeq double %148, %150
br i1 %151, label %152, label %157
152: ; preds = %147
%153 = load double, ptr %16, align 8
%154 = load double, ptr %34, align 8
%155 = fadd double %153, %154
%156 = load ptr, ptr %14, align 8
store double %155, ptr %156, align 8
br label %177
157: ; preds = %147
%158 = load double, ptr %16, align 8
%159 = load double, ptr %31, align 8
%160 = load double, ptr %37, align 8
%161 = fmul double %159, %160
%162 = load double, ptr %33, align 8
%163 = load double, ptr %30, align 8
%164 = fmul double %162, %163
%165 = load double, ptr %38, align 8
%166 = load double, ptr %32, align 8
%167 = load double, ptr %29, align 8
%168 = fmul double %166, %167
%169 = load double, ptr %37, align 8
%170 = fmul double %168, %169
%171 = fneg double %170
%172 = call double @llvm.fmuladd.f64(double %164, double %165, double %171)
%173 = fdiv double %161, %172
%174 = call double @atan(double noundef %173) #4
%175 = fadd double %158, %174
%176 = load ptr, ptr %14, align 8
store double %175, ptr %176, align 8
br label %177
177: ; preds = %157, %152
br label %178
178: ; preds = %177, %142
br label %179
179: ; preds = %178, %103
%180 = load ptr, ptr %13, align 8
%181 = load double, ptr %180, align 8
%182 = load double, ptr %22, align 8
%183 = fcmp ogt double %181, %182
br i1 %183, label %184, label %187
184: ; preds = %179
%185 = load double, ptr %22, align 8
%186 = load ptr, ptr %13, align 8
store double %185, ptr %186, align 8
br label %198
187: ; preds = %179
%188 = load ptr, ptr %13, align 8
%189 = load double, ptr %188, align 8
%190 = load double, ptr %22, align 8
%191 = fneg double %190
%192 = fcmp olt double %189, %191
br i1 %192, label %193, label %197
193: ; preds = %187
%194 = load double, ptr %22, align 8
%195 = fneg double %194
%196 = load ptr, ptr %13, align 8
store double %195, ptr %196, align 8
br label %197
197: ; preds = %193, %187
br label %198
198: ; preds = %197, %184
%199 = load ptr, ptr %14, align 8
%200 = load double, ptr %199, align 8
%201 = fcmp ogt double %200, 0x400921FB5444261E
br i1 %201, label %202, label %207
202: ; preds = %198
%203 = load double, ptr %21, align 8
%204 = load ptr, ptr %14, align 8
%205 = load double, ptr %204, align 8
%206 = fsub double %205, %203
store double %206, ptr %204, align 8
br label %207
207: ; preds = %202, %198
%208 = load ptr, ptr %14, align 8
%209 = load double, ptr %208, align 8
%210 = fcmp olt double %209, 0xC00921FB5444261E
br i1 %210, label %211, label %216
211: ; preds = %207
%212 = load double, ptr %21, align 8
%213 = load ptr, ptr %14, align 8
%214 = load double, ptr %213, align 8
%215 = fadd double %214, %212
store double %215, ptr %213, align 8
br label %216
216: ; preds = %211, %207
%217 = load ptr, ptr %14, align 8
%218 = load double, ptr %217, align 8
%219 = fcmp ogt double %218, 0x400921FB5444261E
br i1 %219, label %220, label %222
220: ; preds = %216
%221 = load ptr, ptr %14, align 8
store double 0x400921FB5444261E, ptr %221, align 8
br label %229
222: ; preds = %216
%223 = load ptr, ptr %14, align 8
%224 = load double, ptr %223, align 8
%225 = fcmp olt double %224, 0xC00921FB5444261E
br i1 %225, label %226, label %228
226: ; preds = %222
%227 = load ptr, ptr %14, align 8
store double 0xC00921FB5444261E, ptr %227, align 8
br label %228
228: ; preds = %226, %222
br label %229
229: ; preds = %228, %220
%230 = load ptr, ptr %14, align 8
%231 = load double, ptr %230, align 8
%232 = call double @GPS_Math_Rad_To_Deg(double noundef %231)
%233 = load ptr, ptr %14, align 8
store double %232, ptr %233, align 8
%234 = load ptr, ptr %13, align 8
%235 = load double, ptr %234, align 8
%236 = call double @GPS_Math_Rad_To_Deg(double noundef %235)
%237 = load ptr, ptr %13, align 8
store double %236, ptr %237, align 8
ret void
}
declare double @GPS_Math_Deg_To_Rad(double noundef) #1
; Function Attrs: nounwind
declare double @sin(double noundef) #2
; Function Attrs: nounwind
declare double @cos(double noundef) #2
; Function Attrs: nounwind
declare double @atan(double noundef) #2
; Function Attrs: nounwind
declare double @pow(double noundef, double noundef) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
; Function Attrs: nounwind
declare double @asin(double noundef) #2
declare double @GPS_Math_Rad_To_Deg(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" }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8_xi_stf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @GPS_Math_Orthog_EN_To_LatLon(double noundef %0, double noundef %1, ptr noundef %2, ptr noundef %3, double noundef %4, double noundef %5, double noundef %6, double noundef %7, double noundef %8, double noundef %9) #0 {
%11 = alloca double, align 8
%12 = alloca double, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca double, align 8
%16 = alloca double, align 8
%17 = alloca double, align 8
%18 = alloca double, align 8
%19 = alloca double, align 8
%20 = alloca double, align 8
%21 = alloca double, align 8
%22 = alloca double, align 8
%23 = alloca double, align 8
%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
%29 = alloca double, align 8
%30 = alloca double, align 8
%31 = alloca double, align 8
%32 = alloca double, align 8
%33 = alloca double, align 8
%34 = alloca double, align 8
%35 = alloca double, align 8
%36 = alloca double, align 8
%37 = alloca double, align 8
%38 = alloca double, align 8
store double %0, ptr %11, align 8
store double %1, ptr %12, align 8
store ptr %2, ptr %13, align 8
store ptr %3, ptr %14, align 8
store double %4, ptr %15, align 8
store double %5, ptr %16, align 8
store double %6, ptr %17, align 8
store double %7, ptr %18, align 8
store double %8, ptr %19, align 8
store double %9, ptr %20, align 8
%39 = load double, ptr %15, align 8
%40 = call double @GPS_Math_Deg_To_Rad(double noundef %39)
store double %40, ptr %15, align 8
%41 = load double, ptr %16, align 8
%42 = call double @GPS_Math_Deg_To_Rad(double noundef %41)
store double %42, ptr %16, align 8
store double 0x401921FB5444261E, ptr %21, align 8
store double 0x3FF921FB5444261E, ptr %22, align 8
%43 = load double, ptr %16, align 8
%44 = fcmp ogt double %43, 0x400921FB5444261E
br i1 %44, label %45, label %49
45: ; preds = %10
%46 = load double, ptr %21, align 8
%47 = load double, ptr %16, align 8
%48 = fsub double %47, %46
store double %48, ptr %16, align 8
br label %49
49: ; preds = %45, %10
%50 = load double, ptr %19, align 8
%51 = load double, ptr %19, align 8
%52 = fmul double %50, %51
store double %52, ptr %23, align 8
%53 = load double, ptr %20, align 8
%54 = load double, ptr %20, align 8
%55 = fmul double %53, %54
store double %55, ptr %24, align 8
%56 = load double, ptr %23, align 8
%57 = load double, ptr %24, align 8
%58 = fsub double %56, %57
%59 = load double, ptr %23, align 8
%60 = fdiv double %58, %59
store double %60, ptr %25, align 8
%61 = load double, ptr %25, align 8
%62 = load double, ptr %25, align 8
%63 = fmul double %61, %62
store double %63, ptr %26, align 8
%64 = load double, ptr %25, align 8
%65 = load double, ptr %26, align 8
%66 = fmul double %64, %65
store double %66, ptr %27, align 8
%67 = load double, ptr %19, align 8
%68 = load double, ptr %25, align 8
%69 = fdiv double %68, 6.000000e+00
%70 = fsub double 1.000000e+00, %69
%71 = load double, ptr %26, align 8
%72 = fmul double 1.700000e+01, %71
%73 = fdiv double %72, 3.600000e+02
%74 = fsub double %70, %73
%75 = load double, ptr %27, align 8
%76 = fmul double 6.700000e+01, %75
%77 = fdiv double %76, 3.024000e+03
%78 = fsub double %74, %77
%79 = fmul double %67, %78
store double %79, ptr %28, align 8
%80 = load double, ptr %15, align 8
%81 = call double @sin(double noundef %80) #4
store double %81, ptr %29, align 8
%82 = load double, ptr %15, align 8
%83 = call double @cos(double noundef %82) #4
store double %83, ptr %30, align 8
%84 = load double, ptr %11, align 8
%85 = load double, ptr %17, align 8
%86 = fsub double %84, %85
store double %86, ptr %31, align 8
%87 = load double, ptr %12, align 8
%88 = load double, ptr %18, align 8
%89 = fsub double %87, %88
store double %89, ptr %32, align 8
%90 = load double, ptr %31, align 8
%91 = load double, ptr %32, align 8
%92 = fdiv double %90, %91
%93 = call double @atan(double noundef %92) #4
store double %93, ptr %34, align 8
%94 = load double, ptr %31, align 8
%95 = load double, ptr %31, align 8
%96 = load double, ptr %32, align 8
%97 = load double, ptr %32, align 8
%98 = fmul double %96, %97
%99 = call double @llvm.fmuladd.f64(double %94, double %95, double %98)
%100 = call double @pow(double noundef %99, double noundef 5.000000e-01) #4
store double %100, ptr %33, align 8
%101 = load double, ptr %33, align 8
%102 = fcmp une double %101, 0.000000e+00
br i1 %102, label %108, label %103
103: ; preds = %49
%104 = load double, ptr %15, align 8
%105 = load ptr, ptr %13, align 8
store double %104, ptr %105, align 8
%106 = load double, ptr %16, align 8
%107 = load ptr, ptr %14, align 8
store double %106, ptr %107, align 8
br label %179
108: ; preds = %49
%109 = load double, ptr %33, align 8
%110 = load double, ptr %28, align 8
%111 = fdiv double %109, %110
store double %111, ptr %35, align 8
%112 = load double, ptr %35, align 8
%113 = fcmp ogt double %112, 1.000000e+00
br i1 %113, label %114, label %115
114: ; preds = %108
store double 1.000000e+00, ptr %35, align 8
br label %120
115: ; preds = %108
%116 = load double, ptr %35, align 8
%117 = fcmp olt double %116, -1.000000e+00
br i1 %117, label %118, label %119
118: ; preds = %115
store double -1.000000e+00, ptr %35, align 8
br label %119
119: ; preds = %118, %115
br label %120
120: ; preds = %119, %114
%121 = load double, ptr %35, align 8
%122 = call double @asin(double noundef %121) #4
store double %122, ptr %36, align 8
%123 = load double, ptr %36, align 8
%124 = call double @sin(double noundef %123) #4
store double %124, ptr %37, align 8
%125 = load double, ptr %36, align 8
%126 = call double @cos(double noundef %125) #4
store double %126, ptr %38, align 8
%127 = load double, ptr %38, align 8
%128 = load double, ptr %29, align 8
%129 = load double, ptr %32, align 8
%130 = load double, ptr %37, align 8
%131 = fmul double %129, %130
%132 = load double, ptr %30, align 8
%133 = fmul double %131, %132
%134 = load double, ptr %33, align 8
%135 = fdiv double %133, %134
%136 = call double @llvm.fmuladd.f64(double %127, double %128, double %135)
%137 = call double @asin(double noundef %136) #4
%138 = load ptr, ptr %13, align 8
store double %137, ptr %138, align 8
%139 = load double, ptr %15, align 8
%140 = load double, ptr %22, align 8
%141 = fcmp oeq double %139, %140
br i1 %141, label %142, label %147
142: ; preds = %120
%143 = load double, ptr %16, align 8
%144 = load double, ptr %34, align 8
%145 = fsub double %143, %144
%146 = load ptr, ptr %14, align 8
store double %145, ptr %146, align 8
br label %178
147: ; preds = %120
%148 = load double, ptr %15, align 8
%149 = load double, ptr %22, align 8
%150 = fneg double %149
%151 = fcmp oeq double %148, %150
br i1 %151, label %152, label %157
152: ; preds = %147
%153 = load double, ptr %16, align 8
%154 = load double, ptr %34, align 8
%155 = fadd double %153, %154
%156 = load ptr, ptr %14, align 8
store double %155, ptr %156, align 8
br label %177
157: ; preds = %147
%158 = load double, ptr %16, align 8
%159 = load double, ptr %31, align 8
%160 = load double, ptr %37, align 8
%161 = fmul double %159, %160
%162 = load double, ptr %33, align 8
%163 = load double, ptr %30, align 8
%164 = fmul double %162, %163
%165 = load double, ptr %38, align 8
%166 = load double, ptr %32, align 8
%167 = load double, ptr %29, align 8
%168 = fmul double %166, %167
%169 = load double, ptr %37, align 8
%170 = fmul double %168, %169
%171 = fneg double %170
%172 = call double @llvm.fmuladd.f64(double %164, double %165, double %171)
%173 = fdiv double %161, %172
%174 = call double @atan(double noundef %173) #4
%175 = fadd double %158, %174
%176 = load ptr, ptr %14, align 8
store double %175, ptr %176, align 8
br label %177
177: ; preds = %157, %152
br label %178
178: ; preds = %177, %142
br label %179
179: ; preds = %178, %103
%180 = load ptr, ptr %13, align 8
%181 = load double, ptr %180, align 8
%182 = load double, ptr %22, align 8
%183 = fcmp ogt double %181, %182
br i1 %183, label %184, label %187
184: ; preds = %179
%185 = load double, ptr %22, align 8
%186 = load ptr, ptr %13, align 8
store double %185, ptr %186, align 8
br label %198
187: ; preds = %179
%188 = load ptr, ptr %13, align 8
%189 = load double, ptr %188, align 8
%190 = load double, ptr %22, align 8
%191 = fneg double %190
%192 = fcmp olt double %189, %191
br i1 %192, label %193, label %197
193: ; preds = %187
%194 = load double, ptr %22, align 8
%195 = fneg double %194
%196 = load ptr, ptr %13, align 8
store double %195, ptr %196, align 8
br label %197
197: ; preds = %193, %187
br label %198
198: ; preds = %197, %184
%199 = load ptr, ptr %14, align 8
%200 = load double, ptr %199, align 8
%201 = fcmp ogt double %200, 0x400921FB5444261E
br i1 %201, label %202, label %207
202: ; preds = %198
%203 = load double, ptr %21, align 8
%204 = load ptr, ptr %14, align 8
%205 = load double, ptr %204, align 8
%206 = fsub double %205, %203
store double %206, ptr %204, align 8
br label %207
207: ; preds = %202, %198
%208 = load ptr, ptr %14, align 8
%209 = load double, ptr %208, align 8
%210 = fcmp olt double %209, 0xC00921FB5444261E
br i1 %210, label %211, label %216
211: ; preds = %207
%212 = load double, ptr %21, align 8
%213 = load ptr, ptr %14, align 8
%214 = load double, ptr %213, align 8
%215 = fadd double %214, %212
store double %215, ptr %213, align 8
br label %216
216: ; preds = %211, %207
%217 = load ptr, ptr %14, align 8
%218 = load double, ptr %217, align 8
%219 = fcmp ogt double %218, 0x400921FB5444261E
br i1 %219, label %220, label %222
220: ; preds = %216
%221 = load ptr, ptr %14, align 8
store double 0x400921FB5444261E, ptr %221, align 8
br label %229
222: ; preds = %216
%223 = load ptr, ptr %14, align 8
%224 = load double, ptr %223, align 8
%225 = fcmp olt double %224, 0xC00921FB5444261E
br i1 %225, label %226, label %228
226: ; preds = %222
%227 = load ptr, ptr %14, align 8
store double 0xC00921FB5444261E, ptr %227, align 8
br label %228
228: ; preds = %226, %222
br label %229
229: ; preds = %228, %220
%230 = load ptr, ptr %14, align 8
%231 = load double, ptr %230, align 8
%232 = call double @GPS_Math_Rad_To_Deg(double noundef %231)
%233 = load ptr, ptr %14, align 8
store double %232, ptr %233, align 8
%234 = load ptr, ptr %13, align 8
%235 = load double, ptr %234, align 8
%236 = call double @GPS_Math_Rad_To_Deg(double noundef %235)
%237 = load ptr, ptr %13, align 8
store double %236, ptr %237, align 8
ret void
}
declare double @GPS_Math_Deg_To_Rad(double noundef) #1
; Function Attrs: nounwind
declare double @sin(double noundef) #2
; Function Attrs: nounwind
declare double @cos(double noundef) #2
; Function Attrs: nounwind
declare double @atan(double noundef) #2
; Function Attrs: nounwind
declare double @pow(double noundef, double noundef) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3
; Function Attrs: nounwind
declare double @asin(double noundef) #2
declare double @GPS_Math_Rad_To_Deg(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" }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpnfyxa82p.c'
source_filename = "/tmp/tmpnfyxa82p.c"
target datalayout = "e-m:e-p270: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.tm = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @date_get_dayofyear() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = call i32 @time(ptr noundef null)
store i32 %3, ptr %1, align 4
%4 = call ptr @localtime(ptr noundef %1)
store ptr %4, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = getelementptr inbounds %struct.tm, ptr %5, i32 0, i32 0
%7 = load i32, ptr %6, align 4
ret i32 %7
}
declare i32 @time(ptr noundef) #1
declare ptr @localtime(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/tmpnfyxa82p.c"
target datalayout = "e-m:e-p270: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.tm = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @date_get_dayofyear() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = call i32 @time(ptr noundef null)
store i32 %3, ptr %1, align 4
%4 = call ptr @localtime(ptr noundef %1)
store ptr %4, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = getelementptr inbounds %struct.tm, ptr %5, i32 0, i32 0
%7 = load i32, ptr %6, align 4
ret i32 %7
}
declare i32 @time(ptr noundef) #1
declare ptr @localtime(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/tmpdnq14a8g.c'
source_filename = "/tmp/tmpdnq14a8g.c"
target datalayout = "e-m:e-p270: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/tmpdnq14a8g.c"
target datalayout = "e-m:e-p270: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/tmpc7tg3mdk.c'
source_filename = "/tmp/tmpc7tg3mdk.c"
target datalayout = "e-m:e-p270: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.arr = private unnamed_addr constant [12 x i32] [i32 3, i32 5, i32 9, i32 10, i32 13, i32 100, i32 32, i32 41, i32 -86, i32 1, i32 0, i32 2], align 16
@.str = private unnamed_addr constant [25 x i8] c"The unsorted array is: \0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"\09%d\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.3 = private unnamed_addr constant [23 x i8] c"the sorted array is: \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [12 x i32], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.arr, i64 48, i1 false)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 12, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %4, align 4
br label %6
6: ; preds = %16, %0
%7 = load i32, ptr %4, align 4
%8 = load i32, ptr %3, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %10, label %19
10: ; preds = %6
%11 = load i32, ptr %4, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds [12 x i32], ptr %2, i64 0, i64 %12
%14 = load i32, ptr %13, align 4
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %14)
br label %16
16: ; preds = %10
%17 = load i32, ptr %4, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %4, align 4
br label %6, !llvm.loop !6
19: ; preds = %6
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%21 = getelementptr inbounds [12 x i32], ptr %2, i64 0, i64 0
%22 = load i32, ptr %3, align 4
%23 = call i32 @quick_sort(ptr noundef %21, i32 noundef %22)
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 0, ptr %4, align 4
br label %25
25: ; preds = %35, %19
%26 = load i32, ptr %4, align 4
%27 = load i32, ptr %3, align 4
%28 = icmp slt i32 %26, %27
br i1 %28, label %29, label %38
29: ; preds = %25
%30 = load i32, ptr %4, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [12 x i32], ptr %2, i64 0, i64 %31
%33 = load i32, ptr %32, align 4
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %33)
br label %35
35: ; preds = %29
%36 = load i32, ptr %4, align 4
%37 = add nsw i32 %36, 1
store i32 %37, ptr %4, align 4
br label %25, !llvm.loop !8
38: ; preds = %25
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%40 = load i32, ptr %1, align 4
ret i32 %40
}
; 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
declare i32 @quick_sort(ptr noundef, 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpc7tg3mdk.c"
target datalayout = "e-m:e-p270: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.arr = private unnamed_addr constant [12 x i32] [i32 3, i32 5, i32 9, i32 10, i32 13, i32 100, i32 32, i32 41, i32 -86, i32 1, i32 0, i32 2], align 16
@.str = private unnamed_addr constant [25 x i8] c"The unsorted array is: \0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"\09%d\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.3 = private unnamed_addr constant [23 x i8] c"the sorted array is: \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [12 x i32], align 16
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.arr, i64 48, i1 false)
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 12, ptr %3, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %4, align 4
%6 = load i32, ptr %4, align 4
%7 = load i32, ptr %3, align 4
%8 = icmp slt i32 %6, %7
br i1 %8, label %.lr.ph, label %21
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %15
%10 = load i32, ptr %4, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [12 x i32], ptr %2, i64 0, i64 %11
%13 = load i32, ptr %12, align 4
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %13)
br label %15
15: ; preds = %9
%16 = load i32, ptr %4, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %4, align 4
%18 = load i32, ptr %4, align 4
%19 = load i32, ptr %3, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %15
br label %21
21: ; preds = %._crit_edge, %0
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%23 = getelementptr inbounds [12 x i32], ptr %2, i64 0, i64 0
%24 = load i32, ptr %3, align 4
%25 = call i32 @quick_sort(ptr noundef %23, i32 noundef %24)
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 0, ptr %4, align 4
%27 = load i32, ptr %4, align 4
%28 = load i32, ptr %3, align 4
%29 = icmp slt i32 %27, %28
br i1 %29, label %.lr.ph2, label %42
.lr.ph2: ; preds = %21
br label %30
30: ; preds = %.lr.ph2, %36
%31 = load i32, ptr %4, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [12 x i32], ptr %2, i64 0, i64 %32
%34 = load i32, ptr %33, align 4
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %34)
br label %36
36: ; preds = %30
%37 = load i32, ptr %4, align 4
%38 = add nsw i32 %37, 1
store i32 %38, ptr %4, align 4
%39 = load i32, ptr %4, align 4
%40 = load i32, ptr %3, align 4
%41 = icmp slt i32 %39, %40
br i1 %41, label %30, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %36
br label %42
42: ; preds = %._crit_edge3, %21
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%44 = load i32, ptr %1, align 4
ret i32 %44
}
; 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
declare i32 @quick_sort(ptr noundef, 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpgcpn_iwy.c'
source_filename = "/tmp/tmpgcpn_iwy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"T\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"asc \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ini_cal(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef %16, ptr noundef %17, ptr noundef %18, ptr noundef %19, ptr noundef %20, ptr noundef %21, ptr noundef %22, ptr noundef %23, ptr noundef %24, ptr noundef %25, ptr noundef %26, ptr noundef %27, ptr noundef %28, ptr noundef %29, ptr noundef %30, ptr noundef %31, ptr noundef %32, ptr noundef %33, ptr noundef %34, ptr noundef %35, ptr noundef %36, ptr noundef %37, ptr noundef %38, ptr noundef %39, ptr noundef %40, ptr noundef %41, ptr noundef %42, ptr noundef %43, ptr noundef %44, ptr noundef %45, ptr noundef %46, ptr noundef %47, ptr noundef %48, ptr noundef %49, ptr noundef %50, ptr noundef %51, ptr noundef %52, ptr noundef %53, ptr noundef %54, ptr noundef %55, ptr noundef %56, ptr noundef %57, ptr noundef %58, ptr noundef %59, ptr noundef %60, ptr noundef %61, ptr noundef %62, ptr noundef %63, ptr noundef %64, ptr noundef %65, ptr noundef %66, ptr noundef %67, ptr noundef %68, ptr noundef %69, ptr noundef %70, ptr noundef %71, ptr noundef %72, ptr noundef %73, ptr noundef %74, ptr noundef %75, ptr noundef %76, ptr noundef %77, ptr noundef %78, ptr noundef %79, ptr noundef %80, ptr noundef %81, ptr noundef %82, ptr noundef %83, ptr noundef %84, ptr noundef %85, ptr noundef %86, ptr noundef %87, ptr noundef %88, ptr noundef %89, ptr noundef %90, ptr noundef %91, ptr noundef %92, ptr noundef %93, ptr noundef %94, ptr noundef %95, ptr noundef %96) #0 {
%98 = alloca ptr, align 8
%99 = alloca ptr, align 8
%100 = alloca ptr, align 8
%101 = alloca ptr, align 8
%102 = alloca ptr, align 8
%103 = alloca ptr, align 8
%104 = alloca ptr, align 8
%105 = alloca ptr, align 8
%106 = alloca ptr, align 8
%107 = alloca ptr, align 8
%108 = alloca ptr, align 8
%109 = alloca ptr, align 8
%110 = alloca ptr, align 8
%111 = alloca ptr, align 8
%112 = alloca ptr, align 8
%113 = alloca ptr, align 8
%114 = alloca ptr, align 8
%115 = alloca ptr, align 8
%116 = alloca ptr, align 8
%117 = alloca ptr, align 8
%118 = alloca ptr, align 8
%119 = alloca ptr, align 8
%120 = alloca ptr, align 8
%121 = alloca ptr, align 8
%122 = alloca ptr, align 8
%123 = alloca ptr, align 8
%124 = alloca ptr, align 8
%125 = alloca ptr, align 8
%126 = alloca ptr, align 8
%127 = alloca ptr, align 8
%128 = alloca ptr, align 8
%129 = alloca ptr, align 8
%130 = alloca ptr, align 8
%131 = alloca ptr, align 8
%132 = alloca ptr, align 8
%133 = alloca ptr, align 8
%134 = alloca ptr, align 8
%135 = alloca ptr, align 8
%136 = alloca ptr, align 8
%137 = alloca ptr, align 8
%138 = alloca ptr, align 8
%139 = alloca ptr, align 8
%140 = alloca ptr, align 8
%141 = alloca ptr, align 8
%142 = alloca ptr, align 8
%143 = alloca ptr, align 8
%144 = alloca ptr, align 8
%145 = alloca ptr, align 8
%146 = alloca ptr, align 8
%147 = alloca ptr, align 8
%148 = alloca ptr, align 8
%149 = alloca ptr, align 8
%150 = alloca ptr, align 8
%151 = alloca ptr, align 8
%152 = alloca ptr, align 8
%153 = alloca ptr, align 8
%154 = alloca ptr, align 8
%155 = alloca ptr, align 8
%156 = alloca ptr, align 8
%157 = alloca ptr, align 8
%158 = alloca ptr, align 8
%159 = alloca ptr, align 8
%160 = alloca ptr, align 8
%161 = alloca ptr, align 8
%162 = alloca ptr, align 8
%163 = alloca ptr, align 8
%164 = alloca ptr, align 8
%165 = alloca ptr, align 8
%166 = alloca ptr, align 8
%167 = alloca ptr, align 8
%168 = alloca ptr, align 8
%169 = alloca ptr, align 8
%170 = alloca ptr, align 8
%171 = alloca ptr, align 8
%172 = alloca ptr, align 8
%173 = alloca ptr, align 8
%174 = alloca ptr, align 8
%175 = alloca ptr, align 8
%176 = alloca ptr, align 8
%177 = alloca ptr, align 8
%178 = alloca ptr, align 8
%179 = alloca ptr, align 8
%180 = alloca ptr, align 8
%181 = alloca ptr, align 8
%182 = alloca ptr, align 8
%183 = alloca ptr, align 8
%184 = alloca ptr, align 8
%185 = alloca ptr, align 8
%186 = alloca ptr, align 8
%187 = alloca ptr, align 8
%188 = alloca ptr, align 8
%189 = alloca ptr, align 8
%190 = alloca ptr, align 8
%191 = alloca ptr, align 8
%192 = alloca ptr, align 8
%193 = alloca ptr, align 8
%194 = alloca ptr, align 8
%195 = alloca i32, align 4
store ptr %0, ptr %98, align 8
store ptr %1, ptr %99, align 8
store ptr %2, ptr %100, align 8
store ptr %3, ptr %101, align 8
store ptr %4, ptr %102, align 8
store ptr %5, ptr %103, align 8
store ptr %6, ptr %104, align 8
store ptr %7, ptr %105, align 8
store ptr %8, ptr %106, align 8
store ptr %9, ptr %107, align 8
store ptr %10, ptr %108, align 8
store ptr %11, ptr %109, align 8
store ptr %12, ptr %110, align 8
store ptr %13, ptr %111, align 8
store ptr %14, ptr %112, align 8
store ptr %15, ptr %113, align 8
store ptr %16, ptr %114, align 8
store ptr %17, ptr %115, align 8
store ptr %18, ptr %116, align 8
store ptr %19, ptr %117, align 8
store ptr %20, ptr %118, align 8
store ptr %21, ptr %119, align 8
store ptr %22, ptr %120, align 8
store ptr %23, ptr %121, align 8
store ptr %24, ptr %122, align 8
store ptr %25, ptr %123, align 8
store ptr %26, ptr %124, align 8
store ptr %27, ptr %125, align 8
store ptr %28, ptr %126, align 8
store ptr %29, ptr %127, align 8
store ptr %30, ptr %128, align 8
store ptr %31, ptr %129, align 8
store ptr %32, ptr %130, align 8
store ptr %33, ptr %131, align 8
store ptr %34, ptr %132, align 8
store ptr %35, ptr %133, align 8
store ptr %36, ptr %134, align 8
store ptr %37, ptr %135, align 8
store ptr %38, ptr %136, align 8
store ptr %39, ptr %137, align 8
store ptr %40, ptr %138, align 8
store ptr %41, ptr %139, align 8
store ptr %42, ptr %140, align 8
store ptr %43, ptr %141, align 8
store ptr %44, ptr %142, align 8
store ptr %45, ptr %143, align 8
store ptr %46, ptr %144, align 8
store ptr %47, ptr %145, align 8
store ptr %48, ptr %146, align 8
store ptr %49, ptr %147, align 8
store ptr %50, ptr %148, align 8
store ptr %51, ptr %149, align 8
store ptr %52, ptr %150, align 8
store ptr %53, ptr %151, align 8
store ptr %54, ptr %152, align 8
store ptr %55, ptr %153, align 8
store ptr %56, ptr %154, align 8
store ptr %57, ptr %155, align 8
store ptr %58, ptr %156, align 8
store ptr %59, ptr %157, align 8
store ptr %60, ptr %158, align 8
store ptr %61, ptr %159, align 8
store ptr %62, ptr %160, align 8
store ptr %63, ptr %161, align 8
store ptr %64, ptr %162, align 8
store ptr %65, ptr %163, align 8
store ptr %66, ptr %164, align 8
store ptr %67, ptr %165, align 8
store ptr %68, ptr %166, align 8
store ptr %69, ptr %167, align 8
store ptr %70, ptr %168, align 8
store ptr %71, ptr %169, align 8
store ptr %72, ptr %170, align 8
store ptr %73, ptr %171, align 8
store ptr %74, ptr %172, align 8
store ptr %75, ptr %173, align 8
store ptr %76, ptr %174, align 8
store ptr %77, ptr %175, align 8
store ptr %78, ptr %176, align 8
store ptr %79, ptr %177, align 8
store ptr %80, ptr %178, align 8
store ptr %81, ptr %179, align 8
store ptr %82, ptr %180, align 8
store ptr %83, ptr %181, align 8
store ptr %84, ptr %182, align 8
store ptr %85, ptr %183, align 8
store ptr %86, ptr %184, align 8
store ptr %87, ptr %185, align 8
store ptr %88, ptr %186, align 8
store ptr %89, ptr %187, align 8
store ptr %90, ptr %188, align 8
store ptr %91, ptr %189, align 8
store ptr %92, ptr %190, align 8
store ptr %93, ptr %191, align 8
store ptr %94, ptr %192, align 8
store ptr %95, ptr %193, align 8
store ptr %96, ptr %194, align 8
store i32 132, ptr %195, align 4
br label %196
196: ; preds = %205, %97
%197 = load i32, ptr %195, align 4
%198 = icmp slt i32 %197, 792
br i1 %198, label %199, label %208
199: ; preds = %196
%200 = load ptr, ptr %98, align 8
%201 = load i32, ptr %195, align 4
%202 = sext i32 %201 to i64
%203 = getelementptr inbounds i8, ptr %200, i64 %202
%204 = call i32 @strcpy1(ptr noundef %203, ptr noundef @.str, i32 noundef 1)
br label %205
205: ; preds = %199
%206 = load i32, ptr %195, align 4
%207 = add nsw i32 %206, 1
store i32 %207, ptr %195, align 4
br label %196, !llvm.loop !6
208: ; preds = %196
store i32 0, ptr %195, align 4
br label %209
209: ; preds = %218, %208
%210 = load i32, ptr %195, align 4
%211 = icmp slt i32 %210, 132
br i1 %211, label %212, label %221
212: ; preds = %209
%213 = load ptr, ptr %100, align 8
%214 = load i32, ptr %195, align 4
%215 = sext i32 %214 to i64
%216 = getelementptr inbounds i8, ptr %213, i64 %215
%217 = call i32 @strcpy1(ptr noundef %216, ptr noundef @.str, i32 noundef 1)
br label %218
218: ; preds = %212
%219 = load i32, ptr %195, align 4
%220 = add nsw i32 %219, 1
store i32 %220, ptr %195, align 4
br label %209, !llvm.loop !8
221: ; preds = %209
%222 = load ptr, ptr %114, align 8
store i32 0, ptr %222, align 4
%223 = load ptr, ptr %182, align 8
store i32 0, ptr %223, align 4
%224 = load ptr, ptr %110, align 8
store i32 0, ptr %224, align 4
%225 = load ptr, ptr %116, align 8
store i32 0, ptr %225, align 4
%226 = load ptr, ptr %185, align 8
store i32 0, ptr %226, align 4
%227 = load ptr, ptr %111, align 8
store i32 0, ptr %227, align 4
%228 = load ptr, ptr %112, align 8
store i32 0, ptr %228, align 4
%229 = load ptr, ptr %186, align 8
store i32 0, ptr %229, align 4
%230 = load ptr, ptr %108, align 8
store i32 0, ptr %230, align 4
%231 = load ptr, ptr %118, align 8
store i32 0, ptr %231, align 4
%232 = load ptr, ptr %188, align 8
store i32 0, ptr %232, align 4
%233 = load ptr, ptr %109, align 8
store i32 0, ptr %233, align 4
%234 = load ptr, ptr %117, align 8
store i32 0, ptr %234, align 4
%235 = load ptr, ptr %187, align 8
store i32 0, ptr %235, align 4
store i32 0, ptr %195, align 4
br label %236
236: ; preds = %244, %221
%237 = load i32, ptr %195, align 4
%238 = icmp slt i32 %237, 2
br i1 %238, label %239, label %247
239: ; preds = %236
%240 = load ptr, ptr %103, align 8
%241 = load i32, ptr %195, align 4
%242 = sext i32 %241 to i64
%243 = getelementptr inbounds i32, ptr %240, i64 %242
store i32 0, ptr %243, align 4
br label %244
244: ; preds = %239
%245 = load i32, ptr %195, align 4
%246 = add nsw i32 %245, 1
store i32 %246, ptr %195, align 4
br label %236, !llvm.loop !9
247: ; preds = %236
%248 = load ptr, ptr %103, align 8
%249 = getelementptr inbounds i32, ptr %248, i64 2
store i32 -2, ptr %249, align 4
%250 = load ptr, ptr %164, align 8
store i32 0, ptr %250, align 4
%251 = load ptr, ptr %189, align 8
store i32 0, ptr %251, align 4
%252 = load ptr, ptr %115, align 8
store i32 0, ptr %252, align 4
%253 = load ptr, ptr %190, align 8
store i32 0, ptr %253, align 4
%254 = load ptr, ptr %174, align 8
store i32 0, ptr %254, align 4
%255 = load ptr, ptr %107, align 8
store i32 1, ptr %255, align 4
%256 = load ptr, ptr %134, align 8
store i32 -1, ptr %256, align 4
%257 = load ptr, ptr %158, align 8
store i32 -1, ptr %257, align 4
%258 = load ptr, ptr %137, align 8
store i32 0, ptr %258, align 4
%259 = load ptr, ptr %135, align 8
store i32 0, ptr %259, align 4
%260 = load ptr, ptr %160, align 8
store i32 0, ptr %260, align 4
%261 = load ptr, ptr %169, align 8
store i32 0, ptr %261, align 4
%262 = load ptr, ptr %191, align 8
store i32 0, ptr %262, align 4
%263 = load ptr, ptr %149, align 8
store i32 0, ptr %263, align 4
%264 = load ptr, ptr %153, align 8
store i32 0, ptr %264, align 4
%265 = load ptr, ptr %161, align 8
store i32 0, ptr %265, align 4
%266 = load ptr, ptr %145, align 8
store i32 0, ptr %266, align 4
%267 = load ptr, ptr %101, align 8
%268 = call i32 @strcpy1(ptr noundef %267, ptr noundef @.str.1, i32 noundef 1)
%269 = load ptr, ptr %102, align 8
%270 = call i32 @strcpy1(ptr noundef %269, ptr noundef @.str.1, i32 noundef 1)
%271 = load ptr, ptr %171, align 8
store i32 0, ptr %271, align 4
%272 = load ptr, ptr %146, align 8
store i32 0, ptr %272, align 4
%273 = load ptr, ptr %121, align 8
store i32 0, ptr %273, align 4
%274 = load ptr, ptr %132, align 8
store i32 0, ptr %274, align 4
%275 = load ptr, ptr %167, align 8
store i32 0, ptr %275, align 4
%276 = load ptr, ptr %168, align 8
store i32 0, ptr %276, align 4
%277 = load ptr, ptr %170, align 8
store i32 0, ptr %277, align 4
%278 = load ptr, ptr %172, align 8
store i32 0, ptr %278, align 4
%279 = load ptr, ptr %173, align 8
store i32 0, ptr %279, align 4
%280 = load ptr, ptr %131, align 8
store i32 0, ptr %280, align 4
%281 = load ptr, ptr %136, align 8
store i32 0, ptr %281, align 4
%282 = load ptr, ptr %162, align 8
store i32 0, ptr %282, align 4
store i32 0, ptr %195, align 4
br label %283
283: ; preds = %291, %247
%284 = load i32, ptr %195, align 4
%285 = icmp slt i32 %284, 14
br i1 %285, label %286, label %294
286: ; preds = %283
%287 = load ptr, ptr %180, align 8
%288 = load i32, ptr %195, align 4
%289 = sext i32 %288 to i64
%290 = getelementptr inbounds double, ptr %287, i64 %289
store double 0.000000e+00, ptr %290, align 8
br label %291
291: ; preds = %286
%292 = load i32, ptr %195, align 4
%293 = add nsw i32 %292, 1
store i32 %293, ptr %195, align 4
br label %283, !llvm.loop !10
294: ; preds = %283
%295 = load ptr, ptr %147, align 8
store i32 0, ptr %295, align 4
%296 = load ptr, ptr %148, align 8
store i32 0, ptr %296, align 4
%297 = load ptr, ptr %159, align 8
store i32 0, ptr %297, align 4
%298 = load ptr, ptr %156, align 8
store i32 0, ptr %298, align 4
%299 = load ptr, ptr %155, align 8
store i32 0, ptr %299, align 4
store i32 0, ptr %195, align 4
br label %300
300: ; preds = %308, %294
%301 = load i32, ptr %195, align 4
%302 = icmp slt i32 %301, 3
br i1 %302, label %303, label %311
303: ; preds = %300
%304 = load ptr, ptr %104, align 8
%305 = load i32, ptr %195, align 4
%306 = sext i32 %305 to i64
%307 = getelementptr inbounds i32, ptr %304, i64 %306
store i32 0, ptr %307, align 4
br label %308
308: ; preds = %303
%309 = load i32, ptr %195, align 4
%310 = add nsw i32 %309, 1
store i32 %310, ptr %195, align 4
br label %300, !llvm.loop !11
311: ; preds = %300
%312 = load ptr, ptr %150, align 8
store i32 0, ptr %312, align 4
%313 = load ptr, ptr %129, align 8
store i32 0, ptr %313, align 4
%314 = load ptr, ptr %165, align 8
store i32 0, ptr %314, align 4
%315 = load ptr, ptr %125, align 8
store i32 0, ptr %315, align 4
%316 = load ptr, ptr %128, align 8
store i32 0, ptr %316, align 4
%317 = load ptr, ptr %119, align 8
store i32 0, ptr %317, align 4
%318 = load ptr, ptr %163, align 8
store i32 0, ptr %318, align 4
%319 = load ptr, ptr %138, align 8
store i32 0, ptr %319, align 4
%320 = load ptr, ptr %139, align 8
store i32 0, ptr %320, align 4
%321 = load ptr, ptr %152, align 8
store i32 1, ptr %321, align 4
store i32 0, ptr %195, align 4
br label %322
322: ; preds = %330, %311
%323 = load i32, ptr %195, align 4
%324 = icmp slt i32 %323, 4
br i1 %324, label %325, label %333
325: ; preds = %322
%326 = load ptr, ptr %140, align 8
%327 = load i32, ptr %195, align 4
%328 = sext i32 %327 to i64
%329 = getelementptr inbounds i32, ptr %326, i64 %328
store i32 0, ptr %329, align 4
br label %330
330: ; preds = %325
%331 = load i32, ptr %195, align 4
%332 = add nsw i32 %331, 1
store i32 %332, ptr %195, align 4
br label %322, !llvm.loop !12
333: ; preds = %322
%334 = load ptr, ptr %141, align 8
store i32 0, ptr %334, align 4
%335 = load ptr, ptr %113, align 8
store i32 0, ptr %335, align 4
%336 = load ptr, ptr %166, align 8
store i32 0, ptr %336, align 4
%337 = load ptr, ptr %193, align 8
store i32 48, ptr %337, align 4
%338 = load ptr, ptr %175, align 8
store i32 0, ptr %338, align 4
%339 = load ptr, ptr %105, align 8
store i32 0, ptr %339, align 4
%340 = load ptr, ptr %184, align 8
store i32 0, ptr %340, align 4
store i32 0, ptr %195, align 4
br label %341
341: ; preds = %349, %333
%342 = load i32, ptr %195, align 4
%343 = icmp slt i32 %342, 2
br i1 %343, label %344, label %352
344: ; preds = %341
%345 = load ptr, ptr %127, align 8
%346 = load i32, ptr %195, align 4
%347 = sext i32 %346 to i64
%348 = getelementptr inbounds i32, ptr %345, i64 %347
store i32 1, ptr %348, align 4
br label %349
349: ; preds = %344
%350 = load i32, ptr %195, align 4
%351 = add nsw i32 %350, 1
store i32 %351, ptr %195, align 4
br label %341, !llvm.loop !13
352: ; preds = %341
%353 = load ptr, ptr %99, align 8
%354 = call i32 @strcpy1(ptr noundef %353, ptr noundef @.str.2, i32 noundef 4)
store i32 0, ptr %195, align 4
br label %355
355: ; preds = %363, %352
%356 = load i32, ptr %195, align 4
%357 = icmp slt i32 %356, 2
br i1 %357, label %358, label %366
358: ; preds = %355
%359 = load ptr, ptr %120, align 8
%360 = load i32, ptr %195, align 4
%361 = sext i32 %360 to i64
%362 = getelementptr inbounds i32, ptr %359, i64 %361
store i32 0, ptr %362, align 4
br label %363
363: ; preds = %358
%364 = load i32, ptr %195, align 4
%365 = add nsw i32 %364, 1
store i32 %365, ptr %195, align 4
br label %355, !llvm.loop !14
366: ; preds = %355
%367 = load ptr, ptr %122, align 8
%368 = getelementptr inbounds i32, ptr %367, i64 0
store i32 0, ptr %368, align 4
%369 = load ptr, ptr %144, align 8
store i32 0, ptr %369, align 4
store i32 0, ptr %195, align 4
br label %370
370: ; preds = %378, %366
%371 = load i32, ptr %195, align 4
%372 = icmp slt i32 %371, 2
br i1 %372, label %373, label %381
373: ; preds = %370
%374 = load ptr, ptr %142, align 8
%375 = load i32, ptr %195, align 4
%376 = sext i32 %375 to i64
%377 = getelementptr inbounds i32, ptr %374, i64 %376
store i32 0, ptr %377, align 4
br label %378
378: ; preds = %373
%379 = load i32, ptr %195, align 4
%380 = add nsw i32 %379, 1
store i32 %380, ptr %195, align 4
br label %370, !llvm.loop !15
381: ; preds = %370
%382 = load ptr, ptr %133, align 8
%383 = getelementptr inbounds i32, ptr %382, i64 0
store i32 0, ptr %383, align 4
%384 = load ptr, ptr %133, align 8
%385 = getelementptr inbounds i32, ptr %384, i64 1
store i32 3, ptr %385, align 4
%386 = load ptr, ptr %133, align 8
%387 = getelementptr inbounds i32, ptr %386, i64 2
store i32 1, ptr %387, align 4
%388 = load ptr, ptr %123, align 8
store i32 0, ptr %388, align 4
%389 = load ptr, ptr %192, align 8
store i32 20000000, ptr %389, align 4
store i32 0, ptr %195, align 4
br label %390
390: ; preds = %398, %381
%391 = load i32, ptr %195, align 4
%392 = icmp slt i32 %391, 3
br i1 %392, label %393, label %401
393: ; preds = %390
%394 = load ptr, ptr %106, align 8
%395 = load i32, ptr %195, align 4
%396 = sext i32 %395 to i64
%397 = getelementptr inbounds i32, ptr %394, i64 %396
store i32 0, ptr %397, align 4
br label %398
398: ; preds = %393
%399 = load i32, ptr %195, align 4
%400 = add nsw i32 %399, 1
store i32 %400, ptr %195, align 4
br label %390, !llvm.loop !16
401: ; preds = %390
store i32 0, ptr %195, align 4
br label %402
402: ; preds = %410, %401
%403 = load i32, ptr %195, align 4
%404 = icmp slt i32 %403, 2
br i1 %404, label %405, label %413
405: ; preds = %402
%406 = load ptr, ptr %179, align 8
%407 = load i32, ptr %195, align 4
%408 = sext i32 %407 to i64
%409 = getelementptr inbounds double, ptr %406, i64 %408
store double 0.000000e+00, ptr %409, align 8
br label %410
410: ; preds = %405
%411 = load i32, ptr %195, align 4
%412 = add nsw i32 %411, 1
store i32 %412, ptr %195, align 4
br label %402, !llvm.loop !17
413: ; preds = %402
%414 = load ptr, ptr %130, align 8
store i32 0, ptr %414, align 4
%415 = load ptr, ptr %124, align 8
store i32 0, ptr %415, align 4
%416 = load ptr, ptr %126, align 8
store i32 0, ptr %416, align 4
%417 = load ptr, ptr %154, align 8
store i32 0, ptr %417, align 4
%418 = load ptr, ptr %143, align 8
store i32 0, ptr %418, align 4
store i32 0, ptr %195, align 4
br label %419
419: ; preds = %427, %413
%420 = load i32, ptr %195, align 4
%421 = icmp slt i32 %420, 5
br i1 %421, label %422, label %430
422: ; preds = %419
%423 = load ptr, ptr %176, align 8
%424 = load i32, ptr %195, align 4
%425 = sext i32 %424 to i64
%426 = getelementptr inbounds double, ptr %423, i64 %425
store double 0.000000e+00, ptr %426, align 8
br label %427
427: ; preds = %422
%428 = load i32, ptr %195, align 4
%429 = add nsw i32 %428, 1
store i32 %429, ptr %195, align 4
br label %419, !llvm.loop !18
430: ; preds = %419
%431 = load ptr, ptr %177, align 8
%432 = getelementptr inbounds double, ptr %431, i64 0
store double 4.500000e+00, ptr %432, align 8
%433 = load ptr, ptr %177, align 8
%434 = getelementptr inbounds double, ptr %433, i64 1
store double 8.500000e+00, ptr %434, align 8
%435 = load ptr, ptr %177, align 8
%436 = getelementptr inbounds double, ptr %435, i64 2
store double 9.500000e+00, ptr %436, align 8
%437 = load ptr, ptr %177, align 8
%438 = getelementptr inbounds double, ptr %437, i64 3
store double 1.650000e+01, ptr %438, align 8
%439 = load ptr, ptr %177, align 8
%440 = getelementptr inbounds double, ptr %439, i64 4
store double 1.050000e+01, ptr %440, align 8
%441 = load ptr, ptr %177, align 8
%442 = getelementptr inbounds double, ptr %441, i64 5
store double 4.500000e+00, ptr %442, align 8
%443 = load ptr, ptr %177, align 8
%444 = getelementptr inbounds double, ptr %443, i64 6
store double 0.000000e+00, ptr %444, align 8
%445 = load ptr, ptr %177, align 8
%446 = getelementptr inbounds double, ptr %445, i64 7
store double 5.500000e+00, ptr %446, align 8
%447 = load ptr, ptr %177, align 8
%448 = getelementptr inbounds double, ptr %447, i64 8
store double 0.000000e+00, ptr %448, align 8
%449 = load ptr, ptr %177, align 8
%450 = getelementptr inbounds double, ptr %449, i64 9
store double 0.000000e+00, ptr %450, align 8
%451 = load ptr, ptr %177, align 8
%452 = getelementptr inbounds double, ptr %451, i64 10
store double 2.500000e-01, ptr %452, align 8
%453 = load ptr, ptr %177, align 8
%454 = getelementptr inbounds double, ptr %453, i64 11
store double 5.000000e-01, ptr %454, align 8
%455 = load ptr, ptr %177, align 8
%456 = getelementptr inbounds double, ptr %455, i64 12
store double 7.500000e-01, ptr %456, align 8
%457 = load ptr, ptr %177, align 8
%458 = getelementptr inbounds double, ptr %457, i64 13
store double 8.500000e-01, ptr %458, align 8
%459 = load ptr, ptr %177, align 8
%460 = getelementptr inbounds double, ptr %459, i64 14
store double 0.000000e+00, ptr %460, align 8
%461 = load ptr, ptr %177, align 8
%462 = getelementptr inbounds double, ptr %461, i64 15
store double 0.000000e+00, ptr %462, align 8
%463 = load ptr, ptr %177, align 8
%464 = getelementptr inbounds double, ptr %463, i64 16
store double 1.500000e+00, ptr %464, align 8
%465 = load ptr, ptr %177, align 8
%466 = getelementptr inbounds double, ptr %465, i64 17
store double 0.000000e+00, ptr %466, align 8
%467 = load ptr, ptr %177, align 8
%468 = getelementptr inbounds double, ptr %467, i64 18
store double 5.000000e-03, ptr %468, align 8
%469 = load ptr, ptr %177, align 8
%470 = getelementptr inbounds double, ptr %469, i64 19
store double 1.000000e-02, ptr %470, align 8
%471 = load ptr, ptr %177, align 8
%472 = getelementptr inbounds double, ptr %471, i64 20
store double 0.000000e+00, ptr %472, align 8
%473 = load ptr, ptr %177, align 8
%474 = getelementptr inbounds double, ptr %473, i64 21
store double 0.000000e+00, ptr %474, align 8
%475 = load ptr, ptr %177, align 8
%476 = getelementptr inbounds double, ptr %475, i64 22
store double 2.000000e-02, ptr %476, align 8
%477 = load ptr, ptr %177, align 8
%478 = getelementptr inbounds double, ptr %477, i64 23
store double 1.000000e-05, ptr %478, align 8
%479 = load ptr, ptr %177, align 8
%480 = getelementptr inbounds double, ptr %479, i64 24
store double 1.000000e-03, ptr %480, align 8
%481 = load ptr, ptr %177, align 8
%482 = getelementptr inbounds double, ptr %481, i64 25
store double 1.000000e-08, ptr %482, align 8
%483 = load ptr, ptr %177, align 8
%484 = getelementptr inbounds double, ptr %483, i64 26
store double 1.000000e+30, ptr %484, align 8
%485 = load ptr, ptr %177, align 8
%486 = getelementptr inbounds double, ptr %485, i64 27
store double 1.500000e+00, ptr %486, align 8
%487 = load ptr, ptr %177, align 8
%488 = getelementptr inbounds double, ptr %487, i64 28
store double 2.500000e-01, ptr %488, align 8
%489 = load ptr, ptr %177, align 8
%490 = getelementptr inbounds double, ptr %489, i64 29
store double 1.010000e+00, ptr %490, align 8
%491 = load ptr, ptr %177, align 8
%492 = getelementptr inbounds double, ptr %491, i64 30
store double 1.000000e+00, ptr %492, align 8
%493 = load ptr, ptr %177, align 8
%494 = getelementptr inbounds double, ptr %493, i64 31
store double 1.000000e+00, ptr %494, align 8
%495 = load ptr, ptr %177, align 8
%496 = getelementptr inbounds double, ptr %495, i64 32
store double 5.000000e-07, ptr %496, align 8
%497 = load ptr, ptr %177, align 8
%498 = getelementptr inbounds double, ptr %497, i64 33
store double 5.000000e-07, ptr %498, align 8
%499 = load ptr, ptr %177, align 8
%500 = getelementptr inbounds double, ptr %499, i64 34
store double 1.000000e-04, ptr %500, align 8
%501 = load ptr, ptr %177, align 8
%502 = getelementptr inbounds double, ptr %501, i64 35
store double 5.000000e-07, ptr %502, align 8
%503 = load ptr, ptr %177, align 8
%504 = getelementptr inbounds double, ptr %503, i64 36
store double 5.000000e-07, ptr %504, align 8
%505 = load ptr, ptr %177, align 8
%506 = getelementptr inbounds double, ptr %505, i64 37
store double 5.000000e-07, ptr %506, align 8
%507 = load ptr, ptr %177, align 8
%508 = getelementptr inbounds double, ptr %507, i64 38
store double 5.000000e-07, ptr %508, align 8
%509 = load ptr, ptr %177, align 8
%510 = getelementptr inbounds double, ptr %509, i64 39
store double -1.000000e+00, ptr %510, align 8
%511 = load ptr, ptr %177, align 8
%512 = getelementptr inbounds double, ptr %511, i64 40
store double 1.000000e+20, ptr %512, align 8
%513 = load ptr, ptr %177, align 8
%514 = getelementptr inbounds double, ptr %513, i64 41
store double 1.000000e+20, ptr %514, align 8
%515 = load ptr, ptr %177, align 8
%516 = getelementptr inbounds double, ptr %515, i64 42
store double 1.000000e+20, ptr %516, align 8
%517 = load ptr, ptr %177, align 8
%518 = getelementptr inbounds double, ptr %517, i64 43
store double 1.000000e+20, ptr %518, align 8
%519 = load ptr, ptr %177, align 8
%520 = getelementptr inbounds double, ptr %519, i64 44
store double 1.000000e+20, ptr %520, align 8
%521 = load ptr, ptr %177, align 8
%522 = getelementptr inbounds double, ptr %521, i64 45
store double 1.000000e+20, ptr %522, align 8
%523 = load ptr, ptr %177, align 8
%524 = getelementptr inbounds double, ptr %523, i64 46
store double 1.000000e+20, ptr %524, align 8
%525 = load ptr, ptr %177, align 8
%526 = getelementptr inbounds double, ptr %525, i64 47
store double 1.500000e+00, ptr %526, align 8
%527 = load ptr, ptr %177, align 8
%528 = getelementptr inbounds double, ptr %527, i64 48
store double 5.000000e-01, ptr %528, align 8
%529 = load ptr, ptr %177, align 8
%530 = getelementptr inbounds double, ptr %529, i64 49
store double 2.050000e+01, ptr %530, align 8
%531 = load ptr, ptr %177, align 8
%532 = getelementptr inbounds double, ptr %531, i64 50
store double 5.000000e-01, ptr %532, align 8
%533 = load ptr, ptr %177, align 8
%534 = getelementptr inbounds double, ptr %533, i64 51
store double 1.500000e+00, ptr %534, align 8
%535 = load ptr, ptr %177, align 8
%536 = getelementptr inbounds double, ptr %535, i64 52
store double 1.500000e+00, ptr %536, align 8
%537 = load ptr, ptr %177, align 8
%538 = getelementptr inbounds double, ptr %537, i64 53
store double 1.000000e-03, ptr %538, align 8
%539 = load ptr, ptr %177, align 8
%540 = getelementptr inbounds double, ptr %539, i64 54
store double 1.000000e-01, ptr %540, align 8
%541 = load ptr, ptr %177, align 8
%542 = getelementptr inbounds double, ptr %541, i64 55
store double 1.005000e+02, ptr %542, align 8
%543 = load ptr, ptr %177, align 8
%544 = getelementptr inbounds double, ptr %543, i64 56
store double 6.050000e+01, ptr %544, align 8
%545 = load ptr, ptr %178, align 8
%546 = getelementptr inbounds double, ptr %545, i64 0
store double 0.000000e+00, ptr %546, align 8
%547 = load ptr, ptr %178, align 8
%548 = getelementptr inbounds double, ptr %547, i64 1
store double 5.000000e-01, ptr %548, align 8
%549 = load ptr, ptr %181, align 8
store i32 0, ptr %549, align 4
%550 = load ptr, ptr %157, align 8
store i32 -1, ptr %550, align 4
%551 = load ptr, ptr %194, align 8
store double 0.000000e+00, ptr %551, align 8
%552 = load ptr, ptr %183, align 8
store i32 0, ptr %552, align 4
%553 = load ptr, ptr %151, align 8
store i32 0, ptr %553, align 4
%554 = load ptr, ptr %123, align 8
store i32 3, ptr %554, align 4
ret void
}
declare i32 @strcpy1(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}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
!15 = distinct !{!15, !7}
!16 = distinct !{!16, !7}
!17 = distinct !{!17, !7}
!18 = distinct !{!18, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgcpn_iwy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c" \00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"T\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"asc \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ini_cal(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef %16, ptr noundef %17, ptr noundef %18, ptr noundef %19, ptr noundef %20, ptr noundef %21, ptr noundef %22, ptr noundef %23, ptr noundef %24, ptr noundef %25, ptr noundef %26, ptr noundef %27, ptr noundef %28, ptr noundef %29, ptr noundef %30, ptr noundef %31, ptr noundef %32, ptr noundef %33, ptr noundef %34, ptr noundef %35, ptr noundef %36, ptr noundef %37, ptr noundef %38, ptr noundef %39, ptr noundef %40, ptr noundef %41, ptr noundef %42, ptr noundef %43, ptr noundef %44, ptr noundef %45, ptr noundef %46, ptr noundef %47, ptr noundef %48, ptr noundef %49, ptr noundef %50, ptr noundef %51, ptr noundef %52, ptr noundef %53, ptr noundef %54, ptr noundef %55, ptr noundef %56, ptr noundef %57, ptr noundef %58, ptr noundef %59, ptr noundef %60, ptr noundef %61, ptr noundef %62, ptr noundef %63, ptr noundef %64, ptr noundef %65, ptr noundef %66, ptr noundef %67, ptr noundef %68, ptr noundef %69, ptr noundef %70, ptr noundef %71, ptr noundef %72, ptr noundef %73, ptr noundef %74, ptr noundef %75, ptr noundef %76, ptr noundef %77, ptr noundef %78, ptr noundef %79, ptr noundef %80, ptr noundef %81, ptr noundef %82, ptr noundef %83, ptr noundef %84, ptr noundef %85, ptr noundef %86, ptr noundef %87, ptr noundef %88, ptr noundef %89, ptr noundef %90, ptr noundef %91, ptr noundef %92, ptr noundef %93, ptr noundef %94, ptr noundef %95, ptr noundef %96) #0 {
%98 = alloca ptr, align 8
%99 = alloca ptr, align 8
%100 = alloca ptr, align 8
%101 = alloca ptr, align 8
%102 = alloca ptr, align 8
%103 = alloca ptr, align 8
%104 = alloca ptr, align 8
%105 = alloca ptr, align 8
%106 = alloca ptr, align 8
%107 = alloca ptr, align 8
%108 = alloca ptr, align 8
%109 = alloca ptr, align 8
%110 = alloca ptr, align 8
%111 = alloca ptr, align 8
%112 = alloca ptr, align 8
%113 = alloca ptr, align 8
%114 = alloca ptr, align 8
%115 = alloca ptr, align 8
%116 = alloca ptr, align 8
%117 = alloca ptr, align 8
%118 = alloca ptr, align 8
%119 = alloca ptr, align 8
%120 = alloca ptr, align 8
%121 = alloca ptr, align 8
%122 = alloca ptr, align 8
%123 = alloca ptr, align 8
%124 = alloca ptr, align 8
%125 = alloca ptr, align 8
%126 = alloca ptr, align 8
%127 = alloca ptr, align 8
%128 = alloca ptr, align 8
%129 = alloca ptr, align 8
%130 = alloca ptr, align 8
%131 = alloca ptr, align 8
%132 = alloca ptr, align 8
%133 = alloca ptr, align 8
%134 = alloca ptr, align 8
%135 = alloca ptr, align 8
%136 = alloca ptr, align 8
%137 = alloca ptr, align 8
%138 = alloca ptr, align 8
%139 = alloca ptr, align 8
%140 = alloca ptr, align 8
%141 = alloca ptr, align 8
%142 = alloca ptr, align 8
%143 = alloca ptr, align 8
%144 = alloca ptr, align 8
%145 = alloca ptr, align 8
%146 = alloca ptr, align 8
%147 = alloca ptr, align 8
%148 = alloca ptr, align 8
%149 = alloca ptr, align 8
%150 = alloca ptr, align 8
%151 = alloca ptr, align 8
%152 = alloca ptr, align 8
%153 = alloca ptr, align 8
%154 = alloca ptr, align 8
%155 = alloca ptr, align 8
%156 = alloca ptr, align 8
%157 = alloca ptr, align 8
%158 = alloca ptr, align 8
%159 = alloca ptr, align 8
%160 = alloca ptr, align 8
%161 = alloca ptr, align 8
%162 = alloca ptr, align 8
%163 = alloca ptr, align 8
%164 = alloca ptr, align 8
%165 = alloca ptr, align 8
%166 = alloca ptr, align 8
%167 = alloca ptr, align 8
%168 = alloca ptr, align 8
%169 = alloca ptr, align 8
%170 = alloca ptr, align 8
%171 = alloca ptr, align 8
%172 = alloca ptr, align 8
%173 = alloca ptr, align 8
%174 = alloca ptr, align 8
%175 = alloca ptr, align 8
%176 = alloca ptr, align 8
%177 = alloca ptr, align 8
%178 = alloca ptr, align 8
%179 = alloca ptr, align 8
%180 = alloca ptr, align 8
%181 = alloca ptr, align 8
%182 = alloca ptr, align 8
%183 = alloca ptr, align 8
%184 = alloca ptr, align 8
%185 = alloca ptr, align 8
%186 = alloca ptr, align 8
%187 = alloca ptr, align 8
%188 = alloca ptr, align 8
%189 = alloca ptr, align 8
%190 = alloca ptr, align 8
%191 = alloca ptr, align 8
%192 = alloca ptr, align 8
%193 = alloca ptr, align 8
%194 = alloca ptr, align 8
%195 = alloca i32, align 4
store ptr %0, ptr %98, align 8
store ptr %1, ptr %99, align 8
store ptr %2, ptr %100, align 8
store ptr %3, ptr %101, align 8
store ptr %4, ptr %102, align 8
store ptr %5, ptr %103, align 8
store ptr %6, ptr %104, align 8
store ptr %7, ptr %105, align 8
store ptr %8, ptr %106, align 8
store ptr %9, ptr %107, align 8
store ptr %10, ptr %108, align 8
store ptr %11, ptr %109, align 8
store ptr %12, ptr %110, align 8
store ptr %13, ptr %111, align 8
store ptr %14, ptr %112, align 8
store ptr %15, ptr %113, align 8
store ptr %16, ptr %114, align 8
store ptr %17, ptr %115, align 8
store ptr %18, ptr %116, align 8
store ptr %19, ptr %117, align 8
store ptr %20, ptr %118, align 8
store ptr %21, ptr %119, align 8
store ptr %22, ptr %120, align 8
store ptr %23, ptr %121, align 8
store ptr %24, ptr %122, align 8
store ptr %25, ptr %123, align 8
store ptr %26, ptr %124, align 8
store ptr %27, ptr %125, align 8
store ptr %28, ptr %126, align 8
store ptr %29, ptr %127, align 8
store ptr %30, ptr %128, align 8
store ptr %31, ptr %129, align 8
store ptr %32, ptr %130, align 8
store ptr %33, ptr %131, align 8
store ptr %34, ptr %132, align 8
store ptr %35, ptr %133, align 8
store ptr %36, ptr %134, align 8
store ptr %37, ptr %135, align 8
store ptr %38, ptr %136, align 8
store ptr %39, ptr %137, align 8
store ptr %40, ptr %138, align 8
store ptr %41, ptr %139, align 8
store ptr %42, ptr %140, align 8
store ptr %43, ptr %141, align 8
store ptr %44, ptr %142, align 8
store ptr %45, ptr %143, align 8
store ptr %46, ptr %144, align 8
store ptr %47, ptr %145, align 8
store ptr %48, ptr %146, align 8
store ptr %49, ptr %147, align 8
store ptr %50, ptr %148, align 8
store ptr %51, ptr %149, align 8
store ptr %52, ptr %150, align 8
store ptr %53, ptr %151, align 8
store ptr %54, ptr %152, align 8
store ptr %55, ptr %153, align 8
store ptr %56, ptr %154, align 8
store ptr %57, ptr %155, align 8
store ptr %58, ptr %156, align 8
store ptr %59, ptr %157, align 8
store ptr %60, ptr %158, align 8
store ptr %61, ptr %159, align 8
store ptr %62, ptr %160, align 8
store ptr %63, ptr %161, align 8
store ptr %64, ptr %162, align 8
store ptr %65, ptr %163, align 8
store ptr %66, ptr %164, align 8
store ptr %67, ptr %165, align 8
store ptr %68, ptr %166, align 8
store ptr %69, ptr %167, align 8
store ptr %70, ptr %168, align 8
store ptr %71, ptr %169, align 8
store ptr %72, ptr %170, align 8
store ptr %73, ptr %171, align 8
store ptr %74, ptr %172, align 8
store ptr %75, ptr %173, align 8
store ptr %76, ptr %174, align 8
store ptr %77, ptr %175, align 8
store ptr %78, ptr %176, align 8
store ptr %79, ptr %177, align 8
store ptr %80, ptr %178, align 8
store ptr %81, ptr %179, align 8
store ptr %82, ptr %180, align 8
store ptr %83, ptr %181, align 8
store ptr %84, ptr %182, align 8
store ptr %85, ptr %183, align 8
store ptr %86, ptr %184, align 8
store ptr %87, ptr %185, align 8
store ptr %88, ptr %186, align 8
store ptr %89, ptr %187, align 8
store ptr %90, ptr %188, align 8
store ptr %91, ptr %189, align 8
store ptr %92, ptr %190, align 8
store ptr %93, ptr %191, align 8
store ptr %94, ptr %192, align 8
store ptr %95, ptr %193, align 8
store ptr %96, ptr %194, align 8
store i32 132, ptr %195, align 4
%196 = load i32, ptr %195, align 4
%197 = icmp slt i32 %196, 792
br i1 %197, label %.lr.ph, label %209
.lr.ph: ; preds = %97
br label %198
198: ; preds = %.lr.ph, %204
%199 = load ptr, ptr %98, align 8
%200 = load i32, ptr %195, align 4
%201 = sext i32 %200 to i64
%202 = getelementptr inbounds i8, ptr %199, i64 %201
%203 = call i32 @strcpy1(ptr noundef %202, ptr noundef @.str, i32 noundef 1)
br label %204
204: ; preds = %198
%205 = load i32, ptr %195, align 4
%206 = add nsw i32 %205, 1
store i32 %206, ptr %195, align 4
%207 = load i32, ptr %195, align 4
%208 = icmp slt i32 %207, 792
br i1 %208, label %198, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %204
br label %209
209: ; preds = %._crit_edge, %97
store i32 0, ptr %195, align 4
%210 = load i32, ptr %195, align 4
%211 = icmp slt i32 %210, 132
br i1 %211, label %.lr.ph2, label %223
.lr.ph2: ; preds = %209
br label %212
212: ; preds = %.lr.ph2, %218
%213 = load ptr, ptr %100, align 8
%214 = load i32, ptr %195, align 4
%215 = sext i32 %214 to i64
%216 = getelementptr inbounds i8, ptr %213, i64 %215
%217 = call i32 @strcpy1(ptr noundef %216, ptr noundef @.str, i32 noundef 1)
br label %218
218: ; preds = %212
%219 = load i32, ptr %195, align 4
%220 = add nsw i32 %219, 1
store i32 %220, ptr %195, align 4
%221 = load i32, ptr %195, align 4
%222 = icmp slt i32 %221, 132
br i1 %222, label %212, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %218
br label %223
223: ; preds = %._crit_edge3, %209
%224 = load ptr, ptr %114, align 8
store i32 0, ptr %224, align 4
%225 = load ptr, ptr %182, align 8
store i32 0, ptr %225, align 4
%226 = load ptr, ptr %110, align 8
store i32 0, ptr %226, align 4
%227 = load ptr, ptr %116, align 8
store i32 0, ptr %227, align 4
%228 = load ptr, ptr %185, align 8
store i32 0, ptr %228, align 4
%229 = load ptr, ptr %111, align 8
store i32 0, ptr %229, align 4
%230 = load ptr, ptr %112, align 8
store i32 0, ptr %230, align 4
%231 = load ptr, ptr %186, align 8
store i32 0, ptr %231, align 4
%232 = load ptr, ptr %108, align 8
store i32 0, ptr %232, align 4
%233 = load ptr, ptr %118, align 8
store i32 0, ptr %233, align 4
%234 = load ptr, ptr %188, align 8
store i32 0, ptr %234, align 4
%235 = load ptr, ptr %109, align 8
store i32 0, ptr %235, align 4
%236 = load ptr, ptr %117, align 8
store i32 0, ptr %236, align 4
%237 = load ptr, ptr %187, align 8
store i32 0, ptr %237, align 4
store i32 0, ptr %195, align 4
%238 = load i32, ptr %195, align 4
%239 = icmp slt i32 %238, 2
br i1 %239, label %.lr.ph5, label %250
.lr.ph5: ; preds = %223
br label %240
240: ; preds = %.lr.ph5, %245
%241 = load ptr, ptr %103, align 8
%242 = load i32, ptr %195, align 4
%243 = sext i32 %242 to i64
%244 = getelementptr inbounds i32, ptr %241, i64 %243
store i32 0, ptr %244, align 4
br label %245
245: ; preds = %240
%246 = load i32, ptr %195, align 4
%247 = add nsw i32 %246, 1
store i32 %247, ptr %195, align 4
%248 = load i32, ptr %195, align 4
%249 = icmp slt i32 %248, 2
br i1 %249, label %240, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %245
br label %250
250: ; preds = %._crit_edge6, %223
%251 = load ptr, ptr %103, align 8
%252 = getelementptr inbounds i32, ptr %251, i64 2
store i32 -2, ptr %252, align 4
%253 = load ptr, ptr %164, align 8
store i32 0, ptr %253, align 4
%254 = load ptr, ptr %189, align 8
store i32 0, ptr %254, align 4
%255 = load ptr, ptr %115, align 8
store i32 0, ptr %255, align 4
%256 = load ptr, ptr %190, align 8
store i32 0, ptr %256, align 4
%257 = load ptr, ptr %174, align 8
store i32 0, ptr %257, align 4
%258 = load ptr, ptr %107, align 8
store i32 1, ptr %258, align 4
%259 = load ptr, ptr %134, align 8
store i32 -1, ptr %259, align 4
%260 = load ptr, ptr %158, align 8
store i32 -1, ptr %260, align 4
%261 = load ptr, ptr %137, align 8
store i32 0, ptr %261, align 4
%262 = load ptr, ptr %135, align 8
store i32 0, ptr %262, align 4
%263 = load ptr, ptr %160, align 8
store i32 0, ptr %263, align 4
%264 = load ptr, ptr %169, align 8
store i32 0, ptr %264, align 4
%265 = load ptr, ptr %191, align 8
store i32 0, ptr %265, align 4
%266 = load ptr, ptr %149, align 8
store i32 0, ptr %266, align 4
%267 = load ptr, ptr %153, align 8
store i32 0, ptr %267, align 4
%268 = load ptr, ptr %161, align 8
store i32 0, ptr %268, align 4
%269 = load ptr, ptr %145, align 8
store i32 0, ptr %269, align 4
%270 = load ptr, ptr %101, align 8
%271 = call i32 @strcpy1(ptr noundef %270, ptr noundef @.str.1, i32 noundef 1)
%272 = load ptr, ptr %102, align 8
%273 = call i32 @strcpy1(ptr noundef %272, ptr noundef @.str.1, i32 noundef 1)
%274 = load ptr, ptr %171, align 8
store i32 0, ptr %274, align 4
%275 = load ptr, ptr %146, align 8
store i32 0, ptr %275, align 4
%276 = load ptr, ptr %121, align 8
store i32 0, ptr %276, align 4
%277 = load ptr, ptr %132, align 8
store i32 0, ptr %277, align 4
%278 = load ptr, ptr %167, align 8
store i32 0, ptr %278, align 4
%279 = load ptr, ptr %168, align 8
store i32 0, ptr %279, align 4
%280 = load ptr, ptr %170, align 8
store i32 0, ptr %280, align 4
%281 = load ptr, ptr %172, align 8
store i32 0, ptr %281, align 4
%282 = load ptr, ptr %173, align 8
store i32 0, ptr %282, align 4
%283 = load ptr, ptr %131, align 8
store i32 0, ptr %283, align 4
%284 = load ptr, ptr %136, align 8
store i32 0, ptr %284, align 4
%285 = load ptr, ptr %162, align 8
store i32 0, ptr %285, align 4
store i32 0, ptr %195, align 4
%286 = load i32, ptr %195, align 4
%287 = icmp slt i32 %286, 14
br i1 %287, label %.lr.ph8, label %298
.lr.ph8: ; preds = %250
br label %288
288: ; preds = %.lr.ph8, %293
%289 = load ptr, ptr %180, align 8
%290 = load i32, ptr %195, align 4
%291 = sext i32 %290 to i64
%292 = getelementptr inbounds double, ptr %289, i64 %291
store double 0.000000e+00, ptr %292, align 8
br label %293
293: ; preds = %288
%294 = load i32, ptr %195, align 4
%295 = add nsw i32 %294, 1
store i32 %295, ptr %195, align 4
%296 = load i32, ptr %195, align 4
%297 = icmp slt i32 %296, 14
br i1 %297, label %288, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %293
br label %298
298: ; preds = %._crit_edge9, %250
%299 = load ptr, ptr %147, align 8
store i32 0, ptr %299, align 4
%300 = load ptr, ptr %148, align 8
store i32 0, ptr %300, align 4
%301 = load ptr, ptr %159, align 8
store i32 0, ptr %301, align 4
%302 = load ptr, ptr %156, align 8
store i32 0, ptr %302, align 4
%303 = load ptr, ptr %155, align 8
store i32 0, ptr %303, align 4
store i32 0, ptr %195, align 4
%304 = load i32, ptr %195, align 4
%305 = icmp slt i32 %304, 3
br i1 %305, label %.lr.ph11, label %316
.lr.ph11: ; preds = %298
br label %306
306: ; preds = %.lr.ph11, %311
%307 = load ptr, ptr %104, align 8
%308 = load i32, ptr %195, align 4
%309 = sext i32 %308 to i64
%310 = getelementptr inbounds i32, ptr %307, i64 %309
store i32 0, ptr %310, align 4
br label %311
311: ; preds = %306
%312 = load i32, ptr %195, align 4
%313 = add nsw i32 %312, 1
store i32 %313, ptr %195, align 4
%314 = load i32, ptr %195, align 4
%315 = icmp slt i32 %314, 3
br i1 %315, label %306, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %311
br label %316
316: ; preds = %._crit_edge12, %298
%317 = load ptr, ptr %150, align 8
store i32 0, ptr %317, align 4
%318 = load ptr, ptr %129, align 8
store i32 0, ptr %318, align 4
%319 = load ptr, ptr %165, align 8
store i32 0, ptr %319, align 4
%320 = load ptr, ptr %125, align 8
store i32 0, ptr %320, align 4
%321 = load ptr, ptr %128, align 8
store i32 0, ptr %321, align 4
%322 = load ptr, ptr %119, align 8
store i32 0, ptr %322, align 4
%323 = load ptr, ptr %163, align 8
store i32 0, ptr %323, align 4
%324 = load ptr, ptr %138, align 8
store i32 0, ptr %324, align 4
%325 = load ptr, ptr %139, align 8
store i32 0, ptr %325, align 4
%326 = load ptr, ptr %152, align 8
store i32 1, ptr %326, align 4
store i32 0, ptr %195, align 4
%327 = load i32, ptr %195, align 4
%328 = icmp slt i32 %327, 4
br i1 %328, label %.lr.ph14, label %339
.lr.ph14: ; preds = %316
br label %329
329: ; preds = %.lr.ph14, %334
%330 = load ptr, ptr %140, align 8
%331 = load i32, ptr %195, align 4
%332 = sext i32 %331 to i64
%333 = getelementptr inbounds i32, ptr %330, i64 %332
store i32 0, ptr %333, align 4
br label %334
334: ; preds = %329
%335 = load i32, ptr %195, align 4
%336 = add nsw i32 %335, 1
store i32 %336, ptr %195, align 4
%337 = load i32, ptr %195, align 4
%338 = icmp slt i32 %337, 4
br i1 %338, label %329, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %334
br label %339
339: ; preds = %._crit_edge15, %316
%340 = load ptr, ptr %141, align 8
store i32 0, ptr %340, align 4
%341 = load ptr, ptr %113, align 8
store i32 0, ptr %341, align 4
%342 = load ptr, ptr %166, align 8
store i32 0, ptr %342, align 4
%343 = load ptr, ptr %193, align 8
store i32 48, ptr %343, align 4
%344 = load ptr, ptr %175, align 8
store i32 0, ptr %344, align 4
%345 = load ptr, ptr %105, align 8
store i32 0, ptr %345, align 4
%346 = load ptr, ptr %184, align 8
store i32 0, ptr %346, align 4
store i32 0, ptr %195, align 4
%347 = load i32, ptr %195, align 4
%348 = icmp slt i32 %347, 2
br i1 %348, label %.lr.ph17, label %359
.lr.ph17: ; preds = %339
br label %349
349: ; preds = %.lr.ph17, %354
%350 = load ptr, ptr %127, align 8
%351 = load i32, ptr %195, align 4
%352 = sext i32 %351 to i64
%353 = getelementptr inbounds i32, ptr %350, i64 %352
store i32 1, ptr %353, align 4
br label %354
354: ; preds = %349
%355 = load i32, ptr %195, align 4
%356 = add nsw i32 %355, 1
store i32 %356, ptr %195, align 4
%357 = load i32, ptr %195, align 4
%358 = icmp slt i32 %357, 2
br i1 %358, label %349, label %._crit_edge18, !llvm.loop !13
._crit_edge18: ; preds = %354
br label %359
359: ; preds = %._crit_edge18, %339
%360 = load ptr, ptr %99, align 8
%361 = call i32 @strcpy1(ptr noundef %360, ptr noundef @.str.2, i32 noundef 4)
store i32 0, ptr %195, align 4
%362 = load i32, ptr %195, align 4
%363 = icmp slt i32 %362, 2
br i1 %363, label %.lr.ph20, label %374
.lr.ph20: ; preds = %359
br label %364
364: ; preds = %.lr.ph20, %369
%365 = load ptr, ptr %120, align 8
%366 = load i32, ptr %195, align 4
%367 = sext i32 %366 to i64
%368 = getelementptr inbounds i32, ptr %365, i64 %367
store i32 0, ptr %368, align 4
br label %369
369: ; preds = %364
%370 = load i32, ptr %195, align 4
%371 = add nsw i32 %370, 1
store i32 %371, ptr %195, align 4
%372 = load i32, ptr %195, align 4
%373 = icmp slt i32 %372, 2
br i1 %373, label %364, label %._crit_edge21, !llvm.loop !14
._crit_edge21: ; preds = %369
br label %374
374: ; preds = %._crit_edge21, %359
%375 = load ptr, ptr %122, align 8
%376 = getelementptr inbounds i32, ptr %375, i64 0
store i32 0, ptr %376, align 4
%377 = load ptr, ptr %144, align 8
store i32 0, ptr %377, align 4
store i32 0, ptr %195, align 4
%378 = load i32, ptr %195, align 4
%379 = icmp slt i32 %378, 2
br i1 %379, label %.lr.ph23, label %390
.lr.ph23: ; preds = %374
br label %380
380: ; preds = %.lr.ph23, %385
%381 = load ptr, ptr %142, align 8
%382 = load i32, ptr %195, align 4
%383 = sext i32 %382 to i64
%384 = getelementptr inbounds i32, ptr %381, i64 %383
store i32 0, ptr %384, align 4
br label %385
385: ; preds = %380
%386 = load i32, ptr %195, align 4
%387 = add nsw i32 %386, 1
store i32 %387, ptr %195, align 4
%388 = load i32, ptr %195, align 4
%389 = icmp slt i32 %388, 2
br i1 %389, label %380, label %._crit_edge24, !llvm.loop !15
._crit_edge24: ; preds = %385
br label %390
390: ; preds = %._crit_edge24, %374
%391 = load ptr, ptr %133, align 8
%392 = getelementptr inbounds i32, ptr %391, i64 0
store i32 0, ptr %392, align 4
%393 = load ptr, ptr %133, align 8
%394 = getelementptr inbounds i32, ptr %393, i64 1
store i32 3, ptr %394, align 4
%395 = load ptr, ptr %133, align 8
%396 = getelementptr inbounds i32, ptr %395, i64 2
store i32 1, ptr %396, align 4
%397 = load ptr, ptr %123, align 8
store i32 0, ptr %397, align 4
%398 = load ptr, ptr %192, align 8
store i32 20000000, ptr %398, align 4
store i32 0, ptr %195, align 4
%399 = load i32, ptr %195, align 4
%400 = icmp slt i32 %399, 3
br i1 %400, label %.lr.ph26, label %411
.lr.ph26: ; preds = %390
br label %401
401: ; preds = %.lr.ph26, %406
%402 = load ptr, ptr %106, align 8
%403 = load i32, ptr %195, align 4
%404 = sext i32 %403 to i64
%405 = getelementptr inbounds i32, ptr %402, i64 %404
store i32 0, ptr %405, align 4
br label %406
406: ; preds = %401
%407 = load i32, ptr %195, align 4
%408 = add nsw i32 %407, 1
store i32 %408, ptr %195, align 4
%409 = load i32, ptr %195, align 4
%410 = icmp slt i32 %409, 3
br i1 %410, label %401, label %._crit_edge27, !llvm.loop !16
._crit_edge27: ; preds = %406
br label %411
411: ; preds = %._crit_edge27, %390
store i32 0, ptr %195, align 4
%412 = load i32, ptr %195, align 4
%413 = icmp slt i32 %412, 2
br i1 %413, label %.lr.ph29, label %424
.lr.ph29: ; preds = %411
br label %414
414: ; preds = %.lr.ph29, %419
%415 = load ptr, ptr %179, align 8
%416 = load i32, ptr %195, align 4
%417 = sext i32 %416 to i64
%418 = getelementptr inbounds double, ptr %415, i64 %417
store double 0.000000e+00, ptr %418, align 8
br label %419
419: ; preds = %414
%420 = load i32, ptr %195, align 4
%421 = add nsw i32 %420, 1
store i32 %421, ptr %195, align 4
%422 = load i32, ptr %195, align 4
%423 = icmp slt i32 %422, 2
br i1 %423, label %414, label %._crit_edge30, !llvm.loop !17
._crit_edge30: ; preds = %419
br label %424
424: ; preds = %._crit_edge30, %411
%425 = load ptr, ptr %130, align 8
store i32 0, ptr %425, align 4
%426 = load ptr, ptr %124, align 8
store i32 0, ptr %426, align 4
%427 = load ptr, ptr %126, align 8
store i32 0, ptr %427, align 4
%428 = load ptr, ptr %154, align 8
store i32 0, ptr %428, align 4
%429 = load ptr, ptr %143, align 8
store i32 0, ptr %429, align 4
store i32 0, ptr %195, align 4
%430 = load i32, ptr %195, align 4
%431 = icmp slt i32 %430, 5
br i1 %431, label %.lr.ph32, label %442
.lr.ph32: ; preds = %424
br label %432
432: ; preds = %.lr.ph32, %437
%433 = load ptr, ptr %176, align 8
%434 = load i32, ptr %195, align 4
%435 = sext i32 %434 to i64
%436 = getelementptr inbounds double, ptr %433, i64 %435
store double 0.000000e+00, ptr %436, align 8
br label %437
437: ; preds = %432
%438 = load i32, ptr %195, align 4
%439 = add nsw i32 %438, 1
store i32 %439, ptr %195, align 4
%440 = load i32, ptr %195, align 4
%441 = icmp slt i32 %440, 5
br i1 %441, label %432, label %._crit_edge33, !llvm.loop !18
._crit_edge33: ; preds = %437
br label %442
442: ; preds = %._crit_edge33, %424
%443 = load ptr, ptr %177, align 8
%444 = getelementptr inbounds double, ptr %443, i64 0
store double 4.500000e+00, ptr %444, align 8
%445 = load ptr, ptr %177, align 8
%446 = getelementptr inbounds double, ptr %445, i64 1
store double 8.500000e+00, ptr %446, align 8
%447 = load ptr, ptr %177, align 8
%448 = getelementptr inbounds double, ptr %447, i64 2
store double 9.500000e+00, ptr %448, align 8
%449 = load ptr, ptr %177, align 8
%450 = getelementptr inbounds double, ptr %449, i64 3
store double 1.650000e+01, ptr %450, align 8
%451 = load ptr, ptr %177, align 8
%452 = getelementptr inbounds double, ptr %451, i64 4
store double 1.050000e+01, ptr %452, align 8
%453 = load ptr, ptr %177, align 8
%454 = getelementptr inbounds double, ptr %453, i64 5
store double 4.500000e+00, ptr %454, align 8
%455 = load ptr, ptr %177, align 8
%456 = getelementptr inbounds double, ptr %455, i64 6
store double 0.000000e+00, ptr %456, align 8
%457 = load ptr, ptr %177, align 8
%458 = getelementptr inbounds double, ptr %457, i64 7
store double 5.500000e+00, ptr %458, align 8
%459 = load ptr, ptr %177, align 8
%460 = getelementptr inbounds double, ptr %459, i64 8
store double 0.000000e+00, ptr %460, align 8
%461 = load ptr, ptr %177, align 8
%462 = getelementptr inbounds double, ptr %461, i64 9
store double 0.000000e+00, ptr %462, align 8
%463 = load ptr, ptr %177, align 8
%464 = getelementptr inbounds double, ptr %463, i64 10
store double 2.500000e-01, ptr %464, align 8
%465 = load ptr, ptr %177, align 8
%466 = getelementptr inbounds double, ptr %465, i64 11
store double 5.000000e-01, ptr %466, align 8
%467 = load ptr, ptr %177, align 8
%468 = getelementptr inbounds double, ptr %467, i64 12
store double 7.500000e-01, ptr %468, align 8
%469 = load ptr, ptr %177, align 8
%470 = getelementptr inbounds double, ptr %469, i64 13
store double 8.500000e-01, ptr %470, align 8
%471 = load ptr, ptr %177, align 8
%472 = getelementptr inbounds double, ptr %471, i64 14
store double 0.000000e+00, ptr %472, align 8
%473 = load ptr, ptr %177, align 8
%474 = getelementptr inbounds double, ptr %473, i64 15
store double 0.000000e+00, ptr %474, align 8
%475 = load ptr, ptr %177, align 8
%476 = getelementptr inbounds double, ptr %475, i64 16
store double 1.500000e+00, ptr %476, align 8
%477 = load ptr, ptr %177, align 8
%478 = getelementptr inbounds double, ptr %477, i64 17
store double 0.000000e+00, ptr %478, align 8
%479 = load ptr, ptr %177, align 8
%480 = getelementptr inbounds double, ptr %479, i64 18
store double 5.000000e-03, ptr %480, align 8
%481 = load ptr, ptr %177, align 8
%482 = getelementptr inbounds double, ptr %481, i64 19
store double 1.000000e-02, ptr %482, align 8
%483 = load ptr, ptr %177, align 8
%484 = getelementptr inbounds double, ptr %483, i64 20
store double 0.000000e+00, ptr %484, align 8
%485 = load ptr, ptr %177, align 8
%486 = getelementptr inbounds double, ptr %485, i64 21
store double 0.000000e+00, ptr %486, align 8
%487 = load ptr, ptr %177, align 8
%488 = getelementptr inbounds double, ptr %487, i64 22
store double 2.000000e-02, ptr %488, align 8
%489 = load ptr, ptr %177, align 8
%490 = getelementptr inbounds double, ptr %489, i64 23
store double 1.000000e-05, ptr %490, align 8
%491 = load ptr, ptr %177, align 8
%492 = getelementptr inbounds double, ptr %491, i64 24
store double 1.000000e-03, ptr %492, align 8
%493 = load ptr, ptr %177, align 8
%494 = getelementptr inbounds double, ptr %493, i64 25
store double 1.000000e-08, ptr %494, align 8
%495 = load ptr, ptr %177, align 8
%496 = getelementptr inbounds double, ptr %495, i64 26
store double 1.000000e+30, ptr %496, align 8
%497 = load ptr, ptr %177, align 8
%498 = getelementptr inbounds double, ptr %497, i64 27
store double 1.500000e+00, ptr %498, align 8
%499 = load ptr, ptr %177, align 8
%500 = getelementptr inbounds double, ptr %499, i64 28
store double 2.500000e-01, ptr %500, align 8
%501 = load ptr, ptr %177, align 8
%502 = getelementptr inbounds double, ptr %501, i64 29
store double 1.010000e+00, ptr %502, align 8
%503 = load ptr, ptr %177, align 8
%504 = getelementptr inbounds double, ptr %503, i64 30
store double 1.000000e+00, ptr %504, align 8
%505 = load ptr, ptr %177, align 8
%506 = getelementptr inbounds double, ptr %505, i64 31
store double 1.000000e+00, ptr %506, align 8
%507 = load ptr, ptr %177, align 8
%508 = getelementptr inbounds double, ptr %507, i64 32
store double 5.000000e-07, ptr %508, align 8
%509 = load ptr, ptr %177, align 8
%510 = getelementptr inbounds double, ptr %509, i64 33
store double 5.000000e-07, ptr %510, align 8
%511 = load ptr, ptr %177, align 8
%512 = getelementptr inbounds double, ptr %511, i64 34
store double 1.000000e-04, ptr %512, align 8
%513 = load ptr, ptr %177, align 8
%514 = getelementptr inbounds double, ptr %513, i64 35
store double 5.000000e-07, ptr %514, align 8
%515 = load ptr, ptr %177, align 8
%516 = getelementptr inbounds double, ptr %515, i64 36
store double 5.000000e-07, ptr %516, align 8
%517 = load ptr, ptr %177, align 8
%518 = getelementptr inbounds double, ptr %517, i64 37
store double 5.000000e-07, ptr %518, align 8
%519 = load ptr, ptr %177, align 8
%520 = getelementptr inbounds double, ptr %519, i64 38
store double 5.000000e-07, ptr %520, align 8
%521 = load ptr, ptr %177, align 8
%522 = getelementptr inbounds double, ptr %521, i64 39
store double -1.000000e+00, ptr %522, align 8
%523 = load ptr, ptr %177, align 8
%524 = getelementptr inbounds double, ptr %523, i64 40
store double 1.000000e+20, ptr %524, align 8
%525 = load ptr, ptr %177, align 8
%526 = getelementptr inbounds double, ptr %525, i64 41
store double 1.000000e+20, ptr %526, align 8
%527 = load ptr, ptr %177, align 8
%528 = getelementptr inbounds double, ptr %527, i64 42
store double 1.000000e+20, ptr %528, align 8
%529 = load ptr, ptr %177, align 8
%530 = getelementptr inbounds double, ptr %529, i64 43
store double 1.000000e+20, ptr %530, align 8
%531 = load ptr, ptr %177, align 8
%532 = getelementptr inbounds double, ptr %531, i64 44
store double 1.000000e+20, ptr %532, align 8
%533 = load ptr, ptr %177, align 8
%534 = getelementptr inbounds double, ptr %533, i64 45
store double 1.000000e+20, ptr %534, align 8
%535 = load ptr, ptr %177, align 8
%536 = getelementptr inbounds double, ptr %535, i64 46
store double 1.000000e+20, ptr %536, align 8
%537 = load ptr, ptr %177, align 8
%538 = getelementptr inbounds double, ptr %537, i64 47
store double 1.500000e+00, ptr %538, align 8
%539 = load ptr, ptr %177, align 8
%540 = getelementptr inbounds double, ptr %539, i64 48
store double 5.000000e-01, ptr %540, align 8
%541 = load ptr, ptr %177, align 8
%542 = getelementptr inbounds double, ptr %541, i64 49
store double 2.050000e+01, ptr %542, align 8
%543 = load ptr, ptr %177, align 8
%544 = getelementptr inbounds double, ptr %543, i64 50
store double 5.000000e-01, ptr %544, align 8
%545 = load ptr, ptr %177, align 8
%546 = getelementptr inbounds double, ptr %545, i64 51
store double 1.500000e+00, ptr %546, align 8
%547 = load ptr, ptr %177, align 8
%548 = getelementptr inbounds double, ptr %547, i64 52
store double 1.500000e+00, ptr %548, align 8
%549 = load ptr, ptr %177, align 8
%550 = getelementptr inbounds double, ptr %549, i64 53
store double 1.000000e-03, ptr %550, align 8
%551 = load ptr, ptr %177, align 8
%552 = getelementptr inbounds double, ptr %551, i64 54
store double 1.000000e-01, ptr %552, align 8
%553 = load ptr, ptr %177, align 8
%554 = getelementptr inbounds double, ptr %553, i64 55
store double 1.005000e+02, ptr %554, align 8
%555 = load ptr, ptr %177, align 8
%556 = getelementptr inbounds double, ptr %555, i64 56
store double 6.050000e+01, ptr %556, align 8
%557 = load ptr, ptr %178, align 8
%558 = getelementptr inbounds double, ptr %557, i64 0
store double 0.000000e+00, ptr %558, align 8
%559 = load ptr, ptr %178, align 8
%560 = getelementptr inbounds double, ptr %559, i64 1
store double 5.000000e-01, ptr %560, align 8
%561 = load ptr, ptr %181, align 8
store i32 0, ptr %561, align 4
%562 = load ptr, ptr %157, align 8
store i32 -1, ptr %562, align 4
%563 = load ptr, ptr %194, align 8
store double 0.000000e+00, ptr %563, align 8
%564 = load ptr, ptr %183, align 8
store i32 0, ptr %564, align 4
%565 = load ptr, ptr %151, align 8
store i32 0, ptr %565, align 4
%566 = load ptr, ptr %123, align 8
store i32 3, ptr %566, align 4
ret void
}
declare i32 @strcpy1(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}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
!14 = distinct !{!14, !7}
!15 = distinct !{!15, !7}
!16 = distinct !{!16, !7}
!17 = distinct !{!17, !7}
!18 = distinct !{!18, !7}
|
; ModuleID = '/tmp/tmp2vskmnup.c'
source_filename = "/tmp/tmp2vskmnup.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@main.list = internal global ptr null, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %2
2: ; preds = %4, %0
%3 = call i32 @l0_insert(ptr noundef @main.list)
br label %4
4: ; preds = %2
%5 = call i64 (...) @__VERIFIER_nondet_int()
%6 = icmp ne i64 %5, 0
br i1 %6, label %2, label %7, !llvm.loop !6
7: ; preds = %4
%8 = load ptr, ptr @main.list, align 8
%9 = call i32 @l0_destroy(ptr noundef %8)
%10 = load i32, ptr %1, align 4
ret i32 %10
}
declare i32 @l0_insert(ptr noundef) #1
declare i64 @__VERIFIER_nondet_int(...) #1
declare i32 @l0_destroy(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/tmp2vskmnup.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@main.list = internal global ptr null, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
br label %2
2: ; preds = %4, %0
%3 = call i32 @l0_insert(ptr noundef @main.list)
br label %4
4: ; preds = %2
%5 = call i64 (...) @__VERIFIER_nondet_int()
%6 = icmp ne i64 %5, 0
br i1 %6, label %2, label %7, !llvm.loop !6
7: ; preds = %4
%8 = load ptr, ptr @main.list, align 8
%9 = call i32 @l0_destroy(ptr noundef %8)
%10 = load i32, ptr %1, align 4
ret i32 %10
}
declare i32 @l0_insert(ptr noundef) #1
declare i64 @__VERIFIER_nondet_int(...) #1
declare i32 @l0_destroy(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/tmp_llmatqy.c'
source_filename = "/tmp/tmp_llmatqy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SEEK_CUR = dso_local global i32 0, align 4
@SEEK_SET = 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/tmp_llmatqy.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SEEK_CUR = dso_local global i32 0, align 4
@SEEK_SET = 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/tmpqbzu380r.c'
source_filename = "/tmp/tmpqbzu380r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @a_to_i(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
br label %5
5: ; preds = %11, %1
%6 = load ptr, ptr %2, align 8
%7 = load i8, ptr %6, align 1
%8 = call i64 @isspace(i8 noundef signext %7)
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %14
10: ; preds = %5
br label %11
11: ; preds = %10
%12 = load ptr, ptr %2, align 8
%13 = getelementptr inbounds i8, ptr %12, i32 1
store ptr %13, ptr %2, align 8
br label %5, !llvm.loop !6
14: ; preds = %5
%15 = load ptr, ptr %2, align 8
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = icmp eq i32 %17, 45
%19 = zext i1 %18 to i64
%20 = select i1 %18, i32 -1, i32 1
store i32 %20, ptr %4, align 4
%21 = load ptr, ptr %2, align 8
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %23, 43
br i1 %24, label %30, label %25
25: ; preds = %14
%26 = load ptr, ptr %2, align 8
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = icmp eq i32 %28, 45
br i1 %29, label %30, label %33
30: ; preds = %25, %14
%31 = load ptr, ptr %2, align 8
%32 = getelementptr inbounds i8, ptr %31, i32 1
store ptr %32, ptr %2, align 8
br label %33
33: ; preds = %30, %25
store i32 0, ptr %3, align 4
br label %34
34: ; preds = %47, %33
%35 = load ptr, ptr %2, align 8
%36 = load i8, ptr %35, align 1
%37 = call i64 @isdigit(i8 noundef signext %36)
%38 = icmp ne i64 %37, 0
br i1 %38, label %39, label %50
39: ; preds = %34
%40 = load i32, ptr %3, align 4
%41 = mul nsw i32 10, %40
%42 = load ptr, ptr %2, align 8
%43 = load i8, ptr %42, align 1
%44 = sext i8 %43 to i32
%45 = sub nsw i32 %44, 48
%46 = add nsw i32 %41, %45
store i32 %46, ptr %3, align 4
br label %47
47: ; preds = %39
%48 = load ptr, ptr %2, align 8
%49 = getelementptr inbounds i8, ptr %48, i32 1
store ptr %49, ptr %2, align 8
br label %34, !llvm.loop !8
50: ; preds = %34
%51 = load i32, ptr %4, align 4
%52 = load i32, ptr %3, align 4
%53 = mul nsw i32 %51, %52
ret i32 %53
}
declare i64 @isspace(i8 noundef signext) #1
declare i64 @isdigit(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqbzu380r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @a_to_i(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%5 = load ptr, ptr %2, align 8
%6 = load i8, ptr %5, align 1
%7 = call i64 @isspace(i8 noundef signext %6)
%8 = icmp ne i64 %7, 0
br i1 %8, label %.lr.ph, label %17
.lr.ph: ; preds = %1
br label %9
9: ; preds = %.lr.ph, %10
br label %10
10: ; preds = %9
%11 = load ptr, ptr %2, align 8
%12 = getelementptr inbounds i8, ptr %11, i32 1
store ptr %12, ptr %2, align 8
%13 = load ptr, ptr %2, align 8
%14 = load i8, ptr %13, align 1
%15 = call i64 @isspace(i8 noundef signext %14)
%16 = icmp ne i64 %15, 0
br i1 %16, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %10
br label %17
17: ; preds = %._crit_edge, %1
%18 = load ptr, ptr %2, align 8
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = icmp eq i32 %20, 45
%22 = zext i1 %21 to i64
%23 = select i1 %21, i32 -1, i32 1
store i32 %23, ptr %4, align 4
%24 = load ptr, ptr %2, align 8
%25 = load i8, ptr %24, align 1
%26 = sext i8 %25 to i32
%27 = icmp eq i32 %26, 43
br i1 %27, label %33, label %28
28: ; preds = %17
%29 = load ptr, ptr %2, align 8
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
%32 = icmp eq i32 %31, 45
br i1 %32, label %33, label %36
33: ; preds = %28, %17
%34 = load ptr, ptr %2, align 8
%35 = getelementptr inbounds i8, ptr %34, i32 1
store ptr %35, ptr %2, align 8
br label %36
36: ; preds = %33, %28
store i32 0, ptr %3, align 4
%37 = load ptr, ptr %2, align 8
%38 = load i8, ptr %37, align 1
%39 = call i64 @isdigit(i8 noundef signext %38)
%40 = icmp ne i64 %39, 0
br i1 %40, label %.lr.ph2, label %56
.lr.ph2: ; preds = %36
br label %41
41: ; preds = %.lr.ph2, %49
%42 = load i32, ptr %3, align 4
%43 = mul nsw i32 10, %42
%44 = load ptr, ptr %2, align 8
%45 = load i8, ptr %44, align 1
%46 = sext i8 %45 to i32
%47 = sub nsw i32 %46, 48
%48 = add nsw i32 %43, %47
store i32 %48, ptr %3, align 4
br label %49
49: ; preds = %41
%50 = load ptr, ptr %2, align 8
%51 = getelementptr inbounds i8, ptr %50, i32 1
store ptr %51, ptr %2, align 8
%52 = load ptr, ptr %2, align 8
%53 = load i8, ptr %52, align 1
%54 = call i64 @isdigit(i8 noundef signext %53)
%55 = icmp ne i64 %54, 0
br i1 %55, label %41, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %49
br label %56
56: ; preds = %._crit_edge3, %36
%57 = load i32, ptr %4, align 4
%58 = load i32, ptr %3, align 4
%59 = mul nsw i32 %57, %58
ret i32 %59
}
declare i64 @isspace(i8 noundef signext) #1
declare i64 @isdigit(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpthf5oiai.c'
source_filename = "/tmp/tmpthf5oiai.c"
target datalayout = "e-m:e-p270: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/tmpthf5oiai.c"
target datalayout = "e-m:e-p270: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/tmps627ioz1.c'
source_filename = "/tmp/tmps627ioz1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
@.str = private unnamed_addr constant [45 x i8] c"Usage: TCPClient <IP address of the server>\0A\00", align 1
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [31 x i8] c"Problem in creating the socket\00", align 1
@.str.2 = private unnamed_addr constant [36 x i8] c"Problem in connecting to the server\00", align 1
@.str.3 = private unnamed_addr constant [28 x i8] c"Enter the string to send : \00", align 1
@stdin = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [34 x i8] c"The server terminated prematurely\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [42 x i8] c"String received back from the server: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca %struct.sockaddr_in, align 4
%8 = alloca [4096 x i8], align 16
%9 = 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
%10 = load i32, ptr %4, align 4
%11 = icmp ne i32 %10, 2
br i1 %11, label %12, label %15
12: ; preds = %2
%13 = call i32 @perror(ptr noundef @.str)
%14 = call i32 @exit(i32 noundef 1) #3
unreachable
15: ; preds = %2
%16 = load i32, ptr @AF_INET, align 4
%17 = load i32, ptr @SOCK_STREAM, align 4
%18 = call i32 @socket(i32 noundef %16, i32 noundef %17, i32 noundef 0)
store i32 %18, ptr %6, align 4
%19 = icmp slt i32 %18, 0
br i1 %19, label %20, label %23
20: ; preds = %15
%21 = call i32 @perror(ptr noundef @.str.1)
%22 = call i32 @exit(i32 noundef 2) #3
unreachable
23: ; preds = %15
%24 = call i32 @memset(ptr noundef %7, i32 noundef 0, i32 noundef 12)
%25 = load i32, ptr @AF_INET, align 4
%26 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 2
store i32 %25, ptr %26, align 4
%27 = load ptr, ptr %5, align 8
%28 = getelementptr inbounds ptr, ptr %27, i64 1
%29 = load ptr, ptr %28, align 8
%30 = call i32 @inet_addr(ptr noundef %29)
%31 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 1
%32 = getelementptr inbounds %struct.TYPE_2__, ptr %31, i32 0, i32 0
store i32 %30, ptr %32, align 4
%33 = call i32 @htons(i32 noundef 3000)
%34 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 0
store i32 %33, ptr %34, align 4
%35 = load i32, ptr %6, align 4
%36 = call i64 @connect(i32 noundef %35, ptr noundef %7, i32 noundef 12)
%37 = icmp slt i64 %36, 0
br i1 %37, label %38, label %41
38: ; preds = %23
%39 = call i32 @perror(ptr noundef @.str.2)
%40 = call i32 @exit(i32 noundef 3) #3
unreachable
41: ; preds = %23
br label %42
42: ; preds = %41, %63
%43 = call i32 @printf(ptr noundef @.str.3)
%44 = getelementptr inbounds [4096 x i8], ptr %8, i64 0, i64 0
%45 = load i32, ptr @stdin, align 4
%46 = call ptr @fgets(ptr noundef %44, i32 noundef 4096, i32 noundef %45)
%47 = icmp eq ptr %46, null
br i1 %47, label %48, label %50
48: ; preds = %42
%49 = call i32 @exit(i32 noundef 1) #3
unreachable
50: ; preds = %42
%51 = load i32, ptr %6, align 4
%52 = getelementptr inbounds [4096 x i8], ptr %8, i64 0, i64 0
%53 = getelementptr inbounds [4096 x i8], ptr %8, i64 0, i64 0
%54 = call i32 @strlen(ptr noundef %53)
%55 = call i32 @send(i32 noundef %51, ptr noundef %52, i32 noundef %54, i32 noundef 0)
%56 = load i32, ptr %6, align 4
%57 = getelementptr inbounds [4096 x i8], ptr %9, i64 0, i64 0
%58 = call i64 @recv(i32 noundef %56, ptr noundef %57, i32 noundef 4096, i32 noundef 0)
%59 = icmp eq i64 %58, 0
br i1 %59, label %60, label %63
60: ; preds = %50
%61 = call i32 @perror(ptr noundef @.str.4)
%62 = call i32 @exit(i32 noundef 4) #3
unreachable
63: ; preds = %50
%64 = load i32, ptr @stdout, align 4
%65 = getelementptr inbounds [4096 x i8], ptr %9, i64 0, i64 0
%66 = call i32 @fprintf(i32 noundef %64, ptr noundef @.str.5, ptr noundef %65)
%67 = getelementptr inbounds [4096 x i8], ptr %9, i64 0, i64 0
%68 = call i32 @bzero(ptr noundef %67, i32 noundef 4096)
br label %42
}
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @inet_addr(ptr noundef) #1
declare i32 @htons(i32 noundef) #1
declare i64 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare ptr @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @send(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i64 @recv(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @bzero(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmps627ioz1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { i32, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
@.str = private unnamed_addr constant [45 x i8] c"Usage: TCPClient <IP address of the server>\0A\00", align 1
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [31 x i8] c"Problem in creating the socket\00", align 1
@.str.2 = private unnamed_addr constant [36 x i8] c"Problem in connecting to the server\00", align 1
@.str.3 = private unnamed_addr constant [28 x i8] c"Enter the string to send : \00", align 1
@stdin = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [34 x i8] c"The server terminated prematurely\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [42 x i8] c"String received back from the server: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca %struct.sockaddr_in, align 4
%8 = alloca [4096 x i8], align 16
%9 = 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
%10 = load i32, ptr %4, align 4
%11 = icmp ne i32 %10, 2
br i1 %11, label %12, label %15
12: ; preds = %2
%13 = call i32 @perror(ptr noundef @.str)
%14 = call i32 @exit(i32 noundef 1) #3
unreachable
15: ; preds = %2
%16 = load i32, ptr @AF_INET, align 4
%17 = load i32, ptr @SOCK_STREAM, align 4
%18 = call i32 @socket(i32 noundef %16, i32 noundef %17, i32 noundef 0)
store i32 %18, ptr %6, align 4
%19 = icmp slt i32 %18, 0
br i1 %19, label %20, label %23
20: ; preds = %15
%21 = call i32 @perror(ptr noundef @.str.1)
%22 = call i32 @exit(i32 noundef 2) #3
unreachable
23: ; preds = %15
%24 = call i32 @memset(ptr noundef %7, i32 noundef 0, i32 noundef 12)
%25 = load i32, ptr @AF_INET, align 4
%26 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 2
store i32 %25, ptr %26, align 4
%27 = load ptr, ptr %5, align 8
%28 = getelementptr inbounds ptr, ptr %27, i64 1
%29 = load ptr, ptr %28, align 8
%30 = call i32 @inet_addr(ptr noundef %29)
%31 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 1
%32 = getelementptr inbounds %struct.TYPE_2__, ptr %31, i32 0, i32 0
store i32 %30, ptr %32, align 4
%33 = call i32 @htons(i32 noundef 3000)
%34 = getelementptr inbounds %struct.sockaddr_in, ptr %7, i32 0, i32 0
store i32 %33, ptr %34, align 4
%35 = load i32, ptr %6, align 4
%36 = call i64 @connect(i32 noundef %35, ptr noundef %7, i32 noundef 12)
%37 = icmp slt i64 %36, 0
br i1 %37, label %38, label %41
38: ; preds = %23
%39 = call i32 @perror(ptr noundef @.str.2)
%40 = call i32 @exit(i32 noundef 3) #3
unreachable
41: ; preds = %23
%42 = call i32 @printf(ptr noundef @.str.3)
%43 = getelementptr inbounds [4096 x i8], ptr %8, i64 0, i64 0
%44 = load i32, ptr @stdin, align 4
%45 = call ptr @fgets(ptr noundef %43, i32 noundef 4096, i32 noundef %44)
%46 = icmp eq ptr %45, null
br i1 %46, label %47, label %.lr.ph
.lr.ph: ; preds = %41
br label %49
._crit_edge: ; preds = %62
br label %47
47: ; preds = %._crit_edge, %41
%48 = call i32 @exit(i32 noundef 1) #3
unreachable
49: ; preds = %.lr.ph, %62
%50 = load i32, ptr %6, align 4
%51 = getelementptr inbounds [4096 x i8], ptr %8, i64 0, i64 0
%52 = getelementptr inbounds [4096 x i8], ptr %8, i64 0, i64 0
%53 = call i32 @strlen(ptr noundef %52)
%54 = call i32 @send(i32 noundef %50, ptr noundef %51, i32 noundef %53, i32 noundef 0)
%55 = load i32, ptr %6, align 4
%56 = getelementptr inbounds [4096 x i8], ptr %9, i64 0, i64 0
%57 = call i64 @recv(i32 noundef %55, ptr noundef %56, i32 noundef 4096, i32 noundef 0)
%58 = icmp eq i64 %57, 0
br i1 %58, label %59, label %62
59: ; preds = %49
%60 = call i32 @perror(ptr noundef @.str.4)
%61 = call i32 @exit(i32 noundef 4) #3
unreachable
62: ; preds = %49
%63 = load i32, ptr @stdout, align 4
%64 = getelementptr inbounds [4096 x i8], ptr %9, i64 0, i64 0
%65 = call i32 @fprintf(i32 noundef %63, ptr noundef @.str.5, ptr noundef %64)
%66 = getelementptr inbounds [4096 x i8], ptr %9, i64 0, i64 0
%67 = call i32 @bzero(ptr noundef %66, i32 noundef 4096)
%68 = call i32 @printf(ptr noundef @.str.3)
%69 = load i32, ptr @stdin, align 4
%70 = call ptr @fgets(ptr noundef %43, i32 noundef 4096, i32 noundef %69)
%71 = icmp eq ptr %70, null
br i1 %71, label %._crit_edge, label %49
}
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @inet_addr(ptr noundef) #1
declare i32 @htons(i32 noundef) #1
declare i64 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare ptr @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @send(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i64 @recv(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @bzero(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
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/tmppadslba0.c'
source_filename = "/tmp/tmppadslba0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ft_strdel(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load ptr, ptr %3, align 8
%5 = call i32 @free(ptr noundef %4)
%6 = load ptr, ptr %2, align 8
store ptr null, ptr %6, align 8
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppadslba0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ft_strdel(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%3 = load ptr, ptr %2, align 8
%4 = load ptr, ptr %3, align 8
%5 = call i32 @free(ptr noundef %4)
%6 = load ptr, ptr %2, align 8
store ptr null, ptr %6, align 8
ret void
}
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6qlnwoxv.c'
source_filename = "/tmp/tmp6qlnwoxv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gf_div_bit(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %10
9: ; preds = %2
store i32 0, ptr %3, align 4
br label %20
10: ; preds = %2
%11 = load i32, ptr %5, align 4
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %14
13: ; preds = %10
store i32 -1, ptr %3, align 4
br label %20
14: ; preds = %10
%15 = load i32, ptr %5, align 4
%16 = call i32 @gf_inv(i32 noundef %15)
store i32 %16, ptr %6, align 4
%17 = load i32, ptr %4, align 4
%18 = load i32, ptr %6, align 4
%19 = call i32 @gf_mul_bit(i32 noundef %17, i32 noundef %18)
store i32 %19, ptr %3, align 4
br label %20
20: ; preds = %14, %13, %9
%21 = load i32, ptr %3, align 4
ret i32 %21
}
declare i32 @gf_inv(i32 noundef) #1
declare i32 @gf_mul_bit(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/tmp6qlnwoxv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gf_div_bit(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store i32 %1, ptr %5, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %10
9: ; preds = %2
store i32 0, ptr %3, align 4
br label %20
10: ; preds = %2
%11 = load i32, ptr %5, align 4
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %14
13: ; preds = %10
store i32 -1, ptr %3, align 4
br label %20
14: ; preds = %10
%15 = load i32, ptr %5, align 4
%16 = call i32 @gf_inv(i32 noundef %15)
store i32 %16, ptr %6, align 4
%17 = load i32, ptr %4, align 4
%18 = load i32, ptr %6, align 4
%19 = call i32 @gf_mul_bit(i32 noundef %17, i32 noundef %18)
store i32 %19, ptr %3, align 4
br label %20
20: ; preds = %14, %13, %9
%21 = load i32, ptr %3, align 4
ret i32 %21
}
declare i32 @gf_inv(i32 noundef) #1
declare i32 @gf_mul_bit(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/tmpqe1sd_pg.c'
source_filename = "/tmp/tmpqe1sd_pg.c"
target datalayout = "e-m:e-p270: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/tmpqe1sd_pg.c"
target datalayout = "e-m:e-p270: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/tmpjq7cwpnc.c'
source_filename = "/tmp/tmpjq7cwpnc.c"
target datalayout = "e-m:e-p270: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/tmpjq7cwpnc.c"
target datalayout = "e-m:e-p270: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/tmp94sbx_qr.c'
source_filename = "/tmp/tmp94sbx_qr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"NOT IMPLEMENTED:pa_idxset_copy\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @pa_idxset_copy() #0 {
%1 = alloca i32, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = load i32, ptr %1, align 4
ret i32 %3
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp94sbx_qr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"NOT IMPLEMENTED:pa_idxset_copy\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @pa_idxset_copy() #0 {
%1 = alloca i32, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = load i32, ptr %1, align 4
ret i32 %3
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpknr3q9mq.c'
source_filename = "/tmp/tmpknr3q9mq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gpiotools_set(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 [1 x i32], align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%8 = getelementptr inbounds [1 x i32], ptr %7, i64 0, i64 0
%9 = load i32, ptr %5, align 4
store i32 %9, ptr %8, align 4
%10 = load ptr, ptr %4, align 8
%11 = getelementptr inbounds [1 x i32], ptr %7, i64 0, i64 0
%12 = call i32 @gpiotools_sets(ptr noundef %10, ptr noundef %11, i32 noundef 1, ptr noundef %6)
ret i32 %12
}
declare i32 @gpiotools_sets(ptr noundef, ptr 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/tmpknr3q9mq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @gpiotools_set(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 [1 x i32], align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%8 = getelementptr inbounds [1 x i32], ptr %7, i64 0, i64 0
%9 = load i32, ptr %5, align 4
store i32 %9, ptr %8, align 4
%10 = load ptr, ptr %4, align 8
%11 = getelementptr inbounds [1 x i32], ptr %7, i64 0, i64 0
%12 = call i32 @gpiotools_sets(ptr noundef %10, ptr noundef %11, i32 noundef 1, ptr noundef %6)
ret i32 %12
}
declare i32 @gpiotools_sets(ptr noundef, ptr 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/tmpnlrd_vu9.c'
source_filename = "/tmp/tmpnlrd_vu9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_tgammal(x86_fp80 noundef %0) #0 {
%2 = alloca x86_fp80, align 16
store x86_fp80 %0, ptr %2, align 16
%3 = load x86_fp80, ptr %2, align 16
%4 = call i64 @tgammal(x86_fp80 noundef %3)
%5 = load x86_fp80, ptr %2, align 16
%6 = call i64 @tgammal(x86_fp80 noundef %5)
%7 = icmp ne i64 %4, %6
br i1 %7, label %8, label %10
8: ; preds = %1
%9 = call i32 (...) @link_failure_tgammal()
br label %10
10: ; preds = %8, %1
ret void
}
declare i64 @tgammal(x86_fp80 noundef) #1
declare i32 @link_failure_tgammal(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnlrd_vu9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_tgammal(x86_fp80 noundef %0) #0 {
%2 = alloca x86_fp80, align 16
store x86_fp80 %0, ptr %2, align 16
%3 = load x86_fp80, ptr %2, align 16
%4 = call i64 @tgammal(x86_fp80 noundef %3)
%5 = load x86_fp80, ptr %2, align 16
%6 = call i64 @tgammal(x86_fp80 noundef %5)
%7 = icmp ne i64 %4, %6
br i1 %7, label %8, label %10
8: ; preds = %1
%9 = call i32 (...) @link_failure_tgammal()
br label %10
10: ; preds = %8, %1
ret void
}
declare i64 @tgammal(x86_fp80 noundef) #1
declare i32 @link_failure_tgammal(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3oh4b_0n.c'
source_filename = "/tmp/tmp3oh4b_0n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"Call this program with %i arguments\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"You win!\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%u\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [1 x i32], align 4
%7 = alloca [1 x i32], align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = call i32 (...) @megaInit()
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef 1)
%16 = call i32 @exit(i32 noundef -1) #3
unreachable
17: ; preds = %2
br label %18
18: ; preds = %17
store i32 0, ptr %8, align 4
br label %19
19: ; preds = %22, %18
%20 = load i32, ptr %8, align 4
%21 = icmp slt i32 %20, 1
br i1 %21, label %22, label %37
22: ; preds = %19
%23 = load ptr, ptr %5, align 8
%24 = load i32, ptr %8, align 4
%25 = add nsw i32 %24, 1
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds ptr, ptr %23, i64 %26
%28 = load ptr, ptr %27, align 8
%29 = call i64 @strtoul(ptr noundef %28, i32 noundef 0, i32 noundef 10)
%30 = trunc i64 %29 to i32
store i32 %30, ptr %9, align 4
%31 = load i32, ptr %9, align 4
%32 = load i32, ptr %8, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [1 x i32], ptr %6, i64 0, i64 %33
store i32 %31, ptr %34, align 4
%35 = load i32, ptr %8, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %8, align 4
br label %19, !llvm.loop !6
37: ; preds = %19
%38 = getelementptr inbounds [1 x i32], ptr %6, i64 0, i64 0
%39 = getelementptr inbounds [1 x i32], ptr %7, i64 0, i64 0
%40 = call i32 @RandomFunc(ptr noundef %38, ptr noundef %39)
%41 = getelementptr inbounds [1 x i32], ptr %7, i64 0, i64 0
%42 = load i32, ptr %41, align 4
%43 = icmp eq i32 %42, 1506436688
br i1 %43, label %44, label %46
44: ; preds = %37
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %47
46: ; preds = %37
br label %47
47: ; preds = %46, %44
store i32 0, ptr %10, align 4
br label %48
48: ; preds = %51, %47
%49 = load i32, ptr %10, align 4
%50 = icmp slt i32 %49, 1
br i1 %50, label %51, label %59
51: ; preds = %48
%52 = load i32, ptr %10, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [1 x i32], ptr %7, i64 0, i64 %53
%55 = load i32, ptr %54, align 4
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %55)
%57 = load i32, ptr %10, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %10, align 4
br label %48, !llvm.loop !8
59: ; preds = %48
%60 = load i32, ptr %3, align 4
ret i32 %60
}
declare i32 @megaInit(...) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @strtoul(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @RandomFunc(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3oh4b_0n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"Call this program with %i arguments\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"You win!\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%u\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [1 x i32], align 4
%7 = alloca [1 x i32], align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%11 = call i32 (...) @megaInit()
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %17
14: ; preds = %2
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef 1)
%16 = call i32 @exit(i32 noundef -1) #3
unreachable
17: ; preds = %2
br label %18
18: ; preds = %17
store i32 0, ptr %8, align 4
%19 = load i32, ptr %8, align 4
%20 = icmp slt i32 %19, 1
br i1 %20, label %.lr.ph, label %38
.lr.ph: ; preds = %18
br label %21
21: ; preds = %.lr.ph, %21
%22 = load ptr, ptr %5, align 8
%23 = load i32, ptr %8, align 4
%24 = add nsw i32 %23, 1
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds ptr, ptr %22, i64 %25
%27 = load ptr, ptr %26, align 8
%28 = call i64 @strtoul(ptr noundef %27, i32 noundef 0, i32 noundef 10)
%29 = trunc i64 %28 to i32
store i32 %29, ptr %9, align 4
%30 = load i32, ptr %9, align 4
%31 = load i32, ptr %8, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [1 x i32], ptr %6, i64 0, i64 %32
store i32 %30, 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 %8, align 4
%37 = icmp slt i32 %36, 1
br i1 %37, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %21
br label %38
38: ; preds = %._crit_edge, %18
%39 = getelementptr inbounds [1 x i32], ptr %6, i64 0, i64 0
%40 = getelementptr inbounds [1 x i32], ptr %7, i64 0, i64 0
%41 = call i32 @RandomFunc(ptr noundef %39, ptr noundef %40)
%42 = getelementptr inbounds [1 x i32], ptr %7, i64 0, i64 0
%43 = load i32, ptr %42, align 4
%44 = icmp eq i32 %43, 1506436688
br i1 %44, label %45, label %47
45: ; preds = %38
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %48
47: ; preds = %38
br label %48
48: ; preds = %47, %45
store i32 0, ptr %10, align 4
%49 = load i32, ptr %10, align 4
%50 = icmp slt i32 %49, 1
br i1 %50, label %.lr.ph2, label %61
.lr.ph2: ; preds = %48
br label %51
51: ; preds = %.lr.ph2, %51
%52 = load i32, ptr %10, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [1 x i32], ptr %7, i64 0, i64 %53
%55 = load i32, ptr %54, align 4
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %55)
%57 = load i32, ptr %10, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %10, align 4
%59 = load i32, ptr %10, align 4
%60 = icmp slt i32 %59, 1
br i1 %60, label %51, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %51
br label %61
61: ; preds = %._crit_edge3, %48
%62 = load i32, ptr %3, align 4
ret i32 %62
}
declare i32 @megaInit(...) #1
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @strtoul(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @RandomFunc(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpqvsuouo2.c'
source_filename = "/tmp/tmpqvsuouo2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @puglSetString(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = load ptr, ptr %6, align 8
%8 = load ptr, ptr %4, align 8
%9 = icmp ne ptr %7, %8
br i1 %9, label %10, label %26
10: ; preds = %2
%11 = load ptr, ptr %4, align 8
%12 = call i64 @strlen(ptr noundef %11)
store i64 %12, ptr %5, align 8
%13 = load ptr, ptr %3, align 8
%14 = load ptr, ptr %13, align 8
%15 = load i64, ptr %5, align 8
%16 = add i64 %15, 1
%17 = call i64 @realloc(ptr noundef %14, i64 noundef %16)
%18 = inttoptr i64 %17 to ptr
%19 = load ptr, ptr %3, align 8
store ptr %18, ptr %19, align 8
%20 = load ptr, ptr %3, align 8
%21 = load ptr, ptr %20, align 8
%22 = load ptr, ptr %4, align 8
%23 = load i64, ptr %5, align 8
%24 = add i64 %23, 1
%25 = call i32 @strncpy(ptr noundef %21, ptr noundef %22, i64 noundef %24)
br label %26
26: ; preds = %10, %2
ret void
}
declare i64 @strlen(ptr noundef) #1
declare i64 @realloc(ptr noundef, i64 noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqvsuouo2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @puglSetString(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %3, align 8
%7 = load ptr, ptr %6, align 8
%8 = load ptr, ptr %4, align 8
%9 = icmp ne ptr %7, %8
br i1 %9, label %10, label %26
10: ; preds = %2
%11 = load ptr, ptr %4, align 8
%12 = call i64 @strlen(ptr noundef %11)
store i64 %12, ptr %5, align 8
%13 = load ptr, ptr %3, align 8
%14 = load ptr, ptr %13, align 8
%15 = load i64, ptr %5, align 8
%16 = add i64 %15, 1
%17 = call i64 @realloc(ptr noundef %14, i64 noundef %16)
%18 = inttoptr i64 %17 to ptr
%19 = load ptr, ptr %3, align 8
store ptr %18, ptr %19, align 8
%20 = load ptr, ptr %3, align 8
%21 = load ptr, ptr %20, align 8
%22 = load ptr, ptr %4, align 8
%23 = load i64, ptr %5, align 8
%24 = add i64 %23, 1
%25 = call i32 @strncpy(ptr noundef %21, ptr noundef %22, i64 noundef %24)
br label %26
26: ; preds = %10, %2
ret void
}
declare i64 @strlen(ptr noundef) #1
declare i64 @realloc(ptr noundef, i64 noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpuf4dfcdb.c'
source_filename = "/tmp/tmpuf4dfcdb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
br label %6
6: ; preds = %14, %0
%7 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
br label %8
8: ; preds = %6
%9 = load i32, ptr %3, align 4
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %14
11: ; preds = %8
%12 = load i32, ptr %3, align 4
%13 = icmp ne i32 %12, 1
br label %14
14: ; preds = %11, %8
%15 = phi i1 [ false, %8 ], [ %13, %11 ]
br i1 %15, label %6, label %16, !llvm.loop !6
16: ; preds = %14
br label %17
17: ; preds = %25, %16
%18 = call i32 @scanf(ptr noundef @.str, ptr noundef %4)
br label %19
19: ; preds = %17
%20 = load i32, ptr %4, align 4
%21 = icmp slt i32 %20, 0
br i1 %21, label %25, label %22
22: ; preds = %19
%23 = load i32, ptr %4, align 4
%24 = icmp sgt i32 %23, 7
br label %25
25: ; preds = %22, %19
%26 = phi i1 [ true, %19 ], [ %24, %22 ]
br i1 %26, label %17, label %27, !llvm.loop !8
27: ; preds = %25
%28 = load i32, ptr %3, align 4
%29 = icmp eq i32 %28, 1
br i1 %29, label %30, label %35
30: ; preds = %27
%31 = load i32, ptr %2, align 4
%32 = load i32, ptr %4, align 4
%33 = shl i32 1, %32
%34 = or i32 %31, %33
store i32 %34, ptr %2, align 4
br label %41
35: ; preds = %27
%36 = load i32, ptr %2, align 4
%37 = load i32, ptr %4, align 4
%38 = shl i32 1, %37
%39 = xor i32 %38, -1
%40 = and i32 %36, %39
store i32 %40, ptr %2, align 4
br label %41
41: ; preds = %35, %30
%42 = load i32, ptr %2, align 4
%43 = call i32 @printf(ptr noundef @.str.1, i32 noundef %42)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpuf4dfcdb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 0, ptr %1, align 4
%5 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
br label %6
6: ; preds = %14, %0
%7 = call i32 @scanf(ptr noundef @.str, ptr noundef %3)
br label %8
8: ; preds = %6
%9 = load i32, ptr %3, align 4
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %14
11: ; preds = %8
%12 = load i32, ptr %3, align 4
%13 = icmp ne i32 %12, 1
br label %14
14: ; preds = %11, %8
%15 = phi i1 [ false, %8 ], [ %13, %11 ]
br i1 %15, label %6, label %16, !llvm.loop !6
16: ; preds = %14
br label %17
17: ; preds = %25, %16
%18 = call i32 @scanf(ptr noundef @.str, ptr noundef %4)
br label %19
19: ; preds = %17
%20 = load i32, ptr %4, align 4
%21 = icmp slt i32 %20, 0
br i1 %21, label %25, label %22
22: ; preds = %19
%23 = load i32, ptr %4, align 4
%24 = icmp sgt i32 %23, 7
br label %25
25: ; preds = %22, %19
%26 = phi i1 [ true, %19 ], [ %24, %22 ]
br i1 %26, label %17, label %27, !llvm.loop !8
27: ; preds = %25
%28 = load i32, ptr %3, align 4
%29 = icmp eq i32 %28, 1
br i1 %29, label %30, label %35
30: ; preds = %27
%31 = load i32, ptr %2, align 4
%32 = load i32, ptr %4, align 4
%33 = shl i32 1, %32
%34 = or i32 %31, %33
store i32 %34, ptr %2, align 4
br label %41
35: ; preds = %27
%36 = load i32, ptr %2, align 4
%37 = load i32, ptr %4, align 4
%38 = shl i32 1, %37
%39 = xor i32 %38, -1
%40 = and i32 %36, %39
store i32 %40, ptr %2, align 4
br label %41
41: ; preds = %35, %30
%42 = load i32, ptr %2, align 4
%43 = call i32 @printf(ptr noundef @.str.1, i32 noundef %42)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmppfekii_2.c'
source_filename = "/tmp/tmppfekii_2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @stripLastChar(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i32 @strlen(ptr noundef %4)
%6 = sext i32 %5 to i64
%7 = mul i64 1, %6
%8 = trunc i64 %7 to i32
%9 = call ptr @malloc(i32 noundef %8)
store ptr %9, ptr %3, align 8
%10 = load ptr, ptr %3, align 8
%11 = load ptr, ptr %2, align 8
%12 = call i32 @strlen(ptr noundef %11)
%13 = sub nsw i32 %12, 1
%14 = load ptr, ptr %2, align 8
%15 = call i32 @snprintf(ptr noundef %10, i32 noundef %13, ptr noundef @.str, ptr noundef %14)
%16 = load ptr, ptr %3, align 8
ret ptr %16
}
declare ptr @malloc(i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppfekii_2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @stripLastChar(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i32 @strlen(ptr noundef %4)
%6 = sext i32 %5 to i64
%7 = mul i64 1, %6
%8 = trunc i64 %7 to i32
%9 = call ptr @malloc(i32 noundef %8)
store ptr %9, ptr %3, align 8
%10 = load ptr, ptr %3, align 8
%11 = load ptr, ptr %2, align 8
%12 = call i32 @strlen(ptr noundef %11)
%13 = sub nsw i32 %12, 1
%14 = load ptr, ptr %2, align 8
%15 = call i32 @snprintf(ptr noundef %10, i32 noundef %13, ptr noundef @.str, ptr noundef %14)
%16 = load ptr, ptr %3, align 8
ret ptr %16
}
declare ptr @malloc(i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpmdaxp1jr.c'
source_filename = "/tmp/tmpmdaxp1jr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [25 x i8] c"Error in server socket()\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"127.0.0.1\00", align 1
@.str.2 = private unnamed_addr constant [30 x i8] c"Error in server socket bind()\00", align 1
@.str.3 = private unnamed_addr constant [32 x i8] c"Error in server socket listen()\00", align 1
@.str.4 = private unnamed_addr constant [29 x i8] c"Server ready (CTRL-C quits)\0A\00", align 1
@.str.5 = private unnamed_addr constant [18 x i8] c"Error in accept()\00", align 1
@.str.6 = private unnamed_addr constant [36 x i8] c"\0AClient @ %s connects on socket %d\0A\00", align 1
@.str.7 = private unnamed_addr constant [16 x i8] c"reading 1 byte\0A\00", align 1
@.str.8 = private unnamed_addr constant [9 x i8] c"exiting\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca %struct.sockaddr_in, align 4
%11 = alloca %struct.sockaddr_in, align 4
%12 = alloca [1 x i8], align 1
%13 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%14 = load i32, ptr @AF_INET, align 4
%15 = load i32, ptr @SOCK_STREAM, align 4
%16 = call i32 @socket(i32 noundef %14, i32 noundef %15, i32 noundef 0)
store i32 %16, ptr %6, align 4
%17 = icmp eq i32 %16, -1
br i1 %17, label %18, label %21
18: ; preds = %2
%19 = call i32 @perror(ptr noundef @.str)
%20 = call i32 @exit(i32 noundef -1) #3
unreachable
21: ; preds = %2
%22 = load i32, ptr @AF_INET, align 4
%23 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 2
store i32 %22, ptr %23, align 4
%24 = call i32 @htons(i32 noundef 2050)
%25 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 1
store i32 %24, ptr %25, align 4
%26 = call i32 @inet_addr(ptr noundef @.str.1)
%27 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 0
%28 = getelementptr inbounds %struct.TYPE_2__, ptr %27, i32 0, i32 0
store i32 %26, ptr %28, align 4
%29 = load i32, ptr %6, align 4
%30 = call i32 @bind(i32 noundef %29, ptr noundef %10, i32 noundef 12)
store i32 %30, ptr %8, align 4
%31 = icmp eq i32 %30, -1
br i1 %31, label %32, label %35
32: ; preds = %21
%33 = call i32 @perror(ptr noundef @.str.2)
%34 = call i32 @exit(i32 noundef -1) #3
unreachable
35: ; preds = %21
%36 = load i32, ptr %6, align 4
%37 = call i32 @listen(i32 noundef %36, i32 noundef 1)
store i32 %37, ptr %8, align 4
%38 = icmp eq i32 %37, -1
br i1 %38, label %39, label %42
39: ; preds = %35
%40 = call i32 @perror(ptr noundef @.str.3)
%41 = call i32 @exit(i32 noundef -1) #3
unreachable
42: ; preds = %35
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 12, ptr %9, align 4
br label %44
44: ; preds = %42, %71
%45 = load i32, ptr %6, align 4
%46 = call i32 @accept(i32 noundef %45, ptr noundef %11, ptr noundef %9)
store i32 %46, ptr %7, align 4
%47 = icmp eq i32 %46, -1
br i1 %47, label %48, label %53
48: ; preds = %44
%49 = call i32 @perror(ptr noundef @.str.5)
%50 = load i32, ptr %6, align 4
%51 = call i32 @close(i32 noundef %50)
%52 = call i32 @exit(i32 noundef -1) #3
unreachable
53: ; preds = %44
%54 = getelementptr inbounds %struct.sockaddr_in, ptr %11, i32 0, i32 0
%55 = getelementptr inbounds %struct.TYPE_2__, ptr %54, i32 0, i32 0
%56 = load i32, ptr %55, align 4
%57 = call ptr @inet_ntoa(i32 %56)
store ptr %57, ptr %13, align 8
%58 = load ptr, ptr %13, align 8
%59 = load i32, ptr %7, align 4
%60 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %58, i32 noundef %59)
br label %61
61: ; preds = %66, %53
%62 = load i32, ptr %7, align 4
%63 = getelementptr inbounds [1 x i8], ptr %12, i64 0, i64 0
%64 = call i32 @read(i32 noundef %62, ptr noundef %63, i32 noundef 1)
%65 = icmp ne i32 %64, -1
br i1 %65, label %66, label %71
66: ; preds = %61
%67 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%68 = load i32, ptr %7, align 4
%69 = getelementptr inbounds [1 x i8], ptr %12, i64 0, i64 0
%70 = call i32 @write(i32 noundef %68, ptr noundef %69, i32 noundef 1)
br label %61, !llvm.loop !6
71: ; preds = %61
%72 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
br label %44
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @htons(i32 noundef) #1
declare i32 @inet_addr(ptr noundef) #1
declare i32 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @listen(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @accept(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @close(i32 noundef) #1
declare ptr @inet_ntoa(i32) #1
declare i32 @read(i32 noundef, ptr noundef, i32 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" }
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/tmpmdaxp1jr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { %struct.TYPE_2__, i32, i32 }
%struct.TYPE_2__ = type { i32 }
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [25 x i8] c"Error in server socket()\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"127.0.0.1\00", align 1
@.str.2 = private unnamed_addr constant [30 x i8] c"Error in server socket bind()\00", align 1
@.str.3 = private unnamed_addr constant [32 x i8] c"Error in server socket listen()\00", align 1
@.str.4 = private unnamed_addr constant [29 x i8] c"Server ready (CTRL-C quits)\0A\00", align 1
@.str.5 = private unnamed_addr constant [18 x i8] c"Error in accept()\00", align 1
@.str.6 = private unnamed_addr constant [36 x i8] c"\0AClient @ %s connects on socket %d\0A\00", align 1
@.str.7 = private unnamed_addr constant [16 x i8] c"reading 1 byte\0A\00", align 1
@.str.8 = private unnamed_addr constant [9 x i8] c"exiting\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca %struct.sockaddr_in, align 4
%11 = alloca %struct.sockaddr_in, align 4
%12 = alloca [1 x i8], align 1
%13 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%14 = load i32, ptr @AF_INET, align 4
%15 = load i32, ptr @SOCK_STREAM, align 4
%16 = call i32 @socket(i32 noundef %14, i32 noundef %15, i32 noundef 0)
store i32 %16, ptr %6, align 4
%17 = icmp eq i32 %16, -1
br i1 %17, label %18, label %21
18: ; preds = %2
%19 = call i32 @perror(ptr noundef @.str)
%20 = call i32 @exit(i32 noundef -1) #3
unreachable
21: ; preds = %2
%22 = load i32, ptr @AF_INET, align 4
%23 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 2
store i32 %22, ptr %23, align 4
%24 = call i32 @htons(i32 noundef 2050)
%25 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 1
store i32 %24, ptr %25, align 4
%26 = call i32 @inet_addr(ptr noundef @.str.1)
%27 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 0
%28 = getelementptr inbounds %struct.TYPE_2__, ptr %27, i32 0, i32 0
store i32 %26, ptr %28, align 4
%29 = load i32, ptr %6, align 4
%30 = call i32 @bind(i32 noundef %29, ptr noundef %10, i32 noundef 12)
store i32 %30, ptr %8, align 4
%31 = icmp eq i32 %30, -1
br i1 %31, label %32, label %35
32: ; preds = %21
%33 = call i32 @perror(ptr noundef @.str.2)
%34 = call i32 @exit(i32 noundef -1) #3
unreachable
35: ; preds = %21
%36 = load i32, ptr %6, align 4
%37 = call i32 @listen(i32 noundef %36, i32 noundef 1)
store i32 %37, ptr %8, align 4
%38 = icmp eq i32 %37, -1
br i1 %38, label %39, label %42
39: ; preds = %35
%40 = call i32 @perror(ptr noundef @.str.3)
%41 = call i32 @exit(i32 noundef -1) #3
unreachable
42: ; preds = %35
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 12, ptr %9, align 4
%44 = load i32, ptr %6, align 4
%45 = call i32 @accept(i32 noundef %44, ptr noundef %11, ptr noundef %9)
store i32 %45, ptr %7, align 4
%46 = icmp eq i32 %45, -1
br i1 %46, label %47, label %.lr.ph2
.lr.ph2: ; preds = %42
br label %52
._crit_edge3: ; preds = %72
br label %47
47: ; preds = %._crit_edge3, %42
%48 = call i32 @perror(ptr noundef @.str.5)
%49 = load i32, ptr %6, align 4
%50 = call i32 @close(i32 noundef %49)
%51 = call i32 @exit(i32 noundef -1) #3
unreachable
52: ; preds = %.lr.ph2, %72
%53 = getelementptr inbounds %struct.sockaddr_in, ptr %11, i32 0, i32 0
%54 = getelementptr inbounds %struct.TYPE_2__, ptr %53, i32 0, i32 0
%55 = load i32, ptr %54, align 4
%56 = call ptr @inet_ntoa(i32 %55)
store ptr %56, ptr %13, align 8
%57 = load ptr, ptr %13, align 8
%58 = load i32, ptr %7, align 4
%59 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %57, i32 noundef %58)
%60 = load i32, ptr %7, align 4
%61 = getelementptr inbounds [1 x i8], ptr %12, i64 0, i64 0
%62 = call i32 @read(i32 noundef %60, ptr noundef %61, i32 noundef 1)
%63 = icmp ne i32 %62, -1
br i1 %63, label %.lr.ph, label %72
.lr.ph: ; preds = %52
br label %64
64: ; preds = %.lr.ph, %64
%65 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%66 = load i32, ptr %7, align 4
%67 = getelementptr inbounds [1 x i8], ptr %12, i64 0, i64 0
%68 = call i32 @write(i32 noundef %66, ptr noundef %67, i32 noundef 1)
%69 = load i32, ptr %7, align 4
%70 = call i32 @read(i32 noundef %69, ptr noundef %61, i32 noundef 1)
%71 = icmp ne i32 %70, -1
br i1 %71, label %64, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %64
br label %72
72: ; preds = %._crit_edge, %52
%73 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
%74 = load i32, ptr %6, align 4
%75 = call i32 @accept(i32 noundef %74, ptr noundef %11, ptr noundef %9)
store i32 %75, ptr %7, align 4
%76 = icmp eq i32 %75, -1
br i1 %76, label %._crit_edge3, label %52
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @htons(i32 noundef) #1
declare i32 @inet_addr(ptr noundef) #1
declare i32 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @listen(i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @accept(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @close(i32 noundef) #1
declare ptr @inet_ntoa(i32) #1
declare i32 @read(i32 noundef, ptr noundef, i32 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" }
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/tmpjmljrpl0.c'
source_filename = "/tmp/tmpjmljrpl0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"test2\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"a\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"b\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"result\00", align 1
@.str.4 = private unnamed_addr constant [20 x i8] c"testDriverIntensive\00", align 1
@.str.5 = private unnamed_addr constant [6 x i8] c"count\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @deviceTest2GetInterface(i8 noundef zeroext %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i8, align 1
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i8 %0, ptr %5, align 1
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
%8 = load i8, ptr %5, align 1
%9 = zext i8 %8 to i32
%10 = icmp eq i32 %9, 119
br i1 %10, label %11, label %22
11: ; preds = %3
%12 = load i32, ptr %7, align 4
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %19
14: ; preds = %11
%15 = call i32 @setFunction(ptr noundef @.str, i32 noundef 2, i32 noundef 1)
%16 = call i32 @setArgumentUnsignedHex2(i32 noundef 0, ptr noundef @.str.1)
%17 = call i32 @setArgumentUnsignedHex2(i32 noundef 1, ptr noundef @.str.2)
%18 = call i32 @setResultUnsignedHex2(i32 noundef 0, ptr noundef @.str.3)
br label %19
19: ; preds = %14, %11
%20 = load i32, ptr %6, align 4
%21 = call i32 @commandLengthValueForMode(i32 noundef %20, i32 noundef 4, i32 noundef 2)
store i32 %21, ptr %4, align 4
br label %37
22: ; preds = %3
%23 = load i8, ptr %5, align 1
%24 = zext i8 %23 to i32
%25 = icmp eq i32 %24, 73
br i1 %25, label %26, label %35
26: ; preds = %22
%27 = load i32, ptr %7, align 4
%28 = icmp ne i32 %27, 0
br i1 %28, label %29, label %32
29: ; preds = %26
%30 = call i32 @setFunction(ptr noundef @.str.4, i32 noundef 1, i32 noundef 0)
%31 = call i32 @setArgumentUnsignedHex4(i32 noundef 0, ptr noundef @.str.5)
br label %32
32: ; preds = %29, %26
%33 = load i32, ptr %6, align 4
%34 = call i32 @commandLengthValueForMode(i32 noundef %33, i32 noundef 4, i32 noundef 0)
store i32 %34, ptr %4, align 4
br label %37
35: ; preds = %22
br label %36
36: ; preds = %35
store i32 -1, ptr %4, align 4
br label %37
37: ; preds = %36, %32, %19
%38 = load i32, ptr %4, align 4
ret i32 %38
}
declare i32 @setFunction(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @setArgumentUnsignedHex2(i32 noundef, ptr noundef) #1
declare i32 @setResultUnsignedHex2(i32 noundef, ptr noundef) #1
declare i32 @commandLengthValueForMode(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @setArgumentUnsignedHex4(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/tmpjmljrpl0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"test2\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"a\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"b\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"result\00", align 1
@.str.4 = private unnamed_addr constant [20 x i8] c"testDriverIntensive\00", align 1
@.str.5 = private unnamed_addr constant [6 x i8] c"count\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @deviceTest2GetInterface(i8 noundef zeroext %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca i8, align 1
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i8 %0, ptr %5, align 1
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
%8 = load i8, ptr %5, align 1
%9 = zext i8 %8 to i32
%10 = icmp eq i32 %9, 119
br i1 %10, label %11, label %22
11: ; preds = %3
%12 = load i32, ptr %7, align 4
%13 = icmp ne i32 %12, 0
br i1 %13, label %14, label %19
14: ; preds = %11
%15 = call i32 @setFunction(ptr noundef @.str, i32 noundef 2, i32 noundef 1)
%16 = call i32 @setArgumentUnsignedHex2(i32 noundef 0, ptr noundef @.str.1)
%17 = call i32 @setArgumentUnsignedHex2(i32 noundef 1, ptr noundef @.str.2)
%18 = call i32 @setResultUnsignedHex2(i32 noundef 0, ptr noundef @.str.3)
br label %19
19: ; preds = %14, %11
%20 = load i32, ptr %6, align 4
%21 = call i32 @commandLengthValueForMode(i32 noundef %20, i32 noundef 4, i32 noundef 2)
store i32 %21, ptr %4, align 4
br label %37
22: ; preds = %3
%23 = load i8, ptr %5, align 1
%24 = zext i8 %23 to i32
%25 = icmp eq i32 %24, 73
br i1 %25, label %26, label %35
26: ; preds = %22
%27 = load i32, ptr %7, align 4
%28 = icmp ne i32 %27, 0
br i1 %28, label %29, label %32
29: ; preds = %26
%30 = call i32 @setFunction(ptr noundef @.str.4, i32 noundef 1, i32 noundef 0)
%31 = call i32 @setArgumentUnsignedHex4(i32 noundef 0, ptr noundef @.str.5)
br label %32
32: ; preds = %29, %26
%33 = load i32, ptr %6, align 4
%34 = call i32 @commandLengthValueForMode(i32 noundef %33, i32 noundef 4, i32 noundef 0)
store i32 %34, ptr %4, align 4
br label %37
35: ; preds = %22
br label %36
36: ; preds = %35
store i32 -1, ptr %4, align 4
br label %37
37: ; preds = %36, %32, %19
%38 = load i32, ptr %4, align 4
ret i32 %38
}
declare i32 @setFunction(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @setArgumentUnsignedHex2(i32 noundef, ptr noundef) #1
declare i32 @setResultUnsignedHex2(i32 noundef, ptr noundef) #1
declare i32 @commandLengthValueForMode(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @setArgumentUnsignedHex4(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/tmpetzx73w6.c'
source_filename = "/tmp/tmpetzx73w6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"t4\0A\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"%10.6f%10.6f%10.6f%10.4f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t4_list(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%7 = load ptr, ptr %3, align 8
%8 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef @.str)
store i32 0, ptr %5, align 4
br label %9
9: ; preds = %43, %2
%10 = load i32, ptr %5, align 4
%11 = icmp slt i32 %10, 4
br i1 %11, label %12, label %46
12: ; preds = %9
%13 = load ptr, ptr %3, align 8
%14 = load ptr, ptr %4, align 8
%15 = load i32, ptr %5, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds float, ptr %14, i64 %16
%18 = getelementptr inbounds float, ptr %17, i64 0
%19 = load float, ptr %18, align 4
%20 = fpext float %19 to double
%21 = load ptr, ptr %4, align 8
%22 = load i32, ptr %5, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds float, ptr %21, i64 %23
%25 = getelementptr inbounds float, ptr %24, i64 4
%26 = load float, ptr %25, align 4
%27 = fpext float %26 to double
%28 = load ptr, ptr %4, align 8
%29 = load i32, ptr %5, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds float, ptr %28, i64 %30
%32 = getelementptr inbounds float, ptr %31, i64 8
%33 = load float, ptr %32, align 4
%34 = fpext float %33 to double
%35 = load ptr, ptr %4, align 8
%36 = load i32, ptr %5, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds float, ptr %35, i64 %37
%39 = getelementptr inbounds float, ptr %38, i64 12
%40 = load float, ptr %39, align 4
%41 = fpext float %40 to double
%42 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef @.str.1, double noundef %20, double noundef %27, double noundef %34, double noundef %41)
br label %43
43: ; preds = %12
%44 = load i32, ptr %5, align 4
%45 = add nsw i32 %44, 1
store i32 %45, ptr %5, align 4
br label %9, !llvm.loop !6
46: ; preds = %9
ret void
}
declare i32 @fprintf(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/tmpetzx73w6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"t4\0A\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"%10.6f%10.6f%10.6f%10.4f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t4_list(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%7 = load ptr, ptr %3, align 8
%8 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef @.str)
store i32 0, ptr %5, align 4
%9 = load i32, ptr %5, align 4
%10 = icmp slt i32 %9, 4
br i1 %10, label %.lr.ph, label %47
.lr.ph: ; preds = %2
br label %11
11: ; preds = %.lr.ph, %42
%12 = load ptr, ptr %3, align 8
%13 = load ptr, ptr %4, align 8
%14 = load i32, ptr %5, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds float, ptr %13, i64 %15
%17 = getelementptr inbounds float, ptr %16, i64 0
%18 = load float, ptr %17, align 4
%19 = fpext float %18 to double
%20 = load ptr, ptr %4, align 8
%21 = load i32, ptr %5, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds float, ptr %20, i64 %22
%24 = getelementptr inbounds float, ptr %23, i64 4
%25 = load float, ptr %24, align 4
%26 = fpext float %25 to double
%27 = load ptr, ptr %4, align 8
%28 = load i32, ptr %5, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds float, ptr %27, i64 %29
%31 = getelementptr inbounds float, ptr %30, i64 8
%32 = load float, ptr %31, align 4
%33 = fpext float %32 to double
%34 = load ptr, ptr %4, align 8
%35 = load i32, ptr %5, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds float, ptr %34, i64 %36
%38 = getelementptr inbounds float, ptr %37, i64 12
%39 = load float, ptr %38, align 4
%40 = fpext float %39 to double
%41 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %12, ptr noundef @.str.1, double noundef %19, double noundef %26, double noundef %33, double noundef %40)
br label %42
42: ; preds = %11
%43 = load i32, ptr %5, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %5, align 4
%45 = load i32, ptr %5, align 4
%46 = icmp slt i32 %45, 4
br i1 %46, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %42
br label %47
47: ; preds = %._crit_edge, %2
ret void
}
declare i32 @fprintf(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/tmp3x2ntk06.c'
source_filename = "/tmp/tmp3x2ntk06.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [58 x i8] c"UART TEST: If you can read this, then UART output works!\0A\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"finished sending packets!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %9, align 4
%10 = call i32 @setup_uart(i32 noundef 10, i32 noundef 1)
%11 = call i32 @uart_puts(ptr noundef @.str)
br label %12
12: ; preds = %2, %67
%13 = load volatile i32, ptr inttoptr (i64 32768 to ptr), align 4
%14 = and i32 %13, -2147483648
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %12
%17 = load volatile i32, ptr inttoptr (i64 32764 to ptr), align 4
store i32 %17, ptr %8, align 4
br label %55
18: ; preds = %12
%19 = load volatile i32, ptr inttoptr (i64 32768 to ptr), align 4
%20 = and i32 %19, 1073741824
%21 = icmp eq i32 %20, 0
br i1 %21, label %22, label %54
22: ; preds = %18
%23 = load i32, ptr %9, align 4
%24 = icmp ult i32 %23, 100
br i1 %24, label %25, label %54
25: ; preds = %22
%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 = icmp eq i32 %28, 1
br i1 %29, label %30, label %45
30: ; preds = %25
%31 = load i32, ptr %6, align 4
%32 = call i32 @build_header(i32 noundef %31, i32 noundef 3)
store volatile i32 %32, ptr inttoptr (i64 32764 to ptr), align 4
%33 = load i32, ptr %6, align 4
%34 = add i32 %33, 1
store i32 %34, ptr %6, align 4
%35 = load i32, ptr %6, align 4
%36 = icmp eq i32 %35, 1
br i1 %36, label %37, label %40
37: ; preds = %30
%38 = load i32, ptr %6, align 4
%39 = add i32 %38, 1
store i32 %39, ptr %6, align 4
br label %40
40: ; preds = %37, %30
%41 = load i32, ptr %6, align 4
%42 = icmp eq i32 %41, 4
br i1 %42, label %43, label %44
43: ; preds = %40
store i32 0, ptr %6, align 4
br label %44
44: ; preds = %43, %40
br label %53
45: ; preds = %25
%46 = load i32, ptr %7, align 4
%47 = icmp eq i32 %46, 3
br i1 %47, label %48, label %51
48: ; preds = %45
store volatile i32 0, ptr inttoptr (i64 32764 to ptr), align 4
store i32 0, ptr %7, align 4
%49 = load i32, ptr %9, align 4
%50 = add i32 %49, 1
store i32 %50, ptr %9, align 4
br label %52
51: ; preds = %45
store volatile i32 268435455, ptr inttoptr (i64 32764 to ptr), align 4
br label %52
52: ; preds = %51, %48
br label %53
53: ; preds = %52, %44
br label %54
54: ; preds = %53, %22, %18
br label %55
55: ; preds = %54, %16
%56 = load i32, ptr %9, align 4
%57 = icmp uge i32 %56, 100
br i1 %57, label %58, label %67
58: ; preds = %55
br label %59
59: ; preds = %63, %58
%60 = load volatile i32, ptr inttoptr (i64 32768 to ptr), align 4
%61 = and i32 %60, -2147483648
%62 = icmp eq i32 %61, 0
br i1 %62, label %63, label %65
63: ; preds = %59
%64 = load volatile i32, ptr inttoptr (i64 32764 to ptr), align 4
store i32 %64, ptr %8, align 4
br label %59, !llvm.loop !6
65: ; preds = %59
%66 = call i32 @uart_puts(ptr noundef @.str.1)
br label %68
67: ; preds = %55
br label %12
68: ; preds = %65
%69 = call i32 (...) @test_plasma_funcitons()
ret i32 0
}
declare i32 @setup_uart(i32 noundef, i32 noundef) #1
declare i32 @uart_puts(ptr noundef) #1
declare i32 @build_header(i32 noundef, i32 noundef) #1
declare i32 @test_plasma_funcitons(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp3x2ntk06.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [58 x i8] c"UART TEST: If you can read this, then UART output works!\0A\00", align 1
@.str.1 = private unnamed_addr constant [27 x i8] c"finished sending packets!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %9, align 4
%10 = call i32 @setup_uart(i32 noundef 10, i32 noundef 1)
%11 = call i32 @uart_puts(ptr noundef @.str)
br label %12
12: ; preds = %55, %2
%13 = load volatile i32, ptr inttoptr (i64 32768 to ptr), align 4
%14 = and i32 %13, -2147483648
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %12
%17 = load volatile i32, ptr inttoptr (i64 32764 to ptr), align 4
store i32 %17, ptr %8, align 4
br label %55
18: ; preds = %12
%19 = load volatile i32, ptr inttoptr (i64 32768 to ptr), align 4
%20 = and i32 %19, 1073741824
%21 = icmp eq i32 %20, 0
br i1 %21, label %22, label %54
22: ; preds = %18
%23 = load i32, ptr %9, align 4
%24 = icmp ult i32 %23, 100
br i1 %24, label %25, label %54
25: ; preds = %22
%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 = icmp eq i32 %28, 1
br i1 %29, label %30, label %45
30: ; preds = %25
%31 = load i32, ptr %6, align 4
%32 = call i32 @build_header(i32 noundef %31, i32 noundef 3)
store volatile i32 %32, ptr inttoptr (i64 32764 to ptr), align 4
%33 = load i32, ptr %6, align 4
%34 = add i32 %33, 1
store i32 %34, ptr %6, align 4
%35 = load i32, ptr %6, align 4
%36 = icmp eq i32 %35, 1
br i1 %36, label %37, label %40
37: ; preds = %30
%38 = load i32, ptr %6, align 4
%39 = add i32 %38, 1
store i32 %39, ptr %6, align 4
br label %40
40: ; preds = %37, %30
%41 = load i32, ptr %6, align 4
%42 = icmp eq i32 %41, 4
br i1 %42, label %43, label %44
43: ; preds = %40
store i32 0, ptr %6, align 4
br label %44
44: ; preds = %43, %40
br label %53
45: ; preds = %25
%46 = load i32, ptr %7, align 4
%47 = icmp eq i32 %46, 3
br i1 %47, label %48, label %51
48: ; preds = %45
store volatile i32 0, ptr inttoptr (i64 32764 to ptr), align 4
store i32 0, ptr %7, align 4
%49 = load i32, ptr %9, align 4
%50 = add i32 %49, 1
store i32 %50, ptr %9, align 4
br label %52
51: ; preds = %45
store volatile i32 268435455, ptr inttoptr (i64 32764 to ptr), align 4
br label %52
52: ; preds = %51, %48
br label %53
53: ; preds = %52, %44
br label %54
54: ; preds = %53, %22, %18
br label %55
55: ; preds = %54, %16
%56 = load i32, ptr %9, align 4
%57 = icmp uge i32 %56, 100
br i1 %57, label %58, label %12
58: ; preds = %55
%59 = load volatile i32, ptr inttoptr (i64 32768 to ptr), align 4
%60 = and i32 %59, -2147483648
%61 = icmp eq i32 %60, 0
br i1 %61, label %.lr.ph, label %67
.lr.ph: ; preds = %58
br label %62
62: ; preds = %.lr.ph, %62
%63 = load volatile i32, ptr inttoptr (i64 32764 to ptr), align 4
store i32 %63, ptr %8, align 4
%64 = load volatile i32, ptr inttoptr (i64 32768 to ptr), align 4
%65 = and i32 %64, -2147483648
%66 = icmp eq i32 %65, 0
br i1 %66, label %62, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %62
br label %67
67: ; preds = %._crit_edge, %58
%68 = call i32 @uart_puts(ptr noundef @.str.1)
br label %69
69: ; preds = %67
%70 = call i32 (...) @test_plasma_funcitons()
ret i32 0
}
declare i32 @setup_uart(i32 noundef, i32 noundef) #1
declare i32 @uart_puts(ptr noundef) #1
declare i32 @build_header(i32 noundef, i32 noundef) #1
declare i32 @test_plasma_funcitons(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp7chzkh3k.c'
source_filename = "/tmp/tmp7chzkh3k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"w\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [24 x i8] c"Could not open file %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"sample data\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [17 x i8] c"data written %s\0A\00", align 1
@.str.4 = private unnamed_addr constant [20 x i8] c"fwrite returned %d\0A\00", align 1
@.str.5 = private unnamed_addr constant [20 x i8] c"fflush returned %d\0A\00", align 1
@.str.6 = private unnamed_addr constant [20 x i8] c"fclose returned %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @WriteToFile(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
%4 = alloca [128 x i8], align 16
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
store i64 0, ptr %3, align 8
store i64 0, ptr %5, align 8
%7 = load ptr, ptr %2, align 8
%8 = call ptr @fopen(ptr noundef %7, ptr noundef @.str)
store ptr %8, ptr %6, align 8
%9 = load ptr, ptr %6, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %16, label %11
11: ; preds = %1
%12 = load i32, ptr @stderr, align 4
%13 = load ptr, ptr %2, align 8
%14 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %12, ptr noundef @.str.1, ptr noundef %13)
%15 = call i32 @exit(i32 noundef 1) #3
unreachable
16: ; preds = %1
%17 = getelementptr inbounds [128 x i8], ptr %4, i64 0, i64 0
%18 = call i32 @strcpy(ptr noundef %17, ptr noundef @.str.2)
%19 = getelementptr inbounds [128 x i8], ptr %4, i64 0, i64 0
%20 = call i64 @strlen(ptr noundef %19)
store i64 %20, ptr %5, align 8
%21 = getelementptr inbounds [128 x i8], ptr %4, i64 0, i64 0
%22 = load i64, ptr %5, align 8
%23 = load ptr, ptr %6, align 8
%24 = call i64 @fwrite(ptr noundef %21, i32 noundef 1, i64 noundef %22, ptr noundef %23)
store i64 %24, ptr %3, align 8
%25 = load i64, ptr %3, align 8
%26 = load i64, ptr %5, align 8
%27 = icmp eq i64 %25, %26
br i1 %27, label %28, label %32
28: ; preds = %16
%29 = load i32, ptr @stdout, align 4
%30 = getelementptr inbounds [128 x i8], ptr %4, i64 0, i64 0
%31 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %29, ptr noundef @.str.3, ptr noundef %30)
br label %32
32: ; preds = %28, %16
%33 = load i32, ptr @stdout, align 4
%34 = load i64, ptr %3, align 8
%35 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %33, ptr noundef @.str.4, i64 noundef %34)
%36 = load ptr, ptr %6, align 8
%37 = call i64 @fflush(ptr noundef %36)
store i64 %37, ptr %3, align 8
%38 = load i32, ptr @stdout, align 4
%39 = load i64, ptr %3, align 8
%40 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %38, ptr noundef @.str.5, i64 noundef %39)
%41 = load ptr, ptr %6, align 8
%42 = call i64 @fclose(ptr noundef %41)
store i64 %42, ptr %3, align 8
%43 = load i32, ptr @stdout, align 4
%44 = load i64, ptr %3, align 8
%45 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %43, ptr noundef @.str.6, i64 noundef %44)
ret void
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i64 @fwrite(ptr noundef, i32 noundef, i64 noundef, ptr noundef) #1
declare i64 @fflush(ptr noundef) #1
declare i64 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7chzkh3k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"w\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [24 x i8] c"Could not open file %s\0A\00", align 1
@.str.2 = private unnamed_addr constant [12 x i8] c"sample data\00", align 1
@stdout = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [17 x i8] c"data written %s\0A\00", align 1
@.str.4 = private unnamed_addr constant [20 x i8] c"fwrite returned %d\0A\00", align 1
@.str.5 = private unnamed_addr constant [20 x i8] c"fflush returned %d\0A\00", align 1
@.str.6 = private unnamed_addr constant [20 x i8] c"fclose returned %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @WriteToFile(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
%4 = alloca [128 x i8], align 16
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
store i64 0, ptr %3, align 8
store i64 0, ptr %5, align 8
%7 = load ptr, ptr %2, align 8
%8 = call ptr @fopen(ptr noundef %7, ptr noundef @.str)
store ptr %8, ptr %6, align 8
%9 = load ptr, ptr %6, align 8
%10 = icmp ne ptr %9, null
br i1 %10, label %16, label %11
11: ; preds = %1
%12 = load i32, ptr @stderr, align 4
%13 = load ptr, ptr %2, align 8
%14 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %12, ptr noundef @.str.1, ptr noundef %13)
%15 = call i32 @exit(i32 noundef 1) #3
unreachable
16: ; preds = %1
%17 = getelementptr inbounds [128 x i8], ptr %4, i64 0, i64 0
%18 = call i32 @strcpy(ptr noundef %17, ptr noundef @.str.2)
%19 = getelementptr inbounds [128 x i8], ptr %4, i64 0, i64 0
%20 = call i64 @strlen(ptr noundef %19)
store i64 %20, ptr %5, align 8
%21 = getelementptr inbounds [128 x i8], ptr %4, i64 0, i64 0
%22 = load i64, ptr %5, align 8
%23 = load ptr, ptr %6, align 8
%24 = call i64 @fwrite(ptr noundef %21, i32 noundef 1, i64 noundef %22, ptr noundef %23)
store i64 %24, ptr %3, align 8
%25 = load i64, ptr %3, align 8
%26 = load i64, ptr %5, align 8
%27 = icmp eq i64 %25, %26
br i1 %27, label %28, label %32
28: ; preds = %16
%29 = load i32, ptr @stdout, align 4
%30 = getelementptr inbounds [128 x i8], ptr %4, i64 0, i64 0
%31 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %29, ptr noundef @.str.3, ptr noundef %30)
br label %32
32: ; preds = %28, %16
%33 = load i32, ptr @stdout, align 4
%34 = load i64, ptr %3, align 8
%35 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %33, ptr noundef @.str.4, i64 noundef %34)
%36 = load ptr, ptr %6, align 8
%37 = call i64 @fflush(ptr noundef %36)
store i64 %37, ptr %3, align 8
%38 = load i32, ptr @stdout, align 4
%39 = load i64, ptr %3, align 8
%40 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %38, ptr noundef @.str.5, i64 noundef %39)
%41 = load ptr, ptr %6, align 8
%42 = call i64 @fclose(ptr noundef %41)
store i64 %42, ptr %3, align 8
%43 = load i32, ptr @stdout, align 4
%44 = load i64, ptr %3, align 8
%45 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %43, ptr noundef @.str.6, i64 noundef %44)
ret void
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @strcpy(ptr noundef, ptr noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i64 @fwrite(ptr noundef, i32 noundef, i64 noundef, ptr noundef) #1
declare i64 @fflush(ptr noundef) #1
declare i64 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmppbxyuntk.c'
source_filename = "/tmp/tmppbxyuntk.c"
target datalayout = "e-m:e-p270: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/tmppbxyuntk.c"
target datalayout = "e-m:e-p270: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/tmpmgfg4dze.c'
source_filename = "/tmp/tmpmgfg4dze.c"
target datalayout = "e-m:e-p270: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/tmpmgfg4dze.c"
target datalayout = "e-m:e-p270: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/tmpz44iut54.c'
source_filename = "/tmp/tmpz44iut54.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"iwi0\00", align 1
@EX_OK = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr %4, align 4
%7 = icmp sgt i32 %6, 1
br i1 %7, label %8, label %12
8: ; preds = %2
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds ptr, ptr %9, i64 1
%11 = load ptr, ptr %10, align 8
br label %13
12: ; preds = %2
br label %13
13: ; preds = %12, %8
%14 = phi ptr [ %11, %8 ], [ @.str, %12 ]
%15 = call i32 @get_statistics(ptr noundef %14)
%16 = load i32, ptr @EX_OK, align 4
ret i32 %16
}
declare i32 @get_statistics(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/tmpz44iut54.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"iwi0\00", align 1
@EX_OK = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr %4, align 4
%7 = icmp sgt i32 %6, 1
br i1 %7, label %8, label %12
8: ; preds = %2
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds ptr, ptr %9, i64 1
%11 = load ptr, ptr %10, align 8
br label %13
12: ; preds = %2
br label %13
13: ; preds = %12, %8
%14 = phi ptr [ %11, %8 ], [ @.str, %12 ]
%15 = call i32 @get_statistics(ptr noundef %14)
%16 = load i32, ptr @EX_OK, align 4
ret i32 %16
}
declare i32 @get_statistics(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/tmpptway6cn.c'
source_filename = "/tmp/tmpptway6cn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"n is %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"That's all this program does\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
br label %3
3: ; preds = %6, %0
%4 = load i32, ptr %2, align 4
%5 = icmp slt i32 %4, 3
br i1 %5, label %6, label %9
6: ; preds = %3
%7 = load i32, ptr %2, align 4
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %7)
br label %3, !llvm.loop !6
9: ; preds = %3
%10 = load i32, ptr %2, align 4
%11 = add nsw i32 %10, 1
store i32 %11, ptr %2, align 4
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpptway6cn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"n is %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [30 x i8] c"That's all this program does\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp slt i32 %3, 3
br i1 %4, label %.lr.ph, label %10
.lr.ph: ; preds = %0
br label %5
5: ; preds = %.lr.ph, %5
%6 = load i32, ptr %2, align 4
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %6)
%8 = load i32, ptr %2, align 4
%9 = icmp slt i32 %8, 3
br i1 %9, label %5, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %5
br label %10
10: ; preds = %._crit_edge, %0
%11 = load i32, ptr %2, align 4
%12 = add nsw i32 %11, 1
store i32 %12, ptr %2, align 4
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp3er5bkbs.c'
source_filename = "/tmp/tmp3er5bkbs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { %struct.in_addr, i32, i32 }
%struct.in_addr = type { i32 }
%struct.hostent = type { i64 }
@.str = private unnamed_addr constant [24 x i8] c"Usage: %s <IP Address>\0A\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"gethostbyname() error\0A\00", align 1
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [16 x i8] c"socket() error\0A\00", align 1
@.str.3 = private unnamed_addr constant [17 x i8] c"connect() error\0A\00", align 1
@__const.main.str = private unnamed_addr constant [7 x i8] c"horst\0A\00", align 1
@.str.4 = private unnamed_addr constant [14 x i8] c"send() error\0A\00", align 1
@.str.5 = private unnamed_addr constant [14 x i8] c"recv() error\0A\00", align 1
@.str.6 = private unnamed_addr constant [20 x i8] c"server message: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca [100 x i8], align 16
%9 = alloca ptr, align 8
%10 = alloca %struct.sockaddr_in, align 4
%11 = alloca [7 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
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %20
14: ; preds = %2
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 0
%17 = load ptr, ptr %16, align 8
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %17)
%19 = call i32 @exit(i32 noundef 1) #4
unreachable
20: ; preds = %2
%21 = load ptr, ptr %5, align 8
%22 = getelementptr inbounds ptr, ptr %21, i64 1
%23 = load ptr, ptr %22, align 8
%24 = call ptr @gethostbyname(ptr noundef %23)
store ptr %24, ptr %9, align 8
%25 = icmp eq ptr %24, null
br i1 %25, label %26, label %29
26: ; preds = %20
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%28 = call i32 @exit(i32 noundef 1) #4
unreachable
29: ; preds = %20
%30 = load i32, ptr @AF_INET, align 4
%31 = load i32, ptr @SOCK_STREAM, align 4
%32 = call i32 @socket(i32 noundef %30, i32 noundef %31, i32 noundef 0)
store i32 %32, ptr %6, align 4
%33 = icmp eq i32 %32, -1
br i1 %33, label %34, label %37
34: ; preds = %29
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%36 = call i32 @exit(i32 noundef 1) #4
unreachable
37: ; preds = %29
%38 = call i32 @bzero(ptr noundef %10, i32 noundef 12)
%39 = load i32, ptr @AF_INET, align 4
%40 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 2
store i32 %39, ptr %40, align 4
%41 = call i32 @htons(i32 noundef 4321)
%42 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 1
store i32 %41, ptr %42, align 4
%43 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 0
%44 = load ptr, ptr %9, align 8
%45 = getelementptr inbounds %struct.hostent, ptr %44, i32 0, i32 0
%46 = load i64, ptr %45, align 8
%47 = inttoptr i64 %46 to ptr
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %43, ptr align 4 %47, i64 4, i1 false)
%48 = load i32, ptr %6, align 4
%49 = call i32 @connect(i32 noundef %48, ptr noundef %10, i32 noundef 12)
%50 = icmp eq i32 %49, -1
br i1 %50, label %51, label %54
51: ; preds = %37
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%53 = call i32 @exit(i32 noundef 1) #4
unreachable
54: ; preds = %37
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %11, ptr align 1 @__const.main.str, i64 7, i1 false)
%55 = load i32, ptr %6, align 4
%56 = getelementptr inbounds [7 x i8], ptr %11, i64 0, i64 0
%57 = call i32 @send(i32 noundef %55, ptr noundef %56, i32 noundef 7, i32 noundef 0)
store i32 %57, ptr %7, align 4
%58 = icmp eq i32 %57, -1
br i1 %58, label %59, label %62
59: ; preds = %54
%60 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%61 = call i32 @exit(i32 noundef 1) #4
unreachable
62: ; preds = %54
%63 = load i32, ptr %6, align 4
%64 = getelementptr inbounds [100 x i8], ptr %8, i64 0, i64 0
%65 = call i32 @recv(i32 noundef %63, ptr noundef %64, i32 noundef 100, i32 noundef 0)
store i32 %65, ptr %7, align 4
%66 = icmp eq i32 %65, -1
br i1 %66, label %67, label %70
67: ; preds = %62
%68 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%69 = call i32 @exit(i32 noundef 1) #4
unreachable
70: ; preds = %62
%71 = load i32, ptr %7, align 4
%72 = sub nsw i32 %71, 1
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [100 x i8], ptr %8, i64 0, i64 %73
store i8 0, ptr %74, align 1
%75 = getelementptr inbounds [100 x i8], ptr %8, i64 0, i64 0
%76 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %75)
%77 = load i32, ptr %6, align 4
%78 = call i32 @close(i32 noundef %77)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @gethostbyname(ptr noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @bzero(ptr noundef, i32 noundef) #1
declare i32 @htons(i32 noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3
declare i32 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @send(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @recv(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3er5bkbs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.sockaddr_in = type { %struct.in_addr, i32, i32 }
%struct.in_addr = type { i32 }
%struct.hostent = type { i64 }
@.str = private unnamed_addr constant [24 x i8] c"Usage: %s <IP Address>\0A\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"gethostbyname() error\0A\00", align 1
@AF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [16 x i8] c"socket() error\0A\00", align 1
@.str.3 = private unnamed_addr constant [17 x i8] c"connect() error\0A\00", align 1
@__const.main.str = private unnamed_addr constant [7 x i8] c"horst\0A\00", align 1
@.str.4 = private unnamed_addr constant [14 x i8] c"send() error\0A\00", align 1
@.str.5 = private unnamed_addr constant [14 x i8] c"recv() error\0A\00", align 1
@.str.6 = private unnamed_addr constant [20 x i8] c"server message: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca [100 x i8], align 16
%9 = alloca ptr, align 8
%10 = alloca %struct.sockaddr_in, align 4
%11 = alloca [7 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
%12 = load i32, ptr %4, align 4
%13 = icmp ne i32 %12, 2
br i1 %13, label %14, label %20
14: ; preds = %2
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds ptr, ptr %15, i64 0
%17 = load ptr, ptr %16, align 8
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %17)
%19 = call i32 @exit(i32 noundef 1) #4
unreachable
20: ; preds = %2
%21 = load ptr, ptr %5, align 8
%22 = getelementptr inbounds ptr, ptr %21, i64 1
%23 = load ptr, ptr %22, align 8
%24 = call ptr @gethostbyname(ptr noundef %23)
store ptr %24, ptr %9, align 8
%25 = icmp eq ptr %24, null
br i1 %25, label %26, label %29
26: ; preds = %20
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%28 = call i32 @exit(i32 noundef 1) #4
unreachable
29: ; preds = %20
%30 = load i32, ptr @AF_INET, align 4
%31 = load i32, ptr @SOCK_STREAM, align 4
%32 = call i32 @socket(i32 noundef %30, i32 noundef %31, i32 noundef 0)
store i32 %32, ptr %6, align 4
%33 = icmp eq i32 %32, -1
br i1 %33, label %34, label %37
34: ; preds = %29
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%36 = call i32 @exit(i32 noundef 1) #4
unreachable
37: ; preds = %29
%38 = call i32 @bzero(ptr noundef %10, i32 noundef 12)
%39 = load i32, ptr @AF_INET, align 4
%40 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 2
store i32 %39, ptr %40, align 4
%41 = call i32 @htons(i32 noundef 4321)
%42 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 1
store i32 %41, ptr %42, align 4
%43 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 0
%44 = load ptr, ptr %9, align 8
%45 = getelementptr inbounds %struct.hostent, ptr %44, i32 0, i32 0
%46 = load i64, ptr %45, align 8
%47 = inttoptr i64 %46 to ptr
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %43, ptr align 4 %47, i64 4, i1 false)
%48 = load i32, ptr %6, align 4
%49 = call i32 @connect(i32 noundef %48, ptr noundef %10, i32 noundef 12)
%50 = icmp eq i32 %49, -1
br i1 %50, label %51, label %54
51: ; preds = %37
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%53 = call i32 @exit(i32 noundef 1) #4
unreachable
54: ; preds = %37
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %11, ptr align 1 @__const.main.str, i64 7, i1 false)
%55 = load i32, ptr %6, align 4
%56 = getelementptr inbounds [7 x i8], ptr %11, i64 0, i64 0
%57 = call i32 @send(i32 noundef %55, ptr noundef %56, i32 noundef 7, i32 noundef 0)
store i32 %57, ptr %7, align 4
%58 = icmp eq i32 %57, -1
br i1 %58, label %59, label %62
59: ; preds = %54
%60 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%61 = call i32 @exit(i32 noundef 1) #4
unreachable
62: ; preds = %54
%63 = load i32, ptr %6, align 4
%64 = getelementptr inbounds [100 x i8], ptr %8, i64 0, i64 0
%65 = call i32 @recv(i32 noundef %63, ptr noundef %64, i32 noundef 100, i32 noundef 0)
store i32 %65, ptr %7, align 4
%66 = icmp eq i32 %65, -1
br i1 %66, label %67, label %70
67: ; preds = %62
%68 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%69 = call i32 @exit(i32 noundef 1) #4
unreachable
70: ; preds = %62
%71 = load i32, ptr %7, align 4
%72 = sub nsw i32 %71, 1
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [100 x i8], ptr %8, i64 0, i64 %73
store i8 0, ptr %74, align 1
%75 = getelementptr inbounds [100 x i8], ptr %8, i64 0, i64 0
%76 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, ptr noundef %75)
%77 = load i32, ptr %6, align 4
%78 = call i32 @close(i32 noundef %77)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @gethostbyname(ptr noundef) #1
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @bzero(ptr noundef, i32 noundef) #1
declare i32 @htons(i32 noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3
declare i32 @connect(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @send(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @recv(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgwmva5x4.c'
source_filename = "/tmp/tmpgwmva5x4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"The GLIBC version present is %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"startup\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [5 x i8] c"open\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [7 x i8] c"myfile\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@O_TRUNC = dso_local global i32 0, align 4
@S_IRUSR = dso_local global i32 0, align 4
@S_IWUSR = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [6 x i8] c"w.log\00", align 1
@O_WRONLY = dso_local global i32 0, align 4
@O_APPEND = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = call ptr (...) @gnu_get_libc_version()
%3 = call i32 @printf(ptr noundef @.str, ptr noundef %2)
%4 = load i32, ptr @O_RDONLY, align 4
%5 = call i32 (ptr, i32, ...) @open(ptr noundef @.str.1, i32 noundef %4)
store i32 %5, ptr %1, align 4
%6 = load i32, ptr %1, align 4
%7 = icmp eq i32 %6, -1
br i1 %7, label %8, label %12
8: ; preds = %0
%9 = call i32 @perror(ptr noundef @.str.2)
%10 = load i32, ptr @EXIT_FAILURE, align 4
%11 = call i32 @exit(i32 noundef %10) #3
unreachable
12: ; preds = %0
%13 = load i32, ptr @O_RDWR, align 4
%14 = load i32, ptr @O_CREAT, align 4
%15 = or i32 %13, %14
%16 = load i32, ptr @O_TRUNC, align 4
%17 = or i32 %15, %16
%18 = load i32, ptr @S_IRUSR, align 4
%19 = load i32, ptr @S_IWUSR, align 4
%20 = or i32 %18, %19
%21 = call i32 (ptr, i32, ...) @open(ptr noundef @.str.3, i32 noundef %17, i32 noundef %20)
store i32 %21, ptr %1, align 4
%22 = load i32, ptr %1, align 4
%23 = icmp eq i32 %22, -1
br i1 %23, label %24, label %28
24: ; preds = %12
%25 = call i32 @perror(ptr noundef @.str.2)
%26 = load i32, ptr @EXIT_FAILURE, align 4
%27 = call i32 @exit(i32 noundef %26) #3
unreachable
28: ; preds = %12
%29 = load i32, ptr @O_WRONLY, align 4
%30 = load i32, ptr @O_CREAT, align 4
%31 = or i32 %29, %30
%32 = load i32, ptr @O_TRUNC, align 4
%33 = or i32 %31, %32
%34 = load i32, ptr @O_APPEND, align 4
%35 = or i32 %33, %34
%36 = load i32, ptr @S_IRUSR, align 4
%37 = load i32, ptr @S_IWUSR, align 4
%38 = or i32 %36, %37
%39 = call i32 (ptr, i32, ...) @open(ptr noundef @.str.4, i32 noundef %35, i32 noundef %38)
store i32 %39, ptr %1, align 4
%40 = load i32, ptr %1, align 4
%41 = icmp eq i32 %40, -1
br i1 %41, label %42, label %46
42: ; preds = %28
%43 = call i32 @perror(ptr noundef @.str.2)
%44 = load i32, ptr @EXIT_FAILURE, align 4
%45 = call i32 @exit(i32 noundef %44) #3
unreachable
46: ; preds = %28
ret i32 0
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare ptr @gnu_get_libc_version(...) #1
declare i32 @open(ptr noundef, i32 noundef, ...) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgwmva5x4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"The GLIBC version present is %s\0A\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"startup\00", align 1
@O_RDONLY = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [5 x i8] c"open\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [7 x i8] c"myfile\00", align 1
@O_RDWR = dso_local global i32 0, align 4
@O_CREAT = dso_local global i32 0, align 4
@O_TRUNC = dso_local global i32 0, align 4
@S_IRUSR = dso_local global i32 0, align 4
@S_IWUSR = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [6 x i8] c"w.log\00", align 1
@O_WRONLY = dso_local global i32 0, align 4
@O_APPEND = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = call ptr (...) @gnu_get_libc_version()
%3 = call i32 @printf(ptr noundef @.str, ptr noundef %2)
%4 = load i32, ptr @O_RDONLY, align 4
%5 = call i32 (ptr, i32, ...) @open(ptr noundef @.str.1, i32 noundef %4)
store i32 %5, ptr %1, align 4
%6 = load i32, ptr %1, align 4
%7 = icmp eq i32 %6, -1
br i1 %7, label %8, label %12
8: ; preds = %0
%9 = call i32 @perror(ptr noundef @.str.2)
%10 = load i32, ptr @EXIT_FAILURE, align 4
%11 = call i32 @exit(i32 noundef %10) #3
unreachable
12: ; preds = %0
%13 = load i32, ptr @O_RDWR, align 4
%14 = load i32, ptr @O_CREAT, align 4
%15 = or i32 %13, %14
%16 = load i32, ptr @O_TRUNC, align 4
%17 = or i32 %15, %16
%18 = load i32, ptr @S_IRUSR, align 4
%19 = load i32, ptr @S_IWUSR, align 4
%20 = or i32 %18, %19
%21 = call i32 (ptr, i32, ...) @open(ptr noundef @.str.3, i32 noundef %17, i32 noundef %20)
store i32 %21, ptr %1, align 4
%22 = load i32, ptr %1, align 4
%23 = icmp eq i32 %22, -1
br i1 %23, label %24, label %28
24: ; preds = %12
%25 = call i32 @perror(ptr noundef @.str.2)
%26 = load i32, ptr @EXIT_FAILURE, align 4
%27 = call i32 @exit(i32 noundef %26) #3
unreachable
28: ; preds = %12
%29 = load i32, ptr @O_WRONLY, align 4
%30 = load i32, ptr @O_CREAT, align 4
%31 = or i32 %29, %30
%32 = load i32, ptr @O_TRUNC, align 4
%33 = or i32 %31, %32
%34 = load i32, ptr @O_APPEND, align 4
%35 = or i32 %33, %34
%36 = load i32, ptr @S_IRUSR, align 4
%37 = load i32, ptr @S_IWUSR, align 4
%38 = or i32 %36, %37
%39 = call i32 (ptr, i32, ...) @open(ptr noundef @.str.4, i32 noundef %35, i32 noundef %38)
store i32 %39, ptr %1, align 4
%40 = load i32, ptr %1, align 4
%41 = icmp eq i32 %40, -1
br i1 %41, label %42, label %46
42: ; preds = %28
%43 = call i32 @perror(ptr noundef @.str.2)
%44 = load i32, ptr @EXIT_FAILURE, align 4
%45 = call i32 @exit(i32 noundef %44) #3
unreachable
46: ; preds = %28
ret i32 0
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare ptr @gnu_get_libc_version(...) #1
declare i32 @open(ptr noundef, i32 noundef, ...) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpoz8hbpsr.c'
source_filename = "/tmp/tmpoz8hbpsr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strreverse(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = call i32 @strlen(ptr noundef %6)
store i32 %7, ptr %3, align 4
%8 = load i32, ptr %3, align 4
%9 = call ptr @alloca(i32 noundef %8)
store ptr %9, ptr %4, align 8
%10 = load ptr, ptr %4, align 8
%11 = load ptr, ptr %2, align 8
%12 = call i32 @strcpy(ptr noundef %10, ptr noundef %11)
store i32 0, ptr %5, align 4
br label %13
13: ; preds = %30, %1
%14 = load i32, ptr %5, align 4
%15 = load i32, ptr %3, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %17, label %33
17: ; preds = %13
%18 = load ptr, ptr %4, align 8
%19 = load i32, ptr %3, align 4
%20 = sub nsw i32 %19, 1
%21 = load i32, ptr %5, align 4
%22 = sub nsw i32 %20, %21
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i8, ptr %18, i64 %23
%25 = load i8, ptr %24, align 1
%26 = load ptr, ptr %2, align 8
%27 = load i32, ptr %5, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, ptr %26, i64 %28
store i8 %25, ptr %29, align 1
br label %30
30: ; preds = %17
%31 = load i32, ptr %5, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %5, align 4
br label %13, !llvm.loop !6
33: ; preds = %13
%34 = load ptr, ptr %2, align 8
ret ptr %34
}
declare i32 @strlen(ptr noundef) #1
declare ptr @alloca(i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpoz8hbpsr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strreverse(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%6 = load ptr, ptr %2, align 8
%7 = call i32 @strlen(ptr noundef %6)
store i32 %7, ptr %3, align 4
%8 = load i32, ptr %3, align 4
%9 = call ptr @alloca(i32 noundef %8)
store ptr %9, ptr %4, align 8
%10 = load ptr, ptr %4, align 8
%11 = load ptr, ptr %2, align 8
%12 = call i32 @strcpy(ptr noundef %10, ptr noundef %11)
store i32 0, ptr %5, align 4
%13 = load i32, ptr %5, align 4
%14 = load i32, ptr %3, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %.lr.ph, label %35
.lr.ph: ; preds = %1
br label %16
16: ; preds = %.lr.ph, %29
%17 = load ptr, ptr %4, align 8
%18 = load i32, ptr %3, align 4
%19 = sub nsw i32 %18, 1
%20 = load i32, ptr %5, align 4
%21 = sub nsw i32 %19, %20
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i8, ptr %17, i64 %22
%24 = load i8, ptr %23, align 1
%25 = load ptr, ptr %2, align 8
%26 = load i32, ptr %5, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8, ptr %25, i64 %27
store i8 %24, ptr %28, align 1
br label %29
29: ; preds = %16
%30 = load i32, ptr %5, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %5, align 4
%32 = load i32, ptr %5, align 4
%33 = load i32, ptr %3, align 4
%34 = icmp slt i32 %32, %33
br i1 %34, label %16, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %29
br label %35
35: ; preds = %._crit_edge, %1
%36 = load ptr, ptr %2, align 8
ret ptr %36
}
declare i32 @strlen(ptr noundef) #1
declare ptr @alloca(i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpcn9df2rx.c'
source_filename = "/tmp/tmpcn9df2rx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @papif_accum__(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load i32, ptr %7, align 4
%9 = load ptr, ptr %5, align 8
%10 = call i32 @PAPI_accum(i32 noundef %8, ptr noundef %9)
%11 = load ptr, ptr %6, align 8
store i32 %10, ptr %11, align 4
ret void
}
declare i32 @PAPI_accum(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/tmpcn9df2rx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @papif_accum__(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load i32, ptr %7, align 4
%9 = load ptr, ptr %5, align 8
%10 = call i32 @PAPI_accum(i32 noundef %8, ptr noundef %9)
%11 = load ptr, ptr %6, align 8
store i32 %10, ptr %11, align 4
ret void
}
declare i32 @PAPI_accum(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/tmp3p4t5jd2.c'
source_filename = "/tmp/tmp3p4t5jd2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @bitcount(i32 noundef 857028)
%3 = call i32 @printf(ptr noundef @.str, i32 noundef %2)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @bitcount(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3p4t5jd2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 @bitcount(i32 noundef 857028)
%3 = call i32 @printf(ptr noundef @.str, i32 noundef %2)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @bitcount(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp4e7sak3w.c'
source_filename = "/tmp/tmp4e7sak3w.c"
target datalayout = "e-m:e-p270: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/tmp4e7sak3w.c"
target datalayout = "e-m:e-p270: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/tmpkftmuv_8.c'
source_filename = "/tmp/tmpkftmuv_8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkftmuv_8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpu1whjcr0.c'
source_filename = "/tmp/tmpu1whjcr0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [1219 x i8] c"Usage: Gillespie.exe [OPTION]\0AProgram running the Gillespie-Algorithm. The model is defined by the compulsory file 'Gillespie.inp',\0Awhich must reside in the current working directory.\0A\0APossible options:\0A\09-a --a_bionmial do cell division by exactly dividing in half\0A\09-c --conc output concentrations\0A\09-n --number output copynumbers\0A\09-e --exponential set the growth mechanism to exponential growth\0A\09-l --linear set the growth mechanism to linear growth\0A\09-s, --seed[=nr] initializes the used random number generator with the integer `nr`\0A\09 If `nr` is not given or is zero a random seed is used\0A\09-q, --quite Prevent the output of single files for each species\0A\09-p, --phos Outputs the phosphorylation ratio for the Kai system\0A\09-t, --total Outputs the total amount of KaiC for the Kai system\0A\09 --species=id Outputs only the chemical species which matches `id`\0A\0A\09 --input=file define input file, where the initial state of the system is given\0A\09 --output=file define output file, where the final state of the system is written to\0A\09-h, --help display this help and exit\0A\09-v, --verbose outputs intermediate stats while calculating\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @show_help() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpu1whjcr0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [1219 x i8] c"Usage: Gillespie.exe [OPTION]\0AProgram running the Gillespie-Algorithm. The model is defined by the compulsory file 'Gillespie.inp',\0Awhich must reside in the current working directory.\0A\0APossible options:\0A\09-a --a_bionmial do cell division by exactly dividing in half\0A\09-c --conc output concentrations\0A\09-n --number output copynumbers\0A\09-e --exponential set the growth mechanism to exponential growth\0A\09-l --linear set the growth mechanism to linear growth\0A\09-s, --seed[=nr] initializes the used random number generator with the integer `nr`\0A\09 If `nr` is not given or is zero a random seed is used\0A\09-q, --quite Prevent the output of single files for each species\0A\09-p, --phos Outputs the phosphorylation ratio for the Kai system\0A\09-t, --total Outputs the total amount of KaiC for the Kai system\0A\09 --species=id Outputs only the chemical species which matches `id`\0A\0A\09 --input=file define input file, where the initial state of the system is given\0A\09 --output=file define output file, where the final state of the system is written to\0A\09-h, --help display this help and exit\0A\09-v, --verbose outputs intermediate stats while calculating\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @show_help() #0 {
%1 = call i32 @printf(ptr noundef @.str)
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpr73os4i0.c'
source_filename = "/tmp/tmpr73os4i0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%3d;\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 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca [100 x i16], align 16
%4 = alloca [100 x i16], align 16
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 0, ptr %2, align 4
br label %5
5: ; preds = %30, %0
%6 = load i32, ptr %2, align 4
%7 = icmp slt i32 %6, 10
br i1 %7, label %8, label %33
8: ; preds = %5
store i32 0, ptr %1, align 4
br label %9
9: ; preds = %25, %8
%10 = load i32, ptr %1, align 4
%11 = icmp slt i32 %10, 10
br i1 %11, label %12, label %28
12: ; preds = %9
%13 = load i32, ptr %2, align 4
%14 = mul nsw i32 %13, 10
%15 = load i32, ptr %1, align 4
%16 = add nsw i32 %14, %15
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %16)
%18 = load i32, ptr %2, align 4
%19 = mul nsw i32 %18, 10
%20 = load i32, ptr %1, align 4
%21 = add nsw i32 %19, %20
%22 = icmp eq i32 %21, 85
br i1 %22, label %23, label %24
23: ; preds = %12
br label %28
24: ; preds = %12
br label %25
25: ; preds = %24
%26 = load i32, ptr %1, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %1, align 4
br label %9, !llvm.loop !6
28: ; preds = %23, %9
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %30
30: ; preds = %28
%31 = load i32, ptr %2, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %2, align 4
br label %5, !llvm.loop !8
33: ; preds = %5
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpr73os4i0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%3d;\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 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca [100 x i16], align 16
%4 = alloca [100 x i16], align 16
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 0, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = icmp slt i32 %5, 10
br i1 %6, label %.lr.ph1, label %35
.lr.ph1: ; preds = %0
br label %7
7: ; preds = %.lr.ph1, %30
store i32 0, ptr %1, align 4
%8 = load i32, ptr %1, align 4
%9 = icmp slt i32 %8, 10
br i1 %9, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %7
br label %10
10: ; preds = %.lr.ph, %23
%11 = load i32, ptr %2, align 4
%12 = mul nsw i32 %11, 10
%13 = load i32, ptr %1, align 4
%14 = add nsw i32 %12, %13
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %14)
%16 = load i32, ptr %2, align 4
%17 = mul nsw i32 %16, 10
%18 = load i32, ptr %1, align 4
%19 = add nsw i32 %17, %18
%20 = icmp eq i32 %19, 85
br i1 %20, label %21, label %22
21: ; preds = %10
br label %28
22: ; preds = %10
br label %23
23: ; preds = %22
%24 = load i32, ptr %1, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %1, align 4
%26 = load i32, ptr %1, align 4
%27 = icmp slt i32 %26, 10
br i1 %27, label %10, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %23
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %7
br label %28
28: ; preds = %.loopexit, %21
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %30
30: ; preds = %28
%31 = load i32, ptr %2, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %2, align 4
%33 = load i32, ptr %2, align 4
%34 = icmp slt i32 %33, 10
br i1 %34, label %7, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %30
br label %35
35: ; preds = %._crit_edge, %0
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpy4rm6m5i.c'
source_filename = "/tmp/tmpy4rm6m5i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ev_break() #0 {
%1 = call i32 (...) @getchar()
ret void
}
declare i32 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpy4rm6m5i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ev_break() #0 {
%1 = call i32 (...) @getchar()
ret void
}
declare i32 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp7e2jsg67.c'
source_filename = "/tmp/tmp7e2jsg67.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [10 x i8] c"atomic_io\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @atomic_write(i32 noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
br label %12
12: ; preds = %4
store i64 0, ptr %9, align 8
store i64 0, ptr %10, align 8
store i32 0, ptr %11, align 4
%13 = load ptr, ptr %8, align 8
%14 = icmp ne ptr null, %13
br i1 %14, label %15, label %17
15: ; preds = %12
%16 = load ptr, ptr %8, align 8
store i32 0, ptr %16, align 4
br label %17
17: ; preds = %15, %12
br label %18
18: ; preds = %70, %17
%19 = load i32, ptr %11, align 4
%20 = icmp ne i32 %19, 0
%21 = xor i1 %20, true
br i1 %21, label %22, label %71
22: ; preds = %18
%23 = load i32, ptr %5, align 4
%24 = load ptr, ptr %6, align 8
%25 = load i64, ptr %9, align 8
%26 = getelementptr i8, ptr %24, i64 %25
%27 = load i64, ptr %7, align 8
%28 = load i64, ptr %9, align 8
%29 = sub i64 %27, %28
store i64 %29, ptr %10, align 8
%30 = load i64, ptr %10, align 8
%31 = icmp eq i64 -1, %30
br i1 %31, label %32, label %52
32: ; preds = %22
%33 = load i32, ptr @errno, align 4
switch i32 %33, label %48 [
i32 131, label %34
i32 129, label %35
i32 128, label %36
i32 130, label %42
]
34: ; preds = %32
store i32 1, ptr %11, align 4
br label %51
35: ; preds = %32
br label %51
36: ; preds = %32
%37 = load ptr, ptr %8, align 8
%38 = icmp ne ptr null, %37
br i1 %38, label %39, label %41
39: ; preds = %36
%40 = load ptr, ptr %8, align 8
store i32 1, ptr %40, align 4
br label %41
41: ; preds = %39, %36
store i32 1, ptr %11, align 4
br label %51
42: ; preds = %32
%43 = load ptr, ptr %8, align 8
%44 = icmp ne ptr null, %43
br i1 %44, label %45, label %47
45: ; preds = %42
%46 = load ptr, ptr %8, align 8
store i32 1, ptr %46, align 4
br label %47
47: ; preds = %45, %42
store i32 1, ptr %11, align 4
br label %51
48: ; preds = %32
%49 = call i32 @perror(ptr noundef @.str)
%50 = call i32 @assert(i32 noundef 0)
br label %51
51: ; preds = %48, %47, %41, %35, %34
br label %70
52: ; preds = %22
%53 = load i64, ptr %10, align 8
%54 = icmp eq i64 0, %53
br i1 %54, label %55, label %61
55: ; preds = %52
%56 = load ptr, ptr %8, align 8
%57 = icmp ne ptr null, %56
br i1 %57, label %58, label %60
58: ; preds = %55
%59 = load ptr, ptr %8, align 8
store i32 1, ptr %59, align 4
br label %60
60: ; preds = %58, %55
store i32 1, ptr %11, align 4
br label %69
61: ; preds = %52
%62 = load i64, ptr %10, align 8
%63 = load i64, ptr %9, align 8
%64 = add i64 %63, %62
store i64 %64, ptr %9, align 8
%65 = load i64, ptr %9, align 8
%66 = load i64, ptr %7, align 8
%67 = icmp eq i64 %65, %66
%68 = zext i1 %67 to i32
store i32 %68, ptr %11, align 4
br label %69
69: ; preds = %61, %60
br label %70
70: ; preds = %69, %51
br label %18, !llvm.loop !6
71: ; preds = %18
%72 = load i64, ptr %9, align 8
br label %73
73: ; preds = %71
ret i64 %72
}
declare i32 @perror(ptr noundef) #1
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp7e2jsg67.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@errno = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [10 x i8] c"atomic_io\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @atomic_write(i32 noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store ptr %3, ptr %8, align 8
br label %12
12: ; preds = %4
store i64 0, ptr %9, align 8
store i64 0, ptr %10, align 8
store i32 0, ptr %11, align 4
%13 = load ptr, ptr %8, align 8
%14 = icmp ne ptr null, %13
br i1 %14, label %15, label %17
15: ; preds = %12
%16 = load ptr, ptr %8, align 8
store i32 0, ptr %16, align 4
br label %17
17: ; preds = %15, %12
%18 = load i32, ptr %11, align 4
%19 = icmp ne i32 %18, 0
%20 = xor i1 %19, true
br i1 %20, label %.lr.ph, label %73
.lr.ph: ; preds = %17
br label %21
21: ; preds = %.lr.ph, %69
%22 = load i32, ptr %5, align 4
%23 = load ptr, ptr %6, align 8
%24 = load i64, ptr %9, align 8
%25 = getelementptr i8, ptr %23, i64 %24
%26 = load i64, ptr %7, align 8
%27 = load i64, ptr %9, align 8
%28 = sub i64 %26, %27
store i64 %28, ptr %10, align 8
%29 = load i64, ptr %10, align 8
%30 = icmp eq i64 -1, %29
br i1 %30, label %31, label %51
31: ; preds = %21
%32 = load i32, ptr @errno, align 4
switch i32 %32, label %47 [
i32 131, label %33
i32 129, label %34
i32 128, label %35
i32 130, label %41
]
33: ; preds = %31
store i32 1, ptr %11, align 4
br label %50
34: ; preds = %31
br label %50
35: ; preds = %31
%36 = load ptr, ptr %8, align 8
%37 = icmp ne ptr null, %36
br i1 %37, label %38, label %40
38: ; preds = %35
%39 = load ptr, ptr %8, align 8
store i32 1, ptr %39, align 4
br label %40
40: ; preds = %38, %35
store i32 1, ptr %11, align 4
br label %50
41: ; preds = %31
%42 = load ptr, ptr %8, align 8
%43 = icmp ne ptr null, %42
br i1 %43, label %44, label %46
44: ; preds = %41
%45 = load ptr, ptr %8, align 8
store i32 1, ptr %45, align 4
br label %46
46: ; preds = %44, %41
store i32 1, ptr %11, align 4
br label %50
47: ; preds = %31
%48 = call i32 @perror(ptr noundef @.str)
%49 = call i32 @assert(i32 noundef 0)
br label %50
50: ; preds = %47, %46, %40, %34, %33
br label %69
51: ; preds = %21
%52 = load i64, ptr %10, align 8
%53 = icmp eq i64 0, %52
br i1 %53, label %54, label %60
54: ; preds = %51
%55 = load ptr, ptr %8, align 8
%56 = icmp ne ptr null, %55
br i1 %56, label %57, label %59
57: ; preds = %54
%58 = load ptr, ptr %8, align 8
store i32 1, ptr %58, align 4
br label %59
59: ; preds = %57, %54
store i32 1, ptr %11, align 4
br label %68
60: ; preds = %51
%61 = load i64, ptr %10, align 8
%62 = load i64, ptr %9, align 8
%63 = add i64 %62, %61
store i64 %63, ptr %9, align 8
%64 = load i64, ptr %9, align 8
%65 = load i64, ptr %7, align 8
%66 = icmp eq i64 %64, %65
%67 = zext i1 %66 to i32
store i32 %67, ptr %11, align 4
br label %68
68: ; preds = %60, %59
br label %69
69: ; preds = %68, %50
%70 = load i32, ptr %11, align 4
%71 = icmp ne i32 %70, 0
%72 = xor i1 %71, true
br i1 %72, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %69
br label %73
73: ; preds = %._crit_edge, %17
%74 = load i64, ptr %9, align 8
br label %75
75: ; preds = %73
ret i64 %74
}
declare i32 @perror(ptr noundef) #1
declare i32 @assert(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp2h9bn0zp.c'
source_filename = "/tmp/tmp2h9bn0zp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [42 x i8] c"Enter a number to find it's square root: \00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%lf\00", align 1
@.str.2 = private unnamed_addr constant [52 x i8] c"Enter a starting point for calculating the square: \00", align 1
@.str.3 = private unnamed_addr constant [21 x i8] c"x\09y\09x/y\09Avg. of x/y\0A\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"%.5lf \00", align 1
@.str.5 = private unnamed_addr constant [8 x i8] c"%.5lf \0A\00", align 1
@.str.6 = private unnamed_addr constant [55 x i8] c"The approximate square root of your number is: %.05lf\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
store i32 0, ptr %1, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%8 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %10
10: ; preds = %20, %0
%11 = load double, ptr %3, align 8
%12 = load double, ptr %3, align 8
%13 = load double, ptr %2, align 8
%14 = fneg double %13
%15 = call double @llvm.fmuladd.f64(double %11, double %12, double %14)
%16 = call double @llvm.fabs.f64(double %15)
%17 = load double, ptr %3, align 8
%18 = fmul double 1.000000e-05, %17
%19 = fcmp oge double %16, %18
br i1 %19, label %20, label %38
20: ; preds = %10
%21 = load double, ptr %3, align 8
%22 = load double, ptr %2, align 8
%23 = load double, ptr %3, align 8
%24 = fdiv double %22, %23
%25 = fadd double %21, %24
%26 = fdiv double %25, 2.000000e+00
store double %26, ptr %4, align 8
%27 = load double, ptr %2, align 8
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %27)
%29 = load double, ptr %3, align 8
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %29)
%31 = load double, ptr %2, align 8
%32 = load double, ptr %3, align 8
%33 = fdiv double %31, %32
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %33)
%35 = load double, ptr %4, align 8
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, double noundef %35)
%37 = load double, ptr %4, align 8
store double %37, ptr %3, align 8
br label %10, !llvm.loop !6
38: ; preds = %10
%39 = load double, ptr %3, align 8
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, double noundef %39)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2h9bn0zp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [42 x i8] c"Enter a number to find it's square root: \00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%lf\00", align 1
@.str.2 = private unnamed_addr constant [52 x i8] c"Enter a starting point for calculating the square: \00", align 1
@.str.3 = private unnamed_addr constant [21 x i8] c"x\09y\09x/y\09Avg. of x/y\0A\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"%.5lf \00", align 1
@.str.5 = private unnamed_addr constant [8 x i8] c"%.5lf \0A\00", align 1
@.str.6 = private unnamed_addr constant [55 x i8] c"The approximate square root of your number is: %.05lf\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca double, align 8
%3 = alloca double, align 8
%4 = alloca double, align 8
store i32 0, ptr %1, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%8 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%10 = load double, ptr %3, align 8
%11 = load double, ptr %3, align 8
%12 = load double, ptr %2, align 8
%13 = fneg double %12
%14 = call double @llvm.fmuladd.f64(double %10, double %11, double %13)
%15 = call double @llvm.fabs.f64(double %14)
%16 = load double, ptr %3, align 8
%17 = fmul double 1.000000e-05, %16
%18 = fcmp oge double %15, %17
br i1 %18, label %.lr.ph, label %46
.lr.ph: ; preds = %0
br label %19
19: ; preds = %.lr.ph, %19
%20 = load double, ptr %3, align 8
%21 = load double, ptr %2, align 8
%22 = load double, ptr %3, align 8
%23 = fdiv double %21, %22
%24 = fadd double %20, %23
%25 = fdiv double %24, 2.000000e+00
store double %25, ptr %4, align 8
%26 = load double, ptr %2, align 8
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %26)
%28 = load double, ptr %3, align 8
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %28)
%30 = load double, ptr %2, align 8
%31 = load double, ptr %3, align 8
%32 = fdiv double %30, %31
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %32)
%34 = load double, ptr %4, align 8
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, double noundef %34)
%36 = load double, ptr %4, align 8
store double %36, ptr %3, align 8
%37 = load double, ptr %3, align 8
%38 = load double, ptr %3, align 8
%39 = load double, ptr %2, align 8
%40 = fneg double %39
%41 = call double @llvm.fmuladd.f64(double %37, double %38, double %40)
%42 = call double @llvm.fabs.f64(double %41)
%43 = load double, ptr %3, align 8
%44 = fmul double 1.000000e-05, %43
%45 = fcmp oge double %42, %44
br i1 %45, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %46
46: ; preds = %._crit_edge, %0
%47 = load double, ptr %3, align 8
%48 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, double noundef %47)
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpefb_ry7z.c'
source_filename = "/tmp/tmpefb_ry7z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @baz(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 = icmp ne i32 %5, %6
%8 = zext i1 %7 to i32
ret i32 %8
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpefb_ry7z.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @baz(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 = icmp ne i32 %5, %6
%8 = zext i1 %7 to i32
ret i32 %8
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpop4azc21.c'
source_filename = "/tmp/tmpop4azc21.c"
target datalayout = "e-m:e-p270: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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getline_local(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %6, align 4
br label %7
7: ; preds = %20, %2
%8 = load i32, ptr %4, align 4
%9 = add nsw i32 %8, -1
store i32 %9, ptr %4, align 4
%10 = icmp sgt i32 %9, 0
br i1 %10, label %11, label %18
11: ; preds = %7
%12 = call i32 (...) @getchar()
store i32 %12, ptr %5, align 4
%13 = load i32, ptr @EOF, align 4
%14 = icmp ne i32 %12, %13
br i1 %14, label %15, label %18
15: ; preds = %11
%16 = load i32, ptr %5, align 4
%17 = icmp ne i32 %16, 10
br label %18
18: ; preds = %15, %11, %7
%19 = phi i1 [ false, %11 ], [ false, %7 ], [ %17, %15 ]
br i1 %19, label %20, label %28
20: ; preds = %18
%21 = load i32, ptr %5, align 4
%22 = trunc i32 %21 to i8
%23 = load ptr, ptr %3, align 8
%24 = load i32, ptr %6, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %6, align 4
%26 = sext i32 %24 to i64
%27 = getelementptr inbounds i8, ptr %23, i64 %26
store i8 %22, ptr %27, align 1
br label %7, !llvm.loop !6
28: ; preds = %18
%29 = load i32, ptr %5, align 4
%30 = icmp eq i32 %29, 10
br i1 %30, label %31, label %39
31: ; preds = %28
%32 = load i32, ptr %5, align 4
%33 = trunc i32 %32 to i8
%34 = load ptr, ptr %3, align 8
%35 = load i32, ptr %6, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %6, align 4
%37 = sext i32 %35 to i64
%38 = getelementptr inbounds i8, ptr %34, i64 %37
store i8 %33, ptr %38, align 1
br label %39
39: ; preds = %31, %28
%40 = load i32, ptr %6, align 4
ret i32 %40
}
declare i32 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpop4azc21.c"
target datalayout = "e-m:e-p270: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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @getline_local(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %6, align 4
br label %7
7: ; preds = %20, %2
%8 = load i32, ptr %4, align 4
%9 = add nsw i32 %8, -1
store i32 %9, ptr %4, align 4
%10 = icmp sgt i32 %9, 0
br i1 %10, label %11, label %18
11: ; preds = %7
%12 = call i32 (...) @getchar()
store i32 %12, ptr %5, align 4
%13 = load i32, ptr @EOF, align 4
%14 = icmp ne i32 %12, %13
br i1 %14, label %15, label %18
15: ; preds = %11
%16 = load i32, ptr %5, align 4
%17 = icmp ne i32 %16, 10
br label %18
18: ; preds = %15, %11, %7
%19 = phi i1 [ false, %11 ], [ false, %7 ], [ %17, %15 ]
br i1 %19, label %20, label %28
20: ; preds = %18
%21 = load i32, ptr %5, align 4
%22 = trunc i32 %21 to i8
%23 = load ptr, ptr %3, align 8
%24 = load i32, ptr %6, align 4
%25 = add nsw i32 %24, 1
store i32 %25, ptr %6, align 4
%26 = sext i32 %24 to i64
%27 = getelementptr inbounds i8, ptr %23, i64 %26
store i8 %22, ptr %27, align 1
br label %7, !llvm.loop !6
28: ; preds = %18
%29 = load i32, ptr %5, align 4
%30 = icmp eq i32 %29, 10
br i1 %30, label %31, label %39
31: ; preds = %28
%32 = load i32, ptr %5, align 4
%33 = trunc i32 %32 to i8
%34 = load ptr, ptr %3, align 8
%35 = load i32, ptr %6, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %6, align 4
%37 = sext i32 %35 to i64
%38 = getelementptr inbounds i8, ptr %34, i64 %37
store i8 %33, ptr %38, align 1
br label %39
39: ; preds = %31, %28
%40 = load i32, ptr %6, align 4
ret i32 %40
}
declare i32 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpvohb8qna.c'
source_filename = "/tmp/tmpvohb8qna.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"Sum: %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"Avg: %.2f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
%6 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
store i32 0, ptr %4, align 4
br label %7
7: ; preds = %16, %0
%8 = load i32, ptr %4, align 4
%9 = load i32, ptr %2, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %11, label %19
11: ; preds = %7
%12 = call i32 @scanf(ptr noundef @.str, ptr noundef %5)
%13 = load i32, ptr %3, align 4
%14 = load i32, ptr %5, align 4
%15 = add nsw i32 %13, %14
store i32 %15, ptr %3, align 4
br label %16
16: ; preds = %11
%17 = load i32, ptr %4, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %4, align 4
br label %7, !llvm.loop !6
19: ; preds = %7
%20 = load i32, ptr %3, align 4
%21 = sitofp i32 %20 to float
%22 = call i32 @printf(ptr noundef @.str.1, float noundef %21)
%23 = load i32, ptr %3, align 4
%24 = sitofp i32 %23 to float
%25 = load i32, ptr %2, align 4
%26 = sitofp i32 %25 to float
%27 = fdiv float %24, %26
%28 = call i32 @printf(ptr noundef @.str.2, float noundef %27)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpvohb8qna.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"Sum: %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"Avg: %.2f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
%6 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
store i32 0, ptr %4, align 4
%7 = load i32, ptr %4, align 4
%8 = load i32, ptr %2, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %.lr.ph, label %21
.lr.ph: ; preds = %0
br label %10
10: ; preds = %.lr.ph, %15
%11 = call i32 @scanf(ptr noundef @.str, ptr noundef %5)
%12 = load i32, ptr %3, align 4
%13 = load i32, ptr %5, align 4
%14 = add nsw i32 %12, %13
store i32 %14, ptr %3, align 4
br label %15
15: ; preds = %10
%16 = load i32, ptr %4, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %4, align 4
%18 = load i32, ptr %4, align 4
%19 = load i32, ptr %2, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %15
br label %21
21: ; preds = %._crit_edge, %0
%22 = load i32, ptr %3, align 4
%23 = sitofp i32 %22 to float
%24 = call i32 @printf(ptr noundef @.str.1, float noundef %23)
%25 = load i32, ptr %3, align 4
%26 = sitofp i32 %25 to float
%27 = load i32, ptr %2, align 4
%28 = sitofp i32 %27 to float
%29 = fdiv float %26, %28
%30 = call i32 @printf(ptr noundef @.str.2, float noundef %29)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp0_frb5zh.c'
source_filename = "/tmp/tmp0_frb5zh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@mem_get.outofmem = internal global i16 0, align 2
@.str = private unnamed_addr constant [10 x i8] c"mem_get()\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 ptr @mem_get(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = call i64 @malloc(i32 noundef %4)
%6 = inttoptr i64 %5 to ptr
store ptr %6, ptr %3, align 8
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %15
8: ; preds = %1
%9 = load i16, ptr @mem_get.outofmem, align 2
%10 = icmp ne i16 %9, 0
br i1 %10, label %15, label %11
11: ; preds = %8
%12 = load i16, ptr @mem_get.outofmem, align 2
%13 = add i16 %12, 1
store i16 %13, ptr @mem_get.outofmem, align 2
%14 = call i32 @warn(ptr noundef @.str, ptr noundef @.str.1)
br label %15
15: ; preds = %11, %8, %1
%16 = load ptr, ptr %3, align 8
ret ptr %16
}
declare i64 @malloc(i32 noundef) #1
declare i32 @warn(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/tmp0_frb5zh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@mem_get.outofmem = internal global i16 0, align 2
@.str = private unnamed_addr constant [10 x i8] c"mem_get()\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 ptr @mem_get(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
store i32 %0, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = call i64 @malloc(i32 noundef %4)
%6 = inttoptr i64 %5 to ptr
store ptr %6, ptr %3, align 8
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %15
8: ; preds = %1
%9 = load i16, ptr @mem_get.outofmem, align 2
%10 = icmp ne i16 %9, 0
br i1 %10, label %15, label %11
11: ; preds = %8
%12 = load i16, ptr @mem_get.outofmem, align 2
%13 = add i16 %12, 1
store i16 %13, ptr @mem_get.outofmem, align 2
%14 = call i32 @warn(ptr noundef @.str, ptr noundef @.str.1)
br label %15
15: ; preds = %11, %8, %1
%16 = load ptr, ptr %3, align 8
ret ptr %16
}
declare i64 @malloc(i32 noundef) #1
declare i32 @warn(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/tmp19w45z40.c'
source_filename = "/tmp/tmp19w45z40.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local zeroext i8 @WaitCharacter() #0 {
%1 = call i32 (...) @RefreshUpper()
%2 = call zeroext i8 (...) @con_getch()
ret i8 %2
}
declare i32 @RefreshUpper(...) #1
declare zeroext i8 @con_getch(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp19w45z40.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local zeroext i8 @WaitCharacter() #0 {
%1 = call i32 (...) @RefreshUpper()
%2 = call zeroext i8 (...) @con_getch()
ret i8 %2
}
declare i32 @RefreshUpper(...) #1
declare zeroext i8 @con_getch(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5gouru4v.c'
source_filename = "/tmp/tmp5gouru4v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [35 x i8] c"The 200th triangular number is %i\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
store i32 1, ptr %2, align 4
br label %4
4: ; preds = %11, %0
%5 = load i32, ptr %2, align 4
%6 = icmp sle i32 %5, 200
br i1 %6, label %7, label %14
7: ; preds = %4
%8 = load i32, ptr %2, align 4
%9 = load i32, ptr %3, align 4
%10 = add nsw i32 %9, %8
store i32 %10, ptr %3, align 4
br label %11
11: ; preds = %7
%12 = load i32, ptr %2, align 4
%13 = add nsw i32 %12, 1
store i32 %13, ptr %2, align 4
br label %4, !llvm.loop !6
14: ; preds = %4
%15 = load i32, ptr %3, align 4
%16 = call i32 @printf(ptr noundef @.str, i32 noundef %15)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5gouru4v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [35 x i8] c"The 200th triangular number is %i\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
store i32 1, ptr %2, align 4
%4 = load i32, ptr %2, align 4
%5 = icmp sle i32 %4, 200
br i1 %5, label %.lr.ph, label %15
.lr.ph: ; preds = %0
br label %6
6: ; preds = %.lr.ph, %10
%7 = load i32, ptr %2, align 4
%8 = load i32, ptr %3, align 4
%9 = add nsw i32 %8, %7
store i32 %9, ptr %3, align 4
br label %10
10: ; preds = %6
%11 = load i32, ptr %2, align 4
%12 = add nsw i32 %11, 1
store i32 %12, ptr %2, align 4
%13 = load i32, ptr %2, align 4
%14 = icmp sle i32 %13, 200
br i1 %14, label %6, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %10
br label %15
15: ; preds = %._crit_edge, %0
%16 = load i32, ptr %3, align 4
%17 = call i32 @printf(ptr noundef @.str, i32 noundef %16)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp0zc9vi0i.c'
source_filename = "/tmp/tmp0zc9vi0i.c"
target datalayout = "e-m:e-p270: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/tmp0zc9vi0i.c"
target datalayout = "e-m:e-p270: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/tmphfmcoy81.c'
source_filename = "/tmp/tmphfmcoy81.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @spgat_get_symmetry_with_collinear_spin(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, i32 noundef %8, double noundef %9, double noundef %10) #0 {
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca i32, align 4
%17 = alloca ptr, align 8
%18 = alloca ptr, align 8
%19 = alloca ptr, align 8
%20 = alloca ptr, align 8
%21 = alloca i32, align 4
%22 = alloca double, align 8
%23 = alloca double, align 8
%24 = alloca i32, align 4
%25 = alloca [3 x [3 x double]], align 16
%26 = alloca ptr, align 8
store ptr %0, ptr %13, align 8
store ptr %1, ptr %14, align 8
store ptr %2, ptr %15, align 8
store i32 %3, ptr %16, align 4
store ptr %4, ptr %17, align 8
store ptr %5, ptr %18, align 8
store ptr %6, ptr %19, align 8
store ptr %7, ptr %20, align 8
store i32 %8, ptr %21, align 4
store double %9, ptr %22, align 8
store double %10, ptr %23, align 8
%27 = load i32, ptr %16, align 4
%28 = sext i32 %27 to i64
%29 = mul i64 4, %28
%30 = trunc i64 %29 to i32
%31 = call i64 @malloc(i32 noundef %30)
%32 = inttoptr i64 %31 to ptr
store ptr %32, ptr %26, align 8
%33 = icmp eq ptr %32, null
br i1 %33, label %34, label %35
34: ; preds = %11
store i32 0, ptr %12, align 4
br label %53
35: ; preds = %11
%36 = load ptr, ptr %13, align 8
%37 = load ptr, ptr %14, align 8
%38 = load ptr, ptr %15, align 8
%39 = getelementptr inbounds [3 x [3 x double]], ptr %25, i64 0, i64 0
%40 = load ptr, ptr %26, align 8
%41 = load i32, ptr %16, align 4
%42 = load ptr, ptr %17, align 8
%43 = load ptr, ptr %18, align 8
%44 = load ptr, ptr %19, align 8
%45 = load ptr, ptr %20, align 8
%46 = load i32, ptr %21, align 4
%47 = load double, ptr %22, align 8
%48 = load double, ptr %23, align 8
%49 = call i32 @get_symmetry_with_site_tensors(ptr noundef %36, ptr noundef %37, ptr noundef %38, ptr noundef %39, ptr noundef %40, i32 noundef 1, i32 noundef %41, ptr noundef %42, ptr noundef %43, ptr noundef %44, ptr noundef %45, i32 noundef 0, i32 noundef %46, i32 noundef 1, double noundef %47, double noundef %48)
store i32 %49, ptr %24, align 4
%50 = load ptr, ptr %26, align 8
%51 = call i32 @free(ptr noundef %50)
store ptr null, ptr %26, align 8
%52 = load i32, ptr %24, align 4
store i32 %52, ptr %12, align 4
br label %53
53: ; preds = %35, %34
%54 = load i32, ptr %12, align 4
ret i32 %54
}
declare i64 @malloc(i32 noundef) #1
declare i32 @get_symmetry_with_site_tensors(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, double noundef, double noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphfmcoy81.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @spgat_get_symmetry_with_collinear_spin(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, i32 noundef %8, double noundef %9, double noundef %10) #0 {
%12 = alloca i32, align 4
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca i32, align 4
%17 = alloca ptr, align 8
%18 = alloca ptr, align 8
%19 = alloca ptr, align 8
%20 = alloca ptr, align 8
%21 = alloca i32, align 4
%22 = alloca double, align 8
%23 = alloca double, align 8
%24 = alloca i32, align 4
%25 = alloca [3 x [3 x double]], align 16
%26 = alloca ptr, align 8
store ptr %0, ptr %13, align 8
store ptr %1, ptr %14, align 8
store ptr %2, ptr %15, align 8
store i32 %3, ptr %16, align 4
store ptr %4, ptr %17, align 8
store ptr %5, ptr %18, align 8
store ptr %6, ptr %19, align 8
store ptr %7, ptr %20, align 8
store i32 %8, ptr %21, align 4
store double %9, ptr %22, align 8
store double %10, ptr %23, align 8
%27 = load i32, ptr %16, align 4
%28 = sext i32 %27 to i64
%29 = mul i64 4, %28
%30 = trunc i64 %29 to i32
%31 = call i64 @malloc(i32 noundef %30)
%32 = inttoptr i64 %31 to ptr
store ptr %32, ptr %26, align 8
%33 = icmp eq ptr %32, null
br i1 %33, label %34, label %35
34: ; preds = %11
store i32 0, ptr %12, align 4
br label %53
35: ; preds = %11
%36 = load ptr, ptr %13, align 8
%37 = load ptr, ptr %14, align 8
%38 = load ptr, ptr %15, align 8
%39 = getelementptr inbounds [3 x [3 x double]], ptr %25, i64 0, i64 0
%40 = load ptr, ptr %26, align 8
%41 = load i32, ptr %16, align 4
%42 = load ptr, ptr %17, align 8
%43 = load ptr, ptr %18, align 8
%44 = load ptr, ptr %19, align 8
%45 = load ptr, ptr %20, align 8
%46 = load i32, ptr %21, align 4
%47 = load double, ptr %22, align 8
%48 = load double, ptr %23, align 8
%49 = call i32 @get_symmetry_with_site_tensors(ptr noundef %36, ptr noundef %37, ptr noundef %38, ptr noundef %39, ptr noundef %40, i32 noundef 1, i32 noundef %41, ptr noundef %42, ptr noundef %43, ptr noundef %44, ptr noundef %45, i32 noundef 0, i32 noundef %46, i32 noundef 1, double noundef %47, double noundef %48)
store i32 %49, ptr %24, align 4
%50 = load ptr, ptr %26, align 8
%51 = call i32 @free(ptr noundef %50)
store ptr null, ptr %26, align 8
%52 = load i32, ptr %24, align 4
store i32 %52, ptr %12, align 4
br label %53
53: ; preds = %35, %34
%54 = load i32, ptr %12, align 4
ret i32 %54
}
declare i64 @malloc(i32 noundef) #1
declare i32 @get_symmetry_with_site_tensors(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, double noundef, double noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqd2jwky7.c'
source_filename = "/tmp/tmpqd2jwky7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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,\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 2, ptr %2, align 4
store i32 -1, ptr %3, align 4
store i32 2, ptr %4, align 4
br label %6
6: ; preds = %22, %0
%7 = load i32, ptr %3, align 4
%8 = load i32, ptr %2, align 4
%9 = mul nsw i32 %7, %8
store i32 %9, ptr %5, align 4
%10 = load i32, ptr %5, align 4
%11 = call i32 @printf(ptr noundef @.str, i32 noundef %10)
%12 = load i32, ptr %4, align 4
%13 = icmp eq i32 %12, 2
br i1 %13, label %14, label %17
14: ; preds = %6
%15 = load i32, ptr %3, align 4
%16 = mul nsw i32 %15, -1
store i32 %16, ptr %3, align 4
store i32 0, ptr %4, align 4
br label %17
17: ; preds = %14, %6
%18 = load i32, ptr %4, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %4, align 4
%20 = load i32, ptr %2, align 4
%21 = add nsw i32 %20, 3
store i32 %21, ptr %2, align 4
br label %22
22: ; preds = %17
%23 = load i32, ptr %2, align 4
%24 = icmp sle i32 %23, 26
br i1 %24, label %6, label %25, !llvm.loop !6
25: ; preds = %22
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqd2jwky7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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,\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 2, ptr %2, align 4
store i32 -1, ptr %3, align 4
store i32 2, ptr %4, align 4
br label %6
6: ; preds = %22, %0
%7 = load i32, ptr %3, align 4
%8 = load i32, ptr %2, align 4
%9 = mul nsw i32 %7, %8
store i32 %9, ptr %5, align 4
%10 = load i32, ptr %5, align 4
%11 = call i32 @printf(ptr noundef @.str, i32 noundef %10)
%12 = load i32, ptr %4, align 4
%13 = icmp eq i32 %12, 2
br i1 %13, label %14, label %17
14: ; preds = %6
%15 = load i32, ptr %3, align 4
%16 = mul nsw i32 %15, -1
store i32 %16, ptr %3, align 4
store i32 0, ptr %4, align 4
br label %17
17: ; preds = %14, %6
%18 = load i32, ptr %4, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %4, align 4
%20 = load i32, ptr %2, align 4
%21 = add nsw i32 %20, 3
store i32 %21, ptr %2, align 4
br label %22
22: ; preds = %17
%23 = load i32, ptr %2, align 4
%24 = icmp sle i32 %23, 26
br i1 %24, label %6, label %25, !llvm.loop !6
25: ; preds = %22
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpihxkbnmk.c'
source_filename = "/tmp/tmpihxkbnmk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @round_double(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = call double @llvm.fabs.f64(double %3)
%5 = fcmp olt double %4, 0.000000e+00
br i1 %5, label %6, label %10
6: ; preds = %1
%7 = load double, ptr %2, align 8
%8 = fsub double %7, 5.000000e-01
%9 = call double @llvm.ceil.f64(double %8)
br label %14
10: ; preds = %1
%11 = load double, ptr %2, align 8
%12 = fadd double %11, 5.000000e-01
%13 = call double @llvm.floor.f64(double %12)
br label %14
14: ; preds = %10, %6
%15 = phi double [ %9, %6 ], [ %13, %10 ]
ret double %15
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.ceil.f64(double) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.floor.f64(double) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpihxkbnmk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @round_double(double noundef %0) #0 {
%2 = alloca double, align 8
store double %0, ptr %2, align 8
%3 = load double, ptr %2, align 8
%4 = call double @llvm.fabs.f64(double %3)
%5 = fcmp olt double %4, 0.000000e+00
br i1 %5, label %6, label %10
6: ; preds = %1
%7 = load double, ptr %2, align 8
%8 = fsub double %7, 5.000000e-01
%9 = call double @llvm.ceil.f64(double %8)
br label %14
10: ; preds = %1
%11 = load double, ptr %2, align 8
%12 = fadd double %11, 5.000000e-01
%13 = call double @llvm.floor.f64(double %12)
br label %14
14: ; preds = %10, %6
%15 = phi double [ %9, %6 ], [ %13, %10 ]
ret double %15
}
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.ceil.f64(double) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.floor.f64(double) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp673wayx4.c'
source_filename = "/tmp/tmp673wayx4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @echo_cancel(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, i64 noundef %4, ptr noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca ptr, align 8
%11 = alloca i64, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca i32, align 4
%18 = alloca ptr, align 8
%19 = alloca i32, align 4
%20 = alloca i16, align 2
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store i64 %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store i64 %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
%21 = load ptr, ptr %7, align 8
%22 = load i64, ptr %9, align 8
%23 = sub i64 %22, 1
%24 = getelementptr inbounds i16, ptr %21, i64 %23
store ptr %24, ptr %13, align 8
%25 = load ptr, ptr %8, align 8
%26 = load i64, ptr %9, align 8
%27 = sub i64 %26, 1
%28 = getelementptr inbounds i16, ptr %25, i64 %27
store ptr %28, ptr %14, align 8
%29 = load ptr, ptr %12, align 8
%30 = load i64, ptr %9, align 8
%31 = sub i64 %30, 1
%32 = getelementptr inbounds i16, ptr %29, i64 %31
store ptr %32, ptr %15, align 8
store i32 0, ptr %17, align 4
%33 = load ptr, ptr %7, align 8
%34 = load i64, ptr %9, align 8
%35 = load i64, ptr %11, align 8
%36 = add i64 %34, %35
%37 = sub i64 %36, 1
%38 = getelementptr inbounds i16, ptr %33, i64 %37
store ptr %38, ptr %16, align 8
br label %39
39: ; preds = %60, %6
%40 = load ptr, ptr %16, align 8
%41 = load ptr, ptr %7, align 8
%42 = load i64, ptr %9, align 8
%43 = sub i64 %42, 1
%44 = getelementptr inbounds i16, ptr %41, i64 %43
%45 = icmp ne ptr %40, %44
br i1 %45, label %46, label %63
46: ; preds = %39
%47 = load ptr, ptr %16, align 8
%48 = load i16, ptr %47, align 2
%49 = sext i16 %48 to i32
%50 = add nsw i32 %49, 128
%51 = sdiv i32 %50, 256
%52 = load ptr, ptr %16, align 8
%53 = load i16, ptr %52, align 2
%54 = sext i16 %53 to i32
%55 = add nsw i32 %54, 128
%56 = sdiv i32 %55, 256
%57 = mul nsw i32 %51, %56
%58 = load i32, ptr %17, align 4
%59 = add nsw i32 %58, %57
store i32 %59, ptr %17, align 4
br label %60
60: ; preds = %46
%61 = load ptr, ptr %16, align 8
%62 = getelementptr inbounds i16, ptr %61, i32 -1
store ptr %62, ptr %16, align 8
br label %39, !llvm.loop !6
63: ; preds = %39
br label %64
64: ; preds = %173, %63
store i32 0, ptr %19, align 4
%65 = load ptr, ptr %13, align 8
%66 = load i64, ptr %11, align 8
%67 = sub i64 %66, 1
%68 = getelementptr inbounds i16, ptr %65, i64 %67
store ptr %68, ptr %16, align 8
%69 = load ptr, ptr %10, align 8
%70 = load i64, ptr %11, align 8
%71 = sub i64 %70, 1
%72 = getelementptr inbounds i32, ptr %69, i64 %71
store ptr %72, ptr %18, align 8
br label %73
73: ; preds = %86, %64
%74 = load ptr, ptr %16, align 8
%75 = load ptr, ptr %13, align 8
%76 = icmp ne ptr %74, %75
br i1 %76, label %77, label %91
77: ; preds = %73
%78 = load ptr, ptr %16, align 8
%79 = load i16, ptr %78, align 2
%80 = sext i16 %79 to i32
%81 = load ptr, ptr %18, align 8
%82 = load i32, ptr %81, align 4
%83 = mul nsw i32 %80, %82
%84 = load i32, ptr %19, align 4
%85 = add nsw i32 %84, %83
store i32 %85, ptr %19, align 4
br label %86
86: ; preds = %77
%87 = load ptr, ptr %16, align 8
%88 = getelementptr inbounds i16, ptr %87, i32 -1
store ptr %88, ptr %16, align 8
%89 = load ptr, ptr %18, align 8
%90 = getelementptr inbounds i32, ptr %89, i32 -1
store ptr %90, ptr %18, align 8
br label %73, !llvm.loop !8
91: ; preds = %73
%92 = load i32, ptr %19, align 4
%93 = add nsw i32 %92, 32768
%94 = sdiv i32 %93, 65536
%95 = trunc i32 %94 to i16
store i16 %95, ptr %20, align 2
%96 = load ptr, ptr %14, align 8
%97 = load i16, ptr %96, align 2
%98 = sext i16 %97 to i32
%99 = load i16, ptr %20, align 2
%100 = sext i16 %99 to i32
%101 = sub nsw i32 %98, %100
%102 = trunc i32 %101 to i16
%103 = load ptr, ptr %15, align 8
store i16 %102, ptr %103, align 2
%104 = load ptr, ptr %13, align 8
%105 = getelementptr inbounds i16, ptr %104, i64 0
%106 = load i16, ptr %105, align 2
%107 = sext i16 %106 to i32
%108 = add nsw i32 %107, 128
%109 = sdiv i32 %108, 256
%110 = load ptr, ptr %13, align 8
%111 = getelementptr inbounds i16, ptr %110, i64 0
%112 = load i16, ptr %111, align 2
%113 = sext i16 %112 to i32
%114 = add nsw i32 %113, 128
%115 = sdiv i32 %114, 256
%116 = mul nsw i32 %109, %115
%117 = load ptr, ptr %13, align 8
%118 = load i64, ptr %11, align 8
%119 = getelementptr inbounds i16, ptr %117, i64 %118
%120 = load i16, ptr %119, align 2
%121 = sext i16 %120 to i32
%122 = add nsw i32 %121, 128
%123 = sdiv i32 %122, 256
%124 = load ptr, ptr %13, align 8
%125 = load i64, ptr %11, align 8
%126 = getelementptr inbounds i16, ptr %124, i64 %125
%127 = load i16, ptr %126, align 2
%128 = sext i16 %127 to i32
%129 = add nsw i32 %128, 128
%130 = sdiv i32 %129, 256
%131 = mul nsw i32 %123, %130
%132 = sub nsw i32 %116, %131
%133 = load i32, ptr %17, align 4
%134 = add nsw i32 %133, %132
store i32 %134, ptr %17, align 4
%135 = load i32, ptr %17, align 4
%136 = icmp ne i32 %135, 0
br i1 %136, label %137, label %172
137: ; preds = %91
%138 = load ptr, ptr %13, align 8
%139 = load i64, ptr %11, align 8
%140 = sub i64 %139, 1
%141 = getelementptr inbounds i16, ptr %138, i64 %140
store ptr %141, ptr %16, align 8
%142 = load ptr, ptr %10, align 8
%143 = load i64, ptr %11, align 8
%144 = sub i64 %143, 1
%145 = getelementptr inbounds i32, ptr %142, i64 %144
store ptr %145, ptr %18, align 8
br label %146
146: ; preds = %166, %137
%147 = load ptr, ptr %16, align 8
%148 = load ptr, ptr %13, align 8
%149 = icmp ne ptr %147, %148
br i1 %149, label %150, label %171
150: ; preds = %146
%151 = load ptr, ptr %15, align 8
%152 = load i16, ptr %151, align 2
%153 = sext i16 %152 to i32
%154 = load ptr, ptr %16, align 8
%155 = load i16, ptr %154, align 2
%156 = sext i16 %155 to i32
%157 = mul nsw i32 %153, %156
%158 = load i32, ptr %17, align 4
%159 = sdiv i32 %158, 2
%160 = add nsw i32 %157, %159
%161 = load i32, ptr %17, align 4
%162 = sdiv i32 %160, %161
%163 = load ptr, ptr %18, align 8
%164 = load i32, ptr %163, align 4
%165 = add nsw i32 %164, %162
store i32 %165, ptr %163, align 4
br label %166
166: ; preds = %150
%167 = load ptr, ptr %16, align 8
%168 = getelementptr inbounds i16, ptr %167, i32 -1
store ptr %168, ptr %16, align 8
%169 = load ptr, ptr %18, align 8
%170 = getelementptr inbounds i32, ptr %169, i32 -1
store ptr %170, ptr %18, align 8
br label %146, !llvm.loop !9
171: ; preds = %146
br label %172
172: ; preds = %171, %91
br label %173
173: ; preds = %172
%174 = load ptr, ptr %13, align 8
%175 = getelementptr inbounds i16, ptr %174, i32 -1
store ptr %175, ptr %13, align 8
%176 = load ptr, ptr %15, align 8
%177 = getelementptr inbounds i16, ptr %176, i32 -1
store ptr %177, ptr %15, align 8
%178 = load ptr, ptr %14, align 8
%179 = getelementptr inbounds i16, ptr %178, i32 -1
store ptr %179, ptr %14, align 8
%180 = load ptr, ptr %8, align 8
%181 = icmp ne ptr %178, %180
br i1 %181, label %64, label %182, !llvm.loop !10
182: ; preds = %173
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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp673wayx4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @echo_cancel(ptr noundef %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, i64 noundef %4, ptr noundef %5) #0 {
%7 = alloca ptr, align 8
%8 = alloca ptr, align 8
%9 = alloca i64, align 8
%10 = alloca ptr, align 8
%11 = alloca i64, align 8
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca ptr, align 8
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
%17 = alloca i32, align 4
%18 = alloca ptr, align 8
%19 = alloca i32, align 4
%20 = alloca i16, align 2
store ptr %0, ptr %7, align 8
store ptr %1, ptr %8, align 8
store i64 %2, ptr %9, align 8
store ptr %3, ptr %10, align 8
store i64 %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
%21 = load ptr, ptr %7, align 8
%22 = load i64, ptr %9, align 8
%23 = sub i64 %22, 1
%24 = getelementptr inbounds i16, ptr %21, i64 %23
store ptr %24, ptr %13, align 8
%25 = load ptr, ptr %8, align 8
%26 = load i64, ptr %9, align 8
%27 = sub i64 %26, 1
%28 = getelementptr inbounds i16, ptr %25, i64 %27
store ptr %28, ptr %14, align 8
%29 = load ptr, ptr %12, align 8
%30 = load i64, ptr %9, align 8
%31 = sub i64 %30, 1
%32 = getelementptr inbounds i16, ptr %29, i64 %31
store ptr %32, ptr %15, align 8
store i32 0, ptr %17, align 4
%33 = load ptr, ptr %7, align 8
%34 = load i64, ptr %9, align 8
%35 = load i64, ptr %11, align 8
%36 = add i64 %34, %35
%37 = sub i64 %36, 1
%38 = getelementptr inbounds i16, ptr %33, i64 %37
store ptr %38, ptr %16, align 8
%39 = load ptr, ptr %16, align 8
%40 = load ptr, ptr %7, align 8
%41 = load i64, ptr %9, align 8
%42 = sub i64 %41, 1
%43 = getelementptr inbounds i16, ptr %40, i64 %42
%44 = icmp ne ptr %39, %43
br i1 %44, label %.lr.ph, label %68
.lr.ph: ; preds = %6
br label %45
45: ; preds = %.lr.ph, %59
%46 = load ptr, ptr %16, align 8
%47 = load i16, ptr %46, align 2
%48 = sext i16 %47 to i32
%49 = add nsw i32 %48, 128
%50 = sdiv i32 %49, 256
%51 = load ptr, ptr %16, align 8
%52 = load i16, ptr %51, align 2
%53 = sext i16 %52 to i32
%54 = add nsw i32 %53, 128
%55 = sdiv i32 %54, 256
%56 = mul nsw i32 %50, %55
%57 = load i32, ptr %17, align 4
%58 = add nsw i32 %57, %56
store i32 %58, ptr %17, align 4
br label %59
59: ; preds = %45
%60 = load ptr, ptr %16, align 8
%61 = getelementptr inbounds i16, ptr %60, i32 -1
store ptr %61, ptr %16, align 8
%62 = load ptr, ptr %16, align 8
%63 = load ptr, ptr %7, align 8
%64 = load i64, ptr %9, align 8
%65 = sub i64 %64, 1
%66 = getelementptr inbounds i16, ptr %63, i64 %65
%67 = icmp ne ptr %62, %66
br i1 %67, label %45, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %59
br label %68
68: ; preds = %._crit_edge, %6
br label %69
69: ; preds = %182, %68
store i32 0, ptr %19, align 4
%70 = load ptr, ptr %13, align 8
%71 = load i64, ptr %11, align 8
%72 = sub i64 %71, 1
%73 = getelementptr inbounds i16, ptr %70, i64 %72
store ptr %73, ptr %16, align 8
%74 = load ptr, ptr %10, align 8
%75 = load i64, ptr %11, align 8
%76 = sub i64 %75, 1
%77 = getelementptr inbounds i32, ptr %74, i64 %76
store ptr %77, ptr %18, align 8
%78 = load ptr, ptr %16, align 8
%79 = load ptr, ptr %13, align 8
%80 = icmp ne ptr %78, %79
br i1 %80, label %.lr.ph2, label %98
.lr.ph2: ; preds = %69
br label %81
81: ; preds = %.lr.ph2, %90
%82 = load ptr, ptr %16, align 8
%83 = load i16, ptr %82, align 2
%84 = sext i16 %83 to i32
%85 = load ptr, ptr %18, align 8
%86 = load i32, ptr %85, align 4
%87 = mul nsw i32 %84, %86
%88 = load i32, ptr %19, align 4
%89 = add nsw i32 %88, %87
store i32 %89, ptr %19, align 4
br label %90
90: ; preds = %81
%91 = load ptr, ptr %16, align 8
%92 = getelementptr inbounds i16, ptr %91, i32 -1
store ptr %92, ptr %16, align 8
%93 = load ptr, ptr %18, align 8
%94 = getelementptr inbounds i32, ptr %93, i32 -1
store ptr %94, ptr %18, align 8
%95 = load ptr, ptr %16, align 8
%96 = load ptr, ptr %13, align 8
%97 = icmp ne ptr %95, %96
br i1 %97, label %81, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %90
br label %98
98: ; preds = %._crit_edge3, %69
%99 = load i32, ptr %19, align 4
%100 = add nsw i32 %99, 32768
%101 = sdiv i32 %100, 65536
%102 = trunc i32 %101 to i16
store i16 %102, ptr %20, align 2
%103 = load ptr, ptr %14, align 8
%104 = load i16, ptr %103, align 2
%105 = sext i16 %104 to i32
%106 = load i16, ptr %20, align 2
%107 = sext i16 %106 to i32
%108 = sub nsw i32 %105, %107
%109 = trunc i32 %108 to i16
%110 = load ptr, ptr %15, align 8
store i16 %109, ptr %110, align 2
%111 = load ptr, ptr %13, align 8
%112 = getelementptr inbounds i16, ptr %111, i64 0
%113 = load i16, ptr %112, align 2
%114 = sext i16 %113 to i32
%115 = add nsw i32 %114, 128
%116 = sdiv i32 %115, 256
%117 = load ptr, ptr %13, align 8
%118 = getelementptr inbounds i16, ptr %117, i64 0
%119 = load i16, ptr %118, align 2
%120 = sext i16 %119 to i32
%121 = add nsw i32 %120, 128
%122 = sdiv i32 %121, 256
%123 = mul nsw i32 %116, %122
%124 = load ptr, ptr %13, align 8
%125 = load i64, ptr %11, align 8
%126 = getelementptr inbounds i16, ptr %124, i64 %125
%127 = load i16, ptr %126, align 2
%128 = sext i16 %127 to i32
%129 = add nsw i32 %128, 128
%130 = sdiv i32 %129, 256
%131 = load ptr, ptr %13, align 8
%132 = load i64, ptr %11, align 8
%133 = getelementptr inbounds i16, ptr %131, i64 %132
%134 = load i16, ptr %133, align 2
%135 = sext i16 %134 to i32
%136 = add nsw i32 %135, 128
%137 = sdiv i32 %136, 256
%138 = mul nsw i32 %130, %137
%139 = sub nsw i32 %123, %138
%140 = load i32, ptr %17, align 4
%141 = add nsw i32 %140, %139
store i32 %141, ptr %17, align 4
%142 = load i32, ptr %17, align 4
%143 = icmp ne i32 %142, 0
br i1 %143, label %144, label %181
144: ; preds = %98
%145 = load ptr, ptr %13, align 8
%146 = load i64, ptr %11, align 8
%147 = sub i64 %146, 1
%148 = getelementptr inbounds i16, ptr %145, i64 %147
store ptr %148, ptr %16, align 8
%149 = load ptr, ptr %10, align 8
%150 = load i64, ptr %11, align 8
%151 = sub i64 %150, 1
%152 = getelementptr inbounds i32, ptr %149, i64 %151
store ptr %152, ptr %18, align 8
%153 = load ptr, ptr %16, align 8
%154 = load ptr, ptr %13, align 8
%155 = icmp ne ptr %153, %154
br i1 %155, label %.lr.ph5, label %180
.lr.ph5: ; preds = %144
br label %156
156: ; preds = %.lr.ph5, %172
%157 = load ptr, ptr %15, align 8
%158 = load i16, ptr %157, align 2
%159 = sext i16 %158 to i32
%160 = load ptr, ptr %16, align 8
%161 = load i16, ptr %160, align 2
%162 = sext i16 %161 to i32
%163 = mul nsw i32 %159, %162
%164 = load i32, ptr %17, align 4
%165 = sdiv i32 %164, 2
%166 = add nsw i32 %163, %165
%167 = load i32, ptr %17, align 4
%168 = sdiv i32 %166, %167
%169 = load ptr, ptr %18, align 8
%170 = load i32, ptr %169, align 4
%171 = add nsw i32 %170, %168
store i32 %171, ptr %169, align 4
br label %172
172: ; preds = %156
%173 = load ptr, ptr %16, align 8
%174 = getelementptr inbounds i16, ptr %173, i32 -1
store ptr %174, ptr %16, align 8
%175 = load ptr, ptr %18, align 8
%176 = getelementptr inbounds i32, ptr %175, i32 -1
store ptr %176, ptr %18, align 8
%177 = load ptr, ptr %16, align 8
%178 = load ptr, ptr %13, align 8
%179 = icmp ne ptr %177, %178
br i1 %179, label %156, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %172
br label %180
180: ; preds = %._crit_edge6, %144
br label %181
181: ; preds = %180, %98
br label %182
182: ; preds = %181
%183 = load ptr, ptr %13, align 8
%184 = getelementptr inbounds i16, ptr %183, i32 -1
store ptr %184, ptr %13, align 8
%185 = load ptr, ptr %15, align 8
%186 = getelementptr inbounds i16, ptr %185, i32 -1
store ptr %186, ptr %15, align 8
%187 = load ptr, ptr %14, align 8
%188 = getelementptr inbounds i16, ptr %187, i32 -1
store ptr %188, ptr %14, align 8
%189 = load ptr, ptr %8, align 8
%190 = icmp ne ptr %187, %189
br i1 %190, label %69, label %191, !llvm.loop !10
191: ; preds = %182
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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmpzatcssog.c'
source_filename = "/tmp/tmpzatcssog.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @OPENCOMM_DesExpandEncKey(ptr noundef %0, i64 noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca [32 x i64], align 16
%11 = alloca [32 x i64], align 16
store ptr %0, ptr %6, align 8
store i64 %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
%12 = load i64, ptr %7, align 8
%13 = icmp ne i64 %12, 8
br i1 %13, label %14, label %15
14: ; preds = %4
store i64 60960, ptr %5, align 8
br label %28
15: ; preds = %4
%16 = load ptr, ptr %6, align 8
%17 = getelementptr inbounds [32 x i64], ptr %10, i64 0, i64 0
%18 = call i32 @deskey(ptr noundef %16, i32 noundef 0, ptr noundef %17)
%19 = getelementptr inbounds [32 x i64], ptr %10, i64 0, i64 0
%20 = getelementptr inbounds [32 x i64], ptr %11, i64 0, i64 0
%21 = call i32 @cookey(ptr noundef %19, ptr noundef %20)
%22 = load ptr, ptr %9, align 8
store i64 128, ptr %22, align 8
%23 = load ptr, ptr %8, align 8
%24 = getelementptr inbounds [32 x i64], ptr %11, i64 0, i64 0
%25 = load ptr, ptr %9, align 8
%26 = load i64, ptr %25, align 8
%27 = call i32 @memcpy(ptr noundef %23, ptr noundef %24, i64 noundef %26)
store i64 0, ptr %5, align 8
br label %28
28: ; preds = %15, %14
%29 = load i64, ptr %5, align 8
ret i64 %29
}
declare i32 @deskey(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @cookey(ptr noundef, ptr noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzatcssog.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @OPENCOMM_DesExpandEncKey(ptr noundef %0, i64 noundef %1, ptr noundef %2, ptr noundef %3) #0 {
%5 = alloca i64, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca ptr, align 8
%10 = alloca [32 x i64], align 16
%11 = alloca [32 x i64], align 16
store ptr %0, ptr %6, align 8
store i64 %1, ptr %7, align 8
store ptr %2, ptr %8, align 8
store ptr %3, ptr %9, align 8
%12 = load i64, ptr %7, align 8
%13 = icmp ne i64 %12, 8
br i1 %13, label %14, label %15
14: ; preds = %4
store i64 60960, ptr %5, align 8
br label %28
15: ; preds = %4
%16 = load ptr, ptr %6, align 8
%17 = getelementptr inbounds [32 x i64], ptr %10, i64 0, i64 0
%18 = call i32 @deskey(ptr noundef %16, i32 noundef 0, ptr noundef %17)
%19 = getelementptr inbounds [32 x i64], ptr %10, i64 0, i64 0
%20 = getelementptr inbounds [32 x i64], ptr %11, i64 0, i64 0
%21 = call i32 @cookey(ptr noundef %19, ptr noundef %20)
%22 = load ptr, ptr %9, align 8
store i64 128, ptr %22, align 8
%23 = load ptr, ptr %8, align 8
%24 = getelementptr inbounds [32 x i64], ptr %11, i64 0, i64 0
%25 = load ptr, ptr %9, align 8
%26 = load i64, ptr %25, align 8
%27 = call i32 @memcpy(ptr noundef %23, ptr noundef %24, i64 noundef %26)
store i64 0, ptr %5, align 8
br label %28
28: ; preds = %15, %14
%29 = load i64, ptr %5, align 8
ret i64 %29
}
declare i32 @deskey(ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @cookey(ptr noundef, ptr noundef) #1
declare i32 @memcpy(ptr noundef, ptr noundef, i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_rwtr0_k.c'
source_filename = "/tmp/tmp_rwtr0_k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Decrypt(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%8 = load ptr, ptr %3, align 8
store ptr %8, ptr %6, align 8
%9 = load ptr, ptr %4, align 8
store ptr %9, ptr %7, align 8
store i32 0, ptr %5, align 4
br label %10
10: ; preds = %27, %2
%11 = load i32, ptr %5, align 4
%12 = icmp slt i32 %11, 8
br i1 %12, label %13, label %30
13: ; preds = %10
%14 = load ptr, ptr %7, align 8
%15 = load i32, ptr %5, align 4
%16 = add nsw i32 256, %15
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i32, ptr %14, i64 %17
%19 = load i32, ptr %18, align 4
%20 = call i32 @READ_ROUND_KEY_WORD(i32 noundef %19)
%21 = load ptr, ptr %6, align 8
%22 = load i32, ptr %5, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i32, ptr %21, i64 %23
%25 = load i32, ptr %24, align 4
%26 = xor i32 %25, %20
store i32 %26, ptr %24, align 4
br label %27
27: ; preds = %13
%28 = load i32, ptr %5, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %5, align 4
br label %10, !llvm.loop !6
30: ; preds = %10
store i32 7, ptr %5, align 4
br label %31
31: ; preds = %42, %30
%32 = load i32, ptr %5, align 4
%33 = icmp sge i32 %32, 0
br i1 %33, label %34, label %45
34: ; preds = %31
%35 = load ptr, ptr %6, align 8
%36 = load ptr, ptr %7, align 8
%37 = load i32, ptr %5, align 4
%38 = mul nsw i32 32, %37
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i32, ptr %36, i64 %39
%41 = call i32 @round_f_inverse(ptr noundef %35, ptr noundef %40)
br label %42
42: ; preds = %34
%43 = load i32, ptr %5, align 4
%44 = add nsw i32 %43, -1
store i32 %44, ptr %5, align 4
br label %31, !llvm.loop !8
45: ; preds = %31
ret void
}
declare i32 @READ_ROUND_KEY_WORD(i32 noundef) #1
declare i32 @round_f_inverse(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_rwtr0_k.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @Decrypt(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%8 = load ptr, ptr %3, align 8
store ptr %8, ptr %6, align 8
%9 = load ptr, ptr %4, align 8
store ptr %9, ptr %7, align 8
store i32 0, ptr %5, align 4
%10 = load i32, ptr %5, align 4
%11 = icmp slt i32 %10, 8
br i1 %11, label %.lr.ph, label %31
.lr.ph: ; preds = %2
br label %12
12: ; preds = %.lr.ph, %26
%13 = load ptr, ptr %7, align 8
%14 = load i32, ptr %5, align 4
%15 = add nsw i32 256, %14
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i32, ptr %13, i64 %16
%18 = load i32, ptr %17, align 4
%19 = call i32 @READ_ROUND_KEY_WORD(i32 noundef %18)
%20 = load ptr, ptr %6, align 8
%21 = load i32, ptr %5, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i32, ptr %20, i64 %22
%24 = load i32, ptr %23, align 4
%25 = xor i32 %24, %19
store i32 %25, ptr %23, align 4
br label %26
26: ; preds = %12
%27 = load i32, ptr %5, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %5, align 4
%29 = load i32, ptr %5, align 4
%30 = icmp slt i32 %29, 8
br i1 %30, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %26
br label %31
31: ; preds = %._crit_edge, %2
store i32 7, ptr %5, align 4
%32 = load i32, ptr %5, align 4
%33 = icmp sge i32 %32, 0
br i1 %33, label %.lr.ph2, label %47
.lr.ph2: ; preds = %31
br label %34
34: ; preds = %.lr.ph2, %42
%35 = load ptr, ptr %6, align 8
%36 = load ptr, ptr %7, align 8
%37 = load i32, ptr %5, align 4
%38 = mul nsw i32 32, %37
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds i32, ptr %36, i64 %39
%41 = call i32 @round_f_inverse(ptr noundef %35, ptr noundef %40)
br label %42
42: ; preds = %34
%43 = load i32, ptr %5, align 4
%44 = add nsw i32 %43, -1
store i32 %44, ptr %5, align 4
%45 = load i32, ptr %5, align 4
%46 = icmp sge i32 %45, 0
br i1 %46, label %34, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %42
br label %47
47: ; preds = %._crit_edge3, %31
ret void
}
declare i32 @READ_ROUND_KEY_WORD(i32 noundef) #1
declare i32 @round_f_inverse(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp3n1yz9hj.c'
source_filename = "/tmp/tmp3n1yz9hj.c"
target datalayout = "e-m:e-p270: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.timespec = type { i32, i64 }
%struct.sigevent = type { i32, ptr }
%struct.itimerspec = type { %struct.TYPE_4__, %struct.TYPE_3__ }
%struct.TYPE_4__ = type { i64, i64 }
%struct.TYPE_3__ = type { i32, i64 }
@CLOCK_REALTIME = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [40 x i8] c"clock_gettime() did not return success\0A\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c"sigemptyset() failed\0A\00", align 1
@SIGABRT = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [20 x i8] c"sigaddset() failed\0A\00", align 1
@SIG_BLOCK = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [22 x i8] c"sigprocmask() failed\0A\00", align 1
@SIGEV_SIGNAL = dso_local global ptr null, align 8
@.str.4 = private unnamed_addr constant [39 x i8] c"timer_create() did not return success\0A\00", align 1
@TIMER_ABSTIME = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [40 x i8] c"timer_settime() did not return success\0A\00", align 1
@.str.6 = private unnamed_addr constant [18 x i8] c"sigwait() failed\0A\00", align 1
@.str.7 = private unnamed_addr constant [15 x i8] c"Got it! Child\0A\00", align 1
@.str.8 = private unnamed_addr constant [27 x i8] c"Got another signal! Child\0A\00", align 1
@SIGALRM = dso_local global i32 0, align 4
@.str.9 = private unnamed_addr constant [23 x i8] c"sigaprocmask() failed\0A\00", align 1
@.str.10 = private unnamed_addr constant [28 x i8] c"Got another signal! Parent\0A\00", align 1
@.str.11 = private unnamed_addr constant [16 x i8] c"Got it! Parent\0A\00", align 1
@.str.12 = private unnamed_addr constant [33 x i8] c"Error waiting for child to exit\0A\00", align 1
@.str.13 = private unnamed_addr constant [13 x i8] c"Test PASSED\0A\00", align 1
@.str.14 = private unnamed_addr constant [13 x i8] c"Test FAILED\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca %struct.timespec, align 8
%8 = alloca %struct.sigevent, align 8
%9 = alloca i32, align 4
%10 = alloca %struct.itimerspec, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca %struct.sigevent, align 8
%15 = alloca i32, align 4
%16 = alloca %struct.itimerspec, align 8
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = 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
%21 = load i32, ptr @CLOCK_REALTIME, align 4
%22 = call i64 @clock_gettime(i32 noundef %21, ptr noundef %7)
%23 = icmp ne i64 %22, 0
br i1 %23, label %24, label %26
24: ; preds = %2
%25 = call i32 @perror(ptr noundef @.str)
store i32 2, ptr %3, align 4
br label %167
26: ; preds = %2
%27 = call i32 (...) @fork()
store i32 %27, ptr %6, align 4
%28 = icmp eq i32 %27, 0
br i1 %28, label %29, label %92
29: ; preds = %26
store i32 0, ptr %13, align 4
%30 = call i32 @sigemptyset(ptr noundef %11)
%31 = icmp eq i32 %30, -1
br i1 %31, label %32, label %34
32: ; preds = %29
%33 = call i32 @perror(ptr noundef @.str.1)
store i32 2, ptr %3, align 4
br label %167
34: ; preds = %29
%35 = load i32, ptr @SIGABRT, align 4
%36 = call i32 @sigaddset(ptr noundef %11, i32 noundef %35)
%37 = icmp eq i32 %36, -1
br i1 %37, label %38, label %40
38: ; preds = %34
%39 = call i32 @perror(ptr noundef @.str.2)
store i32 2, ptr %3, align 4
br label %167
40: ; preds = %34
%41 = load i32, ptr @SIG_BLOCK, align 4
%42 = call i32 @sigprocmask(i32 noundef %41, ptr noundef %11, ptr noundef null)
%43 = icmp eq i32 %42, -1
br i1 %43, label %44, label %46
44: ; preds = %40
%45 = call i32 @perror(ptr noundef @.str.3)
store i32 2, ptr %3, align 4
br label %167
46: ; preds = %40
%47 = load ptr, ptr @SIGEV_SIGNAL, align 8
%48 = getelementptr inbounds %struct.sigevent, ptr %8, i32 0, i32 1
store ptr %47, ptr %48, align 8
%49 = load i32, ptr @SIGABRT, align 4
%50 = getelementptr inbounds %struct.sigevent, ptr %8, i32 0, i32 0
store i32 %49, ptr %50, align 8
%51 = load i32, ptr @CLOCK_REALTIME, align 4
%52 = call i64 @timer_create(i32 noundef %51, ptr noundef %8, ptr noundef %9)
%53 = icmp ne i64 %52, 0
br i1 %53, label %54, label %56
54: ; preds = %46
%55 = call i32 @perror(ptr noundef @.str.4)
store i32 2, ptr %3, align 4
br label %167
56: ; preds = %46
%57 = getelementptr inbounds %struct.timespec, ptr %7, i32 0, i32 1
%58 = load i64, ptr %57, align 8
%59 = add nsw i64 %58, 2
%60 = getelementptr inbounds %struct.itimerspec, ptr %10, i32 0, i32 1
%61 = getelementptr inbounds %struct.TYPE_3__, ptr %60, i32 0, i32 1
store i64 %59, ptr %61, align 8
%62 = getelementptr inbounds %struct.timespec, ptr %7, i32 0, i32 0
%63 = load i32, ptr %62, align 8
%64 = getelementptr inbounds %struct.itimerspec, ptr %10, i32 0, i32 1
%65 = getelementptr inbounds %struct.TYPE_3__, ptr %64, i32 0, i32 0
store i32 %63, ptr %65, align 8
%66 = getelementptr inbounds %struct.itimerspec, ptr %10, i32 0, i32 0
%67 = getelementptr inbounds %struct.TYPE_4__, ptr %66, i32 0, i32 1
store i64 0, ptr %67, align 8
%68 = getelementptr inbounds %struct.itimerspec, ptr %10, i32 0, i32 0
%69 = getelementptr inbounds %struct.TYPE_4__, ptr %68, i32 0, i32 0
store i64 0, ptr %69, align 8
%70 = load i32, ptr @TIMER_ABSTIME, align 4
%71 = load i32, ptr %13, align 4
%72 = or i32 %71, %70
store i32 %72, ptr %13, align 4
%73 = load i32, ptr %9, align 4
%74 = load i32, ptr %13, align 4
%75 = call i64 @timer_settime(i32 noundef %73, i32 noundef %74, ptr noundef %10, ptr noundef null)
%76 = icmp ne i64 %75, 0
br i1 %76, label %77, label %79
77: ; preds = %56
%78 = call i32 @perror(ptr noundef @.str.5)
store i32 2, ptr %3, align 4
br label %167
79: ; preds = %56
%80 = call i32 @sigwait(ptr noundef %11, ptr noundef %12)
%81 = icmp eq i32 %80, -1
br i1 %81, label %82, label %84
82: ; preds = %79
%83 = call i32 @perror(ptr noundef @.str.6)
store i32 2, ptr %3, align 4
br label %167
84: ; preds = %79
%85 = load i32, ptr %12, align 4
%86 = load i32, ptr @SIGABRT, align 4
%87 = icmp eq i32 %85, %86
br i1 %87, label %88, label %90
88: ; preds = %84
%89 = call i32 @printf(ptr noundef @.str.7)
store i32 1, ptr %3, align 4
br label %167
90: ; preds = %84
%91 = call i32 @printf(ptr noundef @.str.8)
store i32 1, ptr %3, align 4
br label %167
92: ; preds = %26
store i32 0, ptr %19, align 4
%93 = call i32 @sigemptyset(ptr noundef %17)
%94 = icmp eq i32 %93, -1
br i1 %94, label %95, label %97
95: ; preds = %92
%96 = call i32 @perror(ptr noundef @.str.1)
store i32 2, ptr %3, align 4
br label %167
97: ; preds = %92
%98 = load i32, ptr @SIGALRM, align 4
%99 = call i32 @sigaddset(ptr noundef %17, i32 noundef %98)
%100 = icmp eq i32 %99, -1
br i1 %100, label %101, label %103
101: ; preds = %97
%102 = call i32 @perror(ptr noundef @.str.2)
store i32 2, ptr %3, align 4
br label %167
103: ; preds = %97
%104 = load i32, ptr @SIG_BLOCK, align 4
%105 = call i32 @sigprocmask(i32 noundef %104, ptr noundef %17, ptr noundef null)
%106 = icmp eq i32 %105, -1
br i1 %106, label %107, label %109
107: ; preds = %103
%108 = call i32 @perror(ptr noundef @.str.9)
store i32 2, ptr %3, align 4
br label %167
109: ; preds = %103
%110 = load ptr, ptr @SIGEV_SIGNAL, align 8
%111 = getelementptr inbounds %struct.sigevent, ptr %14, i32 0, i32 1
store ptr %110, ptr %111, align 8
%112 = load i32, ptr @SIGALRM, align 4
%113 = getelementptr inbounds %struct.sigevent, ptr %14, i32 0, i32 0
store i32 %112, ptr %113, align 8
%114 = load i32, ptr @CLOCK_REALTIME, align 4
%115 = call i64 @timer_create(i32 noundef %114, ptr noundef %14, ptr noundef %15)
%116 = icmp ne i64 %115, 0
br i1 %116, label %117, label %119
117: ; preds = %109
%118 = call i32 @perror(ptr noundef @.str.4)
store i32 2, ptr %3, align 4
br label %167
119: ; preds = %109
%120 = getelementptr inbounds %struct.timespec, ptr %7, i32 0, i32 1
%121 = load i64, ptr %120, align 8
%122 = add nsw i64 %121, 2
%123 = getelementptr inbounds %struct.itimerspec, ptr %16, i32 0, i32 1
%124 = getelementptr inbounds %struct.TYPE_3__, ptr %123, i32 0, i32 1
store i64 %122, ptr %124, align 8
%125 = getelementptr inbounds %struct.timespec, ptr %7, i32 0, i32 0
%126 = load i32, ptr %125, align 8
%127 = getelementptr inbounds %struct.itimerspec, ptr %16, i32 0, i32 1
%128 = getelementptr inbounds %struct.TYPE_3__, ptr %127, i32 0, i32 0
store i32 %126, ptr %128, align 8
%129 = getelementptr inbounds %struct.itimerspec, ptr %16, i32 0, i32 0
%130 = getelementptr inbounds %struct.TYPE_4__, ptr %129, i32 0, i32 1
store i64 0, ptr %130, align 8
%131 = getelementptr inbounds %struct.itimerspec, ptr %16, i32 0, i32 0
%132 = getelementptr inbounds %struct.TYPE_4__, ptr %131, i32 0, i32 0
store i64 0, ptr %132, align 8
%133 = load i32, ptr @TIMER_ABSTIME, align 4
%134 = load i32, ptr %19, align 4
%135 = or i32 %134, %133
store i32 %135, ptr %19, align 4
%136 = load i32, ptr %15, align 4
%137 = load i32, ptr %19, align 4
%138 = call i64 @timer_settime(i32 noundef %136, i32 noundef %137, ptr noundef %16, ptr noundef null)
%139 = icmp ne i64 %138, 0
br i1 %139, label %140, label %142
140: ; preds = %119
%141 = call i32 @perror(ptr noundef @.str.5)
store i32 2, ptr %3, align 4
br label %167
142: ; preds = %119
%143 = call i32 @sigwait(ptr noundef %17, ptr noundef %18)
%144 = icmp eq i32 %143, -1
br i1 %144, label %145, label %147
145: ; preds = %142
%146 = call i32 @perror(ptr noundef @.str.6)
store i32 2, ptr %3, align 4
br label %167
147: ; preds = %142
%148 = load i32, ptr %18, align 4
%149 = load i32, ptr @SIGALRM, align 4
%150 = icmp ne i32 %148, %149
br i1 %150, label %151, label %153
151: ; preds = %147
%152 = call i32 @printf(ptr noundef @.str.10)
store i32 1, ptr %3, align 4
br label %167
153: ; preds = %147
%154 = call i32 @printf(ptr noundef @.str.11)
%155 = call i32 @wait(ptr noundef %20)
%156 = icmp eq i32 %155, -1
br i1 %156, label %157, label %159
157: ; preds = %153
%158 = call i32 @perror(ptr noundef @.str.12)
store i32 2, ptr %3, align 4
br label %167
159: ; preds = %153
%160 = load i32, ptr %20, align 4
%161 = call i64 @WEXITSTATUS(i32 noundef %160)
%162 = icmp ne i64 %161, 0
br i1 %162, label %163, label %165
163: ; preds = %159
%164 = call i32 @printf(ptr noundef @.str.13)
store i32 0, ptr %3, align 4
br label %167
165: ; preds = %159
%166 = call i32 @printf(ptr noundef @.str.14)
store i32 1, ptr %3, align 4
br label %167
167: ; preds = %165, %163, %157, %151, %145, %140, %117, %107, %101, %95, %90, %88, %82, %77, %54, %44, %38, %32, %24
%168 = load i32, ptr %3, align 4
ret i32 %168
}
declare i64 @clock_gettime(i32 noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @fork(...) #1
declare i32 @sigemptyset(ptr noundef) #1
declare i32 @sigaddset(ptr noundef, i32 noundef) #1
declare i32 @sigprocmask(i32 noundef, ptr noundef, ptr noundef) #1
declare i64 @timer_create(i32 noundef, ptr noundef, ptr noundef) #1
declare i64 @timer_settime(i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @sigwait(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @wait(ptr noundef) #1
declare i64 @WEXITSTATUS(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3n1yz9hj.c"
target datalayout = "e-m:e-p270: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.timespec = type { i32, i64 }
%struct.sigevent = type { i32, ptr }
%struct.itimerspec = type { %struct.TYPE_4__, %struct.TYPE_3__ }
%struct.TYPE_4__ = type { i64, i64 }
%struct.TYPE_3__ = type { i32, i64 }
@CLOCK_REALTIME = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [40 x i8] c"clock_gettime() did not return success\0A\00", align 1
@.str.1 = private unnamed_addr constant [22 x i8] c"sigemptyset() failed\0A\00", align 1
@SIGABRT = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [20 x i8] c"sigaddset() failed\0A\00", align 1
@SIG_BLOCK = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [22 x i8] c"sigprocmask() failed\0A\00", align 1
@SIGEV_SIGNAL = dso_local global ptr null, align 8
@.str.4 = private unnamed_addr constant [39 x i8] c"timer_create() did not return success\0A\00", align 1
@TIMER_ABSTIME = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [40 x i8] c"timer_settime() did not return success\0A\00", align 1
@.str.6 = private unnamed_addr constant [18 x i8] c"sigwait() failed\0A\00", align 1
@.str.7 = private unnamed_addr constant [15 x i8] c"Got it! Child\0A\00", align 1
@.str.8 = private unnamed_addr constant [27 x i8] c"Got another signal! Child\0A\00", align 1
@SIGALRM = dso_local global i32 0, align 4
@.str.9 = private unnamed_addr constant [23 x i8] c"sigaprocmask() failed\0A\00", align 1
@.str.10 = private unnamed_addr constant [28 x i8] c"Got another signal! Parent\0A\00", align 1
@.str.11 = private unnamed_addr constant [16 x i8] c"Got it! Parent\0A\00", align 1
@.str.12 = private unnamed_addr constant [33 x i8] c"Error waiting for child to exit\0A\00", align 1
@.str.13 = private unnamed_addr constant [13 x i8] c"Test PASSED\0A\00", align 1
@.str.14 = private unnamed_addr constant [13 x i8] c"Test FAILED\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca %struct.timespec, align 8
%8 = alloca %struct.sigevent, align 8
%9 = alloca i32, align 4
%10 = alloca %struct.itimerspec, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca %struct.sigevent, align 8
%15 = alloca i32, align 4
%16 = alloca %struct.itimerspec, align 8
%17 = alloca i32, align 4
%18 = alloca i32, align 4
%19 = alloca i32, align 4
%20 = 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
%21 = load i32, ptr @CLOCK_REALTIME, align 4
%22 = call i64 @clock_gettime(i32 noundef %21, ptr noundef %7)
%23 = icmp ne i64 %22, 0
br i1 %23, label %24, label %26
24: ; preds = %2
%25 = call i32 @perror(ptr noundef @.str)
store i32 2, ptr %3, align 4
br label %167
26: ; preds = %2
%27 = call i32 (...) @fork()
store i32 %27, ptr %6, align 4
%28 = icmp eq i32 %27, 0
br i1 %28, label %29, label %92
29: ; preds = %26
store i32 0, ptr %13, align 4
%30 = call i32 @sigemptyset(ptr noundef %11)
%31 = icmp eq i32 %30, -1
br i1 %31, label %32, label %34
32: ; preds = %29
%33 = call i32 @perror(ptr noundef @.str.1)
store i32 2, ptr %3, align 4
br label %167
34: ; preds = %29
%35 = load i32, ptr @SIGABRT, align 4
%36 = call i32 @sigaddset(ptr noundef %11, i32 noundef %35)
%37 = icmp eq i32 %36, -1
br i1 %37, label %38, label %40
38: ; preds = %34
%39 = call i32 @perror(ptr noundef @.str.2)
store i32 2, ptr %3, align 4
br label %167
40: ; preds = %34
%41 = load i32, ptr @SIG_BLOCK, align 4
%42 = call i32 @sigprocmask(i32 noundef %41, ptr noundef %11, ptr noundef null)
%43 = icmp eq i32 %42, -1
br i1 %43, label %44, label %46
44: ; preds = %40
%45 = call i32 @perror(ptr noundef @.str.3)
store i32 2, ptr %3, align 4
br label %167
46: ; preds = %40
%47 = load ptr, ptr @SIGEV_SIGNAL, align 8
%48 = getelementptr inbounds %struct.sigevent, ptr %8, i32 0, i32 1
store ptr %47, ptr %48, align 8
%49 = load i32, ptr @SIGABRT, align 4
%50 = getelementptr inbounds %struct.sigevent, ptr %8, i32 0, i32 0
store i32 %49, ptr %50, align 8
%51 = load i32, ptr @CLOCK_REALTIME, align 4
%52 = call i64 @timer_create(i32 noundef %51, ptr noundef %8, ptr noundef %9)
%53 = icmp ne i64 %52, 0
br i1 %53, label %54, label %56
54: ; preds = %46
%55 = call i32 @perror(ptr noundef @.str.4)
store i32 2, ptr %3, align 4
br label %167
56: ; preds = %46
%57 = getelementptr inbounds %struct.timespec, ptr %7, i32 0, i32 1
%58 = load i64, ptr %57, align 8
%59 = add nsw i64 %58, 2
%60 = getelementptr inbounds %struct.itimerspec, ptr %10, i32 0, i32 1
%61 = getelementptr inbounds %struct.TYPE_3__, ptr %60, i32 0, i32 1
store i64 %59, ptr %61, align 8
%62 = getelementptr inbounds %struct.timespec, ptr %7, i32 0, i32 0
%63 = load i32, ptr %62, align 8
%64 = getelementptr inbounds %struct.itimerspec, ptr %10, i32 0, i32 1
%65 = getelementptr inbounds %struct.TYPE_3__, ptr %64, i32 0, i32 0
store i32 %63, ptr %65, align 8
%66 = getelementptr inbounds %struct.itimerspec, ptr %10, i32 0, i32 0
%67 = getelementptr inbounds %struct.TYPE_4__, ptr %66, i32 0, i32 1
store i64 0, ptr %67, align 8
%68 = getelementptr inbounds %struct.itimerspec, ptr %10, i32 0, i32 0
%69 = getelementptr inbounds %struct.TYPE_4__, ptr %68, i32 0, i32 0
store i64 0, ptr %69, align 8
%70 = load i32, ptr @TIMER_ABSTIME, align 4
%71 = load i32, ptr %13, align 4
%72 = or i32 %71, %70
store i32 %72, ptr %13, align 4
%73 = load i32, ptr %9, align 4
%74 = load i32, ptr %13, align 4
%75 = call i64 @timer_settime(i32 noundef %73, i32 noundef %74, ptr noundef %10, ptr noundef null)
%76 = icmp ne i64 %75, 0
br i1 %76, label %77, label %79
77: ; preds = %56
%78 = call i32 @perror(ptr noundef @.str.5)
store i32 2, ptr %3, align 4
br label %167
79: ; preds = %56
%80 = call i32 @sigwait(ptr noundef %11, ptr noundef %12)
%81 = icmp eq i32 %80, -1
br i1 %81, label %82, label %84
82: ; preds = %79
%83 = call i32 @perror(ptr noundef @.str.6)
store i32 2, ptr %3, align 4
br label %167
84: ; preds = %79
%85 = load i32, ptr %12, align 4
%86 = load i32, ptr @SIGABRT, align 4
%87 = icmp eq i32 %85, %86
br i1 %87, label %88, label %90
88: ; preds = %84
%89 = call i32 @printf(ptr noundef @.str.7)
store i32 1, ptr %3, align 4
br label %167
90: ; preds = %84
%91 = call i32 @printf(ptr noundef @.str.8)
store i32 1, ptr %3, align 4
br label %167
92: ; preds = %26
store i32 0, ptr %19, align 4
%93 = call i32 @sigemptyset(ptr noundef %17)
%94 = icmp eq i32 %93, -1
br i1 %94, label %95, label %97
95: ; preds = %92
%96 = call i32 @perror(ptr noundef @.str.1)
store i32 2, ptr %3, align 4
br label %167
97: ; preds = %92
%98 = load i32, ptr @SIGALRM, align 4
%99 = call i32 @sigaddset(ptr noundef %17, i32 noundef %98)
%100 = icmp eq i32 %99, -1
br i1 %100, label %101, label %103
101: ; preds = %97
%102 = call i32 @perror(ptr noundef @.str.2)
store i32 2, ptr %3, align 4
br label %167
103: ; preds = %97
%104 = load i32, ptr @SIG_BLOCK, align 4
%105 = call i32 @sigprocmask(i32 noundef %104, ptr noundef %17, ptr noundef null)
%106 = icmp eq i32 %105, -1
br i1 %106, label %107, label %109
107: ; preds = %103
%108 = call i32 @perror(ptr noundef @.str.9)
store i32 2, ptr %3, align 4
br label %167
109: ; preds = %103
%110 = load ptr, ptr @SIGEV_SIGNAL, align 8
%111 = getelementptr inbounds %struct.sigevent, ptr %14, i32 0, i32 1
store ptr %110, ptr %111, align 8
%112 = load i32, ptr @SIGALRM, align 4
%113 = getelementptr inbounds %struct.sigevent, ptr %14, i32 0, i32 0
store i32 %112, ptr %113, align 8
%114 = load i32, ptr @CLOCK_REALTIME, align 4
%115 = call i64 @timer_create(i32 noundef %114, ptr noundef %14, ptr noundef %15)
%116 = icmp ne i64 %115, 0
br i1 %116, label %117, label %119
117: ; preds = %109
%118 = call i32 @perror(ptr noundef @.str.4)
store i32 2, ptr %3, align 4
br label %167
119: ; preds = %109
%120 = getelementptr inbounds %struct.timespec, ptr %7, i32 0, i32 1
%121 = load i64, ptr %120, align 8
%122 = add nsw i64 %121, 2
%123 = getelementptr inbounds %struct.itimerspec, ptr %16, i32 0, i32 1
%124 = getelementptr inbounds %struct.TYPE_3__, ptr %123, i32 0, i32 1
store i64 %122, ptr %124, align 8
%125 = getelementptr inbounds %struct.timespec, ptr %7, i32 0, i32 0
%126 = load i32, ptr %125, align 8
%127 = getelementptr inbounds %struct.itimerspec, ptr %16, i32 0, i32 1
%128 = getelementptr inbounds %struct.TYPE_3__, ptr %127, i32 0, i32 0
store i32 %126, ptr %128, align 8
%129 = getelementptr inbounds %struct.itimerspec, ptr %16, i32 0, i32 0
%130 = getelementptr inbounds %struct.TYPE_4__, ptr %129, i32 0, i32 1
store i64 0, ptr %130, align 8
%131 = getelementptr inbounds %struct.itimerspec, ptr %16, i32 0, i32 0
%132 = getelementptr inbounds %struct.TYPE_4__, ptr %131, i32 0, i32 0
store i64 0, ptr %132, align 8
%133 = load i32, ptr @TIMER_ABSTIME, align 4
%134 = load i32, ptr %19, align 4
%135 = or i32 %134, %133
store i32 %135, ptr %19, align 4
%136 = load i32, ptr %15, align 4
%137 = load i32, ptr %19, align 4
%138 = call i64 @timer_settime(i32 noundef %136, i32 noundef %137, ptr noundef %16, ptr noundef null)
%139 = icmp ne i64 %138, 0
br i1 %139, label %140, label %142
140: ; preds = %119
%141 = call i32 @perror(ptr noundef @.str.5)
store i32 2, ptr %3, align 4
br label %167
142: ; preds = %119
%143 = call i32 @sigwait(ptr noundef %17, ptr noundef %18)
%144 = icmp eq i32 %143, -1
br i1 %144, label %145, label %147
145: ; preds = %142
%146 = call i32 @perror(ptr noundef @.str.6)
store i32 2, ptr %3, align 4
br label %167
147: ; preds = %142
%148 = load i32, ptr %18, align 4
%149 = load i32, ptr @SIGALRM, align 4
%150 = icmp ne i32 %148, %149
br i1 %150, label %151, label %153
151: ; preds = %147
%152 = call i32 @printf(ptr noundef @.str.10)
store i32 1, ptr %3, align 4
br label %167
153: ; preds = %147
%154 = call i32 @printf(ptr noundef @.str.11)
%155 = call i32 @wait(ptr noundef %20)
%156 = icmp eq i32 %155, -1
br i1 %156, label %157, label %159
157: ; preds = %153
%158 = call i32 @perror(ptr noundef @.str.12)
store i32 2, ptr %3, align 4
br label %167
159: ; preds = %153
%160 = load i32, ptr %20, align 4
%161 = call i64 @WEXITSTATUS(i32 noundef %160)
%162 = icmp ne i64 %161, 0
br i1 %162, label %163, label %165
163: ; preds = %159
%164 = call i32 @printf(ptr noundef @.str.13)
store i32 0, ptr %3, align 4
br label %167
165: ; preds = %159
%166 = call i32 @printf(ptr noundef @.str.14)
store i32 1, ptr %3, align 4
br label %167
167: ; preds = %165, %163, %157, %151, %145, %140, %117, %107, %101, %95, %90, %88, %82, %77, %54, %44, %38, %32, %24
%168 = load i32, ptr %3, align 4
ret i32 %168
}
declare i64 @clock_gettime(i32 noundef, ptr noundef) #1
declare i32 @perror(ptr noundef) #1
declare i32 @fork(...) #1
declare i32 @sigemptyset(ptr noundef) #1
declare i32 @sigaddset(ptr noundef, i32 noundef) #1
declare i32 @sigprocmask(i32 noundef, ptr noundef, ptr noundef) #1
declare i64 @timer_create(i32 noundef, ptr noundef, ptr noundef) #1
declare i64 @timer_settime(i32 noundef, i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @sigwait(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @wait(ptr noundef) #1
declare i64 @WEXITSTATUS(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6zudfcpa.c'
source_filename = "/tmp/tmp6zudfcpa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_RDONLY = dso_local global i32 0, align 4
@SEEK_SET = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [5 x i8] c"%s\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca [65536 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 = load ptr, ptr %5, align 8
%9 = getelementptr inbounds ptr, ptr %8, i64 1
%10 = load ptr, ptr %9, align 8
%11 = load i32, ptr @O_RDONLY, align 4
%12 = call i32 @open(ptr noundef %10, i32 noundef %11)
store i32 %12, ptr %6, align 4
br label %13
13: ; preds = %13, %2
%14 = load i32, ptr %6, align 4
%15 = load i32, ptr @SEEK_SET, align 4
%16 = call i32 @lseek(i32 noundef %14, i32 noundef 0, i32 noundef %15)
call void @llvm.memset.p0.i64(ptr align 16 %7, i8 0, i64 65536, i1 false)
%17 = load i32, ptr %6, align 4
%18 = getelementptr inbounds [65536 x i8], ptr %7, i64 0, i64 0
%19 = call i32 @read(i32 noundef %17, ptr noundef %18, i32 noundef 65535)
%20 = getelementptr inbounds [65536 x i8], ptr %7, i64 0, i64 0
%21 = call i32 @printf(ptr noundef @.str, ptr noundef %20)
%22 = call i32 @sleep(i32 noundef 1)
br label %13
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @lseek(i32 noundef, i32 noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @sleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6zudfcpa.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_RDONLY = dso_local global i32 0, align 4
@SEEK_SET = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [5 x i8] c"%s\0A\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca [65536 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 = load ptr, ptr %5, align 8
%9 = getelementptr inbounds ptr, ptr %8, i64 1
%10 = load ptr, ptr %9, align 8
%11 = load i32, ptr @O_RDONLY, align 4
%12 = call i32 @open(ptr noundef %10, i32 noundef %11)
store i32 %12, ptr %6, align 4
br label %13
13: ; preds = %13, %2
%14 = load i32, ptr %6, align 4
%15 = load i32, ptr @SEEK_SET, align 4
%16 = call i32 @lseek(i32 noundef %14, i32 noundef 0, i32 noundef %15)
call void @llvm.memset.p0.i64(ptr align 16 %7, i8 0, i64 65536, i1 false)
%17 = load i32, ptr %6, align 4
%18 = getelementptr inbounds [65536 x i8], ptr %7, i64 0, i64 0
%19 = call i32 @read(i32 noundef %17, ptr noundef %18, i32 noundef 65535)
%20 = getelementptr inbounds [65536 x i8], ptr %7, i64 0, i64 0
%21 = call i32 @printf(ptr noundef @.str, ptr noundef %20)
%22 = call i32 @sleep(i32 noundef 1)
br label %13
}
declare i32 @open(ptr noundef, i32 noundef) #1
declare i32 @lseek(i32 noundef, i32 noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @sleep(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1m_qvw9t.c'
source_filename = "/tmp/tmp1m_qvw9t.c"
target datalayout = "e-m:e-p270: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/tmp1m_qvw9t.c"
target datalayout = "e-m:e-p270: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/tmphbk8x2wi.c'
source_filename = "/tmp/tmphbk8x2wi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@BPF_MAP_LOOKUP_ELEM = dso_local global i32 0, align 4
@SYS_bpf = 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/tmphbk8x2wi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@BPF_MAP_LOOKUP_ELEM = dso_local global i32 0, align 4
@SYS_bpf = 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/tmp27c06w0g.c'
source_filename = "/tmp/tmp27c06w0g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"commandHook\00", align 1
@.str.1 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @init() #0 {
%1 = call i64 (...) @this_object()
%2 = call i64 (...) @this_player()
%3 = icmp eq i64 %1, %2
br i1 %3, label %4, label %6
4: ; preds = %0
%5 = call i32 @add_action(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 1)
br label %6
6: ; preds = %4, %0
ret void
}
declare i64 @this_object(...) #1
declare i64 @this_player(...) #1
declare i32 @add_action(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/tmp27c06w0g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [12 x i8] c"commandHook\00", align 1
@.str.1 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @init() #0 {
%1 = call i64 (...) @this_object()
%2 = call i64 (...) @this_player()
%3 = icmp eq i64 %1, %2
br i1 %3, label %4, label %6
4: ; preds = %0
%5 = call i32 @add_action(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 1)
br label %6
6: ; preds = %4, %0
ret void
}
declare i64 @this_object(...) #1
declare i64 @this_player(...) #1
declare i32 @add_action(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/tmph0pqsazk.c'
source_filename = "/tmp/tmph0pqsazk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_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
@S_IRWXG = dso_local global i32 0, align 4
@S_IRWXO = dso_local global i32 0, align 4
@S_IRWXU = 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/tmph0pqsazk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@O_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
@S_IRWXG = dso_local global i32 0, align 4
@S_IRWXO = dso_local global i32 0, align 4
@S_IRWXU = 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/tmpztae714_.c'
source_filename = "/tmp/tmpztae714_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"CONFD_IPC_ACCESS_FILE\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"NCS_IPC_ACCESS_FILE\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.3 = private unnamed_addr constant [22 x i8] c"Failed to open %s: %s\00", align 1
@errno = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [22 x i8] c"Failed to read %s: %s\00", align 1
@.str.5 = private unnamed_addr constant [11 x i8] c"Empty file\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @confd_ipc_access_get_secret(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%9 = call ptr @getenv(ptr noundef @.str)
store ptr %9, ptr %6, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %15
11: ; preds = %2
%12 = call ptr @getenv(ptr noundef @.str.1)
store ptr %12, ptr %6, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %15
14: ; preds = %11
store i32 0, ptr %3, align 4
br label %56
15: ; preds = %11, %2
%16 = load ptr, ptr %6, align 8
%17 = call ptr @fopen(ptr noundef %16, ptr noundef @.str.2)
store ptr %17, ptr %7, align 8
%18 = icmp eq ptr %17, null
br i1 %18, label %19, label %26
19: ; preds = %15
%20 = load ptr, ptr %4, align 8
%21 = load i32, ptr %5, align 4
%22 = load ptr, ptr %6, align 8
%23 = load i32, ptr @errno, align 4
%24 = call ptr @strerror(i32 noundef %23)
%25 = call i32 @snprintf(ptr noundef %20, i32 noundef %21, ptr noundef @.str.3, ptr noundef %22, ptr noundef %24)
store i32 -1, ptr %3, align 4
br label %56
26: ; preds = %15
%27 = load ptr, ptr %4, align 8
%28 = load i32, ptr %5, align 4
%29 = sub nsw i32 %28, 1
%30 = load ptr, ptr %7, align 8
%31 = call i32 @fread(ptr noundef %27, i32 noundef 1, i32 noundef %29, ptr noundef %30)
store i32 %31, ptr %8, align 4
%32 = icmp eq i32 %31, 0
br i1 %32, label %33, label %49
33: ; preds = %26
%34 = load ptr, ptr %4, align 8
%35 = load i32, ptr %5, align 4
%36 = load ptr, ptr %6, align 8
%37 = load ptr, ptr %7, align 8
%38 = call i64 @ferror(ptr noundef %37)
%39 = icmp ne i64 %38, 0
br i1 %39, label %40, label %43
40: ; preds = %33
%41 = load i32, ptr @errno, align 4
%42 = call ptr @strerror(i32 noundef %41)
br label %44
43: ; preds = %33
br label %44
44: ; preds = %43, %40
%45 = phi ptr [ %42, %40 ], [ @.str.5, %43 ]
%46 = call i32 @snprintf(ptr noundef %34, i32 noundef %35, ptr noundef @.str.4, ptr noundef %36, ptr noundef %45)
%47 = load ptr, ptr %7, align 8
%48 = call i32 @fclose(ptr noundef %47)
store i32 -1, ptr %3, align 4
br label %56
49: ; preds = %26
%50 = load ptr, ptr %7, align 8
%51 = call i32 @fclose(ptr noundef %50)
%52 = load ptr, ptr %4, align 8
%53 = load i32, ptr %8, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i8, ptr %52, i64 %54
store i8 0, ptr %55, align 1
store i32 1, ptr %3, align 4
br label %56
56: ; preds = %49, %44, %19, %14
%57 = load i32, ptr %3, align 4
ret i32 %57
}
declare ptr @getenv(ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @strerror(i32 noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i64 @ferror(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpztae714_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [22 x i8] c"CONFD_IPC_ACCESS_FILE\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"NCS_IPC_ACCESS_FILE\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"r\00", align 1
@.str.3 = private unnamed_addr constant [22 x i8] c"Failed to open %s: %s\00", align 1
@errno = dso_local global i32 0, align 4
@.str.4 = private unnamed_addr constant [22 x i8] c"Failed to read %s: %s\00", align 1
@.str.5 = private unnamed_addr constant [11 x i8] c"Empty file\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @confd_ipc_access_get_secret(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%9 = call ptr @getenv(ptr noundef @.str)
store ptr %9, ptr %6, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %11, label %15
11: ; preds = %2
%12 = call ptr @getenv(ptr noundef @.str.1)
store ptr %12, ptr %6, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %15
14: ; preds = %11
store i32 0, ptr %3, align 4
br label %56
15: ; preds = %11, %2
%16 = load ptr, ptr %6, align 8
%17 = call ptr @fopen(ptr noundef %16, ptr noundef @.str.2)
store ptr %17, ptr %7, align 8
%18 = icmp eq ptr %17, null
br i1 %18, label %19, label %26
19: ; preds = %15
%20 = load ptr, ptr %4, align 8
%21 = load i32, ptr %5, align 4
%22 = load ptr, ptr %6, align 8
%23 = load i32, ptr @errno, align 4
%24 = call ptr @strerror(i32 noundef %23)
%25 = call i32 @snprintf(ptr noundef %20, i32 noundef %21, ptr noundef @.str.3, ptr noundef %22, ptr noundef %24)
store i32 -1, ptr %3, align 4
br label %56
26: ; preds = %15
%27 = load ptr, ptr %4, align 8
%28 = load i32, ptr %5, align 4
%29 = sub nsw i32 %28, 1
%30 = load ptr, ptr %7, align 8
%31 = call i32 @fread(ptr noundef %27, i32 noundef 1, i32 noundef %29, ptr noundef %30)
store i32 %31, ptr %8, align 4
%32 = icmp eq i32 %31, 0
br i1 %32, label %33, label %49
33: ; preds = %26
%34 = load ptr, ptr %4, align 8
%35 = load i32, ptr %5, align 4
%36 = load ptr, ptr %6, align 8
%37 = load ptr, ptr %7, align 8
%38 = call i64 @ferror(ptr noundef %37)
%39 = icmp ne i64 %38, 0
br i1 %39, label %40, label %43
40: ; preds = %33
%41 = load i32, ptr @errno, align 4
%42 = call ptr @strerror(i32 noundef %41)
br label %44
43: ; preds = %33
br label %44
44: ; preds = %43, %40
%45 = phi ptr [ %42, %40 ], [ @.str.5, %43 ]
%46 = call i32 @snprintf(ptr noundef %34, i32 noundef %35, ptr noundef @.str.4, ptr noundef %36, ptr noundef %45)
%47 = load ptr, ptr %7, align 8
%48 = call i32 @fclose(ptr noundef %47)
store i32 -1, ptr %3, align 4
br label %56
49: ; preds = %26
%50 = load ptr, ptr %7, align 8
%51 = call i32 @fclose(ptr noundef %50)
%52 = load ptr, ptr %4, align 8
%53 = load i32, ptr %8, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i8, ptr %52, i64 %54
store i8 0, ptr %55, align 1
store i32 1, ptr %3, align 4
br label %56
56: ; preds = %49, %44, %19, %14
%57 = load i32, ptr %3, align 4
ret i32 %57
}
declare ptr @getenv(ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @strerror(i32 noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i64 @ferror(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpkd7mzfac.c'
source_filename = "/tmp/tmpkd7mzfac.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @extrapolateSum(double noundef %0, i32 noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca i32, align 4
store double %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%11 = load i32, ptr %4, align 4
%12 = sext i32 %11 to i64
%13 = mul i64 8, %12
%14 = trunc i64 %13 to i32
%15 = call ptr @malloc(i32 noundef %14)
store ptr %15, ptr %5, align 8
%16 = load i32, ptr %4, align 4
%17 = sub nsw i32 %16, 2
%18 = sext i32 %17 to i64
%19 = mul i64 8, %18
%20 = trunc i64 %19 to i32
%21 = call ptr @malloc(i32 noundef %20)
store ptr %21, ptr %6, align 8
store double 0.000000e+00, ptr %7, align 8
store double 1.000000e+00, ptr %8, align 8
store i32 1, ptr %10, align 4
br label %22
22: ; preds = %50, %2
%23 = load i32, ptr %10, align 4
%24 = load i32, ptr %4, align 4
%25 = icmp sle i32 %23, %24
br i1 %25, label %26, label %53
26: ; preds = %22
%27 = load double, ptr %3, align 8
%28 = load double, ptr %8, align 8
%29 = fmul double %28, %27
store double %29, ptr %8, align 8
%30 = load i32, ptr %10, align 4
%31 = srem i32 %30, 2
%32 = icmp eq i32 %31, 0
%33 = zext i1 %32 to i64
%34 = select i1 %32, i32 -1, i32 1
%35 = sitofp i32 %34 to double
store double %35, ptr %9, align 8
%36 = load double, ptr %9, align 8
%37 = load double, ptr %8, align 8
%38 = fmul double %36, %37
%39 = load i32, ptr %10, align 4
%40 = sitofp i32 %39 to double
%41 = fdiv double %38, %40
%42 = load double, ptr %7, align 8
%43 = fadd double %42, %41
store double %43, ptr %7, align 8
%44 = load double, ptr %7, align 8
%45 = load ptr, ptr %5, align 8
%46 = load i32, ptr %10, align 4
%47 = sub nsw i32 %46, 1
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds double, ptr %45, i64 %48
store double %44, ptr %49, align 8
br label %50
50: ; preds = %26
%51 = load i32, ptr %10, align 4
%52 = add nsw i32 %51, 1
store i32 %52, ptr %10, align 4
br label %22, !llvm.loop !6
53: ; preds = %22
%54 = load ptr, ptr %5, align 8
%55 = load ptr, ptr %6, align 8
%56 = load i32, ptr %4, align 4
%57 = call double @aitkenExtrapolate(ptr noundef %54, ptr noundef %55, i32 noundef %56)
store double %57, ptr %7, align 8
%58 = load ptr, ptr %5, align 8
%59 = call i32 @free(ptr noundef %58)
%60 = load ptr, ptr %6, align 8
%61 = call i32 @free(ptr noundef %60)
%62 = load double, ptr %7, align 8
ret double %62
}
declare ptr @malloc(i32 noundef) #1
declare double @aitkenExtrapolate(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkd7mzfac.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @extrapolateSum(double noundef %0, i32 noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca i32, align 4
store double %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%11 = load i32, ptr %4, align 4
%12 = sext i32 %11 to i64
%13 = mul i64 8, %12
%14 = trunc i64 %13 to i32
%15 = call ptr @malloc(i32 noundef %14)
store ptr %15, ptr %5, align 8
%16 = load i32, ptr %4, align 4
%17 = sub nsw i32 %16, 2
%18 = sext i32 %17 to i64
%19 = mul i64 8, %18
%20 = trunc i64 %19 to i32
%21 = call ptr @malloc(i32 noundef %20)
store ptr %21, ptr %6, align 8
store double 0.000000e+00, ptr %7, align 8
store double 1.000000e+00, ptr %8, align 8
store i32 1, ptr %10, align 4
%22 = load i32, ptr %10, align 4
%23 = load i32, ptr %4, align 4
%24 = icmp sle i32 %22, %23
br i1 %24, label %.lr.ph, label %55
.lr.ph: ; preds = %2
br label %25
25: ; preds = %.lr.ph, %49
%26 = load double, ptr %3, align 8
%27 = load double, ptr %8, align 8
%28 = fmul double %27, %26
store double %28, ptr %8, align 8
%29 = load i32, ptr %10, align 4
%30 = srem i32 %29, 2
%31 = icmp eq i32 %30, 0
%32 = zext i1 %31 to i64
%33 = select i1 %31, i32 -1, i32 1
%34 = sitofp i32 %33 to double
store double %34, ptr %9, align 8
%35 = load double, ptr %9, align 8
%36 = load double, ptr %8, align 8
%37 = fmul double %35, %36
%38 = load i32, ptr %10, align 4
%39 = sitofp i32 %38 to double
%40 = fdiv double %37, %39
%41 = load double, ptr %7, align 8
%42 = fadd double %41, %40
store double %42, ptr %7, align 8
%43 = load double, ptr %7, align 8
%44 = load ptr, ptr %5, align 8
%45 = load i32, ptr %10, align 4
%46 = sub nsw i32 %45, 1
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds double, ptr %44, i64 %47
store double %43, ptr %48, align 8
br label %49
49: ; preds = %25
%50 = load i32, ptr %10, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %10, align 4
%52 = load i32, ptr %10, align 4
%53 = load i32, ptr %4, align 4
%54 = icmp sle i32 %52, %53
br i1 %54, label %25, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %49
br label %55
55: ; preds = %._crit_edge, %2
%56 = load ptr, ptr %5, align 8
%57 = load ptr, ptr %6, align 8
%58 = load i32, ptr %4, align 4
%59 = call double @aitkenExtrapolate(ptr noundef %56, ptr noundef %57, i32 noundef %58)
store double %59, ptr %7, align 8
%60 = load ptr, ptr %5, align 8
%61 = call i32 @free(ptr noundef %60)
%62 = load ptr, ptr %6, align 8
%63 = call i32 @free(ptr noundef %62)
%64 = load double, ptr %7, align 8
ret double %64
}
declare ptr @malloc(i32 noundef) #1
declare double @aitkenExtrapolate(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmphtl_6spw.c'
source_filename = "/tmp/tmphtl_6spw.c"
target datalayout = "e-m:e-p270: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/tmphtl_6spw.c"
target datalayout = "e-m:e-p270: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/tmpyc4p3j52.c'
source_filename = "/tmp/tmpyc4p3j52.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"You are %d miles away.\0A\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"Hello world\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 100, ptr %6, align 4
%7 = load i32, ptr %6, align 4
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %7)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
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/tmpyc4p3j52.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [24 x i8] c"You are %d miles away.\0A\00", align 1
@.str.1 = private unnamed_addr constant [13 x i8] c"Hello world\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 100, ptr %6, align 4
%7 = load i32, ptr %6, align 4
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %7)
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
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/tmpjlhcvaig.c'
source_filename = "/tmp/tmpjlhcvaig.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [20 x i8] c"Digite a mensagem: \00", align 1
@stdin = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [200 x i8], align 16
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%9 = getelementptr inbounds [200 x i8], ptr %2, i64 0, i64 0
%10 = load i32, ptr @stdin, align 4
%11 = call i32 @fgets(ptr noundef %9, i32 noundef 200, i32 noundef %10)
%12 = getelementptr inbounds [200 x i8], ptr %2, i64 0, i64 0
%13 = call i64 @strcspn(ptr noundef %12, ptr noundef @.str.1)
%14 = getelementptr inbounds [200 x i8], ptr %2, i64 0, i64 %13
store i8 0, ptr %14, align 1
%15 = getelementptr inbounds [200 x i8], ptr %2, i64 0, i64 0
%16 = call i32 @strlen(ptr noundef %15)
store i32 %16, ptr %3, align 4
%17 = load i32, ptr %3, align 4
%18 = mul nsw i32 %17, 8
%19 = add nsw i32 %18, 1
%20 = zext i32 %19 to i64
%21 = call ptr @llvm.stacksave()
store ptr %21, ptr %4, align 8
%22 = alloca i8, i64 %20, align 16
store i64 %20, ptr %5, align 8
%23 = load i32, ptr %3, align 4
%24 = mul nsw i32 %23, 8
%25 = add nsw i32 %24, 1
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i8, ptr %22, i64 %26
store i8 0, ptr %27, align 1
store i32 0, ptr %6, align 4
br label %28
28: ; preds = %58, %0
%29 = load i32, ptr %6, align 4
%30 = load i32, ptr %3, align 4
%31 = icmp slt i32 %29, %30
br i1 %31, label %32, label %61
32: ; preds = %28
store i32 7, ptr %7, align 4
br label %33
33: ; preds = %54, %32
%34 = load i32, ptr %7, align 4
%35 = icmp sge i32 %34, 0
br i1 %35, label %36, label %57
36: ; preds = %33
%37 = load i32, ptr %6, align 4
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [200 x i8], ptr %2, i64 0, i64 %38
%40 = load i8, ptr %39, align 1
%41 = sext i8 %40 to i32
%42 = load i32, ptr %7, align 4
%43 = ashr i32 %41, %42
%44 = and i32 %43, 1
%45 = add nsw i32 %44, 48
%46 = trunc i32 %45 to i8
%47 = load i32, ptr %6, align 4
%48 = mul nsw i32 %47, 8
%49 = load i32, ptr %7, align 4
%50 = sub nsw i32 7, %49
%51 = add nsw i32 %48, %50
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i8, ptr %22, i64 %52
store i8 %46, ptr %53, align 1
br label %54
54: ; preds = %36
%55 = load i32, ptr %7, align 4
%56 = add nsw i32 %55, -1
store i32 %56, ptr %7, align 4
br label %33, !llvm.loop !6
57: ; preds = %33
br label %58
58: ; preds = %57
%59 = load i32, ptr %6, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %6, align 4
br label %28, !llvm.loop !8
61: ; preds = %28
%62 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %22)
%63 = load ptr, ptr %4, align 8
call void @llvm.stackrestore(ptr %63)
%64 = load i32, ptr %1, align 4
ret i32 %64
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @strcspn(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmpjlhcvaig.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [20 x i8] c"Digite a mensagem: \00", align 1
@stdin = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [200 x i8], align 16
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i64, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%9 = getelementptr inbounds [200 x i8], ptr %2, i64 0, i64 0
%10 = load i32, ptr @stdin, align 4
%11 = call i32 @fgets(ptr noundef %9, i32 noundef 200, i32 noundef %10)
%12 = getelementptr inbounds [200 x i8], ptr %2, i64 0, i64 0
%13 = call i64 @strcspn(ptr noundef %12, ptr noundef @.str.1)
%14 = getelementptr inbounds [200 x i8], ptr %2, i64 0, i64 %13
store i8 0, ptr %14, align 1
%15 = getelementptr inbounds [200 x i8], ptr %2, i64 0, i64 0
%16 = call i32 @strlen(ptr noundef %15)
store i32 %16, ptr %3, align 4
%17 = load i32, ptr %3, align 4
%18 = mul nsw i32 %17, 8
%19 = add nsw i32 %18, 1
%20 = zext i32 %19 to i64
%21 = call ptr @llvm.stacksave()
store ptr %21, ptr %4, align 8
%22 = alloca i8, i64 %20, align 16
store i64 %20, ptr %5, align 8
%23 = load i32, ptr %3, align 4
%24 = mul nsw i32 %23, 8
%25 = add nsw i32 %24, 1
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i8, ptr %22, i64 %26
store i8 0, ptr %27, align 1
store i32 0, ptr %6, align 4
%28 = load i32, ptr %6, align 4
%29 = load i32, ptr %3, align 4
%30 = icmp slt i32 %28, %29
br i1 %30, label %.lr.ph2, label %64
.lr.ph2: ; preds = %0
br label %31
31: ; preds = %.lr.ph2, %58
store i32 7, ptr %7, align 4
%32 = load i32, ptr %7, align 4
%33 = icmp sge i32 %32, 0
br i1 %33, label %.lr.ph, label %57
.lr.ph: ; preds = %31
br label %34
34: ; preds = %.lr.ph, %52
%35 = load i32, ptr %6, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [200 x i8], ptr %2, i64 0, i64 %36
%38 = load i8, ptr %37, align 1
%39 = sext i8 %38 to i32
%40 = load i32, ptr %7, align 4
%41 = ashr i32 %39, %40
%42 = and i32 %41, 1
%43 = add nsw i32 %42, 48
%44 = trunc i32 %43 to i8
%45 = load i32, ptr %6, align 4
%46 = mul nsw i32 %45, 8
%47 = load i32, ptr %7, align 4
%48 = sub nsw i32 7, %47
%49 = add nsw i32 %46, %48
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds i8, ptr %22, i64 %50
store i8 %44, ptr %51, align 1
br label %52
52: ; preds = %34
%53 = load i32, ptr %7, align 4
%54 = add nsw i32 %53, -1
store i32 %54, ptr %7, align 4
%55 = load i32, ptr %7, align 4
%56 = icmp sge i32 %55, 0
br i1 %56, label %34, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %52
br label %57
57: ; preds = %._crit_edge, %31
br label %58
58: ; preds = %57
%59 = load i32, ptr %6, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %6, align 4
%61 = load i32, ptr %6, align 4
%62 = load i32, ptr %3, align 4
%63 = icmp slt i32 %61, %62
br i1 %63, label %31, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %58
br label %64
64: ; preds = %._crit_edge3, %0
%65 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %22)
%66 = load ptr, ptr %4, align 8
call void @llvm.stackrestore(ptr %66)
%67 = load i32, ptr %1, align 4
ret i32 %67
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @strcspn(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp4pbsyp31.c'
source_filename = "/tmp/tmp4pbsyp31.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"INtroduceti dimensiune \0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%i\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%i \00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.4 = private unnamed_addr constant [31 x i8] c"Numerele multiplu de 3 sunt: \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 ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%9 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%10 = load i32, ptr %2, align 4
%11 = zext i32 %10 to i64
%12 = call ptr @llvm.stacksave()
store ptr %12, ptr %3, align 8
%13 = alloca i32, i64 %11, align 16
store i64 %11, ptr %4, align 8
%14 = call i32 @time(ptr noundef null)
%15 = call i32 @srand(i32 noundef %14)
%16 = call i32 (...) @rand()
%17 = srem i32 %16, 100
store i32 %17, ptr %6, align 4
store i32 0, ptr %6, align 4
br label %18
18: ; preds = %34, %0
%19 = load i32, ptr %6, align 4
%20 = load i32, ptr %2, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %22, label %37
22: ; preds = %18
%23 = call i32 (...) @rand()
%24 = srem i32 %23, 10
store i32 %24, ptr %7, align 4
%25 = load i32, ptr %7, align 4
%26 = load i32, ptr %6, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i32, ptr %13, i64 %27
store i32 %25, ptr %28, align 4
%29 = load i32, ptr %6, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i32, ptr %13, i64 %30
%32 = load i32, ptr %31, align 4
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %32)
br label %34
34: ; preds = %22
%35 = load i32, ptr %6, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %6, align 4
br label %18, !llvm.loop !6
37: ; preds = %18
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 0, ptr %6, align 4
br label %40
40: ; preds = %58, %37
%41 = load i32, ptr %6, align 4
%42 = load i32, ptr %2, align 4
%43 = icmp slt i32 %41, %42
br i1 %43, label %44, label %61
44: ; preds = %40
%45 = load i32, ptr %6, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds i32, ptr %13, i64 %46
%48 = load i32, ptr %47, align 4
%49 = srem i32 %48, 3
%50 = icmp eq i32 %49, 0
br i1 %50, label %51, label %57
51: ; preds = %44
%52 = load i32, ptr %6, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i32, ptr %13, i64 %53
%55 = load i32, ptr %54, align 4
%56 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %55)
br label %57
57: ; preds = %51, %44
br label %58
58: ; preds = %57
%59 = load i32, ptr %6, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %6, align 4
br label %40, !llvm.loop !8
61: ; preds = %40
%62 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 0, ptr %1, align 4
%63 = load ptr, ptr %3, align 8
call void @llvm.stackrestore(ptr %63)
%64 = load i32, ptr %1, align 4
ret i32 %64
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @rand(...) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp4pbsyp31.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"INtroduceti dimensiune \0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%i\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%i \00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.4 = private unnamed_addr constant [31 x i8] c"Numerele multiplu de 3 sunt: \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 ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%9 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%10 = load i32, ptr %2, align 4
%11 = zext i32 %10 to i64
%12 = call ptr @llvm.stacksave()
store ptr %12, ptr %3, align 8
%13 = alloca i32, i64 %11, align 16
store i64 %11, ptr %4, align 8
%14 = call i32 @time(ptr noundef null)
%15 = call i32 @srand(i32 noundef %14)
%16 = call i32 (...) @rand()
%17 = srem i32 %16, 100
store i32 %17, ptr %6, align 4
store i32 0, ptr %6, align 4
%18 = load i32, ptr %6, align 4
%19 = load i32, ptr %2, align 4
%20 = icmp slt i32 %18, %19
br i1 %20, label %.lr.ph, label %39
.lr.ph: ; preds = %0
br label %21
21: ; preds = %.lr.ph, %33
%22 = call i32 (...) @rand()
%23 = srem i32 %22, 10
store i32 %23, ptr %7, align 4
%24 = load i32, ptr %7, align 4
%25 = load i32, ptr %6, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i32, ptr %13, i64 %26
store i32 %24, ptr %27, align 4
%28 = load i32, ptr %6, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i32, ptr %13, i64 %29
%31 = load i32, ptr %30, align 4
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %31)
br label %33
33: ; preds = %21
%34 = load i32, ptr %6, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %6, align 4
%36 = load i32, ptr %6, align 4
%37 = load i32, ptr %2, align 4
%38 = icmp slt i32 %36, %37
br i1 %38, label %21, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %33
br label %39
39: ; preds = %._crit_edge, %0
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 0, ptr %6, align 4
%42 = load i32, ptr %6, align 4
%43 = load i32, ptr %2, align 4
%44 = icmp slt i32 %42, %43
br i1 %44, label %.lr.ph2, label %65
.lr.ph2: ; preds = %39
br label %45
45: ; preds = %.lr.ph2, %59
%46 = load i32, ptr %6, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i32, ptr %13, i64 %47
%49 = load i32, ptr %48, align 4
%50 = srem i32 %49, 3
%51 = icmp eq i32 %50, 0
br i1 %51, label %52, label %58
52: ; preds = %45
%53 = load i32, ptr %6, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i32, ptr %13, i64 %54
%56 = load i32, ptr %55, align 4
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %56)
br label %58
58: ; preds = %52, %45
br label %59
59: ; preds = %58
%60 = load i32, ptr %6, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %6, align 4
%62 = load i32, ptr %6, align 4
%63 = load i32, ptr %2, align 4
%64 = icmp slt i32 %62, %63
br i1 %64, label %45, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %59
br label %65
65: ; preds = %._crit_edge3, %39
%66 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
store i32 0, ptr %1, align 4
%67 = load ptr, ptr %3, align 8
call void @llvm.stackrestore(ptr %67)
%68 = load i32, ptr %1, align 4
ret i32 %68
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @srand(i32 noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @rand(...) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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/tmp9ymwh_jx.c'
source_filename = "/tmp/tmp9ymwh_jx.c"
target datalayout = "e-m:e-p270: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/tmp9ymwh_jx.c"
target datalayout = "e-m:e-p270: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/tmpa77mcddv.c'
source_filename = "/tmp/tmpa77mcddv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca [3 x i8], align 1
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %4, align 8
%7 = getelementptr inbounds [3 x i8], ptr %5, i64 0, i64 0
%8 = call i32 @testSocket(ptr noundef %6, ptr noundef %7)
ret void
}
declare i32 @testSocket(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/tmpa77mcddv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca [3 x i8], align 1
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%6 = load ptr, ptr %4, align 8
%7 = getelementptr inbounds [3 x i8], ptr %5, i64 0, i64 0
%8 = call i32 @testSocket(ptr noundef %6, ptr noundef %7)
ret void
}
declare i32 @testSocket(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"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.