llvm-ir stringlengths 479 303k | llvm-optimized-ir stringlengths 468 303k |
|---|---|
; ModuleID = '/tmp/tmp9oamlogq.c'
source_filename = "/tmp/tmp9oamlogq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@DBL_EPSILON = dso_local global double 0.000000e+00, 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/tmp9oamlogq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@DBL_EPSILON = dso_local global double 0.000000e+00, 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/tmp0e1swh5o.c'
source_filename = "/tmp/tmp0e1swh5o.c"
target datalayout = "e-m:e-p270: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/tmp0e1swh5o.c"
target datalayout = "e-m:e-p270: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/tmpnyy1ljue.c'
source_filename = "/tmp/tmpnyy1ljue.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"none \00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"FAT-12 \00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"FAT-16 \00", align 1
@.str.3 = private unnamed_addr constant [8 x i8] c"EXTEND \00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"LARGE \00", align 1
@.str.5 = private unnamed_addr constant [8 x i8] c"HPFS/NT\00", align 1
@.str.6 = private unnamed_addr constant [8 x i8] c"FAT-32 \00", align 1
@.str.7 = private unnamed_addr constant [8 x i8] c"FAT32LB\00", align 1
@.str.8 = private unnamed_addr constant [8 x i8] c"VFATLBA\00", align 1
@.str.9 = private unnamed_addr constant [8 x i8] c"EXTENDL\00", align 1
@.str.10 = private unnamed_addr constant [8 x i8] c"Minix \00", align 1
@.str.11 = private unnamed_addr constant [8 x i8] c"Linux \00", align 1
@.str.12 = private unnamed_addr constant [8 x i8] c"LinuxEx\00", align 1
@.str.13 = private unnamed_addr constant [8 x i8] c"WinNT \00", align 1
@.str.14 = private unnamed_addr constant [8 x i8] c"DOS sec\00", align 1
@.str.15 = private unnamed_addr constant [10 x i8] c"unkn %02X\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @out_os(i8 noundef zeroext %0) #0 {
%2 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%3 = load i8, ptr %2, align 1
%4 = zext i8 %3 to i32
switch i32 %4, label %41 [
i32 0, label %5
i32 1, label %7
i32 4, label %9
i32 5, label %11
i32 6, label %13
i32 7, label %15
i32 11, label %17
i32 12, label %19
i32 14, label %21
i32 15, label %23
i32 128, label %25
i32 129, label %27
i32 130, label %29
i32 131, label %31
i32 133, label %33
i32 134, label %35
i32 135, label %37
i32 242, label %39
]
5: ; preds = %1
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %45
7: ; preds = %1
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %45
9: ; preds = %1
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %45
11: ; preds = %1
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %45
13: ; preds = %1
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %45
15: ; preds = %1
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
br label %45
17: ; preds = %1
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %45
19: ; preds = %1
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %45
21: ; preds = %1
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
br label %45
23: ; preds = %1
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
br label %45
25: ; preds = %1
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
br label %45
27: ; preds = %1
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
br label %45
29: ; preds = %1
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
br label %45
31: ; preds = %1
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
br label %45
33: ; preds = %1
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
br label %45
35: ; preds = %1
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
br label %45
37: ; preds = %1
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
br label %45
39: ; preds = %1
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
br label %45
41: ; preds = %1
%42 = load i8, ptr %2, align 1
%43 = zext i8 %42 to i32
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef %43)
br label %45
45: ; preds = %41, %39, %37, %35, %33, %31, %29, %27, %25, %23, %21, %19, %17, %15, %13, %11, %9, %7, %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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnyy1ljue.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"none \00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"FAT-12 \00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"FAT-16 \00", align 1
@.str.3 = private unnamed_addr constant [8 x i8] c"EXTEND \00", align 1
@.str.4 = private unnamed_addr constant [8 x i8] c"LARGE \00", align 1
@.str.5 = private unnamed_addr constant [8 x i8] c"HPFS/NT\00", align 1
@.str.6 = private unnamed_addr constant [8 x i8] c"FAT-32 \00", align 1
@.str.7 = private unnamed_addr constant [8 x i8] c"FAT32LB\00", align 1
@.str.8 = private unnamed_addr constant [8 x i8] c"VFATLBA\00", align 1
@.str.9 = private unnamed_addr constant [8 x i8] c"EXTENDL\00", align 1
@.str.10 = private unnamed_addr constant [8 x i8] c"Minix \00", align 1
@.str.11 = private unnamed_addr constant [8 x i8] c"Linux \00", align 1
@.str.12 = private unnamed_addr constant [8 x i8] c"LinuxEx\00", align 1
@.str.13 = private unnamed_addr constant [8 x i8] c"WinNT \00", align 1
@.str.14 = private unnamed_addr constant [8 x i8] c"DOS sec\00", align 1
@.str.15 = private unnamed_addr constant [10 x i8] c"unkn %02X\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @out_os(i8 noundef zeroext %0) #0 {
%2 = alloca i8, align 1
store i8 %0, ptr %2, align 1
%3 = load i8, ptr %2, align 1
%4 = zext i8 %3 to i32
switch i32 %4, label %41 [
i32 0, label %5
i32 1, label %7
i32 4, label %9
i32 5, label %11
i32 6, label %13
i32 7, label %15
i32 11, label %17
i32 12, label %19
i32 14, label %21
i32 15, label %23
i32 128, label %25
i32 129, label %27
i32 130, label %29
i32 131, label %31
i32 133, label %33
i32 134, label %35
i32 135, label %37
i32 242, label %39
]
5: ; preds = %1
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str)
br label %45
7: ; preds = %1
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %45
9: ; preds = %1
%10 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %45
11: ; preds = %1
%12 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %45
13: ; preds = %1
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
br label %45
15: ; preds = %1
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
br label %45
17: ; preds = %1
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
br label %45
19: ; preds = %1
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
br label %45
21: ; preds = %1
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
br label %45
23: ; preds = %1
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
br label %45
25: ; preds = %1
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
br label %45
27: ; preds = %1
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
br label %45
29: ; preds = %1
%30 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
br label %45
31: ; preds = %1
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
br label %45
33: ; preds = %1
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
br label %45
35: ; preds = %1
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
br label %45
37: ; preds = %1
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
br label %45
39: ; preds = %1
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
br label %45
41: ; preds = %1
%42 = load i8, ptr %2, align 1
%43 = zext i8 %42 to i32
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef %43)
br label %45
45: ; preds = %41, %39, %37, %35, %33, %31, %29, %27, %25, %23, %21, %19, %17, %15, %13, %11, %9, %7, %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"}
|
; ModuleID = '/tmp/tmp56pi8xdg.c'
source_filename = "/tmp/tmp56pi8xdg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @clear_framebuffer(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 @full_framebuffer_with_color(ptr noundef %3, i32 noundef 0, i32 noundef 0, i32 noundef 0)
ret void
}
declare i32 @full_framebuffer_with_color(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/tmp56pi8xdg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @clear_framebuffer(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 @full_framebuffer_with_color(ptr noundef %3, i32 noundef 0, i32 noundef 0, i32 noundef 0)
ret void
}
declare i32 @full_framebuffer_with_color(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/tmpbqryqpzu.c'
source_filename = "/tmp/tmpbqryqpzu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%u\00", align 1
@EINVAL = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [30 x i8] c"Can't set this cpu affinity!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @set_cpu_affinity(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%17 = load ptr, ptr %4, align 8
store ptr %17, ptr %10, align 8
%18 = call i32 (...) @get_number_cpus()
store i32 %18, ptr %8, align 4
%19 = call i32 @CPU_ZERO(ptr noundef %11)
store i32 0, ptr %7, align 4
br label %20
20: ; preds = %32, %2
%21 = load i32, ptr %5, align 4
%22 = icmp ne i32 %21, 0
br i1 %22, label %23, label %27
23: ; preds = %20
%24 = load i32, ptr %7, align 4
%25 = load i32, ptr %8, align 4
%26 = icmp slt i32 %24, %25
br label %27
27: ; preds = %23, %20
%28 = phi i1 [ false, %20 ], [ %26, %23 ]
br i1 %28, label %29, label %35
29: ; preds = %27
%30 = load i32, ptr %7, align 4
%31 = call i32 @CPU_SET(i32 noundef %30, ptr noundef %11)
br label %32
32: ; preds = %29
%33 = load i32, ptr %7, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %7, align 4
br label %20, !llvm.loop !6
35: ; preds = %27
br label %36
36: ; preds = %117, %35
%37 = load ptr, ptr %10, align 8
store ptr %37, ptr %9, align 8
%38 = load ptr, ptr %10, align 8
%39 = call ptr @next_token(ptr noundef %38, i8 noundef signext 44)
store ptr %39, ptr %10, align 8
%40 = load ptr, ptr %9, align 8
%41 = icmp ne ptr %40, null
br i1 %41, label %42, label %118
42: ; preds = %36
%43 = load ptr, ptr %9, align 8
%44 = call i32 @sscanf(ptr noundef %43, ptr noundef @.str, ptr noundef %12)
%45 = icmp slt i32 %44, 1
br i1 %45, label %46, label %49
46: ; preds = %42
%47 = load i32, ptr @EINVAL, align 4
%48 = sub nsw i32 0, %47
store i32 %48, ptr %3, align 4
br label %126
49: ; preds = %42
%50 = load i32, ptr %12, align 4
store i32 %50, ptr %13, align 4
store i32 1, ptr %14, align 4
%51 = load ptr, ptr %9, align 8
%52 = call ptr @next_token(ptr noundef %51, i8 noundef signext 45)
store ptr %52, ptr %15, align 8
%53 = load ptr, ptr %9, align 8
%54 = call ptr @next_token(ptr noundef %53, i8 noundef signext 44)
store ptr %54, ptr %16, align 8
%55 = load ptr, ptr %15, align 8
%56 = icmp ne ptr %55, null
br i1 %56, label %57, label %92
57: ; preds = %49
%58 = load ptr, ptr %16, align 8
%59 = icmp eq ptr %58, null
br i1 %59, label %64, label %60
60: ; preds = %57
%61 = load ptr, ptr %15, align 8
%62 = load ptr, ptr %16, align 8
%63 = icmp ult ptr %61, %62
br i1 %63, label %64, label %92
64: ; preds = %60, %57
%65 = load ptr, ptr %15, align 8
%66 = call i32 @sscanf(ptr noundef %65, ptr noundef @.str, ptr noundef %13)
%67 = icmp slt i32 %66, 1
br i1 %67, label %68, label %71
68: ; preds = %64
%69 = load i32, ptr @EINVAL, align 4
%70 = sub nsw i32 0, %69
store i32 %70, ptr %3, align 4
br label %126
71: ; preds = %64
%72 = load ptr, ptr %15, align 8
%73 = call ptr @next_token(ptr noundef %72, i8 noundef signext 58)
store ptr %73, ptr %15, align 8
%74 = load ptr, ptr %15, align 8
%75 = icmp ne ptr %74, null
br i1 %75, label %76, label %91
76: ; preds = %71
%77 = load ptr, ptr %16, align 8
%78 = icmp eq ptr %77, null
br i1 %78, label %83, label %79
79: ; preds = %76
%80 = load ptr, ptr %15, align 8
%81 = load ptr, ptr %16, align 8
%82 = icmp ult ptr %80, %81
br i1 %82, label %83, label %91
83: ; preds = %79, %76
%84 = load ptr, ptr %15, align 8
%85 = call i32 @sscanf(ptr noundef %84, ptr noundef @.str, ptr noundef %14)
%86 = icmp slt i32 %85, 1
br i1 %86, label %87, label %90
87: ; preds = %83
%88 = load i32, ptr @EINVAL, align 4
%89 = sub nsw i32 0, %88
store i32 %89, ptr %3, align 4
br label %126
90: ; preds = %83
br label %91
91: ; preds = %90, %79, %71
br label %92
92: ; preds = %91, %60, %49
%93 = load i32, ptr %12, align 4
%94 = load i32, ptr %13, align 4
%95 = icmp ule i32 %93, %94
br i1 %95, label %99, label %96
96: ; preds = %92
%97 = load i32, ptr @EINVAL, align 4
%98 = sub nsw i32 0, %97
store i32 %98, ptr %3, align 4
br label %126
99: ; preds = %92
br label %100
100: ; preds = %113, %99
%101 = load i32, ptr %12, align 4
%102 = load i32, ptr %13, align 4
%103 = icmp ule i32 %101, %102
br i1 %103, label %104, label %117
104: ; preds = %100
%105 = load i32, ptr %5, align 4
%106 = icmp ne i32 %105, 0
br i1 %106, label %107, label %110
107: ; preds = %104
%108 = load i32, ptr %12, align 4
%109 = call i32 @CPU_CLR(i32 noundef %108, ptr noundef %11)
br label %113
110: ; preds = %104
%111 = load i32, ptr %12, align 4
%112 = call i32 @CPU_SET(i32 noundef %111, ptr noundef %11)
br label %113
113: ; preds = %110, %107
%114 = load i32, ptr %14, align 4
%115 = load i32, ptr %12, align 4
%116 = add i32 %115, %114
store i32 %116, ptr %12, align 4
br label %100, !llvm.loop !8
117: ; preds = %100
br label %36, !llvm.loop !9
118: ; preds = %36
%119 = call i32 (...) @getpid()
%120 = call i32 @sched_setaffinity(i32 noundef %119, i32 noundef 4, ptr noundef %11)
store i32 %120, ptr %6, align 4
%121 = load i32, ptr %6, align 4
%122 = icmp ne i32 %121, 0
br i1 %122, label %123, label %125
123: ; preds = %118
%124 = call i32 @panic(ptr noundef @.str.1)
br label %125
125: ; preds = %123, %118
store i32 0, ptr %3, align 4
br label %126
126: ; preds = %125, %96, %87, %68, %46
%127 = load i32, ptr %3, align 4
ret i32 %127
}
declare i32 @get_number_cpus(...) #1
declare i32 @CPU_ZERO(ptr noundef) #1
declare i32 @CPU_SET(i32 noundef, ptr noundef) #1
declare ptr @next_token(ptr noundef, i8 noundef signext) #1
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @CPU_CLR(i32 noundef, ptr noundef) #1
declare i32 @sched_setaffinity(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @getpid(...) #1
declare i32 @panic(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpbqryqpzu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%u\00", align 1
@EINVAL = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [30 x i8] c"Can't set this cpu affinity!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @set_cpu_affinity(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca i32, align 4
%15 = alloca ptr, align 8
%16 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%17 = load ptr, ptr %4, align 8
store ptr %17, ptr %10, align 8
%18 = call i32 (...) @get_number_cpus()
store i32 %18, ptr %8, align 4
%19 = call i32 @CPU_ZERO(ptr noundef %11)
store i32 0, ptr %7, align 4
br label %20
20: ; preds = %32, %2
%21 = load i32, ptr %5, align 4
%22 = icmp ne i32 %21, 0
br i1 %22, label %23, label %27
23: ; preds = %20
%24 = load i32, ptr %7, align 4
%25 = load i32, ptr %8, align 4
%26 = icmp slt i32 %24, %25
br label %27
27: ; preds = %23, %20
%28 = phi i1 [ false, %20 ], [ %26, %23 ]
br i1 %28, label %29, label %35
29: ; preds = %27
%30 = load i32, ptr %7, align 4
%31 = call i32 @CPU_SET(i32 noundef %30, ptr noundef %11)
br label %32
32: ; preds = %29
%33 = load i32, ptr %7, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %7, align 4
br label %20, !llvm.loop !6
35: ; preds = %27
%36 = load ptr, ptr %10, align 8
store ptr %36, ptr %9, align 8
%37 = load ptr, ptr %10, align 8
%38 = call ptr @next_token(ptr noundef %37, i8 noundef signext 44)
store ptr %38, ptr %10, align 8
%39 = load ptr, ptr %9, align 8
%40 = icmp ne ptr %39, null
br i1 %40, label %.lr.ph2, label %124
.lr.ph2: ; preds = %35
br label %41
41: ; preds = %.lr.ph2, %118
%42 = load ptr, ptr %9, align 8
%43 = call i32 @sscanf(ptr noundef %42, ptr noundef @.str, ptr noundef %12)
%44 = icmp slt i32 %43, 1
br i1 %44, label %45, label %48
45: ; preds = %41
%46 = load i32, ptr @EINVAL, align 4
%47 = sub nsw i32 0, %46
store i32 %47, ptr %3, align 4
br label %132
48: ; preds = %41
%49 = load i32, ptr %12, align 4
store i32 %49, ptr %13, align 4
store i32 1, ptr %14, align 4
%50 = load ptr, ptr %9, align 8
%51 = call ptr @next_token(ptr noundef %50, i8 noundef signext 45)
store ptr %51, ptr %15, align 8
%52 = load ptr, ptr %9, align 8
%53 = call ptr @next_token(ptr noundef %52, i8 noundef signext 44)
store ptr %53, ptr %16, align 8
%54 = load ptr, ptr %15, align 8
%55 = icmp ne ptr %54, null
br i1 %55, label %56, label %91
56: ; preds = %48
%57 = load ptr, ptr %16, align 8
%58 = icmp eq ptr %57, null
br i1 %58, label %63, label %59
59: ; preds = %56
%60 = load ptr, ptr %15, align 8
%61 = load ptr, ptr %16, align 8
%62 = icmp ult ptr %60, %61
br i1 %62, label %63, label %91
63: ; preds = %59, %56
%64 = load ptr, ptr %15, align 8
%65 = call i32 @sscanf(ptr noundef %64, ptr noundef @.str, ptr noundef %13)
%66 = icmp slt i32 %65, 1
br i1 %66, label %67, label %70
67: ; preds = %63
%68 = load i32, ptr @EINVAL, align 4
%69 = sub nsw i32 0, %68
store i32 %69, ptr %3, align 4
br label %132
70: ; preds = %63
%71 = load ptr, ptr %15, align 8
%72 = call ptr @next_token(ptr noundef %71, i8 noundef signext 58)
store ptr %72, ptr %15, align 8
%73 = load ptr, ptr %15, align 8
%74 = icmp ne ptr %73, null
br i1 %74, label %75, label %90
75: ; preds = %70
%76 = load ptr, ptr %16, align 8
%77 = icmp eq ptr %76, null
br i1 %77, label %82, label %78
78: ; preds = %75
%79 = load ptr, ptr %15, align 8
%80 = load ptr, ptr %16, align 8
%81 = icmp ult ptr %79, %80
br i1 %81, label %82, label %90
82: ; preds = %78, %75
%83 = load ptr, ptr %15, align 8
%84 = call i32 @sscanf(ptr noundef %83, ptr noundef @.str, ptr noundef %14)
%85 = icmp slt i32 %84, 1
br i1 %85, label %86, label %89
86: ; preds = %82
%87 = load i32, ptr @EINVAL, align 4
%88 = sub nsw i32 0, %87
store i32 %88, ptr %3, align 4
br label %132
89: ; preds = %82
br label %90
90: ; preds = %89, %78, %70
br label %91
91: ; preds = %90, %59, %48
%92 = load i32, ptr %12, align 4
%93 = load i32, ptr %13, align 4
%94 = icmp ule i32 %92, %93
br i1 %94, label %98, label %95
95: ; preds = %91
%96 = load i32, ptr @EINVAL, align 4
%97 = sub nsw i32 0, %96
store i32 %97, ptr %3, align 4
br label %132
98: ; preds = %91
%99 = load i32, ptr %12, align 4
%100 = load i32, ptr %13, align 4
%101 = icmp ule i32 %99, %100
br i1 %101, label %.lr.ph, label %118
.lr.ph: ; preds = %98
br label %102
102: ; preds = %.lr.ph, %111
%103 = load i32, ptr %5, align 4
%104 = icmp ne i32 %103, 0
br i1 %104, label %105, label %108
105: ; preds = %102
%106 = load i32, ptr %12, align 4
%107 = call i32 @CPU_CLR(i32 noundef %106, ptr noundef %11)
br label %111
108: ; preds = %102
%109 = load i32, ptr %12, align 4
%110 = call i32 @CPU_SET(i32 noundef %109, ptr noundef %11)
br label %111
111: ; preds = %108, %105
%112 = load i32, ptr %14, align 4
%113 = load i32, ptr %12, align 4
%114 = add i32 %113, %112
store i32 %114, ptr %12, align 4
%115 = load i32, ptr %12, align 4
%116 = load i32, ptr %13, align 4
%117 = icmp ule i32 %115, %116
br i1 %117, label %102, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %111
br label %118
118: ; preds = %._crit_edge, %98
%119 = load ptr, ptr %10, align 8
store ptr %119, ptr %9, align 8
%120 = load ptr, ptr %10, align 8
%121 = call ptr @next_token(ptr noundef %120, i8 noundef signext 44)
store ptr %121, ptr %10, align 8
%122 = load ptr, ptr %9, align 8
%123 = icmp ne ptr %122, null
br i1 %123, label %41, label %._crit_edge3, !llvm.loop !9
._crit_edge3: ; preds = %118
br label %124
124: ; preds = %._crit_edge3, %35
%125 = call i32 (...) @getpid()
%126 = call i32 @sched_setaffinity(i32 noundef %125, i32 noundef 4, ptr noundef %11)
store i32 %126, ptr %6, align 4
%127 = load i32, ptr %6, align 4
%128 = icmp ne i32 %127, 0
br i1 %128, label %129, label %131
129: ; preds = %124
%130 = call i32 @panic(ptr noundef @.str.1)
br label %131
131: ; preds = %129, %124
store i32 0, ptr %3, align 4
br label %132
132: ; preds = %131, %95, %86, %67, %45
%133 = load i32, ptr %3, align 4
ret i32 %133
}
declare i32 @get_number_cpus(...) #1
declare i32 @CPU_ZERO(ptr noundef) #1
declare i32 @CPU_SET(i32 noundef, ptr noundef) #1
declare ptr @next_token(ptr noundef, i8 noundef signext) #1
declare i32 @sscanf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @CPU_CLR(i32 noundef, ptr noundef) #1
declare i32 @sched_setaffinity(i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @getpid(...) #1
declare i32 @panic(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmphko11mvo.c'
source_filename = "/tmp/tmphko11mvo.c"
target datalayout = "e-m:e-p270: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/tmphko11mvo.c"
target datalayout = "e-m:e-p270: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/tmp25_yrbbl.c'
source_filename = "/tmp/tmp25_yrbbl.c"
target datalayout = "e-m:e-p270: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/tmp25_yrbbl.c"
target datalayout = "e-m:e-p270: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/tmp1h1uij32.c'
source_filename = "/tmp/tmp1h1uij32.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"hello\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"hello!\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 ptr, align 8
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store ptr @.str, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = call i32 @strlen(ptr noundef %7)
%9 = call i32 @Strncmp(ptr noundef %5, ptr noundef %6, i32 noundef %8)
store i32 %9, ptr %2, align 4
%10 = load i32, ptr %2, align 4
%11 = call i32 @printf(ptr noundef @.str.1, i32 noundef %10)
%12 = load ptr, ptr %3, align 8
%13 = load ptr, ptr %3, align 8
%14 = load ptr, ptr %3, align 8
%15 = call i32 @strlen(ptr noundef %14)
%16 = call i32 @strncmp(ptr noundef %12, ptr noundef %13, i32 noundef %15)
store i32 %16, ptr %2, align 4
%17 = load i32, ptr %2, align 4
%18 = call i32 @printf(ptr noundef @.str.1, i32 noundef %17)
%19 = call i32 @putchar(i8 noundef signext 10)
store ptr @.str.2, ptr %4, align 8
%20 = load ptr, ptr %3, align 8
%21 = load ptr, ptr %4, align 8
%22 = load ptr, ptr %4, align 8
%23 = call i32 @strlen(ptr noundef %22)
%24 = call i32 @Strncmp(ptr noundef %20, ptr noundef %21, i32 noundef %23)
store i32 %24, ptr %2, align 4
%25 = load i32, ptr %2, align 4
%26 = call i32 @printf(ptr noundef @.str.1, i32 noundef %25)
%27 = load ptr, ptr %3, align 8
%28 = load ptr, ptr %4, align 8
%29 = load ptr, ptr %4, align 8
%30 = call i32 @strlen(ptr noundef %29)
%31 = call i32 @strncmp(ptr noundef %27, ptr noundef %28, i32 noundef %30)
store i32 %31, ptr %2, align 4
%32 = load i32, ptr %2, align 4
%33 = call i32 @printf(ptr noundef @.str.1, i32 noundef %32)
%34 = call i32 @putchar(i8 noundef signext 10)
%35 = load ptr, ptr %3, align 8
%36 = load ptr, ptr %4, align 8
%37 = load ptr, ptr %3, align 8
%38 = call i32 @strlen(ptr noundef %37)
%39 = call i32 @Strncmp(ptr noundef %35, ptr noundef %36, i32 noundef %38)
store i32 %39, ptr %2, align 4
%40 = load i32, ptr %2, align 4
%41 = call i32 @printf(ptr noundef @.str.1, i32 noundef %40)
%42 = load ptr, ptr %3, align 8
%43 = load ptr, ptr %4, align 8
%44 = load ptr, ptr %3, align 8
%45 = call i32 @strlen(ptr noundef %44)
%46 = call i32 @strncmp(ptr noundef %42, ptr noundef %43, i32 noundef %45)
store i32 %46, ptr %2, align 4
%47 = load i32, ptr %2, align 4
%48 = call i32 @printf(ptr noundef @.str.1, i32 noundef %47)
%49 = call i32 @putchar(i8 noundef signext 10)
%50 = load ptr, ptr %4, align 8
%51 = load ptr, ptr %3, align 8
%52 = load ptr, ptr %4, align 8
%53 = call i32 @strlen(ptr noundef %52)
%54 = call i32 @Strncmp(ptr noundef %50, ptr noundef %51, i32 noundef %53)
store i32 %54, ptr %2, align 4
%55 = load i32, ptr %2, align 4
%56 = call i32 @printf(ptr noundef @.str.1, i32 noundef %55)
%57 = load ptr, ptr %4, align 8
%58 = load ptr, ptr %3, align 8
%59 = load ptr, ptr %4, align 8
%60 = call i32 @strlen(ptr noundef %59)
%61 = call i32 @strncmp(ptr noundef %57, ptr noundef %58, i32 noundef %60)
store i32 %61, ptr %2, align 4
%62 = load i32, ptr %2, align 4
%63 = call i32 @printf(ptr noundef @.str.1, i32 noundef %62)
%64 = call i32 @putchar(i8 noundef signext 10)
%65 = call i32 (...) @getchar()
ret i32 0
}
declare i32 @Strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @putchar(i8 noundef signext) #1
declare i32 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1h1uij32.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"hello\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.2 = private unnamed_addr constant [7 x i8] c"hello!\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 ptr, align 8
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store ptr @.str, ptr %3, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = load ptr, ptr %3, align 8
%8 = call i32 @strlen(ptr noundef %7)
%9 = call i32 @Strncmp(ptr noundef %5, ptr noundef %6, i32 noundef %8)
store i32 %9, ptr %2, align 4
%10 = load i32, ptr %2, align 4
%11 = call i32 @printf(ptr noundef @.str.1, i32 noundef %10)
%12 = load ptr, ptr %3, align 8
%13 = load ptr, ptr %3, align 8
%14 = load ptr, ptr %3, align 8
%15 = call i32 @strlen(ptr noundef %14)
%16 = call i32 @strncmp(ptr noundef %12, ptr noundef %13, i32 noundef %15)
store i32 %16, ptr %2, align 4
%17 = load i32, ptr %2, align 4
%18 = call i32 @printf(ptr noundef @.str.1, i32 noundef %17)
%19 = call i32 @putchar(i8 noundef signext 10)
store ptr @.str.2, ptr %4, align 8
%20 = load ptr, ptr %3, align 8
%21 = load ptr, ptr %4, align 8
%22 = load ptr, ptr %4, align 8
%23 = call i32 @strlen(ptr noundef %22)
%24 = call i32 @Strncmp(ptr noundef %20, ptr noundef %21, i32 noundef %23)
store i32 %24, ptr %2, align 4
%25 = load i32, ptr %2, align 4
%26 = call i32 @printf(ptr noundef @.str.1, i32 noundef %25)
%27 = load ptr, ptr %3, align 8
%28 = load ptr, ptr %4, align 8
%29 = load ptr, ptr %4, align 8
%30 = call i32 @strlen(ptr noundef %29)
%31 = call i32 @strncmp(ptr noundef %27, ptr noundef %28, i32 noundef %30)
store i32 %31, ptr %2, align 4
%32 = load i32, ptr %2, align 4
%33 = call i32 @printf(ptr noundef @.str.1, i32 noundef %32)
%34 = call i32 @putchar(i8 noundef signext 10)
%35 = load ptr, ptr %3, align 8
%36 = load ptr, ptr %4, align 8
%37 = load ptr, ptr %3, align 8
%38 = call i32 @strlen(ptr noundef %37)
%39 = call i32 @Strncmp(ptr noundef %35, ptr noundef %36, i32 noundef %38)
store i32 %39, ptr %2, align 4
%40 = load i32, ptr %2, align 4
%41 = call i32 @printf(ptr noundef @.str.1, i32 noundef %40)
%42 = load ptr, ptr %3, align 8
%43 = load ptr, ptr %4, align 8
%44 = load ptr, ptr %3, align 8
%45 = call i32 @strlen(ptr noundef %44)
%46 = call i32 @strncmp(ptr noundef %42, ptr noundef %43, i32 noundef %45)
store i32 %46, ptr %2, align 4
%47 = load i32, ptr %2, align 4
%48 = call i32 @printf(ptr noundef @.str.1, i32 noundef %47)
%49 = call i32 @putchar(i8 noundef signext 10)
%50 = load ptr, ptr %4, align 8
%51 = load ptr, ptr %3, align 8
%52 = load ptr, ptr %4, align 8
%53 = call i32 @strlen(ptr noundef %52)
%54 = call i32 @Strncmp(ptr noundef %50, ptr noundef %51, i32 noundef %53)
store i32 %54, ptr %2, align 4
%55 = load i32, ptr %2, align 4
%56 = call i32 @printf(ptr noundef @.str.1, i32 noundef %55)
%57 = load ptr, ptr %4, align 8
%58 = load ptr, ptr %3, align 8
%59 = load ptr, ptr %4, align 8
%60 = call i32 @strlen(ptr noundef %59)
%61 = call i32 @strncmp(ptr noundef %57, ptr noundef %58, i32 noundef %60)
store i32 %61, ptr %2, align 4
%62 = load i32, ptr %2, align 4
%63 = call i32 @printf(ptr noundef @.str.1, i32 noundef %62)
%64 = call i32 @putchar(i8 noundef signext 10)
%65 = call i32 (...) @getchar()
ret i32 0
}
declare i32 @Strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef, i32 noundef) #1
declare i32 @strncmp(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @putchar(i8 noundef signext) #1
declare i32 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpd4_75dvv.c'
source_filename = "/tmp/tmpd4_75dvv.c"
target datalayout = "e-m:e-p270: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/tmpd4_75dvv.c"
target datalayout = "e-m:e-p270: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/tmp0it5jkub.c'
source_filename = "/tmp/tmp0it5jkub.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @do_query() #0 {
%1 = call i32 (...) @match_field()
ret void
}
declare i32 @match_field(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0it5jkub.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @do_query() #0 {
%1 = call i32 (...) @match_field()
ret void
}
declare i32 @match_field(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE 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_9u7m4yk.c'
source_filename = "/tmp/tmp_9u7m4yk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"a\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"b\00", align 1
@.str.2 = private unnamed_addr constant [36 x i8] c"Seleziona operazione fra +,-,* o /\0A\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"+\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"-\00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c"*\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%5 = load i32, ptr %2, align 4
%6 = call i32 @inputint(ptr noundef @.str, i32 noundef %5)
store i32 %6, ptr %2, align 4
%7 = load i32, ptr %3, align 4
%8 = call i32 @inputint(ptr noundef @.str.1, i32 noundef %7)
store i32 %8, ptr %3, align 4
%9 = call i32 @printf(ptr noundef @.str.2)
%10 = load ptr, ptr %4, align 8
%11 = call i32 @scanf(ptr noundef @.str.3, ptr noundef %10)
%12 = load ptr, ptr %4, align 8
%13 = call i64 @strcmp(ptr noundef %12, ptr noundef @.str.4)
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %19
15: ; preds = %0
%16 = load i32, ptr %3, align 4
%17 = load i32, ptr %2, align 4
%18 = add nsw i32 %17, %16
store i32 %18, ptr %2, align 4
br label %41
19: ; preds = %0
%20 = load ptr, ptr %4, align 8
%21 = call i64 @strcmp(ptr noundef %20, ptr noundef @.str.5)
%22 = icmp eq i64 %21, 0
br i1 %22, label %23, label %27
23: ; preds = %19
%24 = load i32, ptr %3, align 4
%25 = load i32, ptr %2, align 4
%26 = sub nsw i32 %25, %24
store i32 %26, ptr %2, align 4
br label %40
27: ; preds = %19
%28 = load ptr, ptr %4, align 8
%29 = call i64 @strcmp(ptr noundef %28, ptr noundef @.str.6)
%30 = icmp eq i64 %29, 0
br i1 %30, label %31, label %35
31: ; preds = %27
%32 = load i32, ptr %2, align 4
%33 = load i32, ptr %3, align 4
%34 = mul nsw i32 %32, %33
store i32 %34, ptr %2, align 4
br label %39
35: ; preds = %27
%36 = load i32, ptr %2, align 4
%37 = load i32, ptr %3, align 4
%38 = sdiv i32 %36, %37
store i32 %38, ptr %2, align 4
br label %39
39: ; preds = %35, %31
br label %40
40: ; preds = %39, %23
br label %41
41: ; preds = %40, %15
%42 = load i32, ptr %1, align 4
ret i32 %42
}
declare i32 @inputint(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_9u7m4yk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"a\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"b\00", align 1
@.str.2 = private unnamed_addr constant [36 x i8] c"Seleziona operazione fra +,-,* o /\0A\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.4 = private unnamed_addr constant [2 x i8] c"+\00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c"-\00", align 1
@.str.6 = private unnamed_addr constant [2 x i8] c"*\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%5 = load i32, ptr %2, align 4
%6 = call i32 @inputint(ptr noundef @.str, i32 noundef %5)
store i32 %6, ptr %2, align 4
%7 = load i32, ptr %3, align 4
%8 = call i32 @inputint(ptr noundef @.str.1, i32 noundef %7)
store i32 %8, ptr %3, align 4
%9 = call i32 @printf(ptr noundef @.str.2)
%10 = load ptr, ptr %4, align 8
%11 = call i32 @scanf(ptr noundef @.str.3, ptr noundef %10)
%12 = load ptr, ptr %4, align 8
%13 = call i64 @strcmp(ptr noundef %12, ptr noundef @.str.4)
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %19
15: ; preds = %0
%16 = load i32, ptr %3, align 4
%17 = load i32, ptr %2, align 4
%18 = add nsw i32 %17, %16
store i32 %18, ptr %2, align 4
br label %41
19: ; preds = %0
%20 = load ptr, ptr %4, align 8
%21 = call i64 @strcmp(ptr noundef %20, ptr noundef @.str.5)
%22 = icmp eq i64 %21, 0
br i1 %22, label %23, label %27
23: ; preds = %19
%24 = load i32, ptr %3, align 4
%25 = load i32, ptr %2, align 4
%26 = sub nsw i32 %25, %24
store i32 %26, ptr %2, align 4
br label %40
27: ; preds = %19
%28 = load ptr, ptr %4, align 8
%29 = call i64 @strcmp(ptr noundef %28, ptr noundef @.str.6)
%30 = icmp eq i64 %29, 0
br i1 %30, label %31, label %35
31: ; preds = %27
%32 = load i32, ptr %2, align 4
%33 = load i32, ptr %3, align 4
%34 = mul nsw i32 %32, %33
store i32 %34, ptr %2, align 4
br label %39
35: ; preds = %27
%36 = load i32, ptr %2, align 4
%37 = load i32, ptr %3, align 4
%38 = sdiv i32 %36, %37
store i32 %38, ptr %2, align 4
br label %39
39: ; preds = %35, %31
br label %40
40: ; preds = %39, %23
br label %41
41: ; preds = %40, %15
%42 = load i32, ptr %1, align 4
ret i32 %42
}
declare i32 @inputint(ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpisvd0cdq.c'
source_filename = "/tmp/tmpisvd0cdq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @csv_armored_memlen(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i32, align 4
%8 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%9 = load ptr, ptr %3, align 8
store ptr %9, ptr %5, align 8
store i64 0, ptr %6, align 8
store i32 0, ptr %7, align 4
store i64 0, ptr %8, align 8
br label %10
10: ; preds = %40, %2
%11 = load i64, ptr %8, align 8
%12 = load i64, ptr %4, align 8
%13 = icmp ult i64 %11, %12
br i1 %13, label %14, label %45
14: ; preds = %10
%15 = load ptr, ptr %5, align 8
%16 = load i8, ptr %15, align 1
%17 = zext i8 %16 to i32
%18 = icmp sle i32 %17, 32
br i1 %18, label %24, label %19
19: ; preds = %14
%20 = load ptr, ptr %5, align 8
%21 = load i8, ptr %20, align 1
%22 = zext i8 %21 to i32
%23 = icmp eq i32 %22, 59
br i1 %23, label %24, label %27
24: ; preds = %19, %14
store i32 1, ptr %7, align 4
%25 = load i64, ptr %6, align 8
%26 = add i64 %25, 1
store i64 %26, ptr %6, align 8
br label %39
27: ; preds = %19
%28 = load ptr, ptr %5, align 8
%29 = load i8, ptr %28, align 1
%30 = zext i8 %29 to i32
%31 = icmp eq i32 %30, 34
br i1 %31, label %32, label %35
32: ; preds = %27
store i32 1, ptr %7, align 4
%33 = load i64, ptr %6, align 8
%34 = add i64 %33, 2
store i64 %34, ptr %6, align 8
br label %38
35: ; preds = %27
%36 = load i64, ptr %6, align 8
%37 = add i64 %36, 1
store i64 %37, ptr %6, align 8
br label %38
38: ; preds = %35, %32
br label %39
39: ; preds = %38, %24
br label %40
40: ; preds = %39
%41 = load i64, ptr %8, align 8
%42 = add i64 %41, 1
store i64 %42, ptr %8, align 8
%43 = load ptr, ptr %5, align 8
%44 = getelementptr inbounds i8, ptr %43, i32 1
store ptr %44, ptr %5, align 8
br label %10, !llvm.loop !6
45: ; preds = %10
%46 = load i32, ptr %7, align 4
%47 = icmp ne i32 %46, 0
br i1 %47, label %48, label %51
48: ; preds = %45
%49 = load i64, ptr %6, align 8
%50 = add i64 %49, 2
store i64 %50, ptr %6, align 8
br label %51
51: ; preds = %48, %45
%52 = load i64, ptr %6, align 8
ret i64 %52
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpisvd0cdq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @csv_armored_memlen(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca i32, align 4
%8 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
%9 = load ptr, ptr %3, align 8
store ptr %9, ptr %5, align 8
store i64 0, ptr %6, align 8
store i32 0, ptr %7, align 4
store i64 0, ptr %8, align 8
%10 = load i64, ptr %8, align 8
%11 = load i64, ptr %4, align 8
%12 = icmp ult i64 %10, %11
br i1 %12, label %.lr.ph, label %47
.lr.ph: ; preds = %2
br label %13
13: ; preds = %.lr.ph, %39
%14 = load ptr, ptr %5, align 8
%15 = load i8, ptr %14, align 1
%16 = zext i8 %15 to i32
%17 = icmp sle i32 %16, 32
br i1 %17, label %23, label %18
18: ; preds = %13
%19 = load ptr, ptr %5, align 8
%20 = load i8, ptr %19, align 1
%21 = zext i8 %20 to i32
%22 = icmp eq i32 %21, 59
br i1 %22, label %23, label %26
23: ; preds = %18, %13
store i32 1, ptr %7, align 4
%24 = load i64, ptr %6, align 8
%25 = add i64 %24, 1
store i64 %25, ptr %6, align 8
br label %38
26: ; preds = %18
%27 = load ptr, ptr %5, align 8
%28 = load i8, ptr %27, align 1
%29 = zext i8 %28 to i32
%30 = icmp eq i32 %29, 34
br i1 %30, label %31, label %34
31: ; preds = %26
store i32 1, ptr %7, align 4
%32 = load i64, ptr %6, align 8
%33 = add i64 %32, 2
store i64 %33, ptr %6, align 8
br label %37
34: ; preds = %26
%35 = load i64, ptr %6, align 8
%36 = add i64 %35, 1
store i64 %36, ptr %6, align 8
br label %37
37: ; preds = %34, %31
br label %38
38: ; preds = %37, %23
br label %39
39: ; preds = %38
%40 = load i64, ptr %8, align 8
%41 = add i64 %40, 1
store i64 %41, ptr %8, align 8
%42 = load ptr, ptr %5, align 8
%43 = getelementptr inbounds i8, ptr %42, i32 1
store ptr %43, ptr %5, align 8
%44 = load i64, ptr %8, align 8
%45 = load i64, ptr %4, align 8
%46 = icmp ult i64 %44, %45
br i1 %46, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %39
br label %47
47: ; preds = %._crit_edge, %2
%48 = load i32, ptr %7, align 4
%49 = icmp ne i32 %48, 0
br i1 %49, label %50, label %53
50: ; preds = %47
%51 = load i64, ptr %6, align 8
%52 = add i64 %51, 2
store i64 %52, ptr %6, align 8
br label %53
53: ; preds = %50, %47
%54 = load i64, ptr %6, align 8
ret i64 %54
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp10zf4xnz.c'
source_filename = "/tmp/tmp10zf4xnz.c"
target datalayout = "e-m:e-p270: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/tmp10zf4xnz.c"
target datalayout = "e-m:e-p270: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/tmpj0p7ccsk.c'
source_filename = "/tmp/tmpj0p7ccsk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @double_almost_equal_v2(double noundef %0, double noundef %1, double noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
store double %0, ptr %5, align 8
store double %1, ptr %6, align 8
store double %2, ptr %7, align 8
%9 = load double, ptr %7, align 8
%10 = fcmp oge double %9, 0.000000e+00
%11 = zext i1 %10 to i32
%12 = call i32 @assert(i32 noundef %11)
%13 = load double, ptr %5, align 8
%14 = load double, ptr %6, align 8
%15 = fcmp oeq double %13, %14
br i1 %15, label %16, label %17
16: ; preds = %3
store i32 1, ptr %4, align 4
br label %35
17: ; preds = %3
%18 = load double, ptr %5, align 8
%19 = load double, ptr %6, align 8
%20 = fcmp ogt double %18, %19
br i1 %20, label %21, label %25
21: ; preds = %17
%22 = load double, ptr %5, align 8
%23 = load double, ptr %6, align 8
%24 = fsub double %22, %23
br label %29
25: ; preds = %17
%26 = load double, ptr %6, align 8
%27 = load double, ptr %5, align 8
%28 = fsub double %26, %27
br label %29
29: ; preds = %25, %21
%30 = phi double [ %24, %21 ], [ %28, %25 ]
store double %30, ptr %8, align 8
%31 = load double, ptr %8, align 8
%32 = load double, ptr %7, align 8
%33 = fcmp ole double %31, %32
%34 = zext i1 %33 to i32
store i32 %34, ptr %4, align 4
br label %35
35: ; preds = %29, %16
%36 = load i32, ptr %4, align 4
ret i32 %36
}
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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpj0p7ccsk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @double_almost_equal_v2(double noundef %0, double noundef %1, double noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
store double %0, ptr %5, align 8
store double %1, ptr %6, align 8
store double %2, ptr %7, align 8
%9 = load double, ptr %7, align 8
%10 = fcmp oge double %9, 0.000000e+00
%11 = zext i1 %10 to i32
%12 = call i32 @assert(i32 noundef %11)
%13 = load double, ptr %5, align 8
%14 = load double, ptr %6, align 8
%15 = fcmp oeq double %13, %14
br i1 %15, label %16, label %17
16: ; preds = %3
store i32 1, ptr %4, align 4
br label %35
17: ; preds = %3
%18 = load double, ptr %5, align 8
%19 = load double, ptr %6, align 8
%20 = fcmp ogt double %18, %19
br i1 %20, label %21, label %25
21: ; preds = %17
%22 = load double, ptr %5, align 8
%23 = load double, ptr %6, align 8
%24 = fsub double %22, %23
br label %29
25: ; preds = %17
%26 = load double, ptr %6, align 8
%27 = load double, ptr %5, align 8
%28 = fsub double %26, %27
br label %29
29: ; preds = %25, %21
%30 = phi double [ %24, %21 ], [ %28, %25 ]
store double %30, ptr %8, align 8
%31 = load double, ptr %8, align 8
%32 = load double, ptr %7, align 8
%33 = fcmp ole double %31, %32
%34 = zext i1 %33 to i32
store i32 %34, ptr %4, align 4
br label %35
35: ; preds = %29, %16
%36 = load i32, ptr %4, align 4
ret i32 %36
}
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"}
|
; ModuleID = '/tmp/tmp8duj_zx1.c'
source_filename = "/tmp/tmp8duj_zx1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @firstMissingPositive(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%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 0, ptr %6, align 4
br label %8
8: ; preds = %63, %2
%9 = load i32, ptr %6, align 4
%10 = load i32, ptr %5, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %66
12: ; preds = %8
br label %13
13: ; preds = %47, %12
%14 = load ptr, ptr %4, align 8
%15 = load i32, ptr %6, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i32, ptr %14, i64 %16
%18 = load i32, ptr %17, align 4
%19 = icmp sgt i32 %18, 0
br i1 %19, label %20, label %45
20: ; preds = %13
%21 = load ptr, ptr %4, align 8
%22 = load i32, ptr %6, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i32, ptr %21, i64 %23
%25 = load i32, ptr %24, align 4
%26 = load i32, ptr %5, align 4
%27 = icmp sle i32 %25, %26
br i1 %27, label %28, label %45
28: ; preds = %20
%29 = load ptr, ptr %4, align 8
%30 = load ptr, ptr %4, align 8
%31 = load i32, ptr %6, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i32, ptr %30, i64 %32
%34 = load i32, ptr %33, align 4
%35 = sub nsw i32 %34, 1
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i32, ptr %29, i64 %36
%38 = load i32, ptr %37, align 4
%39 = load ptr, ptr %4, align 8
%40 = load i32, ptr %6, align 4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i32, ptr %39, i64 %41
%43 = load i32, ptr %42, align 4
%44 = icmp ne i32 %38, %43
br label %45
45: ; preds = %28, %20, %13
%46 = phi i1 [ false, %20 ], [ false, %13 ], [ %44, %28 ]
br i1 %46, label %47, label %62
47: ; preds = %45
%48 = load ptr, ptr %4, align 8
%49 = load i32, ptr %6, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds i32, ptr %48, i64 %50
%52 = load ptr, ptr %4, align 8
%53 = load ptr, ptr %4, align 8
%54 = load i32, ptr %6, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i32, ptr %53, i64 %55
%57 = load i32, ptr %56, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds i32, ptr %52, i64 %58
%60 = getelementptr inbounds i32, ptr %59, i64 -1
%61 = call i32 @swap(ptr noundef %51, ptr noundef %60)
br label %13, !llvm.loop !6
62: ; preds = %45
br label %63
63: ; preds = %62
%64 = load i32, ptr %6, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %6, align 4
br label %8, !llvm.loop !8
66: ; preds = %8
store i32 0, ptr %7, align 4
br label %67
67: ; preds = %84, %66
%68 = load i32, ptr %7, align 4
%69 = load i32, ptr %5, align 4
%70 = icmp slt i32 %68, %69
br i1 %70, label %71, label %87
71: ; preds = %67
%72 = load ptr, ptr %4, align 8
%73 = load i32, ptr %7, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds i32, ptr %72, i64 %74
%76 = load i32, ptr %75, align 4
%77 = load i32, ptr %7, align 4
%78 = add nsw i32 %77, 1
%79 = icmp ne i32 %76, %78
br i1 %79, label %80, label %83
80: ; preds = %71
%81 = load i32, ptr %7, align 4
%82 = add nsw i32 %81, 1
store i32 %82, ptr %3, align 4
br label %90
83: ; preds = %71
br label %84
84: ; preds = %83
%85 = load i32, ptr %7, align 4
%86 = add nsw i32 %85, 1
store i32 %86, ptr %7, align 4
br label %67, !llvm.loop !9
87: ; preds = %67
%88 = load i32, ptr %5, align 4
%89 = add nsw i32 %88, 1
store i32 %89, ptr %3, align 4
br label %90
90: ; preds = %87, %80
%91 = load i32, ptr %3, align 4
ret i32 %91
}
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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8duj_zx1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @firstMissingPositive(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%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 0, ptr %6, align 4
%8 = load i32, ptr %6, align 4
%9 = load i32, ptr %5, align 4
%10 = icmp slt i32 %8, %9
br i1 %10, label %.lr.ph, label %68
.lr.ph: ; preds = %2
br label %11
11: ; preds = %.lr.ph, %62
br label %12
12: ; preds = %46, %11
%13 = load ptr, ptr %4, align 8
%14 = load i32, ptr %6, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i32, ptr %13, i64 %15
%17 = load i32, ptr %16, align 4
%18 = icmp sgt i32 %17, 0
br i1 %18, label %19, label %44
19: ; preds = %12
%20 = load ptr, ptr %4, align 8
%21 = load i32, ptr %6, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i32, ptr %20, i64 %22
%24 = load i32, ptr %23, align 4
%25 = load i32, ptr %5, align 4
%26 = icmp sle i32 %24, %25
br i1 %26, label %27, label %44
27: ; preds = %19
%28 = load ptr, ptr %4, align 8
%29 = load ptr, ptr %4, align 8
%30 = load i32, ptr %6, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i32, ptr %29, i64 %31
%33 = load i32, ptr %32, align 4
%34 = sub nsw i32 %33, 1
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i32, ptr %28, i64 %35
%37 = load i32, ptr %36, align 4
%38 = load ptr, ptr %4, align 8
%39 = load i32, ptr %6, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i32, ptr %38, i64 %40
%42 = load i32, ptr %41, align 4
%43 = icmp ne i32 %37, %42
br label %44
44: ; preds = %27, %19, %12
%45 = phi i1 [ false, %19 ], [ false, %12 ], [ %43, %27 ]
br i1 %45, label %46, label %61
46: ; preds = %44
%47 = load ptr, ptr %4, align 8
%48 = load i32, ptr %6, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i32, ptr %47, i64 %49
%51 = load ptr, ptr %4, align 8
%52 = load ptr, ptr %4, align 8
%53 = load i32, ptr %6, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i32, ptr %52, i64 %54
%56 = load i32, ptr %55, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i32, ptr %51, i64 %57
%59 = getelementptr inbounds i32, ptr %58, i64 -1
%60 = call i32 @swap(ptr noundef %50, ptr noundef %59)
br label %12, !llvm.loop !6
61: ; preds = %44
br label %62
62: ; preds = %61
%63 = load i32, ptr %6, align 4
%64 = add nsw i32 %63, 1
store i32 %64, ptr %6, align 4
%65 = load i32, ptr %6, align 4
%66 = load i32, ptr %5, align 4
%67 = icmp slt i32 %65, %66
br i1 %67, label %11, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %62
br label %68
68: ; preds = %._crit_edge, %2
store i32 0, ptr %7, align 4
%69 = load i32, ptr %7, align 4
%70 = load i32, ptr %5, align 4
%71 = icmp slt i32 %69, %70
br i1 %71, label %.lr.ph2, label %91
.lr.ph2: ; preds = %68
br label %72
72: ; preds = %.lr.ph2, %85
%73 = load ptr, ptr %4, align 8
%74 = load i32, ptr %7, align 4
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds i32, ptr %73, i64 %75
%77 = load i32, ptr %76, align 4
%78 = load i32, ptr %7, align 4
%79 = add nsw i32 %78, 1
%80 = icmp ne i32 %77, %79
br i1 %80, label %81, label %84
81: ; preds = %72
%82 = load i32, ptr %7, align 4
%83 = add nsw i32 %82, 1
store i32 %83, ptr %3, align 4
br label %94
84: ; preds = %72
br label %85
85: ; preds = %84
%86 = load i32, ptr %7, align 4
%87 = add nsw i32 %86, 1
store i32 %87, ptr %7, align 4
%88 = load i32, ptr %7, align 4
%89 = load i32, ptr %5, align 4
%90 = icmp slt i32 %88, %89
br i1 %90, label %72, label %._crit_edge3, !llvm.loop !9
._crit_edge3: ; preds = %85
br label %91
91: ; preds = %._crit_edge3, %68
%92 = load i32, ptr %5, align 4
%93 = add nsw i32 %92, 1
store i32 %93, ptr %3, align 4
br label %94
94: ; preds = %91, %81
%95 = load i32, ptr %3, align 4
ret i32 %95
}
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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpe7pb9b5f.c'
source_filename = "/tmp/tmpe7pb9b5f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @crc8_dvb_s2(i8 noundef zeroext %0, i8 noundef zeroext %1) #0 {
%3 = alloca i8, align 1
%4 = alloca i8, align 1
%5 = alloca i32, align 4
store i8 %0, ptr %3, align 1
store i8 %1, ptr %4, align 1
%6 = load i8, ptr %4, align 1
%7 = zext i8 %6 to i32
%8 = load i8, ptr %3, align 1
%9 = zext i8 %8 to i32
%10 = xor i32 %9, %7
%11 = trunc i32 %10 to i8
store i8 %11, ptr %3, align 1
store i32 0, ptr %5, align 4
br label %12
12: ; preds = %32, %2
%13 = load i32, ptr %5, align 4
%14 = icmp slt i32 %13, 8
br i1 %14, label %15, label %35
15: ; preds = %12
%16 = load i8, ptr %3, align 1
%17 = zext i8 %16 to i32
%18 = and i32 %17, 128
%19 = icmp ne i32 %18, 0
br i1 %19, label %20, label %26
20: ; preds = %15
%21 = load i8, ptr %3, align 1
%22 = zext i8 %21 to i32
%23 = shl i32 %22, 1
%24 = xor i32 %23, 213
%25 = trunc i32 %24 to i8
store i8 %25, ptr %3, align 1
br label %31
26: ; preds = %15
%27 = load i8, ptr %3, align 1
%28 = zext i8 %27 to i32
%29 = shl i32 %28, 1
%30 = trunc i32 %29 to i8
store i8 %30, ptr %3, align 1
br label %31
31: ; preds = %26, %20
br label %32
32: ; preds = %31
%33 = load i32, ptr %5, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %5, align 4
br label %12, !llvm.loop !6
35: ; preds = %12
%36 = load i8, ptr %3, align 1
ret i8 %36
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpe7pb9b5f.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @crc8_dvb_s2(i8 noundef zeroext %0, i8 noundef zeroext %1) #0 {
%3 = alloca i8, align 1
%4 = alloca i8, align 1
%5 = alloca i32, align 4
store i8 %0, ptr %3, align 1
store i8 %1, ptr %4, align 1
%6 = load i8, ptr %4, align 1
%7 = zext i8 %6 to i32
%8 = load i8, ptr %3, align 1
%9 = zext i8 %8 to i32
%10 = xor i32 %9, %7
%11 = trunc i32 %10 to i8
store i8 %11, ptr %3, align 1
store i32 0, ptr %5, align 4
%12 = load i32, ptr %5, align 4
%13 = icmp slt i32 %12, 8
br i1 %13, label %.lr.ph, label %36
.lr.ph: ; preds = %2
br label %14
14: ; preds = %.lr.ph, %31
%15 = load i8, ptr %3, align 1
%16 = zext i8 %15 to i32
%17 = and i32 %16, 128
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %25
19: ; preds = %14
%20 = load i8, ptr %3, align 1
%21 = zext i8 %20 to i32
%22 = shl i32 %21, 1
%23 = xor i32 %22, 213
%24 = trunc i32 %23 to i8
store i8 %24, ptr %3, align 1
br label %30
25: ; preds = %14
%26 = load i8, ptr %3, align 1
%27 = zext i8 %26 to i32
%28 = shl i32 %27, 1
%29 = trunc i32 %28 to i8
store i8 %29, ptr %3, align 1
br label %30
30: ; preds = %25, %19
br label %31
31: ; preds = %30
%32 = load i32, ptr %5, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %5, align 4
%34 = load i32, ptr %5, align 4
%35 = icmp slt i32 %34, 8
br i1 %35, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %31
br label %36
36: ; preds = %._crit_edge, %2
%37 = load i8, ptr %3, align 1
ret i8 %37
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpih00pkw5.c'
source_filename = "/tmp/tmpih00pkw5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
@AT_FDCWD = dso_local global i32 0, align 4
@AT_SYMLINK_NOFOLLOW = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @lchmod(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca %struct.stat, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%8 = load ptr, ptr %4, align 8
%9 = call i32 @lstat(ptr noundef %8, ptr noundef %6)
store i32 %9, ptr %7, align 4
%10 = load i32, ptr %7, align 4
%11 = icmp slt i32 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = load i32, ptr %7, align 4
store i32 %13, ptr %3, align 4
br label %26
14: ; preds = %2
%15 = getelementptr inbounds %struct.stat, ptr %6, i32 0, i32 0
%16 = load i32, ptr %15, align 4
%17 = call i64 @S_ISLNK(i32 noundef %16)
%18 = icmp ne i64 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %14
store i32 0, ptr %3, align 4
br label %26
20: ; preds = %14
%21 = load i32, ptr @AT_FDCWD, align 4
%22 = load ptr, ptr %4, align 8
%23 = load i32, ptr %5, align 4
%24 = load i32, ptr @AT_SYMLINK_NOFOLLOW, align 4
%25 = call i32 @fchmodat(i32 noundef %21, ptr noundef %22, i32 noundef %23, i32 noundef %24)
store i32 %25, ptr %3, align 4
br label %26
26: ; preds = %20, %19, %12
%27 = load i32, ptr %3, align 4
ret i32 %27
}
declare i32 @lstat(ptr noundef, ptr noundef) #1
declare i64 @S_ISLNK(i32 noundef) #1
declare i32 @fchmodat(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpih00pkw5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
@AT_FDCWD = dso_local global i32 0, align 4
@AT_SYMLINK_NOFOLLOW = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @lchmod(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca %struct.stat, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
%8 = load ptr, ptr %4, align 8
%9 = call i32 @lstat(ptr noundef %8, ptr noundef %6)
store i32 %9, ptr %7, align 4
%10 = load i32, ptr %7, align 4
%11 = icmp slt i32 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = load i32, ptr %7, align 4
store i32 %13, ptr %3, align 4
br label %26
14: ; preds = %2
%15 = getelementptr inbounds %struct.stat, ptr %6, i32 0, i32 0
%16 = load i32, ptr %15, align 4
%17 = call i64 @S_ISLNK(i32 noundef %16)
%18 = icmp ne i64 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %14
store i32 0, ptr %3, align 4
br label %26
20: ; preds = %14
%21 = load i32, ptr @AT_FDCWD, align 4
%22 = load ptr, ptr %4, align 8
%23 = load i32, ptr %5, align 4
%24 = load i32, ptr @AT_SYMLINK_NOFOLLOW, align 4
%25 = call i32 @fchmodat(i32 noundef %21, ptr noundef %22, i32 noundef %23, i32 noundef %24)
store i32 %25, ptr %3, align 4
br label %26
26: ; preds = %20, %19, %12
%27 = load i32, ptr %3, align 4
ret i32 %27
}
declare i32 @lstat(ptr noundef, ptr noundef) #1
declare i64 @S_ISLNK(i32 noundef) #1
declare i32 @fchmodat(i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpa464j_cb.c'
source_filename = "/tmp/tmpa464j_cb.c"
target datalayout = "e-m:e-p270: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, i32, i32, i32, i32, i32 }
@.str = private unnamed_addr constant [5 x i8] c"%ld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca %struct.tm, align 4
store i32 0, ptr %1, align 4
%3 = getelementptr inbounds %struct.tm, ptr %2, i32 0, i32 0
store i32 1, ptr %3, align 4
%4 = getelementptr inbounds %struct.tm, ptr %2, i32 0, i32 1
store i32 2, ptr %4, align 4
%5 = getelementptr inbounds %struct.tm, ptr %2, i32 0, i32 2
store i32 3, ptr %5, align 4
%6 = getelementptr inbounds %struct.tm, ptr %2, i32 0, i32 3
store i32 29, ptr %6, align 4
%7 = getelementptr inbounds %struct.tm, ptr %2, i32 0, i32 4
store i32 2, ptr %7, align 4
%8 = getelementptr inbounds %struct.tm, ptr %2, i32 0, i32 5
store i32 100, ptr %8, align 4
%9 = call i64 @mktime(ptr noundef %2)
%10 = call i32 @printf(ptr noundef @.str, i64 noundef %9)
%11 = getelementptr inbounds %struct.tm, ptr %2, i32 0, i32 3
store i32 1, ptr %11, align 4
%12 = getelementptr inbounds %struct.tm, ptr %2, i32 0, i32 4
store i32 3, ptr %12, align 4
%13 = getelementptr inbounds %struct.tm, ptr %2, i32 0, i32 5
store i32 102, ptr %13, align 4
%14 = call i64 @mktime(ptr noundef %2)
%15 = call i32 @printf(ptr noundef @.str, i64 noundef %14)
%16 = getelementptr inbounds %struct.tm, ptr %2, i32 0, i32 3
store i32 1, ptr %16, align 4
%17 = getelementptr inbounds %struct.tm, ptr %2, i32 0, i32 4
store i32 6, ptr %17, align 4
%18 = getelementptr inbounds %struct.tm, ptr %2, i32 0, i32 5
store i32 102, ptr %18, align 4
%19 = call i64 @mktime(ptr noundef %2)
%20 = call i32 @printf(ptr noundef @.str, i64 noundef %19)
ret i32 0
}
declare i32 @printf(ptr noundef, i64 noundef) #1
declare i64 @mktime(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpa464j_cb.c"
target datalayout = "e-m:e-p270: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, i32, i32, i32, i32, i32 }
@.str = private unnamed_addr constant [5 x i8] c"%ld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca %struct.tm, align 4
store i32 0, ptr %1, align 4
%3 = getelementptr inbounds %struct.tm, ptr %2, i32 0, i32 0
store i32 1, ptr %3, align 4
%4 = getelementptr inbounds %struct.tm, ptr %2, i32 0, i32 1
store i32 2, ptr %4, align 4
%5 = getelementptr inbounds %struct.tm, ptr %2, i32 0, i32 2
store i32 3, ptr %5, align 4
%6 = getelementptr inbounds %struct.tm, ptr %2, i32 0, i32 3
store i32 29, ptr %6, align 4
%7 = getelementptr inbounds %struct.tm, ptr %2, i32 0, i32 4
store i32 2, ptr %7, align 4
%8 = getelementptr inbounds %struct.tm, ptr %2, i32 0, i32 5
store i32 100, ptr %8, align 4
%9 = call i64 @mktime(ptr noundef %2)
%10 = call i32 @printf(ptr noundef @.str, i64 noundef %9)
%11 = getelementptr inbounds %struct.tm, ptr %2, i32 0, i32 3
store i32 1, ptr %11, align 4
%12 = getelementptr inbounds %struct.tm, ptr %2, i32 0, i32 4
store i32 3, ptr %12, align 4
%13 = getelementptr inbounds %struct.tm, ptr %2, i32 0, i32 5
store i32 102, ptr %13, align 4
%14 = call i64 @mktime(ptr noundef %2)
%15 = call i32 @printf(ptr noundef @.str, i64 noundef %14)
%16 = getelementptr inbounds %struct.tm, ptr %2, i32 0, i32 3
store i32 1, ptr %16, align 4
%17 = getelementptr inbounds %struct.tm, ptr %2, i32 0, i32 4
store i32 6, ptr %17, align 4
%18 = getelementptr inbounds %struct.tm, ptr %2, i32 0, i32 5
store i32 102, ptr %18, align 4
%19 = call i64 @mktime(ptr noundef %2)
%20 = call i32 @printf(ptr noundef @.str, i64 noundef %19)
ret i32 0
}
declare i32 @printf(ptr noundef, i64 noundef) #1
declare i64 @mktime(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqd_6mkkj.c'
source_filename = "/tmp/tmpqd_6mkkj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @disable_gppud() #0 {
%1 = alloca i32, align 4
%2 = call i32 @write_to_address(i32 noundef 1059061908, i32 noundef 0)
store i32 0, ptr %1, align 4
br label %3
3: ; preds = %8, %0
%4 = load i32, ptr %1, align 4
%5 = icmp ult i32 %4, 150
br i1 %5, label %6, label %11
6: ; preds = %3
%7 = call i32 (...) @delay()
br label %8
8: ; preds = %6
%9 = load i32, ptr %1, align 4
%10 = add i32 %9, 1
store i32 %10, ptr %1, align 4
br label %3, !llvm.loop !6
11: ; preds = %3
%12 = call i32 @write_to_address(i32 noundef 1059061912, i32 noundef 188792848)
%13 = call i32 @write_to_address(i32 noundef 1059061916, i32 noundef 32768)
store i32 0, ptr %1, align 4
br label %14
14: ; preds = %19, %11
%15 = load i32, ptr %1, align 4
%16 = icmp ult i32 %15, 150
br i1 %16, label %17, label %22
17: ; preds = %14
%18 = call i32 (...) @delay()
br label %19
19: ; preds = %17
%20 = load i32, ptr %1, align 4
%21 = add i32 %20, 1
store i32 %21, ptr %1, align 4
br label %14, !llvm.loop !8
22: ; preds = %14
%23 = call i32 @write_to_address(i32 noundef 1059061912, i32 noundef 0)
ret void
}
declare i32 @write_to_address(i32 noundef, i32 noundef) #1
declare i32 @delay(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpqd_6mkkj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @disable_gppud() #0 {
%1 = alloca i32, align 4
%2 = call i32 @write_to_address(i32 noundef 1059061908, i32 noundef 0)
store i32 0, ptr %1, align 4
%3 = load i32, ptr %1, align 4
%4 = icmp ult i32 %3, 150
br i1 %4, label %.lr.ph, label %12
.lr.ph: ; preds = %0
br label %5
5: ; preds = %.lr.ph, %7
%6 = call i32 (...) @delay()
br label %7
7: ; preds = %5
%8 = load i32, ptr %1, align 4
%9 = add i32 %8, 1
store i32 %9, ptr %1, align 4
%10 = load i32, ptr %1, align 4
%11 = icmp ult i32 %10, 150
br i1 %11, label %5, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %7
br label %12
12: ; preds = %._crit_edge, %0
%13 = call i32 @write_to_address(i32 noundef 1059061912, i32 noundef 188792848)
%14 = call i32 @write_to_address(i32 noundef 1059061916, i32 noundef 32768)
store i32 0, ptr %1, align 4
%15 = load i32, ptr %1, align 4
%16 = icmp ult i32 %15, 150
br i1 %16, label %.lr.ph2, label %24
.lr.ph2: ; preds = %12
br label %17
17: ; preds = %.lr.ph2, %19
%18 = call i32 (...) @delay()
br label %19
19: ; preds = %17
%20 = load i32, ptr %1, align 4
%21 = add i32 %20, 1
store i32 %21, ptr %1, align 4
%22 = load i32, ptr %1, align 4
%23 = icmp ult i32 %22, 150
br i1 %23, label %17, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %19
br label %24
24: ; preds = %._crit_edge3, %12
%25 = call i32 @write_to_address(i32 noundef 1059061912, i32 noundef 0)
ret void
}
declare i32 @write_to_address(i32 noundef, i32 noundef) #1
declare i32 @delay(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp56mcjkuc.c'
source_filename = "/tmp/tmp56mcjkuc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pic() #0 {
%1 = call i32 @outb(i32 noundef -1073741792, i32 noundef 17)
%2 = call i32 @outb(i32 noundef -1073741664, i32 noundef 17)
%3 = call i32 @outb(i32 noundef -1073741791, i32 noundef 32)
%4 = call i32 @outb(i32 noundef -1073741663, i32 noundef 40)
%5 = call i32 @outb(i32 noundef -1073741791, i32 noundef 4)
%6 = call i32 @outb(i32 noundef -1073741663, i32 noundef 2)
%7 = call i32 @outb(i32 noundef -1073741791, i32 noundef 1)
%8 = call i32 @outb(i32 noundef -1073741663, i32 noundef 1)
%9 = call i32 @outb(i32 noundef -1073741791, i32 noundef 0)
%10 = call i32 @outb(i32 noundef -1073741663, i32 noundef 0)
%11 = call i32 @inb(i32 noundef -1073741791)
%12 = and i32 %11, 253
%13 = call i32 @outb(i32 noundef -1073741791, i32 noundef %12)
%14 = call i32 @inb(i32 noundef -1073741663)
%15 = and i32 %14, 255
%16 = call i32 @outb(i32 noundef -1073741663, i32 noundef %15)
ret void
}
declare i32 @outb(i32 noundef, i32 noundef) #1
declare i32 @inb(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/tmp56mcjkuc.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pic() #0 {
%1 = call i32 @outb(i32 noundef -1073741792, i32 noundef 17)
%2 = call i32 @outb(i32 noundef -1073741664, i32 noundef 17)
%3 = call i32 @outb(i32 noundef -1073741791, i32 noundef 32)
%4 = call i32 @outb(i32 noundef -1073741663, i32 noundef 40)
%5 = call i32 @outb(i32 noundef -1073741791, i32 noundef 4)
%6 = call i32 @outb(i32 noundef -1073741663, i32 noundef 2)
%7 = call i32 @outb(i32 noundef -1073741791, i32 noundef 1)
%8 = call i32 @outb(i32 noundef -1073741663, i32 noundef 1)
%9 = call i32 @outb(i32 noundef -1073741791, i32 noundef 0)
%10 = call i32 @outb(i32 noundef -1073741663, i32 noundef 0)
%11 = call i32 @inb(i32 noundef -1073741791)
%12 = and i32 %11, 253
%13 = call i32 @outb(i32 noundef -1073741791, i32 noundef %12)
%14 = call i32 @inb(i32 noundef -1073741663)
%15 = and i32 %14, 255
%16 = call i32 @outb(i32 noundef -1073741663, i32 noundef %15)
ret void
}
declare i32 @outb(i32 noundef, i32 noundef) #1
declare i32 @inb(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/tmp3y3a1qqz.c'
source_filename = "/tmp/tmp3y3a1qqz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mcm(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 = mul nsw i32 %5, %6
%8 = load i32, ptr %3, align 4
%9 = load i32, ptr %4, align 4
%10 = call i32 @MCD(i32 noundef %8, i32 noundef %9)
%11 = sdiv i32 %7, %10
ret i32 %11
}
declare i32 @MCD(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/tmp3y3a1qqz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mcm(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 = mul nsw i32 %5, %6
%8 = load i32, ptr %3, align 4
%9 = load i32, ptr %4, align 4
%10 = call i32 @MCD(i32 noundef %8, i32 noundef %9)
%11 = sdiv i32 %7, %10
ret i32 %11
}
declare i32 @MCD(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/tmp3s2q7ogi.c'
source_filename = "/tmp/tmp3s2q7ogi.c"
target datalayout = "e-m:e-p270: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/tmp3s2q7ogi.c"
target datalayout = "e-m:e-p270: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/tmpvyyhijtx.c'
source_filename = "/tmp/tmpvyyhijtx.c"
target datalayout = "e-m:e-p270: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.TYPE_2__ = type { i32, i32 }
%struct.pollfd = type { i64, i32, i32 }
@svc_max_pollfd = dso_local global i32 0, align 4
@svc_pollfd = dso_local global ptr null, align 8
@errno = dso_local global i32 0, align 4
@EINTR = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [23 x i8] c"svc_run: - poll failed\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @svc_run() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
br label %3
3: ; preds = %74, %65, %61, %0
%4 = load i32, ptr @svc_max_pollfd, align 4
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %10
6: ; preds = %3
%7 = load ptr, ptr @svc_pollfd, align 8
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %10
9: ; preds = %6
br label %75
10: ; preds = %6, %3
%11 = load i32, ptr @svc_max_pollfd, align 4
%12 = sext i32 %11 to i64
%13 = mul i64 16, %12
%14 = trunc i64 %13 to i32
%15 = call ptr @malloc(i32 noundef %14)
store ptr %15, ptr %2, align 8
store i32 0, ptr %1, align 4
br label %16
16: ; preds = %48, %10
%17 = load i32, ptr %1, align 4
%18 = load i32, ptr @svc_max_pollfd, align 4
%19 = icmp slt i32 %17, %18
br i1 %19, label %20, label %51
20: ; preds = %16
%21 = load ptr, ptr @svc_pollfd, align 8
%22 = load i32, ptr %1, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds %struct.TYPE_2__, ptr %21, i64 %23
%25 = getelementptr inbounds %struct.TYPE_2__, ptr %24, i32 0, i32 1
%26 = load i32, ptr %25, align 4
%27 = load ptr, ptr %2, align 8
%28 = load i32, ptr %1, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds %struct.pollfd, ptr %27, i64 %29
%31 = getelementptr inbounds %struct.pollfd, ptr %30, i32 0, i32 2
store i32 %26, ptr %31, align 4
%32 = load ptr, ptr @svc_pollfd, align 8
%33 = load i32, ptr %1, align 4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds %struct.TYPE_2__, ptr %32, i64 %34
%36 = getelementptr inbounds %struct.TYPE_2__, ptr %35, i32 0, i32 0
%37 = load i32, ptr %36, align 4
%38 = load ptr, ptr %2, align 8
%39 = load i32, ptr %1, align 4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds %struct.pollfd, ptr %38, i64 %40
%42 = getelementptr inbounds %struct.pollfd, ptr %41, i32 0, i32 1
store i32 %37, ptr %42, align 8
%43 = load ptr, ptr %2, align 8
%44 = load i32, ptr %1, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds %struct.pollfd, ptr %43, i64 %45
%47 = getelementptr inbounds %struct.pollfd, ptr %46, i32 0, i32 0
store i64 0, ptr %47, align 8
br label %48
48: ; preds = %20
%49 = load i32, ptr %1, align 4
%50 = add nsw i32 %49, 1
store i32 %50, ptr %1, align 4
br label %16, !llvm.loop !6
51: ; preds = %16
%52 = load ptr, ptr %2, align 8
%53 = load i32, ptr @svc_max_pollfd, align 4
%54 = call i32 @poll(ptr noundef %52, i32 noundef %53, i32 noundef -1)
store i32 %54, ptr %1, align 4
switch i32 %54, label %68 [
i32 -1, label %55
i32 0, label %65
]
55: ; preds = %51
%56 = load ptr, ptr %2, align 8
%57 = call i32 @free(ptr noundef %56)
%58 = load i32, ptr @errno, align 4
%59 = load i32, ptr @EINTR, align 4
%60 = icmp eq i32 %58, %59
br i1 %60, label %61, label %62
61: ; preds = %55
br label %3
62: ; preds = %55
%63 = call i32 @_(ptr noundef @.str)
%64 = call i32 @perror(i32 noundef %63)
br label %75
65: ; preds = %51
%66 = load ptr, ptr %2, align 8
%67 = call i32 @free(ptr noundef %66)
br label %3
68: ; preds = %51
%69 = load ptr, ptr %2, align 8
%70 = load i32, ptr %1, align 4
%71 = call i32 @svc_getreq_poll(ptr noundef %69, i32 noundef %70)
%72 = load ptr, ptr %2, align 8
%73 = call i32 @free(ptr noundef %72)
br label %74
74: ; preds = %68
br label %3
75: ; preds = %62, %9
ret void
}
declare ptr @malloc(i32 noundef) #1
declare i32 @poll(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @perror(i32 noundef) #1
declare i32 @_(ptr noundef) #1
declare i32 @svc_getreq_poll(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/tmpvyyhijtx.c"
target datalayout = "e-m:e-p270: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.TYPE_2__ = type { i32, i32 }
%struct.pollfd = type { i64, i32, i32 }
@svc_max_pollfd = dso_local global i32 0, align 4
@svc_pollfd = dso_local global ptr null, align 8
@errno = dso_local global i32 0, align 4
@EINTR = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [23 x i8] c"svc_run: - poll failed\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @svc_run() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
br label %3
3: ; preds = %.backedge, %0
%4 = load i32, ptr @svc_max_pollfd, align 4
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %10
6: ; preds = %3
%7 = load ptr, ptr @svc_pollfd, align 8
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %10
9: ; preds = %6
br label %77
10: ; preds = %6, %3
%11 = load i32, ptr @svc_max_pollfd, align 4
%12 = sext i32 %11 to i64
%13 = mul i64 16, %12
%14 = trunc i64 %13 to i32
%15 = call ptr @malloc(i32 noundef %14)
store ptr %15, ptr %2, align 8
store i32 0, ptr %1, align 4
%16 = load i32, ptr %1, align 4
%17 = load i32, ptr @svc_max_pollfd, align 4
%18 = icmp slt i32 %16, %17
br i1 %18, label %.lr.ph, label %53
.lr.ph: ; preds = %10
br label %19
19: ; preds = %.lr.ph, %47
%20 = load ptr, ptr @svc_pollfd, align 8
%21 = load i32, ptr %1, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds %struct.TYPE_2__, ptr %20, i64 %22
%24 = getelementptr inbounds %struct.TYPE_2__, ptr %23, i32 0, i32 1
%25 = load i32, ptr %24, align 4
%26 = load ptr, ptr %2, align 8
%27 = load i32, ptr %1, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds %struct.pollfd, ptr %26, i64 %28
%30 = getelementptr inbounds %struct.pollfd, ptr %29, i32 0, i32 2
store i32 %25, ptr %30, align 4
%31 = load ptr, ptr @svc_pollfd, align 8
%32 = load i32, ptr %1, align 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds %struct.TYPE_2__, ptr %31, i64 %33
%35 = getelementptr inbounds %struct.TYPE_2__, ptr %34, i32 0, i32 0
%36 = load i32, ptr %35, align 4
%37 = load ptr, ptr %2, align 8
%38 = load i32, ptr %1, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds %struct.pollfd, ptr %37, i64 %39
%41 = getelementptr inbounds %struct.pollfd, ptr %40, i32 0, i32 1
store i32 %36, ptr %41, align 8
%42 = load ptr, ptr %2, align 8
%43 = load i32, ptr %1, align 4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds %struct.pollfd, ptr %42, i64 %44
%46 = getelementptr inbounds %struct.pollfd, ptr %45, i32 0, i32 0
store i64 0, ptr %46, align 8
br label %47
47: ; preds = %19
%48 = load i32, ptr %1, align 4
%49 = add nsw i32 %48, 1
store i32 %49, ptr %1, align 4
%50 = load i32, ptr %1, align 4
%51 = load i32, ptr @svc_max_pollfd, align 4
%52 = icmp slt i32 %50, %51
br i1 %52, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %47
br label %53
53: ; preds = %._crit_edge, %10
%54 = load ptr, ptr %2, align 8
%55 = load i32, ptr @svc_max_pollfd, align 4
%56 = call i32 @poll(ptr noundef %54, i32 noundef %55, i32 noundef -1)
store i32 %56, ptr %1, align 4
switch i32 %56, label %70 [
i32 -1, label %57
i32 0, label %67
]
57: ; preds = %53
%58 = load ptr, ptr %2, align 8
%59 = call i32 @free(ptr noundef %58)
%60 = load i32, ptr @errno, align 4
%61 = load i32, ptr @EINTR, align 4
%62 = icmp eq i32 %60, %61
br i1 %62, label %63, label %64
63: ; preds = %57
br label %.backedge
.backedge: ; preds = %63, %67, %76
br label %3
64: ; preds = %57
%65 = call i32 @_(ptr noundef @.str)
%66 = call i32 @perror(i32 noundef %65)
br label %77
67: ; preds = %53
%68 = load ptr, ptr %2, align 8
%69 = call i32 @free(ptr noundef %68)
br label %.backedge
70: ; preds = %53
%71 = load ptr, ptr %2, align 8
%72 = load i32, ptr %1, align 4
%73 = call i32 @svc_getreq_poll(ptr noundef %71, i32 noundef %72)
%74 = load ptr, ptr %2, align 8
%75 = call i32 @free(ptr noundef %74)
br label %76
76: ; preds = %70
br label %.backedge
77: ; preds = %64, %9
ret void
}
declare ptr @malloc(i32 noundef) #1
declare i32 @poll(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @perror(i32 noundef) #1
declare i32 @_(ptr noundef) #1
declare i32 @svc_getreq_poll(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/tmpmdq60sl6.c'
source_filename = "/tmp/tmpmdq60sl6.c"
target datalayout = "e-m:e-p270: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/tmpmdq60sl6.c"
target datalayout = "e-m:e-p270: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/tmp0bpkq5ty.c'
source_filename = "/tmp/tmp0bpkq5ty.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @suspend_keyboard() #0 {
%1 = call i32 @set_raw_term(i32 noundef 0)
ret void
}
declare i32 @set_raw_term(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/tmp0bpkq5ty.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @suspend_keyboard() #0 {
%1 = call i32 @set_raw_term(i32 noundef 0)
ret void
}
declare i32 @set_raw_term(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/tmpxuc5ytk3.c'
source_filename = "/tmp/tmpxuc5ytk3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"[%d] \00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"(vazio)\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.3 = private unnamed_addr constant [36 x i8] c"Posicao para nova string (1 a %d): \00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.5 = private unnamed_addr constant [14 x i8] c"Nova String: \00", align 1
@stdin = 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 = alloca ptr, align 8
%3 = alloca [80 x i8], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call ptr @malloc(i32 noundef 24)
store ptr %6, ptr %2, align 8
br label %7
7: ; preds = %0, %51
store i32 0, ptr %4, align 4
br label %8
8: ; preds = %31, %7
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %9, 3
br i1 %10, label %11, label %34
11: ; preds = %8
%12 = load i32, ptr %4, align 4
%13 = add nsw i32 %12, 1
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %13)
%15 = load ptr, ptr %2, align 8
%16 = load i32, ptr %4, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds ptr, ptr %15, i64 %17
%19 = load ptr, ptr %18, align 8
%20 = icmp eq ptr %19, null
br i1 %20, label %21, label %23
21: ; preds = %11
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %30
23: ; preds = %11
%24 = load ptr, ptr %2, align 8
%25 = load i32, ptr %4, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds ptr, ptr %24, i64 %26
%28 = load ptr, ptr %27, align 8
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %28)
br label %30
30: ; preds = %23, %21
br label %31
31: ; preds = %30
%32 = load i32, ptr %4, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %4, align 4
br label %8, !llvm.loop !6
34: ; preds = %8
br label %35
35: ; preds = %45, %34
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef 3)
%37 = call i32 @scanf(ptr noundef @.str.4, ptr noundef %5)
%38 = call i32 (...) @getchar()
br label %39
39: ; preds = %35
%40 = load i32, ptr %5, align 4
%41 = icmp slt i32 %40, 0
br i1 %41, label %45, label %42
42: ; preds = %39
%43 = load i32, ptr %5, align 4
%44 = icmp sgt i32 %43, 3
br label %45
45: ; preds = %42, %39
%46 = phi i1 [ true, %39 ], [ %44, %42 ]
br i1 %46, label %35, label %47, !llvm.loop !8
47: ; preds = %45
%48 = load i32, ptr %5, align 4
%49 = icmp eq i32 %48, 0
br i1 %49, label %50, label %51
50: ; preds = %47
br label %83
51: ; preds = %47
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%53 = getelementptr inbounds [80 x i8], ptr %3, i64 0, i64 0
%54 = load i32, ptr @stdin, align 4
%55 = call i32 @fgets(ptr noundef %53, i32 noundef 80, i32 noundef %54)
%56 = getelementptr inbounds [80 x i8], ptr %3, i64 0, i64 0
%57 = call i32 @strlen(ptr noundef %56)
%58 = sub nsw i32 %57, 1
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [80 x i8], ptr %3, i64 0, i64 %59
store i8 0, ptr %60, align 1
%61 = load ptr, ptr %2, align 8
%62 = load i32, ptr %5, align 4
%63 = sub nsw i32 %62, 1
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds ptr, ptr %61, i64 %64
%66 = load ptr, ptr %65, align 8
%67 = getelementptr inbounds [80 x i8], ptr %3, i64 0, i64 0
%68 = call i32 @strlen(ptr noundef %67)
%69 = call ptr @realloc(ptr noundef %66, i32 noundef %68)
%70 = load ptr, ptr %2, align 8
%71 = load i32, ptr %5, align 4
%72 = sub nsw i32 %71, 1
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds ptr, ptr %70, i64 %73
store ptr %69, ptr %74, align 8
%75 = load ptr, ptr %2, align 8
%76 = load i32, ptr %5, align 4
%77 = sub nsw i32 %76, 1
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds ptr, ptr %75, i64 %78
%80 = load ptr, ptr %79, align 8
%81 = getelementptr inbounds [80 x i8], ptr %3, i64 0, i64 0
%82 = call i32 @strcpy(ptr noundef %80, ptr noundef %81)
br label %7
83: ; preds = %50
ret i32 0
}
declare ptr @malloc(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @getchar(...) #1
declare i32 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare ptr @realloc(ptr noundef, i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxuc5ytk3.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"[%d] \00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"(vazio)\0A\00", align 1
@.str.2 = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.3 = private unnamed_addr constant [36 x i8] c"Posicao para nova string (1 a %d): \00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.5 = private unnamed_addr constant [14 x i8] c"Nova String: \00", align 1
@stdin = 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 = alloca ptr, align 8
%3 = alloca [80 x i8], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
%6 = call ptr @malloc(i32 noundef 24)
store ptr %6, ptr %2, align 8
br label %7
7: ; preds = %52, %0
store i32 0, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %8, 3
br i1 %9, label %.lr.ph, label %35
.lr.ph: ; preds = %7
br label %10
10: ; preds = %.lr.ph, %30
%11 = load i32, ptr %4, align 4
%12 = add nsw i32 %11, 1
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %12)
%14 = load ptr, ptr %2, align 8
%15 = load i32, ptr %4, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds ptr, ptr %14, i64 %16
%18 = load ptr, ptr %17, align 8
%19 = icmp eq ptr %18, null
br i1 %19, label %20, label %22
20: ; preds = %10
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
br label %29
22: ; preds = %10
%23 = load ptr, ptr %2, align 8
%24 = load i32, ptr %4, align 4
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds ptr, ptr %23, i64 %25
%27 = load ptr, ptr %26, align 8
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %27)
br label %29
29: ; preds = %22, %20
br label %30
30: ; preds = %29
%31 = load i32, ptr %4, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %4, align 4
%33 = load i32, ptr %4, align 4
%34 = icmp slt i32 %33, 3
br i1 %34, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %30
br label %35
35: ; preds = %._crit_edge, %7
br label %36
36: ; preds = %46, %35
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef 3)
%38 = call i32 @scanf(ptr noundef @.str.4, ptr noundef %5)
%39 = call i32 (...) @getchar()
br label %40
40: ; preds = %36
%41 = load i32, ptr %5, align 4
%42 = icmp slt i32 %41, 0
br i1 %42, label %46, label %43
43: ; preds = %40
%44 = load i32, ptr %5, align 4
%45 = icmp sgt i32 %44, 3
br label %46
46: ; preds = %43, %40
%47 = phi i1 [ true, %40 ], [ %45, %43 ]
br i1 %47, label %36, label %48, !llvm.loop !8
48: ; preds = %46
%49 = load i32, ptr %5, align 4
%50 = icmp eq i32 %49, 0
br i1 %50, label %51, label %52
51: ; preds = %48
br label %84
52: ; preds = %48
%53 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%54 = getelementptr inbounds [80 x i8], ptr %3, i64 0, i64 0
%55 = load i32, ptr @stdin, align 4
%56 = call i32 @fgets(ptr noundef %54, i32 noundef 80, i32 noundef %55)
%57 = getelementptr inbounds [80 x i8], ptr %3, i64 0, i64 0
%58 = call i32 @strlen(ptr noundef %57)
%59 = sub nsw i32 %58, 1
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [80 x i8], ptr %3, i64 0, i64 %60
store i8 0, ptr %61, align 1
%62 = load ptr, ptr %2, align 8
%63 = load i32, ptr %5, align 4
%64 = sub nsw i32 %63, 1
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds ptr, ptr %62, i64 %65
%67 = load ptr, ptr %66, align 8
%68 = getelementptr inbounds [80 x i8], ptr %3, i64 0, i64 0
%69 = call i32 @strlen(ptr noundef %68)
%70 = call ptr @realloc(ptr noundef %67, i32 noundef %69)
%71 = load ptr, ptr %2, align 8
%72 = load i32, ptr %5, align 4
%73 = sub nsw i32 %72, 1
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds ptr, ptr %71, i64 %74
store ptr %70, ptr %75, align 8
%76 = load ptr, ptr %2, align 8
%77 = load i32, ptr %5, align 4
%78 = sub nsw i32 %77, 1
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds ptr, ptr %76, i64 %79
%81 = load ptr, ptr %80, align 8
%82 = getelementptr inbounds [80 x i8], ptr %3, i64 0, i64 0
%83 = call i32 @strcpy(ptr noundef %81, ptr noundef %82)
br label %7
84: ; preds = %51
ret i32 0
}
declare ptr @malloc(i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @getchar(...) #1
declare i32 @fgets(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare ptr @realloc(ptr noundef, i32 noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpqqe35_ra.c'
source_filename = "/tmp/tmpqqe35_ra.c"
target datalayout = "e-m:e-p270: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_sec() #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/tmpqqe35_ra.c"
target datalayout = "e-m:e-p270: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_sec() #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/tmp7ice17cd.c'
source_filename = "/tmp/tmp7ice17cd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"Usage: ./file-io src dest\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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr %4, align 4
%7 = icmp ne i32 %6, 3
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = call i32 @printf(ptr noundef @.str)
store i32 1, ptr %3, align 4
br label %10
10: ; preds = %8, %2
%11 = load i32, ptr %3, align 4
ret i32 %11
}
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/tmp7ice17cd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"Usage: ./file-io src dest\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
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%6 = load i32, ptr %4, align 4
%7 = icmp ne i32 %6, 3
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = call i32 @printf(ptr noundef @.str)
store i32 1, ptr %3, align 4
br label %10
10: ; preds = %8, %2
%11 = load i32, ptr %3, align 4
ret i32 %11
}
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/tmpoteco5e1.c'
source_filename = "/tmp/tmpoteco5e1.c"
target datalayout = "e-m:e-p270: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, i32, i32, i32, i32, i32 }
@.str = private unnamed_addr constant [31 x i8] c"%04d-%02d-%02dT%02d:%02d:%02dZ\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @print_ts(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca %struct.tm, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%14 = call i32 @gmtime_r(ptr noundef %4, ptr noundef %7)
%15 = getelementptr inbounds %struct.tm, ptr %7, i32 0, i32 0
%16 = load i32, ptr %15, align 4
%17 = add nsw i32 %16, 1900
store i32 %17, ptr %8, align 4
%18 = getelementptr inbounds %struct.tm, ptr %7, i32 0, i32 1
%19 = load i32, ptr %18, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %9, align 4
%21 = getelementptr inbounds %struct.tm, ptr %7, i32 0, i32 2
%22 = load i32, ptr %21, align 4
store i32 %22, ptr %10, align 4
%23 = getelementptr inbounds %struct.tm, ptr %7, i32 0, i32 3
%24 = load i32, ptr %23, align 4
store i32 %24, ptr %11, align 4
%25 = getelementptr inbounds %struct.tm, ptr %7, i32 0, i32 4
%26 = load i32, ptr %25, align 4
store i32 %26, ptr %12, align 4
%27 = getelementptr inbounds %struct.tm, ptr %7, i32 0, i32 5
%28 = load i32, ptr %27, align 4
store i32 %28, ptr %13, align 4
%29 = load ptr, ptr %5, align 8
%30 = load i32, ptr %6, align 4
%31 = load i32, ptr %8, align 4
%32 = load i32, ptr %9, align 4
%33 = load i32, ptr %10, align 4
%34 = load i32, ptr %11, align 4
%35 = load i32, ptr %12, align 4
%36 = load i32, ptr %13, align 4
%37 = call i64 @snprintf(ptr noundef %29, i32 noundef %30, ptr noundef @.str, i32 noundef %31, i32 noundef %32, i32 noundef %33, i32 noundef %34, i32 noundef %35, i32 noundef %36)
ret i64 %37
}
declare i32 @gmtime_r(ptr noundef, ptr noundef) #1
declare i64 @snprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpoteco5e1.c"
target datalayout = "e-m:e-p270: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, i32, i32, i32, i32, i32 }
@.str = private unnamed_addr constant [31 x i8] c"%04d-%02d-%02dT%02d:%02d:%02dZ\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @print_ts(i32 noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca %struct.tm, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca i32, align 4
%13 = alloca i32, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%14 = call i32 @gmtime_r(ptr noundef %4, ptr noundef %7)
%15 = getelementptr inbounds %struct.tm, ptr %7, i32 0, i32 0
%16 = load i32, ptr %15, align 4
%17 = add nsw i32 %16, 1900
store i32 %17, ptr %8, align 4
%18 = getelementptr inbounds %struct.tm, ptr %7, i32 0, i32 1
%19 = load i32, ptr %18, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %9, align 4
%21 = getelementptr inbounds %struct.tm, ptr %7, i32 0, i32 2
%22 = load i32, ptr %21, align 4
store i32 %22, ptr %10, align 4
%23 = getelementptr inbounds %struct.tm, ptr %7, i32 0, i32 3
%24 = load i32, ptr %23, align 4
store i32 %24, ptr %11, align 4
%25 = getelementptr inbounds %struct.tm, ptr %7, i32 0, i32 4
%26 = load i32, ptr %25, align 4
store i32 %26, ptr %12, align 4
%27 = getelementptr inbounds %struct.tm, ptr %7, i32 0, i32 5
%28 = load i32, ptr %27, align 4
store i32 %28, ptr %13, align 4
%29 = load ptr, ptr %5, align 8
%30 = load i32, ptr %6, align 4
%31 = load i32, ptr %8, align 4
%32 = load i32, ptr %9, align 4
%33 = load i32, ptr %10, align 4
%34 = load i32, ptr %11, align 4
%35 = load i32, ptr %12, align 4
%36 = load i32, ptr %13, align 4
%37 = call i64 @snprintf(ptr noundef %29, i32 noundef %30, ptr noundef @.str, i32 noundef %31, i32 noundef %32, i32 noundef %33, i32 noundef %34, i32 noundef %35, i32 noundef %36)
ret i64 %37
}
declare i32 @gmtime_r(ptr noundef, ptr noundef) #1
declare i64 @snprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpe_l2f5no.c'
source_filename = "/tmp/tmpe_l2f5no.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EVP_MAX_MD_SIZE = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpe_l2f5no.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EVP_MAX_MD_SIZE = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpu28sh5th.c'
source_filename = "/tmp/tmpu28sh5th.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @Angle(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%9 = load i32, ptr %7, align 4
%10 = load i32, ptr %5, align 4
%11 = sub nsw i32 %9, %10
%12 = load i32, ptr %8, align 4
%13 = load i32, ptr %6, align 4
%14 = sub nsw i32 %12, %13
%15 = call double @ArcTan(i32 noundef %11, i32 noundef %14)
%16 = fmul double %15, 5.729580e+01
%17 = fptrunc double %16 to float
ret float %17
}
declare double @ArcTan(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/tmpu28sh5th.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local float @Angle(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store i32 %0, ptr %5, align 4
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%9 = load i32, ptr %7, align 4
%10 = load i32, ptr %5, align 4
%11 = sub nsw i32 %9, %10
%12 = load i32, ptr %8, align 4
%13 = load i32, ptr %6, align 4
%14 = sub nsw i32 %12, %13
%15 = call double @ArcTan(i32 noundef %11, i32 noundef %14)
%16 = fmul double %15, 5.729580e+01
%17 = fptrunc double %16 to float
ret float %17
}
declare double @ArcTan(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/tmp89q__d4i.c'
source_filename = "/tmp/tmp89q__d4i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @extendarray(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%9 = load i32, ptr %7, align 4
%10 = load ptr, ptr %6, align 8
%11 = load i32, ptr %10, align 4
%12 = icmp sgt i32 %9, %11
br i1 %12, label %13, label %29
13: ; preds = %3
%14 = load ptr, ptr %5, align 8
%15 = load ptr, ptr %14, align 8
%16 = load i32, ptr %7, align 4
%17 = sext i32 %16 to i64
%18 = mul i64 %17, 8
%19 = trunc i64 %18 to i32
%20 = call ptr @realloc(ptr noundef %15, i32 noundef %19)
store ptr %20, ptr %8, align 8
%21 = load ptr, ptr %8, align 8
%22 = icmp eq ptr %21, null
br i1 %22, label %23, label %24
23: ; preds = %13
store i32 -1, ptr %4, align 4
br label %32
24: ; preds = %13
%25 = load ptr, ptr %8, align 8
%26 = load ptr, ptr %5, align 8
store ptr %25, ptr %26, align 8
%27 = load i32, ptr %7, align 4
%28 = load ptr, ptr %6, align 8
store i32 %27, ptr %28, align 4
br label %29
29: ; preds = %24, %3
%30 = load ptr, ptr %6, align 8
%31 = load i32, ptr %30, align 4
store i32 %31, ptr %4, align 4
br label %32
32: ; preds = %29, %23
%33 = load i32, ptr %4, align 4
ret i32 %33
}
declare ptr @realloc(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp89q__d4i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @extendarray(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i32 %2, ptr %7, align 4
%9 = load i32, ptr %7, align 4
%10 = load ptr, ptr %6, align 8
%11 = load i32, ptr %10, align 4
%12 = icmp sgt i32 %9, %11
br i1 %12, label %13, label %29
13: ; preds = %3
%14 = load ptr, ptr %5, align 8
%15 = load ptr, ptr %14, align 8
%16 = load i32, ptr %7, align 4
%17 = sext i32 %16 to i64
%18 = mul i64 %17, 8
%19 = trunc i64 %18 to i32
%20 = call ptr @realloc(ptr noundef %15, i32 noundef %19)
store ptr %20, ptr %8, align 8
%21 = load ptr, ptr %8, align 8
%22 = icmp eq ptr %21, null
br i1 %22, label %23, label %24
23: ; preds = %13
store i32 -1, ptr %4, align 4
br label %32
24: ; preds = %13
%25 = load ptr, ptr %8, align 8
%26 = load ptr, ptr %5, align 8
store ptr %25, ptr %26, align 8
%27 = load i32, ptr %7, align 4
%28 = load ptr, ptr %6, align 8
store i32 %27, ptr %28, align 4
br label %29
29: ; preds = %24, %3
%30 = load ptr, ptr %6, align 8
%31 = load i32, ptr %30, align 4
store i32 %31, ptr %4, align 4
br label %32
32: ; preds = %29, %23
%33 = load i32, ptr %4, align 4
ret i32 %33
}
declare ptr @realloc(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdtmxlm3o.c'
source_filename = "/tmp/tmpdtmxlm3o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@MAP_GROWSDOWN = 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/tmpdtmxlm3o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@MAP_GROWSDOWN = 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/tmp8_3knwli.c'
source_filename = "/tmp/tmp8_3knwli.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
%struct.dirent = type { ptr }
@.str = private unnamed_addr constant [2 x i8] c".\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"..\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"/\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @watch_dirs(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca %struct.stat, align 4
%8 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%9 = load ptr, ptr %3, align 8
%10 = call ptr @opendir(ptr noundef %9)
store ptr %10, ptr %5, align 8
%11 = load ptr, ptr %5, align 8
%12 = icmp eq ptr %11, null
br i1 %12, label %13, label %14
13: ; preds = %2
br label %76
14: ; preds = %2
%15 = load ptr, ptr %3, align 8
%16 = load i32, ptr %4, align 4
%17 = call i32 @add_watch(ptr noundef %15, i32 noundef %16)
br label %18
18: ; preds = %72, %40, %35, %28, %14
%19 = load ptr, ptr %5, align 8
%20 = call ptr @readdir(ptr noundef %19)
store ptr %20, ptr %6, align 8
%21 = icmp ne ptr %20, null
br i1 %21, label %22, label %73
22: ; preds = %18
%23 = load ptr, ptr %6, align 8
%24 = getelementptr inbounds %struct.dirent, ptr %23, i32 0, i32 0
%25 = load ptr, ptr %24, align 8
%26 = call i64 @strcmp(ptr noundef @.str, ptr noundef %25)
%27 = icmp eq i64 %26, 0
br i1 %27, label %28, label %29
28: ; preds = %22
br label %18, !llvm.loop !6
29: ; preds = %22
%30 = load ptr, ptr %6, align 8
%31 = getelementptr inbounds %struct.dirent, ptr %30, i32 0, i32 0
%32 = load ptr, ptr %31, align 8
%33 = call i64 @strcmp(ptr noundef @.str.1, ptr noundef %32)
%34 = icmp eq i64 %33, 0
br i1 %34, label %35, label %36
35: ; preds = %29
br label %18, !llvm.loop !6
36: ; preds = %29
%37 = load ptr, ptr %3, align 8
%38 = call i64 @stat(ptr noundef %37, ptr noundef %7)
%39 = icmp ne i64 %38, 0
br i1 %39, label %40, label %41
40: ; preds = %36
br label %18, !llvm.loop !6
41: ; preds = %36
%42 = getelementptr inbounds %struct.stat, ptr %7, i32 0, i32 0
%43 = load i32, ptr %42, align 4
%44 = call i64 @S_ISDIR(i32 noundef %43)
%45 = icmp ne i64 %44, 0
br i1 %45, label %46, label %72
46: ; preds = %41
%47 = load ptr, ptr %3, align 8
%48 = call i64 @strlen(ptr noundef %47)
%49 = load ptr, ptr %6, align 8
%50 = getelementptr inbounds %struct.dirent, ptr %49, i32 0, i32 0
%51 = load ptr, ptr %50, align 8
%52 = call i64 @strlen(ptr noundef %51)
%53 = add nsw i64 %48, %52
%54 = add nsw i64 %53, 2
%55 = call ptr @malloc(i64 noundef %54)
store ptr %55, ptr %8, align 8
%56 = load ptr, ptr %8, align 8
%57 = getelementptr inbounds i8, ptr %56, i64 0
store i8 0, ptr %57, align 1
%58 = load ptr, ptr %8, align 8
%59 = load ptr, ptr %3, align 8
%60 = call i32 @strcat(ptr noundef %58, ptr noundef %59)
%61 = load ptr, ptr %8, align 8
%62 = call i32 @strcat(ptr noundef %61, ptr noundef @.str.2)
%63 = load ptr, ptr %8, align 8
%64 = load ptr, ptr %6, align 8
%65 = getelementptr inbounds %struct.dirent, ptr %64, i32 0, i32 0
%66 = load ptr, ptr %65, align 8
%67 = call i32 @strcat(ptr noundef %63, ptr noundef %66)
%68 = load ptr, ptr %8, align 8
%69 = load i32, ptr %4, align 4
call void @watch_dirs(ptr noundef %68, i32 noundef %69)
%70 = load ptr, ptr %8, align 8
%71 = call i32 @free(ptr noundef %70)
br label %72
72: ; preds = %46, %41
br label %18, !llvm.loop !6
73: ; preds = %18
%74 = load ptr, ptr %5, align 8
%75 = call i32 @closedir(ptr noundef %74)
br label %76
76: ; preds = %73, %13
ret void
}
declare ptr @opendir(ptr noundef) #1
declare i32 @add_watch(ptr noundef, i32 noundef) #1
declare ptr @readdir(ptr noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i64 @stat(ptr noundef, ptr noundef) #1
declare i64 @S_ISDIR(i32 noundef) #1
declare ptr @malloc(i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @closedir(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp8_3knwli.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
%struct.dirent = type { ptr }
@.str = private unnamed_addr constant [2 x i8] c".\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"..\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"/\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @watch_dirs(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca %struct.stat, align 4
%8 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%9 = load ptr, ptr %3, align 8
%10 = call ptr @opendir(ptr noundef %9)
store ptr %10, ptr %5, align 8
%11 = load ptr, ptr %5, align 8
%12 = icmp eq ptr %11, null
br i1 %12, label %13, label %14
13: ; preds = %2
br label %78
14: ; preds = %2
%15 = load ptr, ptr %3, align 8
%16 = load i32, ptr %4, align 4
%17 = call i32 @add_watch(ptr noundef %15, i32 noundef %16)
%18 = load ptr, ptr %5, align 8
%19 = call ptr @readdir(ptr noundef %18)
store ptr %19, ptr %6, align 8
%20 = icmp ne ptr %19, null
br i1 %20, label %.lr.ph, label %75
.lr.ph: ; preds = %14
br label %21
21: ; preds = %.lr.ph, %.backedge
%22 = load ptr, ptr %6, align 8
%23 = getelementptr inbounds %struct.dirent, ptr %22, i32 0, i32 0
%24 = load ptr, ptr %23, align 8
%25 = call i64 @strcmp(ptr noundef @.str, ptr noundef %24)
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %31
27: ; preds = %21
br label %.backedge
.backedge: ; preds = %27, %37, %42, %74
%28 = load ptr, ptr %5, align 8
%29 = call ptr @readdir(ptr noundef %28)
store ptr %29, ptr %6, align 8
%30 = icmp ne ptr %29, null
br i1 %30, label %21, label %._crit_edge, !llvm.loop !6
31: ; preds = %21
%32 = load ptr, ptr %6, align 8
%33 = getelementptr inbounds %struct.dirent, ptr %32, i32 0, i32 0
%34 = load ptr, ptr %33, align 8
%35 = call i64 @strcmp(ptr noundef @.str.1, ptr noundef %34)
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %38
37: ; preds = %31
br label %.backedge
38: ; preds = %31
%39 = load ptr, ptr %3, align 8
%40 = call i64 @stat(ptr noundef %39, ptr noundef %7)
%41 = icmp ne i64 %40, 0
br i1 %41, label %42, label %43
42: ; preds = %38
br label %.backedge
43: ; preds = %38
%44 = getelementptr inbounds %struct.stat, ptr %7, i32 0, i32 0
%45 = load i32, ptr %44, align 4
%46 = call i64 @S_ISDIR(i32 noundef %45)
%47 = icmp ne i64 %46, 0
br i1 %47, label %48, label %74
48: ; preds = %43
%49 = load ptr, ptr %3, align 8
%50 = call i64 @strlen(ptr noundef %49)
%51 = load ptr, ptr %6, align 8
%52 = getelementptr inbounds %struct.dirent, ptr %51, i32 0, i32 0
%53 = load ptr, ptr %52, align 8
%54 = call i64 @strlen(ptr noundef %53)
%55 = add nsw i64 %50, %54
%56 = add nsw i64 %55, 2
%57 = call ptr @malloc(i64 noundef %56)
store ptr %57, ptr %8, align 8
%58 = load ptr, ptr %8, align 8
%59 = getelementptr inbounds i8, ptr %58, i64 0
store i8 0, ptr %59, align 1
%60 = load ptr, ptr %8, align 8
%61 = load ptr, ptr %3, align 8
%62 = call i32 @strcat(ptr noundef %60, ptr noundef %61)
%63 = load ptr, ptr %8, align 8
%64 = call i32 @strcat(ptr noundef %63, ptr noundef @.str.2)
%65 = load ptr, ptr %8, align 8
%66 = load ptr, ptr %6, align 8
%67 = getelementptr inbounds %struct.dirent, ptr %66, i32 0, i32 0
%68 = load ptr, ptr %67, align 8
%69 = call i32 @strcat(ptr noundef %65, ptr noundef %68)
%70 = load ptr, ptr %8, align 8
%71 = load i32, ptr %4, align 4
call void @watch_dirs(ptr noundef %70, i32 noundef %71)
%72 = load ptr, ptr %8, align 8
%73 = call i32 @free(ptr noundef %72)
br label %74
74: ; preds = %48, %43
br label %.backedge
._crit_edge: ; preds = %.backedge
br label %75
75: ; preds = %._crit_edge, %14
%76 = load ptr, ptr %5, align 8
%77 = call i32 @closedir(ptr noundef %76)
br label %78
78: ; preds = %75, %13
ret void
}
declare ptr @opendir(ptr noundef) #1
declare i32 @add_watch(ptr noundef, i32 noundef) #1
declare ptr @readdir(ptr noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i64 @stat(ptr noundef, ptr noundef) #1
declare i64 @S_ISDIR(i32 noundef) #1
declare ptr @malloc(i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @strcat(ptr noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @closedir(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp80nga1zq.c'
source_filename = "/tmp/tmp80nga1zq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@AllocNone = dso_local global i32 0, align 4
@CWBackPixel = dso_local global i32 0, align 4
@CWBorderPixel = dso_local global i32 0, align 4
@CWColormap = dso_local global i32 0, align 4
@False = dso_local global i32 0, align 4
@InputOutput = dso_local global i32 0, align 4
@KeyPressMask = dso_local global i32 0, align 4
@TrueColor = dso_local global i32 0, align 4
@XA_STRING = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp80nga1zq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@AllocNone = dso_local global i32 0, align 4
@CWBackPixel = dso_local global i32 0, align 4
@CWBorderPixel = dso_local global i32 0, align 4
@CWColormap = dso_local global i32 0, align 4
@False = dso_local global i32 0, align 4
@InputOutput = dso_local global i32 0, align 4
@KeyPressMask = dso_local global i32 0, align 4
@TrueColor = dso_local global i32 0, align 4
@XA_STRING = dso_local global i32 0, align 4
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpvv3cta9i.c'
source_filename = "/tmp/tmpvv3cta9i.c"
target datalayout = "e-m:e-p270: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/tmpvv3cta9i.c"
target datalayout = "e-m:e-p270: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/tmpysqa9t7m.c'
source_filename = "/tmp/tmpysqa9t7m.c"
target datalayout = "e-m:e-p270: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.alist = private unnamed_addr constant [8 x i32] [i32 10, i32 7, i32 4, i32 0, i32 1, i32 -1, i32 3, i32 4], align 16
@.str = private unnamed_addr constant [73 x i8] c"\0A After applying the quickSort algortihm on the array, the result is : \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [8 x i32], align 16
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.alist, i64 32, i1 false)
%3 = getelementptr inbounds [8 x i32], ptr %2, i64 0, i64 0
%4 = call i32 @quickSortWrapper(ptr noundef %3, i32 noundef 8)
%5 = call i32 @printf(ptr noundef @.str)
%6 = getelementptr inbounds [8 x i32], ptr %2, i64 0, i64 0
%7 = call i32 @printarray(ptr noundef %6, i32 noundef 0, i32 noundef 7)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @quickSortWrapper(ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef) #2
declare i32 @printarray(ptr noundef, i32 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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpysqa9t7m.c"
target datalayout = "e-m:e-p270: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.alist = private unnamed_addr constant [8 x i32] [i32 10, i32 7, i32 4, i32 0, i32 1, i32 -1, i32 3, i32 4], align 16
@.str = private unnamed_addr constant [73 x i8] c"\0A After applying the quickSort algortihm on the array, the result is : \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [8 x i32], align 16
store i32 0, ptr %1, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.main.alist, i64 32, i1 false)
%3 = getelementptr inbounds [8 x i32], ptr %2, i64 0, i64 0
%4 = call i32 @quickSortWrapper(ptr noundef %3, i32 noundef 8)
%5 = call i32 @printf(ptr noundef @.str)
%6 = getelementptr inbounds [8 x i32], ptr %2, i64 0, i64 0
%7 = call i32 @printarray(ptr noundef %6, i32 noundef 0, i32 noundef 7)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1
declare i32 @quickSortWrapper(ptr noundef, i32 noundef) #2
declare i32 @printf(ptr noundef) #2
declare i32 @printarray(ptr noundef, i32 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"}
|
; ModuleID = '/tmp/tmpc_nrea8i.c'
source_filename = "/tmp/tmpc_nrea8i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [26 x i8] c"#define SIZEOF_CHAR_P %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"#define SIZEOF_INT %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"#define SIZEOF_LONG %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [29 x i8] c"#define SIZEOF_LONG_LONG %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [25 x i8] c"#define SIZEOF_SHORT %d\0A\00", align 1
@.str.5 = private unnamed_addr constant [26 x i8] c"#define SIZEOF_VOID_P %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
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 = load ptr, ptr %5, align 8
%8 = call i32 @printf(ptr noundef @.str, i32 noundef 8)
%9 = call i32 @printf(ptr noundef @.str.1, i32 noundef 4)
%10 = call i32 @printf(ptr noundef @.str.2, i32 noundef 8)
%11 = call i32 @printf(ptr noundef @.str.3, i32 noundef 8)
%12 = call i32 @printf(ptr noundef @.str.4, i32 noundef 2)
%13 = call i32 @printf(ptr noundef @.str.5, i32 noundef 8)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpc_nrea8i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [26 x i8] c"#define SIZEOF_CHAR_P %d\0A\00", align 1
@.str.1 = private unnamed_addr constant [23 x i8] c"#define SIZEOF_INT %d\0A\00", align 1
@.str.2 = private unnamed_addr constant [24 x i8] c"#define SIZEOF_LONG %d\0A\00", align 1
@.str.3 = private unnamed_addr constant [29 x i8] c"#define SIZEOF_LONG_LONG %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [25 x i8] c"#define SIZEOF_SHORT %d\0A\00", align 1
@.str.5 = private unnamed_addr constant [26 x i8] c"#define SIZEOF_VOID_P %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
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 = load ptr, ptr %5, align 8
%8 = call i32 @printf(ptr noundef @.str, i32 noundef 8)
%9 = call i32 @printf(ptr noundef @.str.1, i32 noundef 4)
%10 = call i32 @printf(ptr noundef @.str.2, i32 noundef 8)
%11 = call i32 @printf(ptr noundef @.str.3, i32 noundef 8)
%12 = call i32 @printf(ptr noundef @.str.4, i32 noundef 2)
%13 = call i32 @printf(ptr noundef @.str.5, i32 noundef 8)
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpukyyg7jp.c'
source_filename = "/tmp/tmpukyyg7jp.c"
target datalayout = "e-m:e-p270: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/tmpukyyg7jp.c"
target datalayout = "e-m:e-p270: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/tmps7rc3g_5.c'
source_filename = "/tmp/tmps7rc3g_5.c"
target datalayout = "e-m:e-p270: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/tmps7rc3g_5.c"
target datalayout = "e-m:e-p270: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/tmpdwue93qs.c'
source_filename = "/tmp/tmpdwue93qs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @insert_sort(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = icmp sgt i32 %5, 0
br i1 %6, label %7, label %14
7: ; preds = %2
%8 = load ptr, ptr %3, align 8
%9 = load i32, ptr %4, align 4
%10 = sub nsw i32 %9, 1
call void @insert_sort(ptr noundef %8, i32 noundef %10)
%11 = load ptr, ptr %3, align 8
%12 = load i32, ptr %4, align 4
%13 = call i32 @insert_sort0(ptr noundef %11, i32 noundef %12)
br label %14
14: ; preds = %7, %2
ret void
}
declare i32 @insert_sort0(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/tmpdwue93qs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @insert_sort(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = icmp sgt i32 %5, 0
br i1 %6, label %7, label %14
7: ; preds = %2
%8 = load ptr, ptr %3, align 8
%9 = load i32, ptr %4, align 4
%10 = sub nsw i32 %9, 1
call void @insert_sort(ptr noundef %8, i32 noundef %10)
%11 = load ptr, ptr %3, align 8
%12 = load i32, ptr %4, align 4
%13 = call i32 @insert_sort0(ptr noundef %11, i32 noundef %12)
br label %14
14: ; preds = %7, %2
ret void
}
declare i32 @insert_sort0(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/tmp10eenvg4.c'
source_filename = "/tmp/tmp10eenvg4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [53 x i8] c"NOT IMPLEMENTED:pa_context_set_source_mute_by_index\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @pa_context_set_source_mute_by_index() #0 {
%1 = alloca i32, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = load i32, ptr %1, align 4
ret i32 %3
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp10eenvg4.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [53 x i8] c"NOT IMPLEMENTED:pa_context_set_source_mute_by_index\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @pa_context_set_source_mute_by_index() #0 {
%1 = alloca i32, align 4
%2 = call i32 @printf(ptr noundef @.str)
%3 = load i32, ptr %1, align 4
ret i32 %3
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpffzaduah.c'
source_filename = "/tmp/tmpffzaduah.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dupstr(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 i64 @strlen(ptr noundef %4)
%6 = add nsw i64 1, %5
%7 = call ptr @smalloc(i64 noundef %6)
store ptr %7, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = load ptr, ptr %2, align 8
%10 = call i32 @strcpy(ptr noundef %8, ptr noundef %9)
%11 = load ptr, ptr %3, align 8
ret ptr %11
}
declare ptr @smalloc(i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpffzaduah.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dupstr(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 i64 @strlen(ptr noundef %4)
%6 = add nsw i64 1, %5
%7 = call ptr @smalloc(i64 noundef %6)
store ptr %7, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = load ptr, ptr %2, align 8
%10 = call i32 @strcpy(ptr noundef %8, ptr noundef %9)
%11 = load ptr, ptr %3, align 8
ret ptr %11
}
declare ptr @smalloc(i64 noundef) #1
declare i64 @strlen(ptr noundef) #1
declare i32 @strcpy(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2s_0el4g.c'
source_filename = "/tmp/tmp2s_0el4g.c"
target datalayout = "e-m:e-p270: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 i32 0, align 4
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @__set_errno(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp eq i32 %3, -1
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = load i32, ptr @EINTR, align 4
store i32 %6, ptr %2, align 4
br label %7
7: ; preds = %5, %1
%8 = load i32, ptr %2, align 4
store i32 %8, ptr @errno, align 4
%9 = load i32, ptr %2, align 4
ret i32 %9
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2s_0el4g.c"
target datalayout = "e-m:e-p270: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 i32 0, align 4
@errno = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @__set_errno(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp eq i32 %3, -1
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = load i32, ptr @EINTR, align 4
store i32 %6, ptr %2, align 4
br label %7
7: ; preds = %5, %1
%8 = load i32, ptr %2, align 4
store i32 %8, ptr @errno, align 4
%9 = load i32, ptr %2, align 4
ret i32 %9
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpnydxyq7o.c'
source_filename = "/tmp/tmpnydxyq7o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnydxyq7o.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpwa9jpn2b.c'
source_filename = "/tmp/tmpwa9jpn2b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sb_match(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @any_match(ptr noundef %5, ptr noundef %6, i8 noundef signext 91, i8 noundef signext 93)
ret i32 %7
}
declare i32 @any_match(ptr noundef, ptr noundef, i8 noundef signext, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpwa9jpn2b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sb_match(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = load ptr, ptr %4, align 8
%7 = call i32 @any_match(ptr noundef %5, ptr noundef %6, i8 noundef signext 91, i8 noundef signext 93)
ret i32 %7
}
declare i32 @any_match(ptr noundef, ptr noundef, i8 noundef signext, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzcgldi_m.c'
source_filename = "/tmp/tmpzcgldi_m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzcgldi_m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpsobx_0sp.c'
source_filename = "/tmp/tmpsobx_0sp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @PL_is_tv_on() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i64, align 8
%4 = call i32 @read_whitney(i32 noundef 393240, ptr noundef %3)
store i32 %4, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = icmp ne i32 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %0
store i32 0, ptr %1, align 4
br label %14
8: ; preds = %0
%9 = load i64, ptr %3, align 8
%10 = and i64 %9, 2147483648
%11 = icmp ne i64 %10, 0
%12 = zext i1 %11 to i64
%13 = select i1 %11, i32 1, i32 0
store i32 %13, ptr %1, align 4
br label %14
14: ; preds = %8, %7
%15 = load i32, ptr %1, align 4
ret i32 %15
}
declare i32 @read_whitney(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/tmpsobx_0sp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @PL_is_tv_on() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i64, align 8
%4 = call i32 @read_whitney(i32 noundef 393240, ptr noundef %3)
store i32 %4, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = icmp ne i32 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %0
store i32 0, ptr %1, align 4
br label %14
8: ; preds = %0
%9 = load i64, ptr %3, align 8
%10 = and i64 %9, 2147483648
%11 = icmp ne i64 %10, 0
%12 = zext i1 %11 to i64
%13 = select i1 %11, i32 1, i32 0
store i32 %13, ptr %1, align 4
br label %14
14: ; preds = %8, %7
%15 = load i32, ptr %1, align 4
ret i32 %15
}
declare i32 @read_whitney(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/tmpj0mf2r8n.c'
source_filename = "/tmp/tmpj0mf2r8n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [44 x i8] c"[USER-ERROR] create generic netlink failed\0A\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"TACO_KERNEL\00", align 1
@.str.2 = private unnamed_addr constant [44 x i8] c"[USER-ERROR] query kernel family id 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 i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = call i32 (...) @_createGenericNetlinkSocket()
store i32 %8, ptr %6, align 4
%9 = load i32, ptr %6, align 4
%10 = icmp slt i32 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %2
%12 = call i32 @printf(ptr noundef @.str)
store i32 -1, ptr %3, align 4
br label %28
13: ; preds = %2
%14 = load i32, ptr %6, align 4
%15 = call i32 @_queryKernelFamilyId(i32 noundef %14, ptr noundef @.str.1)
store i32 %15, ptr %7, align 4
%16 = load i32, ptr %7, align 4
%17 = icmp slt i32 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %13
%19 = call i32 @printf(ptr noundef @.str.2)
store i32 -1, ptr %3, align 4
br label %28
20: ; preds = %13
%21 = load i32, ptr %6, align 4
%22 = load i32, ptr %7, align 4
%23 = call i32 @_sendDataToTacoKernel(i32 noundef %21, i32 noundef %22)
%24 = load i32, ptr %6, align 4
%25 = call i32 @_recvAndParseDataFromTacoKernel(i32 noundef %24)
%26 = load i32, ptr %6, align 4
%27 = call i32 @close(i32 noundef %26)
store i32 0, ptr %3, align 4
br label %28
28: ; preds = %20, %18, %11
%29 = load i32, ptr %3, align 4
ret i32 %29
}
declare i32 @_createGenericNetlinkSocket(...) #1
declare i32 @printf(ptr noundef) #1
declare i32 @_queryKernelFamilyId(i32 noundef, ptr noundef) #1
declare i32 @_sendDataToTacoKernel(i32 noundef, i32 noundef) #1
declare i32 @_recvAndParseDataFromTacoKernel(i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpj0mf2r8n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [44 x i8] c"[USER-ERROR] create generic netlink failed\0A\00", align 1
@.str.1 = private unnamed_addr constant [12 x i8] c"TACO_KERNEL\00", align 1
@.str.2 = private unnamed_addr constant [44 x i8] c"[USER-ERROR] query kernel family id 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 i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = call i32 (...) @_createGenericNetlinkSocket()
store i32 %8, ptr %6, align 4
%9 = load i32, ptr %6, align 4
%10 = icmp slt i32 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %2
%12 = call i32 @printf(ptr noundef @.str)
store i32 -1, ptr %3, align 4
br label %28
13: ; preds = %2
%14 = load i32, ptr %6, align 4
%15 = call i32 @_queryKernelFamilyId(i32 noundef %14, ptr noundef @.str.1)
store i32 %15, ptr %7, align 4
%16 = load i32, ptr %7, align 4
%17 = icmp slt i32 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %13
%19 = call i32 @printf(ptr noundef @.str.2)
store i32 -1, ptr %3, align 4
br label %28
20: ; preds = %13
%21 = load i32, ptr %6, align 4
%22 = load i32, ptr %7, align 4
%23 = call i32 @_sendDataToTacoKernel(i32 noundef %21, i32 noundef %22)
%24 = load i32, ptr %6, align 4
%25 = call i32 @_recvAndParseDataFromTacoKernel(i32 noundef %24)
%26 = load i32, ptr %6, align 4
%27 = call i32 @close(i32 noundef %26)
store i32 0, ptr %3, align 4
br label %28
28: ; preds = %20, %18, %11
%29 = load i32, ptr %3, align 4
ret i32 %29
}
declare i32 @_createGenericNetlinkSocket(...) #1
declare i32 @printf(ptr noundef) #1
declare i32 @_queryKernelFamilyId(i32 noundef, ptr noundef) #1
declare i32 @_sendDataToTacoKernel(i32 noundef, i32 noundef) #1
declare i32 @_recvAndParseDataFromTacoKernel(i32 noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpfr6qw9vt.c'
source_filename = "/tmp/tmpfr6qw9vt.c"
target datalayout = "e-m:e-p270: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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @listen(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = call i32 @__uportsys_listen(i32 noundef %5, i32 noundef %6, ptr noundef @errno)
ret i32 %7
}
declare i32 @__uportsys_listen(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfr6qw9vt.c"
target datalayout = "e-m:e-p270: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
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @listen(i32 noundef %0, i32 noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store i32 %1, ptr %4, align 4
%5 = load i32, ptr %3, align 4
%6 = load i32, ptr %4, align 4
%7 = call i32 @__uportsys_listen(i32 noundef %5, i32 noundef %6, ptr noundef @errno)
ret i32 %7
}
declare i32 @__uportsys_listen(i32 noundef, i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5zyujzvj.c'
source_filename = "/tmp/tmp5zyujzvj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [10 x i8] c"digits = \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [31 x i8] c", whitespace = %d, other = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca [10 x i32], align 16
store i32 0, ptr %1, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %3, align 4
br label %7
7: ; preds = %14, %0
%8 = load i32, ptr %3, align 4
%9 = icmp slt i32 %8, 10
br i1 %9, label %10, label %17
10: ; preds = %7
%11 = load i32, ptr %3, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %12
store i32 0, ptr %13, align 4
br label %14
14: ; preds = %10
%15 = load i32, ptr %3, align 4
%16 = add nsw i32 %15, 1
store i32 %16, ptr %3, align 4
br label %7, !llvm.loop !6
17: ; preds = %7
br label %18
18: ; preds = %37, %17
%19 = call i32 (...) @getchar()
store i32 %19, ptr %2, align 4
%20 = load i32, ptr @EOF, align 4
%21 = icmp ne i32 %19, %20
br i1 %21, label %22, label %38
22: ; preds = %18
%23 = load i32, ptr %2, align 4
switch i32 %23, label %34 [
i32 48, label %24
i32 49, label %24
i32 50, label %24
i32 51, label %24
i32 52, label %24
i32 53, label %24
i32 54, label %24
i32 55, label %24
i32 56, label %24
i32 57, label %24
i32 32, label %31
i32 10, label %31
i32 9, label %31
]
24: ; preds = %22, %22, %22, %22, %22, %22, %22, %22, %22, %22
%25 = load i32, ptr %2, align 4
%26 = sub nsw i32 %25, 48
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %27
%29 = load i32, ptr %28, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %28, align 4
br label %37
31: ; preds = %22, %22, %22
%32 = load i32, ptr %4, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %4, align 4
br label %37
34: ; preds = %22
%35 = load i32, ptr %5, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %5, align 4
br label %37
37: ; preds = %34, %31, %24
br label %18, !llvm.loop !8
38: ; preds = %18
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %3, align 4
br label %40
40: ; preds = %49, %38
%41 = load i32, ptr %3, align 4
%42 = icmp slt i32 %41, 10
br i1 %42, label %43, label %52
43: ; preds = %40
%44 = load i32, ptr %3, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %45
%47 = load i32, ptr %46, align 4
%48 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %47)
br label %49
49: ; preds = %43
%50 = load i32, ptr %3, align 4
%51 = add nsw i32 %50, 1
store i32 %51, ptr %3, align 4
br label %40, !llvm.loop !9
52: ; preds = %40
%53 = load i32, ptr %4, align 4
%54 = load i32, ptr %5, align 4
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %53, i32 noundef %54)
ret i32 0
}
declare i32 @getchar(...) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5zyujzvj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [10 x i8] c"digits = \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [31 x i8] c", whitespace = %d, other = %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca [10 x i32], align 16
store i32 0, ptr %1, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = icmp slt i32 %7, 10
br i1 %8, label %.lr.ph, label %18
.lr.ph: ; preds = %0
br label %9
9: ; preds = %.lr.ph, %13
%10 = load i32, ptr %3, align 4
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %11
store i32 0, ptr %12, align 4
br label %13
13: ; preds = %9
%14 = load i32, ptr %3, align 4
%15 = add nsw i32 %14, 1
store i32 %15, ptr %3, align 4
%16 = load i32, ptr %3, align 4
%17 = icmp slt i32 %16, 10
br i1 %17, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %13
br label %18
18: ; preds = %._crit_edge, %0
%19 = call i32 (...) @getchar()
store i32 %19, ptr %2, align 4
%20 = load i32, ptr @EOF, align 4
%21 = icmp ne i32 %19, %20
br i1 %21, label %.lr.ph2, label %41
.lr.ph2: ; preds = %18
br label %22
22: ; preds = %.lr.ph2, %37
%23 = load i32, ptr %2, align 4
switch i32 %23, label %34 [
i32 48, label %24
i32 49, label %24
i32 50, label %24
i32 51, label %24
i32 52, label %24
i32 53, label %24
i32 54, label %24
i32 55, label %24
i32 56, label %24
i32 57, label %24
i32 32, label %31
i32 10, label %31
i32 9, label %31
]
24: ; preds = %22, %22, %22, %22, %22, %22, %22, %22, %22, %22
%25 = load i32, ptr %2, align 4
%26 = sub nsw i32 %25, 48
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %27
%29 = load i32, ptr %28, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %28, align 4
br label %37
31: ; preds = %22, %22, %22
%32 = load i32, ptr %4, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %4, align 4
br label %37
34: ; preds = %22
%35 = load i32, ptr %5, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %5, align 4
br label %37
37: ; preds = %34, %31, %24
%38 = call i32 (...) @getchar()
store i32 %38, ptr %2, align 4
%39 = load i32, ptr @EOF, align 4
%40 = icmp ne i32 %38, %39
br i1 %40, label %22, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %37
br label %41
41: ; preds = %._crit_edge3, %18
%42 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 0, ptr %3, align 4
%43 = load i32, ptr %3, align 4
%44 = icmp slt i32 %43, 10
br i1 %44, label %.lr.ph5, label %56
.lr.ph5: ; preds = %41
br label %45
45: ; preds = %.lr.ph5, %51
%46 = load i32, ptr %3, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [10 x i32], ptr %6, i64 0, i64 %47
%49 = load i32, ptr %48, align 4
%50 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %49)
br label %51
51: ; preds = %45
%52 = load i32, ptr %3, align 4
%53 = add nsw i32 %52, 1
store i32 %53, ptr %3, align 4
%54 = load i32, ptr %3, align 4
%55 = icmp slt i32 %54, 10
br i1 %55, label %45, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %51
br label %56
56: ; preds = %._crit_edge6, %41
%57 = load i32, ptr %4, align 4
%58 = load i32, ptr %5, align 4
%59 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %57, i32 noundef %58)
ret i32 0
}
declare i32 @getchar(...) #1
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpmjfqzl6s.c'
source_filename = "/tmp/tmpmjfqzl6s.c"
target datalayout = "e-m:e-p270: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/tmpmjfqzl6s.c"
target datalayout = "e-m:e-p270: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/tmp9_itt84n.c'
source_filename = "/tmp/tmp9_itt84n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"log.txt\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"\0A\00", align 1
@.str.3 = private unnamed_addr constant [22 x i8] c"%i\09%s\09%s\09%s\09%i\09%i\09%f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @fw_log(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5, double noundef %6) #0 {
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca double, align 8
%15 = alloca ptr, align 8
store i32 %0, ptr %8, align 4
store ptr %1, ptr %9, align 8
store ptr %2, ptr %10, align 8
store ptr %3, ptr %11, align 8
store i32 %4, ptr %12, align 4
store i32 %5, ptr %13, align 4
store double %6, ptr %14, align 8
%16 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %16, ptr %15, align 8
%17 = load ptr, ptr %15, align 8
%18 = icmp ne ptr %17, null
br i1 %18, label %19, label %33
19: ; preds = %7
%20 = load ptr, ptr %9, align 8
%21 = call i32 @strtok(ptr noundef %20, ptr noundef @.str.2)
%22 = load ptr, ptr %15, align 8
%23 = load i32, ptr %8, align 4
%24 = load ptr, ptr %9, align 8
%25 = load ptr, ptr %10, align 8
%26 = load ptr, ptr %11, align 8
%27 = load i32, ptr %12, align 4
%28 = load i32, ptr %13, align 4
%29 = load double, ptr %14, align 8
%30 = call i32 @fprintf(ptr noundef %22, ptr noundef @.str.3, i32 noundef %23, ptr noundef %24, ptr noundef %25, ptr noundef %26, i32 noundef %27, i32 noundef %28, double noundef %29)
%31 = load ptr, ptr %15, align 8
%32 = call i32 @fclose(ptr noundef %31)
br label %33
33: ; preds = %19, %7
ret void
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @strtok(ptr noundef, ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, double 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/tmp9_itt84n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [8 x i8] c"log.txt\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"\0A\00", align 1
@.str.3 = private unnamed_addr constant [22 x i8] c"%i\09%s\09%s\09%s\09%i\09%i\09%f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @fw_log(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5, double noundef %6) #0 {
%8 = alloca i32, align 4
%9 = alloca ptr, align 8
%10 = alloca ptr, align 8
%11 = alloca ptr, align 8
%12 = alloca i32, align 4
%13 = alloca i32, align 4
%14 = alloca double, align 8
%15 = alloca ptr, align 8
store i32 %0, ptr %8, align 4
store ptr %1, ptr %9, align 8
store ptr %2, ptr %10, align 8
store ptr %3, ptr %11, align 8
store i32 %4, ptr %12, align 4
store i32 %5, ptr %13, align 4
store double %6, ptr %14, align 8
%16 = call ptr @fopen(ptr noundef @.str, ptr noundef @.str.1)
store ptr %16, ptr %15, align 8
%17 = load ptr, ptr %15, align 8
%18 = icmp ne ptr %17, null
br i1 %18, label %19, label %33
19: ; preds = %7
%20 = load ptr, ptr %9, align 8
%21 = call i32 @strtok(ptr noundef %20, ptr noundef @.str.2)
%22 = load ptr, ptr %15, align 8
%23 = load i32, ptr %8, align 4
%24 = load ptr, ptr %9, align 8
%25 = load ptr, ptr %10, align 8
%26 = load ptr, ptr %11, align 8
%27 = load i32, ptr %12, align 4
%28 = load i32, ptr %13, align 4
%29 = load double, ptr %14, align 8
%30 = call i32 @fprintf(ptr noundef %22, ptr noundef @.str.3, i32 noundef %23, ptr noundef %24, ptr noundef %25, ptr noundef %26, i32 noundef %27, i32 noundef %28, double noundef %29)
%31 = load ptr, ptr %15, align 8
%32 = call i32 @fclose(ptr noundef %31)
br label %33
33: ; preds = %19, %7
ret void
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @strtok(ptr noundef, ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, double 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/tmp7jgbjnv6.c'
source_filename = "/tmp/tmp7jgbjnv6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\22\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"\\u%04x\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @quote(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %5, ptr noundef @.str)
br label %7
7: ; preds = %47, %2
%8 = load ptr, ptr %4, align 8
%9 = load i8, ptr %8, align 1
%10 = sext i8 %9 to i32
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %50
12: ; preds = %7
%13 = load ptr, ptr %4, align 8
%14 = load i8, ptr %13, align 1
%15 = sext i8 %14 to i32
%16 = icmp eq i32 %15, 92
br i1 %16, label %22, label %17
17: ; preds = %12
%18 = load ptr, ptr %4, align 8
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = icmp eq i32 %20, 34
br i1 %21, label %22, label %29
22: ; preds = %17, %12
%23 = load ptr, ptr %3, align 8
%24 = call i32 @fputc(i8 noundef signext 92, ptr noundef %23)
%25 = load ptr, ptr %4, align 8
%26 = load i8, ptr %25, align 1
%27 = load ptr, ptr %3, align 8
%28 = call i32 @fputc(i8 noundef signext %26, ptr noundef %27)
br label %46
29: ; preds = %17
%30 = load ptr, ptr %4, align 8
%31 = load i8, ptr %30, align 1
%32 = sext i8 %31 to i32
%33 = icmp slt i32 %32, 32
br i1 %33, label %34, label %40
34: ; preds = %29
%35 = load ptr, ptr %3, align 8
%36 = load ptr, ptr %4, align 8
%37 = load i8, ptr %36, align 1
%38 = sext i8 %37 to i32
%39 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %35, ptr noundef @.str.1, i32 noundef %38)
br label %45
40: ; preds = %29
%41 = load ptr, ptr %4, align 8
%42 = load i8, ptr %41, align 1
%43 = load ptr, ptr %3, align 8
%44 = call i32 @fputc(i8 noundef signext %42, ptr noundef %43)
br label %45
45: ; preds = %40, %34
br label %46
46: ; preds = %45, %22
br label %47
47: ; preds = %46
%48 = load ptr, ptr %4, align 8
%49 = getelementptr inbounds i8, ptr %48, i32 1
store ptr %49, ptr %4, align 8
br label %7, !llvm.loop !6
50: ; preds = %7
%51 = load ptr, ptr %3, align 8
%52 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %51, ptr noundef @.str)
ret void
}
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1
declare i32 @fputc(i8 noundef signext, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp7jgbjnv6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\22\00", align 1
@.str.1 = private unnamed_addr constant [7 x i8] c"\\u%04x\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @quote(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
store ptr %1, ptr %4, align 8
%5 = load ptr, ptr %3, align 8
%6 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %5, ptr noundef @.str)
%7 = load ptr, ptr %4, align 8
%8 = load i8, ptr %7, align 1
%9 = sext i8 %8 to i32
%10 = icmp ne i32 %9, 0
br i1 %10, label %.lr.ph, label %53
.lr.ph: ; preds = %2
br label %11
11: ; preds = %.lr.ph, %46
%12 = load ptr, ptr %4, align 8
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = icmp eq i32 %14, 92
br i1 %15, label %21, label %16
16: ; preds = %11
%17 = load ptr, ptr %4, align 8
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = icmp eq i32 %19, 34
br i1 %20, label %21, label %28
21: ; preds = %16, %11
%22 = load ptr, ptr %3, align 8
%23 = call i32 @fputc(i8 noundef signext 92, ptr noundef %22)
%24 = load ptr, ptr %4, align 8
%25 = load i8, ptr %24, align 1
%26 = load ptr, ptr %3, align 8
%27 = call i32 @fputc(i8 noundef signext %25, ptr noundef %26)
br label %45
28: ; preds = %16
%29 = load ptr, ptr %4, align 8
%30 = load i8, ptr %29, align 1
%31 = sext i8 %30 to i32
%32 = icmp slt i32 %31, 32
br i1 %32, label %33, label %39
33: ; preds = %28
%34 = load ptr, ptr %3, align 8
%35 = load ptr, ptr %4, align 8
%36 = load i8, ptr %35, align 1
%37 = sext i8 %36 to i32
%38 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef @.str.1, i32 noundef %37)
br label %44
39: ; preds = %28
%40 = load ptr, ptr %4, align 8
%41 = load i8, ptr %40, align 1
%42 = load ptr, ptr %3, align 8
%43 = call i32 @fputc(i8 noundef signext %41, ptr noundef %42)
br label %44
44: ; preds = %39, %33
br label %45
45: ; preds = %44, %21
br label %46
46: ; preds = %45
%47 = load ptr, ptr %4, align 8
%48 = getelementptr inbounds i8, ptr %47, i32 1
store ptr %48, ptr %4, align 8
%49 = load ptr, ptr %4, align 8
%50 = load i8, ptr %49, align 1
%51 = sext i8 %50 to i32
%52 = icmp ne i32 %51, 0
br i1 %52, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %46
br label %53
53: ; preds = %._crit_edge, %2
%54 = load ptr, ptr %3, align 8
%55 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef @.str)
ret void
}
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1
declare i32 @fputc(i8 noundef signext, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpf_fqjch1.c'
source_filename = "/tmp/tmpf_fqjch1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c" %d = %c \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 = %10, %0
%4 = load i32, ptr %2, align 4
%5 = icmp sle i32 %4, 255
br i1 %5, label %6, label %13
6: ; preds = %3
%7 = load i32, ptr %2, align 4
%8 = load i32, ptr %2, align 4
%9 = call i32 @printf(ptr noundef @.str, i32 noundef %7, i32 noundef %8)
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
br label %3, !llvm.loop !6
13: ; preds = %3
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpf_fqjch1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [11 x i8] c" %d = %c \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = icmp sle i32 %3, 255
br i1 %4, label %.lr.ph, label %14
.lr.ph: ; preds = %0
br label %5
5: ; preds = %.lr.ph, %9
%6 = load i32, ptr %2, align 4
%7 = load i32, ptr %2, align 4
%8 = call i32 @printf(ptr noundef @.str, i32 noundef %6, i32 noundef %7)
br label %9
9: ; preds = %5
%10 = load i32, ptr %2, align 4
%11 = add nsw i32 %10, 1
store i32 %11, ptr %2, align 4
%12 = load i32, ptr %2, align 4
%13 = icmp sle i32 %12, 255
br i1 %13, label %5, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %9
br label %14
14: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @printf(ptr noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpmrrb1u27.c'
source_filename = "/tmp/tmpmrrb1u27.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_pico_stristr(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 %4, align 8
%7 = call i64 @strlen(ptr noundef %6)
store i64 %7, ptr %5, align 8
br label %8
8: ; preds = %19, %2
%9 = load ptr, ptr %3, align 8
%10 = load i8, ptr %9, align 1
%11 = icmp ne i8 %10, 0
br i1 %11, label %12, label %22
12: ; preds = %8
%13 = load ptr, ptr %3, align 8
%14 = load ptr, ptr %4, align 8
%15 = load i64, ptr %5, align 8
%16 = call i32 @strncasecmp(ptr noundef %13, ptr noundef %14, i64 noundef %15)
%17 = icmp ne i32 %16, 0
br i1 %17, label %19, label %18
18: ; preds = %12
br label %22
19: ; preds = %12
%20 = load ptr, ptr %3, align 8
%21 = getelementptr inbounds i8, ptr %20, i32 1
store ptr %21, ptr %3, align 8
br label %8, !llvm.loop !6
22: ; preds = %18, %8
%23 = load ptr, ptr %3, align 8
%24 = load i8, ptr %23, align 1
%25 = icmp ne i8 %24, 0
br i1 %25, label %27, label %26
26: ; preds = %22
store ptr null, ptr %3, align 8
br label %27
27: ; preds = %26, %22
%28 = load ptr, ptr %3, align 8
ret ptr %28
}
declare i64 @strlen(ptr noundef) #1
declare i32 @strncasecmp(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpmrrb1u27.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @_pico_stristr(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 %4, align 8
%7 = call i64 @strlen(ptr noundef %6)
store i64 %7, ptr %5, align 8
%8 = load ptr, ptr %3, align 8
%9 = load i8, ptr %8, align 1
%10 = icmp ne i8 %9, 0
br i1 %10, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %2
br label %11
11: ; preds = %.lr.ph, %18
%12 = load ptr, ptr %3, align 8
%13 = load ptr, ptr %4, align 8
%14 = load i64, ptr %5, align 8
%15 = call i32 @strncasecmp(ptr noundef %12, ptr noundef %13, i64 noundef %14)
%16 = icmp ne i32 %15, 0
br i1 %16, label %18, label %17
17: ; preds = %11
br label %24
18: ; preds = %11
%19 = load ptr, ptr %3, align 8
%20 = getelementptr inbounds i8, ptr %19, i32 1
store ptr %20, ptr %3, align 8
%21 = load ptr, ptr %3, align 8
%22 = load i8, ptr %21, align 1
%23 = icmp ne i8 %22, 0
br i1 %23, label %11, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %18
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %2
br label %24
24: ; preds = %.loopexit, %17
%25 = load ptr, ptr %3, align 8
%26 = load i8, ptr %25, align 1
%27 = icmp ne i8 %26, 0
br i1 %27, label %29, label %28
28: ; preds = %24
store ptr null, ptr %3, align 8
br label %29
29: ; preds = %28, %24
%30 = load ptr, ptr %3, align 8
ret ptr %30
}
declare i64 @strlen(ptr noundef) #1
declare i32 @strncasecmp(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpse701vfh.c'
source_filename = "/tmp/tmpse701vfh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Puissance 4\00", align 1
@.str.1 = private unnamed_addr constant [53 x i8] c"Texte de presentation/Puissance 4/puissance4Solo.txt\00", align 1
@.str.2 = private unnamed_addr constant [54 x i8] c"Texte de presentation/Puissance 4/puissance4Multi.txt\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
@.str.4 = private unnamed_addr constant [17 x i8] c" 1 2 3 4 5 6 7\0A\00", align 1
@.str.5 = private unnamed_addr constant [17 x i8] c"1 - - - - - - -\0A\00", align 1
@.str.6 = private unnamed_addr constant [17 x i8] c"2 - - - - - - -\0A\00", align 1
@.str.7 = private unnamed_addr constant [17 x i8] c"3 - - - - - - -\0A\00", align 1
@.str.8 = private unnamed_addr constant [17 x i8] c"4 - - - - - - -\0A\00", align 1
@.str.9 = private unnamed_addr constant [17 x i8] c"5 - - - - - - -\0A\00", align 1
@.str.10 = private unnamed_addr constant [18 x i8] c"6 - - - - - - -\0A\0A\00", align 1
@.str.11 = private unnamed_addr constant [9 x i8] c"Vous = '\00", align 1
@.str.12 = private unnamed_addr constant [13 x i8] c"Joueur 1 = '\00", align 1
@.str.13 = private unnamed_addr constant [2 x i8] c"O\00", align 1
@.str.14 = private unnamed_addr constant [3 x i8] c"31\00", align 1
@.str.15 = private unnamed_addr constant [17 x i8] c"'\0AOrdinateur = '\00", align 1
@.str.16 = private unnamed_addr constant [15 x i8] c"'\0AJoueur 2 = '\00", align 1
@.str.17 = private unnamed_addr constant [3 x i8] c"33\00", align 1
@.str.18 = private unnamed_addr constant [4 x i8] c"'\0A\0A\00", align 1
@.str.19 = private unnamed_addr constant [37 x i8] c"Appuyez sur ENTREE pour commencer : \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @menuPuissance4(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%6 = call i32 @titre(ptr noundef @.str)
%7 = load i32, ptr %3, align 4
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = call i32 @lireEtAfficherFichier(ptr noundef @.str.1)
br label %17
11: ; preds = %2
%12 = load i32, ptr %3, align 4
%13 = icmp eq i32 %12, 1
br i1 %13, label %14, label %16
14: ; preds = %11
%15 = call i32 @lireEtAfficherFichier(ptr noundef @.str.2)
br label %16
16: ; preds = %14, %11
br label %17
17: ; preds = %16, %9
%18 = call i32 @printf(ptr noundef @.str.3)
%19 = call i32 @printf(ptr noundef @.str.4)
%20 = call i32 @printf(ptr noundef @.str.5)
%21 = call i32 @printf(ptr noundef @.str.6)
%22 = call i32 @printf(ptr noundef @.str.7)
%23 = call i32 @printf(ptr noundef @.str.8)
%24 = call i32 @printf(ptr noundef @.str.9)
%25 = call i32 @printf(ptr noundef @.str.10)
%26 = load i32, ptr %3, align 4
%27 = icmp eq i32 %26, 0
br i1 %27, label %28, label %30
28: ; preds = %17
%29 = call i32 @printf(ptr noundef @.str.11)
br label %36
30: ; preds = %17
%31 = load i32, ptr %3, align 4
%32 = icmp eq i32 %31, 1
br i1 %32, label %33, label %35
33: ; preds = %30
%34 = call i32 @printf(ptr noundef @.str.12)
br label %35
35: ; preds = %33, %30
br label %36
36: ; preds = %35, %28
%37 = call i32 @coloration(ptr noundef @.str.13, ptr noundef @.str.14)
%38 = load i32, ptr %3, align 4
%39 = icmp eq i32 %38, 0
br i1 %39, label %40, label %42
40: ; preds = %36
%41 = call i32 @printf(ptr noundef @.str.15)
br label %48
42: ; preds = %36
%43 = load i32, ptr %3, align 4
%44 = icmp eq i32 %43, 1
br i1 %44, label %45, label %47
45: ; preds = %42
%46 = call i32 @printf(ptr noundef @.str.16)
br label %47
47: ; preds = %45, %42
br label %48
48: ; preds = %47, %40
%49 = call i32 @coloration(ptr noundef @.str.13, ptr noundef @.str.17)
%50 = call i32 @printf(ptr noundef @.str.18)
%51 = call i32 @appuyezEntree(ptr noundef @.str.19)
%52 = load i32, ptr %3, align 4
%53 = icmp eq i32 %52, 0
br i1 %53, label %54, label %58
54: ; preds = %48
%55 = call i32 (...) @choisirDifficulte()
store i32 %55, ptr %5, align 4
%56 = load i32, ptr %5, align 4
%57 = load ptr, ptr %4, align 8
store i32 %56, ptr %57, align 4
br label %58
58: ; preds = %54, %48
ret void
}
declare i32 @titre(ptr noundef) #1
declare i32 @lireEtAfficherFichier(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @coloration(ptr noundef, ptr noundef) #1
declare i32 @appuyezEntree(ptr noundef) #1
declare i32 @choisirDifficulte(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpse701vfh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Puissance 4\00", align 1
@.str.1 = private unnamed_addr constant [53 x i8] c"Texte de presentation/Puissance 4/puissance4Solo.txt\00", align 1
@.str.2 = private unnamed_addr constant [54 x i8] c"Texte de presentation/Puissance 4/puissance4Multi.txt\00", align 1
@.str.3 = private unnamed_addr constant [3 x i8] c"\0A\0A\00", align 1
@.str.4 = private unnamed_addr constant [17 x i8] c" 1 2 3 4 5 6 7\0A\00", align 1
@.str.5 = private unnamed_addr constant [17 x i8] c"1 - - - - - - -\0A\00", align 1
@.str.6 = private unnamed_addr constant [17 x i8] c"2 - - - - - - -\0A\00", align 1
@.str.7 = private unnamed_addr constant [17 x i8] c"3 - - - - - - -\0A\00", align 1
@.str.8 = private unnamed_addr constant [17 x i8] c"4 - - - - - - -\0A\00", align 1
@.str.9 = private unnamed_addr constant [17 x i8] c"5 - - - - - - -\0A\00", align 1
@.str.10 = private unnamed_addr constant [18 x i8] c"6 - - - - - - -\0A\0A\00", align 1
@.str.11 = private unnamed_addr constant [9 x i8] c"Vous = '\00", align 1
@.str.12 = private unnamed_addr constant [13 x i8] c"Joueur 1 = '\00", align 1
@.str.13 = private unnamed_addr constant [2 x i8] c"O\00", align 1
@.str.14 = private unnamed_addr constant [3 x i8] c"31\00", align 1
@.str.15 = private unnamed_addr constant [17 x i8] c"'\0AOrdinateur = '\00", align 1
@.str.16 = private unnamed_addr constant [15 x i8] c"'\0AJoueur 2 = '\00", align 1
@.str.17 = private unnamed_addr constant [3 x i8] c"33\00", align 1
@.str.18 = private unnamed_addr constant [4 x i8] c"'\0A\0A\00", align 1
@.str.19 = private unnamed_addr constant [37 x i8] c"Appuyez sur ENTREE pour commencer : \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @menuPuissance4(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store i32 %0, ptr %3, align 4
store ptr %1, ptr %4, align 8
%6 = call i32 @titre(ptr noundef @.str)
%7 = load i32, ptr %3, align 4
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = call i32 @lireEtAfficherFichier(ptr noundef @.str.1)
br label %17
11: ; preds = %2
%12 = load i32, ptr %3, align 4
%13 = icmp eq i32 %12, 1
br i1 %13, label %14, label %16
14: ; preds = %11
%15 = call i32 @lireEtAfficherFichier(ptr noundef @.str.2)
br label %16
16: ; preds = %14, %11
br label %17
17: ; preds = %16, %9
%18 = call i32 @printf(ptr noundef @.str.3)
%19 = call i32 @printf(ptr noundef @.str.4)
%20 = call i32 @printf(ptr noundef @.str.5)
%21 = call i32 @printf(ptr noundef @.str.6)
%22 = call i32 @printf(ptr noundef @.str.7)
%23 = call i32 @printf(ptr noundef @.str.8)
%24 = call i32 @printf(ptr noundef @.str.9)
%25 = call i32 @printf(ptr noundef @.str.10)
%26 = load i32, ptr %3, align 4
%27 = icmp eq i32 %26, 0
br i1 %27, label %28, label %30
28: ; preds = %17
%29 = call i32 @printf(ptr noundef @.str.11)
br label %36
30: ; preds = %17
%31 = load i32, ptr %3, align 4
%32 = icmp eq i32 %31, 1
br i1 %32, label %33, label %35
33: ; preds = %30
%34 = call i32 @printf(ptr noundef @.str.12)
br label %35
35: ; preds = %33, %30
br label %36
36: ; preds = %35, %28
%37 = call i32 @coloration(ptr noundef @.str.13, ptr noundef @.str.14)
%38 = load i32, ptr %3, align 4
%39 = icmp eq i32 %38, 0
br i1 %39, label %40, label %42
40: ; preds = %36
%41 = call i32 @printf(ptr noundef @.str.15)
br label %48
42: ; preds = %36
%43 = load i32, ptr %3, align 4
%44 = icmp eq i32 %43, 1
br i1 %44, label %45, label %47
45: ; preds = %42
%46 = call i32 @printf(ptr noundef @.str.16)
br label %47
47: ; preds = %45, %42
br label %48
48: ; preds = %47, %40
%49 = call i32 @coloration(ptr noundef @.str.13, ptr noundef @.str.17)
%50 = call i32 @printf(ptr noundef @.str.18)
%51 = call i32 @appuyezEntree(ptr noundef @.str.19)
%52 = load i32, ptr %3, align 4
%53 = icmp eq i32 %52, 0
br i1 %53, label %54, label %58
54: ; preds = %48
%55 = call i32 (...) @choisirDifficulte()
store i32 %55, ptr %5, align 4
%56 = load i32, ptr %5, align 4
%57 = load ptr, ptr %4, align 8
store i32 %56, ptr %57, align 4
br label %58
58: ; preds = %54, %48
ret void
}
declare i32 @titre(ptr noundef) #1
declare i32 @lireEtAfficherFichier(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
declare i32 @coloration(ptr noundef, ptr noundef) #1
declare i32 @appuyezEntree(ptr noundef) #1
declare i32 @choisirDifficulte(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmps0526f_2.c'
source_filename = "/tmp/tmps0526f_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 [7 x i8] c"pascal\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c" //comment\00", align 1
@.str.2 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"//comment\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_pascal_comments() #0 {
%1 = call i32 @test_parser_sourcefile(ptr noundef @.str, ptr noundef @.str.1)
%2 = call i32 @test_parser_verify_parse(i32 noundef %1, ptr noundef @.str, ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef 0)
ret void
}
declare i32 @test_parser_verify_parse(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @test_parser_sourcefile(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/tmps0526f_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 [7 x i8] c"pascal\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c" //comment\00", align 1
@.str.2 = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
@.str.3 = private unnamed_addr constant [10 x i8] c"//comment\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @test_pascal_comments() #0 {
%1 = call i32 @test_parser_sourcefile(ptr noundef @.str, ptr noundef @.str.1)
%2 = call i32 @test_parser_verify_parse(i32 noundef %1, ptr noundef @.str, ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef 0)
ret void
}
declare i32 @test_parser_verify_parse(i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @test_parser_sourcefile(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/tmpzx3bbqp6.c'
source_filename = "/tmp/tmpzx3bbqp6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Welcome to Michael's login page\0A\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"Username: \00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.3 = private unnamed_addr constant [11 x i8] c"Password: \00", align 1
@.str.4 = private unnamed_addr constant [34 x i8] c"Congratulations, you've made it!\0A\00", align 1
@.str.5 = private unnamed_addr constant [26 x i8] c"Sorry, please try again.\0A\00", align 1
@.str.6 = private unnamed_addr constant [21 x i8] c"Calling the police!\0A\00", align 1
@.str.7 = private unnamed_addr constant [16 x i8] c"LoginErrors.txt\00", align 1
@.str.8 = private unnamed_addr constant [3 x i8] c"a+\00", align 1
@.str.9 = private unnamed_addr constant [9 x i8] c"%s%s %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [50 x i8], align 16
%3 = alloca [50 x i8], align 16
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [256 x i8], align 16
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
%8 = call i32 @printf(ptr noundef @.str)
%9 = call i32 (...) @createList()
store i32 0, ptr %4, align 4
br label %10
10: ; preds = %30, %0
%11 = load i32, ptr %4, align 4
%12 = icmp slt i32 %11, 3
br i1 %12, label %13, label %33
13: ; preds = %10
%14 = call i32 @printf(ptr noundef @.str.1)
%15 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 0
%16 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %15)
%17 = call i32 (...) @getchar()
%18 = call i32 @printf(ptr noundef @.str.3)
%19 = getelementptr inbounds [50 x i8], ptr %3, i64 0, i64 0
%20 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %19)
%21 = call i32 (...) @getchar()
%22 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 0
%23 = getelementptr inbounds [50 x i8], ptr %3, i64 0, i64 0
%24 = call i64 @valid(ptr noundef %22, ptr noundef %23)
%25 = icmp ne i64 %24, 0
br i1 %25, label %26, label %28
26: ; preds = %13
%27 = call i32 @printf(ptr noundef @.str.4)
store i32 0, ptr %1, align 4
br label %47
28: ; preds = %13
%29 = call i32 @printf(ptr noundef @.str.5)
br label %30
30: ; preds = %28
%31 = load i32, ptr %4, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %4, align 4
br label %10, !llvm.loop !6
33: ; preds = %10
%34 = call i32 @printf(ptr noundef @.str.6)
%35 = call ptr @fopen(ptr noundef @.str.7, ptr noundef @.str.8)
store ptr %35, ptr %5, align 8
%36 = call i32 @time(ptr noundef %7)
%37 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
%38 = call ptr @ctime(ptr noundef %7)
%39 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 0
%40 = getelementptr inbounds [50 x i8], ptr %3, i64 0, i64 0
%41 = call i32 @snprintf(ptr noundef %37, i32 noundef 256, ptr noundef @.str.9, ptr noundef %38, ptr noundef %39, ptr noundef %40)
%42 = load ptr, ptr %5, align 8
%43 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
%44 = call i32 @fprintf(ptr noundef %42, ptr noundef @.str.2, ptr noundef %43)
%45 = load ptr, ptr %5, align 8
%46 = call i32 @fclose(ptr noundef %45)
store i32 0, ptr %1, align 4
br label %47
47: ; preds = %33, %26
%48 = load i32, ptr %1, align 4
ret i32 %48
}
declare i32 @printf(ptr noundef) #1
declare i32 @createList(...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @getchar(...) #1
declare i64 @valid(ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @ctime(ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpzx3bbqp6.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Welcome to Michael's login page\0A\00", align 1
@.str.1 = private unnamed_addr constant [11 x i8] c"Username: \00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.3 = private unnamed_addr constant [11 x i8] c"Password: \00", align 1
@.str.4 = private unnamed_addr constant [34 x i8] c"Congratulations, you've made it!\0A\00", align 1
@.str.5 = private unnamed_addr constant [26 x i8] c"Sorry, please try again.\0A\00", align 1
@.str.6 = private unnamed_addr constant [21 x i8] c"Calling the police!\0A\00", align 1
@.str.7 = private unnamed_addr constant [16 x i8] c"LoginErrors.txt\00", align 1
@.str.8 = private unnamed_addr constant [3 x i8] c"a+\00", align 1
@.str.9 = private unnamed_addr constant [9 x i8] c"%s%s %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [50 x i8], align 16
%3 = alloca [50 x i8], align 16
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca [256 x i8], align 16
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
%8 = call i32 @printf(ptr noundef @.str)
%9 = call i32 (...) @createList()
store i32 0, ptr %4, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %10, 3
br i1 %11, label %.lr.ph, label %34
.lr.ph: ; preds = %0
br label %12
12: ; preds = %.lr.ph, %29
%13 = call i32 @printf(ptr noundef @.str.1)
%14 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 0
%15 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %14)
%16 = call i32 (...) @getchar()
%17 = call i32 @printf(ptr noundef @.str.3)
%18 = getelementptr inbounds [50 x i8], ptr %3, i64 0, i64 0
%19 = call i32 @scanf(ptr noundef @.str.2, ptr noundef %18)
%20 = call i32 (...) @getchar()
%21 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 0
%22 = getelementptr inbounds [50 x i8], ptr %3, i64 0, i64 0
%23 = call i64 @valid(ptr noundef %21, ptr noundef %22)
%24 = icmp ne i64 %23, 0
br i1 %24, label %25, label %27
25: ; preds = %12
%26 = call i32 @printf(ptr noundef @.str.4)
store i32 0, ptr %1, align 4
br label %48
27: ; preds = %12
%28 = call i32 @printf(ptr noundef @.str.5)
br label %29
29: ; preds = %27
%30 = load i32, ptr %4, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %4, align 4
%32 = load i32, ptr %4, align 4
%33 = icmp slt i32 %32, 3
br i1 %33, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %29
br label %34
34: ; preds = %._crit_edge, %0
%35 = call i32 @printf(ptr noundef @.str.6)
%36 = call ptr @fopen(ptr noundef @.str.7, ptr noundef @.str.8)
store ptr %36, ptr %5, align 8
%37 = call i32 @time(ptr noundef %7)
%38 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
%39 = call ptr @ctime(ptr noundef %7)
%40 = getelementptr inbounds [50 x i8], ptr %2, i64 0, i64 0
%41 = getelementptr inbounds [50 x i8], ptr %3, i64 0, i64 0
%42 = call i32 @snprintf(ptr noundef %38, i32 noundef 256, ptr noundef @.str.9, ptr noundef %39, ptr noundef %40, ptr noundef %41)
%43 = load ptr, ptr %5, align 8
%44 = getelementptr inbounds [256 x i8], ptr %6, i64 0, i64 0
%45 = call i32 @fprintf(ptr noundef %43, ptr noundef @.str.2, ptr noundef %44)
%46 = load ptr, ptr %5, align 8
%47 = call i32 @fclose(ptr noundef %46)
store i32 0, ptr %1, align 4
br label %48
48: ; preds = %34, %25
%49 = load i32, ptr %1, align 4
ret i32 %49
}
declare i32 @printf(ptr noundef) #1
declare i32 @createList(...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @getchar(...) #1
declare i64 @valid(ptr noundef, ptr noundef) #1
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @time(ptr noundef) #1
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare ptr @ctime(ptr noundef) #1
declare i32 @fprintf(ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpyra8g7_q.c'
source_filename = "/tmp/tmpyra8g7_q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENOSYS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @listxattr(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%7 = load i32, ptr @ENOSYS, align 4
%8 = call i32 @__set_errno(i32 noundef %7)
ret i32 -1
}
declare i32 @__set_errno(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/tmpyra8g7_q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ENOSYS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @listxattr(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%7 = load i32, ptr @ENOSYS, align 4
%8 = call i32 @__set_errno(i32 noundef %7)
ret i32 -1
}
declare i32 @__set_errno(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/tmprvzvpy7b.c'
source_filename = "/tmp/tmprvzvpy7b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [19 x i8] c"Cost of the item: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"Amount tendered: \00", align 1
@.str.3 = private unnamed_addr constant [16 x i8] c"Still due: %.2f\00", align 1
@.str.4 = private unnamed_addr constant [13 x i8] c"Change: %.2f\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%8 = load float, ptr %2, align 4
%9 = load float, ptr %3, align 4
%10 = fcmp ogt float %8, %9
br i1 %10, label %11, label %17
11: ; preds = %0
%12 = load float, ptr %2, align 4
%13 = load float, ptr %3, align 4
%14 = fsub float %12, %13
%15 = fpext float %14 to double
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %15)
br label %23
17: ; preds = %0
%18 = load float, ptr %3, align 4
%19 = load float, ptr %2, align 4
%20 = fsub float %18, %19
%21 = fpext float %20 to double
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %21)
br label %23
23: ; preds = %17, %11
%24 = phi i32 [ %16, %11 ], [ %22, %17 ]
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmprvzvpy7b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [19 x i8] c"Cost of the item: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.2 = private unnamed_addr constant [19 x i8] c"Amount tendered: \00", align 1
@.str.3 = private unnamed_addr constant [16 x i8] c"Still due: %.2f\00", align 1
@.str.4 = private unnamed_addr constant [13 x i8] c"Change: %.2f\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
store i32 0, ptr %1, align 4
%4 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%5 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%6 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%7 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%8 = load float, ptr %2, align 4
%9 = load float, ptr %3, align 4
%10 = fcmp ogt float %8, %9
br i1 %10, label %11, label %17
11: ; preds = %0
%12 = load float, ptr %2, align 4
%13 = load float, ptr %3, align 4
%14 = fsub float %12, %13
%15 = fpext float %14 to double
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %15)
br label %23
17: ; preds = %0
%18 = load float, ptr %3, align 4
%19 = load float, ptr %2, align 4
%20 = fsub float %18, %19
%21 = fpext float %20 to double
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %21)
br label %23
23: ; preds = %17, %11
%24 = phi i32 [ %16, %11 ], [ %22, %17 ]
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpiouahg4v.c'
source_filename = "/tmp/tmpiouahg4v.c"
target datalayout = "e-m:e-p270: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/tmpiouahg4v.c"
target datalayout = "e-m:e-p270: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/tmpp074n8dz.c'
source_filename = "/tmp/tmpp074n8dz.c"
target datalayout = "e-m:e-p270: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/tmpp074n8dz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_l1gnu3a.c'
source_filename = "/tmp/tmp_l1gnu3a.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_l1gnu3a.c"
target datalayout = "e-m:e-p270: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/tmpkv3xolba.c'
source_filename = "/tmp/tmpkv3xolba.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"ABCDE\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 @print_line(ptr noundef @.str)
ret i32 0
}
declare i32 @print_line(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpkv3xolba.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"ABCDE\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 @print_line(ptr noundef @.str)
ret i32 0
}
declare i32 @print_line(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp88vgq5wn.c'
source_filename = "/tmp/tmp88vgq5wn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_decimal(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = load i32, ptr @stdout, align 4
%5 = call i32 @fprint_decimal(i32 noundef %3, i32 noundef %4)
ret void
}
declare i32 @fprint_decimal(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/tmp88vgq5wn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdout = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @print_decimal(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = load i32, ptr @stdout, align 4
%5 = call i32 @fprint_decimal(i32 noundef %3, i32 noundef %4)
ret void
}
declare i32 @fprint_decimal(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/tmptchs2dri.c'
source_filename = "/tmp/tmptchs2dri.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strncmp() #0 {
%1 = call i32 (...) @_PROCEDURE_LINKAGE_TABLE_()
ret void
}
declare i32 @_PROCEDURE_LINKAGE_TABLE_(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptchs2dri.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strncmp() #0 {
%1 = call i32 (...) @_PROCEDURE_LINKAGE_TABLE_()
ret void
}
declare i32 @_PROCEDURE_LINKAGE_TABLE_(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0vjebkfp.c'
source_filename = "/tmp/tmp0vjebkfp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@printNumber.hexChars = internal global [17 x i8] c"0123456789ABCDEF\00", align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printNumber(i8 noundef zeroext %0, i8 noundef zeroext %1, i8 noundef zeroext %2, i8 noundef zeroext %3, i32 noundef %4) #0 {
%6 = alloca i8, align 1
%7 = alloca i8, align 1
%8 = alloca i8, align 1
%9 = alloca i8, align 1
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca [32 x i8], align 16
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store i8 %0, ptr %6, align 1
store i8 %1, ptr %7, align 1
store i8 %2, ptr %8, align 1
store i8 %3, ptr %9, align 1
store i32 %4, ptr %10, align 4
%15 = load i8, ptr %8, align 1
%16 = zext i8 %15 to i32
%17 = icmp ne i32 %16, 0
br i1 %17, label %18, label %24
18: ; preds = %5
%19 = load i32, ptr %10, align 4
%20 = icmp slt i32 %19, 0
br i1 %20, label %21, label %24
21: ; preds = %18
%22 = load i32, ptr %10, align 4
%23 = sub nsw i32 0, %22
store i32 %23, ptr %13, align 4
br label %26
24: ; preds = %18, %5
%25 = load i32, ptr %10, align 4
store i32 %25, ptr %13, align 4
br label %26
26: ; preds = %24, %21
%27 = load i8, ptr %7, align 1
%28 = zext i8 %27 to i32
%29 = sub nsw i32 %28, 1
%30 = load i8, ptr %8, align 1
%31 = zext i8 %30 to i32
%32 = icmp ne i32 %31, 0
%33 = zext i1 %32 to i64
%34 = select i1 %32, i32 1, i32 0
%35 = sub nsw i32 %29, %34
store i32 %35, ptr %14, align 4
%36 = getelementptr inbounds [32 x i8], ptr %12, i64 0, i64 0
%37 = getelementptr inbounds i8, ptr %36, i64 32
store ptr %37, ptr %11, align 8
%38 = load ptr, ptr %11, align 8
%39 = getelementptr inbounds i8, ptr %38, i32 -1
store ptr %39, ptr %11, align 8
store i8 0, ptr %39, align 1
%40 = load i32, ptr %13, align 4
%41 = load i8, ptr %6, align 1
%42 = zext i8 %41 to i32
%43 = urem i32 %40, %42
%44 = zext i32 %43 to i64
%45 = getelementptr inbounds [17 x i8], ptr @printNumber.hexChars, i64 0, i64 %44
%46 = load i8, ptr %45, align 1
%47 = load ptr, ptr %11, align 8
%48 = getelementptr inbounds i8, ptr %47, i32 -1
store ptr %48, ptr %11, align 8
store i8 %46, ptr %48, align 1
%49 = load i8, ptr %6, align 1
%50 = zext i8 %49 to i32
%51 = load i32, ptr %13, align 4
%52 = udiv i32 %51, %50
store i32 %52, ptr %13, align 4
br label %53
53: ; preds = %78, %26
%54 = load i32, ptr %14, align 4
%55 = add i32 %54, -1
store i32 %55, ptr %14, align 4
%56 = icmp ne i32 %54, 0
br i1 %56, label %57, label %79
57: ; preds = %53
%58 = load i32, ptr %13, align 4
%59 = icmp ne i32 %58, 0
br i1 %59, label %60, label %74
60: ; preds = %57
%61 = load i32, ptr %13, align 4
%62 = load i8, ptr %6, align 1
%63 = zext i8 %62 to i32
%64 = urem i32 %61, %63
%65 = zext i32 %64 to i64
%66 = getelementptr inbounds [17 x i8], ptr @printNumber.hexChars, i64 0, i64 %65
%67 = load i8, ptr %66, align 1
%68 = load ptr, ptr %11, align 8
%69 = getelementptr inbounds i8, ptr %68, i32 -1
store ptr %69, ptr %11, align 8
store i8 %67, ptr %69, align 1
%70 = load i8, ptr %6, align 1
%71 = zext i8 %70 to i32
%72 = load i32, ptr %13, align 4
%73 = udiv i32 %72, %71
store i32 %73, ptr %13, align 4
br label %78
74: ; preds = %57
%75 = load i8, ptr %9, align 1
%76 = load ptr, ptr %11, align 8
%77 = getelementptr inbounds i8, ptr %76, i32 -1
store ptr %77, ptr %11, align 8
store i8 %75, ptr %77, align 1
br label %78
78: ; preds = %74, %60
br label %53, !llvm.loop !6
79: ; preds = %53
%80 = load i8, ptr %8, align 1
%81 = icmp ne i8 %80, 0
br i1 %81, label %82, label %99
82: ; preds = %79
%83 = load i32, ptr %10, align 4
%84 = icmp slt i32 %83, 0
br i1 %84, label %85, label %88
85: ; preds = %82
%86 = load ptr, ptr %11, align 8
%87 = getelementptr inbounds i8, ptr %86, i32 -1
store ptr %87, ptr %11, align 8
store i8 45, ptr %87, align 1
br label %98
88: ; preds = %82
%89 = load i32, ptr %10, align 4
%90 = icmp sgt i32 %89, 0
br i1 %90, label %91, label %94
91: ; preds = %88
%92 = load ptr, ptr %11, align 8
%93 = getelementptr inbounds i8, ptr %92, i32 -1
store ptr %93, ptr %11, align 8
store i8 43, ptr %93, align 1
br label %97
94: ; preds = %88
%95 = load ptr, ptr %11, align 8
%96 = getelementptr inbounds i8, ptr %95, i32 -1
store ptr %96, ptr %11, align 8
store i8 32, ptr %96, align 1
br label %97
97: ; preds = %94, %91
br label %98
98: ; preds = %97, %85
br label %99
99: ; preds = %98, %79
%100 = load ptr, ptr %11, align 8
%101 = call i32 @uart0SendString(ptr noundef %100)
ret void
}
declare i32 @uart0SendString(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp0vjebkfp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@printNumber.hexChars = internal global [17 x i8] c"0123456789ABCDEF\00", align 16
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printNumber(i8 noundef zeroext %0, i8 noundef zeroext %1, i8 noundef zeroext %2, i8 noundef zeroext %3, i32 noundef %4) #0 {
%6 = alloca i8, align 1
%7 = alloca i8, align 1
%8 = alloca i8, align 1
%9 = alloca i8, align 1
%10 = alloca i32, align 4
%11 = alloca ptr, align 8
%12 = alloca [32 x i8], align 16
%13 = alloca i32, align 4
%14 = alloca i32, align 4
store i8 %0, ptr %6, align 1
store i8 %1, ptr %7, align 1
store i8 %2, ptr %8, align 1
store i8 %3, ptr %9, align 1
store i32 %4, ptr %10, align 4
%15 = load i8, ptr %8, align 1
%16 = zext i8 %15 to i32
%17 = icmp ne i32 %16, 0
br i1 %17, label %18, label %24
18: ; preds = %5
%19 = load i32, ptr %10, align 4
%20 = icmp slt i32 %19, 0
br i1 %20, label %21, label %24
21: ; preds = %18
%22 = load i32, ptr %10, align 4
%23 = sub nsw i32 0, %22
store i32 %23, ptr %13, align 4
br label %26
24: ; preds = %18, %5
%25 = load i32, ptr %10, align 4
store i32 %25, ptr %13, align 4
br label %26
26: ; preds = %24, %21
%27 = load i8, ptr %7, align 1
%28 = zext i8 %27 to i32
%29 = sub nsw i32 %28, 1
%30 = load i8, ptr %8, align 1
%31 = zext i8 %30 to i32
%32 = icmp ne i32 %31, 0
%33 = zext i1 %32 to i64
%34 = select i1 %32, i32 1, i32 0
%35 = sub nsw i32 %29, %34
store i32 %35, ptr %14, align 4
%36 = getelementptr inbounds [32 x i8], ptr %12, i64 0, i64 0
%37 = getelementptr inbounds i8, ptr %36, i64 32
store ptr %37, ptr %11, align 8
%38 = load ptr, ptr %11, align 8
%39 = getelementptr inbounds i8, ptr %38, i32 -1
store ptr %39, ptr %11, align 8
store i8 0, ptr %39, align 1
%40 = load i32, ptr %13, align 4
%41 = load i8, ptr %6, align 1
%42 = zext i8 %41 to i32
%43 = urem i32 %40, %42
%44 = zext i32 %43 to i64
%45 = getelementptr inbounds [17 x i8], ptr @printNumber.hexChars, i64 0, i64 %44
%46 = load i8, ptr %45, align 1
%47 = load ptr, ptr %11, align 8
%48 = getelementptr inbounds i8, ptr %47, i32 -1
store ptr %48, ptr %11, align 8
store i8 %46, ptr %48, align 1
%49 = load i8, ptr %6, align 1
%50 = zext i8 %49 to i32
%51 = load i32, ptr %13, align 4
%52 = udiv i32 %51, %50
store i32 %52, ptr %13, align 4
%53 = load i32, ptr %14, align 4
%54 = add i32 %53, -1
store i32 %54, ptr %14, align 4
%55 = icmp ne i32 %53, 0
br i1 %55, label %.lr.ph, label %81
.lr.ph: ; preds = %26
br label %56
56: ; preds = %.lr.ph, %77
%57 = load i32, ptr %13, align 4
%58 = icmp ne i32 %57, 0
br i1 %58, label %59, label %73
59: ; preds = %56
%60 = load i32, ptr %13, align 4
%61 = load i8, ptr %6, align 1
%62 = zext i8 %61 to i32
%63 = urem i32 %60, %62
%64 = zext i32 %63 to i64
%65 = getelementptr inbounds [17 x i8], ptr @printNumber.hexChars, i64 0, i64 %64
%66 = load i8, ptr %65, align 1
%67 = load ptr, ptr %11, align 8
%68 = getelementptr inbounds i8, ptr %67, i32 -1
store ptr %68, ptr %11, align 8
store i8 %66, ptr %68, align 1
%69 = load i8, ptr %6, align 1
%70 = zext i8 %69 to i32
%71 = load i32, ptr %13, align 4
%72 = udiv i32 %71, %70
store i32 %72, ptr %13, align 4
br label %77
73: ; preds = %56
%74 = load i8, ptr %9, align 1
%75 = load ptr, ptr %11, align 8
%76 = getelementptr inbounds i8, ptr %75, i32 -1
store ptr %76, ptr %11, align 8
store i8 %74, ptr %76, align 1
br label %77
77: ; preds = %73, %59
%78 = load i32, ptr %14, align 4
%79 = add i32 %78, -1
store i32 %79, ptr %14, align 4
%80 = icmp ne i32 %78, 0
br i1 %80, label %56, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %77
br label %81
81: ; preds = %._crit_edge, %26
%82 = load i8, ptr %8, align 1
%83 = icmp ne i8 %82, 0
br i1 %83, label %84, label %101
84: ; preds = %81
%85 = load i32, ptr %10, align 4
%86 = icmp slt i32 %85, 0
br i1 %86, label %87, label %90
87: ; preds = %84
%88 = load ptr, ptr %11, align 8
%89 = getelementptr inbounds i8, ptr %88, i32 -1
store ptr %89, ptr %11, align 8
store i8 45, ptr %89, align 1
br label %100
90: ; preds = %84
%91 = load i32, ptr %10, align 4
%92 = icmp sgt i32 %91, 0
br i1 %92, label %93, label %96
93: ; preds = %90
%94 = load ptr, ptr %11, align 8
%95 = getelementptr inbounds i8, ptr %94, i32 -1
store ptr %95, ptr %11, align 8
store i8 43, ptr %95, align 1
br label %99
96: ; preds = %90
%97 = load ptr, ptr %11, align 8
%98 = getelementptr inbounds i8, ptr %97, i32 -1
store ptr %98, ptr %11, align 8
store i8 32, ptr %98, align 1
br label %99
99: ; preds = %96, %93
br label %100
100: ; preds = %99, %87
br label %101
101: ; preds = %100, %81
%102 = load ptr, ptr %11, align 8
%103 = call i32 @uart0SendString(ptr noundef %102)
ret void
}
declare i32 @uart0SendString(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpjxywd8wf.c'
source_filename = "/tmp/tmpjxywd8wf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Digite o nome: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"salgado\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"doce\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"bebida\00", align 1
@.str.5 = private unnamed_addr constant [25 x i8] c"Aluno: %s ficou com: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [23 x [31 x i8]], align 16
%3 = alloca [23 x [8 x i8]], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
br label %11
11: ; preds = %21, %0
%12 = load i32, ptr %7, align 4
%13 = icmp slt i32 %12, 23
br i1 %13, label %14, label %24
14: ; preds = %11
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%16 = load i32, ptr %7, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [23 x [31 x i8]], ptr %2, i64 0, i64 %17
%19 = getelementptr inbounds [31 x i8], ptr %18, i64 0, i64 0
%20 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %19)
br label %21
21: ; preds = %14
%22 = load i32, ptr %7, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %7, align 4
br label %11, !llvm.loop !6
24: ; preds = %11
store i32 0, ptr %8, align 4
br label %25
25: ; preds = %77, %24
%26 = load i32, ptr %8, align 4
%27 = icmp slt i32 %26, 23
br i1 %27, label %28, label %80
28: ; preds = %25
br label %29
29: ; preds = %28, %75
%30 = call i32 (...) @rand()
%31 = srem i32 %30, 3
store i32 %31, ptr %9, align 4
%32 = load i32, ptr %9, align 4
%33 = icmp eq i32 %32, 0
br i1 %33, label %34, label %45
34: ; preds = %29
%35 = load i32, ptr %4, align 4
%36 = icmp slt i32 %35, 11
br i1 %36, label %37, label %45
37: ; preds = %34
%38 = load i32, ptr %8, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [23 x [8 x i8]], ptr %3, i64 0, i64 %39
%41 = getelementptr inbounds [8 x i8], ptr %40, i64 0, i64 0
%42 = call i32 @strcpy(ptr noundef %41, ptr noundef @.str.2)
%43 = load i32, ptr %4, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %4, align 4
br label %76
45: ; preds = %34, %29
%46 = load i32, ptr %9, align 4
%47 = icmp eq i32 %46, 1
br i1 %47, label %48, label %59
48: ; preds = %45
%49 = load i32, ptr %5, align 4
%50 = icmp slt i32 %49, 6
br i1 %50, label %51, label %59
51: ; preds = %48
%52 = load i32, ptr %8, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [23 x [8 x i8]], ptr %3, i64 0, i64 %53
%55 = getelementptr inbounds [8 x i8], ptr %54, i64 0, i64 0
%56 = call i32 @strcpy(ptr noundef %55, ptr noundef @.str.3)
%57 = load i32, ptr %5, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %5, align 4
br label %76
59: ; preds = %48, %45
%60 = load i32, ptr %9, align 4
%61 = icmp eq i32 %60, 2
br i1 %61, label %62, label %73
62: ; preds = %59
%63 = load i32, ptr %6, align 4
%64 = icmp slt i32 %63, 6
br i1 %64, label %65, label %73
65: ; preds = %62
%66 = load i32, ptr %8, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds [23 x [8 x i8]], ptr %3, i64 0, i64 %67
%69 = getelementptr inbounds [8 x i8], ptr %68, i64 0, i64 0
%70 = call i32 @strcpy(ptr noundef %69, ptr noundef @.str.4)
%71 = load i32, ptr %6, align 4
%72 = add nsw i32 %71, 1
store i32 %72, ptr %6, align 4
br label %76
73: ; preds = %62, %59
br label %74
74: ; preds = %73
br label %75
75: ; preds = %74
br label %29
76: ; preds = %65, %51, %37
br label %77
77: ; preds = %76
%78 = load i32, ptr %8, align 4
%79 = add nsw i32 %78, 1
store i32 %79, ptr %8, align 4
br label %25, !llvm.loop !8
80: ; preds = %25
store i32 0, ptr %10, align 4
br label %81
81: ; preds = %94, %80
%82 = load i32, ptr %10, align 4
%83 = icmp slt i32 %82, 23
br i1 %83, label %84, label %97
84: ; preds = %81
%85 = load i32, ptr %10, align 4
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds [23 x [31 x i8]], ptr %2, i64 0, i64 %86
%88 = getelementptr inbounds [31 x i8], ptr %87, i64 0, i64 0
%89 = load i32, ptr %10, align 4
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds [23 x [8 x i8]], ptr %3, i64 0, i64 %90
%92 = getelementptr inbounds [8 x i8], ptr %91, i64 0, i64 0
%93 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %88, ptr noundef %92)
br label %94
94: ; preds = %84
%95 = load i32, ptr %10, align 4
%96 = add nsw i32 %95, 1
store i32 %96, ptr %10, align 4
br label %81, !llvm.loop !9
97: ; preds = %81
%98 = load i32, ptr %1, align 4
ret i32 %98
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @rand(...) #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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjxywd8wf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Digite o nome: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"salgado\00", align 1
@.str.3 = private unnamed_addr constant [5 x i8] c"doce\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"bebida\00", align 1
@.str.5 = private unnamed_addr constant [25 x i8] c"Aluno: %s ficou com: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [23 x [31 x i8]], align 16
%3 = alloca [23 x [8 x i8]], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
%11 = load i32, ptr %7, align 4
%12 = icmp slt i32 %11, 23
br i1 %12, label %.lr.ph, label %25
.lr.ph: ; preds = %0
br label %13
13: ; preds = %.lr.ph, %20
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%15 = load i32, ptr %7, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [23 x [31 x i8]], ptr %2, i64 0, i64 %16
%18 = getelementptr inbounds [31 x i8], ptr %17, i64 0, i64 0
%19 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %18)
br label %20
20: ; preds = %13
%21 = load i32, ptr %7, align 4
%22 = add nsw i32 %21, 1
store i32 %22, ptr %7, align 4
%23 = load i32, ptr %7, align 4
%24 = icmp slt i32 %23, 23
br i1 %24, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %25
25: ; preds = %._crit_edge, %0
store i32 0, ptr %8, align 4
%26 = load i32, ptr %8, align 4
%27 = icmp slt i32 %26, 23
br i1 %27, label %.lr.ph2, label %82
.lr.ph2: ; preds = %25
br label %28
28: ; preds = %.lr.ph2, %77
br label %29
29: ; preds = %75, %28
%30 = call i32 (...) @rand()
%31 = srem i32 %30, 3
store i32 %31, ptr %9, align 4
%32 = load i32, ptr %9, align 4
%33 = icmp eq i32 %32, 0
br i1 %33, label %34, label %45
34: ; preds = %29
%35 = load i32, ptr %4, align 4
%36 = icmp slt i32 %35, 11
br i1 %36, label %37, label %45
37: ; preds = %34
%38 = load i32, ptr %8, align 4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [23 x [8 x i8]], ptr %3, i64 0, i64 %39
%41 = getelementptr inbounds [8 x i8], ptr %40, i64 0, i64 0
%42 = call i32 @strcpy(ptr noundef %41, ptr noundef @.str.2)
%43 = load i32, ptr %4, align 4
%44 = add nsw i32 %43, 1
store i32 %44, ptr %4, align 4
br label %76
45: ; preds = %34, %29
%46 = load i32, ptr %9, align 4
%47 = icmp eq i32 %46, 1
br i1 %47, label %48, label %59
48: ; preds = %45
%49 = load i32, ptr %5, align 4
%50 = icmp slt i32 %49, 6
br i1 %50, label %51, label %59
51: ; preds = %48
%52 = load i32, ptr %8, align 4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [23 x [8 x i8]], ptr %3, i64 0, i64 %53
%55 = getelementptr inbounds [8 x i8], ptr %54, i64 0, i64 0
%56 = call i32 @strcpy(ptr noundef %55, ptr noundef @.str.3)
%57 = load i32, ptr %5, align 4
%58 = add nsw i32 %57, 1
store i32 %58, ptr %5, align 4
br label %76
59: ; preds = %48, %45
%60 = load i32, ptr %9, align 4
%61 = icmp eq i32 %60, 2
br i1 %61, label %62, label %73
62: ; preds = %59
%63 = load i32, ptr %6, align 4
%64 = icmp slt i32 %63, 6
br i1 %64, label %65, label %73
65: ; preds = %62
%66 = load i32, ptr %8, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds [23 x [8 x i8]], ptr %3, i64 0, i64 %67
%69 = getelementptr inbounds [8 x i8], ptr %68, i64 0, i64 0
%70 = call i32 @strcpy(ptr noundef %69, ptr noundef @.str.4)
%71 = load i32, ptr %6, align 4
%72 = add nsw i32 %71, 1
store i32 %72, ptr %6, align 4
br label %76
73: ; preds = %62, %59
br label %74
74: ; preds = %73
br label %75
75: ; preds = %74
br label %29
76: ; preds = %65, %51, %37
br label %77
77: ; preds = %76
%78 = load i32, ptr %8, align 4
%79 = add nsw i32 %78, 1
store i32 %79, ptr %8, align 4
%80 = load i32, ptr %8, align 4
%81 = icmp slt i32 %80, 23
br i1 %81, label %28, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %77
br label %82
82: ; preds = %._crit_edge3, %25
store i32 0, ptr %10, align 4
%83 = load i32, ptr %10, align 4
%84 = icmp slt i32 %83, 23
br i1 %84, label %.lr.ph5, label %100
.lr.ph5: ; preds = %82
br label %85
85: ; preds = %.lr.ph5, %95
%86 = load i32, ptr %10, align 4
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds [23 x [31 x i8]], ptr %2, i64 0, i64 %87
%89 = getelementptr inbounds [31 x i8], ptr %88, i64 0, i64 0
%90 = load i32, ptr %10, align 4
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds [23 x [8 x i8]], ptr %3, i64 0, i64 %91
%93 = getelementptr inbounds [8 x i8], ptr %92, i64 0, i64 0
%94 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, ptr noundef %89, ptr noundef %93)
br label %95
95: ; preds = %85
%96 = load i32, ptr %10, align 4
%97 = add nsw i32 %96, 1
store i32 %97, ptr %10, align 4
%98 = load i32, ptr %10, align 4
%99 = icmp slt i32 %98, 23
br i1 %99, label %85, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %95
br label %100
100: ; preds = %._crit_edge6, %82
%101 = load i32, ptr %1, align 4
ret i32 %101
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @rand(...) #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"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpe04949z2.c'
source_filename = "/tmp/tmpe04949z2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @IF_div() #0 {
%1 = call i32 @IF_fct_2(i8 noundef signext 47)
ret void
}
declare i32 @IF_fct_2(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpe04949z2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @IF_div() #0 {
%1 = call i32 @IF_fct_2(i8 noundef signext 47)
ret void
}
declare i32 @IF_fct_2(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8tx2utrs.c'
source_filename = "/tmp/tmp8tx2utrs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@AT_SYMLINK_NOFOLLOW = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @fchownat(i32 noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store i32 %0, ptr %6, align 4
store ptr %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
store i32 %4, ptr %10, align 4
%12 = load i32, ptr %6, align 4
%13 = call i32 @dir_mutex_lock(i32 noundef %12)
%14 = load i32, ptr %10, align 4
%15 = load i32, ptr @AT_SYMLINK_NOFOLLOW, align 4
%16 = and i32 %14, %15
%17 = icmp ne i32 %16, 0
br i1 %17, label %18, label %23
18: ; preds = %5
%19 = load ptr, ptr %7, align 8
%20 = load i32, ptr %8, align 4
%21 = load i32, ptr %9, align 4
%22 = call i32 @lchown(ptr noundef %19, i32 noundef %20, i32 noundef %21)
store i32 %22, ptr %11, align 4
br label %28
23: ; preds = %5
%24 = load ptr, ptr %7, align 8
%25 = load i32, ptr %8, align 4
%26 = load i32, ptr %9, align 4
%27 = call i32 @chown(ptr noundef %24, i32 noundef %25, i32 noundef %26)
store i32 %27, ptr %11, align 4
br label %28
28: ; preds = %23, %18
%29 = call i32 (...) @dir_mutex_unlock()
%30 = load i32, ptr %11, align 4
ret i32 %30
}
declare i32 @dir_mutex_lock(i32 noundef) #1
declare i32 @lchown(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @chown(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @dir_mutex_unlock(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8tx2utrs.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@AT_SYMLINK_NOFOLLOW = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @fchownat(i32 noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #0 {
%6 = alloca i32, align 4
%7 = alloca ptr, align 8
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
store i32 %0, ptr %6, align 4
store ptr %1, ptr %7, align 8
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
store i32 %4, ptr %10, align 4
%12 = load i32, ptr %6, align 4
%13 = call i32 @dir_mutex_lock(i32 noundef %12)
%14 = load i32, ptr %10, align 4
%15 = load i32, ptr @AT_SYMLINK_NOFOLLOW, align 4
%16 = and i32 %14, %15
%17 = icmp ne i32 %16, 0
br i1 %17, label %18, label %23
18: ; preds = %5
%19 = load ptr, ptr %7, align 8
%20 = load i32, ptr %8, align 4
%21 = load i32, ptr %9, align 4
%22 = call i32 @lchown(ptr noundef %19, i32 noundef %20, i32 noundef %21)
store i32 %22, ptr %11, align 4
br label %28
23: ; preds = %5
%24 = load ptr, ptr %7, align 8
%25 = load i32, ptr %8, align 4
%26 = load i32, ptr %9, align 4
%27 = call i32 @chown(ptr noundef %24, i32 noundef %25, i32 noundef %26)
store i32 %27, ptr %11, align 4
br label %28
28: ; preds = %23, %18
%29 = call i32 (...) @dir_mutex_unlock()
%30 = load i32, ptr %11, align 4
ret i32 %30
}
declare i32 @dir_mutex_lock(i32 noundef) #1
declare i32 @lchown(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @chown(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @dir_mutex_unlock(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpsocb7c1m.c'
source_filename = "/tmp/tmpsocb7c1m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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" \09\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @skip_to_blank(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 @skip_to(ptr noundef %3, ptr noundef @.str)
ret void
}
declare i32 @skip_to(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/tmpsocb7c1m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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" \09\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @skip_to_blank(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 @skip_to(ptr noundef %3, ptr noundef @.str)
ret void
}
declare i32 @skip_to(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/tmpxomxrp9z.c'
source_filename = "/tmp/tmpxomxrp9z.c"
target datalayout = "e-m:e-p270: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/tmpxomxrp9z.c"
target datalayout = "e-m:e-p270: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/tmpjnhditi_.c'
source_filename = "/tmp/tmpjnhditi_.c"
target datalayout = "e-m:e-p270: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.diesMes = private unnamed_addr constant [12 x i32] [i32 31, i32 28, i32 31, i32 30, i32 31, i32 30, i32 31, i32 31, i32 30, i32 31, i32 30, i32 31], align 16
@.str = private unnamed_addr constant [30 x i8] c"Introdueix un numero de mes: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"El mes %d t\C3\A9 %d dies\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca [12 x i32], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %7, ptr align 16 @__const.main.diesMes, i64 48, i1 false)
br label %8
8: ; preds = %17, %2
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%10 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %6)
br label %11
11: ; preds = %8
%12 = load i32, ptr %6, align 4
%13 = icmp slt i32 %12, 1
br i1 %13, label %14, label %17
14: ; preds = %11
%15 = load i32, ptr %6, align 4
%16 = icmp sgt i32 %15, 12
br label %17
17: ; preds = %14, %11
%18 = phi i1 [ false, %11 ], [ %16, %14 ]
br i1 %18, label %8, label %19, !llvm.loop !6
19: ; preds = %17
%20 = load i32, ptr %6, align 4
%21 = load i32, ptr %6, align 4
%22 = sub nsw i32 %21, 1
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [12 x i32], ptr %7, i64 0, i64 %23
%25 = load i32, ptr %24, align 4
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %20, i32 noundef %25)
%27 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %27
}
; 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 @scanf(ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjnhditi_.c"
target datalayout = "e-m:e-p270: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.diesMes = private unnamed_addr constant [12 x i32] [i32 31, i32 28, i32 31, i32 30, i32 31, i32 30, i32 31, i32 31, i32 30, i32 31, i32 30, i32 31], align 16
@.str = private unnamed_addr constant [30 x i8] c"Introdueix un numero de mes: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [22 x i8] c"El mes %d t\C3\A9 %d dies\00", align 1
@EXIT_SUCCESS = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca [12 x i32], align 16
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %7, ptr align 16 @__const.main.diesMes, i64 48, i1 false)
br label %8
8: ; preds = %17, %2
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%10 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %6)
br label %11
11: ; preds = %8
%12 = load i32, ptr %6, align 4
%13 = icmp slt i32 %12, 1
br i1 %13, label %14, label %17
14: ; preds = %11
%15 = load i32, ptr %6, align 4
%16 = icmp sgt i32 %15, 12
br label %17
17: ; preds = %14, %11
%18 = phi i1 [ false, %11 ], [ %16, %14 ]
br i1 %18, label %8, label %19, !llvm.loop !6
19: ; preds = %17
%20 = load i32, ptr %6, align 4
%21 = load i32, ptr %6, align 4
%22 = sub nsw i32 %21, 1
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [12 x i32], ptr %7, i64 0, i64 %23
%25 = load i32, ptr %24, align 4
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %20, i32 noundef %25)
%27 = load i32, ptr @EXIT_SUCCESS, align 4
ret i32 %27
}
; 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 @scanf(ptr noundef, ptr noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp8aslsu87.c'
source_filename = "/tmp/tmp8aslsu87.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @menu(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = trunc i32 %3 to i8
%5 = call i32 @keys(i8 noundef zeroext %4, i32 noundef 0, i32 noundef 0)
ret void
}
declare i32 @keys(i8 noundef zeroext, 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/tmp8aslsu87.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @menu(i32 noundef %0) #0 {
%2 = alloca i32, align 4
store i32 %0, ptr %2, align 4
%3 = load i32, ptr %2, align 4
%4 = trunc i32 %3 to i8
%5 = call i32 @keys(i8 noundef zeroext %4, i32 noundef 0, i32 noundef 0)
ret void
}
declare i32 @keys(i8 noundef zeroext, 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/tmp9r77m3b0.c'
source_filename = "/tmp/tmp9r77m3b0.c"
target datalayout = "e-m:e-p270: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/tmp9r77m3b0.c"
target datalayout = "e-m:e-p270: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/tmpo8h2qrfw.c'
source_filename = "/tmp/tmpo8h2qrfw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dt_parse_iso_zone(ptr noundef %0, i64 noundef %1, ptr noundef %2) #0 {
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i64 %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%8 = load i64, ptr %6, align 8
%9 = icmp ult i64 %8, 3
br i1 %9, label %16, label %10
10: ; preds = %3
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds i8, ptr %11, i64 3
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = icmp eq i32 %14, 58
br i1 %15, label %16, label %21
16: ; preds = %10, %3
%17 = load ptr, ptr %5, align 8
%18 = load i64, ptr %6, align 8
%19 = load ptr, ptr %7, align 8
%20 = call i64 @dt_parse_iso_zone_extended(ptr noundef %17, i64 noundef %18, ptr noundef %19)
store i64 %20, ptr %4, align 8
br label %26
21: ; preds = %10
%22 = load ptr, ptr %5, align 8
%23 = load i64, ptr %6, align 8
%24 = load ptr, ptr %7, align 8
%25 = call i64 @dt_parse_iso_zone_basic(ptr noundef %22, i64 noundef %23, ptr noundef %24)
store i64 %25, ptr %4, align 8
br label %26
26: ; preds = %21, %16
%27 = load i64, ptr %4, align 8
ret i64 %27
}
declare i64 @dt_parse_iso_zone_extended(ptr noundef, i64 noundef, ptr noundef) #1
declare i64 @dt_parse_iso_zone_basic(ptr noundef, i64 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/tmpo8h2qrfw.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dt_parse_iso_zone(ptr noundef %0, i64 noundef %1, ptr noundef %2) #0 {
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
%7 = alloca ptr, align 8
store ptr %0, ptr %5, align 8
store i64 %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
%8 = load i64, ptr %6, align 8
%9 = icmp ult i64 %8, 3
br i1 %9, label %16, label %10
10: ; preds = %3
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds i8, ptr %11, i64 3
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = icmp eq i32 %14, 58
br i1 %15, label %16, label %21
16: ; preds = %10, %3
%17 = load ptr, ptr %5, align 8
%18 = load i64, ptr %6, align 8
%19 = load ptr, ptr %7, align 8
%20 = call i64 @dt_parse_iso_zone_extended(ptr noundef %17, i64 noundef %18, ptr noundef %19)
store i64 %20, ptr %4, align 8
br label %26
21: ; preds = %10
%22 = load ptr, ptr %5, align 8
%23 = load i64, ptr %6, align 8
%24 = load ptr, ptr %7, align 8
%25 = call i64 @dt_parse_iso_zone_basic(ptr noundef %22, i64 noundef %23, ptr noundef %24)
store i64 %25, ptr %4, align 8
br label %26
26: ; preds = %21, %16
%27 = load i64, ptr %4, align 8
ret i64 %27
}
declare i64 @dt_parse_iso_zone_extended(ptr noundef, i64 noundef, ptr noundef) #1
declare i64 @dt_parse_iso_zone_basic(ptr noundef, i64 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/tmpc54k63xk.c'
source_filename = "/tmp/tmpc54k63xk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wmemlowercmp(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
br label %10
10: ; preds = %47, %3
%11 = load i64, ptr %7, align 8
%12 = add i64 %11, -1
store i64 %12, ptr %7, align 8
%13 = icmp ne i64 %11, 0
br i1 %13, label %14, label %52
14: ; preds = %10
%15 = load ptr, ptr %5, align 8
%16 = load i64, ptr %15, align 8
%17 = load ptr, ptr %6, align 8
%18 = load i64, ptr %17, align 8
%19 = icmp ne i64 %16, %18
br i1 %19, label %20, label %46
20: ; preds = %14
%21 = load ptr, ptr %5, align 8
%22 = load i64, ptr %21, align 8
%23 = call i64 @iswalpha(i64 noundef %22)
%24 = icmp ne i64 %23, 0
br i1 %24, label %25, label %29
25: ; preds = %20
%26 = load ptr, ptr %5, align 8
%27 = load i64, ptr %26, align 8
%28 = call i64 @towlower(i64 noundef %27)
br label %32
29: ; preds = %20
%30 = load ptr, ptr %5, align 8
%31 = load i64, ptr %30, align 8
br label %32
32: ; preds = %29, %25
%33 = phi i64 [ %28, %25 ], [ %31, %29 ]
store i64 %33, ptr %8, align 8
%34 = load ptr, ptr %6, align 8
%35 = load i64, ptr %34, align 8
store i64 %35, ptr %9, align 8
%36 = load i64, ptr %8, align 8
%37 = load i64, ptr %9, align 8
%38 = icmp ne i64 %36, %37
br i1 %38, label %39, label %45
39: ; preds = %32
%40 = load i64, ptr %8, align 8
%41 = load i64, ptr %9, align 8
%42 = icmp slt i64 %40, %41
%43 = zext i1 %42 to i64
%44 = select i1 %42, i32 -1, i32 1
store i32 %44, ptr %4, align 4
br label %53
45: ; preds = %32
br label %46
46: ; preds = %45, %14
br label %47
47: ; preds = %46
%48 = load ptr, ptr %5, align 8
%49 = getelementptr inbounds i64, ptr %48, i32 1
store ptr %49, ptr %5, align 8
%50 = load ptr, ptr %6, align 8
%51 = getelementptr inbounds i64, ptr %50, i32 1
store ptr %51, ptr %6, align 8
br label %10, !llvm.loop !6
52: ; preds = %10
store i32 0, ptr %4, align 4
br label %53
53: ; preds = %52, %39
%54 = load i32, ptr %4, align 4
ret i32 %54
}
declare i64 @iswalpha(i64 noundef) #1
declare i64 @towlower(i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpc54k63xk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wmemlowercmp(ptr noundef %0, ptr noundef %1, i64 noundef %2) #0 {
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i64, align 8
%9 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
%10 = load i64, ptr %7, align 8
%11 = add i64 %10, -1
store i64 %11, ptr %7, align 8
%12 = icmp ne i64 %10, 0
br i1 %12, label %.lr.ph, label %54
.lr.ph: ; preds = %3
br label %13
13: ; preds = %.lr.ph, %46
%14 = load ptr, ptr %5, align 8
%15 = load i64, ptr %14, align 8
%16 = load ptr, ptr %6, align 8
%17 = load i64, ptr %16, align 8
%18 = icmp ne i64 %15, %17
br i1 %18, label %19, label %45
19: ; preds = %13
%20 = load ptr, ptr %5, align 8
%21 = load i64, ptr %20, align 8
%22 = call i64 @iswalpha(i64 noundef %21)
%23 = icmp ne i64 %22, 0
br i1 %23, label %24, label %28
24: ; preds = %19
%25 = load ptr, ptr %5, align 8
%26 = load i64, ptr %25, align 8
%27 = call i64 @towlower(i64 noundef %26)
br label %31
28: ; preds = %19
%29 = load ptr, ptr %5, align 8
%30 = load i64, ptr %29, align 8
br label %31
31: ; preds = %28, %24
%32 = phi i64 [ %27, %24 ], [ %30, %28 ]
store i64 %32, ptr %8, align 8
%33 = load ptr, ptr %6, align 8
%34 = load i64, ptr %33, align 8
store i64 %34, ptr %9, align 8
%35 = load i64, ptr %8, align 8
%36 = load i64, ptr %9, align 8
%37 = icmp ne i64 %35, %36
br i1 %37, label %38, label %44
38: ; preds = %31
%39 = load i64, ptr %8, align 8
%40 = load i64, ptr %9, align 8
%41 = icmp slt i64 %39, %40
%42 = zext i1 %41 to i64
%43 = select i1 %41, i32 -1, i32 1
store i32 %43, ptr %4, align 4
br label %55
44: ; preds = %31
br label %45
45: ; preds = %44, %13
br label %46
46: ; preds = %45
%47 = load ptr, ptr %5, align 8
%48 = getelementptr inbounds i64, ptr %47, i32 1
store ptr %48, ptr %5, align 8
%49 = load ptr, ptr %6, align 8
%50 = getelementptr inbounds i64, ptr %49, i32 1
store ptr %50, ptr %6, align 8
%51 = load i64, ptr %7, align 8
%52 = add i64 %51, -1
store i64 %52, ptr %7, align 8
%53 = icmp ne i64 %51, 0
br i1 %53, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %46
br label %54
54: ; preds = %._crit_edge, %3
store i32 0, ptr %4, align 4
br label %55
55: ; preds = %54, %38
%56 = load i32, ptr %4, align 4
ret i32 %56
}
declare i64 @iswalpha(i64 noundef) #1
declare i64 @towlower(i64 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpcj5_1_sk.c'
source_filename = "/tmp/tmpcj5_1_sk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"ldx \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @gen_immediate2() #0 {
%1 = call i32 @output_with_tab(ptr noundef @.str)
ret void
}
declare i32 @output_with_tab(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpcj5_1_sk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"ldx \00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @gen_immediate2() #0 {
%1 = call i32 @output_with_tab(ptr noundef @.str)
ret void
}
declare i32 @output_with_tab(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpms0e7xua.c'
source_filename = "/tmp/tmpms0e7xua.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%100s\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%10s\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"=\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%lf\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @readdouble(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 [101 x i8], align 16
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%10 = load ptr, ptr %4, align 8
%11 = getelementptr inbounds [101 x i8], ptr %7, i64 0, i64 0
%12 = call i32 (ptr, ptr, ...) @fscanf(ptr noundef %10, ptr noundef @.str, ptr noundef %11)
store i32 %12, ptr %9, align 4
%13 = load i32, ptr %9, align 4
%14 = icmp ne i32 %13, 1
br i1 %14, label %15, label %17
15: ; preds = %3
%16 = call i32 (...) @quit()
br label %17
17: ; preds = %15, %3
%18 = load ptr, ptr %5, align 8
%19 = getelementptr inbounds [101 x i8], ptr %7, i64 0, i64 0
%20 = call i64 @strcmp(ptr noundef %18, ptr noundef %19)
%21 = icmp ne i64 %20, 0
br i1 %21, label %22, label %24
22: ; preds = %17
%23 = call i32 (...) @quit()
br label %24
24: ; preds = %22, %17
%25 = load ptr, ptr %4, align 8
%26 = getelementptr inbounds [101 x i8], ptr %7, i64 0, i64 0
%27 = call i32 (ptr, ptr, ...) @fscanf(ptr noundef %25, ptr noundef @.str.1, ptr noundef %26)
store i32 %27, ptr %9, align 4
%28 = load i32, ptr %9, align 4
%29 = icmp ne i32 %28, 1
br i1 %29, label %30, label %32
30: ; preds = %24
%31 = call i32 (...) @quit()
br label %32
32: ; preds = %30, %24
%33 = getelementptr inbounds [101 x i8], ptr %7, i64 0, i64 0
%34 = call i64 @strcmp(ptr noundef @.str.2, ptr noundef %33)
%35 = icmp ne i64 %34, 0
br i1 %35, label %36, label %38
36: ; preds = %32
%37 = call i32 (...) @quit()
br label %38
38: ; preds = %36, %32
%39 = load ptr, ptr %4, align 8
%40 = load ptr, ptr %6, align 8
%41 = call i32 (ptr, ptr, ...) @fscanf(ptr noundef %39, ptr noundef @.str.3, ptr noundef %40)
store i32 %41, ptr %9, align 4
%42 = load i32, ptr %9, align 4
%43 = icmp ne i32 %42, 1
br i1 %43, label %44, label %46
44: ; preds = %38
%45 = call i32 (...) @quit()
br label %46
46: ; preds = %44, %38
ret void
}
declare i32 @fscanf(ptr noundef, ptr noundef, ...) #1
declare i32 @quit(...) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpms0e7xua.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%100s\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%10s\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"=\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%lf\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @readdouble(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 [101 x i8], align 16
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%10 = load ptr, ptr %4, align 8
%11 = getelementptr inbounds [101 x i8], ptr %7, i64 0, i64 0
%12 = call i32 (ptr, ptr, ...) @fscanf(ptr noundef %10, ptr noundef @.str, ptr noundef %11)
store i32 %12, ptr %9, align 4
%13 = load i32, ptr %9, align 4
%14 = icmp ne i32 %13, 1
br i1 %14, label %15, label %17
15: ; preds = %3
%16 = call i32 (...) @quit()
br label %17
17: ; preds = %15, %3
%18 = load ptr, ptr %5, align 8
%19 = getelementptr inbounds [101 x i8], ptr %7, i64 0, i64 0
%20 = call i64 @strcmp(ptr noundef %18, ptr noundef %19)
%21 = icmp ne i64 %20, 0
br i1 %21, label %22, label %24
22: ; preds = %17
%23 = call i32 (...) @quit()
br label %24
24: ; preds = %22, %17
%25 = load ptr, ptr %4, align 8
%26 = getelementptr inbounds [101 x i8], ptr %7, i64 0, i64 0
%27 = call i32 (ptr, ptr, ...) @fscanf(ptr noundef %25, ptr noundef @.str.1, ptr noundef %26)
store i32 %27, ptr %9, align 4
%28 = load i32, ptr %9, align 4
%29 = icmp ne i32 %28, 1
br i1 %29, label %30, label %32
30: ; preds = %24
%31 = call i32 (...) @quit()
br label %32
32: ; preds = %30, %24
%33 = getelementptr inbounds [101 x i8], ptr %7, i64 0, i64 0
%34 = call i64 @strcmp(ptr noundef @.str.2, ptr noundef %33)
%35 = icmp ne i64 %34, 0
br i1 %35, label %36, label %38
36: ; preds = %32
%37 = call i32 (...) @quit()
br label %38
38: ; preds = %36, %32
%39 = load ptr, ptr %4, align 8
%40 = load ptr, ptr %6, align 8
%41 = call i32 (ptr, ptr, ...) @fscanf(ptr noundef %39, ptr noundef @.str.3, ptr noundef %40)
store i32 %41, ptr %9, align 4
%42 = load i32, ptr %9, align 4
%43 = icmp ne i32 %42, 1
br i1 %43, label %44, label %46
44: ; preds = %38
%45 = call i32 (...) @quit()
br label %46
46: ; preds = %44, %38
ret void
}
declare i32 @fscanf(ptr noundef, ptr noundef, ...) #1
declare i32 @quit(...) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9admmc09.c'
source_filename = "/tmp/tmp9admmc09.c"
target datalayout = "e-m:e-p270: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/tmp9admmc09.c"
target datalayout = "e-m:e-p270: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/tmppahas8ew.c'
source_filename = "/tmp/tmppahas8ew.c"
target datalayout = "e-m:e-p270: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/tmppahas8ew.c"
target datalayout = "e-m:e-p270: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/tmpoqe3p_wo.c'
source_filename = "/tmp/tmpoqe3p_wo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @util_extract_token(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
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr null, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %15
9: ; preds = %2
%10 = load ptr, ptr %5, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %12, label %14
12: ; preds = %9
%13 = load ptr, ptr %5, align 8
store ptr null, ptr %13, align 8
br label %14
14: ; preds = %12, %9
store ptr null, ptr %3, align 8
br label %67
15: ; preds = %2
br label %16
16: ; preds = %21, %15
%17 = load ptr, ptr %4, align 8
%18 = load i8, ptr %17, align 1
%19 = call i64 @isspace(i8 noundef signext %18)
%20 = icmp ne i64 %19, 0
br i1 %20, label %21, label %24
21: ; preds = %16
%22 = load ptr, ptr %4, align 8
%23 = getelementptr inbounds i8, ptr %22, i32 1
store ptr %23, ptr %4, align 8
br label %16, !llvm.loop !6
24: ; preds = %16
%25 = load ptr, ptr %4, align 8
store ptr %25, ptr %6, align 8
br label %26
26: ; preds = %39, %24
%27 = load ptr, ptr %4, align 8
%28 = load i8, ptr %27, align 1
%29 = sext i8 %28 to i32
%30 = icmp ne i32 %29, 0
br i1 %30, label %31, label %37
31: ; preds = %26
%32 = load ptr, ptr %4, align 8
%33 = load i8, ptr %32, align 1
%34 = call i64 @isspace(i8 noundef signext %33)
%35 = icmp ne i64 %34, 0
%36 = xor i1 %35, true
br label %37
37: ; preds = %31, %26
%38 = phi i1 [ false, %26 ], [ %36, %31 ]
br i1 %38, label %39, label %42
39: ; preds = %37
%40 = load ptr, ptr %4, align 8
%41 = getelementptr inbounds i8, ptr %40, i32 1
store ptr %41, ptr %4, align 8
br label %26, !llvm.loop !8
42: ; preds = %37
%43 = load ptr, ptr %4, align 8
%44 = load i8, ptr %43, align 1
%45 = icmp ne i8 %44, 0
br i1 %45, label %46, label %59
46: ; preds = %42
%47 = load ptr, ptr %4, align 8
store i8 0, ptr %47, align 1
%48 = load ptr, ptr %4, align 8
%49 = getelementptr inbounds i8, ptr %48, i32 1
store ptr %49, ptr %4, align 8
br label %50
50: ; preds = %55, %46
%51 = load ptr, ptr %4, align 8
%52 = load i8, ptr %51, align 1
%53 = call i64 @isspace(i8 noundef signext %52)
%54 = icmp ne i64 %53, 0
br i1 %54, label %55, label %58
55: ; preds = %50
%56 = load ptr, ptr %4, align 8
%57 = getelementptr inbounds i8, ptr %56, i32 1
store ptr %57, ptr %4, align 8
br label %50, !llvm.loop !9
58: ; preds = %50
br label %59
59: ; preds = %58, %42
%60 = load ptr, ptr %5, align 8
%61 = icmp ne ptr %60, null
br i1 %61, label %62, label %65
62: ; preds = %59
%63 = load ptr, ptr %4, align 8
%64 = load ptr, ptr %5, align 8
store ptr %63, ptr %64, align 8
br label %65
65: ; preds = %62, %59
%66 = load ptr, ptr %6, align 8
store ptr %66, ptr %3, align 8
br label %67
67: ; preds = %65, %14
%68 = load ptr, ptr %3, align 8
ret ptr %68
}
declare i64 @isspace(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}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpoqe3p_wo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @util_extract_token(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
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr null, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = icmp eq ptr %7, null
br i1 %8, label %9, label %15
9: ; preds = %2
%10 = load ptr, ptr %5, align 8
%11 = icmp ne ptr %10, null
br i1 %11, label %12, label %14
12: ; preds = %9
%13 = load ptr, ptr %5, align 8
store ptr null, ptr %13, align 8
br label %14
14: ; preds = %12, %9
store ptr null, ptr %3, align 8
br label %73
15: ; preds = %2
%16 = load ptr, ptr %4, align 8
%17 = load i8, ptr %16, align 1
%18 = call i64 @isspace(i8 noundef signext %17)
%19 = icmp ne i64 %18, 0
br i1 %19, label %.lr.ph, label %27
.lr.ph: ; preds = %15
br label %20
20: ; preds = %.lr.ph, %20
%21 = load ptr, ptr %4, align 8
%22 = getelementptr inbounds i8, ptr %21, i32 1
store ptr %22, ptr %4, align 8
%23 = load ptr, ptr %4, align 8
%24 = load i8, ptr %23, align 1
%25 = call i64 @isspace(i8 noundef signext %24)
%26 = icmp ne i64 %25, 0
br i1 %26, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %20
br label %27
27: ; preds = %._crit_edge, %15
%28 = load ptr, ptr %4, align 8
store ptr %28, ptr %6, align 8
br label %29
29: ; preds = %42, %27
%30 = load ptr, ptr %4, align 8
%31 = load i8, ptr %30, align 1
%32 = sext i8 %31 to i32
%33 = icmp ne i32 %32, 0
br i1 %33, label %34, label %40
34: ; preds = %29
%35 = load ptr, ptr %4, align 8
%36 = load i8, ptr %35, align 1
%37 = call i64 @isspace(i8 noundef signext %36)
%38 = icmp ne i64 %37, 0
%39 = xor i1 %38, true
br label %40
40: ; preds = %34, %29
%41 = phi i1 [ false, %29 ], [ %39, %34 ]
br i1 %41, label %42, label %45
42: ; preds = %40
%43 = load ptr, ptr %4, align 8
%44 = getelementptr inbounds i8, ptr %43, i32 1
store ptr %44, ptr %4, align 8
br label %29, !llvm.loop !8
45: ; preds = %40
%46 = load ptr, ptr %4, align 8
%47 = load i8, ptr %46, align 1
%48 = icmp ne i8 %47, 0
br i1 %48, label %49, label %65
49: ; preds = %45
%50 = load ptr, ptr %4, align 8
store i8 0, ptr %50, align 1
%51 = load ptr, ptr %4, align 8
%52 = getelementptr inbounds i8, ptr %51, i32 1
store ptr %52, ptr %4, align 8
%53 = load ptr, ptr %4, align 8
%54 = load i8, ptr %53, align 1
%55 = call i64 @isspace(i8 noundef signext %54)
%56 = icmp ne i64 %55, 0
br i1 %56, label %.lr.ph2, label %64
.lr.ph2: ; preds = %49
br label %57
57: ; preds = %.lr.ph2, %57
%58 = load ptr, ptr %4, align 8
%59 = getelementptr inbounds i8, ptr %58, i32 1
store ptr %59, ptr %4, align 8
%60 = load ptr, ptr %4, align 8
%61 = load i8, ptr %60, align 1
%62 = call i64 @isspace(i8 noundef signext %61)
%63 = icmp ne i64 %62, 0
br i1 %63, label %57, label %._crit_edge3, !llvm.loop !9
._crit_edge3: ; preds = %57
br label %64
64: ; preds = %._crit_edge3, %49
br label %65
65: ; preds = %64, %45
%66 = load ptr, ptr %5, align 8
%67 = icmp ne ptr %66, null
br i1 %67, label %68, label %71
68: ; preds = %65
%69 = load ptr, ptr %4, align 8
%70 = load ptr, ptr %5, align 8
store ptr %69, ptr %70, align 8
br label %71
71: ; preds = %68, %65
%72 = load ptr, ptr %6, align 8
store ptr %72, ptr %3, align 8
br label %73
73: ; preds = %71, %14
%74 = load ptr, ptr %3, align 8
ret ptr %74
}
declare i64 @isspace(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}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpywwjhai7.c'
source_filename = "/tmp/tmpywwjhai7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0A enter number=\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"\0A%d\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%d\09\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [20 x [20 x i32]], align 16
%3 = alloca [20 x [20 x i32]], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %4, align 4
br label %8
8: ; preds = %28, %0
%9 = load i32, ptr %4, align 4
%10 = icmp slt i32 %9, 4
br i1 %10, label %11, label %31
11: ; preds = %8
store i32 0, ptr %5, align 4
br label %12
12: ; preds = %24, %11
%13 = load i32, ptr %5, align 4
%14 = icmp slt i32 %13, 4
br i1 %14, label %15, label %27
15: ; preds = %12
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%17 = load i32, ptr %4, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [20 x [20 x i32]], ptr %2, i64 0, i64 %18
%20 = load i32, ptr %5, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [20 x i32], ptr %19, i64 0, i64 %21
%23 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %22)
br label %24
24: ; preds = %15
%25 = load i32, ptr %5, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %5, align 4
br label %12, !llvm.loop !6
27: ; preds = %12
br label %28
28: ; preds = %27
%29 = load i32, ptr %4, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %4, align 4
br label %8, !llvm.loop !8
31: ; preds = %8
%32 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %4, align 4
br label %36
36: ; preds = %61, %31
%37 = load i32, ptr %4, align 4
%38 = icmp slt i32 %37, 4
br i1 %38, label %39, label %64
39: ; preds = %36
store i32 0, ptr %5, align 4
br label %40
40: ; preds = %57, %39
%41 = load i32, ptr %5, align 4
%42 = icmp slt i32 %41, 4
br i1 %42, label %43, label %60
43: ; preds = %40
%44 = load i32, ptr %4, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [20 x [20 x i32]], ptr %2, i64 0, i64 %45
%47 = load i32, ptr %5, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [20 x i32], ptr %46, i64 0, i64 %48
%50 = load i32, ptr %49, align 4
%51 = load i32, ptr %5, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [20 x [20 x i32]], ptr %3, i64 0, i64 %52
%54 = load i32, ptr %4, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [20 x i32], ptr %53, i64 0, i64 %55
store i32 %50, ptr %56, align 4
br label %57
57: ; preds = %43
%58 = load i32, ptr %5, align 4
%59 = add nsw i32 %58, 1
store i32 %59, ptr %5, align 4
br label %40, !llvm.loop !9
60: ; preds = %40
br label %61
61: ; preds = %60
%62 = load i32, ptr %4, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %4, align 4
br label %36, !llvm.loop !10
64: ; preds = %36
store i32 0, ptr %4, align 4
br label %65
65: ; preds = %86, %64
%66 = load i32, ptr %4, align 4
%67 = icmp slt i32 %66, 4
br i1 %67, label %68, label %89
68: ; preds = %65
store i32 0, ptr %5, align 4
br label %69
69: ; preds = %81, %68
%70 = load i32, ptr %5, align 4
%71 = icmp slt i32 %70, 4
br i1 %71, label %72, label %84
72: ; preds = %69
%73 = load i32, ptr %4, align 4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [20 x [20 x i32]], ptr %3, i64 0, i64 %74
%76 = load i32, ptr %5, align 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds [20 x i32], ptr %75, i64 0, i64 %77
%79 = load i32, ptr %78, align 4
%80 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %79)
br label %81
81: ; preds = %72
%82 = load i32, ptr %5, align 4
%83 = add nsw i32 %82, 1
store i32 %83, ptr %5, align 4
br label %69, !llvm.loop !11
84: ; preds = %69
%85 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %86
86: ; preds = %84
%87 = load i32, ptr %4, align 4
%88 = add nsw i32 %87, 1
store i32 %88, ptr %4, align 4
br label %65, !llvm.loop !12
89: ; preds = %65
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!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/tmpywwjhai7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0A enter number=\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"\0A%d\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"%d\09\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [20 x [20 x i32]], align 16
%3 = alloca [20 x [20 x i32]], align 16
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %4, align 4
store i32 0, ptr %5, align 4
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
store i32 0, ptr %4, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %8, 4
br i1 %9, label %.lr.ph2, label %33
.lr.ph2: ; preds = %0
br label %10
10: ; preds = %.lr.ph2, %28
store i32 0, ptr %5, align 4
%11 = load i32, ptr %5, align 4
%12 = icmp slt i32 %11, 4
br i1 %12, label %.lr.ph, label %27
.lr.ph: ; preds = %10
br label %13
13: ; preds = %.lr.ph, %22
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%15 = load i32, ptr %4, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [20 x [20 x i32]], ptr %2, i64 0, i64 %16
%18 = load i32, ptr %5, align 4
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [20 x i32], ptr %17, i64 0, i64 %19
%21 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %20)
br label %22
22: ; preds = %13
%23 = load i32, ptr %5, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %5, align 4
%25 = load i32, ptr %5, align 4
%26 = icmp slt i32 %25, 4
br i1 %26, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %22
br label %27
27: ; preds = %._crit_edge, %10
br label %28
28: ; preds = %27
%29 = load i32, ptr %4, align 4
%30 = add nsw i32 %29, 1
store i32 %30, ptr %4, align 4
%31 = load i32, ptr %4, align 4
%32 = icmp slt i32 %31, 4
br i1 %32, label %10, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %28
br label %33
33: ; preds = %._crit_edge3, %0
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %4, align 4
%38 = load i32, ptr %4, align 4
%39 = icmp slt i32 %38, 4
br i1 %39, label %.lr.ph8, label %68
.lr.ph8: ; preds = %33
br label %40
40: ; preds = %.lr.ph8, %63
store i32 0, ptr %5, align 4
%41 = load i32, ptr %5, align 4
%42 = icmp slt i32 %41, 4
br i1 %42, label %.lr.ph5, label %62
.lr.ph5: ; preds = %40
br label %43
43: ; preds = %.lr.ph5, %57
%44 = load i32, ptr %4, align 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [20 x [20 x i32]], ptr %2, i64 0, i64 %45
%47 = load i32, ptr %5, align 4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [20 x i32], ptr %46, i64 0, i64 %48
%50 = load i32, ptr %49, align 4
%51 = load i32, ptr %5, align 4
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [20 x [20 x i32]], ptr %3, i64 0, i64 %52
%54 = load i32, ptr %4, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [20 x i32], ptr %53, i64 0, i64 %55
store i32 %50, ptr %56, align 4
br label %57
57: ; preds = %43
%58 = load i32, ptr %5, align 4
%59 = add nsw i32 %58, 1
store i32 %59, ptr %5, align 4
%60 = load i32, ptr %5, align 4
%61 = icmp slt i32 %60, 4
br i1 %61, label %43, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %57
br label %62
62: ; preds = %._crit_edge6, %40
br label %63
63: ; preds = %62
%64 = load i32, ptr %4, align 4
%65 = add nsw i32 %64, 1
store i32 %65, ptr %4, align 4
%66 = load i32, ptr %4, align 4
%67 = icmp slt i32 %66, 4
br i1 %67, label %40, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %63
br label %68
68: ; preds = %._crit_edge9, %33
store i32 0, ptr %4, align 4
%69 = load i32, ptr %4, align 4
%70 = icmp slt i32 %69, 4
br i1 %70, label %.lr.ph14, label %95
.lr.ph14: ; preds = %68
br label %71
71: ; preds = %.lr.ph14, %90
store i32 0, ptr %5, align 4
%72 = load i32, ptr %5, align 4
%73 = icmp slt i32 %72, 4
br i1 %73, label %.lr.ph11, label %88
.lr.ph11: ; preds = %71
br label %74
74: ; preds = %.lr.ph11, %83
%75 = load i32, ptr %4, align 4
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds [20 x [20 x i32]], ptr %3, i64 0, i64 %76
%78 = load i32, ptr %5, align 4
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds [20 x i32], ptr %77, i64 0, i64 %79
%81 = load i32, ptr %80, align 4
%82 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %81)
br label %83
83: ; preds = %74
%84 = load i32, ptr %5, align 4
%85 = add nsw i32 %84, 1
store i32 %85, ptr %5, align 4
%86 = load i32, ptr %5, align 4
%87 = icmp slt i32 %86, 4
br i1 %87, label %74, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %83
br label %88
88: ; preds = %._crit_edge12, %71
%89 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %90
90: ; preds = %88
%91 = load i32, ptr %4, align 4
%92 = add nsw i32 %91, 1
store i32 %92, ptr %4, align 4
%93 = load i32, ptr %4, align 4
%94 = icmp slt i32 %93, 4
br i1 %94, label %71, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %90
br label %95
95: ; preds = %._crit_edge15, %68
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
|
; ModuleID = '/tmp/tmpoajk6dcx.c'
source_filename = "/tmp/tmpoajk6dcx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"&p[%d]: %p \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @imprime_direccion(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %6, align 4
%11 = mul nsw i32 %9, %10
store i32 %11, ptr %7, align 4
store i32 0, ptr %8, align 4
br label %12
12: ; preds = %25, %3
%13 = load i32, ptr %8, align 4
%14 = load i32, ptr %7, align 4
%15 = icmp slt i32 %13, %14
br i1 %15, label %16, label %28
16: ; preds = %12
%17 = load i32, ptr %8, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %8, align 4
%19 = load i32, ptr %8, align 4
%20 = load ptr, ptr %4, align 8
%21 = load i32, ptr %8, align 4
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i32, ptr %20, i64 %22
%24 = call i32 @printf(ptr noundef @.str, i32 noundef %19, ptr noundef %23)
br label %25
25: ; preds = %16
%26 = load i32, ptr %8, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %8, align 4
br label %12, !llvm.loop !6
28: ; preds = %12
ret void
}
declare i32 @printf(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpoajk6dcx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"&p[%d]: %p \0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @imprime_direccion(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %6, align 4
%11 = mul nsw i32 %9, %10
store i32 %11, ptr %7, align 4
store i32 0, ptr %8, align 4
%12 = load i32, ptr %8, align 4
%13 = load i32, ptr %7, align 4
%14 = icmp slt i32 %12, %13
br i1 %14, label %.lr.ph, label %30
.lr.ph: ; preds = %3
br label %15
15: ; preds = %.lr.ph, %24
%16 = load i32, ptr %8, align 4
%17 = add nsw i32 %16, 1
store i32 %17, ptr %8, align 4
%18 = load i32, ptr %8, align 4
%19 = load ptr, ptr %4, align 8
%20 = load i32, ptr %8, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i32, ptr %19, i64 %21
%23 = call i32 @printf(ptr noundef @.str, i32 noundef %18, ptr noundef %22)
br label %24
24: ; preds = %15
%25 = load i32, ptr %8, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %8, align 4
%27 = load i32, ptr %8, align 4
%28 = load i32, ptr %7, align 4
%29 = icmp slt i32 %27, %28
br i1 %29, label %15, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %24
br label %30
30: ; preds = %._crit_edge, %3
ret void
}
declare i32 @printf(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"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp5wt1qft7.c'
source_filename = "/tmp/tmp5wt1qft7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wcsxfrm(ptr noalias noundef %0, ptr noalias noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = load i64, ptr %6, align 8
%10 = call i64 @__wcsxfrm_l(ptr noundef %7, ptr noundef %8, i64 noundef %9, i32 noundef 0)
ret i64 %10
}
declare i64 @__wcsxfrm_l(ptr noundef, ptr noundef, i64 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/tmp5wt1qft7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @wcsxfrm(ptr noalias noundef %0, ptr noalias noundef %1, i64 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i64, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i64 %2, ptr %6, align 8
%7 = load ptr, ptr %4, align 8
%8 = load ptr, ptr %5, align 8
%9 = load i64, ptr %6, align 8
%10 = call i64 @__wcsxfrm_l(ptr noundef %7, ptr noundef %8, i64 noundef %9, i32 noundef 0)
ret i64 %10
}
declare i64 @__wcsxfrm_l(ptr noundef, ptr noundef, i64 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/tmpju217wgd.c'
source_filename = "/tmp/tmpju217wgd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"Digite um valor para o x \0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"Digie um valor para o y \0A\00", align 1
@.str.3 = private unnamed_addr constant [29 x i8] c"O valor digitado \C3\A9 invalido\00", align 1
@.str.4 = private unnamed_addr constant [15 x i8] c"O valor \C3\A9 %f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
store i32 0, ptr %1, align 4
store float 1.800000e+02, ptr %2, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%8 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %4)
%9 = load float, ptr %3, align 4
%10 = fcmp oeq float %9, 0.000000e+00
br i1 %10, label %11, label %16
11: ; preds = %0
%12 = load float, ptr %4, align 4
%13 = fcmp oeq float %12, 0.000000e+00
br i1 %13, label %14, label %16
14: ; preds = %11
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %30
16: ; preds = %11, %0
%17 = load float, ptr %3, align 4
%18 = fcmp oge float %17, 0.000000e+00
br i1 %18, label %19, label %27
19: ; preds = %16
%20 = load float, ptr %4, align 4
%21 = fcmp oge float %20, 0.000000e+00
br i1 %21, label %22, label %27
22: ; preds = %19
%23 = load float, ptr %3, align 4
%24 = load float, ptr %4, align 4
%25 = call double @alfa(float noundef %23, float noundef %24)
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %25)
br label %29
27: ; preds = %19, %16
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %29
29: ; preds = %27, %22
br label %30
30: ; preds = %29, %14
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare double @alfa(float noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpju217wgd.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [27 x i8] c"Digite um valor para o x \0A\00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.2 = private unnamed_addr constant [26 x i8] c"Digie um valor para o y \0A\00", align 1
@.str.3 = private unnamed_addr constant [29 x i8] c"O valor digitado \C3\A9 invalido\00", align 1
@.str.4 = private unnamed_addr constant [15 x i8] c"O valor \C3\A9 %f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca float, align 4
%3 = alloca float, align 4
%4 = alloca float, align 4
store i32 0, ptr %1, align 4
store float 1.800000e+02, ptr %2, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%6 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %3)
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%8 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %4)
%9 = load float, ptr %3, align 4
%10 = fcmp oeq float %9, 0.000000e+00
br i1 %10, label %11, label %16
11: ; preds = %0
%12 = load float, ptr %4, align 4
%13 = fcmp oeq float %12, 0.000000e+00
br i1 %13, label %14, label %16
14: ; preds = %11
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %30
16: ; preds = %11, %0
%17 = load float, ptr %3, align 4
%18 = fcmp oge float %17, 0.000000e+00
br i1 %18, label %19, label %27
19: ; preds = %16
%20 = load float, ptr %4, align 4
%21 = fcmp oge float %20, 0.000000e+00
br i1 %21, label %22, label %27
22: ; preds = %19
%23 = load float, ptr %3, align 4
%24 = load float, ptr %4, align 4
%25 = call double @alfa(float noundef %23, float noundef %24)
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %25)
br label %29
27: ; preds = %19, %16
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %29
29: ; preds = %27, %22
br label %30
30: ; preds = %29, %14
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare double @alfa(float noundef, float noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp0u3rb6kf.c'
source_filename = "/tmp/tmp0u3rb6kf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @size_t_sort2(ptr noundef %0, ptr noundef %1, i64 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca ptr, align 8
%12 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%13 = load i64, ptr %7, align 8
%14 = call ptr @llvm.stacksave()
store ptr %14, ptr %11, align 8
%15 = alloca i32, i64 %13, align 16
store i64 %13, ptr %12, align 8
store i64 0, ptr %9, align 8
br label %16
16: ; preds = %27, %4
%17 = load i64, ptr %9, align 8
%18 = load i64, ptr %7, align 8
%19 = icmp ult i64 %17, %18
br i1 %19, label %20, label %30
20: ; preds = %16
%21 = load ptr, ptr %6, align 8
%22 = load i64, ptr %9, align 8
%23 = getelementptr inbounds i32, ptr %21, i64 %22
%24 = load i32, ptr %23, align 4
%25 = load i64, ptr %9, align 8
%26 = getelementptr inbounds i32, ptr %15, i64 %25
store i32 %24, ptr %26, align 4
br label %27
27: ; preds = %20
%28 = load i64, ptr %9, align 8
%29 = add i64 %28, 1
store i64 %29, ptr %9, align 8
br label %16, !llvm.loop !6
30: ; preds = %16
%31 = load i32, ptr %8, align 4
%32 = icmp ne i32 %31, 0
br i1 %32, label %33, label %75
33: ; preds = %30
store i64 0, ptr %9, align 8
br label %34
34: ; preds = %71, %33
%35 = load i64, ptr %9, align 8
%36 = load i64, ptr %7, align 8
%37 = sub i64 %36, 1
%38 = icmp ult i64 %35, %37
br i1 %38, label %39, label %74
39: ; preds = %34
store i64 0, ptr %10, align 8
br label %40
40: ; preds = %67, %39
%41 = load i64, ptr %10, align 8
%42 = load i64, ptr %7, align 8
%43 = load i64, ptr %9, align 8
%44 = sub i64 %42, %43
%45 = sub i64 %44, 1
%46 = icmp ult i64 %41, %45
br i1 %46, label %47, label %70
47: ; preds = %40
%48 = load i64, ptr %10, align 8
%49 = getelementptr inbounds i32, ptr %15, i64 %48
%50 = load i32, ptr %49, align 4
%51 = load i64, ptr %10, align 8
%52 = add i64 %51, 1
%53 = getelementptr inbounds i32, ptr %15, i64 %52
%54 = load i32, ptr %53, align 4
%55 = icmp sgt i32 %50, %54
br i1 %55, label %56, label %66
56: ; preds = %47
%57 = load i64, ptr %10, align 8
%58 = load i64, ptr %10, align 8
%59 = add i64 %58, 1
%60 = load ptr, ptr %5, align 8
%61 = call i32 @size_t_swap(i64 noundef %57, i64 noundef %59, ptr noundef %60)
%62 = load i64, ptr %10, align 8
%63 = load i64, ptr %10, align 8
%64 = add i64 %63, 1
%65 = call i32 @int_swap(i64 noundef %62, i64 noundef %64, ptr noundef %15)
br label %66
66: ; preds = %56, %47
br label %67
67: ; preds = %66
%68 = load i64, ptr %10, align 8
%69 = add i64 %68, 1
store i64 %69, ptr %10, align 8
br label %40, !llvm.loop !8
70: ; preds = %40
br label %71
71: ; preds = %70
%72 = load i64, ptr %9, align 8
%73 = add i64 %72, 1
store i64 %73, ptr %9, align 8
br label %34, !llvm.loop !9
74: ; preds = %34
br label %117
75: ; preds = %30
store i64 0, ptr %9, align 8
br label %76
76: ; preds = %113, %75
%77 = load i64, ptr %9, align 8
%78 = load i64, ptr %7, align 8
%79 = sub i64 %78, 1
%80 = icmp ult i64 %77, %79
br i1 %80, label %81, label %116
81: ; preds = %76
store i64 0, ptr %10, align 8
br label %82
82: ; preds = %109, %81
%83 = load i64, ptr %10, align 8
%84 = load i64, ptr %7, align 8
%85 = load i64, ptr %9, align 8
%86 = sub i64 %84, %85
%87 = sub i64 %86, 1
%88 = icmp ult i64 %83, %87
br i1 %88, label %89, label %112
89: ; preds = %82
%90 = load i64, ptr %10, align 8
%91 = getelementptr inbounds i32, ptr %15, i64 %90
%92 = load i32, ptr %91, align 4
%93 = load i64, ptr %10, align 8
%94 = add i64 %93, 1
%95 = getelementptr inbounds i32, ptr %15, i64 %94
%96 = load i32, ptr %95, align 4
%97 = icmp slt i32 %92, %96
br i1 %97, label %98, label %108
98: ; preds = %89
%99 = load i64, ptr %10, align 8
%100 = load i64, ptr %10, align 8
%101 = add i64 %100, 1
%102 = load ptr, ptr %5, align 8
%103 = call i32 @size_t_swap(i64 noundef %99, i64 noundef %101, ptr noundef %102)
%104 = load i64, ptr %10, align 8
%105 = load i64, ptr %10, align 8
%106 = add i64 %105, 1
%107 = call i32 @int_swap(i64 noundef %104, i64 noundef %106, ptr noundef %15)
br label %108
108: ; preds = %98, %89
br label %109
109: ; preds = %108
%110 = load i64, ptr %10, align 8
%111 = add i64 %110, 1
store i64 %111, ptr %10, align 8
br label %82, !llvm.loop !10
112: ; preds = %82
br label %113
113: ; preds = %112
%114 = load i64, ptr %9, align 8
%115 = add i64 %114, 1
store i64 %115, ptr %9, align 8
br label %76, !llvm.loop !11
116: ; preds = %76
br label %117
117: ; preds = %116, %74
%118 = load ptr, ptr %11, align 8
call void @llvm.stackrestore(ptr %118)
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @size_t_swap(i64 noundef, i64 noundef, ptr noundef) #2
declare i32 @int_swap(i64 noundef, i64 noundef, ptr noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0u3rb6kf.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @size_t_sort2(ptr noundef %0, ptr noundef %1, i64 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i64, align 8
%8 = alloca i32, align 4
%9 = alloca i64, align 8
%10 = alloca i64, align 8
%11 = alloca ptr, align 8
%12 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store i64 %2, ptr %7, align 8
store i32 %3, ptr %8, align 4
%13 = load i64, ptr %7, align 8
%14 = call ptr @llvm.stacksave()
store ptr %14, ptr %11, align 8
%15 = alloca i32, i64 %13, align 16
store i64 %13, ptr %12, align 8
store i64 0, ptr %9, align 8
%16 = load i64, ptr %9, align 8
%17 = load i64, ptr %7, align 8
%18 = icmp ult i64 %16, %17
br i1 %18, label %.lr.ph, label %32
.lr.ph: ; preds = %4
br label %19
19: ; preds = %.lr.ph, %26
%20 = load ptr, ptr %6, align 8
%21 = load i64, ptr %9, align 8
%22 = getelementptr inbounds i32, ptr %20, i64 %21
%23 = load i32, ptr %22, align 4
%24 = load i64, ptr %9, align 8
%25 = getelementptr inbounds i32, ptr %15, i64 %24
store i32 %23, ptr %25, align 4
br label %26
26: ; preds = %19
%27 = load i64, ptr %9, align 8
%28 = add i64 %27, 1
store i64 %28, ptr %9, align 8
%29 = load i64, ptr %9, align 8
%30 = load i64, ptr %7, align 8
%31 = icmp ult i64 %29, %30
br i1 %31, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %26
br label %32
32: ; preds = %._crit_edge, %4
%33 = load i32, ptr %8, align 4
%34 = icmp ne i32 %33, 0
br i1 %34, label %35, label %85
35: ; preds = %32
store i64 0, ptr %9, align 8
%36 = load i64, ptr %9, align 8
%37 = load i64, ptr %7, align 8
%38 = sub i64 %37, 1
%39 = icmp ult i64 %36, %38
br i1 %39, label %.lr.ph11, label %84
.lr.ph11: ; preds = %35
br label %40
40: ; preds = %.lr.ph11, %77
store i64 0, ptr %10, align 8
%41 = load i64, ptr %10, align 8
%42 = load i64, ptr %7, align 8
%43 = load i64, ptr %9, align 8
%44 = sub i64 %42, %43
%45 = sub i64 %44, 1
%46 = icmp ult i64 %41, %45
br i1 %46, label %.lr.ph8, label %76
.lr.ph8: ; preds = %40
br label %47
47: ; preds = %.lr.ph8, %67
%48 = load i64, ptr %10, align 8
%49 = getelementptr inbounds i32, ptr %15, i64 %48
%50 = load i32, ptr %49, align 4
%51 = load i64, ptr %10, align 8
%52 = add i64 %51, 1
%53 = getelementptr inbounds i32, ptr %15, i64 %52
%54 = load i32, ptr %53, align 4
%55 = icmp sgt i32 %50, %54
br i1 %55, label %56, label %66
56: ; preds = %47
%57 = load i64, ptr %10, align 8
%58 = load i64, ptr %10, align 8
%59 = add i64 %58, 1
%60 = load ptr, ptr %5, align 8
%61 = call i32 @size_t_swap(i64 noundef %57, i64 noundef %59, ptr noundef %60)
%62 = load i64, ptr %10, align 8
%63 = load i64, ptr %10, align 8
%64 = add i64 %63, 1
%65 = call i32 @int_swap(i64 noundef %62, i64 noundef %64, ptr noundef %15)
br label %66
66: ; preds = %56, %47
br label %67
67: ; preds = %66
%68 = load i64, ptr %10, align 8
%69 = add i64 %68, 1
store i64 %69, ptr %10, align 8
%70 = load i64, ptr %10, align 8
%71 = load i64, ptr %7, align 8
%72 = load i64, ptr %9, align 8
%73 = sub i64 %71, %72
%74 = sub i64 %73, 1
%75 = icmp ult i64 %70, %74
br i1 %75, label %47, label %._crit_edge9, !llvm.loop !8
._crit_edge9: ; preds = %67
br label %76
76: ; preds = %._crit_edge9, %40
br label %77
77: ; preds = %76
%78 = load i64, ptr %9, align 8
%79 = add i64 %78, 1
store i64 %79, ptr %9, align 8
%80 = load i64, ptr %9, align 8
%81 = load i64, ptr %7, align 8
%82 = sub i64 %81, 1
%83 = icmp ult i64 %80, %82
br i1 %83, label %40, label %._crit_edge12, !llvm.loop !9
._crit_edge12: ; preds = %77
br label %84
84: ; preds = %._crit_edge12, %35
br label %135
85: ; preds = %32
store i64 0, ptr %9, align 8
%86 = load i64, ptr %9, align 8
%87 = load i64, ptr %7, align 8
%88 = sub i64 %87, 1
%89 = icmp ult i64 %86, %88
br i1 %89, label %.lr.ph5, label %134
.lr.ph5: ; preds = %85
br label %90
90: ; preds = %.lr.ph5, %127
store i64 0, ptr %10, align 8
%91 = load i64, ptr %10, align 8
%92 = load i64, ptr %7, align 8
%93 = load i64, ptr %9, align 8
%94 = sub i64 %92, %93
%95 = sub i64 %94, 1
%96 = icmp ult i64 %91, %95
br i1 %96, label %.lr.ph2, label %126
.lr.ph2: ; preds = %90
br label %97
97: ; preds = %.lr.ph2, %117
%98 = load i64, ptr %10, align 8
%99 = getelementptr inbounds i32, ptr %15, i64 %98
%100 = load i32, ptr %99, align 4
%101 = load i64, ptr %10, align 8
%102 = add i64 %101, 1
%103 = getelementptr inbounds i32, ptr %15, i64 %102
%104 = load i32, ptr %103, align 4
%105 = icmp slt i32 %100, %104
br i1 %105, label %106, label %116
106: ; preds = %97
%107 = load i64, ptr %10, align 8
%108 = load i64, ptr %10, align 8
%109 = add i64 %108, 1
%110 = load ptr, ptr %5, align 8
%111 = call i32 @size_t_swap(i64 noundef %107, i64 noundef %109, ptr noundef %110)
%112 = load i64, ptr %10, align 8
%113 = load i64, ptr %10, align 8
%114 = add i64 %113, 1
%115 = call i32 @int_swap(i64 noundef %112, i64 noundef %114, ptr noundef %15)
br label %116
116: ; preds = %106, %97
br label %117
117: ; preds = %116
%118 = load i64, ptr %10, align 8
%119 = add i64 %118, 1
store i64 %119, ptr %10, align 8
%120 = load i64, ptr %10, align 8
%121 = load i64, ptr %7, align 8
%122 = load i64, ptr %9, align 8
%123 = sub i64 %121, %122
%124 = sub i64 %123, 1
%125 = icmp ult i64 %120, %124
br i1 %125, label %97, label %._crit_edge3, !llvm.loop !10
._crit_edge3: ; preds = %117
br label %126
126: ; preds = %._crit_edge3, %90
br label %127
127: ; preds = %126
%128 = load i64, ptr %9, align 8
%129 = add i64 %128, 1
store i64 %129, ptr %9, align 8
%130 = load i64, ptr %9, align 8
%131 = load i64, ptr %7, align 8
%132 = sub i64 %131, 1
%133 = icmp ult i64 %130, %132
br i1 %133, label %90, label %._crit_edge6, !llvm.loop !11
._crit_edge6: ; preds = %127
br label %134
134: ; preds = %._crit_edge6, %85
br label %135
135: ; preds = %134, %84
%136 = load ptr, ptr %11, align 8
call void @llvm.stackrestore(ptr %136)
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #1
declare i32 @size_t_swap(i64 noundef, i64 noundef, ptr noundef) #2
declare i32 @int_swap(i64 noundef, i64 noundef, ptr noundef) #2
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
|
; ModuleID = '/tmp/tmpq4l6ysww.c'
source_filename = "/tmp/tmpq4l6ysww.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pg_finfo_oidcheckfunc() #0 {
%1 = call ptr (...) @GppcFinfoV1()
ret ptr %1
}
declare ptr @GppcFinfoV1(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpq4l6ysww.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @pg_finfo_oidcheckfunc() #0 {
%1 = call ptr (...) @GppcFinfoV1()
ret ptr %1
}
declare ptr @GppcFinfoV1(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3bjsx8_q.c'
source_filename = "/tmp/tmp3bjsx8_q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mcurses_border(i8 noundef signext %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i8, align 1
store i8 %0, ptr %3, align 1
%4 = load i8, ptr %3, align 1
%5 = call i32 @mcurses_hline(i32 noundef 0, i8 noundef signext %4)
%6 = load i8, ptr %3, align 1
%7 = call i32 @mcurses_hline(i32 noundef 15, i8 noundef signext %6)
%8 = load i8, ptr %3, align 1
%9 = call i32 @mcurses_vline(i32 noundef 0, i8 noundef signext %8)
%10 = load i8, ptr %3, align 1
%11 = call i32 @mcurses_vline(i32 noundef 15, i8 noundef signext %10)
%12 = load i32, ptr %2, align 4
ret i32 %12
}
declare i32 @mcurses_hline(i32 noundef, i8 noundef signext) #1
declare i32 @mcurses_vline(i32 noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3bjsx8_q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mcurses_border(i8 noundef signext %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i8, align 1
store i8 %0, ptr %3, align 1
%4 = load i8, ptr %3, align 1
%5 = call i32 @mcurses_hline(i32 noundef 0, i8 noundef signext %4)
%6 = load i8, ptr %3, align 1
%7 = call i32 @mcurses_hline(i32 noundef 15, i8 noundef signext %6)
%8 = load i8, ptr %3, align 1
%9 = call i32 @mcurses_vline(i32 noundef 0, i8 noundef signext %8)
%10 = load i8, ptr %3, align 1
%11 = call i32 @mcurses_vline(i32 noundef 15, i8 noundef signext %10)
%12 = load i32, ptr %2, align 4
ret i32 %12
}
declare i32 @mcurses_hline(i32 noundef, i8 noundef signext) #1
declare i32 @mcurses_vline(i32 noundef, i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqi1q322u.c'
source_filename = "/tmp/tmpqi1q322u.c"
target datalayout = "e-m:e-p270: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/tmpqi1q322u.c"
target datalayout = "e-m:e-p270: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/tmpjh0re4mb.c'
source_filename = "/tmp/tmpjh0re4mb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"( )\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"(V)\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @matrisiyazdir(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
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %9
9: ; preds = %46, %2
%10 = load i32, ptr %5, align 4
%11 = load i32, ptr %4, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %49
13: ; preds = %9
store i32 0, ptr %7, align 4
br label %14
14: ; preds = %24, %13
%15 = load i32, ptr %7, align 4
%16 = load ptr, ptr %3, align 8
%17 = load i32, ptr %5, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i32, ptr %16, i64 %18
%20 = load i32, ptr %19, align 4
%21 = icmp slt i32 %15, %20
br i1 %21, label %22, label %27
22: ; preds = %14
%23 = call i32 @printf(ptr noundef @.str)
br label %24
24: ; preds = %22
%25 = load i32, ptr %7, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %7, align 4
br label %14, !llvm.loop !6
27: ; preds = %14
%28 = call i32 @printf(ptr noundef @.str.1)
%29 = load ptr, ptr %3, align 8
%30 = load i32, ptr %5, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i32, ptr %29, i64 %31
%33 = load i32, ptr %32, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %8, align 4
br label %35
35: ; preds = %41, %27
%36 = load i32, ptr %8, align 4
%37 = load i32, ptr %4, align 4
%38 = icmp slt i32 %36, %37
br i1 %38, label %39, label %44
39: ; preds = %35
%40 = call i32 @printf(ptr noundef @.str)
br label %41
41: ; preds = %39
%42 = load i32, ptr %8, align 4
%43 = add nsw i32 %42, 1
store i32 %43, ptr %8, align 4
br label %35, !llvm.loop !8
44: ; preds = %35
%45 = call i32 @printf(ptr noundef @.str.2)
br label %46
46: ; preds = %44
%47 = load i32, ptr %5, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %5, align 4
br label %9, !llvm.loop !9
49: ; preds = %9
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}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjh0re4mb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"( )\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"(V)\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @matrisiyazdir(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
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
%9 = load i32, ptr %5, align 4
%10 = load i32, ptr %4, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %.lr.ph5, label %59
.lr.ph5: ; preds = %2
br label %12
12: ; preds = %.lr.ph5, %53
store i32 0, ptr %7, align 4
%13 = load i32, ptr %7, align 4
%14 = load ptr, ptr %3, align 8
%15 = load i32, ptr %5, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i32, ptr %14, i64 %16
%18 = load i32, ptr %17, align 4
%19 = icmp slt i32 %13, %18
br i1 %19, label %.lr.ph, label %32
.lr.ph: ; preds = %12
br label %20
20: ; preds = %.lr.ph, %22
%21 = call i32 @printf(ptr noundef @.str)
br label %22
22: ; preds = %20
%23 = load i32, ptr %7, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %7, align 4
%25 = load i32, ptr %7, align 4
%26 = load ptr, ptr %3, align 8
%27 = load i32, ptr %5, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i32, ptr %26, i64 %28
%30 = load i32, ptr %29, align 4
%31 = icmp slt i32 %25, %30
br i1 %31, label %20, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %22
br label %32
32: ; preds = %._crit_edge, %12
%33 = call i32 @printf(ptr noundef @.str.1)
%34 = load ptr, ptr %3, align 8
%35 = load i32, ptr %5, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i32, ptr %34, i64 %36
%38 = load i32, ptr %37, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %8, align 4
%40 = load i32, ptr %8, align 4
%41 = load i32, ptr %4, align 4
%42 = icmp slt i32 %40, %41
br i1 %42, label %.lr.ph2, label %51
.lr.ph2: ; preds = %32
br label %43
43: ; preds = %.lr.ph2, %45
%44 = call i32 @printf(ptr noundef @.str)
br label %45
45: ; preds = %43
%46 = load i32, ptr %8, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %8, align 4
%48 = load i32, ptr %8, align 4
%49 = load i32, ptr %4, align 4
%50 = icmp slt i32 %48, %49
br i1 %50, label %43, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %45
br label %51
51: ; preds = %._crit_edge3, %32
%52 = call i32 @printf(ptr noundef @.str.2)
br label %53
53: ; preds = %51
%54 = load i32, ptr %5, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %5, align 4
%56 = load i32, ptr %5, align 4
%57 = load i32, ptr %4, align 4
%58 = icmp slt i32 %56, %57
br i1 %58, label %12, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %53
br label %59
59: ; preds = %._crit_edge6, %2
ret void
}
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpbrptssx0.c'
source_filename = "/tmp/tmpbrptssx0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [2 x i8] c"*\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c".\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\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 [20 x i32], align 16
%5 = alloca [20 x i32], align 16
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
%8 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
store i32 0, ptr %3, align 4
br label %9
9: ; preds = %19, %0
%10 = load i32, ptr %3, align 4
%11 = load i32, ptr %2, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %22
13: ; preds = %9
%14 = getelementptr inbounds [20 x i32], ptr %4, i64 0, i64 0
%15 = load i32, ptr %3, align 4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i32, ptr %14, i64 %16
%18 = call i32 @scanf(ptr noundef @.str, ptr noundef %17)
br label %19
19: ; preds = %13
%20 = load i32, ptr %3, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %3, align 4
br label %9, !llvm.loop !6
22: ; preds = %9
store i32 0, ptr %3, align 4
br label %23
23: ; preds = %62, %22
%24 = load i32, ptr %3, align 4
%25 = icmp slt i32 %24, 1000
br i1 %25, label %26, label %65
26: ; preds = %23
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
%27 = getelementptr inbounds [20 x i32], ptr %4, i64 0, i64 0
%28 = getelementptr inbounds [20 x i32], ptr %5, i64 0, i64 0
%29 = load i32, ptr %2, align 4
%30 = call i32 @next_generation(ptr noundef %27, ptr noundef %28, i32 noundef %29)
store i32 0, ptr %6, align 4
br label %31
31: ; preds = %53, %26
%32 = load i32, ptr %6, align 4
%33 = load i32, ptr %2, align 4
%34 = icmp slt i32 %32, %33
br i1 %34, label %35, label %56
35: ; preds = %31
%36 = load i32, ptr %6, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [20 x i32], ptr %4, i64 0, i64 %37
%39 = load i32, ptr %38, align 4
%40 = icmp ne i32 %39, 0
br i1 %40, label %41, label %43
41: ; preds = %35
%42 = call i32 @printf(ptr noundef @.str.1)
store i32 1, ptr %7, align 4
br label %45
43: ; preds = %35
%44 = call i32 @printf(ptr noundef @.str.2)
br label %45
45: ; preds = %43, %41
%46 = load i32, ptr %6, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [20 x i32], ptr %5, i64 0, i64 %47
%49 = load i32, ptr %48, align 4
%50 = load i32, ptr %6, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [20 x i32], ptr %4, i64 0, i64 %51
store i32 %49, ptr %52, align 4
br label %53
53: ; preds = %45
%54 = load i32, ptr %6, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %6, align 4
br label %31, !llvm.loop !8
56: ; preds = %31
%57 = load i32, ptr %7, align 4
%58 = icmp ne i32 %57, 0
br i1 %58, label %60, label %59
59: ; preds = %56
br label %65
60: ; preds = %56
%61 = call i32 @printf(ptr noundef @.str.3)
br label %62
62: ; preds = %60
%63 = load i32, ptr %3, align 4
%64 = add nsw i32 %63, 1
store i32 %64, ptr %3, align 4
br label %23, !llvm.loop !9
65: ; preds = %59, %23
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @next_generation(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbrptssx0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [2 x i8] c"*\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c".\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"\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 [20 x i32], align 16
%5 = alloca [20 x i32], align 16
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store i32 0, ptr %1, align 4
%8 = call i32 @scanf(ptr noundef @.str, ptr noundef %2)
store i32 0, ptr %3, align 4
%9 = load i32, ptr %3, align 4
%10 = load i32, ptr %2, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %.lr.ph, label %24
.lr.ph: ; preds = %0
br label %12
12: ; preds = %.lr.ph, %18
%13 = getelementptr inbounds [20 x i32], ptr %4, i64 0, i64 0
%14 = load i32, ptr %3, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i32, ptr %13, i64 %15
%17 = call i32 @scanf(ptr noundef @.str, ptr noundef %16)
br label %18
18: ; preds = %12
%19 = load i32, ptr %3, align 4
%20 = add nsw i32 %19, 1
store i32 %20, ptr %3, align 4
%21 = load i32, ptr %3, align 4
%22 = load i32, ptr %2, align 4
%23 = icmp slt i32 %21, %22
br i1 %23, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %18
br label %24
24: ; preds = %._crit_edge, %0
store i32 0, ptr %3, align 4
%25 = load i32, ptr %3, align 4
%26 = icmp slt i32 %25, 1000
br i1 %26, label %.lr.ph5, label %.loopexit
.lr.ph5: ; preds = %24
br label %27
27: ; preds = %.lr.ph5, %65
store i32 0, ptr %6, align 4
store i32 0, ptr %7, align 4
%28 = getelementptr inbounds [20 x i32], ptr %4, i64 0, i64 0
%29 = getelementptr inbounds [20 x i32], ptr %5, i64 0, i64 0
%30 = load i32, ptr %2, align 4
%31 = call i32 @next_generation(ptr noundef %28, ptr noundef %29, i32 noundef %30)
store i32 0, ptr %6, align 4
%32 = load i32, ptr %6, align 4
%33 = load i32, ptr %2, align 4
%34 = icmp slt i32 %32, %33
br i1 %34, label %.lr.ph2, label %59
.lr.ph2: ; preds = %27
br label %35
35: ; preds = %.lr.ph2, %53
%36 = load i32, ptr %6, align 4
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [20 x i32], ptr %4, i64 0, i64 %37
%39 = load i32, ptr %38, align 4
%40 = icmp ne i32 %39, 0
br i1 %40, label %41, label %43
41: ; preds = %35
%42 = call i32 @printf(ptr noundef @.str.1)
store i32 1, ptr %7, align 4
br label %45
43: ; preds = %35
%44 = call i32 @printf(ptr noundef @.str.2)
br label %45
45: ; preds = %43, %41
%46 = load i32, ptr %6, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [20 x i32], ptr %5, i64 0, i64 %47
%49 = load i32, ptr %48, align 4
%50 = load i32, ptr %6, align 4
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [20 x i32], ptr %4, i64 0, i64 %51
store i32 %49, ptr %52, align 4
br label %53
53: ; preds = %45
%54 = load i32, ptr %6, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %6, align 4
%56 = load i32, ptr %6, align 4
%57 = load i32, ptr %2, align 4
%58 = icmp slt i32 %56, %57
br i1 %58, label %35, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %53
br label %59
59: ; preds = %._crit_edge3, %27
%60 = load i32, ptr %7, align 4
%61 = icmp ne i32 %60, 0
br i1 %61, label %63, label %62
62: ; preds = %59
br label %70
63: ; preds = %59
%64 = call i32 @printf(ptr noundef @.str.3)
br label %65
65: ; preds = %63
%66 = load i32, ptr %3, align 4
%67 = add nsw i32 %66, 1
store i32 %67, ptr %3, align 4
%68 = load i32, ptr %3, align 4
%69 = icmp slt i32 %68, 1000
br i1 %69, label %27, label %..loopexit_crit_edge, !llvm.loop !9
..loopexit_crit_edge: ; preds = %65
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %24
br label %70
70: ; preds = %.loopexit, %62
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @next_generation(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmpw9vpvu5e.c'
source_filename = "/tmp/tmpw9vpvu5e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"Hello from part2\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @user_hello_part2() #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/tmpw9vpvu5e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [18 x i8] c"Hello from part2\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @user_hello_part2() #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/tmpkjq_f5u0.c'
source_filename = "/tmp/tmpkjq_f5u0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @glmMix3fs(ptr noundef %0, ptr noundef %1, ptr noundef %2, float noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca float, align 4
%9 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store float %3, ptr %8, align 4
store i64 0, ptr %9, align 8
br label %10
10: ; preds = %28, %4
%11 = load i64, ptr %9, align 8
%12 = icmp ult i64 %11, 3
br i1 %12, label %13, label %31
13: ; preds = %10
%14 = load ptr, ptr %6, align 8
%15 = getelementptr inbounds float, ptr %14, i64 3
%16 = load float, ptr %15, align 4
%17 = load float, ptr %8, align 4
%18 = fsub float 1.000000e+00, %17
%19 = load float, ptr %8, align 4
%20 = fmul float %18, %19
%21 = load ptr, ptr %7, align 8
%22 = getelementptr inbounds float, ptr %21, i64 3
%23 = load float, ptr %22, align 4
%24 = fmul float %20, %23
%25 = fmul float %16, %24
%26 = load ptr, ptr %5, align 8
%27 = getelementptr inbounds float, ptr %26, i64 3
store float %25, ptr %27, align 4
br label %28
28: ; preds = %13
%29 = load i64, ptr %9, align 8
%30 = add i64 %29, 1
store i64 %30, ptr %9, align 8
br label %10, !llvm.loop !6
31: ; preds = %10
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/tmpkjq_f5u0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @glmMix3fs(ptr noundef %0, ptr noundef %1, ptr noundef %2, float noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
%8 = alloca float, align 4
%9 = alloca i64, align 8
store ptr %0, ptr %5, align 8
store ptr %1, ptr %6, align 8
store ptr %2, ptr %7, align 8
store float %3, ptr %8, align 4
store i64 0, ptr %9, align 8
%10 = load i64, ptr %9, align 8
%11 = icmp ult i64 %10, 3
br i1 %11, label %.lr.ph, label %32
.lr.ph: ; preds = %4
br label %12
12: ; preds = %.lr.ph, %27
%13 = load ptr, ptr %6, align 8
%14 = getelementptr inbounds float, ptr %13, i64 3
%15 = load float, ptr %14, align 4
%16 = load float, ptr %8, align 4
%17 = fsub float 1.000000e+00, %16
%18 = load float, ptr %8, align 4
%19 = fmul float %17, %18
%20 = load ptr, ptr %7, align 8
%21 = getelementptr inbounds float, ptr %20, i64 3
%22 = load float, ptr %21, align 4
%23 = fmul float %19, %22
%24 = fmul float %15, %23
%25 = load ptr, ptr %5, align 8
%26 = getelementptr inbounds float, ptr %25, i64 3
store float %24, ptr %26, align 4
br label %27
27: ; preds = %12
%28 = load i64, ptr %9, align 8
%29 = add i64 %28, 1
store i64 %29, ptr %9, align 8
%30 = load i64, ptr %9, align 8
%31 = icmp ult i64 %30, 3
br i1 %31, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %27
br label %32
32: ; preds = %._crit_edge, %4
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpo7vblcfu.c'
source_filename = "/tmp/tmpo7vblcfu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Insira a quantidade de provas: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [32 x i8] c"Insira a quantidade de alunos: \00", align 1
@.str.3 = private unnamed_addr constant [30 x i8] c"Insira o peso da %d\C2\BA prova: \00", align 1
@.str.4 = private unnamed_addr constant [40 x i8] c"Insira a nota da %d prova do %d aluno: \00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.6 = private unnamed_addr constant [37 x i8] c"----------Fim do Programa----------\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 i32, align 4
%11 = alloca ptr, align 8
%12 = alloca i64, align 8
%13 = alloca i64, align 8
%14 = alloca float, align 4
%15 = alloca i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%17 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %7)
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%19 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %6)
%20 = load i32, ptr %7, align 4
%21 = zext i32 %20 to i64
%22 = call ptr @llvm.stacksave()
store ptr %22, ptr %11, align 8
%23 = alloca i32, i64 %21, align 16
store i64 %21, ptr %12, align 8
%24 = load i32, ptr %7, align 4
%25 = zext i32 %24 to i64
%26 = alloca float, i64 %25, align 16
store i64 %25, ptr %13, align 8
store float 0.000000e+00, ptr %14, align 4
%27 = load i32, ptr %7, align 4
%28 = zext i32 %27 to i64
%29 = alloca float, i64 %28, align 16
store i64 %28, ptr %15, align 8
%30 = load i32, ptr %7, align 4
%31 = call i32 @zera_vetor(ptr noundef %29, i32 noundef %30)
%32 = load i32, ptr %6, align 4
%33 = call i32 @zera_vetor(ptr noundef %26, i32 noundef %32)
store i32 0, ptr %10, align 4
br label %34
34: ; preds = %53, %2
%35 = load i32, ptr %10, align 4
%36 = load i32, ptr %7, align 4
%37 = icmp slt i32 %35, %36
br i1 %37, label %38, label %56
38: ; preds = %34
%39 = load i32, ptr %10, align 4
%40 = add nsw i32 %39, 1
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %40)
%42 = load i32, ptr %10, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i32, ptr %23, i64 %43
%45 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %44)
%46 = load i32, ptr %10, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i32, ptr %23, i64 %47
%49 = load i32, ptr %48, align 4
%50 = sitofp i32 %49 to float
%51 = load float, ptr %14, align 4
%52 = fadd float %51, %50
store float %52, ptr %14, align 4
br label %53
53: ; preds = %38
%54 = load i32, ptr %10, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %10, align 4
br label %34, !llvm.loop !6
56: ; preds = %34
store i32 0, ptr %8, align 4
br label %57
57: ; preds = %92, %56
%58 = load i32, ptr %8, align 4
%59 = load i32, ptr %6, align 4
%60 = icmp slt i32 %58, %59
br i1 %60, label %61, label %95
61: ; preds = %57
store i32 0, ptr %9, align 4
br label %62
62: ; preds = %85, %61
%63 = load i32, ptr %9, align 4
%64 = load i32, ptr %7, align 4
%65 = icmp slt i32 %63, %64
br i1 %65, label %66, label %88
66: ; preds = %62
%67 = load i32, ptr %9, align 4
%68 = add nsw i32 %67, 1
%69 = load i32, ptr %8, align 4
%70 = add nsw i32 %69, 1
%71 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %68, i32 noundef %70)
%72 = load i32, ptr %9, align 4
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds float, ptr %26, i64 %73
%75 = call i32 (ptr, ...) @scanf(ptr noundef @.str.5, ptr noundef %74)
%76 = load i32, ptr %9, align 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds float, ptr %26, i64 %77
%79 = load float, ptr %78, align 4
%80 = load i32, ptr %9, align 4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds float, ptr %29, i64 %81
%83 = load float, ptr %82, align 4
%84 = fadd float %83, %79
store float %84, ptr %82, align 4
br label %85
85: ; preds = %66
%86 = load i32, ptr %9, align 4
%87 = add nsw i32 %86, 1
store i32 %87, ptr %9, align 4
br label %62, !llvm.loop !8
88: ; preds = %62
%89 = load i32, ptr %6, align 4
%90 = load float, ptr %14, align 4
%91 = call i32 @media_ponderada(ptr noundef %26, ptr noundef %23, i32 noundef %89, float noundef %90)
br label %92
92: ; preds = %88
%93 = load i32, ptr %8, align 4
%94 = add nsw i32 %93, 1
store i32 %94, ptr %8, align 4
br label %57, !llvm.loop !9
95: ; preds = %57
%96 = load i32, ptr %7, align 4
%97 = load i32, ptr %6, align 4
%98 = call i32 @calcula_media(ptr noundef %29, i32 noundef %96, i32 noundef %97)
%99 = load i32, ptr %7, align 4
%100 = call i32 @imprime_media(i32 noundef %99, ptr noundef %29)
%101 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
store i32 0, ptr %3, align 4
%102 = load ptr, ptr %11, align 8
call void @llvm.stackrestore(ptr %102)
%103 = load i32, ptr %3, align 4
ret i32 %103
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ...) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @zera_vetor(ptr noundef, i32 noundef) #1
declare i32 @media_ponderada(ptr noundef, ptr noundef, i32 noundef, float noundef) #1
declare i32 @calcula_media(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @imprime_media(i32 noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpo7vblcfu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"Insira a quantidade de provas: \00", align 1
@.str.1 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.2 = private unnamed_addr constant [32 x i8] c"Insira a quantidade de alunos: \00", align 1
@.str.3 = private unnamed_addr constant [30 x i8] c"Insira o peso da %d\C2\BA prova: \00", align 1
@.str.4 = private unnamed_addr constant [40 x i8] c"Insira a nota da %d prova do %d aluno: \00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"%f\00", align 1
@.str.6 = private unnamed_addr constant [37 x i8] c"----------Fim do Programa----------\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 i32, align 4
%11 = alloca ptr, align 8
%12 = alloca i64, align 8
%13 = alloca i64, align 8
%14 = alloca float, align 4
%15 = alloca i64, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str)
%17 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %7)
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%19 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %6)
%20 = load i32, ptr %7, align 4
%21 = zext i32 %20 to i64
%22 = call ptr @llvm.stacksave()
store ptr %22, ptr %11, align 8
%23 = alloca i32, i64 %21, align 16
store i64 %21, ptr %12, align 8
%24 = load i32, ptr %7, align 4
%25 = zext i32 %24 to i64
%26 = alloca float, i64 %25, align 16
store i64 %25, ptr %13, align 8
store float 0.000000e+00, ptr %14, align 4
%27 = load i32, ptr %7, align 4
%28 = zext i32 %27 to i64
%29 = alloca float, i64 %28, align 16
store i64 %28, ptr %15, align 8
%30 = load i32, ptr %7, align 4
%31 = call i32 @zera_vetor(ptr noundef %29, i32 noundef %30)
%32 = load i32, ptr %6, align 4
%33 = call i32 @zera_vetor(ptr noundef %26, i32 noundef %32)
store i32 0, ptr %10, align 4
%34 = load i32, ptr %10, align 4
%35 = load i32, ptr %7, align 4
%36 = icmp slt i32 %34, %35
br i1 %36, label %.lr.ph, label %58
.lr.ph: ; preds = %2
br label %37
37: ; preds = %.lr.ph, %52
%38 = load i32, ptr %10, align 4
%39 = add nsw i32 %38, 1
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %39)
%41 = load i32, ptr %10, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i32, ptr %23, i64 %42
%44 = call i32 (ptr, ...) @scanf(ptr noundef @.str.1, ptr noundef %43)
%45 = load i32, ptr %10, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds i32, ptr %23, i64 %46
%48 = load i32, ptr %47, align 4
%49 = sitofp i32 %48 to float
%50 = load float, ptr %14, align 4
%51 = fadd float %50, %49
store float %51, ptr %14, align 4
br label %52
52: ; preds = %37
%53 = load i32, ptr %10, align 4
%54 = add nsw i32 %53, 1
store i32 %54, ptr %10, align 4
%55 = load i32, ptr %10, align 4
%56 = load i32, ptr %7, align 4
%57 = icmp slt i32 %55, %56
br i1 %57, label %37, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %52
br label %58
58: ; preds = %._crit_edge, %2
store i32 0, ptr %8, align 4
%59 = load i32, ptr %8, align 4
%60 = load i32, ptr %6, align 4
%61 = icmp slt i32 %59, %60
br i1 %61, label %.lr.ph5, label %101
.lr.ph5: ; preds = %58
br label %62
62: ; preds = %.lr.ph5, %95
store i32 0, ptr %9, align 4
%63 = load i32, ptr %9, align 4
%64 = load i32, ptr %7, align 4
%65 = icmp slt i32 %63, %64
br i1 %65, label %.lr.ph2, label %91
.lr.ph2: ; preds = %62
br label %66
66: ; preds = %.lr.ph2, %85
%67 = load i32, ptr %9, align 4
%68 = add nsw i32 %67, 1
%69 = load i32, ptr %8, align 4
%70 = add nsw i32 %69, 1
%71 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %68, i32 noundef %70)
%72 = load i32, ptr %9, align 4
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds float, ptr %26, i64 %73
%75 = call i32 (ptr, ...) @scanf(ptr noundef @.str.5, ptr noundef %74)
%76 = load i32, ptr %9, align 4
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds float, ptr %26, i64 %77
%79 = load float, ptr %78, align 4
%80 = load i32, ptr %9, align 4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds float, ptr %29, i64 %81
%83 = load float, ptr %82, align 4
%84 = fadd float %83, %79
store float %84, ptr %82, align 4
br label %85
85: ; preds = %66
%86 = load i32, ptr %9, align 4
%87 = add nsw i32 %86, 1
store i32 %87, ptr %9, align 4
%88 = load i32, ptr %9, align 4
%89 = load i32, ptr %7, align 4
%90 = icmp slt i32 %88, %89
br i1 %90, label %66, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %85
br label %91
91: ; preds = %._crit_edge3, %62
%92 = load i32, ptr %6, align 4
%93 = load float, ptr %14, align 4
%94 = call i32 @media_ponderada(ptr noundef %26, ptr noundef %23, i32 noundef %92, float noundef %93)
br label %95
95: ; preds = %91
%96 = load i32, ptr %8, align 4
%97 = add nsw i32 %96, 1
store i32 %97, ptr %8, align 4
%98 = load i32, ptr %8, align 4
%99 = load i32, ptr %6, align 4
%100 = icmp slt i32 %98, %99
br i1 %100, label %62, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %95
br label %101
101: ; preds = %._crit_edge6, %58
%102 = load i32, ptr %7, align 4
%103 = load i32, ptr %6, align 4
%104 = call i32 @calcula_media(ptr noundef %29, i32 noundef %102, i32 noundef %103)
%105 = load i32, ptr %7, align 4
%106 = call i32 @imprime_media(i32 noundef %105, ptr noundef %29)
%107 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
store i32 0, ptr %3, align 4
%108 = load ptr, ptr %11, align 8
call void @llvm.stackrestore(ptr %108)
%109 = load i32, ptr %3, align 4
ret i32 %109
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ...) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @zera_vetor(ptr noundef, i32 noundef) #1
declare i32 @media_ponderada(ptr noundef, ptr noundef, i32 noundef, float noundef) #1
declare i32 @calcula_media(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @imprime_media(i32 noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(ptr) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpzmvedmto.c'
source_filename = "/tmp/tmpzmvedmto.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [36 x i8] c"The value pointed to by iptr is %i\0A\00", align 1
@.str.1 = private unnamed_addr constant [39 x i8] c"The address pointed to by iptr is %p\0A\00", align 1
@.str.2 = private unnamed_addr constant [35 x i8] c"The address of iptr itself is %p\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @fooA(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 i32, ptr %3, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %4)
%6 = load ptr, ptr %2, align 8
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %6)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %2)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzmvedmto.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [36 x i8] c"The value pointed to by iptr is %i\0A\00", align 1
@.str.1 = private unnamed_addr constant [39 x i8] c"The address pointed to by iptr is %p\0A\00", align 1
@.str.2 = private unnamed_addr constant [35 x i8] c"The address of iptr itself is %p\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @fooA(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 i32, ptr %3, align 4
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %4)
%6 = load ptr, ptr %2, align 8
%7 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %6)
%8 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %2)
ret void
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpt144yiql.c'
source_filename = "/tmp/tmpt144yiql.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PF_INET = dso_local global i32 0, align 4
@SOCK_DGRAM = 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/tmpt144yiql.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@PF_INET = dso_local global i32 0, align 4
@SOCK_DGRAM = 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/tmpqrk5dmn2.c'
source_filename = "/tmp/tmpqrk5dmn2.c"
target datalayout = "e-m:e-p270: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 }
@PF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@AF_INET = dso_local global i32 0, align 4
@INADDR_ANY = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%f\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 %struct.sockaddr_in, align 4
%9 = alloca i32, align 4
%10 = alloca [1024 x i8], align 16
%11 = alloca [20 x i8], align 16
%12 = alloca [20 x i8], align 16
%13 = alloca i32, align 4
%14 = alloca double, align 8
%15 = alloca i32, align 4
%16 = alloca double, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%17 = load i32, ptr @PF_INET, align 4
%18 = load i32, ptr @SOCK_STREAM, align 4
%19 = call i32 @socket(i32 noundef %17, i32 noundef %18, i32 noundef 0)
store i32 %19, ptr %6, align 4
%20 = call i32 @bzero(ptr noundef %8, i32 noundef 12)
%21 = load i32, ptr @AF_INET, align 4
%22 = getelementptr inbounds %struct.sockaddr_in, ptr %8, i32 0, i32 2
store i32 %21, ptr %22, align 4
%23 = load i32, ptr @INADDR_ANY, align 4
%24 = call i32 @htonl(i32 noundef %23)
%25 = getelementptr inbounds %struct.sockaddr_in, ptr %8, i32 0, i32 1
%26 = getelementptr inbounds %struct.TYPE_2__, ptr %25, i32 0, i32 0
store i32 %24, ptr %26, align 4
%27 = call i32 @htons(i32 noundef 50001)
%28 = getelementptr inbounds %struct.sockaddr_in, ptr %8, i32 0, i32 0
store i32 %27, ptr %28, align 4
%29 = load i32, ptr %6, align 4
%30 = call i32 @bind(i32 noundef %29, ptr noundef %8, i32 noundef 12)
br label %31
31: ; preds = %2, %102
%32 = load i32, ptr %6, align 4
%33 = call i32 @listen(i32 noundef %32, i32 noundef 10)
%34 = load i32, ptr %6, align 4
%35 = call i32 @accept(i32 noundef %34, ptr noundef null, ptr noundef null)
store i32 %35, ptr %7, align 4
br label %36
36: ; preds = %95, %31
%37 = load i32, ptr %7, align 4
%38 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 0
%39 = call i32 @read(i32 noundef %37, ptr noundef %38, i32 noundef 1024)
store i32 %39, ptr %9, align 4
%40 = icmp sgt i32 %39, 0
br i1 %40, label %41, label %102
41: ; preds = %36
%42 = load i32, ptr %9, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 %43
store i8 0, ptr %44, align 1
%45 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 0
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %45)
store i32 0, ptr %13, align 4
br label %47
47: ; preds = %54, %41
%48 = load i32, ptr %13, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 %49
%51 = load i8, ptr %50, align 1
%52 = sext i8 %51 to i32
%53 = icmp ne i32 %52, 120
br i1 %53, label %54, label %64
54: ; preds = %47
%55 = load i32, ptr %13, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 %56
%58 = load i8, ptr %57, align 1
%59 = load i32, ptr %13, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [20 x i8], ptr %11, i64 0, i64 %60
store i8 %58, ptr %61, align 1
%62 = load i32, ptr %13, align 4
%63 = add nsw i32 %62, 1
store i32 %63, ptr %13, align 4
br label %47, !llvm.loop !6
64: ; preds = %47
%65 = getelementptr inbounds [20 x i8], ptr %11, i64 0, i64 0
%66 = call double @atof(ptr noundef %65)
store double %66, ptr %14, align 8
br label %67
67: ; preds = %74, %64
%68 = load i32, ptr %13, align 4
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 %69
%71 = load i8, ptr %70, align 1
%72 = sext i8 %71 to i32
%73 = icmp eq i32 %72, 120
br i1 %73, label %74, label %77
74: ; preds = %67
%75 = load i32, ptr %13, align 4
%76 = add nsw i32 %75, 1
store i32 %76, ptr %13, align 4
br label %67, !llvm.loop !8
77: ; preds = %67
store i32 0, ptr %15, align 4
br label %78
78: ; preds = %85, %77
%79 = load i32, ptr %13, align 4
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 %80
%82 = load i8, ptr %81, align 1
%83 = sext i8 %82 to i32
%84 = icmp ne i32 %83, 120
br i1 %84, label %85, label %95
85: ; preds = %78
%86 = load i32, ptr %13, align 4
%87 = add nsw i32 %86, 1
store i32 %87, ptr %13, align 4
%88 = sext i32 %86 to i64
%89 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 %88
%90 = load i8, ptr %89, align 1
%91 = load i32, ptr %15, align 4
%92 = add nsw i32 %91, 1
store i32 %92, ptr %15, align 4
%93 = sext i32 %91 to i64
%94 = getelementptr inbounds [20 x i8], ptr %12, i64 0, i64 %93
store i8 %90, ptr %94, align 1
br label %78, !llvm.loop !9
95: ; preds = %78
%96 = getelementptr inbounds [20 x i8], ptr %12, i64 0, i64 0
%97 = call double @atof(ptr noundef %96)
store double %97, ptr %16, align 8
%98 = load double, ptr %14, align 8
%99 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %98)
%100 = load double, ptr %16, align 8
%101 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %100)
br label %36, !llvm.loop !10
102: ; preds = %36
br label %31
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @bzero(ptr noundef, i32 noundef) #1
declare i32 @htonl(i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @listen(i32 noundef, i32 noundef) #1
declare i32 @accept(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare double @atof(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpqrk5dmn2.c"
target datalayout = "e-m:e-p270: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 }
@PF_INET = dso_local global i32 0, align 4
@SOCK_STREAM = dso_local global i32 0, align 4
@AF_INET = dso_local global i32 0, align 4
@INADDR_ANY = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"%f\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 %struct.sockaddr_in, align 4
%9 = alloca i32, align 4
%10 = alloca [1024 x i8], align 16
%11 = alloca [20 x i8], align 16
%12 = alloca [20 x i8], align 16
%13 = alloca i32, align 4
%14 = alloca double, align 8
%15 = alloca i32, align 4
%16 = alloca double, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%17 = load i32, ptr @PF_INET, align 4
%18 = load i32, ptr @SOCK_STREAM, align 4
%19 = call i32 @socket(i32 noundef %17, i32 noundef %18, i32 noundef 0)
store i32 %19, ptr %6, align 4
%20 = call i32 @bzero(ptr noundef %8, i32 noundef 12)
%21 = load i32, ptr @AF_INET, align 4
%22 = getelementptr inbounds %struct.sockaddr_in, ptr %8, i32 0, i32 2
store i32 %21, ptr %22, align 4
%23 = load i32, ptr @INADDR_ANY, align 4
%24 = call i32 @htonl(i32 noundef %23)
%25 = getelementptr inbounds %struct.sockaddr_in, ptr %8, i32 0, i32 1
%26 = getelementptr inbounds %struct.TYPE_2__, ptr %25, i32 0, i32 0
store i32 %24, ptr %26, align 4
%27 = call i32 @htons(i32 noundef 50001)
%28 = getelementptr inbounds %struct.sockaddr_in, ptr %8, i32 0, i32 0
store i32 %27, ptr %28, align 4
%29 = load i32, ptr %6, align 4
%30 = call i32 @bind(i32 noundef %29, ptr noundef %8, i32 noundef 12)
br label %31
31: ; preds = %119, %2
%32 = load i32, ptr %6, align 4
%33 = call i32 @listen(i32 noundef %32, i32 noundef 10)
%34 = load i32, ptr %6, align 4
%35 = call i32 @accept(i32 noundef %34, ptr noundef null, ptr noundef null)
store i32 %35, ptr %7, align 4
%36 = load i32, ptr %7, align 4
%37 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 0
%38 = call i32 @read(i32 noundef %36, ptr noundef %37, i32 noundef 1024)
store i32 %38, ptr %9, align 4
%39 = icmp sgt i32 %38, 0
br i1 %39, label %.lr.ph8, label %119
.lr.ph8: ; preds = %31
br label %40
40: ; preds = %.lr.ph8, %109
%41 = load i32, ptr %9, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 %42
store i8 0, ptr %43, align 1
%44 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 0
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %44)
store i32 0, ptr %13, align 4
%46 = load i32, ptr %13, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 %47
%49 = load i8, ptr %48, align 1
%50 = sext i8 %49 to i32
%51 = icmp ne i32 %50, 120
br i1 %51, label %.lr.ph, label %68
.lr.ph: ; preds = %40
br label %52
52: ; preds = %.lr.ph, %52
%53 = load i32, ptr %13, align 4
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 %54
%56 = load i8, ptr %55, align 1
%57 = load i32, ptr %13, align 4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds [20 x i8], ptr %11, i64 0, i64 %58
store i8 %56, ptr %59, align 1
%60 = load i32, ptr %13, align 4
%61 = add nsw i32 %60, 1
store i32 %61, ptr %13, align 4
%62 = load i32, ptr %13, align 4
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 %63
%65 = load i8, ptr %64, align 1
%66 = sext i8 %65 to i32
%67 = icmp ne i32 %66, 120
br i1 %67, label %52, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %52
br label %68
68: ; preds = %._crit_edge, %40
%69 = getelementptr inbounds [20 x i8], ptr %11, i64 0, i64 0
%70 = call double @atof(ptr noundef %69)
store double %70, ptr %14, align 8
%71 = load i32, ptr %13, align 4
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 %72
%74 = load i8, ptr %73, align 1
%75 = sext i8 %74 to i32
%76 = icmp eq i32 %75, 120
br i1 %76, label %.lr.ph2, label %86
.lr.ph2: ; preds = %68
br label %77
77: ; preds = %.lr.ph2, %77
%78 = load i32, ptr %13, align 4
%79 = add nsw i32 %78, 1
store i32 %79, ptr %13, align 4
%80 = load i32, ptr %13, align 4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 %81
%83 = load i8, ptr %82, align 1
%84 = sext i8 %83 to i32
%85 = icmp eq i32 %84, 120
br i1 %85, label %77, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %77
br label %86
86: ; preds = %._crit_edge3, %68
store i32 0, ptr %15, align 4
%87 = load i32, ptr %13, align 4
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 %88
%90 = load i8, ptr %89, align 1
%91 = sext i8 %90 to i32
%92 = icmp ne i32 %91, 120
br i1 %92, label %.lr.ph5, label %109
.lr.ph5: ; preds = %86
br label %93
93: ; preds = %.lr.ph5, %93
%94 = load i32, ptr %13, align 4
%95 = add nsw i32 %94, 1
store i32 %95, ptr %13, align 4
%96 = sext i32 %94 to i64
%97 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 %96
%98 = load i8, ptr %97, align 1
%99 = load i32, ptr %15, align 4
%100 = add nsw i32 %99, 1
store i32 %100, ptr %15, align 4
%101 = sext i32 %99 to i64
%102 = getelementptr inbounds [20 x i8], ptr %12, i64 0, i64 %101
store i8 %98, ptr %102, align 1
%103 = load i32, ptr %13, align 4
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds [1024 x i8], ptr %10, i64 0, i64 %104
%106 = load i8, ptr %105, align 1
%107 = sext i8 %106 to i32
%108 = icmp ne i32 %107, 120
br i1 %108, label %93, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %93
br label %109
109: ; preds = %._crit_edge6, %86
%110 = getelementptr inbounds [20 x i8], ptr %12, i64 0, i64 0
%111 = call double @atof(ptr noundef %110)
store double %111, ptr %16, align 8
%112 = load double, ptr %14, align 8
%113 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %112)
%114 = load double, ptr %16, align 8
%115 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, double noundef %114)
%116 = load i32, ptr %7, align 4
%117 = call i32 @read(i32 noundef %116, ptr noundef %37, i32 noundef 1024)
store i32 %117, ptr %9, align 4
%118 = icmp sgt i32 %117, 0
br i1 %118, label %40, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %109
br label %119
119: ; preds = %._crit_edge9, %31
br label %31
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @bzero(ptr noundef, i32 noundef) #1
declare i32 @htonl(i32 noundef) #1
declare i32 @htons(i32 noundef) #1
declare i32 @bind(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @listen(i32 noundef, i32 noundef) #1
declare i32 @accept(i32 noundef, ptr noundef, ptr noundef) #1
declare i32 @read(i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare double @atof(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpzfk97xid.c'
source_filename = "/tmp/tmpzfk97xid.c"
target datalayout = "e-m:e-p270: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 { ptr, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.hostent = type { i32, i64 }
@AF_INET = dso_local global i32 0, align 4
@SOCK_DGRAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [25 x i8] c"ERROR opening UDP socket\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"default\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"localhost\00", align 1
@.str.3 = private unnamed_addr constant [13 x i8] c"Unknown host\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"Sendto\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sendToLog(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca %struct.sockaddr_in, align 8
%11 = alloca %struct.sockaddr_in, align 8
%12 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%13 = load i32, ptr @AF_INET, align 4
%14 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 2
store i32 %13, ptr %14, align 4
%15 = load i32, ptr @AF_INET, align 4
%16 = load i32, ptr @SOCK_DGRAM, align 4
%17 = call i32 @socket(i32 noundef %15, i32 noundef %16, i32 noundef 0)
store i32 %17, ptr %7, align 4
%18 = load i32, ptr %7, align 4
%19 = icmp slt i32 %18, 0
br i1 %19, label %20, label %22
20: ; preds = %3
%21 = call i32 @error(ptr noundef @.str)
br label %22
22: ; preds = %20, %3
%23 = load ptr, ptr %5, align 8
%24 = call i64 @strcmp(ptr noundef %23, ptr noundef @.str.1)
%25 = icmp eq i64 0, %24
br i1 %25, label %26, label %42
26: ; preds = %22
%27 = call ptr @gethostbyname(ptr noundef @.str.2)
store ptr %27, ptr %12, align 8
%28 = load ptr, ptr %12, align 8
%29 = icmp eq ptr %28, null
br i1 %29, label %30, label %32
30: ; preds = %26
%31 = call i32 @error(ptr noundef @.str.3)
br label %32
32: ; preds = %30, %26
%33 = load ptr, ptr %12, align 8
%34 = getelementptr inbounds %struct.hostent, ptr %33, i32 0, i32 1
%35 = load i64, ptr %34, align 8
%36 = inttoptr i64 %35 to ptr
%37 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 1
%38 = load ptr, ptr %12, align 8
%39 = getelementptr inbounds %struct.hostent, ptr %38, i32 0, i32 0
%40 = load i32, ptr %39, align 8
%41 = call i32 @bcopy(ptr noundef %36, ptr noundef %37, i32 noundef %40)
br label %47
42: ; preds = %22
%43 = load ptr, ptr %5, align 8
%44 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 1
%45 = getelementptr inbounds %struct.TYPE_2__, ptr %44, i32 0, i32 0
%46 = call i32 @inet_aton(ptr noundef %43, ptr noundef %45)
br label %47
47: ; preds = %42, %32
%48 = load i32, ptr %6, align 4
%49 = icmp eq i32 %48, -1
br i1 %49, label %50, label %54
50: ; preds = %47
%51 = load i32, ptr %6, align 4
%52 = call ptr @htons(i32 noundef %51)
%53 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 0
store ptr %52, ptr %53, align 8
br label %57
54: ; preds = %47
%55 = call ptr @htons(i32 noundef 9999)
%56 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 0
store ptr %55, ptr %56, align 8
br label %57
57: ; preds = %54, %50
store i32 16, ptr %9, align 4
%58 = load i32, ptr %7, align 4
%59 = load ptr, ptr %4, align 8
%60 = load ptr, ptr %4, align 8
%61 = call i32 @strlen(ptr noundef %60)
%62 = load i32, ptr %9, align 4
%63 = call i32 @sendto(i32 noundef %58, ptr noundef %59, i32 noundef %61, i32 noundef 0, ptr noundef %10, i32 noundef %62)
store i32 %63, ptr %8, align 4
%64 = load i32, ptr %8, align 4
%65 = icmp slt i32 %64, 0
br i1 %65, label %66, label %68
66: ; preds = %57
%67 = call i32 @error(ptr noundef @.str.4)
br label %68
68: ; preds = %66, %57
%69 = load i32, ptr %7, align 4
%70 = call i32 @close(i32 noundef %69)
ret i32 1
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @error(ptr noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare ptr @gethostbyname(ptr noundef) #1
declare i32 @bcopy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @inet_aton(ptr noundef, ptr noundef) #1
declare ptr @htons(i32 noundef) #1
declare i32 @sendto(i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzfk97xid.c"
target datalayout = "e-m:e-p270: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 { ptr, %struct.TYPE_2__, i32 }
%struct.TYPE_2__ = type { i32 }
%struct.hostent = type { i32, i64 }
@AF_INET = dso_local global i32 0, align 4
@SOCK_DGRAM = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [25 x i8] c"ERROR opening UDP socket\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"default\00", align 1
@.str.2 = private unnamed_addr constant [10 x i8] c"localhost\00", align 1
@.str.3 = private unnamed_addr constant [13 x i8] c"Unknown host\00", align 1
@.str.4 = private unnamed_addr constant [7 x i8] c"Sendto\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @sendToLog(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca %struct.sockaddr_in, align 8
%11 = alloca %struct.sockaddr_in, align 8
%12 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
%13 = load i32, ptr @AF_INET, align 4
%14 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 2
store i32 %13, ptr %14, align 4
%15 = load i32, ptr @AF_INET, align 4
%16 = load i32, ptr @SOCK_DGRAM, align 4
%17 = call i32 @socket(i32 noundef %15, i32 noundef %16, i32 noundef 0)
store i32 %17, ptr %7, align 4
%18 = load i32, ptr %7, align 4
%19 = icmp slt i32 %18, 0
br i1 %19, label %20, label %22
20: ; preds = %3
%21 = call i32 @error(ptr noundef @.str)
br label %22
22: ; preds = %20, %3
%23 = load ptr, ptr %5, align 8
%24 = call i64 @strcmp(ptr noundef %23, ptr noundef @.str.1)
%25 = icmp eq i64 0, %24
br i1 %25, label %26, label %42
26: ; preds = %22
%27 = call ptr @gethostbyname(ptr noundef @.str.2)
store ptr %27, ptr %12, align 8
%28 = load ptr, ptr %12, align 8
%29 = icmp eq ptr %28, null
br i1 %29, label %30, label %32
30: ; preds = %26
%31 = call i32 @error(ptr noundef @.str.3)
br label %32
32: ; preds = %30, %26
%33 = load ptr, ptr %12, align 8
%34 = getelementptr inbounds %struct.hostent, ptr %33, i32 0, i32 1
%35 = load i64, ptr %34, align 8
%36 = inttoptr i64 %35 to ptr
%37 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 1
%38 = load ptr, ptr %12, align 8
%39 = getelementptr inbounds %struct.hostent, ptr %38, i32 0, i32 0
%40 = load i32, ptr %39, align 8
%41 = call i32 @bcopy(ptr noundef %36, ptr noundef %37, i32 noundef %40)
br label %47
42: ; preds = %22
%43 = load ptr, ptr %5, align 8
%44 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 1
%45 = getelementptr inbounds %struct.TYPE_2__, ptr %44, i32 0, i32 0
%46 = call i32 @inet_aton(ptr noundef %43, ptr noundef %45)
br label %47
47: ; preds = %42, %32
%48 = load i32, ptr %6, align 4
%49 = icmp eq i32 %48, -1
br i1 %49, label %50, label %54
50: ; preds = %47
%51 = load i32, ptr %6, align 4
%52 = call ptr @htons(i32 noundef %51)
%53 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 0
store ptr %52, ptr %53, align 8
br label %57
54: ; preds = %47
%55 = call ptr @htons(i32 noundef 9999)
%56 = getelementptr inbounds %struct.sockaddr_in, ptr %10, i32 0, i32 0
store ptr %55, ptr %56, align 8
br label %57
57: ; preds = %54, %50
store i32 16, ptr %9, align 4
%58 = load i32, ptr %7, align 4
%59 = load ptr, ptr %4, align 8
%60 = load ptr, ptr %4, align 8
%61 = call i32 @strlen(ptr noundef %60)
%62 = load i32, ptr %9, align 4
%63 = call i32 @sendto(i32 noundef %58, ptr noundef %59, i32 noundef %61, i32 noundef 0, ptr noundef %10, i32 noundef %62)
store i32 %63, ptr %8, align 4
%64 = load i32, ptr %8, align 4
%65 = icmp slt i32 %64, 0
br i1 %65, label %66, label %68
66: ; preds = %57
%67 = call i32 @error(ptr noundef @.str.4)
br label %68
68: ; preds = %66, %57
%69 = load i32, ptr %7, align 4
%70 = call i32 @close(i32 noundef %69)
ret i32 1
}
declare i32 @socket(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @error(ptr noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare ptr @gethostbyname(ptr noundef) #1
declare i32 @bcopy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @inet_aton(ptr noundef, ptr noundef) #1
declare ptr @htons(i32 noundef) #1
declare i32 @sendto(i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @close(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.