llvm-ir
stringlengths 479
303k
| llvm-optimized-ir
stringlengths 468
303k
|
---|---|
; ModuleID = '/tmp/tmp4sf35mgf.c'
source_filename = "/tmp/tmp4sf35mgf.c"
target datalayout = "e-m:e-p270: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/tmp4sf35mgf.c"
target datalayout = "e-m:e-p270: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/tmp468vpi7q.c'
source_filename = "/tmp/tmp468vpi7q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @PAPIF_CLEANUP_EVENTSET(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 i32, ptr %5, align 4
%7 = call i32 @PAPI_cleanup_eventset(i32 noundef %6)
%8 = load ptr, ptr %4, align 8
store i32 %7, ptr %8, align 4
ret void
}
declare i32 @PAPI_cleanup_eventset(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/tmp468vpi7q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @PAPIF_CLEANUP_EVENTSET(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 i32, ptr %5, align 4
%7 = call i32 @PAPI_cleanup_eventset(i32 noundef %6)
%8 = load ptr, ptr %4, align 8
store i32 %7, ptr %8, align 4
ret void
}
declare i32 @PAPI_cleanup_eventset(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/tmpepfv92dk.c'
source_filename = "/tmp/tmpepfv92dk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [39 x i8] c"Pocket Amati\0Awersja %lf\0A\0AKalkulatory:\0A\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"[0] Gestosc drewna\0A\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"[1] Menzurka (Skrzypce)\0A\00", align 1
@.str.3 = private unnamed_addr constant [37 x i8] c"[2] Dlugosc podstrunnicy (Skrzypce)\0A\00", align 1
@.str.4 = private unnamed_addr constant [36 x i8] c"[3] Dlugosc podstrunnicy (Altowka)\0A\00", align 1
@.str.5 = private unnamed_addr constant [23 x i8] c"[4] Rozmiar skrzypiec\0A\00", align 1
@.str.6 = private unnamed_addr constant [23 x i8] c"[5] Wyjdz z programu\0A\0A\00", align 1
@.str.7 = private unnamed_addr constant [16 x i8] c"Wybierz opcje: \00", align 1
@.str.8 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.9 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.10 = private unnamed_addr constant [45 x i8] c"Gestosc drewna\0APodaj mase drewna w gramach: \00", align 1
@.str.11 = private unnamed_addr constant [4 x i8] c"%lf\00", align 1
@.str.12 = private unnamed_addr constant [30 x i8] c"Podaj gestosc drewna w cm^3: \00", align 1
@.str.13 = private unnamed_addr constant [41 x i8] c"Menzurka (Skrzypce)\0APodaj dlugosc plyty:\00", align 1
@.str.14 = private unnamed_addr constant [53 x i8] c"Dlugosc podstrunnicy (Skrzypce)\0APodaj dlugosc plyty:\00", align 1
@.str.15 = private unnamed_addr constant [52 x i8] c"Dlugosc podstrunnicy (Altowka)\0APodaj dlugosc plyty:\00", align 1
@.str.16 = private unnamed_addr constant [39 x i8] c"Rozmiar skrzypiec\0APodaj dlugosc plyty:\00", align 1
@.str.17 = private unnamed_addr constant [24 x i8] c"Podaj poprawna wartosc\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
store i32 0, ptr %1, align 4
store i32 1, ptr %2, align 4
store i32 0, ptr %3, align 4
store double 1.000000e+00, ptr %4, align 8
store double 0.000000e+00, ptr %5, align 8
store double 0.000000e+00, ptr %6, align 8
store double 0.000000e+00, ptr %7, align 8
%8 = load double, ptr %4, align 8
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str, double noundef %8)
br label %10
10: ; preds = %56, %0
%11 = load i32, ptr %2, align 4
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %57
13: ; preds = %10
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%20 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%21 = call i32 (ptr, ...) @scanf(ptr noundef @.str.8, ptr noundef %3)
%22 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
%23 = load i32, ptr %3, align 4
switch i32 %23, label %54 [
i32 0, label %24
i32 1, label %33
i32 2, label %38
i32 3, label %43
i32 4, label %48
i32 5, label %53
]
24: ; preds = %13
%25 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
%26 = call i32 (ptr, ...) @scanf(ptr noundef @.str.11, ptr noundef %5)
%27 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
%28 = call i32 (ptr, ...) @scanf(ptr noundef @.str.11, ptr noundef %6)
%29 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
%30 = load double, ptr %5, align 8
%31 = load double, ptr %6, align 8
%32 = call i32 @WoodDensity(double noundef %30, double noundef %31)
br label %56
33: ; preds = %13
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
%35 = call i32 (ptr, ...) @scanf(ptr noundef @.str.11, ptr noundef %7)
%36 = load double, ptr %7, align 8
%37 = call i32 @StopLength(double noundef %36)
br label %56
38: ; preds = %13
%39 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
%40 = call i32 (ptr, ...) @scanf(ptr noundef @.str.11, ptr noundef %7)
%41 = load double, ptr %7, align 8
%42 = call i32 @FingerboardViolin(double noundef %41)
br label %56
43: ; preds = %13
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
%45 = call i32 (ptr, ...) @scanf(ptr noundef @.str.11, ptr noundef %7)
%46 = load double, ptr %7, align 8
%47 = call i32 @FingerboardViola(double noundef %46)
br label %56
48: ; preds = %13
%49 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
%50 = call i32 (ptr, ...) @scanf(ptr noundef @.str.11, ptr noundef %7)
%51 = load double, ptr %7, align 8
%52 = call i32 @SizeViolin(double noundef %51)
br label %56
53: ; preds = %13
store i32 0, ptr %2, align 4
br label %56
54: ; preds = %13
%55 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
br label %56
56: ; preds = %54, %53, %48, %43, %38, %33, %24
br label %10, !llvm.loop !6
57: ; preds = %10
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ...) #1
declare i32 @WoodDensity(double noundef, double noundef) #1
declare i32 @StopLength(double noundef) #1
declare i32 @FingerboardViolin(double noundef) #1
declare i32 @FingerboardViola(double noundef) #1
declare i32 @SizeViolin(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpepfv92dk.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [39 x i8] c"Pocket Amati\0Awersja %lf\0A\0AKalkulatory:\0A\00", align 1
@.str.1 = private unnamed_addr constant [20 x i8] c"[0] Gestosc drewna\0A\00", align 1
@.str.2 = private unnamed_addr constant [25 x i8] c"[1] Menzurka (Skrzypce)\0A\00", align 1
@.str.3 = private unnamed_addr constant [37 x i8] c"[2] Dlugosc podstrunnicy (Skrzypce)\0A\00", align 1
@.str.4 = private unnamed_addr constant [36 x i8] c"[3] Dlugosc podstrunnicy (Altowka)\0A\00", align 1
@.str.5 = private unnamed_addr constant [23 x i8] c"[4] Rozmiar skrzypiec\0A\00", align 1
@.str.6 = private unnamed_addr constant [23 x i8] c"[5] Wyjdz z programu\0A\0A\00", align 1
@.str.7 = private unnamed_addr constant [16 x i8] c"Wybierz opcje: \00", align 1
@.str.8 = private unnamed_addr constant [3 x i8] c"%d\00", align 1
@.str.9 = private unnamed_addr constant [2 x i8] c"\0A\00", align 1
@.str.10 = private unnamed_addr constant [45 x i8] c"Gestosc drewna\0APodaj mase drewna w gramach: \00", align 1
@.str.11 = private unnamed_addr constant [4 x i8] c"%lf\00", align 1
@.str.12 = private unnamed_addr constant [30 x i8] c"Podaj gestosc drewna w cm^3: \00", align 1
@.str.13 = private unnamed_addr constant [41 x i8] c"Menzurka (Skrzypce)\0APodaj dlugosc plyty:\00", align 1
@.str.14 = private unnamed_addr constant [53 x i8] c"Dlugosc podstrunnicy (Skrzypce)\0APodaj dlugosc plyty:\00", align 1
@.str.15 = private unnamed_addr constant [52 x i8] c"Dlugosc podstrunnicy (Altowka)\0APodaj dlugosc plyty:\00", align 1
@.str.16 = private unnamed_addr constant [39 x i8] c"Rozmiar skrzypiec\0APodaj dlugosc plyty:\00", align 1
@.str.17 = private unnamed_addr constant [24 x i8] c"Podaj poprawna wartosc\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca double, align 8
%5 = alloca double, align 8
%6 = alloca double, align 8
%7 = alloca double, align 8
store i32 0, ptr %1, align 4
store i32 1, ptr %2, align 4
store i32 0, ptr %3, align 4
store double 1.000000e+00, ptr %4, align 8
store double 0.000000e+00, ptr %5, align 8
store double 0.000000e+00, ptr %6, align 8
store double 0.000000e+00, ptr %7, align 8
%8 = load double, ptr %4, align 8
%9 = call i32 (ptr, ...) @printf(ptr noundef @.str, double noundef %8)
%10 = load i32, ptr %2, align 4
%11 = icmp ne i32 %10, 0
br i1 %11, label %.lr.ph, label %58
.lr.ph: ; preds = %0
br label %12
12: ; preds = %.lr.ph, %55
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
%14 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
%17 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
%18 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
%19 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
%20 = call i32 (ptr, ...) @scanf(ptr noundef @.str.8, ptr noundef %3)
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
%22 = load i32, ptr %3, align 4
switch i32 %22, label %53 [
i32 0, label %23
i32 1, label %32
i32 2, label %37
i32 3, label %42
i32 4, label %47
i32 5, label %52
]
23: ; preds = %12
%24 = call i32 (ptr, ...) @printf(ptr noundef @.str.10)
%25 = call i32 (ptr, ...) @scanf(ptr noundef @.str.11, ptr noundef %5)
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.12)
%27 = call i32 (ptr, ...) @scanf(ptr noundef @.str.11, ptr noundef %6)
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
%29 = load double, ptr %5, align 8
%30 = load double, ptr %6, align 8
%31 = call i32 @WoodDensity(double noundef %29, double noundef %30)
br label %55
32: ; preds = %12
%33 = call i32 (ptr, ...) @printf(ptr noundef @.str.13)
%34 = call i32 (ptr, ...) @scanf(ptr noundef @.str.11, ptr noundef %7)
%35 = load double, ptr %7, align 8
%36 = call i32 @StopLength(double noundef %35)
br label %55
37: ; preds = %12
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
%39 = call i32 (ptr, ...) @scanf(ptr noundef @.str.11, ptr noundef %7)
%40 = load double, ptr %7, align 8
%41 = call i32 @FingerboardViolin(double noundef %40)
br label %55
42: ; preds = %12
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
%44 = call i32 (ptr, ...) @scanf(ptr noundef @.str.11, ptr noundef %7)
%45 = load double, ptr %7, align 8
%46 = call i32 @FingerboardViola(double noundef %45)
br label %55
47: ; preds = %12
%48 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
%49 = call i32 (ptr, ...) @scanf(ptr noundef @.str.11, ptr noundef %7)
%50 = load double, ptr %7, align 8
%51 = call i32 @SizeViolin(double noundef %50)
br label %55
52: ; preds = %12
store i32 0, ptr %2, align 4
br label %55
53: ; preds = %12
%54 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
br label %55
55: ; preds = %53, %52, %47, %42, %37, %32, %23
%56 = load i32, ptr %2, align 4
%57 = icmp ne i32 %56, 0
br i1 %57, label %12, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %55
br label %58
58: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @scanf(ptr noundef, ...) #1
declare i32 @WoodDensity(double noundef, double noundef) #1
declare i32 @StopLength(double noundef) #1
declare i32 @FingerboardViolin(double noundef) #1
declare i32 @FingerboardViola(double noundef) #1
declare i32 @SizeViolin(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpdr5kgbi3.c'
source_filename = "/tmp/tmpdr5kgbi3.c"
target datalayout = "e-m:e-p270: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/tmpdr5kgbi3.c"
target datalayout = "e-m:e-p270: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/tmp8ah01tpl.c'
source_filename = "/tmp/tmp8ah01tpl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
%4 = call i32 (...) @getchar()
store i32 %4, ptr %2, align 4
br label %5
5: ; preds = %28, %0
%6 = load i32, ptr %2, align 4
%7 = load i32, ptr @EOF, align 4
%8 = icmp ne i32 %6, %7
br i1 %8, label %9, label %30
9: ; preds = %5
%10 = load i32, ptr %2, align 4
%11 = icmp eq i32 %10, 32
br i1 %11, label %12, label %16
12: ; preds = %9
%13 = load i32, ptr %3, align 4
%14 = icmp eq i32 %13, 1
br i1 %14, label %15, label %16
15: ; preds = %12
store i32 1, ptr %3, align 4
br label %28
16: ; preds = %12, %9
%17 = load i32, ptr %2, align 4
%18 = icmp eq i32 %17, 32
br i1 %18, label %19, label %24
19: ; preds = %16
%20 = load i32, ptr %3, align 4
%21 = icmp eq i32 %20, 0
br i1 %21, label %22, label %24
22: ; preds = %19
%23 = call i32 @putchar(i32 noundef 32)
store i32 1, ptr %3, align 4
br label %27
24: ; preds = %19, %16
store i32 0, ptr %3, align 4
%25 = load i32, ptr %2, align 4
%26 = call i32 @putchar(i32 noundef %25)
br label %27
27: ; preds = %24, %22
br label %28
28: ; preds = %27, %15
%29 = call i32 (...) @getchar()
store i32 %29, ptr %2, align 4
br label %5, !llvm.loop !6
30: ; preds = %5
ret i32 0
}
declare i32 @getchar(...) #1
declare i32 @putchar(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/tmp8ah01tpl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@EOF = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %3, align 4
%4 = call i32 (...) @getchar()
store i32 %4, ptr %2, align 4
%5 = load i32, ptr %2, align 4
%6 = load i32, ptr @EOF, align 4
%7 = icmp ne i32 %5, %6
br i1 %7, label %.lr.ph, label %32
.lr.ph: ; preds = %0
br label %8
8: ; preds = %.lr.ph, %27
%9 = load i32, ptr %2, align 4
%10 = icmp eq i32 %9, 32
br i1 %10, label %11, label %15
11: ; preds = %8
%12 = load i32, ptr %3, align 4
%13 = icmp eq i32 %12, 1
br i1 %13, label %14, label %15
14: ; preds = %11
store i32 1, ptr %3, align 4
br label %27
15: ; preds = %11, %8
%16 = load i32, ptr %2, align 4
%17 = icmp eq i32 %16, 32
br i1 %17, label %18, label %23
18: ; preds = %15
%19 = load i32, ptr %3, align 4
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %23
21: ; preds = %18
%22 = call i32 @putchar(i32 noundef 32)
store i32 1, ptr %3, align 4
br label %26
23: ; preds = %18, %15
store i32 0, ptr %3, align 4
%24 = load i32, ptr %2, align 4
%25 = call i32 @putchar(i32 noundef %24)
br label %26
26: ; preds = %23, %21
br label %27
27: ; preds = %26, %14
%28 = call i32 (...) @getchar()
store i32 %28, ptr %2, align 4
%29 = load i32, ptr %2, align 4
%30 = load i32, ptr @EOF, align 4
%31 = icmp ne i32 %29, %30
br i1 %31, label %8, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %27
br label %32
32: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @getchar(...) #1
declare i32 @putchar(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/tmpupoebdku.c'
source_filename = "/tmp/tmpupoebdku.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"hefesto panic: no memory!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @hefesto_mloc(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca ptr, align 8
store i64 %0, ptr %2, align 8
%4 = load i64, ptr %2, align 8
%5 = call ptr @malloc(i64 noundef %4) #4
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %11
8: ; preds = %1
%9 = call i32 @printf(ptr noundef @.str)
%10 = call i32 @exit(i32 noundef 1) #5
unreachable
11: ; preds = %1
%12 = load ptr, ptr %3, align 8
ret ptr %12
}
; Function Attrs: allocsize(0)
declare ptr @malloc(i64 noundef) #1
declare i32 @printf(ptr noundef) #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { allocsize(0) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { allocsize(0) }
attributes #5 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpupoebdku.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"hefesto panic: no memory!\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @hefesto_mloc(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca ptr, align 8
store i64 %0, ptr %2, align 8
%4 = load i64, ptr %2, align 8
%5 = call ptr @malloc(i64 noundef %4) #4
store ptr %5, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %11
8: ; preds = %1
%9 = call i32 @printf(ptr noundef @.str)
%10 = call i32 @exit(i32 noundef 1) #5
unreachable
11: ; preds = %1
%12 = load ptr, ptr %3, align 8
ret ptr %12
}
; Function Attrs: allocsize(0)
declare ptr @malloc(i64 noundef) #1
declare i32 @printf(ptr noundef) #2
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { allocsize(0) "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { allocsize(0) }
attributes #5 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp1_ub9yon.c'
source_filename = "/tmp/tmp1_ub9yon.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"usage: %s metadata_file\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, 2
br i1 %7, label %8, label %13
8: ; preds = %2
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds ptr, ptr %9, i64 0
%11 = load ptr, ptr %10, align 8
%12 = call i32 @printf(ptr noundef @.str, ptr noundef %11)
store i32 1, ptr %3, align 4
br label %21
13: ; preds = %2
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 1
%16 = load ptr, ptr %15, align 8
%17 = call i64 @fs_loadall(ptr noundef %16)
%18 = icmp slt i64 %17, 0
%19 = zext i1 %18 to i64
%20 = select i1 %18, i32 1, i32 0
store i32 %20, ptr %3, align 4
br label %21
21: ; preds = %13, %8
%22 = load i32, ptr %3, align 4
ret i32 %22
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i64 @fs_loadall(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp1_ub9yon.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [25 x i8] c"usage: %s metadata_file\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, 2
br i1 %7, label %8, label %13
8: ; preds = %2
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds ptr, ptr %9, i64 0
%11 = load ptr, ptr %10, align 8
%12 = call i32 @printf(ptr noundef @.str, ptr noundef %11)
store i32 1, ptr %3, align 4
br label %21
13: ; preds = %2
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 1
%16 = load ptr, ptr %15, align 8
%17 = call i64 @fs_loadall(ptr noundef %16)
%18 = icmp slt i64 %17, 0
%19 = zext i1 %18 to i64
%20 = select i1 %18, i32 1, i32 0
store i32 %20, ptr %3, align 4
br label %21
21: ; preds = %13, %8
%22 = load i32, ptr %3, align 4
ret i32 %22
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i64 @fs_loadall(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp73wmbbpx.c'
source_filename = "/tmp/tmp73wmbbpx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @pow(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
store double %0, ptr %3, align 8
store double %1, ptr %4, align 8
store double 0.000000e+00, ptr %5, align 8
%6 = load double, ptr %4, align 8
%7 = load double, ptr %3, align 8
%8 = call double @log(double noundef %7) #2
%9 = fmul double %6, %8
store double %9, ptr %5, align 8
%10 = load double, ptr %5, align 8
%11 = call double @exp(double noundef %10) #2
ret double %11
}
; Function Attrs: nounwind
declare double @log(double noundef) #1
; Function Attrs: nounwind
declare double @exp(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp73wmbbpx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local double @pow(double noundef %0, double noundef %1) #0 {
%3 = alloca double, align 8
%4 = alloca double, align 8
%5 = alloca double, align 8
store double %0, ptr %3, align 8
store double %1, ptr %4, align 8
store double 0.000000e+00, ptr %5, align 8
%6 = load double, ptr %4, align 8
%7 = load double, ptr %3, align 8
%8 = call double @log(double noundef %7) #2
%9 = fmul double %6, %8
store double %9, ptr %5, align 8
%10 = load double, ptr %5, align 8
%11 = call double @exp(double noundef %10) #2
ret double %11
}
; Function Attrs: nounwind
declare double @log(double noundef) #1
; Function Attrs: nounwind
declare double @exp(double noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpabp4isv7.c'
source_filename = "/tmp/tmpabp4isv7.c"
target datalayout = "e-m:e-p270: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/tmpabp4isv7.c"
target datalayout = "e-m:e-p270: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/tmpfuf4yxx4.c'
source_filename = "/tmp/tmpfuf4yxx4.c"
target datalayout = "e-m:e-p270: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/tmpfuf4yxx4.c"
target datalayout = "e-m:e-p270: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/tmpbdxkv8bi.c'
source_filename = "/tmp/tmpbdxkv8bi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca ptr, align 8
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr null, ptr %1, align 8
store ptr inttoptr (i64 123 to ptr), ptr %2, align 8
store ptr %3, ptr %4, align 8
%7 = call ptr @malloc(i32 noundef 20)
store ptr %7, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
store ptr %8, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds i32, ptr %9, i32 1
store ptr %10, ptr %5, align 8
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds i32, ptr %11, i32 1
store ptr %12, ptr %5, align 8
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds i32, ptr %13, i32 1
store ptr %14, ptr %5, align 8
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds i32, ptr %15, i32 1
store ptr %16, ptr %5, align 8
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds i32, ptr %17, i32 1
store ptr %18, ptr %5, align 8
%19 = load ptr, ptr %5, align 8
%20 = getelementptr inbounds i32, ptr %19, i32 1
store ptr %20, ptr %5, align 8
%21 = load ptr, ptr %5, align 8
%22 = getelementptr inbounds i32, ptr %21, i32 1
store ptr %22, ptr %5, align 8
%23 = load ptr, ptr %5, align 8
%24 = getelementptr inbounds i32, ptr %23, i32 1
store ptr %24, ptr %5, align 8
%25 = load ptr, ptr %3, align 8
%26 = call i32 @free(ptr noundef %25)
store ptr null, ptr %3, align 8
%27 = call ptr (...) @foo()
store ptr %27, ptr %6, align 8
ret i32 0
}
declare ptr @malloc(i32 noundef) #1
declare i32 @free(ptr noundef) #1
declare ptr @foo(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbdxkv8bi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca ptr, align 8
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store ptr null, ptr %1, align 8
store ptr inttoptr (i64 123 to ptr), ptr %2, align 8
store ptr %3, ptr %4, align 8
%7 = call ptr @malloc(i32 noundef 20)
store ptr %7, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
store ptr %8, ptr %5, align 8
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds i32, ptr %9, i32 1
store ptr %10, ptr %5, align 8
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds i32, ptr %11, i32 1
store ptr %12, ptr %5, align 8
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds i32, ptr %13, i32 1
store ptr %14, ptr %5, align 8
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds i32, ptr %15, i32 1
store ptr %16, ptr %5, align 8
%17 = load ptr, ptr %5, align 8
%18 = getelementptr inbounds i32, ptr %17, i32 1
store ptr %18, ptr %5, align 8
%19 = load ptr, ptr %5, align 8
%20 = getelementptr inbounds i32, ptr %19, i32 1
store ptr %20, ptr %5, align 8
%21 = load ptr, ptr %5, align 8
%22 = getelementptr inbounds i32, ptr %21, i32 1
store ptr %22, ptr %5, align 8
%23 = load ptr, ptr %5, align 8
%24 = getelementptr inbounds i32, ptr %23, i32 1
store ptr %24, ptr %5, align 8
%25 = load ptr, ptr %3, align 8
%26 = call i32 @free(ptr noundef %25)
store ptr null, ptr %3, align 8
%27 = call ptr (...) @foo()
store ptr %27, ptr %6, align 8
ret i32 0
}
declare ptr @malloc(i32 noundef) #1
declare i32 @free(ptr noundef) #1
declare ptr @foo(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpw1qiqgbi.c'
source_filename = "/tmp/tmpw1qiqgbi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"it is a\0A\0D\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @a_fun() #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/tmpw1qiqgbi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"it is a\0A\0D\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @a_fun() #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/tmpdbdsov5b.c'
source_filename = "/tmp/tmpdbdsov5b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @f2() #0 {
%1 = call i32 @g(i32 noundef 3, i32 noundef 4, i32 noundef 5, i32 noundef 6)
ret void
}
declare i32 @g(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/tmpdbdsov5b.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @f2() #0 {
%1 = call i32 @g(i32 noundef 3, i32 noundef 4, i32 noundef 5, i32 noundef 6)
ret void
}
declare i32 @g(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/tmp5bcf9g0r.c'
source_filename = "/tmp/tmp5bcf9g0r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca [100 x i32], align 16
store i32 0, ptr %1, align 4
%4 = getelementptr inbounds [100 x i32], ptr %3, i64 0, i64 0
%5 = call i32 @inputVet(ptr noundef %4, ptr noundef %2)
%6 = getelementptr inbounds [100 x i32], ptr %3, i64 0, i64 0
%7 = load i32, ptr %2, align 4
%8 = call i32 @outputVet(ptr noundef %6, i32 noundef %7)
ret i32 0
}
declare i32 @inputVet(ptr noundef, ptr noundef) #1
declare i32 @outputVet(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/tmp5bcf9g0r.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca [100 x i32], align 16
store i32 0, ptr %1, align 4
%4 = getelementptr inbounds [100 x i32], ptr %3, i64 0, i64 0
%5 = call i32 @inputVet(ptr noundef %4, ptr noundef %2)
%6 = getelementptr inbounds [100 x i32], ptr %3, i64 0, i64 0
%7 = load i32, ptr %2, align 4
%8 = call i32 @outputVet(ptr noundef %6, i32 noundef %7)
ret i32 0
}
declare i32 @inputVet(ptr noundef, ptr noundef) #1
declare i32 @outputVet(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/tmperit9vi8.c'
source_filename = "/tmp/tmperit9vi8.c"
target datalayout = "e-m:e-p270: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/tmperit9vi8.c"
target datalayout = "e-m:e-p270: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/tmpklqda0rg.c'
source_filename = "/tmp/tmpklqda0rg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getStepLength(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
%9 = alloca i32, align 4
%10 = 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
%11 = load i32, ptr %5, align 4
%12 = load i32, ptr %7, align 4
%13 = load i32, ptr %8, align 4
%14 = call i32 @getBps(i32 noundef %11, i32 noundef %12, i32 noundef %13)
store i32 %14, ptr %9, align 4
%15 = load i32, ptr %6, align 4
%16 = call i32 @stepSizetoSec(i32 noundef %15)
store i32 %16, ptr %10, align 4
%17 = load i32, ptr %9, align 4
%18 = load i32, ptr %10, align 4
%19 = sdiv i32 %17, %18
ret i32 %19
}
declare i32 @getBps(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @stepSizetoSec(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/tmpklqda0rg.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @getStepLength(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
%9 = alloca i32, align 4
%10 = 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
%11 = load i32, ptr %5, align 4
%12 = load i32, ptr %7, align 4
%13 = load i32, ptr %8, align 4
%14 = call i32 @getBps(i32 noundef %11, i32 noundef %12, i32 noundef %13)
store i32 %14, ptr %9, align 4
%15 = load i32, ptr %6, align 4
%16 = call i32 @stepSizetoSec(i32 noundef %15)
store i32 %16, ptr %10, align 4
%17 = load i32, ptr %9, align 4
%18 = load i32, ptr %10, align 4
%19 = sdiv i32 %17, %18
ret i32 %19
}
declare i32 @getBps(i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @stepSizetoSec(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/tmp0k82_om9.c'
source_filename = "/tmp/tmp0k82_om9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"bl\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"_%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Call_C_Invoke(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%9 = load ptr, ptr %5, align 8
%10 = call i32 @Inst_Printf(ptr noundef @.str, ptr noundef @.str.1, ptr noundef %9)
ret void
}
declare i32 @Inst_Printf(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0k82_om9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"bl\00", align 1
@.str.1 = private unnamed_addr constant [4 x i8] c"_%s\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @Call_C_Invoke(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %5, align 8
store i32 %1, ptr %6, align 4
store i32 %2, ptr %7, align 4
store i32 %3, ptr %8, align 4
%9 = load ptr, ptr %5, align 8
%10 = call i32 @Inst_Printf(ptr noundef @.str, ptr noundef @.str.1, ptr noundef %9)
ret void
}
declare i32 @Inst_Printf(ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmplsm5wp0m.c'
source_filename = "/tmp/tmplsm5wp0m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @init_generator(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca %struct.stat, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i32 @stat(ptr noundef %4, ptr noundef %3)
%6 = icmp eq i32 %5, -1
br i1 %6, label %7, label %10
7: ; preds = %1
%8 = load ptr, ptr %2, align 8
%9 = call i32 @mkdir(ptr noundef %8, i32 noundef 493)
br label %10
10: ; preds = %7, %1
ret void
}
declare i32 @stat(ptr noundef, ptr noundef) #1
declare i32 @mkdir(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplsm5wp0m.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.stat = type { i32 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @init_generator(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca %struct.stat, align 4
store ptr %0, ptr %2, align 8
%4 = load ptr, ptr %2, align 8
%5 = call i32 @stat(ptr noundef %4, ptr noundef %3)
%6 = icmp eq i32 %5, -1
br i1 %6, label %7, label %10
7: ; preds = %1
%8 = load ptr, ptr %2, align 8
%9 = call i32 @mkdir(ptr noundef %8, i32 noundef 493)
br label %10
10: ; preds = %7, %1
ret void
}
declare i32 @stat(ptr noundef, ptr noundef) #1
declare i32 @mkdir(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpk91z0k47.c'
source_filename = "/tmp/tmpk91z0k47.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"1234567\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%5 = call ptr @malloc(i32 noundef 8)
store ptr %5, ptr %2, align 8
%6 = call ptr @malloc(i32 noundef 8)
store ptr %6, ptr %3, align 8
%7 = call ptr @malloc(i32 noundef 8)
store ptr %7, ptr %4, align 8
%8 = load ptr, ptr %2, align 8
%9 = call i32 @strncpy(ptr noundef %8, ptr noundef @.str, i32 noundef 7)
%10 = load ptr, ptr %2, align 8
%11 = getelementptr inbounds i8, ptr %10, i64 7
store i8 0, ptr %11, align 1
%12 = load ptr, ptr %3, align 8
%13 = call i32 @strncpy(ptr noundef %12, ptr noundef @.str, i32 noundef 7)
%14 = load ptr, ptr %3, align 8
%15 = getelementptr inbounds i8, ptr %14, i64 7
store i8 0, ptr %15, align 1
%16 = load ptr, ptr %4, align 8
%17 = call i32 @strncpy(ptr noundef %16, ptr noundef @.str, i32 noundef 7)
%18 = load ptr, ptr %4, align 8
%19 = getelementptr inbounds i8, ptr %18, i64 7
store i8 0, ptr %19, align 1
%20 = load ptr, ptr %4, align 8
%21 = call i32 @free(ptr noundef %20)
%22 = call i32 (...) @getchar()
%23 = load ptr, ptr %3, align 8
%24 = call i32 @free(ptr noundef %23)
%25 = call i32 (...) @getchar()
%26 = load ptr, ptr %2, align 8
%27 = call i32 @free(ptr noundef %26)
%28 = call i32 (...) @getchar()
%29 = call i32 (...) @getchar()
ret i32 0
}
declare ptr @malloc(i32 noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpk91z0k47.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"1234567\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
store i32 0, ptr %1, align 4
%5 = call ptr @malloc(i32 noundef 8)
store ptr %5, ptr %2, align 8
%6 = call ptr @malloc(i32 noundef 8)
store ptr %6, ptr %3, align 8
%7 = call ptr @malloc(i32 noundef 8)
store ptr %7, ptr %4, align 8
%8 = load ptr, ptr %2, align 8
%9 = call i32 @strncpy(ptr noundef %8, ptr noundef @.str, i32 noundef 7)
%10 = load ptr, ptr %2, align 8
%11 = getelementptr inbounds i8, ptr %10, i64 7
store i8 0, ptr %11, align 1
%12 = load ptr, ptr %3, align 8
%13 = call i32 @strncpy(ptr noundef %12, ptr noundef @.str, i32 noundef 7)
%14 = load ptr, ptr %3, align 8
%15 = getelementptr inbounds i8, ptr %14, i64 7
store i8 0, ptr %15, align 1
%16 = load ptr, ptr %4, align 8
%17 = call i32 @strncpy(ptr noundef %16, ptr noundef @.str, i32 noundef 7)
%18 = load ptr, ptr %4, align 8
%19 = getelementptr inbounds i8, ptr %18, i64 7
store i8 0, ptr %19, align 1
%20 = load ptr, ptr %4, align 8
%21 = call i32 @free(ptr noundef %20)
%22 = call i32 (...) @getchar()
%23 = load ptr, ptr %3, align 8
%24 = call i32 @free(ptr noundef %23)
%25 = call i32 (...) @getchar()
%26 = load ptr, ptr %2, align 8
%27 = call i32 @free(ptr noundef %26)
%28 = call i32 (...) @getchar()
%29 = call i32 (...) @getchar()
ret i32 0
}
declare ptr @malloc(i32 noundef) #1
declare i32 @strncpy(ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @getchar(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpnuahr4mg.c'
source_filename = "/tmp/tmpnuahr4mg.c"
target datalayout = "e-m:e-p270: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.atno = private unnamed_addr constant [2 x i32] [i32 1, i32 1], align 4
@__const.main.z = private unnamed_addr constant [2 x double] [double -3.500000e-01, double 3.500000e-01], align 16
@__const.main.zcenter = private unnamed_addr constant [10 x double] [double -3.500000e-01, double -3.500000e-01, double -3.500000e-01, double -3.500000e-01, double -3.500000e-01, double 3.500000e-01, double 3.500000e-01, double 3.500000e-01, double 3.500000e-01, double 3.500000e-01], align 16
@__const.main.normc = private unnamed_addr constant [10 x double] [double 0x3FF000001D67880F, double 1.000000e+00, double 1.000000e+00, double 1.000000e+00, double 1.000000e+00, double 0x3FF000001D67880F, double 1.000000e+00, double 1.000000e+00, double 1.000000e+00, double 1.000000e+00], align 16
@__const.main.istart = private unnamed_addr constant [10 x i32] [i32 0, i32 3, i32 4, i32 5, i32 6, i32 7, i32 10, i32 11, i32 12, i32 13], align 16
@__const.main.nprim = private unnamed_addr constant [10 x i32] [i32 3, i32 1, i32 1, i32 1, i32 1, i32 3, i32 1, i32 1, i32 1, i32 1], align 16
@__const.main.alpha = private unnamed_addr constant [14 x double] [double 0x4032BB2BCB5FE543, double 0x40069A682B62845A, double 6.401220e-01, double 1.612780e-01, double 1.100000e+00, double 1.100000e+00, double 1.100000e+00, double 0x4032BB2BCB5FE543, double 0x40069A682B62845A, double 6.401220e-01, double 1.612780e-01, double 1.100000e+00, double 1.100000e+00, double 1.100000e+00], align 16
@__const.main.coef = private unnamed_addr constant [14 x double] [double 3.349500e-02, double 2.347270e-01, double 8.137570e-01, double 1.000000e+00, double 1.000000e+00, double 1.000000e+00, double 1.000000e+00, double 3.349500e-02, double 2.347270e-01, double 8.137570e-01, double 1.000000e+00, double 1.000000e+00, double 1.000000e+00, double 1.000000e+00], align 16
@__const.main.normp = private unnamed_addr constant [14 x double] [double 0x4019AB0688B564B4, double 0x3FF8D9CA256D14DE, double 0x3FE0524699355B34, double 0x3FC7377CDF13A7E0, double 0x3FF9B132988DE8D2, double 0x3FF9B132988DE8D2, double 0x3FF9B132988DE8D2, double 0x4019AB0688B564B4, double 0x3FF8D9CA256D14DE, double 0x3FE0524699355B34, double 0x3FC7377CDF13A7E0, double 0x3FF9B132988DE8D2, double 0x3FF9B132988DE8D2, double 0x3FF9B132988DE8D2], align 16
@.str = private unnamed_addr constant [19 x i8] c"%d %f %f %f %f %f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca [100 x double], align 16
%10 = alloca [100 x double], align 16
%11 = alloca [100 x double], align 16
%12 = alloca [100 x double], align 16
%13 = alloca [1540 x double], align 16
%14 = alloca [100 x double], align 16
%15 = alloca [100 x double], align 16
%16 = alloca [100 x double], align 16
%17 = alloca [10 x double], align 16
%18 = alloca [100 x double], align 16
%19 = alloca [100 x double], align 16
%20 = alloca [10 x double], align 16
%21 = alloca [10 x double], align 16
%22 = alloca [100 x double], align 16
%23 = alloca double, align 8
%24 = alloca double, align 8
%25 = alloca double, align 8
%26 = alloca double, align 8
%27 = alloca double, align 8
%28 = alloca [2 x i32], align 4
%29 = alloca [2 x double], align 16
%30 = alloca [2 x double], align 16
%31 = alloca [2 x double], align 16
%32 = alloca [10 x double], align 16
%33 = alloca [10 x double], align 16
%34 = alloca [10 x double], align 16
%35 = alloca [10 x i32], align 16
%36 = alloca [10 x i32], align 16
%37 = alloca [10 x i32], align 16
%38 = alloca [10 x double], align 16
%39 = alloca [10 x i32], align 16
%40 = alloca [10 x i32], align 16
%41 = alloca [14 x double], align 16
%42 = alloca [14 x double], align 16
%43 = alloca [14 x double], align 16
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 2, ptr %3, align 4
store i32 10, ptr %4, align 4
store i32 1, ptr %5, align 4
store i32 5, ptr %8, align 4
store double 0x3FF6DB6D43D03969, ptr %27, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %28, ptr align 4 @__const.main.atno, i64 8, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %29, i8 0, i64 16, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %30, i8 0, i64 16, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %31, ptr align 16 @__const.main.z, i64 16, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %32, i8 0, i64 80, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %33, i8 0, i64 80, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %34, ptr align 16 @__const.main.zcenter, i64 80, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %35, i8 0, i64 40, i1 false)
%44 = getelementptr inbounds [10 x i32], ptr %35, i32 0, i32 2
store i32 1, ptr %44, align 8
%45 = getelementptr inbounds [10 x i32], ptr %35, i32 0, i32 7
store i32 1, ptr %45, align 4
call void @llvm.memset.p0.i64(ptr align 16 %36, i8 0, i64 40, i1 false)
%46 = getelementptr inbounds [10 x i32], ptr %36, i32 0, i32 3
store i32 1, ptr %46, align 4
%47 = getelementptr inbounds [10 x i32], ptr %36, i32 0, i32 8
store i32 1, ptr %47, align 16
call void @llvm.memset.p0.i64(ptr align 16 %37, i8 0, i64 40, i1 false)
%48 = getelementptr inbounds [10 x i32], ptr %37, i32 0, i32 4
store i32 1, ptr %48, align 16
%49 = getelementptr inbounds [10 x i32], ptr %37, i32 0, i32 9
store i32 1, ptr %49, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %38, ptr align 16 @__const.main.normc, i64 80, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %39, ptr align 16 @__const.main.istart, i64 40, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %40, ptr align 16 @__const.main.nprim, i64 40, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %41, ptr align 16 @__const.main.alpha, i64 112, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %42, ptr align 16 @__const.main.coef, i64 112, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %43, ptr align 16 @__const.main.normp, i64 112, i1 false)
%50 = load i32, ptr %4, align 4
%51 = getelementptr inbounds [10 x i32], ptr %40, i64 0, i64 0
%52 = getelementptr inbounds [10 x double], ptr %38, i64 0, i64 0
%53 = getelementptr inbounds [10 x i32], ptr %39, i64 0, i64 0
%54 = getelementptr inbounds [10 x double], ptr %32, i64 0, i64 0
%55 = getelementptr inbounds [10 x double], ptr %33, i64 0, i64 0
%56 = getelementptr inbounds [10 x double], ptr %34, i64 0, i64 0
%57 = getelementptr inbounds [10 x i32], ptr %35, i64 0, i64 0
%58 = getelementptr inbounds [10 x i32], ptr %36, i64 0, i64 0
%59 = getelementptr inbounds [10 x i32], ptr %37, i64 0, i64 0
%60 = getelementptr inbounds [14 x double], ptr %43, i64 0, i64 0
%61 = getelementptr inbounds [14 x double], ptr %42, i64 0, i64 0
%62 = getelementptr inbounds [14 x double], ptr %41, i64 0, i64 0
%63 = getelementptr inbounds [100 x double], ptr %10, i64 0, i64 0
%64 = call i32 @getS(i32 noundef %50, ptr noundef %51, ptr noundef %52, ptr noundef %53, ptr noundef %54, ptr noundef %55, ptr noundef %56, ptr noundef %57, ptr noundef %58, ptr noundef %59, ptr noundef %60, ptr noundef %61, ptr noundef %62, ptr noundef %63)
%65 = load i32, ptr %4, align 4
%66 = getelementptr inbounds [10 x i32], ptr %40, i64 0, i64 0
%67 = getelementptr inbounds [10 x double], ptr %38, i64 0, i64 0
%68 = getelementptr inbounds [10 x i32], ptr %39, i64 0, i64 0
%69 = getelementptr inbounds [10 x double], ptr %32, i64 0, i64 0
%70 = getelementptr inbounds [10 x double], ptr %33, i64 0, i64 0
%71 = getelementptr inbounds [10 x double], ptr %34, i64 0, i64 0
%72 = getelementptr inbounds [10 x i32], ptr %35, i64 0, i64 0
%73 = getelementptr inbounds [10 x i32], ptr %36, i64 0, i64 0
%74 = getelementptr inbounds [10 x i32], ptr %37, i64 0, i64 0
%75 = getelementptr inbounds [14 x double], ptr %43, i64 0, i64 0
%76 = getelementptr inbounds [14 x double], ptr %42, i64 0, i64 0
%77 = getelementptr inbounds [14 x double], ptr %41, i64 0, i64 0
%78 = getelementptr inbounds [100 x double], ptr %11, i64 0, i64 0
%79 = call i32 @getT(i32 noundef %65, ptr noundef %66, ptr noundef %67, ptr noundef %68, ptr noundef %69, ptr noundef %70, ptr noundef %71, ptr noundef %72, ptr noundef %73, ptr noundef %74, ptr noundef %75, ptr noundef %76, ptr noundef %77, ptr noundef %78)
%80 = load i32, ptr %4, align 4
%81 = getelementptr inbounds [10 x i32], ptr %40, i64 0, i64 0
%82 = getelementptr inbounds [10 x double], ptr %38, i64 0, i64 0
%83 = getelementptr inbounds [10 x i32], ptr %39, i64 0, i64 0
%84 = getelementptr inbounds [10 x double], ptr %32, i64 0, i64 0
%85 = getelementptr inbounds [10 x double], ptr %33, i64 0, i64 0
%86 = getelementptr inbounds [10 x double], ptr %34, i64 0, i64 0
%87 = getelementptr inbounds [10 x i32], ptr %35, i64 0, i64 0
%88 = getelementptr inbounds [10 x i32], ptr %36, i64 0, i64 0
%89 = getelementptr inbounds [10 x i32], ptr %37, i64 0, i64 0
%90 = getelementptr inbounds [14 x double], ptr %43, i64 0, i64 0
%91 = getelementptr inbounds [14 x double], ptr %42, i64 0, i64 0
%92 = getelementptr inbounds [14 x double], ptr %41, i64 0, i64 0
%93 = load i32, ptr %3, align 4
%94 = getelementptr inbounds [2 x i32], ptr %28, i64 0, i64 0
%95 = getelementptr inbounds [2 x double], ptr %29, i64 0, i64 0
%96 = getelementptr inbounds [2 x double], ptr %30, i64 0, i64 0
%97 = getelementptr inbounds [2 x double], ptr %31, i64 0, i64 0
%98 = getelementptr inbounds [100 x double], ptr %12, i64 0, i64 0
%99 = call i32 @getV(i32 noundef %80, ptr noundef %81, ptr noundef %82, ptr noundef %83, ptr noundef %84, ptr noundef %85, ptr noundef %86, ptr noundef %87, ptr noundef %88, ptr noundef %89, ptr noundef %90, ptr noundef %91, ptr noundef %92, i32 noundef %93, ptr noundef %94, ptr noundef %95, ptr noundef %96, ptr noundef %97, ptr noundef %98)
%100 = load i32, ptr %4, align 4
%101 = getelementptr inbounds [10 x i32], ptr %40, i64 0, i64 0
%102 = getelementptr inbounds [10 x double], ptr %38, i64 0, i64 0
%103 = getelementptr inbounds [10 x i32], ptr %39, i64 0, i64 0
%104 = getelementptr inbounds [10 x double], ptr %32, i64 0, i64 0
%105 = getelementptr inbounds [10 x double], ptr %33, i64 0, i64 0
%106 = getelementptr inbounds [10 x double], ptr %34, i64 0, i64 0
%107 = getelementptr inbounds [10 x i32], ptr %35, i64 0, i64 0
%108 = getelementptr inbounds [10 x i32], ptr %36, i64 0, i64 0
%109 = getelementptr inbounds [10 x i32], ptr %37, i64 0, i64 0
%110 = getelementptr inbounds [14 x double], ptr %43, i64 0, i64 0
%111 = getelementptr inbounds [14 x double], ptr %42, i64 0, i64 0
%112 = getelementptr inbounds [14 x double], ptr %41, i64 0, i64 0
%113 = getelementptr inbounds [1540 x double], ptr %13, i64 0, i64 0
%114 = call i32 @getInts(i32 noundef %100, ptr noundef %101, ptr noundef %102, ptr noundef %103, ptr noundef %104, ptr noundef %105, ptr noundef %106, ptr noundef %107, ptr noundef %108, ptr noundef %109, ptr noundef %110, ptr noundef %111, ptr noundef %112, ptr noundef %113)
store i32 0, ptr %2, align 4
br label %115
115: ; preds = %134, %0
%116 = load i32, ptr %2, align 4
%117 = load i32, ptr %4, align 4
%118 = load i32, ptr %4, align 4
%119 = mul nsw i32 %117, %118
%120 = icmp slt i32 %116, %119
br i1 %120, label %121, label %137
121: ; preds = %115
%122 = load i32, ptr %2, align 4
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds [100 x double], ptr %11, i64 0, i64 %123
%125 = load double, ptr %124, align 8
%126 = load i32, ptr %2, align 4
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds [100 x double], ptr %12, i64 0, i64 %127
%129 = load double, ptr %128, align 8
%130 = fadd double %125, %129
%131 = load i32, ptr %2, align 4
%132 = sext i32 %131 to i64
%133 = getelementptr inbounds [100 x double], ptr %9, i64 0, i64 %132
store double %130, ptr %133, align 8
br label %134
134: ; preds = %121
%135 = load i32, ptr %2, align 4
%136 = add nsw i32 %135, 1
store i32 %136, ptr %2, align 4
br label %115, !llvm.loop !6
137: ; preds = %115
%138 = load i32, ptr %4, align 4
%139 = load i32, ptr %5, align 4
%140 = getelementptr inbounds [100 x double], ptr %18, i64 0, i64 0
%141 = getelementptr inbounds [100 x double], ptr %14, i64 0, i64 0
%142 = call i32 @getD(i32 noundef %138, i32 noundef %139, ptr noundef %140, ptr noundef %141)
store i32 0, ptr %2, align 4
br label %143
143: ; preds = %171, %137
%144 = load i32, ptr %2, align 4
%145 = load i32, ptr %4, align 4
%146 = load i32, ptr %4, align 4
%147 = mul nsw i32 %145, %146
%148 = icmp slt i32 %144, %147
br i1 %148, label %149, label %174
149: ; preds = %143
%150 = load i32, ptr %2, align 4
%151 = sext i32 %150 to i64
%152 = getelementptr inbounds [100 x double], ptr %9, i64 0, i64 %151
%153 = load double, ptr %152, align 8
%154 = load i32, ptr %2, align 4
%155 = sext i32 %154 to i64
%156 = getelementptr inbounds [100 x double], ptr %18, i64 0, i64 %155
store double %153, ptr %156, align 8
%157 = load i32, ptr %2, align 4
%158 = sext i32 %157 to i64
%159 = getelementptr inbounds [100 x double], ptr %9, i64 0, i64 %158
%160 = load double, ptr %159, align 8
%161 = load i32, ptr %2, align 4
%162 = sext i32 %161 to i64
%163 = getelementptr inbounds [100 x double], ptr %22, i64 0, i64 %162
store double %160, ptr %163, align 8
%164 = load i32, ptr %2, align 4
%165 = sext i32 %164 to i64
%166 = getelementptr inbounds [100 x double], ptr %10, i64 0, i64 %165
%167 = load double, ptr %166, align 8
%168 = load i32, ptr %2, align 4
%169 = sext i32 %168 to i64
%170 = getelementptr inbounds [100 x double], ptr %19, i64 0, i64 %169
store double %167, ptr %170, align 8
br label %171
171: ; preds = %149
%172 = load i32, ptr %2, align 4
%173 = add nsw i32 %172, 1
store i32 %173, ptr %2, align 4
br label %143, !llvm.loop !8
174: ; preds = %143
%175 = getelementptr inbounds [100 x double], ptr %22, i64 0, i64 0
%176 = getelementptr inbounds [100 x double], ptr %19, i64 0, i64 0
%177 = load i32, ptr %4, align 4
%178 = getelementptr inbounds [10 x double], ptr %17, i64 0, i64 0
%179 = getelementptr inbounds [100 x double], ptr %18, i64 0, i64 0
%180 = getelementptr inbounds [10 x double], ptr %20, i64 0, i64 0
%181 = getelementptr inbounds [10 x double], ptr %21, i64 0, i64 0
%182 = call i32 @gjacobi(ptr noundef %175, ptr noundef %176, i32 noundef %177, ptr noundef %178, ptr noundef %179, ptr noundef %180, ptr noundef %181)
store i32 %182, ptr %6, align 4
store i32 0, ptr %7, align 4
br label %183
183: ; preds = %323, %174
%184 = load i32, ptr %7, align 4
%185 = load i32, ptr %8, align 4
%186 = icmp slt i32 %184, %185
br i1 %186, label %187, label %326
187: ; preds = %183
%188 = load i32, ptr %4, align 4
%189 = load i32, ptr %5, align 4
%190 = getelementptr inbounds [100 x double], ptr %18, i64 0, i64 0
%191 = getelementptr inbounds [100 x double], ptr %14, i64 0, i64 0
%192 = call i32 @getD(i32 noundef %188, i32 noundef %189, ptr noundef %190, ptr noundef %191)
%193 = load i32, ptr %4, align 4
%194 = getelementptr inbounds [100 x double], ptr %14, i64 0, i64 0
%195 = getelementptr inbounds [1540 x double], ptr %13, i64 0, i64 0
%196 = getelementptr inbounds [100 x double], ptr %15, i64 0, i64 0
%197 = call i32 @getJ(i32 noundef %193, ptr noundef %194, ptr noundef %195, ptr noundef %196)
%198 = load i32, ptr %4, align 4
%199 = getelementptr inbounds [100 x double], ptr %14, i64 0, i64 0
%200 = getelementptr inbounds [1540 x double], ptr %13, i64 0, i64 0
%201 = getelementptr inbounds [100 x double], ptr %16, i64 0, i64 0
%202 = call i32 @getK(i32 noundef %198, ptr noundef %199, ptr noundef %200, ptr noundef %201)
store i32 0, ptr %2, align 4
br label %203
203: ; preds = %234, %187
%204 = load i32, ptr %2, align 4
%205 = load i32, ptr %4, align 4
%206 = load i32, ptr %4, align 4
%207 = mul nsw i32 %205, %206
%208 = icmp slt i32 %204, %207
br i1 %208, label %209, label %237
209: ; preds = %203
%210 = load i32, ptr %2, align 4
%211 = sext i32 %210 to i64
%212 = getelementptr inbounds [100 x double], ptr %9, i64 0, i64 %211
%213 = load double, ptr %212, align 8
%214 = load i32, ptr %2, align 4
%215 = sext i32 %214 to i64
%216 = getelementptr inbounds [100 x double], ptr %15, i64 0, i64 %215
%217 = load double, ptr %216, align 8
%218 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %217, double %213)
%219 = load i32, ptr %2, align 4
%220 = sext i32 %219 to i64
%221 = getelementptr inbounds [100 x double], ptr %16, i64 0, i64 %220
%222 = load double, ptr %221, align 8
%223 = fsub double %218, %222
%224 = load i32, ptr %2, align 4
%225 = sext i32 %224 to i64
%226 = getelementptr inbounds [100 x double], ptr %22, i64 0, i64 %225
store double %223, ptr %226, align 8
%227 = load i32, ptr %2, align 4
%228 = sext i32 %227 to i64
%229 = getelementptr inbounds [100 x double], ptr %10, i64 0, i64 %228
%230 = load double, ptr %229, align 8
%231 = load i32, ptr %2, align 4
%232 = sext i32 %231 to i64
%233 = getelementptr inbounds [100 x double], ptr %19, i64 0, i64 %232
store double %230, ptr %233, align 8
br label %234
234: ; preds = %209
%235 = load i32, ptr %2, align 4
%236 = add nsw i32 %235, 1
store i32 %236, ptr %2, align 4
br label %203, !llvm.loop !9
237: ; preds = %203
%238 = getelementptr inbounds [100 x double], ptr %22, i64 0, i64 0
%239 = getelementptr inbounds [100 x double], ptr %19, i64 0, i64 0
%240 = load i32, ptr %4, align 4
%241 = getelementptr inbounds [10 x double], ptr %17, i64 0, i64 0
%242 = getelementptr inbounds [100 x double], ptr %18, i64 0, i64 0
%243 = getelementptr inbounds [10 x double], ptr %20, i64 0, i64 0
%244 = getelementptr inbounds [10 x double], ptr %21, i64 0, i64 0
%245 = call i32 @gjacobi(ptr noundef %238, ptr noundef %239, i32 noundef %240, ptr noundef %241, ptr noundef %242, ptr noundef %243, ptr noundef %244)
store i32 %245, ptr %6, align 4
store double 0.000000e+00, ptr %24, align 8
store i32 0, ptr %2, align 4
br label %246
246: ; preds = %263, %237
%247 = load i32, ptr %2, align 4
%248 = load i32, ptr %4, align 4
%249 = load i32, ptr %4, align 4
%250 = mul nsw i32 %248, %249
%251 = icmp slt i32 %247, %250
br i1 %251, label %252, label %266
252: ; preds = %246
%253 = load i32, ptr %2, align 4
%254 = sext i32 %253 to i64
%255 = getelementptr inbounds [100 x double], ptr %9, i64 0, i64 %254
%256 = load double, ptr %255, align 8
%257 = load i32, ptr %2, align 4
%258 = sext i32 %257 to i64
%259 = getelementptr inbounds [100 x double], ptr %14, i64 0, i64 %258
%260 = load double, ptr %259, align 8
%261 = load double, ptr %24, align 8
%262 = call double @llvm.fmuladd.f64(double %256, double %260, double %261)
store double %262, ptr %24, align 8
br label %263
263: ; preds = %252
%264 = load i32, ptr %2, align 4
%265 = add nsw i32 %264, 1
store i32 %265, ptr %2, align 4
br label %246, !llvm.loop !10
266: ; preds = %246
store double 0.000000e+00, ptr %25, align 8
store i32 0, ptr %2, align 4
br label %267
267: ; preds = %284, %266
%268 = load i32, ptr %2, align 4
%269 = load i32, ptr %4, align 4
%270 = load i32, ptr %4, align 4
%271 = mul nsw i32 %269, %270
%272 = icmp slt i32 %268, %271
br i1 %272, label %273, label %287
273: ; preds = %267
%274 = load i32, ptr %2, align 4
%275 = sext i32 %274 to i64
%276 = getelementptr inbounds [100 x double], ptr %14, i64 0, i64 %275
%277 = load double, ptr %276, align 8
%278 = load i32, ptr %2, align 4
%279 = sext i32 %278 to i64
%280 = getelementptr inbounds [100 x double], ptr %15, i64 0, i64 %279
%281 = load double, ptr %280, align 8
%282 = load double, ptr %25, align 8
%283 = call double @llvm.fmuladd.f64(double %277, double %281, double %282)
store double %283, ptr %25, align 8
br label %284
284: ; preds = %273
%285 = load i32, ptr %2, align 4
%286 = add nsw i32 %285, 1
store i32 %286, ptr %2, align 4
br label %267, !llvm.loop !11
287: ; preds = %267
store double 0.000000e+00, ptr %26, align 8
store i32 0, ptr %2, align 4
br label %288
288: ; preds = %305, %287
%289 = load i32, ptr %2, align 4
%290 = load i32, ptr %4, align 4
%291 = load i32, ptr %4, align 4
%292 = mul nsw i32 %290, %291
%293 = icmp slt i32 %289, %292
br i1 %293, label %294, label %308
294: ; preds = %288
%295 = load i32, ptr %2, align 4
%296 = sext i32 %295 to i64
%297 = getelementptr inbounds [100 x double], ptr %14, i64 0, i64 %296
%298 = load double, ptr %297, align 8
%299 = load i32, ptr %2, align 4
%300 = sext i32 %299 to i64
%301 = getelementptr inbounds [100 x double], ptr %16, i64 0, i64 %300
%302 = load double, ptr %301, align 8
%303 = load double, ptr %26, align 8
%304 = call double @llvm.fmuladd.f64(double %298, double %302, double %303)
store double %304, ptr %26, align 8
br label %305
305: ; preds = %294
%306 = load i32, ptr %2, align 4
%307 = add nsw i32 %306, 1
store i32 %307, ptr %2, align 4
br label %288, !llvm.loop !12
308: ; preds = %288
%309 = load double, ptr %27, align 8
%310 = load double, ptr %24, align 8
%311 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %310, double %309)
%312 = load double, ptr %25, align 8
%313 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %312, double %311)
%314 = load double, ptr %26, align 8
%315 = fsub double %313, %314
store double %315, ptr %23, align 8
%316 = load i32, ptr %7, align 4
%317 = load double, ptr %23, align 8
%318 = load double, ptr %27, align 8
%319 = load double, ptr %24, align 8
%320 = load double, ptr %25, align 8
%321 = load double, ptr %26, align 8
%322 = call i32 @printf(ptr noundef @.str, i32 noundef %316, double noundef %317, double noundef %318, double noundef %319, double noundef %320, double noundef %321)
br label %323
323: ; preds = %308
%324 = load i32, ptr %7, align 4
%325 = add nsw i32 %324, 1
store i32 %325, ptr %7, align 4
br label %183, !llvm.loop !13
326: ; preds = %183
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
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
declare i32 @getS(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3
declare i32 @getT(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3
declare i32 @getV(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3
declare i32 @getInts(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3
declare i32 @getD(i32 noundef, i32 noundef, ptr noundef, ptr noundef) #3
declare i32 @gjacobi(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3
declare i32 @getJ(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #3
declare i32 @getK(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #3
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4
declare i32 @printf(ptr noundef, i32 noundef, double noundef, double noundef, double noundef, double noundef, double noundef) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnuahr4mg.c"
target datalayout = "e-m:e-p270: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.atno = private unnamed_addr constant [2 x i32] [i32 1, i32 1], align 4
@__const.main.z = private unnamed_addr constant [2 x double] [double -3.500000e-01, double 3.500000e-01], align 16
@__const.main.zcenter = private unnamed_addr constant [10 x double] [double -3.500000e-01, double -3.500000e-01, double -3.500000e-01, double -3.500000e-01, double -3.500000e-01, double 3.500000e-01, double 3.500000e-01, double 3.500000e-01, double 3.500000e-01, double 3.500000e-01], align 16
@__const.main.normc = private unnamed_addr constant [10 x double] [double 0x3FF000001D67880F, double 1.000000e+00, double 1.000000e+00, double 1.000000e+00, double 1.000000e+00, double 0x3FF000001D67880F, double 1.000000e+00, double 1.000000e+00, double 1.000000e+00, double 1.000000e+00], align 16
@__const.main.istart = private unnamed_addr constant [10 x i32] [i32 0, i32 3, i32 4, i32 5, i32 6, i32 7, i32 10, i32 11, i32 12, i32 13], align 16
@__const.main.nprim = private unnamed_addr constant [10 x i32] [i32 3, i32 1, i32 1, i32 1, i32 1, i32 3, i32 1, i32 1, i32 1, i32 1], align 16
@__const.main.alpha = private unnamed_addr constant [14 x double] [double 0x4032BB2BCB5FE543, double 0x40069A682B62845A, double 6.401220e-01, double 1.612780e-01, double 1.100000e+00, double 1.100000e+00, double 1.100000e+00, double 0x4032BB2BCB5FE543, double 0x40069A682B62845A, double 6.401220e-01, double 1.612780e-01, double 1.100000e+00, double 1.100000e+00, double 1.100000e+00], align 16
@__const.main.coef = private unnamed_addr constant [14 x double] [double 3.349500e-02, double 2.347270e-01, double 8.137570e-01, double 1.000000e+00, double 1.000000e+00, double 1.000000e+00, double 1.000000e+00, double 3.349500e-02, double 2.347270e-01, double 8.137570e-01, double 1.000000e+00, double 1.000000e+00, double 1.000000e+00, double 1.000000e+00], align 16
@__const.main.normp = private unnamed_addr constant [14 x double] [double 0x4019AB0688B564B4, double 0x3FF8D9CA256D14DE, double 0x3FE0524699355B34, double 0x3FC7377CDF13A7E0, double 0x3FF9B132988DE8D2, double 0x3FF9B132988DE8D2, double 0x3FF9B132988DE8D2, double 0x4019AB0688B564B4, double 0x3FF8D9CA256D14DE, double 0x3FE0524699355B34, double 0x3FC7377CDF13A7E0, double 0x3FF9B132988DE8D2, double 0x3FF9B132988DE8D2, double 0x3FF9B132988DE8D2], align 16
@.str = private unnamed_addr constant [19 x i8] c"%d %f %f %f %f %f\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca [100 x double], align 16
%10 = alloca [100 x double], align 16
%11 = alloca [100 x double], align 16
%12 = alloca [100 x double], align 16
%13 = alloca [1540 x double], align 16
%14 = alloca [100 x double], align 16
%15 = alloca [100 x double], align 16
%16 = alloca [100 x double], align 16
%17 = alloca [10 x double], align 16
%18 = alloca [100 x double], align 16
%19 = alloca [100 x double], align 16
%20 = alloca [10 x double], align 16
%21 = alloca [10 x double], align 16
%22 = alloca [100 x double], align 16
%23 = alloca double, align 8
%24 = alloca double, align 8
%25 = alloca double, align 8
%26 = alloca double, align 8
%27 = alloca double, align 8
%28 = alloca [2 x i32], align 4
%29 = alloca [2 x double], align 16
%30 = alloca [2 x double], align 16
%31 = alloca [2 x double], align 16
%32 = alloca [10 x double], align 16
%33 = alloca [10 x double], align 16
%34 = alloca [10 x double], align 16
%35 = alloca [10 x i32], align 16
%36 = alloca [10 x i32], align 16
%37 = alloca [10 x i32], align 16
%38 = alloca [10 x double], align 16
%39 = alloca [10 x i32], align 16
%40 = alloca [10 x i32], align 16
%41 = alloca [14 x double], align 16
%42 = alloca [14 x double], align 16
%43 = alloca [14 x double], align 16
store i32 0, ptr %1, align 4
store i32 0, ptr %2, align 4
store i32 2, ptr %3, align 4
store i32 10, ptr %4, align 4
store i32 1, ptr %5, align 4
store i32 5, ptr %8, align 4
store double 0x3FF6DB6D43D03969, ptr %27, align 8
call void @llvm.memcpy.p0.p0.i64(ptr align 4 %28, ptr align 4 @__const.main.atno, i64 8, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %29, i8 0, i64 16, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %30, i8 0, i64 16, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %31, ptr align 16 @__const.main.z, i64 16, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %32, i8 0, i64 80, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %33, i8 0, i64 80, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %34, ptr align 16 @__const.main.zcenter, i64 80, i1 false)
call void @llvm.memset.p0.i64(ptr align 16 %35, i8 0, i64 40, i1 false)
%44 = getelementptr inbounds [10 x i32], ptr %35, i32 0, i32 2
store i32 1, ptr %44, align 8
%45 = getelementptr inbounds [10 x i32], ptr %35, i32 0, i32 7
store i32 1, ptr %45, align 4
call void @llvm.memset.p0.i64(ptr align 16 %36, i8 0, i64 40, i1 false)
%46 = getelementptr inbounds [10 x i32], ptr %36, i32 0, i32 3
store i32 1, ptr %46, align 4
%47 = getelementptr inbounds [10 x i32], ptr %36, i32 0, i32 8
store i32 1, ptr %47, align 16
call void @llvm.memset.p0.i64(ptr align 16 %37, i8 0, i64 40, i1 false)
%48 = getelementptr inbounds [10 x i32], ptr %37, i32 0, i32 4
store i32 1, ptr %48, align 16
%49 = getelementptr inbounds [10 x i32], ptr %37, i32 0, i32 9
store i32 1, ptr %49, align 4
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %38, ptr align 16 @__const.main.normc, i64 80, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %39, ptr align 16 @__const.main.istart, i64 40, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %40, ptr align 16 @__const.main.nprim, i64 40, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %41, ptr align 16 @__const.main.alpha, i64 112, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %42, ptr align 16 @__const.main.coef, i64 112, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 16 %43, ptr align 16 @__const.main.normp, i64 112, i1 false)
%50 = load i32, ptr %4, align 4
%51 = getelementptr inbounds [10 x i32], ptr %40, i64 0, i64 0
%52 = getelementptr inbounds [10 x double], ptr %38, i64 0, i64 0
%53 = getelementptr inbounds [10 x i32], ptr %39, i64 0, i64 0
%54 = getelementptr inbounds [10 x double], ptr %32, i64 0, i64 0
%55 = getelementptr inbounds [10 x double], ptr %33, i64 0, i64 0
%56 = getelementptr inbounds [10 x double], ptr %34, i64 0, i64 0
%57 = getelementptr inbounds [10 x i32], ptr %35, i64 0, i64 0
%58 = getelementptr inbounds [10 x i32], ptr %36, i64 0, i64 0
%59 = getelementptr inbounds [10 x i32], ptr %37, i64 0, i64 0
%60 = getelementptr inbounds [14 x double], ptr %43, i64 0, i64 0
%61 = getelementptr inbounds [14 x double], ptr %42, i64 0, i64 0
%62 = getelementptr inbounds [14 x double], ptr %41, i64 0, i64 0
%63 = getelementptr inbounds [100 x double], ptr %10, i64 0, i64 0
%64 = call i32 @getS(i32 noundef %50, ptr noundef %51, ptr noundef %52, ptr noundef %53, ptr noundef %54, ptr noundef %55, ptr noundef %56, ptr noundef %57, ptr noundef %58, ptr noundef %59, ptr noundef %60, ptr noundef %61, ptr noundef %62, ptr noundef %63)
%65 = load i32, ptr %4, align 4
%66 = getelementptr inbounds [10 x i32], ptr %40, i64 0, i64 0
%67 = getelementptr inbounds [10 x double], ptr %38, i64 0, i64 0
%68 = getelementptr inbounds [10 x i32], ptr %39, i64 0, i64 0
%69 = getelementptr inbounds [10 x double], ptr %32, i64 0, i64 0
%70 = getelementptr inbounds [10 x double], ptr %33, i64 0, i64 0
%71 = getelementptr inbounds [10 x double], ptr %34, i64 0, i64 0
%72 = getelementptr inbounds [10 x i32], ptr %35, i64 0, i64 0
%73 = getelementptr inbounds [10 x i32], ptr %36, i64 0, i64 0
%74 = getelementptr inbounds [10 x i32], ptr %37, i64 0, i64 0
%75 = getelementptr inbounds [14 x double], ptr %43, i64 0, i64 0
%76 = getelementptr inbounds [14 x double], ptr %42, i64 0, i64 0
%77 = getelementptr inbounds [14 x double], ptr %41, i64 0, i64 0
%78 = getelementptr inbounds [100 x double], ptr %11, i64 0, i64 0
%79 = call i32 @getT(i32 noundef %65, ptr noundef %66, ptr noundef %67, ptr noundef %68, ptr noundef %69, ptr noundef %70, ptr noundef %71, ptr noundef %72, ptr noundef %73, ptr noundef %74, ptr noundef %75, ptr noundef %76, ptr noundef %77, ptr noundef %78)
%80 = load i32, ptr %4, align 4
%81 = getelementptr inbounds [10 x i32], ptr %40, i64 0, i64 0
%82 = getelementptr inbounds [10 x double], ptr %38, i64 0, i64 0
%83 = getelementptr inbounds [10 x i32], ptr %39, i64 0, i64 0
%84 = getelementptr inbounds [10 x double], ptr %32, i64 0, i64 0
%85 = getelementptr inbounds [10 x double], ptr %33, i64 0, i64 0
%86 = getelementptr inbounds [10 x double], ptr %34, i64 0, i64 0
%87 = getelementptr inbounds [10 x i32], ptr %35, i64 0, i64 0
%88 = getelementptr inbounds [10 x i32], ptr %36, i64 0, i64 0
%89 = getelementptr inbounds [10 x i32], ptr %37, i64 0, i64 0
%90 = getelementptr inbounds [14 x double], ptr %43, i64 0, i64 0
%91 = getelementptr inbounds [14 x double], ptr %42, i64 0, i64 0
%92 = getelementptr inbounds [14 x double], ptr %41, i64 0, i64 0
%93 = load i32, ptr %3, align 4
%94 = getelementptr inbounds [2 x i32], ptr %28, i64 0, i64 0
%95 = getelementptr inbounds [2 x double], ptr %29, i64 0, i64 0
%96 = getelementptr inbounds [2 x double], ptr %30, i64 0, i64 0
%97 = getelementptr inbounds [2 x double], ptr %31, i64 0, i64 0
%98 = getelementptr inbounds [100 x double], ptr %12, i64 0, i64 0
%99 = call i32 @getV(i32 noundef %80, ptr noundef %81, ptr noundef %82, ptr noundef %83, ptr noundef %84, ptr noundef %85, ptr noundef %86, ptr noundef %87, ptr noundef %88, ptr noundef %89, ptr noundef %90, ptr noundef %91, ptr noundef %92, i32 noundef %93, ptr noundef %94, ptr noundef %95, ptr noundef %96, ptr noundef %97, ptr noundef %98)
%100 = load i32, ptr %4, align 4
%101 = getelementptr inbounds [10 x i32], ptr %40, i64 0, i64 0
%102 = getelementptr inbounds [10 x double], ptr %38, i64 0, i64 0
%103 = getelementptr inbounds [10 x i32], ptr %39, i64 0, i64 0
%104 = getelementptr inbounds [10 x double], ptr %32, i64 0, i64 0
%105 = getelementptr inbounds [10 x double], ptr %33, i64 0, i64 0
%106 = getelementptr inbounds [10 x double], ptr %34, i64 0, i64 0
%107 = getelementptr inbounds [10 x i32], ptr %35, i64 0, i64 0
%108 = getelementptr inbounds [10 x i32], ptr %36, i64 0, i64 0
%109 = getelementptr inbounds [10 x i32], ptr %37, i64 0, i64 0
%110 = getelementptr inbounds [14 x double], ptr %43, i64 0, i64 0
%111 = getelementptr inbounds [14 x double], ptr %42, i64 0, i64 0
%112 = getelementptr inbounds [14 x double], ptr %41, i64 0, i64 0
%113 = getelementptr inbounds [1540 x double], ptr %13, i64 0, i64 0
%114 = call i32 @getInts(i32 noundef %100, ptr noundef %101, ptr noundef %102, ptr noundef %103, ptr noundef %104, ptr noundef %105, ptr noundef %106, ptr noundef %107, ptr noundef %108, ptr noundef %109, ptr noundef %110, ptr noundef %111, ptr noundef %112, ptr noundef %113)
store i32 0, ptr %2, align 4
%115 = load i32, ptr %2, align 4
%116 = load i32, ptr %4, align 4
%117 = load i32, ptr %4, align 4
%118 = mul nsw i32 %116, %117
%119 = icmp slt i32 %115, %118
br i1 %119, label %.lr.ph, label %141
.lr.ph: ; preds = %0
br label %120
120: ; preds = %.lr.ph, %133
%121 = load i32, ptr %2, align 4
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds [100 x double], ptr %11, i64 0, i64 %122
%124 = load double, ptr %123, align 8
%125 = load i32, ptr %2, align 4
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds [100 x double], ptr %12, i64 0, i64 %126
%128 = load double, ptr %127, align 8
%129 = fadd double %124, %128
%130 = load i32, ptr %2, align 4
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds [100 x double], ptr %9, i64 0, i64 %131
store double %129, ptr %132, align 8
br label %133
133: ; preds = %120
%134 = load i32, ptr %2, align 4
%135 = add nsw i32 %134, 1
store i32 %135, ptr %2, align 4
%136 = load i32, ptr %2, align 4
%137 = load i32, ptr %4, align 4
%138 = load i32, ptr %4, align 4
%139 = mul nsw i32 %137, %138
%140 = icmp slt i32 %136, %139
br i1 %140, label %120, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %133
br label %141
141: ; preds = %._crit_edge, %0
%142 = load i32, ptr %4, align 4
%143 = load i32, ptr %5, align 4
%144 = getelementptr inbounds [100 x double], ptr %18, i64 0, i64 0
%145 = getelementptr inbounds [100 x double], ptr %14, i64 0, i64 0
%146 = call i32 @getD(i32 noundef %142, i32 noundef %143, ptr noundef %144, ptr noundef %145)
store i32 0, ptr %2, align 4
%147 = load i32, ptr %2, align 4
%148 = load i32, ptr %4, align 4
%149 = load i32, ptr %4, align 4
%150 = mul nsw i32 %148, %149
%151 = icmp slt i32 %147, %150
br i1 %151, label %.lr.ph2, label %182
.lr.ph2: ; preds = %141
br label %152
152: ; preds = %.lr.ph2, %174
%153 = load i32, ptr %2, align 4
%154 = sext i32 %153 to i64
%155 = getelementptr inbounds [100 x double], ptr %9, i64 0, i64 %154
%156 = load double, ptr %155, align 8
%157 = load i32, ptr %2, align 4
%158 = sext i32 %157 to i64
%159 = getelementptr inbounds [100 x double], ptr %18, i64 0, i64 %158
store double %156, ptr %159, align 8
%160 = load i32, ptr %2, align 4
%161 = sext i32 %160 to i64
%162 = getelementptr inbounds [100 x double], ptr %9, i64 0, i64 %161
%163 = load double, ptr %162, align 8
%164 = load i32, ptr %2, align 4
%165 = sext i32 %164 to i64
%166 = getelementptr inbounds [100 x double], ptr %22, i64 0, i64 %165
store double %163, ptr %166, align 8
%167 = load i32, ptr %2, align 4
%168 = sext i32 %167 to i64
%169 = getelementptr inbounds [100 x double], ptr %10, i64 0, i64 %168
%170 = load double, ptr %169, align 8
%171 = load i32, ptr %2, align 4
%172 = sext i32 %171 to i64
%173 = getelementptr inbounds [100 x double], ptr %19, i64 0, i64 %172
store double %170, ptr %173, align 8
br label %174
174: ; preds = %152
%175 = load i32, ptr %2, align 4
%176 = add nsw i32 %175, 1
store i32 %176, ptr %2, align 4
%177 = load i32, ptr %2, align 4
%178 = load i32, ptr %4, align 4
%179 = load i32, ptr %4, align 4
%180 = mul nsw i32 %178, %179
%181 = icmp slt i32 %177, %180
br i1 %181, label %152, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %174
br label %182
182: ; preds = %._crit_edge3, %141
%183 = getelementptr inbounds [100 x double], ptr %22, i64 0, i64 0
%184 = getelementptr inbounds [100 x double], ptr %19, i64 0, i64 0
%185 = load i32, ptr %4, align 4
%186 = getelementptr inbounds [10 x double], ptr %17, i64 0, i64 0
%187 = getelementptr inbounds [100 x double], ptr %18, i64 0, i64 0
%188 = getelementptr inbounds [10 x double], ptr %20, i64 0, i64 0
%189 = getelementptr inbounds [10 x double], ptr %21, i64 0, i64 0
%190 = call i32 @gjacobi(ptr noundef %183, ptr noundef %184, i32 noundef %185, ptr noundef %186, ptr noundef %187, ptr noundef %188, ptr noundef %189)
store i32 %190, ptr %6, align 4
store i32 0, ptr %7, align 4
%191 = load i32, ptr %7, align 4
%192 = load i32, ptr %8, align 4
%193 = icmp slt i32 %191, %192
br i1 %193, label %.lr.ph17, label %352
.lr.ph17: ; preds = %182
br label %194
194: ; preds = %.lr.ph17, %346
%195 = load i32, ptr %4, align 4
%196 = load i32, ptr %5, align 4
%197 = getelementptr inbounds [100 x double], ptr %18, i64 0, i64 0
%198 = getelementptr inbounds [100 x double], ptr %14, i64 0, i64 0
%199 = call i32 @getD(i32 noundef %195, i32 noundef %196, ptr noundef %197, ptr noundef %198)
%200 = load i32, ptr %4, align 4
%201 = getelementptr inbounds [100 x double], ptr %14, i64 0, i64 0
%202 = getelementptr inbounds [1540 x double], ptr %13, i64 0, i64 0
%203 = getelementptr inbounds [100 x double], ptr %15, i64 0, i64 0
%204 = call i32 @getJ(i32 noundef %200, ptr noundef %201, ptr noundef %202, ptr noundef %203)
%205 = load i32, ptr %4, align 4
%206 = getelementptr inbounds [100 x double], ptr %14, i64 0, i64 0
%207 = getelementptr inbounds [1540 x double], ptr %13, i64 0, i64 0
%208 = getelementptr inbounds [100 x double], ptr %16, i64 0, i64 0
%209 = call i32 @getK(i32 noundef %205, ptr noundef %206, ptr noundef %207, ptr noundef %208)
store i32 0, ptr %2, align 4
%210 = load i32, ptr %2, align 4
%211 = load i32, ptr %4, align 4
%212 = load i32, ptr %4, align 4
%213 = mul nsw i32 %211, %212
%214 = icmp slt i32 %210, %213
br i1 %214, label %.lr.ph5, label %248
.lr.ph5: ; preds = %194
br label %215
215: ; preds = %.lr.ph5, %240
%216 = load i32, ptr %2, align 4
%217 = sext i32 %216 to i64
%218 = getelementptr inbounds [100 x double], ptr %9, i64 0, i64 %217
%219 = load double, ptr %218, align 8
%220 = load i32, ptr %2, align 4
%221 = sext i32 %220 to i64
%222 = getelementptr inbounds [100 x double], ptr %15, i64 0, i64 %221
%223 = load double, ptr %222, align 8
%224 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %223, double %219)
%225 = load i32, ptr %2, align 4
%226 = sext i32 %225 to i64
%227 = getelementptr inbounds [100 x double], ptr %16, i64 0, i64 %226
%228 = load double, ptr %227, align 8
%229 = fsub double %224, %228
%230 = load i32, ptr %2, align 4
%231 = sext i32 %230 to i64
%232 = getelementptr inbounds [100 x double], ptr %22, i64 0, i64 %231
store double %229, ptr %232, align 8
%233 = load i32, ptr %2, align 4
%234 = sext i32 %233 to i64
%235 = getelementptr inbounds [100 x double], ptr %10, i64 0, i64 %234
%236 = load double, ptr %235, align 8
%237 = load i32, ptr %2, align 4
%238 = sext i32 %237 to i64
%239 = getelementptr inbounds [100 x double], ptr %19, i64 0, i64 %238
store double %236, ptr %239, align 8
br label %240
240: ; preds = %215
%241 = load i32, ptr %2, align 4
%242 = add nsw i32 %241, 1
store i32 %242, ptr %2, align 4
%243 = load i32, ptr %2, align 4
%244 = load i32, ptr %4, align 4
%245 = load i32, ptr %4, align 4
%246 = mul nsw i32 %244, %245
%247 = icmp slt i32 %243, %246
br i1 %247, label %215, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %240
br label %248
248: ; preds = %._crit_edge6, %194
%249 = getelementptr inbounds [100 x double], ptr %22, i64 0, i64 0
%250 = getelementptr inbounds [100 x double], ptr %19, i64 0, i64 0
%251 = load i32, ptr %4, align 4
%252 = getelementptr inbounds [10 x double], ptr %17, i64 0, i64 0
%253 = getelementptr inbounds [100 x double], ptr %18, i64 0, i64 0
%254 = getelementptr inbounds [10 x double], ptr %20, i64 0, i64 0
%255 = getelementptr inbounds [10 x double], ptr %21, i64 0, i64 0
%256 = call i32 @gjacobi(ptr noundef %249, ptr noundef %250, i32 noundef %251, ptr noundef %252, ptr noundef %253, ptr noundef %254, ptr noundef %255)
store i32 %256, ptr %6, align 4
store double 0.000000e+00, ptr %24, align 8
store i32 0, ptr %2, align 4
%257 = load i32, ptr %2, align 4
%258 = load i32, ptr %4, align 4
%259 = load i32, ptr %4, align 4
%260 = mul nsw i32 %258, %259
%261 = icmp slt i32 %257, %260
br i1 %261, label %.lr.ph8, label %281
.lr.ph8: ; preds = %248
br label %262
262: ; preds = %.lr.ph8, %273
%263 = load i32, ptr %2, align 4
%264 = sext i32 %263 to i64
%265 = getelementptr inbounds [100 x double], ptr %9, i64 0, i64 %264
%266 = load double, ptr %265, align 8
%267 = load i32, ptr %2, align 4
%268 = sext i32 %267 to i64
%269 = getelementptr inbounds [100 x double], ptr %14, i64 0, i64 %268
%270 = load double, ptr %269, align 8
%271 = load double, ptr %24, align 8
%272 = call double @llvm.fmuladd.f64(double %266, double %270, double %271)
store double %272, ptr %24, align 8
br label %273
273: ; preds = %262
%274 = load i32, ptr %2, align 4
%275 = add nsw i32 %274, 1
store i32 %275, ptr %2, align 4
%276 = load i32, ptr %2, align 4
%277 = load i32, ptr %4, align 4
%278 = load i32, ptr %4, align 4
%279 = mul nsw i32 %277, %278
%280 = icmp slt i32 %276, %279
br i1 %280, label %262, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %273
br label %281
281: ; preds = %._crit_edge9, %248
store double 0.000000e+00, ptr %25, align 8
store i32 0, ptr %2, align 4
%282 = load i32, ptr %2, align 4
%283 = load i32, ptr %4, align 4
%284 = load i32, ptr %4, align 4
%285 = mul nsw i32 %283, %284
%286 = icmp slt i32 %282, %285
br i1 %286, label %.lr.ph11, label %306
.lr.ph11: ; preds = %281
br label %287
287: ; preds = %.lr.ph11, %298
%288 = load i32, ptr %2, align 4
%289 = sext i32 %288 to i64
%290 = getelementptr inbounds [100 x double], ptr %14, i64 0, i64 %289
%291 = load double, ptr %290, align 8
%292 = load i32, ptr %2, align 4
%293 = sext i32 %292 to i64
%294 = getelementptr inbounds [100 x double], ptr %15, i64 0, i64 %293
%295 = load double, ptr %294, align 8
%296 = load double, ptr %25, align 8
%297 = call double @llvm.fmuladd.f64(double %291, double %295, double %296)
store double %297, ptr %25, align 8
br label %298
298: ; preds = %287
%299 = load i32, ptr %2, align 4
%300 = add nsw i32 %299, 1
store i32 %300, ptr %2, align 4
%301 = load i32, ptr %2, align 4
%302 = load i32, ptr %4, align 4
%303 = load i32, ptr %4, align 4
%304 = mul nsw i32 %302, %303
%305 = icmp slt i32 %301, %304
br i1 %305, label %287, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %298
br label %306
306: ; preds = %._crit_edge12, %281
store double 0.000000e+00, ptr %26, align 8
store i32 0, ptr %2, align 4
%307 = load i32, ptr %2, align 4
%308 = load i32, ptr %4, align 4
%309 = load i32, ptr %4, align 4
%310 = mul nsw i32 %308, %309
%311 = icmp slt i32 %307, %310
br i1 %311, label %.lr.ph14, label %331
.lr.ph14: ; preds = %306
br label %312
312: ; preds = %.lr.ph14, %323
%313 = load i32, ptr %2, align 4
%314 = sext i32 %313 to i64
%315 = getelementptr inbounds [100 x double], ptr %14, i64 0, i64 %314
%316 = load double, ptr %315, align 8
%317 = load i32, ptr %2, align 4
%318 = sext i32 %317 to i64
%319 = getelementptr inbounds [100 x double], ptr %16, i64 0, i64 %318
%320 = load double, ptr %319, align 8
%321 = load double, ptr %26, align 8
%322 = call double @llvm.fmuladd.f64(double %316, double %320, double %321)
store double %322, ptr %26, align 8
br label %323
323: ; preds = %312
%324 = load i32, ptr %2, align 4
%325 = add nsw i32 %324, 1
store i32 %325, ptr %2, align 4
%326 = load i32, ptr %2, align 4
%327 = load i32, ptr %4, align 4
%328 = load i32, ptr %4, align 4
%329 = mul nsw i32 %327, %328
%330 = icmp slt i32 %326, %329
br i1 %330, label %312, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %323
br label %331
331: ; preds = %._crit_edge15, %306
%332 = load double, ptr %27, align 8
%333 = load double, ptr %24, align 8
%334 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %333, double %332)
%335 = load double, ptr %25, align 8
%336 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %335, double %334)
%337 = load double, ptr %26, align 8
%338 = fsub double %336, %337
store double %338, ptr %23, align 8
%339 = load i32, ptr %7, align 4
%340 = load double, ptr %23, align 8
%341 = load double, ptr %27, align 8
%342 = load double, ptr %24, align 8
%343 = load double, ptr %25, align 8
%344 = load double, ptr %26, align 8
%345 = call i32 @printf(ptr noundef @.str, i32 noundef %339, double noundef %340, double noundef %341, double noundef %342, double noundef %343, double noundef %344)
br label %346
346: ; preds = %331
%347 = load i32, ptr %7, align 4
%348 = add nsw i32 %347, 1
store i32 %348, ptr %7, align 4
%349 = load i32, ptr %7, align 4
%350 = load i32, ptr %8, align 4
%351 = icmp slt i32 %349, %350
br i1 %351, label %194, label %._crit_edge18, !llvm.loop !13
._crit_edge18: ; preds = %346
br label %352
352: ; preds = %._crit_edge18, %182
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
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2
declare i32 @getS(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3
declare i32 @getT(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3
declare i32 @getV(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3
declare i32 @getInts(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3
declare i32 @getD(i32 noundef, i32 noundef, ptr noundef, ptr noundef) #3
declare i32 @gjacobi(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3
declare i32 @getJ(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #3
declare i32 @getK(i32 noundef, ptr noundef, ptr noundef, ptr noundef) #3
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4
declare i32 @printf(ptr noundef, i32 noundef, double noundef, double noundef, double noundef, double noundef, double noundef) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
|
; ModuleID = '/tmp/tmptiorbf2n.c'
source_filename = "/tmp/tmptiorbf2n.c"
target datalayout = "e-m:e-p270: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.aiocb = type { i32, ptr, i32, i32, i64 }
@_SC_ASYNCHRONOUS_IO = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [27 x i8] c"/tmp/pts_lio_listio_4_1_%d\00", align 1
@O_CREAT = dso_local global i32 0, align 4
@O_RDWR = dso_local global i32 0, align 4
@O_EXCL = dso_local global i32 0, align 4
@S_IRUSR = dso_local global i32 0, align 4
@S_IWUSR = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [38 x i8] c"lio_listio/5-1.c Error at open(): %s\0A\00", align 1
@errno = dso_local global i32 0, align 4
@LIO_WRITE = dso_local global i32 0, align 4
@LIO_READ = dso_local global i32 0, align 4
@LIO_NOP = dso_local global i32 0, align 4
@LIO_WAIT = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [61 x i8] c"lio_listio/5-1.c lio_listio() does not accept valid opcodes\0A\00", align 1
@.str.3 = private unnamed_addr constant [51 x i8] c"lio_listio/5-1.c req %d: error = %d - return = %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [54 x i8] c"lio_listio/5-1.c lio_listio() accepts invalid opcode\0A\00", align 1
@EIO = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [57 x i8] c"lio_listio/5-1.c lio_listio() sould set errno to EIO %d\0A\00", align 1
@.str.6 = private unnamed_addr constant [13 x i8] c"Test PASSED\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [256 x i8], align 16
%3 = alloca i32, align 4
%4 = alloca [3 x ptr], align 16
%5 = alloca [1024 x i8], align 16
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %6, align 4
%10 = load i32, ptr @_SC_ASYNCHRONOUS_IO, align 4
%11 = call i64 @sysconf(i32 noundef %10)
%12 = icmp slt i64 %11, 200112
br i1 %12, label %13, label %15
13: ; preds = %0
%14 = call i32 @exit(i32 noundef 4) #3
unreachable
15: ; preds = %0
%16 = getelementptr inbounds [256 x i8], ptr %2, i64 0, i64 0
%17 = call i32 (...) @getpid()
%18 = call i32 @snprintf(ptr noundef %16, i32 noundef 256, ptr noundef @.str, i32 noundef %17)
%19 = getelementptr inbounds [256 x i8], ptr %2, i64 0, i64 0
%20 = call i32 @unlink(ptr noundef %19)
%21 = getelementptr inbounds [256 x i8], ptr %2, i64 0, i64 0
%22 = load i32, ptr @O_CREAT, align 4
%23 = load i32, ptr @O_RDWR, align 4
%24 = or i32 %22, %23
%25 = load i32, ptr @O_EXCL, align 4
%26 = or i32 %24, %25
%27 = load i32, ptr @S_IRUSR, align 4
%28 = load i32, ptr @S_IWUSR, align 4
%29 = or i32 %27, %28
%30 = call i32 @open(ptr noundef %21, i32 noundef %26, i32 noundef %29)
store i32 %30, ptr %3, align 4
%31 = load i32, ptr %3, align 4
%32 = icmp eq i32 %31, -1
br i1 %32, label %33, label %38
33: ; preds = %15
%34 = load i32, ptr @errno, align 4
%35 = call ptr @strerror(i32 noundef %34)
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %35)
%37 = call i32 @exit(i32 noundef 2) #3
unreachable
38: ; preds = %15
%39 = getelementptr inbounds [256 x i8], ptr %2, i64 0, i64 0
%40 = call i32 @unlink(ptr noundef %39)
store i32 0, ptr %9, align 4
br label %41
41: ; preds = %104, %38
%42 = load i32, ptr %9, align 4
%43 = icmp slt i32 %42, 3
br i1 %43, label %44, label %107
44: ; preds = %41
%45 = call ptr @malloc(i32 noundef 32)
%46 = load i32, ptr %9, align 4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [3 x ptr], ptr %4, i64 0, i64 %47
store ptr %45, ptr %48, align 8
%49 = load i32, ptr %9, align 4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [3 x ptr], ptr %4, i64 0, i64 %50
%52 = load ptr, ptr %51, align 8
%53 = call i32 @memset(ptr noundef %52, i32 noundef 0, i32 noundef 32)
%54 = load i32, ptr %3, align 4
%55 = load i32, ptr %9, align 4
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [3 x ptr], ptr %4, i64 0, i64 %56
%58 = load ptr, ptr %57, align 8
%59 = getelementptr inbounds %struct.aiocb, ptr %58, i32 0, i32 0
store i32 %54, ptr %59, align 8
%60 = load i32, ptr %9, align 4
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [3 x ptr], ptr %4, i64 0, i64 %61
%63 = load ptr, ptr %62, align 8
%64 = getelementptr inbounds %struct.aiocb, ptr %63, i32 0, i32 4
store i64 0, ptr %64, align 8
%65 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%66 = load i32, ptr %9, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds [3 x ptr], ptr %4, i64 0, i64 %67
%69 = load ptr, ptr %68, align 8
%70 = getelementptr inbounds %struct.aiocb, ptr %69, i32 0, i32 1
store ptr %65, ptr %70, align 8
%71 = load i32, ptr %9, align 4
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds [3 x ptr], ptr %4, i64 0, i64 %72
%74 = load ptr, ptr %73, align 8
%75 = getelementptr inbounds %struct.aiocb, ptr %74, i32 0, i32 2
store i32 1024, ptr %75, align 8
%76 = load i32, ptr %9, align 4
%77 = icmp eq i32 %76, 0
br i1 %77, label %78, label %85
78: ; preds = %44
%79 = load i32, ptr @LIO_WRITE, align 4
%80 = load i32, ptr %9, align 4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds [3 x ptr], ptr %4, i64 0, i64 %81
%83 = load ptr, ptr %82, align 8
%84 = getelementptr inbounds %struct.aiocb, ptr %83, i32 0, i32 3
store i32 %79, ptr %84, align 4
br label %103
85: ; preds = %44
%86 = load i32, ptr %9, align 4
%87 = icmp eq i32 %86, 1
br i1 %87, label %88, label %95
88: ; preds = %85
%89 = load i32, ptr @LIO_READ, align 4
%90 = load i32, ptr %9, align 4
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds [3 x ptr], ptr %4, i64 0, i64 %91
%93 = load ptr, ptr %92, align 8
%94 = getelementptr inbounds %struct.aiocb, ptr %93, i32 0, i32 3
store i32 %89, ptr %94, align 4
br label %102
95: ; preds = %85
%96 = load i32, ptr @LIO_NOP, align 4
%97 = load i32, ptr %9, align 4
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds [3 x ptr], ptr %4, i64 0, i64 %98
%100 = load ptr, ptr %99, align 8
%101 = getelementptr inbounds %struct.aiocb, ptr %100, i32 0, i32 3
store i32 %96, ptr %101, align 4
br label %102
102: ; preds = %95, %88
br label %103
103: ; preds = %102, %78
br label %104
104: ; preds = %103
%105 = load i32, ptr %9, align 4
%106 = add nsw i32 %105, 1
store i32 %106, ptr %9, align 4
br label %41, !llvm.loop !6
107: ; preds = %41
%108 = load i32, ptr @LIO_WAIT, align 4
%109 = getelementptr inbounds [3 x ptr], ptr %4, i64 0, i64 0
%110 = call i32 @lio_listio(i32 noundef %108, ptr noundef %109, i32 noundef 3, ptr noundef null)
store i32 %110, ptr %7, align 4
%111 = load i32, ptr %7, align 4
%112 = icmp ne i32 %111, 0
br i1 %112, label %113, label %131
113: ; preds = %107
%114 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %9, align 4
br label %115
115: ; preds = %124, %113
%116 = load i32, ptr %9, align 4
%117 = icmp slt i32 %116, 3
br i1 %117, label %118, label %127
118: ; preds = %115
%119 = load i32, ptr %9, align 4
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds [3 x ptr], ptr %4, i64 0, i64 %120
%122 = load ptr, ptr %121, align 8
%123 = call i32 @free(ptr noundef %122)
br label %124
124: ; preds = %118
%125 = load i32, ptr %9, align 4
%126 = add nsw i32 %125, 1
store i32 %126, ptr %9, align 4
br label %115, !llvm.loop !8
127: ; preds = %115
%128 = load i32, ptr %3, align 4
%129 = call i32 @close(i32 noundef %128)
%130 = call i32 @exit(i32 noundef 1) #3
unreachable
131: ; preds = %107
store i32 0, ptr %9, align 4
br label %132
132: ; preds = %159, %131
%133 = load i32, ptr %9, align 4
%134 = icmp slt i32 %133, 2
br i1 %134, label %135, label %162
135: ; preds = %132
%136 = load i32, ptr %9, align 4
%137 = sext i32 %136 to i64
%138 = getelementptr inbounds [3 x ptr], ptr %4, i64 0, i64 %137
%139 = load ptr, ptr %138, align 8
%140 = call i32 @aio_error(ptr noundef %139)
store i32 %140, ptr %8, align 4
%141 = load i32, ptr %9, align 4
%142 = sext i32 %141 to i64
%143 = getelementptr inbounds [3 x ptr], ptr %4, i64 0, i64 %142
%144 = load ptr, ptr %143, align 8
%145 = call i32 @aio_return(ptr noundef %144)
store i32 %145, ptr %7, align 4
%146 = load i32, ptr %8, align 4
%147 = icmp ne i32 %146, 0
br i1 %147, label %148, label %158
148: ; preds = %135
%149 = load i32, ptr %7, align 4
%150 = icmp ne i32 %149, 1024
br i1 %150, label %151, label %158
151: ; preds = %148
%152 = load i32, ptr %9, align 4
%153 = load i32, ptr %8, align 4
%154 = load i32, ptr %7, align 4
%155 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %152, i32 noundef %153, i32 noundef %154)
%156 = load i32, ptr %6, align 4
%157 = add nsw i32 %156, 1
store i32 %157, ptr %6, align 4
br label %158
158: ; preds = %151, %148, %135
br label %159
159: ; preds = %158
%160 = load i32, ptr %9, align 4
%161 = add nsw i32 %160, 1
store i32 %161, ptr %9, align 4
br label %132, !llvm.loop !9
162: ; preds = %132
%163 = load i32, ptr %6, align 4
%164 = icmp ne i32 %163, 0
br i1 %164, label %165, label %182
165: ; preds = %162
store i32 0, ptr %9, align 4
br label %166
166: ; preds = %175, %165
%167 = load i32, ptr %9, align 4
%168 = icmp slt i32 %167, 3
br i1 %168, label %169, label %178
169: ; preds = %166
%170 = load i32, ptr %9, align 4
%171 = sext i32 %170 to i64
%172 = getelementptr inbounds [3 x ptr], ptr %4, i64 0, i64 %171
%173 = load ptr, ptr %172, align 8
%174 = call i32 @free(ptr noundef %173)
br label %175
175: ; preds = %169
%176 = load i32, ptr %9, align 4
%177 = add nsw i32 %176, 1
store i32 %177, ptr %9, align 4
br label %166, !llvm.loop !10
178: ; preds = %166
%179 = load i32, ptr %3, align 4
%180 = call i32 @close(i32 noundef %179)
%181 = call i32 @exit(i32 noundef 1) #3
unreachable
182: ; preds = %162
%183 = getelementptr inbounds [3 x ptr], ptr %4, i64 0, i64 0
%184 = load ptr, ptr %183, align 16
%185 = getelementptr inbounds %struct.aiocb, ptr %184, i32 0, i32 3
store i32 -1, ptr %185, align 4
%186 = load i32, ptr @LIO_WAIT, align 4
%187 = getelementptr inbounds [3 x ptr], ptr %4, i64 0, i64 0
%188 = call i32 @lio_listio(i32 noundef %186, ptr noundef %187, i32 noundef 1, ptr noundef null)
%189 = icmp ne i32 %188, -1
br i1 %189, label %190, label %208
190: ; preds = %182
%191 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 0, ptr %9, align 4
br label %192
192: ; preds = %201, %190
%193 = load i32, ptr %9, align 4
%194 = icmp slt i32 %193, 3
br i1 %194, label %195, label %204
195: ; preds = %192
%196 = load i32, ptr %9, align 4
%197 = sext i32 %196 to i64
%198 = getelementptr inbounds [3 x ptr], ptr %4, i64 0, i64 %197
%199 = load ptr, ptr %198, align 8
%200 = call i32 @free(ptr noundef %199)
br label %201
201: ; preds = %195
%202 = load i32, ptr %9, align 4
%203 = add nsw i32 %202, 1
store i32 %203, ptr %9, align 4
br label %192, !llvm.loop !11
204: ; preds = %192
%205 = load i32, ptr %3, align 4
%206 = call i32 @close(i32 noundef %205)
%207 = call i32 @exit(i32 noundef 1) #3
unreachable
208: ; preds = %182
%209 = load i32, ptr @errno, align 4
%210 = load i32, ptr @EIO, align 4
%211 = icmp ne i32 %209, %210
br i1 %211, label %212, label %231
212: ; preds = %208
%213 = load i32, ptr @errno, align 4
%214 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %213)
store i32 0, ptr %9, align 4
br label %215
215: ; preds = %224, %212
%216 = load i32, ptr %9, align 4
%217 = icmp slt i32 %216, 3
br i1 %217, label %218, label %227
218: ; preds = %215
%219 = load i32, ptr %9, align 4
%220 = sext i32 %219 to i64
%221 = getelementptr inbounds [3 x ptr], ptr %4, i64 0, i64 %220
%222 = load ptr, ptr %221, align 8
%223 = call i32 @free(ptr noundef %222)
br label %224
224: ; preds = %218
%225 = load i32, ptr %9, align 4
%226 = add nsw i32 %225, 1
store i32 %226, ptr %9, align 4
br label %215, !llvm.loop !12
227: ; preds = %215
%228 = load i32, ptr %3, align 4
%229 = call i32 @close(i32 noundef %228)
%230 = call i32 @exit(i32 noundef 1) #3
unreachable
231: ; preds = %208
store i32 0, ptr %9, align 4
br label %232
232: ; preds = %241, %231
%233 = load i32, ptr %9, align 4
%234 = icmp slt i32 %233, 3
br i1 %234, label %235, label %244
235: ; preds = %232
%236 = load i32, ptr %9, align 4
%237 = sext i32 %236 to i64
%238 = getelementptr inbounds [3 x ptr], ptr %4, i64 0, i64 %237
%239 = load ptr, ptr %238, align 8
%240 = call i32 @free(ptr noundef %239)
br label %241
241: ; preds = %235
%242 = load i32, ptr %9, align 4
%243 = add nsw i32 %242, 1
store i32 %243, ptr %9, align 4
br label %232, !llvm.loop !13
244: ; preds = %232
%245 = load i32, ptr %3, align 4
%246 = call i32 @close(i32 noundef %245)
%247 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
ret i32 0
}
declare i64 @sysconf(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @getpid(...) #1
declare i32 @unlink(ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare ptr @strerror(i32 noundef) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @lio_listio(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @aio_error(ptr noundef) #1
declare i32 @aio_return(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmptiorbf2n.c"
target datalayout = "e-m:e-p270: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.aiocb = type { i32, ptr, i32, i32, i64 }
@_SC_ASYNCHRONOUS_IO = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [27 x i8] c"/tmp/pts_lio_listio_4_1_%d\00", align 1
@O_CREAT = dso_local global i32 0, align 4
@O_RDWR = dso_local global i32 0, align 4
@O_EXCL = dso_local global i32 0, align 4
@S_IRUSR = dso_local global i32 0, align 4
@S_IWUSR = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [38 x i8] c"lio_listio/5-1.c Error at open(): %s\0A\00", align 1
@errno = dso_local global i32 0, align 4
@LIO_WRITE = dso_local global i32 0, align 4
@LIO_READ = dso_local global i32 0, align 4
@LIO_NOP = dso_local global i32 0, align 4
@LIO_WAIT = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [61 x i8] c"lio_listio/5-1.c lio_listio() does not accept valid opcodes\0A\00", align 1
@.str.3 = private unnamed_addr constant [51 x i8] c"lio_listio/5-1.c req %d: error = %d - return = %d\0A\00", align 1
@.str.4 = private unnamed_addr constant [54 x i8] c"lio_listio/5-1.c lio_listio() accepts invalid opcode\0A\00", align 1
@EIO = dso_local global i32 0, align 4
@.str.5 = private unnamed_addr constant [57 x i8] c"lio_listio/5-1.c lio_listio() sould set errno to EIO %d\0A\00", align 1
@.str.6 = private unnamed_addr constant [13 x i8] c"Test PASSED\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [256 x i8], align 16
%3 = alloca i32, align 4
%4 = alloca [3 x ptr], align 16
%5 = alloca [1024 x i8], align 16
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 0, ptr %6, align 4
%10 = load i32, ptr @_SC_ASYNCHRONOUS_IO, align 4
%11 = call i64 @sysconf(i32 noundef %10)
%12 = icmp slt i64 %11, 200112
br i1 %12, label %13, label %15
13: ; preds = %0
%14 = call i32 @exit(i32 noundef 4) #3
unreachable
15: ; preds = %0
%16 = getelementptr inbounds [256 x i8], ptr %2, i64 0, i64 0
%17 = call i32 (...) @getpid()
%18 = call i32 @snprintf(ptr noundef %16, i32 noundef 256, ptr noundef @.str, i32 noundef %17)
%19 = getelementptr inbounds [256 x i8], ptr %2, i64 0, i64 0
%20 = call i32 @unlink(ptr noundef %19)
%21 = getelementptr inbounds [256 x i8], ptr %2, i64 0, i64 0
%22 = load i32, ptr @O_CREAT, align 4
%23 = load i32, ptr @O_RDWR, align 4
%24 = or i32 %22, %23
%25 = load i32, ptr @O_EXCL, align 4
%26 = or i32 %24, %25
%27 = load i32, ptr @S_IRUSR, align 4
%28 = load i32, ptr @S_IWUSR, align 4
%29 = or i32 %27, %28
%30 = call i32 @open(ptr noundef %21, i32 noundef %26, i32 noundef %29)
store i32 %30, ptr %3, align 4
%31 = load i32, ptr %3, align 4
%32 = icmp eq i32 %31, -1
br i1 %32, label %33, label %38
33: ; preds = %15
%34 = load i32, ptr @errno, align 4
%35 = call ptr @strerror(i32 noundef %34)
%36 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %35)
%37 = call i32 @exit(i32 noundef 2) #3
unreachable
38: ; preds = %15
%39 = getelementptr inbounds [256 x i8], ptr %2, i64 0, i64 0
%40 = call i32 @unlink(ptr noundef %39)
store i32 0, ptr %9, align 4
%41 = load i32, ptr %9, align 4
%42 = icmp slt i32 %41, 3
br i1 %42, label %.lr.ph, label %108
.lr.ph: ; preds = %38
br label %43
43: ; preds = %.lr.ph, %103
%44 = call ptr @malloc(i32 noundef 32)
%45 = load i32, ptr %9, align 4
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [3 x ptr], ptr %4, i64 0, i64 %46
store ptr %44, ptr %47, align 8
%48 = load i32, ptr %9, align 4
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [3 x ptr], ptr %4, i64 0, i64 %49
%51 = load ptr, ptr %50, align 8
%52 = call i32 @memset(ptr noundef %51, i32 noundef 0, i32 noundef 32)
%53 = load i32, ptr %3, align 4
%54 = load i32, ptr %9, align 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [3 x ptr], ptr %4, i64 0, i64 %55
%57 = load ptr, ptr %56, align 8
%58 = getelementptr inbounds %struct.aiocb, ptr %57, i32 0, i32 0
store i32 %53, ptr %58, align 8
%59 = load i32, ptr %9, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [3 x ptr], ptr %4, i64 0, i64 %60
%62 = load ptr, ptr %61, align 8
%63 = getelementptr inbounds %struct.aiocb, ptr %62, i32 0, i32 4
store i64 0, ptr %63, align 8
%64 = getelementptr inbounds [1024 x i8], ptr %5, i64 0, i64 0
%65 = load i32, ptr %9, align 4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [3 x ptr], ptr %4, i64 0, i64 %66
%68 = load ptr, ptr %67, align 8
%69 = getelementptr inbounds %struct.aiocb, ptr %68, i32 0, i32 1
store ptr %64, ptr %69, align 8
%70 = load i32, ptr %9, align 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [3 x ptr], ptr %4, i64 0, i64 %71
%73 = load ptr, ptr %72, align 8
%74 = getelementptr inbounds %struct.aiocb, ptr %73, i32 0, i32 2
store i32 1024, ptr %74, align 8
%75 = load i32, ptr %9, align 4
%76 = icmp eq i32 %75, 0
br i1 %76, label %77, label %84
77: ; preds = %43
%78 = load i32, ptr @LIO_WRITE, align 4
%79 = load i32, ptr %9, align 4
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds [3 x ptr], ptr %4, i64 0, i64 %80
%82 = load ptr, ptr %81, align 8
%83 = getelementptr inbounds %struct.aiocb, ptr %82, i32 0, i32 3
store i32 %78, ptr %83, align 4
br label %102
84: ; preds = %43
%85 = load i32, ptr %9, align 4
%86 = icmp eq i32 %85, 1
br i1 %86, label %87, label %94
87: ; preds = %84
%88 = load i32, ptr @LIO_READ, align 4
%89 = load i32, ptr %9, align 4
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds [3 x ptr], ptr %4, i64 0, i64 %90
%92 = load ptr, ptr %91, align 8
%93 = getelementptr inbounds %struct.aiocb, ptr %92, i32 0, i32 3
store i32 %88, ptr %93, align 4
br label %101
94: ; preds = %84
%95 = load i32, ptr @LIO_NOP, align 4
%96 = load i32, ptr %9, align 4
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds [3 x ptr], ptr %4, i64 0, i64 %97
%99 = load ptr, ptr %98, align 8
%100 = getelementptr inbounds %struct.aiocb, ptr %99, i32 0, i32 3
store i32 %95, ptr %100, align 4
br label %101
101: ; preds = %94, %87
br label %102
102: ; preds = %101, %77
br label %103
103: ; preds = %102
%104 = load i32, ptr %9, align 4
%105 = add nsw i32 %104, 1
store i32 %105, ptr %9, align 4
%106 = load i32, ptr %9, align 4
%107 = icmp slt i32 %106, 3
br i1 %107, label %43, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %103
br label %108
108: ; preds = %._crit_edge, %38
%109 = load i32, ptr @LIO_WAIT, align 4
%110 = getelementptr inbounds [3 x ptr], ptr %4, i64 0, i64 0
%111 = call i32 @lio_listio(i32 noundef %109, ptr noundef %110, i32 noundef 3, ptr noundef null)
store i32 %111, ptr %7, align 4
%112 = load i32, ptr %7, align 4
%113 = icmp ne i32 %112, 0
br i1 %113, label %114, label %133
114: ; preds = %108
%115 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
store i32 0, ptr %9, align 4
%116 = load i32, ptr %9, align 4
%117 = icmp slt i32 %116, 3
br i1 %117, label %.lr.ph17, label %129
.lr.ph17: ; preds = %114
br label %118
118: ; preds = %.lr.ph17, %124
%119 = load i32, ptr %9, align 4
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds [3 x ptr], ptr %4, i64 0, i64 %120
%122 = load ptr, ptr %121, align 8
%123 = call i32 @free(ptr noundef %122)
br label %124
124: ; preds = %118
%125 = load i32, ptr %9, align 4
%126 = add nsw i32 %125, 1
store i32 %126, ptr %9, align 4
%127 = load i32, ptr %9, align 4
%128 = icmp slt i32 %127, 3
br i1 %128, label %118, label %._crit_edge18, !llvm.loop !8
._crit_edge18: ; preds = %124
br label %129
129: ; preds = %._crit_edge18, %114
%130 = load i32, ptr %3, align 4
%131 = call i32 @close(i32 noundef %130)
%132 = call i32 @exit(i32 noundef 1) #3
unreachable
133: ; preds = %108
store i32 0, ptr %9, align 4
%134 = load i32, ptr %9, align 4
%135 = icmp slt i32 %134, 2
br i1 %135, label %.lr.ph2, label %165
.lr.ph2: ; preds = %133
br label %136
136: ; preds = %.lr.ph2, %160
%137 = load i32, ptr %9, align 4
%138 = sext i32 %137 to i64
%139 = getelementptr inbounds [3 x ptr], ptr %4, i64 0, i64 %138
%140 = load ptr, ptr %139, align 8
%141 = call i32 @aio_error(ptr noundef %140)
store i32 %141, ptr %8, align 4
%142 = load i32, ptr %9, align 4
%143 = sext i32 %142 to i64
%144 = getelementptr inbounds [3 x ptr], ptr %4, i64 0, i64 %143
%145 = load ptr, ptr %144, align 8
%146 = call i32 @aio_return(ptr noundef %145)
store i32 %146, ptr %7, align 4
%147 = load i32, ptr %8, align 4
%148 = icmp ne i32 %147, 0
br i1 %148, label %149, label %159
149: ; preds = %136
%150 = load i32, ptr %7, align 4
%151 = icmp ne i32 %150, 1024
br i1 %151, label %152, label %159
152: ; preds = %149
%153 = load i32, ptr %9, align 4
%154 = load i32, ptr %8, align 4
%155 = load i32, ptr %7, align 4
%156 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %153, i32 noundef %154, i32 noundef %155)
%157 = load i32, ptr %6, align 4
%158 = add nsw i32 %157, 1
store i32 %158, ptr %6, align 4
br label %159
159: ; preds = %152, %149, %136
br label %160
160: ; preds = %159
%161 = load i32, ptr %9, align 4
%162 = add nsw i32 %161, 1
store i32 %162, ptr %9, align 4
%163 = load i32, ptr %9, align 4
%164 = icmp slt i32 %163, 2
br i1 %164, label %136, label %._crit_edge3, !llvm.loop !9
._crit_edge3: ; preds = %160
br label %165
165: ; preds = %._crit_edge3, %133
%166 = load i32, ptr %6, align 4
%167 = icmp ne i32 %166, 0
br i1 %167, label %168, label %186
168: ; preds = %165
store i32 0, ptr %9, align 4
%169 = load i32, ptr %9, align 4
%170 = icmp slt i32 %169, 3
br i1 %170, label %.lr.ph14, label %182
.lr.ph14: ; preds = %168
br label %171
171: ; preds = %.lr.ph14, %177
%172 = load i32, ptr %9, align 4
%173 = sext i32 %172 to i64
%174 = getelementptr inbounds [3 x ptr], ptr %4, i64 0, i64 %173
%175 = load ptr, ptr %174, align 8
%176 = call i32 @free(ptr noundef %175)
br label %177
177: ; preds = %171
%178 = load i32, ptr %9, align 4
%179 = add nsw i32 %178, 1
store i32 %179, ptr %9, align 4
%180 = load i32, ptr %9, align 4
%181 = icmp slt i32 %180, 3
br i1 %181, label %171, label %._crit_edge15, !llvm.loop !10
._crit_edge15: ; preds = %177
br label %182
182: ; preds = %._crit_edge15, %168
%183 = load i32, ptr %3, align 4
%184 = call i32 @close(i32 noundef %183)
%185 = call i32 @exit(i32 noundef 1) #3
unreachable
186: ; preds = %165
%187 = getelementptr inbounds [3 x ptr], ptr %4, i64 0, i64 0
%188 = load ptr, ptr %187, align 16
%189 = getelementptr inbounds %struct.aiocb, ptr %188, i32 0, i32 3
store i32 -1, ptr %189, align 4
%190 = load i32, ptr @LIO_WAIT, align 4
%191 = getelementptr inbounds [3 x ptr], ptr %4, i64 0, i64 0
%192 = call i32 @lio_listio(i32 noundef %190, ptr noundef %191, i32 noundef 1, ptr noundef null)
%193 = icmp ne i32 %192, -1
br i1 %193, label %194, label %213
194: ; preds = %186
%195 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
store i32 0, ptr %9, align 4
%196 = load i32, ptr %9, align 4
%197 = icmp slt i32 %196, 3
br i1 %197, label %.lr.ph11, label %209
.lr.ph11: ; preds = %194
br label %198
198: ; preds = %.lr.ph11, %204
%199 = load i32, ptr %9, align 4
%200 = sext i32 %199 to i64
%201 = getelementptr inbounds [3 x ptr], ptr %4, i64 0, i64 %200
%202 = load ptr, ptr %201, align 8
%203 = call i32 @free(ptr noundef %202)
br label %204
204: ; preds = %198
%205 = load i32, ptr %9, align 4
%206 = add nsw i32 %205, 1
store i32 %206, ptr %9, align 4
%207 = load i32, ptr %9, align 4
%208 = icmp slt i32 %207, 3
br i1 %208, label %198, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %204
br label %209
209: ; preds = %._crit_edge12, %194
%210 = load i32, ptr %3, align 4
%211 = call i32 @close(i32 noundef %210)
%212 = call i32 @exit(i32 noundef 1) #3
unreachable
213: ; preds = %186
%214 = load i32, ptr @errno, align 4
%215 = load i32, ptr @EIO, align 4
%216 = icmp ne i32 %214, %215
br i1 %216, label %217, label %237
217: ; preds = %213
%218 = load i32, ptr @errno, align 4
%219 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %218)
store i32 0, ptr %9, align 4
%220 = load i32, ptr %9, align 4
%221 = icmp slt i32 %220, 3
br i1 %221, label %.lr.ph8, label %233
.lr.ph8: ; preds = %217
br label %222
222: ; preds = %.lr.ph8, %228
%223 = load i32, ptr %9, align 4
%224 = sext i32 %223 to i64
%225 = getelementptr inbounds [3 x ptr], ptr %4, i64 0, i64 %224
%226 = load ptr, ptr %225, align 8
%227 = call i32 @free(ptr noundef %226)
br label %228
228: ; preds = %222
%229 = load i32, ptr %9, align 4
%230 = add nsw i32 %229, 1
store i32 %230, ptr %9, align 4
%231 = load i32, ptr %9, align 4
%232 = icmp slt i32 %231, 3
br i1 %232, label %222, label %._crit_edge9, !llvm.loop !12
._crit_edge9: ; preds = %228
br label %233
233: ; preds = %._crit_edge9, %217
%234 = load i32, ptr %3, align 4
%235 = call i32 @close(i32 noundef %234)
%236 = call i32 @exit(i32 noundef 1) #3
unreachable
237: ; preds = %213
store i32 0, ptr %9, align 4
%238 = load i32, ptr %9, align 4
%239 = icmp slt i32 %238, 3
br i1 %239, label %.lr.ph5, label %251
.lr.ph5: ; preds = %237
br label %240
240: ; preds = %.lr.ph5, %246
%241 = load i32, ptr %9, align 4
%242 = sext i32 %241 to i64
%243 = getelementptr inbounds [3 x ptr], ptr %4, i64 0, i64 %242
%244 = load ptr, ptr %243, align 8
%245 = call i32 @free(ptr noundef %244)
br label %246
246: ; preds = %240
%247 = load i32, ptr %9, align 4
%248 = add nsw i32 %247, 1
store i32 %248, ptr %9, align 4
%249 = load i32, ptr %9, align 4
%250 = icmp slt i32 %249, 3
br i1 %250, label %240, label %._crit_edge6, !llvm.loop !13
._crit_edge6: ; preds = %246
br label %251
251: ; preds = %._crit_edge6, %237
%252 = load i32, ptr %3, align 4
%253 = call i32 @close(i32 noundef %252)
%254 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
ret i32 0
}
declare i64 @sysconf(i32 noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @snprintf(ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1
declare i32 @getpid(...) #1
declare i32 @unlink(ptr noundef) #1
declare i32 @open(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare ptr @strerror(i32 noundef) #1
declare ptr @malloc(i32 noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @lio_listio(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i32 @free(ptr noundef) #1
declare i32 @close(i32 noundef) #1
declare i32 @aio_error(ptr noundef) #1
declare i32 @aio_return(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
!13 = distinct !{!13, !7}
|
; ModuleID = '/tmp/tmp4ov1wwiq.c'
source_filename = "/tmp/tmp4ov1wwiq.c"
target datalayout = "e-m:e-p270: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/tmp4ov1wwiq.c"
target datalayout = "e-m:e-p270: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_mft_7m_.c'
source_filename = "/tmp/tmp_mft_7m_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isascii.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isascii should be 0 for 0x85\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isascii_0x85() #0 {
%1 = call i64 @isascii(i32 noundef 133)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 670, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isascii(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_mft_7m_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isascii.c\00", align 1
@.str.1 = private unnamed_addr constant [29 x i8] c"isascii should be 0 for 0x85\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isascii_0x85() #0 {
%1 = call i64 @isascii(i32 noundef 133)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 670, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isascii(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/tmpd3pmemea.c'
source_filename = "/tmp/tmpd3pmemea.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [29 x i8] c"/sys/class/gpio/gpio44/value\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"1\00", align 1
@.str.2 = private unnamed_addr constant [29 x i8] c"/sys/class/gpio/gpio61/value\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"0\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @showRight() #0 {
%1 = call i32 @writeToFile(ptr noundef @.str, ptr noundef @.str.1)
%2 = call i32 @writeToFile(ptr noundef @.str.2, ptr noundef @.str.3)
ret void
}
declare i32 @writeToFile(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/tmpd3pmemea.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [29 x i8] c"/sys/class/gpio/gpio44/value\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"1\00", align 1
@.str.2 = private unnamed_addr constant [29 x i8] c"/sys/class/gpio/gpio61/value\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c"0\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @showRight() #0 {
%1 = call i32 @writeToFile(ptr noundef @.str, ptr noundef @.str.1)
%2 = call i32 @writeToFile(ptr noundef @.str.2, ptr noundef @.str.3)
ret void
}
declare i32 @writeToFile(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/tmpbh8qumf7.c'
source_filename = "/tmp/tmpbh8qumf7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i64, i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @DELAY10US(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca %struct.timeval, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
store i32 %0, ptr %2, align 4
%7 = call i32 @gettimeofday(ptr noundef %3, ptr noundef null)
%8 = getelementptr inbounds %struct.timeval, ptr %3, i32 0, i32 0
%9 = load i64, ptr %8, align 8
store i64 %9, ptr %4, align 8
%10 = getelementptr inbounds %struct.timeval, ptr %3, i32 0, i32 1
%11 = load i64, ptr %10, align 8
store i64 %11, ptr %5, align 8
br label %12
12: ; preds = %24, %1
%13 = call i32 @gettimeofday(ptr noundef %3, ptr noundef null)
%14 = getelementptr inbounds %struct.timeval, ptr %3, i32 0, i32 0
%15 = load i64, ptr %14, align 8
%16 = load i64, ptr %4, align 8
%17 = sub i64 %15, %16
%18 = mul i64 %17, 1000000
%19 = getelementptr inbounds %struct.timeval, ptr %3, i32 0, i32 1
%20 = load i64, ptr %19, align 8
%21 = load i64, ptr %5, align 8
%22 = sub i64 %20, %21
%23 = add i64 %18, %22
store i64 %23, ptr %6, align 8
br label %24
24: ; preds = %12
%25 = load i32, ptr %2, align 4
%26 = mul i32 10, %25
%27 = zext i32 %26 to i64
%28 = load i64, ptr %6, align 8
%29 = icmp ugt i64 %27, %28
br i1 %29, label %12, label %30, !llvm.loop !6
30: ; preds = %24
ret void
}
declare i32 @gettimeofday(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpbh8qumf7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timeval = type { i64, i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @DELAY10US(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca %struct.timeval, align 8
%4 = alloca i64, align 8
%5 = alloca i64, align 8
%6 = alloca i64, align 8
store i32 %0, ptr %2, align 4
%7 = call i32 @gettimeofday(ptr noundef %3, ptr noundef null)
%8 = getelementptr inbounds %struct.timeval, ptr %3, i32 0, i32 0
%9 = load i64, ptr %8, align 8
store i64 %9, ptr %4, align 8
%10 = getelementptr inbounds %struct.timeval, ptr %3, i32 0, i32 1
%11 = load i64, ptr %10, align 8
store i64 %11, ptr %5, align 8
br label %12
12: ; preds = %24, %1
%13 = call i32 @gettimeofday(ptr noundef %3, ptr noundef null)
%14 = getelementptr inbounds %struct.timeval, ptr %3, i32 0, i32 0
%15 = load i64, ptr %14, align 8
%16 = load i64, ptr %4, align 8
%17 = sub i64 %15, %16
%18 = mul i64 %17, 1000000
%19 = getelementptr inbounds %struct.timeval, ptr %3, i32 0, i32 1
%20 = load i64, ptr %19, align 8
%21 = load i64, ptr %5, align 8
%22 = sub i64 %20, %21
%23 = add i64 %18, %22
store i64 %23, ptr %6, align 8
br label %24
24: ; preds = %12
%25 = load i32, ptr %2, align 4
%26 = mul i32 10, %25
%27 = zext i32 %26 to i64
%28 = load i64, ptr %6, align 8
%29 = icmp ugt i64 %27, %28
br i1 %29, label %12, label %30, !llvm.loop !6
30: ; preds = %24
ret void
}
declare i32 @gettimeofday(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpw8alkrn8.c'
source_filename = "/tmp/tmpw8alkrn8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@SEEK_END = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @get_file_size(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
store i64 0, ptr %3, align 8
%5 = load ptr, ptr %2, align 8
%6 = call ptr @fopen(ptr noundef %5, ptr noundef @.str)
store ptr %6, ptr %4, align 8
%7 = load ptr, ptr %4, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %9, label %17
9: ; preds = %1
%10 = load ptr, ptr %4, align 8
%11 = load i32, ptr @SEEK_END, align 4
%12 = call i32 @fseek(ptr noundef %10, i32 noundef 0, i32 noundef %11)
%13 = load ptr, ptr %4, align 8
%14 = call i64 @ftell(ptr noundef %13)
store i64 %14, ptr %3, align 8
%15 = load ptr, ptr %4, align 8
%16 = call i32 @fclose(ptr noundef %15)
br label %17
17: ; preds = %9, %1
%18 = load i64, ptr %3, align 8
ret i64 %18
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @ftell(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpw8alkrn8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"r\00", align 1
@SEEK_END = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i64 @get_file_size(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
%4 = alloca ptr, align 8
store ptr %0, ptr %2, align 8
store i64 0, ptr %3, align 8
%5 = load ptr, ptr %2, align 8
%6 = call ptr @fopen(ptr noundef %5, ptr noundef @.str)
store ptr %6, ptr %4, align 8
%7 = load ptr, ptr %4, align 8
%8 = icmp ne ptr %7, null
br i1 %8, label %9, label %17
9: ; preds = %1
%10 = load ptr, ptr %4, align 8
%11 = load i32, ptr @SEEK_END, align 4
%12 = call i32 @fseek(ptr noundef %10, i32 noundef 0, i32 noundef %11)
%13 = load ptr, ptr %4, align 8
%14 = call i64 @ftell(ptr noundef %13)
store i64 %14, ptr %3, align 8
%15 = load ptr, ptr %4, align 8
%16 = call i32 @fclose(ptr noundef %15)
br label %17
17: ; preds = %9, %1
%18 = load i64, ptr %3, align 8
ret i64 %18
}
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @ftell(ptr noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp4iwhjun_.c'
source_filename = "/tmp/tmp4iwhjun_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"usage: %s <serial device> [115200|9600...]\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"-->%s<--\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
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 slt i32 %6, 2
br i1 %7, label %8, label %13
8: ; preds = %2
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds ptr, ptr %9, i64 0
%11 = load ptr, ptr %10, align 8
%12 = call i32 @printf(ptr noundef @.str, ptr noundef %11)
store i32 -1, ptr %3, align 4
br label %22
13: ; preds = %2
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 1
%16 = load ptr, ptr %15, align 8
%17 = call i32 @printf(ptr noundef @.str.1, ptr noundef %16)
%18 = load ptr, ptr %5, align 8
%19 = getelementptr inbounds ptr, ptr %18, i64 1
%20 = load ptr, ptr %19, align 8
%21 = call i32 @serial_terminal(ptr noundef %20, i32 noundef 115200, i32 noundef 0, i32 noundef 0, i32 noundef 1)
store i32 0, ptr %3, align 4
br label %22
22: ; preds = %13, %8
%23 = load i32, ptr %3, align 4
ret i32 %23
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @serial_terminal(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp4iwhjun_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"usage: %s <serial device> [115200|9600...]\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"-->%s<--\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
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 slt i32 %6, 2
br i1 %7, label %8, label %13
8: ; preds = %2
%9 = load ptr, ptr %5, align 8
%10 = getelementptr inbounds ptr, ptr %9, i64 0
%11 = load ptr, ptr %10, align 8
%12 = call i32 @printf(ptr noundef @.str, ptr noundef %11)
store i32 -1, ptr %3, align 4
br label %22
13: ; preds = %2
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 1
%16 = load ptr, ptr %15, align 8
%17 = call i32 @printf(ptr noundef @.str.1, ptr noundef %16)
%18 = load ptr, ptr %5, align 8
%19 = getelementptr inbounds ptr, ptr %18, i64 1
%20 = load ptr, ptr %19, align 8
%21 = call i32 @serial_terminal(ptr noundef %20, i32 noundef 115200, i32 noundef 0, i32 noundef 0, i32 noundef 1)
store i32 0, ptr %3, align 4
br label %22
22: ; preds = %13, %8
%23 = load i32, ptr %3, align 4
ret i32 %23
}
declare i32 @printf(ptr noundef, ptr noundef) #1
declare i32 @serial_terminal(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpdkrtqid5.c'
source_filename = "/tmp/tmpdkrtqid5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strstr_count(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
%9 = load ptr, ptr %5, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %14, label %11
11: ; preds = %2
%12 = load ptr, ptr %4, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %16
14: ; preds = %11, %2
%15 = load i32, ptr %6, align 4
store i32 %15, ptr %3, align 4
br label %36
16: ; preds = %11
%17 = load ptr, ptr %5, align 8
%18 = call i64 @strlen(ptr noundef %17)
store i64 %18, ptr %7, align 8
%19 = load ptr, ptr %4, align 8
%20 = load ptr, ptr %5, align 8
%21 = call ptr @strstr(ptr noundef %19, ptr noundef %20)
store ptr %21, ptr %8, align 8
br label %22
22: ; preds = %25, %16
%23 = load ptr, ptr %8, align 8
%24 = icmp ne ptr %23, null
br i1 %24, label %25, label %34
25: ; preds = %22
%26 = load i32, ptr %6, align 4
%27 = add nsw i32 %26, 1
store i32 %27, ptr %6, align 4
%28 = load ptr, ptr %8, align 8
%29 = load i64, ptr %7, align 8
%30 = getelementptr inbounds i8, ptr %28, i64 %29
%31 = getelementptr inbounds i8, ptr %30, i64 -1
%32 = load ptr, ptr %5, align 8
%33 = call ptr @strstr(ptr noundef %31, ptr noundef %32)
store ptr %33, ptr %8, align 8
br label %22, !llvm.loop !6
34: ; preds = %22
%35 = load i32, ptr %6, align 4
store i32 %35, ptr %3, align 4
br label %36
36: ; preds = %34, %14
%37 = load i32, ptr %3, align 4
ret i32 %37
}
declare i64 @strlen(ptr noundef) #1
declare ptr @strstr(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpdkrtqid5.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strstr_count(ptr noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
%9 = load ptr, ptr %5, align 8
%10 = icmp eq ptr %9, null
br i1 %10, label %14, label %11
11: ; preds = %2
%12 = load ptr, ptr %4, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %16
14: ; preds = %11, %2
%15 = load i32, ptr %6, align 4
store i32 %15, ptr %3, align 4
br label %37
16: ; preds = %11
%17 = load ptr, ptr %5, align 8
%18 = call i64 @strlen(ptr noundef %17)
store i64 %18, ptr %7, align 8
%19 = load ptr, ptr %4, align 8
%20 = load ptr, ptr %5, align 8
%21 = call ptr @strstr(ptr noundef %19, ptr noundef %20)
store ptr %21, ptr %8, align 8
%22 = load ptr, ptr %8, align 8
%23 = icmp ne ptr %22, null
br i1 %23, label %.lr.ph, label %35
.lr.ph: ; preds = %16
br label %24
24: ; preds = %.lr.ph, %24
%25 = load i32, ptr %6, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %6, align 4
%27 = load ptr, ptr %8, align 8
%28 = load i64, ptr %7, align 8
%29 = getelementptr inbounds i8, ptr %27, i64 %28
%30 = getelementptr inbounds i8, ptr %29, i64 -1
%31 = load ptr, ptr %5, align 8
%32 = call ptr @strstr(ptr noundef %30, ptr noundef %31)
store ptr %32, ptr %8, align 8
%33 = load ptr, ptr %8, align 8
%34 = icmp ne ptr %33, null
br i1 %34, label %24, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %24
br label %35
35: ; preds = %._crit_edge, %16
%36 = load i32, ptr %6, align 4
store i32 %36, ptr %3, align 4
br label %37
37: ; preds = %35, %14
%38 = load i32, ptr %3, align 4
ret i32 %38
}
declare i64 @strlen(ptr noundef) #1
declare ptr @strstr(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpn0cty47x.c'
source_filename = "/tmp/tmpn0cty47x.c"
target datalayout = "e-m:e-p270: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.W5100_Init.mac_addr = private unnamed_addr constant [6 x i8] c"\00\166\DEX\F6", align 1
@__const.W5100_Init.ip_addr = private unnamed_addr constant [4 x i8] c"\C0\A8\02\0A", align 1
@__const.W5100_Init.sub_mask = private unnamed_addr constant [4 x i8] c"\FF\FF\FF\00", align 1
@__const.W5100_Init.gtw_addr = private unnamed_addr constant [4 x i8] c"\C0\A8\02\01", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @W5100_Init() #0 {
%1 = alloca [6 x i8], align 1
%2 = alloca [4 x i8], align 1
%3 = alloca [4 x i8], align 1
%4 = alloca [4 x i8], align 1
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %1, ptr align 1 @__const.W5100_Init.mac_addr, i64 6, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %2, ptr align 1 @__const.W5100_Init.ip_addr, i64 4, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %3, ptr align 1 @__const.W5100_Init.sub_mask, i64 4, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %4, ptr align 1 @__const.W5100_Init.gtw_addr, i64 4, i1 false)
%5 = call i32 @SPI_Write(i32 noundef 0, i32 noundef 128)
%6 = call i32 @delay_ms(i32 noundef 1)
%7 = getelementptr inbounds [4 x i8], ptr %4, i64 0, i64 0
%8 = load i8, ptr %7, align 1
%9 = zext i8 %8 to i32
%10 = call i32 @SPI_Write(i32 noundef 1, i32 noundef %9)
%11 = getelementptr inbounds [4 x i8], ptr %4, i64 0, i64 1
%12 = load i8, ptr %11, align 1
%13 = zext i8 %12 to i32
%14 = call i32 @SPI_Write(i32 noundef 2, i32 noundef %13)
%15 = getelementptr inbounds [4 x i8], ptr %4, i64 0, i64 2
%16 = load i8, ptr %15, align 1
%17 = zext i8 %16 to i32
%18 = call i32 @SPI_Write(i32 noundef 3, i32 noundef %17)
%19 = getelementptr inbounds [4 x i8], ptr %4, i64 0, i64 3
%20 = load i8, ptr %19, align 1
%21 = zext i8 %20 to i32
%22 = call i32 @SPI_Write(i32 noundef 4, i32 noundef %21)
%23 = call i32 @delay_ms(i32 noundef 1)
%24 = getelementptr inbounds [6 x i8], ptr %1, i64 0, i64 0
%25 = load i8, ptr %24, align 1
%26 = zext i8 %25 to i32
%27 = call i32 @SPI_Write(i32 noundef 9, i32 noundef %26)
%28 = getelementptr inbounds [6 x i8], ptr %1, i64 0, i64 1
%29 = load i8, ptr %28, align 1
%30 = zext i8 %29 to i32
%31 = call i32 @SPI_Write(i32 noundef 10, i32 noundef %30)
%32 = getelementptr inbounds [6 x i8], ptr %1, i64 0, i64 2
%33 = load i8, ptr %32, align 1
%34 = zext i8 %33 to i32
%35 = call i32 @SPI_Write(i32 noundef 11, i32 noundef %34)
%36 = getelementptr inbounds [6 x i8], ptr %1, i64 0, i64 3
%37 = load i8, ptr %36, align 1
%38 = zext i8 %37 to i32
%39 = call i32 @SPI_Write(i32 noundef 12, i32 noundef %38)
%40 = getelementptr inbounds [6 x i8], ptr %1, i64 0, i64 4
%41 = load i8, ptr %40, align 1
%42 = zext i8 %41 to i32
%43 = call i32 @SPI_Write(i32 noundef 13, i32 noundef %42)
%44 = getelementptr inbounds [6 x i8], ptr %1, i64 0, i64 5
%45 = load i8, ptr %44, align 1
%46 = zext i8 %45 to i32
%47 = call i32 @SPI_Write(i32 noundef 14, i32 noundef %46)
%48 = call i32 @delay_ms(i32 noundef 1)
%49 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 0
%50 = load i8, ptr %49, align 1
%51 = zext i8 %50 to i32
%52 = call i32 @SPI_Write(i32 noundef 5, i32 noundef %51)
%53 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 1
%54 = load i8, ptr %53, align 1
%55 = zext i8 %54 to i32
%56 = call i32 @SPI_Write(i32 noundef 6, i32 noundef %55)
%57 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 2
%58 = load i8, ptr %57, align 1
%59 = zext i8 %58 to i32
%60 = call i32 @SPI_Write(i32 noundef 7, i32 noundef %59)
%61 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 3
%62 = load i8, ptr %61, align 1
%63 = zext i8 %62 to i32
%64 = call i32 @SPI_Write(i32 noundef 8, i32 noundef %63)
%65 = call i32 @delay_ms(i32 noundef 1)
%66 = getelementptr inbounds [4 x i8], ptr %2, i64 0, i64 0
%67 = load i8, ptr %66, align 1
%68 = zext i8 %67 to i32
%69 = call i32 @SPI_Write(i32 noundef 15, i32 noundef %68)
%70 = getelementptr inbounds [4 x i8], ptr %2, i64 0, i64 1
%71 = load i8, ptr %70, align 1
%72 = zext i8 %71 to i32
%73 = call i32 @SPI_Write(i32 noundef 16, i32 noundef %72)
%74 = getelementptr inbounds [4 x i8], ptr %2, i64 0, i64 2
%75 = load i8, ptr %74, align 1
%76 = zext i8 %75 to i32
%77 = call i32 @SPI_Write(i32 noundef 17, i32 noundef %76)
%78 = getelementptr inbounds [4 x i8], ptr %2, i64 0, i64 3
%79 = load i8, ptr %78, align 1
%80 = zext i8 %79 to i32
%81 = call i32 @SPI_Write(i32 noundef 18, i32 noundef %80)
%82 = call i32 @delay_ms(i32 noundef 1)
%83 = call i32 @SPI_Write(i32 noundef 26, i32 noundef 85)
%84 = call i32 @SPI_Write(i32 noundef 27, i32 noundef 85)
ret void
}
; 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 @SPI_Write(i32 noundef, i32 noundef) #2
declare i32 @delay_ms(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/tmpn0cty47x.c"
target datalayout = "e-m:e-p270: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.W5100_Init.mac_addr = private unnamed_addr constant [6 x i8] c"\00\166\DEX\F6", align 1
@__const.W5100_Init.ip_addr = private unnamed_addr constant [4 x i8] c"\C0\A8\02\0A", align 1
@__const.W5100_Init.sub_mask = private unnamed_addr constant [4 x i8] c"\FF\FF\FF\00", align 1
@__const.W5100_Init.gtw_addr = private unnamed_addr constant [4 x i8] c"\C0\A8\02\01", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @W5100_Init() #0 {
%1 = alloca [6 x i8], align 1
%2 = alloca [4 x i8], align 1
%3 = alloca [4 x i8], align 1
%4 = alloca [4 x i8], align 1
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %1, ptr align 1 @__const.W5100_Init.mac_addr, i64 6, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %2, ptr align 1 @__const.W5100_Init.ip_addr, i64 4, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %3, ptr align 1 @__const.W5100_Init.sub_mask, i64 4, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %4, ptr align 1 @__const.W5100_Init.gtw_addr, i64 4, i1 false)
%5 = call i32 @SPI_Write(i32 noundef 0, i32 noundef 128)
%6 = call i32 @delay_ms(i32 noundef 1)
%7 = getelementptr inbounds [4 x i8], ptr %4, i64 0, i64 0
%8 = load i8, ptr %7, align 1
%9 = zext i8 %8 to i32
%10 = call i32 @SPI_Write(i32 noundef 1, i32 noundef %9)
%11 = getelementptr inbounds [4 x i8], ptr %4, i64 0, i64 1
%12 = load i8, ptr %11, align 1
%13 = zext i8 %12 to i32
%14 = call i32 @SPI_Write(i32 noundef 2, i32 noundef %13)
%15 = getelementptr inbounds [4 x i8], ptr %4, i64 0, i64 2
%16 = load i8, ptr %15, align 1
%17 = zext i8 %16 to i32
%18 = call i32 @SPI_Write(i32 noundef 3, i32 noundef %17)
%19 = getelementptr inbounds [4 x i8], ptr %4, i64 0, i64 3
%20 = load i8, ptr %19, align 1
%21 = zext i8 %20 to i32
%22 = call i32 @SPI_Write(i32 noundef 4, i32 noundef %21)
%23 = call i32 @delay_ms(i32 noundef 1)
%24 = getelementptr inbounds [6 x i8], ptr %1, i64 0, i64 0
%25 = load i8, ptr %24, align 1
%26 = zext i8 %25 to i32
%27 = call i32 @SPI_Write(i32 noundef 9, i32 noundef %26)
%28 = getelementptr inbounds [6 x i8], ptr %1, i64 0, i64 1
%29 = load i8, ptr %28, align 1
%30 = zext i8 %29 to i32
%31 = call i32 @SPI_Write(i32 noundef 10, i32 noundef %30)
%32 = getelementptr inbounds [6 x i8], ptr %1, i64 0, i64 2
%33 = load i8, ptr %32, align 1
%34 = zext i8 %33 to i32
%35 = call i32 @SPI_Write(i32 noundef 11, i32 noundef %34)
%36 = getelementptr inbounds [6 x i8], ptr %1, i64 0, i64 3
%37 = load i8, ptr %36, align 1
%38 = zext i8 %37 to i32
%39 = call i32 @SPI_Write(i32 noundef 12, i32 noundef %38)
%40 = getelementptr inbounds [6 x i8], ptr %1, i64 0, i64 4
%41 = load i8, ptr %40, align 1
%42 = zext i8 %41 to i32
%43 = call i32 @SPI_Write(i32 noundef 13, i32 noundef %42)
%44 = getelementptr inbounds [6 x i8], ptr %1, i64 0, i64 5
%45 = load i8, ptr %44, align 1
%46 = zext i8 %45 to i32
%47 = call i32 @SPI_Write(i32 noundef 14, i32 noundef %46)
%48 = call i32 @delay_ms(i32 noundef 1)
%49 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 0
%50 = load i8, ptr %49, align 1
%51 = zext i8 %50 to i32
%52 = call i32 @SPI_Write(i32 noundef 5, i32 noundef %51)
%53 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 1
%54 = load i8, ptr %53, align 1
%55 = zext i8 %54 to i32
%56 = call i32 @SPI_Write(i32 noundef 6, i32 noundef %55)
%57 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 2
%58 = load i8, ptr %57, align 1
%59 = zext i8 %58 to i32
%60 = call i32 @SPI_Write(i32 noundef 7, i32 noundef %59)
%61 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 3
%62 = load i8, ptr %61, align 1
%63 = zext i8 %62 to i32
%64 = call i32 @SPI_Write(i32 noundef 8, i32 noundef %63)
%65 = call i32 @delay_ms(i32 noundef 1)
%66 = getelementptr inbounds [4 x i8], ptr %2, i64 0, i64 0
%67 = load i8, ptr %66, align 1
%68 = zext i8 %67 to i32
%69 = call i32 @SPI_Write(i32 noundef 15, i32 noundef %68)
%70 = getelementptr inbounds [4 x i8], ptr %2, i64 0, i64 1
%71 = load i8, ptr %70, align 1
%72 = zext i8 %71 to i32
%73 = call i32 @SPI_Write(i32 noundef 16, i32 noundef %72)
%74 = getelementptr inbounds [4 x i8], ptr %2, i64 0, i64 2
%75 = load i8, ptr %74, align 1
%76 = zext i8 %75 to i32
%77 = call i32 @SPI_Write(i32 noundef 17, i32 noundef %76)
%78 = getelementptr inbounds [4 x i8], ptr %2, i64 0, i64 3
%79 = load i8, ptr %78, align 1
%80 = zext i8 %79 to i32
%81 = call i32 @SPI_Write(i32 noundef 18, i32 noundef %80)
%82 = call i32 @delay_ms(i32 noundef 1)
%83 = call i32 @SPI_Write(i32 noundef 26, i32 noundef 85)
%84 = call i32 @SPI_Write(i32 noundef 27, i32 noundef 85)
ret void
}
; 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 @SPI_Write(i32 noundef, i32 noundef) #2
declare i32 @delay_ms(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/tmp_5b64mnv.c'
source_filename = "/tmp/tmp_5b64mnv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @U_WMRRESIZEPALETTE_swap(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = call i32 @U_WMRCORE_N16_swap(ptr noundef %5, i32 noundef 1, i32 noundef %6)
ret void
}
declare i32 @U_WMRCORE_N16_swap(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/tmp_5b64mnv.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @U_WMRRESIZEPALETTE_swap(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%5 = load ptr, ptr %3, align 8
%6 = load i32, ptr %4, align 4
%7 = call i32 @U_WMRCORE_N16_swap(ptr noundef %5, i32 noundef 1, i32 noundef %6)
ret void
}
declare i32 @U_WMRCORE_N16_swap(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/tmpj09yxe_2.c'
source_filename = "/tmp/tmpj09yxe_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"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @test_mm_add_epi8(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 @_mm_add_epi8(i32 noundef %5, i32 noundef %6)
ret i32 %7
}
declare i32 @_mm_add_epi8(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/tmpj09yxe_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"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @test_mm_add_epi8(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 @_mm_add_epi8(i32 noundef %5, i32 noundef %6)
ret i32 %7
}
declare i32 @_mm_add_epi8(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/tmp1ycbmebu.c'
source_filename = "/tmp/tmp1ycbmebu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isupper.c\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"isupper should be 0 for x\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isupper_0x78() #0 {
%1 = call i64 @isupper(i32 noundef 120)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 605, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isupper(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/tmp1ycbmebu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isupper.c\00", align 1
@.str.1 = private unnamed_addr constant [26 x i8] c"isupper should be 0 for x\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @t_isupper_0x78() #0 {
%1 = call i64 @isupper(i32 noundef 120)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 noundef %3, ptr noundef @.str, i32 noundef 605, ptr noundef @.str.1)
ret void
}
declare i32 @Assert_real(i32 noundef, ptr noundef, i32 noundef, ptr noundef) #1
declare i64 @isupper(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/tmp2ek2qtkm.c'
source_filename = "/tmp/tmp2ek2qtkm.c"
target datalayout = "e-m:e-p270: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.name = private unnamed_addr constant [4 x i8] c"a\00\00\00", align 1
@.str = private unnamed_addr constant [22 x i8] c"numbers: %i %i %i %i\0A\00", align 1
@.str.1 = private unnamed_addr constant [24 x i8] c"name each: %c %c %c %c\0A\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"name: %s\0A\0A\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"Zed\00", align 1
@.str.4 = private unnamed_addr constant [13 x i8] c"another: %s\0A\00", align 1
@.str.5 = private unnamed_addr constant [27 x i8] c"another each: %c %c %c %c\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [4 x i32], align 16
%3 = alloca [4 x i8], align 1
%4 = alloca ptr, align 8
store i32 0, ptr %1, align 4
call void @llvm.memset.p0.i64(ptr align 16 %2, i8 0, i64 16, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %3, ptr align 1 @__const.main.name, i64 4, i1 false)
%5 = getelementptr inbounds [4 x i32], ptr %2, i64 0, i64 0
%6 = load i32, ptr %5, align 16
%7 = getelementptr inbounds [4 x i32], ptr %2, i64 0, i64 1
%8 = load i32, ptr %7, align 4
%9 = getelementptr inbounds [4 x i32], ptr %2, i64 0, i64 2
%10 = load i32, ptr %9, align 8
%11 = getelementptr inbounds [4 x i32], ptr %2, i64 0, i64 3
%12 = load i32, ptr %11, align 4
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %6, i32 noundef %8, i32 noundef %10, i32 noundef %12)
%14 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 0
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
%17 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 1
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 2
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 3
%24 = load i8, ptr %23, align 1
%25 = sext i8 %24 to i32
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %16, i32 noundef %19, i32 noundef %22, i32 noundef %25)
%27 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 0
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %27)
%29 = getelementptr inbounds [4 x i32], ptr %2, i64 0, i64 0
store i32 1, ptr %29, align 16
%30 = getelementptr inbounds [4 x i32], ptr %2, i64 0, i64 1
store i32 2, ptr %30, align 4
%31 = getelementptr inbounds [4 x i32], ptr %2, i64 0, i64 2
store i32 3, ptr %31, align 8
%32 = getelementptr inbounds [4 x i32], ptr %2, i64 0, i64 3
store i32 4, ptr %32, align 4
%33 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 0
store i8 90, ptr %33, align 1
%34 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 1
store i8 101, ptr %34, align 1
%35 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 2
store i8 100, ptr %35, align 1
%36 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 3
store i8 0, ptr %36, align 1
%37 = getelementptr inbounds [4 x i32], ptr %2, i64 0, i64 0
%38 = load i32, ptr %37, align 16
%39 = getelementptr inbounds [4 x i32], ptr %2, i64 0, i64 1
%40 = load i32, ptr %39, align 4
%41 = getelementptr inbounds [4 x i32], ptr %2, i64 0, i64 2
%42 = load i32, ptr %41, align 8
%43 = getelementptr inbounds [4 x i32], ptr %2, i64 0, i64 3
%44 = load i32, ptr %43, align 4
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %38, i32 noundef %40, i32 noundef %42, i32 noundef %44)
%46 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 0
%47 = load i8, ptr %46, align 1
%48 = sext i8 %47 to i32
%49 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 1
%50 = load i8, ptr %49, align 1
%51 = sext i8 %50 to i32
%52 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 2
%53 = load i8, ptr %52, align 1
%54 = sext i8 %53 to i32
%55 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 3
%56 = load i8, ptr %55, align 1
%57 = sext i8 %56 to i32
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %48, i32 noundef %51, i32 noundef %54, i32 noundef %57)
%59 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 0
%60 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %59)
store ptr @.str.3, ptr %4, align 8
%61 = load ptr, ptr %4, align 8
%62 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %61)
%63 = load ptr, ptr %4, align 8
%64 = getelementptr inbounds i8, ptr %63, i64 0
%65 = load i8, ptr %64, align 1
%66 = sext i8 %65 to i32
%67 = load ptr, ptr %4, align 8
%68 = getelementptr inbounds i8, ptr %67, i64 1
%69 = load i8, ptr %68, align 1
%70 = sext i8 %69 to i32
%71 = load ptr, ptr %4, align 8
%72 = getelementptr inbounds i8, ptr %71, i64 2
%73 = load i8, ptr %72, align 1
%74 = sext i8 %73 to i32
%75 = load ptr, ptr %4, align 8
%76 = getelementptr inbounds i8, ptr %75, i64 3
%77 = load i8, ptr %76, align 1
%78 = sext i8 %77 to i32
%79 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %66, i32 noundef %70, i32 noundef %74, i32 noundef %78)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
declare i32 @printf(ptr noundef, ...) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2ek2qtkm.c"
target datalayout = "e-m:e-p270: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.name = private unnamed_addr constant [4 x i8] c"a\00\00\00", align 1
@.str = private unnamed_addr constant [22 x i8] c"numbers: %i %i %i %i\0A\00", align 1
@.str.1 = private unnamed_addr constant [24 x i8] c"name each: %c %c %c %c\0A\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"name: %s\0A\0A\00", align 1
@.str.3 = private unnamed_addr constant [4 x i8] c"Zed\00", align 1
@.str.4 = private unnamed_addr constant [13 x i8] c"another: %s\0A\00", align 1
@.str.5 = private unnamed_addr constant [27 x i8] c"another each: %c %c %c %c\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [4 x i32], align 16
%3 = alloca [4 x i8], align 1
%4 = alloca ptr, align 8
store i32 0, ptr %1, align 4
call void @llvm.memset.p0.i64(ptr align 16 %2, i8 0, i64 16, i1 false)
call void @llvm.memcpy.p0.p0.i64(ptr align 1 %3, ptr align 1 @__const.main.name, i64 4, i1 false)
%5 = getelementptr inbounds [4 x i32], ptr %2, i64 0, i64 0
%6 = load i32, ptr %5, align 16
%7 = getelementptr inbounds [4 x i32], ptr %2, i64 0, i64 1
%8 = load i32, ptr %7, align 4
%9 = getelementptr inbounds [4 x i32], ptr %2, i64 0, i64 2
%10 = load i32, ptr %9, align 8
%11 = getelementptr inbounds [4 x i32], ptr %2, i64 0, i64 3
%12 = load i32, ptr %11, align 4
%13 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %6, i32 noundef %8, i32 noundef %10, i32 noundef %12)
%14 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 0
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
%17 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 1
%18 = load i8, ptr %17, align 1
%19 = sext i8 %18 to i32
%20 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 2
%21 = load i8, ptr %20, align 1
%22 = sext i8 %21 to i32
%23 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 3
%24 = load i8, ptr %23, align 1
%25 = sext i8 %24 to i32
%26 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %16, i32 noundef %19, i32 noundef %22, i32 noundef %25)
%27 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 0
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %27)
%29 = getelementptr inbounds [4 x i32], ptr %2, i64 0, i64 0
store i32 1, ptr %29, align 16
%30 = getelementptr inbounds [4 x i32], ptr %2, i64 0, i64 1
store i32 2, ptr %30, align 4
%31 = getelementptr inbounds [4 x i32], ptr %2, i64 0, i64 2
store i32 3, ptr %31, align 8
%32 = getelementptr inbounds [4 x i32], ptr %2, i64 0, i64 3
store i32 4, ptr %32, align 4
%33 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 0
store i8 90, ptr %33, align 1
%34 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 1
store i8 101, ptr %34, align 1
%35 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 2
store i8 100, ptr %35, align 1
%36 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 3
store i8 0, ptr %36, align 1
%37 = getelementptr inbounds [4 x i32], ptr %2, i64 0, i64 0
%38 = load i32, ptr %37, align 16
%39 = getelementptr inbounds [4 x i32], ptr %2, i64 0, i64 1
%40 = load i32, ptr %39, align 4
%41 = getelementptr inbounds [4 x i32], ptr %2, i64 0, i64 2
%42 = load i32, ptr %41, align 8
%43 = getelementptr inbounds [4 x i32], ptr %2, i64 0, i64 3
%44 = load i32, ptr %43, align 4
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %38, i32 noundef %40, i32 noundef %42, i32 noundef %44)
%46 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 0
%47 = load i8, ptr %46, align 1
%48 = sext i8 %47 to i32
%49 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 1
%50 = load i8, ptr %49, align 1
%51 = sext i8 %50 to i32
%52 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 2
%53 = load i8, ptr %52, align 1
%54 = sext i8 %53 to i32
%55 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 3
%56 = load i8, ptr %55, align 1
%57 = sext i8 %56 to i32
%58 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %48, i32 noundef %51, i32 noundef %54, i32 noundef %57)
%59 = getelementptr inbounds [4 x i8], ptr %3, i64 0, i64 0
%60 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %59)
store ptr @.str.3, ptr %4, align 8
%61 = load ptr, ptr %4, align 8
%62 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, ptr noundef %61)
%63 = load ptr, ptr %4, align 8
%64 = getelementptr inbounds i8, ptr %63, i64 0
%65 = load i8, ptr %64, align 1
%66 = sext i8 %65 to i32
%67 = load ptr, ptr %4, align 8
%68 = getelementptr inbounds i8, ptr %67, i64 1
%69 = load i8, ptr %68, align 1
%70 = sext i8 %69 to i32
%71 = load ptr, ptr %4, align 8
%72 = getelementptr inbounds i8, ptr %71, i64 2
%73 = load i8, ptr %72, align 1
%74 = sext i8 %73 to i32
%75 = load ptr, ptr %4, align 8
%76 = getelementptr inbounds i8, ptr %75, i64 3
%77 = load i8, ptr %76, align 1
%78 = sext i8 %77 to i32
%79 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %66, i32 noundef %70, i32 noundef %74, i32 noundef %78)
ret i32 0
}
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1
; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2
declare i32 @printf(ptr noundef, ...) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxkf5txtd.c'
source_filename = "/tmp/tmpxkf5txtd.c"
target datalayout = "e-m:e-p270: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/tmpxkf5txtd.c"
target datalayout = "e-m:e-p270: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/tmppj4rlcde.c'
source_filename = "/tmp/tmppj4rlcde.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @add_length_indicator(i16 noundef zeroext %0) #0 {
%2 = alloca i16, align 2
store i16 %0, ptr %2, align 2
%3 = load i16, ptr %2, align 2
%4 = zext i16 %3 to i32
%5 = ashr i32 %4, 8
%6 = and i32 %5, 255
%7 = trunc i32 %6 to i8
%8 = call i32 @printf(ptr noundef @.str, i8 noundef zeroext %7)
%9 = load i16, ptr %2, align 2
%10 = zext i16 %9 to i32
%11 = and i32 %10, 255
%12 = trunc i32 %11 to i8
%13 = call i32 @printf(ptr noundef @.str, i8 noundef zeroext %12)
ret void
}
declare i32 @printf(ptr noundef, i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmppj4rlcde.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%c\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @add_length_indicator(i16 noundef zeroext %0) #0 {
%2 = alloca i16, align 2
store i16 %0, ptr %2, align 2
%3 = load i16, ptr %2, align 2
%4 = zext i16 %3 to i32
%5 = ashr i32 %4, 8
%6 = and i32 %5, 255
%7 = trunc i32 %6 to i8
%8 = call i32 @printf(ptr noundef @.str, i8 noundef zeroext %7)
%9 = load i16, ptr %2, align 2
%10 = zext i16 %9 to i32
%11 = and i32 %10, 255
%12 = trunc i32 %11 to i8
%13 = call i32 @printf(ptr noundef @.str, i8 noundef zeroext %12)
ret void
}
declare i32 @printf(ptr noundef, i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpzzu8lcru.c'
source_filename = "/tmp/tmpzzu8lcru.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%lld\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"%lld %c\0A\00", align 1
@stdin = dso_local global i32 0, align 4
@SEEK_END = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [6 x i8] c"%lld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
store i32 0, ptr %1, align 4
store i64 1, ptr %2, align 8
%3 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%4 = sext i32 %3 to i64
%5 = call i32 (ptr, i64, ...) @printf(ptr noundef @.str, i64 noundef %4)
%6 = load i64, ptr %2, align 8
%7 = load i64, ptr %2, align 8
%8 = trunc i64 %7 to i8
%9 = sext i8 %8 to i32
%10 = call i32 (ptr, i64, ...) @printf(ptr noundef @.str.2, i64 noundef %6, i32 noundef %9)
br label %11
11: ; preds = %14, %0
%12 = load i64, ptr %2, align 8
%13 = icmp eq i64 %12, 0
br i1 %13, label %14, label %21
14: ; preds = %11
%15 = load i32, ptr @stdin, align 4
%16 = load i32, ptr @SEEK_END, align 4
%17 = call i32 @fseek(i32 noundef %15, i32 noundef 0, i32 noundef %16)
%18 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%19 = load i64, ptr %2, align 8
%20 = call i32 (ptr, i64, ...) @printf(ptr noundef @.str.3, i64 noundef %19)
br label %11, !llvm.loop !6
21: ; preds = %11
ret i32 0
}
declare i32 @printf(ptr noundef, i64 noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @fseek(i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpzzu8lcru.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%d\0A\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%lld\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"%lld %c\0A\00", align 1
@stdin = dso_local global i32 0, align 4
@SEEK_END = dso_local global i32 0, align 4
@.str.3 = private unnamed_addr constant [6 x i8] c"%lld\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i64, align 8
store i32 0, ptr %1, align 4
store i64 1, ptr %2, align 8
%3 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%4 = sext i32 %3 to i64
%5 = call i32 (ptr, i64, ...) @printf(ptr noundef @.str, i64 noundef %4)
%6 = load i64, ptr %2, align 8
%7 = load i64, ptr %2, align 8
%8 = trunc i64 %7 to i8
%9 = sext i8 %8 to i32
%10 = call i32 (ptr, i64, ...) @printf(ptr noundef @.str.2, i64 noundef %6, i32 noundef %9)
%11 = load i64, ptr %2, align 8
%12 = icmp eq i64 %11, 0
br i1 %12, label %.lr.ph, label %22
.lr.ph: ; preds = %0
br label %13
13: ; preds = %.lr.ph, %13
%14 = load i32, ptr @stdin, align 4
%15 = load i32, ptr @SEEK_END, align 4
%16 = call i32 @fseek(i32 noundef %14, i32 noundef 0, i32 noundef %15)
%17 = call i32 @scanf(ptr noundef @.str.1, ptr noundef %2)
%18 = load i64, ptr %2, align 8
%19 = call i32 (ptr, i64, ...) @printf(ptr noundef @.str.3, i64 noundef %18)
%20 = load i64, ptr %2, align 8
%21 = icmp eq i64 %20, 0
br i1 %21, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %13
br label %22
22: ; preds = %._crit_edge, %0
ret i32 0
}
declare i32 @printf(ptr noundef, i64 noundef, ...) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @fseek(i32 noundef, i32 noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpr7aeknb8.c'
source_filename = "/tmp/tmpr7aeknb8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mpz_palindrome(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca [500 x i8], align 16
%5 = alloca i64, align 8
%6 = alloca i64, align 8
store i32 %0, ptr %3, align 4
%7 = getelementptr inbounds [500 x i8], ptr %4, i64 0, i64 0
%8 = load i32, ptr %3, align 4
%9 = call i32 @mpz_get_str(ptr noundef %7, i32 noundef 10, i32 noundef %8)
%10 = getelementptr inbounds [500 x i8], ptr %4, i64 0, i64 0
%11 = call i32 @strlen(ptr noundef %10)
%12 = sub nsw i32 %11, 1
%13 = sext i32 %12 to i64
store i64 %13, ptr %5, align 8
store i64 0, ptr %6, align 8
br label %14
14: ; preds = %34, %1
%15 = load i64, ptr %6, align 8
%16 = load i64, ptr %5, align 8
%17 = udiv i64 %16, 2
%18 = add i64 %17, 1
%19 = icmp ult i64 %15, %18
br i1 %19, label %20, label %37
20: ; preds = %14
%21 = load i64, ptr %6, align 8
%22 = getelementptr inbounds [500 x i8], ptr %4, i64 0, i64 %21
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = load i64, ptr %5, align 8
%26 = load i64, ptr %6, align 8
%27 = sub i64 %25, %26
%28 = getelementptr inbounds [500 x i8], ptr %4, i64 0, i64 %27
%29 = load i8, ptr %28, align 1
%30 = sext i8 %29 to i32
%31 = icmp ne i32 %24, %30
br i1 %31, label %32, label %33
32: ; preds = %20
store i32 0, ptr %2, align 4
br label %38
33: ; preds = %20
br label %34
34: ; preds = %33
%35 = load i64, ptr %6, align 8
%36 = add i64 %35, 1
store i64 %36, ptr %6, align 8
br label %14, !llvm.loop !6
37: ; preds = %14
store i32 1, ptr %2, align 4
br label %38
38: ; preds = %37, %32
%39 = load i32, ptr %2, align 4
ret i32 %39
}
declare i32 @mpz_get_str(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpr7aeknb8.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mpz_palindrome(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca [500 x i8], align 16
%5 = alloca i64, align 8
%6 = alloca i64, align 8
store i32 %0, ptr %3, align 4
%7 = getelementptr inbounds [500 x i8], ptr %4, i64 0, i64 0
%8 = load i32, ptr %3, align 4
%9 = call i32 @mpz_get_str(ptr noundef %7, i32 noundef 10, i32 noundef %8)
%10 = getelementptr inbounds [500 x i8], ptr %4, i64 0, i64 0
%11 = call i32 @strlen(ptr noundef %10)
%12 = sub nsw i32 %11, 1
%13 = sext i32 %12 to i64
store i64 %13, ptr %5, align 8
store i64 0, ptr %6, align 8
%14 = load i64, ptr %6, align 8
%15 = load i64, ptr %5, align 8
%16 = udiv i64 %15, 2
%17 = add i64 %16, 1
%18 = icmp ult i64 %14, %17
br i1 %18, label %.lr.ph, label %41
.lr.ph: ; preds = %1
br label %19
19: ; preds = %.lr.ph, %33
%20 = load i64, ptr %6, align 8
%21 = getelementptr inbounds [500 x i8], ptr %4, i64 0, i64 %20
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = load i64, ptr %5, align 8
%25 = load i64, ptr %6, align 8
%26 = sub i64 %24, %25
%27 = getelementptr inbounds [500 x i8], ptr %4, i64 0, i64 %26
%28 = load i8, ptr %27, align 1
%29 = sext i8 %28 to i32
%30 = icmp ne i32 %23, %29
br i1 %30, label %31, label %32
31: ; preds = %19
store i32 0, ptr %2, align 4
br label %42
32: ; preds = %19
br label %33
33: ; preds = %32
%34 = load i64, ptr %6, align 8
%35 = add i64 %34, 1
store i64 %35, ptr %6, align 8
%36 = load i64, ptr %6, align 8
%37 = load i64, ptr %5, align 8
%38 = udiv i64 %37, 2
%39 = add i64 %38, 1
%40 = icmp ult i64 %36, %39
br i1 %40, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %33
br label %41
41: ; preds = %._crit_edge, %1
store i32 1, ptr %2, align 4
br label %42
42: ; preds = %41, %31
%43 = load i32, ptr %2, align 4
ret i32 %43
}
declare i32 @mpz_get_str(ptr noundef, i32 noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp_sthxcqa.c'
source_filename = "/tmp/tmp_sthxcqa.c"
target datalayout = "e-m:e-p270: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_sthxcqa.c"
target datalayout = "e-m:e-p270: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/tmpyq86uj39.c'
source_filename = "/tmp/tmpyq86uj39.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [28 x i8] c"bad number of arguments: %d\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"DOSPATH\00", align 1
@.str.2 = private unnamed_addr constant [40 x i8] c"DOSPATH environment variable is not set\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c".\00", align 1
@.str.4 = private unnamed_addr constant [23 x i8] c"chmod(\22.\22,0755) failed\00", align 1
@.str.5 = private unnamed_addr constant [14 x i8] c"./program.exe\00", align 1
@.str.6 = private unnamed_addr constant [25 x i8] c"rename(\22%s\22,\22%s\22) failed\00", align 1
@.str.7 = private unnamed_addr constant [9 x i8] c"./output\00", align 1
@.str.8 = private unnamed_addr constant [25 x i8] c"truncate(\22%s\22, 0) failed\00", align 1
@.str.9 = private unnamed_addr constant [8 x i8] c"./error\00", align 1
@.str.10 = private unnamed_addr constant [4 x i8] c"./e\00", align 1
@.str.11 = private unnamed_addr constant [23 x i8] c"chmod(\22.\22,0555) failed\00", align 1
@.str.12 = private unnamed_addr constant [3 x i8] c"-I\00", align 1
@.str.13 = private unnamed_addr constant [15 x i8] c"video { none }\00", align 1
@.str.14 = private unnamed_addr constant [23 x i8] c"execl(\22%s\22,...) failed\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr null, ptr %6, align 8
%7 = load i32, ptr %4, align 4
%8 = icmp ne i32 %7, 2
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = load i32, ptr %4, align 4
%11 = call i32 (ptr, ...) @msg(ptr noundef @.str, i32 noundef %10)
br label %12
12: ; preds = %9, %2
%13 = call ptr @getenv(ptr noundef @.str.1)
store ptr %13, ptr %6, align 8
%14 = icmp ne ptr %13, null
br i1 %14, label %17, label %15
15: ; preds = %12
%16 = call i32 (ptr, ...) @msg(ptr noundef @.str.2)
br label %17
17: ; preds = %15, %12
%18 = call i64 @chmod(ptr noundef @.str.3, i32 noundef 493)
%19 = icmp slt i64 %18, 0
br i1 %19, label %20, label %22
20: ; preds = %17
%21 = call i32 (ptr, ...) @msg_errno(ptr noundef @.str.4)
br label %22
22: ; preds = %20, %17
%23 = load ptr, ptr %5, align 8
%24 = getelementptr inbounds ptr, ptr %23, i64 1
%25 = load ptr, ptr %24, align 8
%26 = call i64 @rename(ptr noundef %25, ptr noundef @.str.5)
%27 = icmp slt i64 %26, 0
br i1 %27, label %28, label %33
28: ; preds = %22
%29 = load ptr, ptr %5, align 8
%30 = getelementptr inbounds ptr, ptr %29, i64 1
%31 = load ptr, ptr %30, align 8
%32 = call i32 (ptr, ...) @msg_errno(ptr noundef @.str.6, ptr noundef %31, ptr noundef @.str.5)
br label %33
33: ; preds = %28, %22
%34 = call i64 @truncate(ptr noundef @.str.7, i32 noundef 0)
%35 = icmp slt i64 %34, 0
br i1 %35, label %36, label %38
36: ; preds = %33
%37 = call i32 (ptr, ...) @msg_errno(ptr noundef @.str.8, ptr noundef @.str.7)
br label %38
38: ; preds = %36, %33
%39 = call i64 @truncate(ptr noundef @.str.9, i32 noundef 0)
%40 = icmp slt i64 %39, 0
br i1 %40, label %41, label %43
41: ; preds = %38
%42 = call i32 (ptr, ...) @msg_errno(ptr noundef @.str.8, ptr noundef @.str.9)
br label %43
43: ; preds = %41, %38
%44 = call i64 @truncate(ptr noundef @.str.10, i32 noundef 0)
%45 = icmp slt i64 %44, 0
br i1 %45, label %46, label %48
46: ; preds = %43
%47 = call i32 (ptr, ...) @msg_errno(ptr noundef @.str.8, ptr noundef @.str.10)
br label %48
48: ; preds = %46, %43
%49 = call i64 @chmod(ptr noundef @.str.3, i32 noundef 365)
%50 = icmp slt i64 %49, 0
br i1 %50, label %51, label %53
51: ; preds = %48
%52 = call i32 (ptr, ...) @msg_errno(ptr noundef @.str.11)
br label %53
53: ; preds = %51, %48
%54 = load ptr, ptr %6, align 8
%55 = load ptr, ptr %6, align 8
%56 = call i32 @execl(ptr noundef %54, ptr noundef %55, ptr noundef @.str.12, ptr noundef @.str.13, ptr noundef null)
%57 = load ptr, ptr %6, align 8
%58 = call i32 (ptr, ...) @msg_errno(ptr noundef @.str.14, ptr noundef %57)
%59 = load i32, ptr %3, align 4
ret i32 %59
}
declare i32 @msg(ptr noundef, ...) #1
declare ptr @getenv(ptr noundef) #1
declare i64 @chmod(ptr noundef, i32 noundef) #1
declare i32 @msg_errno(ptr noundef, ...) #1
declare i64 @rename(ptr noundef, ptr noundef) #1
declare i64 @truncate(ptr noundef, i32 noundef) #1
declare i32 @execl(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyq86uj39.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [28 x i8] c"bad number of arguments: %d\00", align 1
@.str.1 = private unnamed_addr constant [8 x i8] c"DOSPATH\00", align 1
@.str.2 = private unnamed_addr constant [40 x i8] c"DOSPATH environment variable is not set\00", align 1
@.str.3 = private unnamed_addr constant [2 x i8] c".\00", align 1
@.str.4 = private unnamed_addr constant [23 x i8] c"chmod(\22.\22,0755) failed\00", align 1
@.str.5 = private unnamed_addr constant [14 x i8] c"./program.exe\00", align 1
@.str.6 = private unnamed_addr constant [25 x i8] c"rename(\22%s\22,\22%s\22) failed\00", align 1
@.str.7 = private unnamed_addr constant [9 x i8] c"./output\00", align 1
@.str.8 = private unnamed_addr constant [25 x i8] c"truncate(\22%s\22, 0) failed\00", align 1
@.str.9 = private unnamed_addr constant [8 x i8] c"./error\00", align 1
@.str.10 = private unnamed_addr constant [4 x i8] c"./e\00", align 1
@.str.11 = private unnamed_addr constant [23 x i8] c"chmod(\22.\22,0555) failed\00", align 1
@.str.12 = private unnamed_addr constant [3 x i8] c"-I\00", align 1
@.str.13 = private unnamed_addr constant [15 x i8] c"video { none }\00", align 1
@.str.14 = private unnamed_addr constant [23 x i8] c"execl(\22%s\22,...) failed\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store ptr null, ptr %6, align 8
%7 = load i32, ptr %4, align 4
%8 = icmp ne i32 %7, 2
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = load i32, ptr %4, align 4
%11 = call i32 (ptr, ...) @msg(ptr noundef @.str, i32 noundef %10)
br label %12
12: ; preds = %9, %2
%13 = call ptr @getenv(ptr noundef @.str.1)
store ptr %13, ptr %6, align 8
%14 = icmp ne ptr %13, null
br i1 %14, label %17, label %15
15: ; preds = %12
%16 = call i32 (ptr, ...) @msg(ptr noundef @.str.2)
br label %17
17: ; preds = %15, %12
%18 = call i64 @chmod(ptr noundef @.str.3, i32 noundef 493)
%19 = icmp slt i64 %18, 0
br i1 %19, label %20, label %22
20: ; preds = %17
%21 = call i32 (ptr, ...) @msg_errno(ptr noundef @.str.4)
br label %22
22: ; preds = %20, %17
%23 = load ptr, ptr %5, align 8
%24 = getelementptr inbounds ptr, ptr %23, i64 1
%25 = load ptr, ptr %24, align 8
%26 = call i64 @rename(ptr noundef %25, ptr noundef @.str.5)
%27 = icmp slt i64 %26, 0
br i1 %27, label %28, label %33
28: ; preds = %22
%29 = load ptr, ptr %5, align 8
%30 = getelementptr inbounds ptr, ptr %29, i64 1
%31 = load ptr, ptr %30, align 8
%32 = call i32 (ptr, ...) @msg_errno(ptr noundef @.str.6, ptr noundef %31, ptr noundef @.str.5)
br label %33
33: ; preds = %28, %22
%34 = call i64 @truncate(ptr noundef @.str.7, i32 noundef 0)
%35 = icmp slt i64 %34, 0
br i1 %35, label %36, label %38
36: ; preds = %33
%37 = call i32 (ptr, ...) @msg_errno(ptr noundef @.str.8, ptr noundef @.str.7)
br label %38
38: ; preds = %36, %33
%39 = call i64 @truncate(ptr noundef @.str.9, i32 noundef 0)
%40 = icmp slt i64 %39, 0
br i1 %40, label %41, label %43
41: ; preds = %38
%42 = call i32 (ptr, ...) @msg_errno(ptr noundef @.str.8, ptr noundef @.str.9)
br label %43
43: ; preds = %41, %38
%44 = call i64 @truncate(ptr noundef @.str.10, i32 noundef 0)
%45 = icmp slt i64 %44, 0
br i1 %45, label %46, label %48
46: ; preds = %43
%47 = call i32 (ptr, ...) @msg_errno(ptr noundef @.str.8, ptr noundef @.str.10)
br label %48
48: ; preds = %46, %43
%49 = call i64 @chmod(ptr noundef @.str.3, i32 noundef 365)
%50 = icmp slt i64 %49, 0
br i1 %50, label %51, label %53
51: ; preds = %48
%52 = call i32 (ptr, ...) @msg_errno(ptr noundef @.str.11)
br label %53
53: ; preds = %51, %48
%54 = load ptr, ptr %6, align 8
%55 = load ptr, ptr %6, align 8
%56 = call i32 @execl(ptr noundef %54, ptr noundef %55, ptr noundef @.str.12, ptr noundef @.str.13, ptr noundef null)
%57 = load ptr, ptr %6, align 8
%58 = call i32 (ptr, ...) @msg_errno(ptr noundef @.str.14, ptr noundef %57)
%59 = load i32, ptr %3, align 4
ret i32 %59
}
declare i32 @msg(ptr noundef, ...) #1
declare ptr @getenv(ptr noundef) #1
declare i64 @chmod(ptr noundef, i32 noundef) #1
declare i32 @msg_errno(ptr noundef, ...) #1
declare i64 @rename(ptr noundef, ptr noundef) #1
declare i64 @truncate(ptr noundef, i32 noundef) #1
declare i32 @execl(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp8pfsiivn.c'
source_filename = "/tmp/tmp8pfsiivn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = call i32 (...) @ActivateLCDClock()
ret i32 0
}
declare i32 @ActivateLCDClock(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8pfsiivn.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = call i32 (...) @ActivateLCDClock()
ret i32 0
}
declare i32 @ActivateLCDClock(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpufndz5j2.c'
source_filename = "/tmp/tmpufndz5j2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"xxx\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@stdout = dso_local global ptr null, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = load i32, ptr %4, align 4
%9 = icmp sgt i32 %8, 1
br i1 %9, label %10, label %14
10: ; preds = %2
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds ptr, ptr %11, i64 1
%13 = load ptr, ptr %12, align 8
br label %15
14: ; preds = %2
br label %15
15: ; preds = %14, %10
%16 = phi ptr [ %13, %10 ], [ @.str, %14 ]
store ptr %16, ptr %6, align 8
%17 = call ptr @fdopen(i32 noundef 3, ptr noundef @.str.1)
store ptr %17, ptr %7, align 8
%18 = load ptr, ptr %7, align 8
%19 = icmp eq ptr %18, null
br i1 %19, label %20, label %22
20: ; preds = %15
%21 = call i32 @exit(i32 noundef 1) #3
unreachable
22: ; preds = %15
%23 = load ptr, ptr @stdout, align 8
%24 = call i64 @ferror(ptr noundef %23)
%25 = icmp ne i64 %24, 0
br i1 %25, label %38, label %26
26: ; preds = %22
%27 = load ptr, ptr @stdout, align 8
%28 = call i64 @fclose(ptr noundef %27)
%29 = icmp ne i64 %28, 0
br i1 %29, label %38, label %30
30: ; preds = %26
%31 = load ptr, ptr %7, align 8
%32 = call i64 @ferror(ptr noundef %31)
%33 = icmp ne i64 %32, 0
br i1 %33, label %38, label %34
34: ; preds = %30
%35 = load ptr, ptr %7, align 8
%36 = call i64 @fclose(ptr noundef %35)
%37 = icmp ne i64 %36, 0
br i1 %37, label %38, label %40
38: ; preds = %34, %30, %26, %22
%39 = call i32 @exit(i32 noundef 1) #3
unreachable
40: ; preds = %34
%41 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare ptr @fdopen(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @ferror(ptr noundef) #1
declare i64 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpufndz5j2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"xxx\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"w\00", align 1
@stdout = dso_local global ptr null, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca ptr, align 8
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = load i32, ptr %4, align 4
%9 = icmp sgt i32 %8, 1
br i1 %9, label %10, label %14
10: ; preds = %2
%11 = load ptr, ptr %5, align 8
%12 = getelementptr inbounds ptr, ptr %11, i64 1
%13 = load ptr, ptr %12, align 8
br label %15
14: ; preds = %2
br label %15
15: ; preds = %14, %10
%16 = phi ptr [ %13, %10 ], [ @.str, %14 ]
store ptr %16, ptr %6, align 8
%17 = call ptr @fdopen(i32 noundef 3, ptr noundef @.str.1)
store ptr %17, ptr %7, align 8
%18 = load ptr, ptr %7, align 8
%19 = icmp eq ptr %18, null
br i1 %19, label %20, label %22
20: ; preds = %15
%21 = call i32 @exit(i32 noundef 1) #3
unreachable
22: ; preds = %15
%23 = load ptr, ptr @stdout, align 8
%24 = call i64 @ferror(ptr noundef %23)
%25 = icmp ne i64 %24, 0
br i1 %25, label %38, label %26
26: ; preds = %22
%27 = load ptr, ptr @stdout, align 8
%28 = call i64 @fclose(ptr noundef %27)
%29 = icmp ne i64 %28, 0
br i1 %29, label %38, label %30
30: ; preds = %26
%31 = load ptr, ptr %7, align 8
%32 = call i64 @ferror(ptr noundef %31)
%33 = icmp ne i64 %32, 0
br i1 %33, label %38, label %34
34: ; preds = %30
%35 = load ptr, ptr %7, align 8
%36 = call i64 @fclose(ptr noundef %35)
%37 = icmp ne i64 %36, 0
br i1 %37, label %38, label %40
38: ; preds = %34, %30, %26, %22
%39 = call i32 @exit(i32 noundef 1) #3
unreachable
40: ; preds = %34
%41 = call i32 @exit(i32 noundef 0) #3
unreachable
}
declare ptr @fdopen(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i64 @ferror(ptr noundef) #1
declare i64 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpibkyvdia.c'
source_filename = "/tmp/tmpibkyvdia.c"
target datalayout = "e-m:e-p270: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/tmpibkyvdia.c"
target datalayout = "e-m:e-p270: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/tmpw5w1_jje.c'
source_filename = "/tmp/tmpw5w1_jje.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ioGetSecureUserDirectory() #0 {
%1 = call i64 @success(i32 noundef 0)
%2 = inttoptr i64 %1 to ptr
ret ptr %2
}
declare i64 @success(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/tmpw5w1_jje.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @ioGetSecureUserDirectory() #0 {
%1 = call i64 @success(i32 noundef 0)
%2 = inttoptr i64 %1 to ptr
ret ptr %2
}
declare i64 @success(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/tmpax4muaf9.c'
source_filename = "/tmp/tmpax4muaf9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define weak dso_local void @FTM0_IRQHandler() #0 {
%1 = call i32 (...) @FTM0_DriverIRQHandler()
ret void
}
declare i32 @FTM0_DriverIRQHandler(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpax4muaf9.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define weak dso_local void @FTM0_IRQHandler() #0 {
%1 = call i32 (...) @FTM0_DriverIRQHandler()
ret void
}
declare i32 @FTM0_DriverIRQHandler(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpnhoxtr02.c'
source_filename = "/tmp/tmpnhoxtr02.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @is_palindrome_(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %9
8: ; preds = %1
store i32 0, ptr %2, align 4
br label %47
9: ; preds = %1
%10 = load ptr, ptr %3, align 8
%11 = call i32 @strlen_(ptr noundef %10)
%12 = icmp eq i32 %11, 1
br i1 %12, label %13, label %14
13: ; preds = %9
store i32 1, ptr %2, align 4
br label %47
14: ; preds = %9
%15 = load ptr, ptr %3, align 8
store ptr %15, ptr %4, align 8
%16 = load ptr, ptr %3, align 8
%17 = load ptr, ptr %3, align 8
%18 = call i32 @strlen_(ptr noundef %17)
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8, ptr %16, i64 %19
%21 = getelementptr inbounds i8, ptr %20, i64 -1
store ptr %21, ptr %5, align 8
br label %22
22: ; preds = %36, %14
%23 = load ptr, ptr %4, align 8
%24 = load i8, ptr %23, align 1
%25 = sext i8 %24 to i32
%26 = load ptr, ptr %5, align 8
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = icmp eq i32 %25, %28
br i1 %29, label %30, label %34
30: ; preds = %22
%31 = load ptr, ptr %4, align 8
%32 = load ptr, ptr %5, align 8
%33 = icmp ult ptr %31, %32
br label %34
34: ; preds = %30, %22
%35 = phi i1 [ false, %22 ], [ %33, %30 ]
br i1 %35, label %36, label %41
36: ; preds = %34
%37 = load ptr, ptr %4, align 8
%38 = getelementptr inbounds i8, ptr %37, i32 1
store ptr %38, ptr %4, align 8
%39 = load ptr, ptr %5, align 8
%40 = getelementptr inbounds i8, ptr %39, i32 -1
store ptr %40, ptr %5, align 8
br label %22, !llvm.loop !6
41: ; preds = %34
%42 = load ptr, ptr %4, align 8
%43 = load ptr, ptr %5, align 8
%44 = icmp ult ptr %42, %43
br i1 %44, label %45, label %46
45: ; preds = %41
store i32 0, ptr %2, align 4
br label %47
46: ; preds = %41
store i32 1, ptr %2, align 4
br label %47
47: ; preds = %46, %45, %13, %8
%48 = load i32, ptr %2, align 4
ret i32 %48
}
declare i32 @strlen_(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpnhoxtr02.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @is_palindrome_(ptr noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%6 = load ptr, ptr %3, align 8
%7 = icmp eq ptr %6, null
br i1 %7, label %8, label %9
8: ; preds = %1
store i32 0, ptr %2, align 4
br label %47
9: ; preds = %1
%10 = load ptr, ptr %3, align 8
%11 = call i32 @strlen_(ptr noundef %10)
%12 = icmp eq i32 %11, 1
br i1 %12, label %13, label %14
13: ; preds = %9
store i32 1, ptr %2, align 4
br label %47
14: ; preds = %9
%15 = load ptr, ptr %3, align 8
store ptr %15, ptr %4, align 8
%16 = load ptr, ptr %3, align 8
%17 = load ptr, ptr %3, align 8
%18 = call i32 @strlen_(ptr noundef %17)
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8, ptr %16, i64 %19
%21 = getelementptr inbounds i8, ptr %20, i64 -1
store ptr %21, ptr %5, align 8
br label %22
22: ; preds = %36, %14
%23 = load ptr, ptr %4, align 8
%24 = load i8, ptr %23, align 1
%25 = sext i8 %24 to i32
%26 = load ptr, ptr %5, align 8
%27 = load i8, ptr %26, align 1
%28 = sext i8 %27 to i32
%29 = icmp eq i32 %25, %28
br i1 %29, label %30, label %34
30: ; preds = %22
%31 = load ptr, ptr %4, align 8
%32 = load ptr, ptr %5, align 8
%33 = icmp ult ptr %31, %32
br label %34
34: ; preds = %30, %22
%35 = phi i1 [ false, %22 ], [ %33, %30 ]
br i1 %35, label %36, label %41
36: ; preds = %34
%37 = load ptr, ptr %4, align 8
%38 = getelementptr inbounds i8, ptr %37, i32 1
store ptr %38, ptr %4, align 8
%39 = load ptr, ptr %5, align 8
%40 = getelementptr inbounds i8, ptr %39, i32 -1
store ptr %40, ptr %5, align 8
br label %22, !llvm.loop !6
41: ; preds = %34
%42 = load ptr, ptr %4, align 8
%43 = load ptr, ptr %5, align 8
%44 = icmp ult ptr %42, %43
br i1 %44, label %45, label %46
45: ; preds = %41
store i32 0, ptr %2, align 4
br label %47
46: ; preds = %41
store i32 1, ptr %2, align 4
br label %47
47: ; preds = %46, %45, %13, %8
%48 = load i32, ptr %2, align 4
ret i32 %48
}
declare i32 @strlen_(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp8tbugmid.c'
source_filename = "/tmp/tmp8tbugmid.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca [126 x [9 x i32]], align 16
%2 = getelementptr inbounds [126 x [9 x i32]], ptr %1, i64 0, i64 0
%3 = call i32 @subsInit(ptr noundef %2)
%4 = getelementptr inbounds [126 x [9 x i32]], ptr %1, i64 0, i64 0
%5 = call i32 @subsPretty(ptr noundef %4)
ret i32 0
}
declare i32 @subsInit(ptr noundef) #1
declare i32 @subsPretty(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp8tbugmid.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca [126 x [9 x i32]], align 16
%2 = getelementptr inbounds [126 x [9 x i32]], ptr %1, i64 0, i64 0
%3 = call i32 @subsInit(ptr noundef %2)
%4 = getelementptr inbounds [126 x [9 x i32]], ptr %1, i64 0, i64 0
%5 = call i32 @subsPretty(ptr noundef %4)
ret i32 0
}
declare i32 @subsInit(ptr noundef) #1
declare i32 @subsPretty(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxhy9t91_.c'
source_filename = "/tmp/tmpxhy9t91_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dot(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i8 noundef signext %4) #0 {
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i8, align 1
store i32 %0, ptr %6, align 4
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
store i8 %4, ptr %10, align 1
%11 = load i32, ptr %6, align 4
%12 = load i32, ptr %7, align 4
%13 = call i32 @point(i32 noundef %11, i32 noundef %12)
ret i32 0
}
declare i32 @point(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/tmpxhy9t91_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @dot(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i8 noundef signext %4) #0 {
%6 = alloca i32, align 4
%7 = alloca i32, align 4
%8 = alloca i32, align 4
%9 = alloca i32, align 4
%10 = alloca i8, align 1
store i32 %0, ptr %6, align 4
store i32 %1, ptr %7, align 4
store i32 %2, ptr %8, align 4
store i32 %3, ptr %9, align 4
store i8 %4, ptr %10, align 1
%11 = load i32, ptr %6, align 4
%12 = load i32, ptr %7, align 4
%13 = call i32 @point(i32 noundef %11, i32 noundef %12)
ret i32 0
}
declare i32 @point(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/tmppguell7i.c'
source_filename = "/tmp/tmppguell7i.c"
target datalayout = "e-m:e-p270: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/tmppguell7i.c"
target datalayout = "e-m:e-p270: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/tmp3x1r4ett.c'
source_filename = "/tmp/tmp3x1r4ett.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_NTNShiftR() #0 {
%1 = call i32 @nTNShift(i32 noundef 1)
ret void
}
declare i32 @nTNShift(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/tmp3x1r4ett.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_NTNShiftR() #0 {
%1 = call i32 @nTNShift(i32 noundef 1)
ret void
}
declare i32 @nTNShift(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp_zfaihhj.c'
source_filename = "/tmp/tmp_zfaihhj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"pagesize\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [57 x i8] c"Page size must be a power of two between 512 and 65536.\0A\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"Unknown option: %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [44 x i8] c"Already using a different input file: [%s]\0A\00", align 1
@.str.4 = private unnamed_addr constant [26 x i8] c"No input file specified.\0A\00", align 1
@.str.5 = private unnamed_addr constant [35 x i8] c"Usage: %s [--pagesize N] FILENAME\0A\00", align 1
@.str.6 = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@.str.7 = private unnamed_addr constant [29 x i8] c"Cannot open input file [%s]\0A\00", align 1
@SEEK_END = dso_local global i32 0, align 4
@.str.8 = private unnamed_addr constant [44 x i8] c"File too short. Minimum size is 100 bytes.\0A\00", align 1
@.str.9 = private unnamed_addr constant [25 x i8] c"Cannot read file header\0A\00", align 1
@.str.10 = private unnamed_addr constant [33 x i8] c"Invalid page size in header: %d\0A\00", align 1
@.str.11 = private unnamed_addr constant [35 x i8] c"| size %d pagesize %d filename %s\0A\00", align 1
@main.once = internal global i32 1, align 4
@.str.12 = private unnamed_addr constant [47 x i8] c"Could not read input file starting at byte %d\0A\00", align 1
@.str.13 = private unnamed_addr constant [21 x i8] c"| page %d offset %d\0A\00", align 1
@.str.14 = private unnamed_addr constant [8 x i8] c"| %5d:\00", align 1
@.str.15 = private unnamed_addr constant [6 x i8] c" %02x\00", align 1
@.str.16 = private unnamed_addr constant [4 x i8] c" \00", align 1
@stdout = dso_local global i32 0, align 4
@.str.17 = private unnamed_addr constant [10 x i8] c"| end %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca [16 x i8], align 16
%17 = alloca [100 x i8], align 16
%18 = alloca [256 x i8], align 16
%19 = alloca ptr, align 8
%20 = alloca i32, align 4
%21 = alloca i8, align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
store i32 0, ptr %11, align 4
store ptr null, ptr %12, align 8
store ptr null, ptr %13, align 8
store i32 0, ptr %14, align 4
%22 = getelementptr inbounds [256 x i8], ptr %18, i64 0, i64 0
%23 = call i32 @memset(ptr noundef %22, i8 noundef signext 46, i32 noundef 256)
store i32 32, ptr %9, align 4
br label %24
24: ; preds = %46, %2
%25 = load i32, ptr %9, align 4
%26 = icmp sle i32 %25, 126
br i1 %26, label %27, label %49
27: ; preds = %24
%28 = load i32, ptr %9, align 4
%29 = icmp ne i32 %28, 123
br i1 %29, label %30, label %45
30: ; preds = %27
%31 = load i32, ptr %9, align 4
%32 = icmp ne i32 %31, 125
br i1 %32, label %33, label %45
33: ; preds = %30
%34 = load i32, ptr %9, align 4
%35 = icmp ne i32 %34, 34
br i1 %35, label %36, label %45
36: ; preds = %33
%37 = load i32, ptr %9, align 4
%38 = icmp ne i32 %37, 92
br i1 %38, label %39, label %45
39: ; preds = %36
%40 = load i32, ptr %9, align 4
%41 = trunc i32 %40 to i8
%42 = load i32, ptr %9, align 4
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds [256 x i8], ptr %18, i64 0, i64 %43
store i8 %41, ptr %44, align 1
br label %45
45: ; preds = %39, %36, %33, %30, %27
br label %46
46: ; preds = %45
%47 = load i32, ptr %9, align 4
%48 = add nsw i32 %47, 1
store i32 %48, ptr %9, align 4
br label %24, !llvm.loop !6
49: ; preds = %24
store i32 1, ptr %9, align 4
br label %50
50: ; preds = %141, %49
%51 = load i32, ptr %9, align 4
%52 = load i32, ptr %4, align 4
%53 = icmp slt i32 %51, %52
br i1 %53, label %54, label %144
54: ; preds = %50
%55 = load ptr, ptr %5, align 8
%56 = load i32, ptr %9, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds ptr, ptr %55, i64 %57
%59 = load ptr, ptr %58, align 8
%60 = getelementptr inbounds i8, ptr %59, i64 0
%61 = load i8, ptr %60, align 1
%62 = sext i8 %61 to i32
%63 = icmp eq i32 %62, 45
br i1 %63, label %64, label %120
64: ; preds = %54
%65 = load ptr, ptr %5, align 8
%66 = load i32, ptr %9, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds ptr, ptr %65, i64 %67
%69 = load ptr, ptr %68, align 8
store ptr %69, ptr %19, align 8
%70 = load ptr, ptr %19, align 8
%71 = getelementptr inbounds i8, ptr %70, i32 1
store ptr %71, ptr %19, align 8
%72 = load ptr, ptr %19, align 8
%73 = getelementptr inbounds i8, ptr %72, i64 0
%74 = load i8, ptr %73, align 1
%75 = sext i8 %74 to i32
%76 = icmp eq i32 %75, 45
br i1 %76, label %77, label %80
77: ; preds = %64
%78 = load ptr, ptr %19, align 8
%79 = getelementptr inbounds i8, ptr %78, i32 1
store ptr %79, ptr %19, align 8
br label %80
80: ; preds = %77, %64
%81 = load ptr, ptr %19, align 8
%82 = call i64 @strcmp(ptr noundef %81, ptr noundef @.str)
%83 = icmp eq i64 %82, 0
br i1 %83, label %84, label %110
84: ; preds = %80
%85 = load i32, ptr %9, align 4
%86 = add nsw i32 %85, 1
store i32 %86, ptr %9, align 4
%87 = load ptr, ptr %5, align 8
%88 = load i32, ptr %9, align 4
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds ptr, ptr %87, i64 %89
%91 = load ptr, ptr %90, align 8
%92 = call i32 @atoi(ptr noundef %91)
store i32 %92, ptr %6, align 4
%93 = load i32, ptr %6, align 4
%94 = icmp slt i32 %93, 512
br i1 %94, label %104, label %95
95: ; preds = %84
%96 = load i32, ptr %6, align 4
%97 = icmp sgt i32 %96, 65536
br i1 %97, label %104, label %98
98: ; preds = %95
%99 = load i32, ptr %6, align 4
%100 = load i32, ptr %6, align 4
%101 = sub nsw i32 %100, 1
%102 = and i32 %99, %101
%103 = icmp ne i32 %102, 0
br i1 %103, label %104, label %109
104: ; preds = %98, %95, %84
%105 = load i32, ptr @stderr, align 4
%106 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %105, ptr noundef @.str.1)
%107 = load i32, ptr %11, align 4
%108 = add nsw i32 %107, 1
store i32 %108, ptr %11, align 4
br label %109
109: ; preds = %104, %98
br label %141
110: ; preds = %80
%111 = load i32, ptr @stderr, align 4
%112 = load ptr, ptr %5, align 8
%113 = load i32, ptr %9, align 4
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds ptr, ptr %112, i64 %114
%116 = load ptr, ptr %115, align 8
%117 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %111, ptr noundef @.str.2, ptr noundef %116)
%118 = load i32, ptr %11, align 4
%119 = add nsw i32 %118, 1
store i32 %119, ptr %11, align 4
br label %140
120: ; preds = %54
%121 = load ptr, ptr %12, align 8
%122 = icmp ne ptr %121, null
br i1 %122, label %123, label %133
123: ; preds = %120
%124 = load i32, ptr @stderr, align 4
%125 = load ptr, ptr %5, align 8
%126 = load i32, ptr %9, align 4
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds ptr, ptr %125, i64 %127
%129 = load ptr, ptr %128, align 8
%130 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %124, ptr noundef @.str.3, ptr noundef %129)
%131 = load i32, ptr %11, align 4
%132 = add nsw i32 %131, 1
store i32 %132, ptr %11, align 4
br label %139
133: ; preds = %120
%134 = load ptr, ptr %5, align 8
%135 = load i32, ptr %9, align 4
%136 = sext i32 %135 to i64
%137 = getelementptr inbounds ptr, ptr %134, i64 %136
%138 = load ptr, ptr %137, align 8
store ptr %138, ptr %12, align 8
br label %139
139: ; preds = %133, %123
br label %140
140: ; preds = %139, %110
br label %141
141: ; preds = %140, %109
%142 = load i32, ptr %9, align 4
%143 = add nsw i32 %142, 1
store i32 %143, ptr %9, align 4
br label %50, !llvm.loop !8
144: ; preds = %50
%145 = load ptr, ptr %12, align 8
%146 = icmp eq ptr %145, null
br i1 %146, label %147, label %152
147: ; preds = %144
%148 = load i32, ptr @stderr, align 4
%149 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %148, ptr noundef @.str.4)
%150 = load i32, ptr %11, align 4
%151 = add nsw i32 %150, 1
store i32 %151, ptr %11, align 4
br label %152
152: ; preds = %147, %144
%153 = load i32, ptr %11, align 4
%154 = icmp ne i32 %153, 0
br i1 %154, label %155, label %162
155: ; preds = %152
%156 = load i32, ptr @stderr, align 4
%157 = load ptr, ptr %5, align 8
%158 = getelementptr inbounds ptr, ptr %157, i64 0
%159 = load ptr, ptr %158, align 8
%160 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %156, ptr noundef @.str.5, ptr noundef %159)
%161 = call i32 @exit(i32 noundef 1) #3
unreachable
162: ; preds = %152
%163 = load ptr, ptr %12, align 8
%164 = call ptr @fopen(ptr noundef %163, ptr noundef @.str.6)
store ptr %164, ptr %8, align 8
%165 = load ptr, ptr %8, align 8
%166 = icmp eq ptr %165, null
br i1 %166, label %167, label %172
167: ; preds = %162
%168 = load i32, ptr @stderr, align 4
%169 = load ptr, ptr %12, align 8
%170 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %168, ptr noundef @.str.7, ptr noundef %169)
%171 = call i32 @exit(i32 noundef 1) #3
unreachable
172: ; preds = %162
%173 = load ptr, ptr %8, align 8
%174 = load i32, ptr @SEEK_END, align 4
%175 = call i32 @fseek(ptr noundef %173, i32 noundef 0, i32 noundef %174)
%176 = load ptr, ptr %8, align 8
%177 = call i64 @ftell(ptr noundef %176)
store i64 %177, ptr %7, align 8
%178 = load ptr, ptr %8, align 8
%179 = call i32 @rewind(ptr noundef %178)
%180 = load i64, ptr %7, align 8
%181 = icmp slt i64 %180, 100
br i1 %181, label %182, label %186
182: ; preds = %172
%183 = load i32, ptr @stderr, align 4
%184 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %183, ptr noundef @.str.8)
%185 = call i32 @exit(i32 noundef 1) #3
unreachable
186: ; preds = %172
%187 = getelementptr inbounds [100 x i8], ptr %17, i64 0, i64 0
%188 = load ptr, ptr %8, align 8
%189 = call i32 @fread(ptr noundef %187, i32 noundef 100, i32 noundef 1, ptr noundef %188)
%190 = icmp ne i32 %189, 1
br i1 %190, label %191, label %195
191: ; preds = %186
%192 = load i32, ptr @stderr, align 4
%193 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %192, ptr noundef @.str.9)
%194 = call i32 @exit(i32 noundef 1) #3
unreachable
195: ; preds = %186
%196 = load ptr, ptr %8, align 8
%197 = call i32 @rewind(ptr noundef %196)
%198 = load i32, ptr %6, align 4
%199 = icmp eq i32 %198, 0
br i1 %199, label %200, label %227
200: ; preds = %195
%201 = getelementptr inbounds [100 x i8], ptr %17, i64 0, i64 16
%202 = load i8, ptr %201, align 16
%203 = zext i8 %202 to i32
%204 = shl i32 %203, 8
%205 = getelementptr inbounds [100 x i8], ptr %17, i64 0, i64 17
%206 = load i8, ptr %205, align 1
%207 = zext i8 %206 to i32
%208 = or i32 %204, %207
store i32 %208, ptr %6, align 4
%209 = load i32, ptr %6, align 4
%210 = icmp eq i32 %209, 1
br i1 %210, label %211, label %212
211: ; preds = %200
store i32 65536, ptr %6, align 4
br label %212
212: ; preds = %211, %200
%213 = load i32, ptr %6, align 4
%214 = icmp slt i32 %213, 512
br i1 %214, label %221, label %215
215: ; preds = %212
%216 = load i32, ptr %6, align 4
%217 = load i32, ptr %6, align 4
%218 = sub nsw i32 %217, 1
%219 = and i32 %216, %218
%220 = icmp ne i32 %219, 0
br i1 %220, label %221, label %226
221: ; preds = %215, %212
%222 = load i32, ptr @stderr, align 4
%223 = load i32, ptr %6, align 4
%224 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %222, ptr noundef @.str.10, i32 noundef %223)
%225 = call i32 @exit(i32 noundef 1) #3
unreachable
226: ; preds = %215
br label %227
227: ; preds = %226, %195
%228 = load ptr, ptr %12, align 8
store ptr %228, ptr %13, align 8
store i32 0, ptr %9, align 4
br label %229
229: ; preds = %260, %227
%230 = load ptr, ptr %12, align 8
%231 = load i32, ptr %9, align 4
%232 = sext i32 %231 to i64
%233 = getelementptr inbounds i8, ptr %230, i64 %232
%234 = load i8, ptr %233, align 1
%235 = icmp ne i8 %234, 0
br i1 %235, label %236, label %263
236: ; preds = %229
%237 = load ptr, ptr %12, align 8
%238 = load i32, ptr %9, align 4
%239 = sext i32 %238 to i64
%240 = getelementptr inbounds i8, ptr %237, i64 %239
%241 = load i8, ptr %240, align 1
%242 = sext i8 %241 to i32
%243 = icmp eq i32 %242, 47
br i1 %243, label %244, label %259
244: ; preds = %236
%245 = load ptr, ptr %12, align 8
%246 = load i32, ptr %9, align 4
%247 = add nsw i32 %246, 1
%248 = sext i32 %247 to i64
%249 = getelementptr inbounds i8, ptr %245, i64 %248
%250 = load i8, ptr %249, align 1
%251 = sext i8 %250 to i32
%252 = icmp ne i32 %251, 0
br i1 %252, label %253, label %259
253: ; preds = %244
%254 = load ptr, ptr %12, align 8
%255 = load i32, ptr %9, align 4
%256 = sext i32 %255 to i64
%257 = getelementptr inbounds i8, ptr %254, i64 %256
%258 = getelementptr inbounds i8, ptr %257, i64 1
store ptr %258, ptr %13, align 8
br label %259
259: ; preds = %253, %244, %236
br label %260
260: ; preds = %259
%261 = load i32, ptr %9, align 4
%262 = add nsw i32 %261, 1
store i32 %262, ptr %9, align 4
br label %229, !llvm.loop !9
263: ; preds = %229
%264 = load i64, ptr %7, align 8
%265 = trunc i64 %264 to i32
%266 = load i32, ptr %6, align 4
%267 = load ptr, ptr %13, align 8
%268 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef %265, i32 noundef %266, ptr noundef %267)
store i32 0, ptr %9, align 4
br label %269
269: ; preds = %361, %263
%270 = load i32, ptr %9, align 4
%271 = sext i32 %270 to i64
%272 = load i64, ptr %7, align 8
%273 = icmp slt i64 %271, %272
br i1 %273, label %274, label %364
274: ; preds = %269
%275 = getelementptr inbounds [16 x i8], ptr %16, i64 0, i64 0
%276 = load ptr, ptr %8, align 8
%277 = call i32 @fread(ptr noundef %275, i32 noundef 1, i32 noundef 16, ptr noundef %276)
store i32 %277, ptr %20, align 4
%278 = load i32, ptr %20, align 4
%279 = icmp ne i32 %278, 16
br i1 %279, label %280, label %297
280: ; preds = %274
%281 = load i32, ptr @main.once, align 4
%282 = icmp ne i32 %281, 0
br i1 %282, label %283, label %289
283: ; preds = %280
%284 = load i32, ptr @stderr, align 4
%285 = load i32, ptr %9, align 4
%286 = load i32, ptr %20, align 4
%287 = add nsw i32 %285, %286
%288 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %284, ptr noundef @.str.12, i32 noundef %287)
br label %289
289: ; preds = %283, %280
%290 = getelementptr inbounds [16 x i8], ptr %16, i64 0, i64 0
%291 = load i32, ptr %20, align 4
%292 = sext i32 %291 to i64
%293 = getelementptr inbounds i8, ptr %290, i64 %292
%294 = load i32, ptr %20, align 4
%295 = sub nsw i32 16, %294
%296 = call i32 @memset(ptr noundef %293, i8 noundef signext 0, i32 noundef %295)
br label %297
297: ; preds = %289, %274
%298 = getelementptr inbounds [16 x i8], ptr %16, i64 0, i64 0
%299 = call i64 @allZero(ptr noundef %298)
%300 = icmp ne i64 %299, 0
br i1 %300, label %301, label %302
301: ; preds = %297
br label %361
302: ; preds = %297
%303 = load i32, ptr %9, align 4
%304 = load i32, ptr %6, align 4
%305 = sdiv i32 %303, %304
%306 = add nsw i32 %305, 1
store i32 %306, ptr %15, align 4
%307 = load i32, ptr %14, align 4
%308 = load i32, ptr %15, align 4
%309 = icmp ne i32 %307, %308
br i1 %309, label %310, label %318
310: ; preds = %302
%311 = load i32, ptr %15, align 4
%312 = load i32, ptr %15, align 4
%313 = sub nsw i32 %312, 1
%314 = load i32, ptr %6, align 4
%315 = mul nsw i32 %313, %314
%316 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, i32 noundef %311, i32 noundef %315)
%317 = load i32, ptr %15, align 4
store i32 %317, ptr %14, align 4
br label %318
318: ; preds = %310, %302
%319 = load i32, ptr %9, align 4
%320 = load i32, ptr %15, align 4
%321 = sub nsw i32 %320, 1
%322 = load i32, ptr %6, align 4
%323 = mul nsw i32 %321, %322
%324 = sub nsw i32 %319, %323
%325 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i32 noundef %324)
store i32 0, ptr %10, align 4
br label %326
326: ; preds = %336, %318
%327 = load i32, ptr %10, align 4
%328 = icmp slt i32 %327, 16
br i1 %328, label %329, label %339
329: ; preds = %326
%330 = load i32, ptr %10, align 4
%331 = sext i32 %330 to i64
%332 = getelementptr inbounds [16 x i8], ptr %16, i64 0, i64 %331
%333 = load i8, ptr %332, align 1
%334 = zext i8 %333 to i32
%335 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef %334)
br label %336
336: ; preds = %329
%337 = load i32, ptr %10, align 4
%338 = add nsw i32 %337, 1
store i32 %338, ptr %10, align 4
br label %326, !llvm.loop !10
339: ; preds = %326
%340 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
store i32 0, ptr %10, align 4
br label %341
341: ; preds = %355, %339
%342 = load i32, ptr %10, align 4
%343 = icmp slt i32 %342, 16
br i1 %343, label %344, label %358
344: ; preds = %341
%345 = load i32, ptr %10, align 4
%346 = sext i32 %345 to i64
%347 = getelementptr inbounds [16 x i8], ptr %16, i64 0, i64 %346
%348 = load i8, ptr %347, align 1
store i8 %348, ptr %21, align 1
%349 = load i8, ptr %21, align 1
%350 = zext i8 %349 to i64
%351 = getelementptr inbounds [256 x i8], ptr %18, i64 0, i64 %350
%352 = load i8, ptr %351, align 1
%353 = load i32, ptr @stdout, align 4
%354 = call i32 @fputc(i8 noundef signext %352, i32 noundef %353)
br label %355
355: ; preds = %344
%356 = load i32, ptr %10, align 4
%357 = add nsw i32 %356, 1
store i32 %357, ptr %10, align 4
br label %341, !llvm.loop !11
358: ; preds = %341
%359 = load i32, ptr @stdout, align 4
%360 = call i32 @fputc(i8 noundef signext 10, i32 noundef %359)
br label %361
361: ; preds = %358, %301
%362 = load i32, ptr %9, align 4
%363 = add nsw i32 %362, 16
store i32 %363, ptr %9, align 4
br label %269, !llvm.loop !12
364: ; preds = %269
%365 = load ptr, ptr %8, align 8
%366 = call i32 @fclose(ptr noundef %365)
%367 = load ptr, ptr %13, align 8
%368 = call i32 (ptr, ...) @printf(ptr noundef @.str.17, ptr noundef %367)
ret i32 0
}
declare i32 @memset(ptr noundef, i8 noundef signext, i32 noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @ftell(ptr noundef) #1
declare i32 @rewind(ptr noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i64 @allZero(ptr noundef) #1
declare i32 @fputc(i8 noundef signext, i32 noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp_zfaihhj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"pagesize\00", align 1
@stderr = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [57 x i8] c"Page size must be a power of two between 512 and 65536.\0A\00", align 1
@.str.2 = private unnamed_addr constant [20 x i8] c"Unknown option: %s\0A\00", align 1
@.str.3 = private unnamed_addr constant [44 x i8] c"Already using a different input file: [%s]\0A\00", align 1
@.str.4 = private unnamed_addr constant [26 x i8] c"No input file specified.\0A\00", align 1
@.str.5 = private unnamed_addr constant [35 x i8] c"Usage: %s [--pagesize N] FILENAME\0A\00", align 1
@.str.6 = private unnamed_addr constant [3 x i8] c"rb\00", align 1
@.str.7 = private unnamed_addr constant [29 x i8] c"Cannot open input file [%s]\0A\00", align 1
@SEEK_END = dso_local global i32 0, align 4
@.str.8 = private unnamed_addr constant [44 x i8] c"File too short. Minimum size is 100 bytes.\0A\00", align 1
@.str.9 = private unnamed_addr constant [25 x i8] c"Cannot read file header\0A\00", align 1
@.str.10 = private unnamed_addr constant [33 x i8] c"Invalid page size in header: %d\0A\00", align 1
@.str.11 = private unnamed_addr constant [35 x i8] c"| size %d pagesize %d filename %s\0A\00", align 1
@main.once = internal global i32 1, align 4
@.str.12 = private unnamed_addr constant [47 x i8] c"Could not read input file starting at byte %d\0A\00", align 1
@.str.13 = private unnamed_addr constant [21 x i8] c"| page %d offset %d\0A\00", align 1
@.str.14 = private unnamed_addr constant [8 x i8] c"| %5d:\00", align 1
@.str.15 = private unnamed_addr constant [6 x i8] c" %02x\00", align 1
@.str.16 = private unnamed_addr constant [4 x i8] c" \00", align 1
@stdout = dso_local global i32 0, align 4
@.str.17 = private unnamed_addr constant [10 x i8] c"| end %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i64, align 8
%8 = alloca ptr, align 8
%9 = alloca i32, align 4
%10 = alloca i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
%13 = alloca ptr, align 8
%14 = alloca i32, align 4
%15 = alloca i32, align 4
%16 = alloca [16 x i8], align 16
%17 = alloca [100 x i8], align 16
%18 = alloca [256 x i8], align 16
%19 = alloca ptr, align 8
%20 = alloca i32, align 4
%21 = alloca i8, align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
store i32 0, ptr %11, align 4
store ptr null, ptr %12, align 8
store ptr null, ptr %13, align 8
store i32 0, ptr %14, align 4
%22 = getelementptr inbounds [256 x i8], ptr %18, i64 0, i64 0
%23 = call i32 @memset(ptr noundef %22, i8 noundef signext 46, i32 noundef 256)
store i32 32, ptr %9, align 4
%24 = load i32, ptr %9, align 4
%25 = icmp sle i32 %24, 126
br i1 %25, label %.lr.ph, label %50
.lr.ph: ; preds = %2
br label %26
26: ; preds = %.lr.ph, %45
%27 = load i32, ptr %9, align 4
%28 = icmp ne i32 %27, 123
br i1 %28, label %29, label %44
29: ; preds = %26
%30 = load i32, ptr %9, align 4
%31 = icmp ne i32 %30, 125
br i1 %31, label %32, label %44
32: ; preds = %29
%33 = load i32, ptr %9, align 4
%34 = icmp ne i32 %33, 34
br i1 %34, label %35, label %44
35: ; preds = %32
%36 = load i32, ptr %9, align 4
%37 = icmp ne i32 %36, 92
br i1 %37, label %38, label %44
38: ; preds = %35
%39 = load i32, ptr %9, align 4
%40 = trunc i32 %39 to i8
%41 = load i32, ptr %9, align 4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [256 x i8], ptr %18, i64 0, i64 %42
store i8 %40, ptr %43, align 1
br label %44
44: ; preds = %38, %35, %32, %29, %26
br label %45
45: ; preds = %44
%46 = load i32, ptr %9, align 4
%47 = add nsw i32 %46, 1
store i32 %47, ptr %9, align 4
%48 = load i32, ptr %9, align 4
%49 = icmp sle i32 %48, 126
br i1 %49, label %26, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %45
br label %50
50: ; preds = %._crit_edge, %2
store i32 1, ptr %9, align 4
%51 = load i32, ptr %9, align 4
%52 = load i32, ptr %4, align 4
%53 = icmp slt i32 %51, %52
br i1 %53, label %.lr.ph2, label %147
.lr.ph2: ; preds = %50
br label %54
54: ; preds = %.lr.ph2, %141
%55 = load ptr, ptr %5, align 8
%56 = load i32, ptr %9, align 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds ptr, ptr %55, i64 %57
%59 = load ptr, ptr %58, align 8
%60 = getelementptr inbounds i8, ptr %59, i64 0
%61 = load i8, ptr %60, align 1
%62 = sext i8 %61 to i32
%63 = icmp eq i32 %62, 45
br i1 %63, label %64, label %120
64: ; preds = %54
%65 = load ptr, ptr %5, align 8
%66 = load i32, ptr %9, align 4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds ptr, ptr %65, i64 %67
%69 = load ptr, ptr %68, align 8
store ptr %69, ptr %19, align 8
%70 = load ptr, ptr %19, align 8
%71 = getelementptr inbounds i8, ptr %70, i32 1
store ptr %71, ptr %19, align 8
%72 = load ptr, ptr %19, align 8
%73 = getelementptr inbounds i8, ptr %72, i64 0
%74 = load i8, ptr %73, align 1
%75 = sext i8 %74 to i32
%76 = icmp eq i32 %75, 45
br i1 %76, label %77, label %80
77: ; preds = %64
%78 = load ptr, ptr %19, align 8
%79 = getelementptr inbounds i8, ptr %78, i32 1
store ptr %79, ptr %19, align 8
br label %80
80: ; preds = %77, %64
%81 = load ptr, ptr %19, align 8
%82 = call i64 @strcmp(ptr noundef %81, ptr noundef @.str)
%83 = icmp eq i64 %82, 0
br i1 %83, label %84, label %110
84: ; preds = %80
%85 = load i32, ptr %9, align 4
%86 = add nsw i32 %85, 1
store i32 %86, ptr %9, align 4
%87 = load ptr, ptr %5, align 8
%88 = load i32, ptr %9, align 4
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds ptr, ptr %87, i64 %89
%91 = load ptr, ptr %90, align 8
%92 = call i32 @atoi(ptr noundef %91)
store i32 %92, ptr %6, align 4
%93 = load i32, ptr %6, align 4
%94 = icmp slt i32 %93, 512
br i1 %94, label %104, label %95
95: ; preds = %84
%96 = load i32, ptr %6, align 4
%97 = icmp sgt i32 %96, 65536
br i1 %97, label %104, label %98
98: ; preds = %95
%99 = load i32, ptr %6, align 4
%100 = load i32, ptr %6, align 4
%101 = sub nsw i32 %100, 1
%102 = and i32 %99, %101
%103 = icmp ne i32 %102, 0
br i1 %103, label %104, label %109
104: ; preds = %98, %95, %84
%105 = load i32, ptr @stderr, align 4
%106 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %105, ptr noundef @.str.1)
%107 = load i32, ptr %11, align 4
%108 = add nsw i32 %107, 1
store i32 %108, ptr %11, align 4
br label %109
109: ; preds = %104, %98
br label %141
110: ; preds = %80
%111 = load i32, ptr @stderr, align 4
%112 = load ptr, ptr %5, align 8
%113 = load i32, ptr %9, align 4
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds ptr, ptr %112, i64 %114
%116 = load ptr, ptr %115, align 8
%117 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %111, ptr noundef @.str.2, ptr noundef %116)
%118 = load i32, ptr %11, align 4
%119 = add nsw i32 %118, 1
store i32 %119, ptr %11, align 4
br label %140
120: ; preds = %54
%121 = load ptr, ptr %12, align 8
%122 = icmp ne ptr %121, null
br i1 %122, label %123, label %133
123: ; preds = %120
%124 = load i32, ptr @stderr, align 4
%125 = load ptr, ptr %5, align 8
%126 = load i32, ptr %9, align 4
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds ptr, ptr %125, i64 %127
%129 = load ptr, ptr %128, align 8
%130 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %124, ptr noundef @.str.3, ptr noundef %129)
%131 = load i32, ptr %11, align 4
%132 = add nsw i32 %131, 1
store i32 %132, ptr %11, align 4
br label %139
133: ; preds = %120
%134 = load ptr, ptr %5, align 8
%135 = load i32, ptr %9, align 4
%136 = sext i32 %135 to i64
%137 = getelementptr inbounds ptr, ptr %134, i64 %136
%138 = load ptr, ptr %137, align 8
store ptr %138, ptr %12, align 8
br label %139
139: ; preds = %133, %123
br label %140
140: ; preds = %139, %110
br label %141
141: ; preds = %140, %109
%142 = load i32, ptr %9, align 4
%143 = add nsw i32 %142, 1
store i32 %143, ptr %9, align 4
%144 = load i32, ptr %9, align 4
%145 = load i32, ptr %4, align 4
%146 = icmp slt i32 %144, %145
br i1 %146, label %54, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %141
br label %147
147: ; preds = %._crit_edge3, %50
%148 = load ptr, ptr %12, align 8
%149 = icmp eq ptr %148, null
br i1 %149, label %150, label %155
150: ; preds = %147
%151 = load i32, ptr @stderr, align 4
%152 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %151, ptr noundef @.str.4)
%153 = load i32, ptr %11, align 4
%154 = add nsw i32 %153, 1
store i32 %154, ptr %11, align 4
br label %155
155: ; preds = %150, %147
%156 = load i32, ptr %11, align 4
%157 = icmp ne i32 %156, 0
br i1 %157, label %158, label %165
158: ; preds = %155
%159 = load i32, ptr @stderr, align 4
%160 = load ptr, ptr %5, align 8
%161 = getelementptr inbounds ptr, ptr %160, i64 0
%162 = load ptr, ptr %161, align 8
%163 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %159, ptr noundef @.str.5, ptr noundef %162)
%164 = call i32 @exit(i32 noundef 1) #3
unreachable
165: ; preds = %155
%166 = load ptr, ptr %12, align 8
%167 = call ptr @fopen(ptr noundef %166, ptr noundef @.str.6)
store ptr %167, ptr %8, align 8
%168 = load ptr, ptr %8, align 8
%169 = icmp eq ptr %168, null
br i1 %169, label %170, label %175
170: ; preds = %165
%171 = load i32, ptr @stderr, align 4
%172 = load ptr, ptr %12, align 8
%173 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %171, ptr noundef @.str.7, ptr noundef %172)
%174 = call i32 @exit(i32 noundef 1) #3
unreachable
175: ; preds = %165
%176 = load ptr, ptr %8, align 8
%177 = load i32, ptr @SEEK_END, align 4
%178 = call i32 @fseek(ptr noundef %176, i32 noundef 0, i32 noundef %177)
%179 = load ptr, ptr %8, align 8
%180 = call i64 @ftell(ptr noundef %179)
store i64 %180, ptr %7, align 8
%181 = load ptr, ptr %8, align 8
%182 = call i32 @rewind(ptr noundef %181)
%183 = load i64, ptr %7, align 8
%184 = icmp slt i64 %183, 100
br i1 %184, label %185, label %189
185: ; preds = %175
%186 = load i32, ptr @stderr, align 4
%187 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %186, ptr noundef @.str.8)
%188 = call i32 @exit(i32 noundef 1) #3
unreachable
189: ; preds = %175
%190 = getelementptr inbounds [100 x i8], ptr %17, i64 0, i64 0
%191 = load ptr, ptr %8, align 8
%192 = call i32 @fread(ptr noundef %190, i32 noundef 100, i32 noundef 1, ptr noundef %191)
%193 = icmp ne i32 %192, 1
br i1 %193, label %194, label %198
194: ; preds = %189
%195 = load i32, ptr @stderr, align 4
%196 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %195, ptr noundef @.str.9)
%197 = call i32 @exit(i32 noundef 1) #3
unreachable
198: ; preds = %189
%199 = load ptr, ptr %8, align 8
%200 = call i32 @rewind(ptr noundef %199)
%201 = load i32, ptr %6, align 4
%202 = icmp eq i32 %201, 0
br i1 %202, label %203, label %230
203: ; preds = %198
%204 = getelementptr inbounds [100 x i8], ptr %17, i64 0, i64 16
%205 = load i8, ptr %204, align 16
%206 = zext i8 %205 to i32
%207 = shl i32 %206, 8
%208 = getelementptr inbounds [100 x i8], ptr %17, i64 0, i64 17
%209 = load i8, ptr %208, align 1
%210 = zext i8 %209 to i32
%211 = or i32 %207, %210
store i32 %211, ptr %6, align 4
%212 = load i32, ptr %6, align 4
%213 = icmp eq i32 %212, 1
br i1 %213, label %214, label %215
214: ; preds = %203
store i32 65536, ptr %6, align 4
br label %215
215: ; preds = %214, %203
%216 = load i32, ptr %6, align 4
%217 = icmp slt i32 %216, 512
br i1 %217, label %224, label %218
218: ; preds = %215
%219 = load i32, ptr %6, align 4
%220 = load i32, ptr %6, align 4
%221 = sub nsw i32 %220, 1
%222 = and i32 %219, %221
%223 = icmp ne i32 %222, 0
br i1 %223, label %224, label %229
224: ; preds = %218, %215
%225 = load i32, ptr @stderr, align 4
%226 = load i32, ptr %6, align 4
%227 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %225, ptr noundef @.str.10, i32 noundef %226)
%228 = call i32 @exit(i32 noundef 1) #3
unreachable
229: ; preds = %218
br label %230
230: ; preds = %229, %198
%231 = load ptr, ptr %12, align 8
store ptr %231, ptr %13, align 8
store i32 0, ptr %9, align 4
%232 = load ptr, ptr %12, align 8
%233 = load i32, ptr %9, align 4
%234 = sext i32 %233 to i64
%235 = getelementptr inbounds i8, ptr %232, i64 %234
%236 = load i8, ptr %235, align 1
%237 = icmp ne i8 %236, 0
br i1 %237, label %.lr.ph5, label %271
.lr.ph5: ; preds = %230
br label %238
238: ; preds = %.lr.ph5, %262
%239 = load ptr, ptr %12, align 8
%240 = load i32, ptr %9, align 4
%241 = sext i32 %240 to i64
%242 = getelementptr inbounds i8, ptr %239, i64 %241
%243 = load i8, ptr %242, align 1
%244 = sext i8 %243 to i32
%245 = icmp eq i32 %244, 47
br i1 %245, label %246, label %261
246: ; preds = %238
%247 = load ptr, ptr %12, align 8
%248 = load i32, ptr %9, align 4
%249 = add nsw i32 %248, 1
%250 = sext i32 %249 to i64
%251 = getelementptr inbounds i8, ptr %247, i64 %250
%252 = load i8, ptr %251, align 1
%253 = sext i8 %252 to i32
%254 = icmp ne i32 %253, 0
br i1 %254, label %255, label %261
255: ; preds = %246
%256 = load ptr, ptr %12, align 8
%257 = load i32, ptr %9, align 4
%258 = sext i32 %257 to i64
%259 = getelementptr inbounds i8, ptr %256, i64 %258
%260 = getelementptr inbounds i8, ptr %259, i64 1
store ptr %260, ptr %13, align 8
br label %261
261: ; preds = %255, %246, %238
br label %262
262: ; preds = %261
%263 = load i32, ptr %9, align 4
%264 = add nsw i32 %263, 1
store i32 %264, ptr %9, align 4
%265 = load ptr, ptr %12, align 8
%266 = load i32, ptr %9, align 4
%267 = sext i32 %266 to i64
%268 = getelementptr inbounds i8, ptr %265, i64 %267
%269 = load i8, ptr %268, align 1
%270 = icmp ne i8 %269, 0
br i1 %270, label %238, label %._crit_edge6, !llvm.loop !9
._crit_edge6: ; preds = %262
br label %271
271: ; preds = %._crit_edge6, %230
%272 = load i64, ptr %7, align 8
%273 = trunc i64 %272 to i32
%274 = load i32, ptr %6, align 4
%275 = load ptr, ptr %13, align 8
%276 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef %273, i32 noundef %274, ptr noundef %275)
store i32 0, ptr %9, align 4
%277 = load i32, ptr %9, align 4
%278 = sext i32 %277 to i64
%279 = load i64, ptr %7, align 8
%280 = icmp slt i64 %278, %279
br i1 %280, label %.lr.ph14, label %377
.lr.ph14: ; preds = %271
br label %281
281: ; preds = %.lr.ph14, %370
%282 = getelementptr inbounds [16 x i8], ptr %16, i64 0, i64 0
%283 = load ptr, ptr %8, align 8
%284 = call i32 @fread(ptr noundef %282, i32 noundef 1, i32 noundef 16, ptr noundef %283)
store i32 %284, ptr %20, align 4
%285 = load i32, ptr %20, align 4
%286 = icmp ne i32 %285, 16
br i1 %286, label %287, label %304
287: ; preds = %281
%288 = load i32, ptr @main.once, align 4
%289 = icmp ne i32 %288, 0
br i1 %289, label %290, label %296
290: ; preds = %287
%291 = load i32, ptr @stderr, align 4
%292 = load i32, ptr %9, align 4
%293 = load i32, ptr %20, align 4
%294 = add nsw i32 %292, %293
%295 = call i32 (i32, ptr, ...) @fprintf(i32 noundef %291, ptr noundef @.str.12, i32 noundef %294)
br label %296
296: ; preds = %290, %287
%297 = getelementptr inbounds [16 x i8], ptr %16, i64 0, i64 0
%298 = load i32, ptr %20, align 4
%299 = sext i32 %298 to i64
%300 = getelementptr inbounds i8, ptr %297, i64 %299
%301 = load i32, ptr %20, align 4
%302 = sub nsw i32 16, %301
%303 = call i32 @memset(ptr noundef %300, i8 noundef signext 0, i32 noundef %302)
br label %304
304: ; preds = %296, %281
%305 = getelementptr inbounds [16 x i8], ptr %16, i64 0, i64 0
%306 = call i64 @allZero(ptr noundef %305)
%307 = icmp ne i64 %306, 0
br i1 %307, label %308, label %309
308: ; preds = %304
br label %370
309: ; preds = %304
%310 = load i32, ptr %9, align 4
%311 = load i32, ptr %6, align 4
%312 = sdiv i32 %310, %311
%313 = add nsw i32 %312, 1
store i32 %313, ptr %15, align 4
%314 = load i32, ptr %14, align 4
%315 = load i32, ptr %15, align 4
%316 = icmp ne i32 %314, %315
br i1 %316, label %317, label %325
317: ; preds = %309
%318 = load i32, ptr %15, align 4
%319 = load i32, ptr %15, align 4
%320 = sub nsw i32 %319, 1
%321 = load i32, ptr %6, align 4
%322 = mul nsw i32 %320, %321
%323 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, i32 noundef %318, i32 noundef %322)
%324 = load i32, ptr %15, align 4
store i32 %324, ptr %14, align 4
br label %325
325: ; preds = %317, %309
%326 = load i32, ptr %9, align 4
%327 = load i32, ptr %15, align 4
%328 = sub nsw i32 %327, 1
%329 = load i32, ptr %6, align 4
%330 = mul nsw i32 %328, %329
%331 = sub nsw i32 %326, %330
%332 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i32 noundef %331)
store i32 0, ptr %10, align 4
%333 = load i32, ptr %10, align 4
%334 = icmp slt i32 %333, 16
br i1 %334, label %.lr.ph8, label %347
.lr.ph8: ; preds = %325
br label %335
335: ; preds = %.lr.ph8, %342
%336 = load i32, ptr %10, align 4
%337 = sext i32 %336 to i64
%338 = getelementptr inbounds [16 x i8], ptr %16, i64 0, i64 %337
%339 = load i8, ptr %338, align 1
%340 = zext i8 %339 to i32
%341 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef %340)
br label %342
342: ; preds = %335
%343 = load i32, ptr %10, align 4
%344 = add nsw i32 %343, 1
store i32 %344, ptr %10, align 4
%345 = load i32, ptr %10, align 4
%346 = icmp slt i32 %345, 16
br i1 %346, label %335, label %._crit_edge9, !llvm.loop !10
._crit_edge9: ; preds = %342
br label %347
347: ; preds = %._crit_edge9, %325
%348 = call i32 (ptr, ...) @printf(ptr noundef @.str.16)
store i32 0, ptr %10, align 4
%349 = load i32, ptr %10, align 4
%350 = icmp slt i32 %349, 16
br i1 %350, label %.lr.ph11, label %367
.lr.ph11: ; preds = %347
br label %351
351: ; preds = %.lr.ph11, %362
%352 = load i32, ptr %10, align 4
%353 = sext i32 %352 to i64
%354 = getelementptr inbounds [16 x i8], ptr %16, i64 0, i64 %353
%355 = load i8, ptr %354, align 1
store i8 %355, ptr %21, align 1
%356 = load i8, ptr %21, align 1
%357 = zext i8 %356 to i64
%358 = getelementptr inbounds [256 x i8], ptr %18, i64 0, i64 %357
%359 = load i8, ptr %358, align 1
%360 = load i32, ptr @stdout, align 4
%361 = call i32 @fputc(i8 noundef signext %359, i32 noundef %360)
br label %362
362: ; preds = %351
%363 = load i32, ptr %10, align 4
%364 = add nsw i32 %363, 1
store i32 %364, ptr %10, align 4
%365 = load i32, ptr %10, align 4
%366 = icmp slt i32 %365, 16
br i1 %366, label %351, label %._crit_edge12, !llvm.loop !11
._crit_edge12: ; preds = %362
br label %367
367: ; preds = %._crit_edge12, %347
%368 = load i32, ptr @stdout, align 4
%369 = call i32 @fputc(i8 noundef signext 10, i32 noundef %368)
br label %370
370: ; preds = %367, %308
%371 = load i32, ptr %9, align 4
%372 = add nsw i32 %371, 16
store i32 %372, ptr %9, align 4
%373 = load i32, ptr %9, align 4
%374 = sext i32 %373 to i64
%375 = load i64, ptr %7, align 8
%376 = icmp slt i64 %374, %375
br i1 %376, label %281, label %._crit_edge15, !llvm.loop !12
._crit_edge15: ; preds = %370
br label %377
377: ; preds = %._crit_edge15, %271
%378 = load ptr, ptr %8, align 8
%379 = call i32 @fclose(ptr noundef %378)
%380 = load ptr, ptr %13, align 8
%381 = call i32 (ptr, ...) @printf(ptr noundef @.str.17, ptr noundef %380)
ret i32 0
}
declare i32 @memset(ptr noundef, i8 noundef signext, i32 noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @atoi(ptr noundef) #1
declare i32 @fprintf(i32 noundef, ptr noundef, ...) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @fopen(ptr noundef, ptr noundef) #1
declare i32 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @ftell(ptr noundef) #1
declare i32 @rewind(ptr noundef) #1
declare i32 @fread(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ...) #1
declare i64 @allZero(ptr noundef) #1
declare i32 @fputc(i8 noundef signext, i32 noundef) #1
declare i32 @fclose(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
!11 = distinct !{!11, !7}
!12 = distinct !{!12, !7}
|
; ModuleID = '/tmp/tmpxohy4cao.c'
source_filename = "/tmp/tmpxohy4cao.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"*\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @to_ipv4_mask(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca [20 x i8], align 16
%7 = alloca i8, align 1
%8 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store ptr null, ptr %4, align 8
store ptr null, ptr %5, align 8
store i8 0, ptr %7, align 1
store i64 0, ptr %8, align 8
%9 = call i64 @pig_newseg(i32 noundef 4)
%10 = inttoptr i64 %9 to ptr
store ptr %10, ptr %4, align 8
%11 = load ptr, ptr %3, align 8
%12 = call i64 @strcmp(ptr noundef %11, ptr noundef @.str)
%13 = icmp eq i64 %12, 0
br i1 %13, label %14, label %17
14: ; preds = %1
%15 = load ptr, ptr %4, align 8
store i32 -1, ptr %15, align 4
%16 = load ptr, ptr %4, align 8
store ptr %16, ptr %2, align 8
br label %80
17: ; preds = %1
%18 = load ptr, ptr %4, align 8
store i32 0, ptr %18, align 4
%19 = getelementptr inbounds [20 x i8], ptr %6, i64 0, i64 0
%20 = call i32 @memset(ptr noundef %19, i32 noundef 0, i32 noundef 20)
%21 = load ptr, ptr %3, align 8
store ptr %21, ptr %5, align 8
br label %22
22: ; preds = %75, %17
%23 = load ptr, ptr %5, align 8
%24 = load i8, ptr %23, align 1
%25 = sext i8 %24 to i32
%26 = icmp ne i32 %25, 0
br i1 %26, label %27, label %78
27: ; preds = %22
%28 = load ptr, ptr %5, align 8
%29 = load i8, ptr %28, align 1
%30 = sext i8 %29 to i32
%31 = icmp eq i32 %30, 46
br i1 %31, label %38, label %32
32: ; preds = %27
%33 = load ptr, ptr %5, align 8
%34 = getelementptr inbounds i8, ptr %33, i64 1
%35 = load i8, ptr %34, align 1
%36 = sext i8 %35 to i32
%37 = icmp eq i32 %36, 0
br i1 %37, label %38, label %66
38: ; preds = %32, %27
%39 = load ptr, ptr %5, align 8
%40 = getelementptr inbounds i8, ptr %39, i64 1
%41 = load i8, ptr %40, align 1
%42 = sext i8 %41 to i32
%43 = icmp eq i32 %42, 0
br i1 %43, label %44, label %49
44: ; preds = %38
%45 = load ptr, ptr %5, align 8
%46 = load i8, ptr %45, align 1
%47 = load i64, ptr %8, align 8
%48 = getelementptr inbounds [20 x i8], ptr %6, i64 0, i64 %47
store i8 %46, ptr %48, align 1
br label %49
49: ; preds = %44, %38
store i8 -1, ptr %7, align 1
%50 = getelementptr inbounds [20 x i8], ptr %6, i64 0, i64 0
%51 = call i64 @strcmp(ptr noundef %50, ptr noundef @.str)
%52 = icmp ne i64 %51, 0
br i1 %52, label %53, label %56
53: ; preds = %49
%54 = getelementptr inbounds [20 x i8], ptr %6, i64 0, i64 0
%55 = call zeroext i8 @atoi(ptr noundef %54)
store i8 %55, ptr %7, align 1
br label %56
56: ; preds = %53, %49
store i64 0, ptr %8, align 8
%57 = getelementptr inbounds [20 x i8], ptr %6, i64 0, i64 0
%58 = call i32 @memset(ptr noundef %57, i32 noundef 0, i32 noundef 20)
%59 = load ptr, ptr %4, align 8
%60 = load i32, ptr %59, align 4
%61 = shl i32 %60, 8
%62 = load i8, ptr %7, align 1
%63 = zext i8 %62 to i32
%64 = or i32 %61, %63
%65 = load ptr, ptr %4, align 8
store i32 %64, ptr %65, align 4
br label %74
66: ; preds = %32
%67 = load ptr, ptr %5, align 8
%68 = load i8, ptr %67, align 1
%69 = load i64, ptr %8, align 8
%70 = getelementptr inbounds [20 x i8], ptr %6, i64 0, i64 %69
store i8 %68, ptr %70, align 1
%71 = load i64, ptr %8, align 8
%72 = add i64 %71, 1
%73 = urem i64 %72, 20
store i64 %73, ptr %8, align 8
br label %74
74: ; preds = %66, %56
br label %75
75: ; preds = %74
%76 = load ptr, ptr %5, align 8
%77 = getelementptr inbounds i8, ptr %76, i32 1
store ptr %77, ptr %5, align 8
br label %22, !llvm.loop !6
78: ; preds = %22
%79 = load ptr, ptr %4, align 8
store ptr %79, ptr %2, align 8
br label %80
80: ; preds = %78, %14
%81 = load ptr, ptr %2, align 8
ret ptr %81
}
declare i64 @pig_newseg(i32 noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare zeroext i8 @atoi(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxohy4cao.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [2 x i8] c"*\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @to_ipv4_mask(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca [20 x i8], align 16
%7 = alloca i8, align 1
%8 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store ptr null, ptr %4, align 8
store ptr null, ptr %5, align 8
store i8 0, ptr %7, align 1
store i64 0, ptr %8, align 8
%9 = call i64 @pig_newseg(i32 noundef 4)
%10 = inttoptr i64 %9 to ptr
store ptr %10, ptr %4, align 8
%11 = load ptr, ptr %3, align 8
%12 = call i64 @strcmp(ptr noundef %11, ptr noundef @.str)
%13 = icmp eq i64 %12, 0
br i1 %13, label %14, label %17
14: ; preds = %1
%15 = load ptr, ptr %4, align 8
store i32 -1, ptr %15, align 4
%16 = load ptr, ptr %4, align 8
store ptr %16, ptr %2, align 8
br label %83
17: ; preds = %1
%18 = load ptr, ptr %4, align 8
store i32 0, ptr %18, align 4
%19 = getelementptr inbounds [20 x i8], ptr %6, i64 0, i64 0
%20 = call i32 @memset(ptr noundef %19, i32 noundef 0, i32 noundef 20)
%21 = load ptr, ptr %3, align 8
store ptr %21, ptr %5, align 8
%22 = load ptr, ptr %5, align 8
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = icmp ne i32 %24, 0
br i1 %25, label %.lr.ph, label %81
.lr.ph: ; preds = %17
br label %26
26: ; preds = %.lr.ph, %74
%27 = load ptr, ptr %5, align 8
%28 = load i8, ptr %27, align 1
%29 = sext i8 %28 to i32
%30 = icmp eq i32 %29, 46
br i1 %30, label %37, label %31
31: ; preds = %26
%32 = load ptr, ptr %5, align 8
%33 = getelementptr inbounds i8, ptr %32, i64 1
%34 = load i8, ptr %33, align 1
%35 = sext i8 %34 to i32
%36 = icmp eq i32 %35, 0
br i1 %36, label %37, label %65
37: ; preds = %31, %26
%38 = load ptr, ptr %5, align 8
%39 = getelementptr inbounds i8, ptr %38, i64 1
%40 = load i8, ptr %39, align 1
%41 = sext i8 %40 to i32
%42 = icmp eq i32 %41, 0
br i1 %42, label %43, label %48
43: ; preds = %37
%44 = load ptr, ptr %5, align 8
%45 = load i8, ptr %44, align 1
%46 = load i64, ptr %8, align 8
%47 = getelementptr inbounds [20 x i8], ptr %6, i64 0, i64 %46
store i8 %45, ptr %47, align 1
br label %48
48: ; preds = %43, %37
store i8 -1, ptr %7, align 1
%49 = getelementptr inbounds [20 x i8], ptr %6, i64 0, i64 0
%50 = call i64 @strcmp(ptr noundef %49, ptr noundef @.str)
%51 = icmp ne i64 %50, 0
br i1 %51, label %52, label %55
52: ; preds = %48
%53 = getelementptr inbounds [20 x i8], ptr %6, i64 0, i64 0
%54 = call zeroext i8 @atoi(ptr noundef %53)
store i8 %54, ptr %7, align 1
br label %55
55: ; preds = %52, %48
store i64 0, ptr %8, align 8
%56 = getelementptr inbounds [20 x i8], ptr %6, i64 0, i64 0
%57 = call i32 @memset(ptr noundef %56, i32 noundef 0, i32 noundef 20)
%58 = load ptr, ptr %4, align 8
%59 = load i32, ptr %58, align 4
%60 = shl i32 %59, 8
%61 = load i8, ptr %7, align 1
%62 = zext i8 %61 to i32
%63 = or i32 %60, %62
%64 = load ptr, ptr %4, align 8
store i32 %63, ptr %64, align 4
br label %73
65: ; preds = %31
%66 = load ptr, ptr %5, align 8
%67 = load i8, ptr %66, align 1
%68 = load i64, ptr %8, align 8
%69 = getelementptr inbounds [20 x i8], ptr %6, i64 0, i64 %68
store i8 %67, ptr %69, align 1
%70 = load i64, ptr %8, align 8
%71 = add i64 %70, 1
%72 = urem i64 %71, 20
store i64 %72, ptr %8, align 8
br label %73
73: ; preds = %65, %55
br label %74
74: ; preds = %73
%75 = load ptr, ptr %5, align 8
%76 = getelementptr inbounds i8, ptr %75, i32 1
store ptr %76, ptr %5, align 8
%77 = load ptr, ptr %5, align 8
%78 = load i8, ptr %77, align 1
%79 = sext i8 %78 to i32
%80 = icmp ne i32 %79, 0
br i1 %80, label %26, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %74
br label %81
81: ; preds = %._crit_edge, %17
%82 = load ptr, ptr %4, align 8
store ptr %82, ptr %2, align 8
br label %83
83: ; preds = %81, %14
%84 = load ptr, ptr %2, align 8
ret ptr %84
}
declare i64 @pig_newseg(i32 noundef) #1
declare i64 @strcmp(ptr noundef, ptr noundef) #1
declare i32 @memset(ptr noundef, i32 noundef, i32 noundef) #1
declare zeroext i8 @atoi(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpyv5qziab.c'
source_filename = "/tmp/tmpyv5qziab.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"malloc failed\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%02X\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"success\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @GetHexHash(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%9 = call i64 @malloc(i32 noundef 65)
%10 = inttoptr i64 %9 to ptr
%11 = load ptr, ptr %5, align 8
store ptr %10, ptr %11, align 8
%12 = load ptr, ptr %5, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %16
14: ; preds = %3
%15 = load ptr, ptr %6, align 8
store ptr @.str, ptr %15, align 8
br label %39
16: ; preds = %3
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
br label %17
17: ; preds = %32, %16
%18 = load i32, ptr %7, align 4
%19 = icmp slt i32 %18, 32
br i1 %19, label %20, label %37
20: ; preds = %17
%21 = load ptr, ptr %5, align 8
%22 = load ptr, ptr %21, align 8
%23 = load i32, ptr %8, align 4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds i8, ptr %22, i64 %24
%26 = load ptr, ptr %4, align 8
%27 = load i32, ptr %7, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, ptr %26, i64 %28
%30 = load i8, ptr %29, align 1
%31 = call i32 @sprintf(ptr noundef %25, ptr noundef @.str.1, i8 noundef zeroext %30)
br label %32
32: ; preds = %20
%33 = load i32, ptr %7, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %7, align 4
%35 = load i32, ptr %8, align 4
%36 = add nsw i32 %35, 2
store i32 %36, ptr %8, align 4
br label %17, !llvm.loop !6
37: ; preds = %17
%38 = load ptr, ptr %6, align 8
store ptr @.str.2, ptr %38, align 8
br label %39
39: ; preds = %37, %14
ret void
}
declare i64 @malloc(i32 noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpyv5qziab.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"malloc failed\00", align 1
@.str.1 = private unnamed_addr constant [5 x i8] c"%02X\00", align 1
@.str.2 = private unnamed_addr constant [8 x i8] c"success\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @GetHexHash(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca ptr, align 8
%6 = alloca ptr, align 8
%7 = alloca i32, align 4
%8 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store ptr %2, ptr %6, align 8
%9 = call i64 @malloc(i32 noundef 65)
%10 = inttoptr i64 %9 to ptr
%11 = load ptr, ptr %5, align 8
store ptr %10, ptr %11, align 8
%12 = load ptr, ptr %5, align 8
%13 = icmp eq ptr %12, null
br i1 %13, label %14, label %16
14: ; preds = %3
%15 = load ptr, ptr %6, align 8
store ptr @.str, ptr %15, align 8
br label %40
16: ; preds = %3
store i32 0, ptr %7, align 4
store i32 0, ptr %8, align 4
%17 = load i32, ptr %7, align 4
%18 = icmp slt i32 %17, 32
br i1 %18, label %.lr.ph, label %38
.lr.ph: ; preds = %16
br label %19
19: ; preds = %.lr.ph, %31
%20 = load ptr, ptr %5, align 8
%21 = load ptr, ptr %20, align 8
%22 = load i32, ptr %8, align 4
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i8, ptr %21, i64 %23
%25 = load ptr, ptr %4, align 8
%26 = load i32, ptr %7, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8, ptr %25, i64 %27
%29 = load i8, ptr %28, align 1
%30 = call i32 @sprintf(ptr noundef %24, ptr noundef @.str.1, i8 noundef zeroext %29)
br label %31
31: ; preds = %19
%32 = load i32, ptr %7, align 4
%33 = add nsw i32 %32, 1
store i32 %33, ptr %7, align 4
%34 = load i32, ptr %8, align 4
%35 = add nsw i32 %34, 2
store i32 %35, ptr %8, align 4
%36 = load i32, ptr %7, align 4
%37 = icmp slt i32 %36, 32
br i1 %37, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %31
br label %38
38: ; preds = %._crit_edge, %16
%39 = load ptr, ptr %6, align 8
store ptr @.str.2, ptr %39, align 8
br label %40
40: ; preds = %38, %14
ret void
}
declare i64 @malloc(i32 noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpfg9ooy4v.c'
source_filename = "/tmp/tmpfg9ooy4v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SEEK_SET = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @NESGetPrgBankCount(ptr noundef %0) #0 {
%2 = alloca i8, align 1
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = icmp ne ptr %4, null
br i1 %5, label %7, label %6
6: ; preds = %1
store i8 -1, ptr %2, align 1
br label %17
7: ; preds = %1
%8 = load ptr, ptr %3, align 8
%9 = load i32, ptr @SEEK_SET, align 4
%10 = call i64 @fseek(ptr noundef %8, i32 noundef 4, i32 noundef %9)
%11 = icmp ne i64 %10, 0
br i1 %11, label %12, label %13
12: ; preds = %7
store i8 -1, ptr %2, align 1
br label %17
13: ; preds = %7
%14 = load ptr, ptr %3, align 8
%15 = call i64 @fgetc(ptr noundef %14)
%16 = trunc i64 %15 to i8
store i8 %16, ptr %2, align 1
br label %17
17: ; preds = %13, %12, %6
%18 = load i8, ptr %2, align 1
ret i8 %18
}
declare i64 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @fgetc(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpfg9ooy4v.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SEEK_SET = dso_local global i32 0, align 4
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local signext i8 @NESGetPrgBankCount(ptr noundef %0) #0 {
%2 = alloca i8, align 1
%3 = alloca ptr, align 8
store ptr %0, ptr %3, align 8
%4 = load ptr, ptr %3, align 8
%5 = icmp ne ptr %4, null
br i1 %5, label %7, label %6
6: ; preds = %1
store i8 -1, ptr %2, align 1
br label %17
7: ; preds = %1
%8 = load ptr, ptr %3, align 8
%9 = load i32, ptr @SEEK_SET, align 4
%10 = call i64 @fseek(ptr noundef %8, i32 noundef 4, i32 noundef %9)
%11 = icmp ne i64 %10, 0
br i1 %11, label %12, label %13
12: ; preds = %7
store i8 -1, ptr %2, align 1
br label %17
13: ; preds = %7
%14 = load ptr, ptr %3, align 8
%15 = call i64 @fgetc(ptr noundef %14)
%16 = trunc i64 %15 to i8
store i8 %16, ptr %2, align 1
br label %17
17: ; preds = %13, %12, %6
%18 = load i8, ptr %2, align 1
ret i8 %18
}
declare i64 @fseek(ptr noundef, i32 noundef, i32 noundef) #1
declare i64 @fgetc(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp9l1jhcmz.c'
source_filename = "/tmp/tmp9l1jhcmz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sum_array_int(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i32, align 4
%6 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store i32 0, ptr %5, align 4
store i64 0, ptr %6, align 8
br label %7
7: ; preds = %18, %2
%8 = load i64, ptr %6, align 8
%9 = load i64, ptr %4, align 8
%10 = icmp ult i64 %8, %9
br i1 %10, label %11, label %21
11: ; preds = %7
%12 = load ptr, ptr %3, align 8
%13 = load i64, ptr %6, align 8
%14 = getelementptr inbounds i32, ptr %12, i64 %13
%15 = load i32, ptr %14, align 4
%16 = load i32, ptr %5, align 4
%17 = add nsw i32 %16, %15
store i32 %17, ptr %5, align 4
br label %18
18: ; preds = %11
%19 = load i64, ptr %6, align 8
%20 = add i64 %19, 1
store i64 %20, ptr %6, align 8
br label %7, !llvm.loop !6
21: ; preds = %7
%22 = load i32, ptr %5, align 4
ret i32 %22
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp9l1jhcmz.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @sum_array_int(ptr noundef %0, i64 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca i32, align 4
%6 = alloca i64, align 8
store ptr %0, ptr %3, align 8
store i64 %1, ptr %4, align 8
store i32 0, ptr %5, align 4
store i64 0, ptr %6, align 8
%7 = load i64, ptr %6, align 8
%8 = load i64, ptr %4, align 8
%9 = icmp ult i64 %7, %8
br i1 %9, label %.lr.ph, label %23
.lr.ph: ; preds = %2
br label %10
10: ; preds = %.lr.ph, %17
%11 = load ptr, ptr %3, align 8
%12 = load i64, ptr %6, align 8
%13 = getelementptr inbounds i32, ptr %11, i64 %12
%14 = load i32, ptr %13, align 4
%15 = load i32, ptr %5, align 4
%16 = add nsw i32 %15, %14
store i32 %16, ptr %5, align 4
br label %17
17: ; preds = %10
%18 = load i64, ptr %6, align 8
%19 = add i64 %18, 1
store i64 %19, ptr %6, align 8
%20 = load i64, ptr %6, align 8
%21 = load i64, ptr %4, align 8
%22 = icmp ult i64 %20, %21
br i1 %22, label %10, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %17
br label %23
23: ; preds = %._crit_edge, %2
%24 = load i32, ptr %5, align 4
ret i32 %24
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp8d8hpf04.c'
source_filename = "/tmp/tmp8d8hpf04.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @flashrom_wait_toggle_bit(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca i8, align 1
%4 = alloca i8, align 1
store i64 %0, ptr %2, align 8
br label %5
5: ; preds = %21, %1
%6 = load i64, ptr %2, align 8
%7 = call zeroext i8 @flashrom_chip_read(i64 noundef %6)
store i8 %7, ptr %3, align 1
%8 = load i64, ptr %2, align 8
%9 = call zeroext i8 @flashrom_chip_read(i64 noundef %8)
store i8 %9, ptr %4, align 1
%10 = load i8, ptr %3, align 1
%11 = zext i8 %10 to i32
%12 = load i8, ptr %4, align 1
%13 = zext i8 %12 to i32
%14 = icmp eq i32 %11, %13
br i1 %14, label %15, label %20
15: ; preds = %5
%16 = load i64, ptr %2, align 8
%17 = call zeroext i8 @flashrom_chip_read(i64 noundef %16)
store i8 %17, ptr %3, align 1
%18 = load i64, ptr %2, align 8
%19 = call zeroext i8 @flashrom_chip_read(i64 noundef %18)
store i8 %19, ptr %4, align 1
br label %20
20: ; preds = %15, %5
br label %21
21: ; preds = %20
%22 = load i8, ptr %3, align 1
%23 = zext i8 %22 to i32
%24 = load i8, ptr %4, align 1
%25 = zext i8 %24 to i32
%26 = icmp ne i32 %23, %25
br i1 %26, label %5, label %27, !llvm.loop !6
27: ; preds = %21
ret void
}
declare zeroext i8 @flashrom_chip_read(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/tmp8d8hpf04.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @flashrom_wait_toggle_bit(i64 noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca i8, align 1
%4 = alloca i8, align 1
store i64 %0, ptr %2, align 8
br label %5
5: ; preds = %21, %1
%6 = load i64, ptr %2, align 8
%7 = call zeroext i8 @flashrom_chip_read(i64 noundef %6)
store i8 %7, ptr %3, align 1
%8 = load i64, ptr %2, align 8
%9 = call zeroext i8 @flashrom_chip_read(i64 noundef %8)
store i8 %9, ptr %4, align 1
%10 = load i8, ptr %3, align 1
%11 = zext i8 %10 to i32
%12 = load i8, ptr %4, align 1
%13 = zext i8 %12 to i32
%14 = icmp eq i32 %11, %13
br i1 %14, label %15, label %20
15: ; preds = %5
%16 = load i64, ptr %2, align 8
%17 = call zeroext i8 @flashrom_chip_read(i64 noundef %16)
store i8 %17, ptr %3, align 1
%18 = load i64, ptr %2, align 8
%19 = call zeroext i8 @flashrom_chip_read(i64 noundef %18)
store i8 %19, ptr %4, align 1
br label %20
20: ; preds = %15, %5
br label %21
21: ; preds = %20
%22 = load i8, ptr %3, align 1
%23 = zext i8 %22 to i32
%24 = load i8, ptr %4, align 1
%25 = zext i8 %24 to i32
%26 = icmp ne i32 %23, %25
br i1 %26, label %5, label %27, !llvm.loop !6
27: ; preds = %21
ret void
}
declare zeroext i8 @flashrom_chip_read(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/tmpb1i38esl.c'
source_filename = "/tmp/tmpb1i38esl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [36 x i8] c"Usage: divworst <dmax> <n> [ <p> ]\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [43 x i8] c"divworst: p must be greater or equal to n\0A\00", align 1
@MPFR_RNDN = dso_local global i32 0, align 4
@MPFR_RNDZ = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [41 x i8] c"x = %.*Rb ; y = %.*Rb ; Z: %lu ; N: %lu\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 i32, align 4
%12 = alloca i32, align 4
%13 = alloca i64, align 8
%14 = 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
%15 = load i32, ptr %4, align 4
%16 = icmp ne i32 %15, 3
br i1 %16, label %17, label %25
17: ; preds = %2
%18 = load i32, ptr %4, align 4
%19 = icmp ne i32 %18, 4
br i1 %19, label %20, label %25
20: ; preds = %17
%21 = load i32, ptr @stderr, align 4
%22 = call i32 @fprintf(i32 noundef %21, ptr noundef @.str)
%23 = load i32, ptr @EXIT_FAILURE, align 4
%24 = call i32 @exit(i32 noundef %23) #3
unreachable
25: ; preds = %17, %2
%26 = load ptr, ptr %5, align 8
%27 = getelementptr inbounds ptr, ptr %26, i64 1
%28 = load ptr, ptr %27, align 8
%29 = call i32 @atoi(ptr noundef %28)
store i32 %29, ptr %6, align 4
%30 = load ptr, ptr %5, align 8
%31 = getelementptr inbounds ptr, ptr %30, i64 2
%32 = load ptr, ptr %31, align 8
%33 = call i32 @atoi(ptr noundef %32)
store i32 %33, ptr %7, align 4
%34 = load i32, ptr %4, align 4
%35 = icmp eq i32 %34, 3
br i1 %35, label %36, label %38
36: ; preds = %25
%37 = load i32, ptr %7, align 4
br label %43
38: ; preds = %25
%39 = load ptr, ptr %5, align 8
%40 = getelementptr inbounds ptr, ptr %39, i64 3
%41 = load ptr, ptr %40, align 8
%42 = call i32 @atoi(ptr noundef %41)
br label %43
43: ; preds = %38, %36
%44 = phi i32 [ %37, %36 ], [ %42, %38 ]
store i32 %44, ptr %8, align 4
%45 = load i32, ptr %8, align 4
%46 = load i32, ptr %7, align 4
%47 = icmp slt i32 %45, %46
br i1 %47, label %48, label %53
48: ; preds = %43
%49 = load i32, ptr @stderr, align 4
%50 = call i32 @fprintf(i32 noundef %49, ptr noundef @.str.1)
%51 = load i32, ptr @EXIT_FAILURE, align 4
%52 = call i32 @exit(i32 noundef %51) #3
unreachable
53: ; preds = %43
%54 = load i32, ptr %7, align 4
%55 = load i32, ptr %9, align 4
%56 = load i32, ptr %10, align 4
%57 = load i32, ptr %11, align 4
%58 = call i32 @mpfr_inits2(i32 noundef %54, i32 noundef %55, i32 noundef %56, i32 noundef %57, i32 noundef 0)
%59 = load i32, ptr %12, align 4
%60 = load i32, ptr %8, align 4
%61 = call i32 @mpfr_init2(i32 noundef %59, i32 noundef %60)
%62 = load i32, ptr %9, align 4
%63 = load i32, ptr @MPFR_RNDN, align 4
%64 = call i32 @mpfr_set_ui_2exp(i32 noundef %62, i32 noundef 1, i32 noundef -1, i32 noundef %63)
br label %65
65: ; preds = %117, %53
%66 = load i32, ptr %9, align 4
%67 = call i32 @mpfr_get_exp(i32 noundef %66)
%68 = load i32, ptr %6, align 4
%69 = icmp sle i32 %67, %68
br i1 %69, label %70, label %120
70: ; preds = %65
%71 = load i32, ptr %10, align 4
%72 = load i32, ptr @MPFR_RNDN, align 4
%73 = call i32 @mpfr_set_ui_2exp(i32 noundef %71, i32 noundef 1, i32 noundef -1, i32 noundef %72)
br label %74
74: ; preds = %113, %70
%75 = load i32, ptr %10, align 4
%76 = call i32 @mpfr_get_exp(i32 noundef %75)
%77 = icmp eq i32 %76, 0
br i1 %77, label %78, label %116
78: ; preds = %74
%79 = load i32, ptr %11, align 4
%80 = load i32, ptr %9, align 4
%81 = load i32, ptr %10, align 4
%82 = load i32, ptr @MPFR_RNDZ, align 4
%83 = call i64 @mpfr_sub(i32 noundef %79, i32 noundef %80, i32 noundef %81, i32 noundef %82)
%84 = icmp ne i64 %83, 0
br i1 %84, label %85, label %86
85: ; preds = %78
br label %113
86: ; preds = %78
%87 = load i32, ptr %9, align 4
%88 = load i32, ptr %10, align 4
%89 = load i32, ptr %11, align 4
%90 = load i32, ptr %12, align 4
%91 = load i32, ptr @MPFR_RNDZ, align 4
%92 = call i64 @eval(i32 noundef %87, i32 noundef %88, i32 noundef %89, i32 noundef %90, i32 noundef %91)
store i64 %92, ptr %13, align 8
%93 = load i32, ptr %9, align 4
%94 = load i32, ptr %10, align 4
%95 = load i32, ptr %11, align 4
%96 = load i32, ptr %12, align 4
%97 = load i32, ptr @MPFR_RNDN, align 4
%98 = call i64 @eval(i32 noundef %93, i32 noundef %94, i32 noundef %95, i32 noundef %96, i32 noundef %97)
store i64 %98, ptr %14, align 8
%99 = load i64, ptr %13, align 8
%100 = load i64, ptr %14, align 8
%101 = icmp eq i64 %99, %100
br i1 %101, label %102, label %103
102: ; preds = %86
br label %113
103: ; preds = %86
%104 = load i32, ptr %7, align 4
%105 = sub nsw i32 %104, 1
%106 = load i32, ptr %9, align 4
%107 = load i32, ptr %7, align 4
%108 = sub nsw i32 %107, 1
%109 = load i32, ptr %10, align 4
%110 = load i64, ptr %13, align 8
%111 = load i64, ptr %14, align 8
%112 = call i32 @mpfr_printf(ptr noundef @.str.2, i32 noundef %105, i32 noundef %106, i32 noundef %108, i32 noundef %109, i64 noundef %110, i64 noundef %111)
br label %113
113: ; preds = %103, %102, %85
%114 = load i32, ptr %10, align 4
%115 = call i32 @mpfr_nextabove(i32 noundef %114)
br label %74, !llvm.loop !6
116: ; preds = %74
br label %117
117: ; preds = %116
%118 = load i32, ptr %9, align 4
%119 = call i32 @mpfr_nextabove(i32 noundef %118)
br label %65, !llvm.loop !8
120: ; preds = %65
%121 = load i32, ptr %9, align 4
%122 = load i32, ptr %10, align 4
%123 = load i32, ptr %11, align 4
%124 = load i32, ptr %12, align 4
%125 = call i32 @mpfr_clears(i32 noundef %121, i32 noundef %122, i32 noundef %123, i32 noundef %124, i32 noundef 0)
%126 = call i32 (...) @mpfr_free_cache()
ret i32 0
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @atoi(ptr noundef) #1
declare i32 @mpfr_inits2(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @mpfr_init2(i32 noundef, i32 noundef) #1
declare i32 @mpfr_set_ui_2exp(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @mpfr_get_exp(i32 noundef) #1
declare i64 @mpfr_sub(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i64 @eval(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @mpfr_printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i64 noundef, i64 noundef) #1
declare i32 @mpfr_nextabove(i32 noundef) #1
declare i32 @mpfr_clears(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @mpfr_free_cache(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpb1i38esl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stderr = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [36 x i8] c"Usage: divworst <dmax> <n> [ <p> ]\0A\00", align 1
@EXIT_FAILURE = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [43 x i8] c"divworst: p must be greater or equal to n\0A\00", align 1
@MPFR_RNDN = dso_local global i32 0, align 4
@MPFR_RNDZ = dso_local global i32 0, align 4
@.str.2 = private unnamed_addr constant [41 x i8] c"x = %.*Rb ; y = %.*Rb ; Z: %lu ; N: %lu\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 i32, align 4
%12 = alloca i32, align 4
%13 = alloca i64, align 8
%14 = 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
%15 = load i32, ptr %4, align 4
%16 = icmp ne i32 %15, 3
br i1 %16, label %17, label %25
17: ; preds = %2
%18 = load i32, ptr %4, align 4
%19 = icmp ne i32 %18, 4
br i1 %19, label %20, label %25
20: ; preds = %17
%21 = load i32, ptr @stderr, align 4
%22 = call i32 @fprintf(i32 noundef %21, ptr noundef @.str)
%23 = load i32, ptr @EXIT_FAILURE, align 4
%24 = call i32 @exit(i32 noundef %23) #3
unreachable
25: ; preds = %17, %2
%26 = load ptr, ptr %5, align 8
%27 = getelementptr inbounds ptr, ptr %26, i64 1
%28 = load ptr, ptr %27, align 8
%29 = call i32 @atoi(ptr noundef %28)
store i32 %29, ptr %6, align 4
%30 = load ptr, ptr %5, align 8
%31 = getelementptr inbounds ptr, ptr %30, i64 2
%32 = load ptr, ptr %31, align 8
%33 = call i32 @atoi(ptr noundef %32)
store i32 %33, ptr %7, align 4
%34 = load i32, ptr %4, align 4
%35 = icmp eq i32 %34, 3
br i1 %35, label %36, label %38
36: ; preds = %25
%37 = load i32, ptr %7, align 4
br label %43
38: ; preds = %25
%39 = load ptr, ptr %5, align 8
%40 = getelementptr inbounds ptr, ptr %39, i64 3
%41 = load ptr, ptr %40, align 8
%42 = call i32 @atoi(ptr noundef %41)
br label %43
43: ; preds = %38, %36
%44 = phi i32 [ %37, %36 ], [ %42, %38 ]
store i32 %44, ptr %8, align 4
%45 = load i32, ptr %8, align 4
%46 = load i32, ptr %7, align 4
%47 = icmp slt i32 %45, %46
br i1 %47, label %48, label %53
48: ; preds = %43
%49 = load i32, ptr @stderr, align 4
%50 = call i32 @fprintf(i32 noundef %49, ptr noundef @.str.1)
%51 = load i32, ptr @EXIT_FAILURE, align 4
%52 = call i32 @exit(i32 noundef %51) #3
unreachable
53: ; preds = %43
%54 = load i32, ptr %7, align 4
%55 = load i32, ptr %9, align 4
%56 = load i32, ptr %10, align 4
%57 = load i32, ptr %11, align 4
%58 = call i32 @mpfr_inits2(i32 noundef %54, i32 noundef %55, i32 noundef %56, i32 noundef %57, i32 noundef 0)
%59 = load i32, ptr %12, align 4
%60 = load i32, ptr %8, align 4
%61 = call i32 @mpfr_init2(i32 noundef %59, i32 noundef %60)
%62 = load i32, ptr %9, align 4
%63 = load i32, ptr @MPFR_RNDN, align 4
%64 = call i32 @mpfr_set_ui_2exp(i32 noundef %62, i32 noundef 1, i32 noundef -1, i32 noundef %63)
%65 = load i32, ptr %9, align 4
%66 = call i32 @mpfr_get_exp(i32 noundef %65)
%67 = load i32, ptr %6, align 4
%68 = icmp sle i32 %66, %67
br i1 %68, label %.lr.ph2, label %125
.lr.ph2: ; preds = %53
br label %69
69: ; preds = %.lr.ph2, %118
%70 = load i32, ptr %10, align 4
%71 = load i32, ptr @MPFR_RNDN, align 4
%72 = call i32 @mpfr_set_ui_2exp(i32 noundef %70, i32 noundef 1, i32 noundef -1, i32 noundef %71)
%73 = load i32, ptr %10, align 4
%74 = call i32 @mpfr_get_exp(i32 noundef %73)
%75 = icmp eq i32 %74, 0
br i1 %75, label %.lr.ph, label %117
.lr.ph: ; preds = %69
br label %76
76: ; preds = %.lr.ph, %111
%77 = load i32, ptr %11, align 4
%78 = load i32, ptr %9, align 4
%79 = load i32, ptr %10, align 4
%80 = load i32, ptr @MPFR_RNDZ, align 4
%81 = call i64 @mpfr_sub(i32 noundef %77, i32 noundef %78, i32 noundef %79, i32 noundef %80)
%82 = icmp ne i64 %81, 0
br i1 %82, label %83, label %84
83: ; preds = %76
br label %111
84: ; preds = %76
%85 = load i32, ptr %9, align 4
%86 = load i32, ptr %10, align 4
%87 = load i32, ptr %11, align 4
%88 = load i32, ptr %12, align 4
%89 = load i32, ptr @MPFR_RNDZ, align 4
%90 = call i64 @eval(i32 noundef %85, i32 noundef %86, i32 noundef %87, i32 noundef %88, i32 noundef %89)
store i64 %90, ptr %13, align 8
%91 = load i32, ptr %9, align 4
%92 = load i32, ptr %10, align 4
%93 = load i32, ptr %11, align 4
%94 = load i32, ptr %12, align 4
%95 = load i32, ptr @MPFR_RNDN, align 4
%96 = call i64 @eval(i32 noundef %91, i32 noundef %92, i32 noundef %93, i32 noundef %94, i32 noundef %95)
store i64 %96, ptr %14, align 8
%97 = load i64, ptr %13, align 8
%98 = load i64, ptr %14, align 8
%99 = icmp eq i64 %97, %98
br i1 %99, label %100, label %101
100: ; preds = %84
br label %111
101: ; preds = %84
%102 = load i32, ptr %7, align 4
%103 = sub nsw i32 %102, 1
%104 = load i32, ptr %9, align 4
%105 = load i32, ptr %7, align 4
%106 = sub nsw i32 %105, 1
%107 = load i32, ptr %10, align 4
%108 = load i64, ptr %13, align 8
%109 = load i64, ptr %14, align 8
%110 = call i32 @mpfr_printf(ptr noundef @.str.2, i32 noundef %103, i32 noundef %104, i32 noundef %106, i32 noundef %107, i64 noundef %108, i64 noundef %109)
br label %111
111: ; preds = %101, %100, %83
%112 = load i32, ptr %10, align 4
%113 = call i32 @mpfr_nextabove(i32 noundef %112)
%114 = load i32, ptr %10, align 4
%115 = call i32 @mpfr_get_exp(i32 noundef %114)
%116 = icmp eq i32 %115, 0
br i1 %116, label %76, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %111
br label %117
117: ; preds = %._crit_edge, %69
br label %118
118: ; preds = %117
%119 = load i32, ptr %9, align 4
%120 = call i32 @mpfr_nextabove(i32 noundef %119)
%121 = load i32, ptr %9, align 4
%122 = call i32 @mpfr_get_exp(i32 noundef %121)
%123 = load i32, ptr %6, align 4
%124 = icmp sle i32 %122, %123
br i1 %124, label %69, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %118
br label %125
125: ; preds = %._crit_edge3, %53
%126 = load i32, ptr %9, align 4
%127 = load i32, ptr %10, align 4
%128 = load i32, ptr %11, align 4
%129 = load i32, ptr %12, align 4
%130 = call i32 @mpfr_clears(i32 noundef %126, i32 noundef %127, i32 noundef %128, i32 noundef %129, i32 noundef 0)
%131 = call i32 (...) @mpfr_free_cache()
ret i32 0
}
declare i32 @fprintf(i32 noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @atoi(ptr noundef) #1
declare i32 @mpfr_inits2(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @mpfr_init2(i32 noundef, i32 noundef) #1
declare i32 @mpfr_set_ui_2exp(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @mpfr_get_exp(i32 noundef) #1
declare i64 @mpfr_sub(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i64 @eval(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @mpfr_printf(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i64 noundef, i64 noundef) #1
declare i32 @mpfr_nextabove(i32 noundef) #1
declare i32 @mpfr_clears(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1
declare i32 @mpfr_free_cache(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmp0irtytlh.c'
source_filename = "/tmp/tmp0irtytlh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @intlog2(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%3 = load i64, ptr %2, align 8
%4 = uitofp i64 %3 to double
%5 = fmul double 1.000000e+00, %4
%6 = call double @log(double noundef %5) #3
%7 = call double @log(double noundef 2.000000e+00) #3
%8 = fdiv double %6, %7
%9 = fadd double %8, 5.000000e-01
%10 = call i64 @floor(double noundef %9)
%11 = trunc i64 %10 to i32
ret i32 %11
}
declare i64 @floor(double noundef) #1
; Function Attrs: nounwind
declare double @log(double noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp0irtytlh.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @intlog2(i64 noundef %0) #0 {
%2 = alloca i64, align 8
store i64 %0, ptr %2, align 8
%3 = load i64, ptr %2, align 8
%4 = uitofp i64 %3 to double
%5 = fmul double 1.000000e+00, %4
%6 = call double @log(double noundef %5) #3
%7 = call double @log(double noundef 2.000000e+00) #3
%8 = fdiv double %6, %7
%9 = fadd double %8, 5.000000e-01
%10 = call i64 @floor(double noundef %9)
%11 = trunc i64 %10 to i32
ret i32 %11
}
declare i64 @floor(double noundef) #1
; Function Attrs: nounwind
declare double @log(double noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp6itf4puj.c'
source_filename = "/tmp/tmp6itf4puj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ft_nputchar(i8 noundef signext %0, i32 noundef %1) #0 {
%3 = alloca i8, align 1
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i8 %0, ptr %3, align 1
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %6
6: ; preds = %10, %2
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %10, label %15
10: ; preds = %6
%11 = load i8, ptr %3, align 1
%12 = call i32 @ft_putchar(i8 noundef signext %11)
%13 = load i32, ptr %5, align 4
%14 = add nsw i32 %13, 1
store i32 %14, ptr %5, align 4
br label %6, !llvm.loop !6
15: ; preds = %6
ret i32 0
}
declare i32 @ft_putchar(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp6itf4puj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @ft_nputchar(i8 noundef signext %0, i32 noundef %1) #0 {
%3 = alloca i8, align 1
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i8 %0, ptr %3, align 1
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
%6 = load i32, ptr %5, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %6, %7
br i1 %8, label %.lr.ph, label %17
.lr.ph: ; preds = %2
br label %9
9: ; preds = %.lr.ph, %9
%10 = load i8, ptr %3, align 1
%11 = call i32 @ft_putchar(i8 noundef signext %10)
%12 = load i32, ptr %5, align 4
%13 = add nsw i32 %12, 1
store i32 %13, ptr %5, align 4
%14 = load i32, ptr %5, align 4
%15 = load i32, ptr %4, align 4
%16 = icmp slt i32 %14, %15
br i1 %16, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %9
br label %17
17: ; preds = %._crit_edge, %2
ret i32 0
}
declare i32 @ft_putchar(i8 noundef signext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpq5uz3dq0.c'
source_filename = "/tmp/tmpq5uz3dq0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @alloc_string(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 %5, 1
%7 = call ptr @xmalloc(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 @xmalloc(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/tmpq5uz3dq0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @alloc_string(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 %5, 1
%7 = call ptr @xmalloc(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 @xmalloc(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/tmpopru63_u.c'
source_filename = "/tmp/tmpopru63_u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timespec = type { i64, i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local { i64, i64 } @timeDiff(i64 %0, i64 %1, i64 %2, i64 %3) #0 {
%5 = alloca %struct.timespec, align 8
%6 = alloca %struct.timespec, align 8
%7 = alloca %struct.timespec, align 8
%8 = getelementptr inbounds { i64, i64 }, ptr %6, i32 0, i32 0
store i64 %0, ptr %8, align 8
%9 = getelementptr inbounds { i64, i64 }, ptr %6, i32 0, i32 1
store i64 %1, ptr %9, align 8
%10 = getelementptr inbounds { i64, i64 }, ptr %7, i32 0, i32 0
store i64 %2, ptr %10, align 8
%11 = getelementptr inbounds { i64, i64 }, ptr %7, i32 0, i32 1
store i64 %3, ptr %11, align 8
%12 = getelementptr inbounds %struct.timespec, ptr %6, i32 0, i32 1
%13 = load i64, ptr %12, align 8
%14 = getelementptr inbounds %struct.timespec, ptr %7, i32 0, i32 1
%15 = load i64, ptr %14, align 8
%16 = sub nsw i64 %13, %15
%17 = getelementptr inbounds %struct.timespec, ptr %5, i32 0, i32 1
store i64 %16, ptr %17, align 8
%18 = getelementptr inbounds %struct.timespec, ptr %6, i32 0, i32 0
%19 = load i64, ptr %18, align 8
%20 = getelementptr inbounds %struct.timespec, ptr %7, i32 0, i32 0
%21 = load i64, ptr %20, align 8
%22 = sub nsw i64 %19, %21
%23 = getelementptr inbounds %struct.timespec, ptr %5, i32 0, i32 0
store i64 %22, ptr %23, align 8
%24 = call i32 @normalize(ptr noundef %5)
%25 = load { i64, i64 }, ptr %5, align 8
ret { i64, i64 } %25
}
declare i32 @normalize(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpopru63_u.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.timespec = type { i64, i64 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local { i64, i64 } @timeDiff(i64 %0, i64 %1, i64 %2, i64 %3) #0 {
%5 = alloca %struct.timespec, align 8
%6 = alloca %struct.timespec, align 8
%7 = alloca %struct.timespec, align 8
%8 = getelementptr inbounds { i64, i64 }, ptr %6, i32 0, i32 0
store i64 %0, ptr %8, align 8
%9 = getelementptr inbounds { i64, i64 }, ptr %6, i32 0, i32 1
store i64 %1, ptr %9, align 8
%10 = getelementptr inbounds { i64, i64 }, ptr %7, i32 0, i32 0
store i64 %2, ptr %10, align 8
%11 = getelementptr inbounds { i64, i64 }, ptr %7, i32 0, i32 1
store i64 %3, ptr %11, align 8
%12 = getelementptr inbounds %struct.timespec, ptr %6, i32 0, i32 1
%13 = load i64, ptr %12, align 8
%14 = getelementptr inbounds %struct.timespec, ptr %7, i32 0, i32 1
%15 = load i64, ptr %14, align 8
%16 = sub nsw i64 %13, %15
%17 = getelementptr inbounds %struct.timespec, ptr %5, i32 0, i32 1
store i64 %16, ptr %17, align 8
%18 = getelementptr inbounds %struct.timespec, ptr %6, i32 0, i32 0
%19 = load i64, ptr %18, align 8
%20 = getelementptr inbounds %struct.timespec, ptr %7, i32 0, i32 0
%21 = load i64, ptr %20, align 8
%22 = sub nsw i64 %19, %21
%23 = getelementptr inbounds %struct.timespec, ptr %5, i32 0, i32 0
store i64 %22, ptr %23, align 8
%24 = call i32 @normalize(ptr noundef %5)
%25 = load { i64, i64 }, ptr %5, align 8
ret { i64, i64 } %25
}
declare i32 @normalize(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp2p440dvr.c'
source_filename = "/tmp/tmp2p440dvr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = call i32 @factorial(i32 noundef 4)
%2 = icmp eq i32 24, %1
%3 = zext i1 %2 to i32
%4 = call i32 @assert(i32 noundef %3)
%5 = call i32 @factorial(i32 noundef 5)
%6 = icmp eq i32 120, %5
%7 = zext i1 %6 to i32
%8 = call i32 @assert(i32 noundef %7)
ret i32 0
}
declare i32 @assert(i32 noundef) #1
declare i32 @factorial(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp2p440dvr.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = call i32 @factorial(i32 noundef 4)
%2 = icmp eq i32 24, %1
%3 = zext i1 %2 to i32
%4 = call i32 @assert(i32 noundef %3)
%5 = call i32 @factorial(i32 noundef 5)
%6 = icmp eq i32 120, %5
%7 = zext i1 %6 to i32
%8 = call i32 @assert(i32 noundef %7)
ret i32 0
}
declare i32 @assert(i32 noundef) #1
declare i32 @factorial(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpjz3cy_qx.c'
source_filename = "/tmp/tmpjz3cy_qx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @string_hash_djb2(ptr noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = icmp eq ptr %8, null
br i1 %9, label %10, label %11
10: ; preds = %1
store i64 0, ptr %2, align 8
br label %38
11: ; preds = %1
store i64 5381, ptr %4, align 8
%12 = load ptr, ptr %3, align 8
store ptr %12, ptr %5, align 8
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds i8, ptr %13, i64 0
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
store i32 %16, ptr %6, align 4
store i32 0, ptr %7, align 4
br label %17
17: ; preds = %20, %11
%18 = load i32, ptr %6, align 4
%19 = icmp ne i32 %18, 0
br i1 %19, label %20, label %36
20: ; preds = %17
%21 = load i64, ptr %4, align 8
%22 = shl i64 %21, 5
%23 = load i64, ptr %4, align 8
%24 = add i64 %22, %23
%25 = load i32, ptr %6, align 4
%26 = sext i32 %25 to i64
%27 = add i64 %24, %26
store i64 %27, ptr %4, align 8
%28 = load i32, ptr %7, align 4
%29 = add nsw i32 %28, 1
store i32 %29, ptr %7, align 4
%30 = load ptr, ptr %5, align 8
%31 = load i32, ptr %7, align 4
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i8, ptr %30, i64 %32
%34 = load i8, ptr %33, align 1
%35 = sext i8 %34 to i32
store i32 %35, ptr %6, align 4
br label %17, !llvm.loop !6
36: ; preds = %17
%37 = load i64, ptr %4, align 8
store i64 %37, ptr %2, align 8
br label %38
38: ; preds = %36, %10
%39 = load i64, ptr %2, align 8
ret i64 %39
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjz3cy_qx.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @string_hash_djb2(ptr noundef %0) #0 {
%2 = alloca i64, align 8
%3 = alloca ptr, align 8
%4 = alloca i64, align 8
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
%9 = icmp eq ptr %8, null
br i1 %9, label %10, label %11
10: ; preds = %1
store i64 0, ptr %2, align 8
br label %39
11: ; preds = %1
store i64 5381, ptr %4, align 8
%12 = load ptr, ptr %3, align 8
store ptr %12, ptr %5, align 8
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds i8, ptr %13, i64 0
%15 = load i8, ptr %14, align 1
%16 = sext i8 %15 to i32
store i32 %16, ptr %6, align 4
store i32 0, ptr %7, align 4
%17 = load i32, ptr %6, align 4
%18 = icmp ne i32 %17, 0
br i1 %18, label %.lr.ph, label %37
.lr.ph: ; preds = %11
br label %19
19: ; preds = %.lr.ph, %19
%20 = load i64, ptr %4, align 8
%21 = shl i64 %20, 5
%22 = load i64, ptr %4, align 8
%23 = add i64 %21, %22
%24 = load i32, ptr %6, align 4
%25 = sext i32 %24 to i64
%26 = add i64 %23, %25
store i64 %26, ptr %4, align 8
%27 = load i32, ptr %7, align 4
%28 = add nsw i32 %27, 1
store i32 %28, ptr %7, align 4
%29 = load ptr, ptr %5, align 8
%30 = load i32, ptr %7, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i8, ptr %29, i64 %31
%33 = load i8, ptr %32, align 1
%34 = sext i8 %33 to i32
store i32 %34, ptr %6, align 4
%35 = load i32, ptr %6, align 4
%36 = icmp ne i32 %35, 0
br i1 %36, label %19, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %19
br label %37
37: ; preds = %._crit_edge, %11
%38 = load i64, ptr %4, align 8
store i64 %38, ptr %2, align 8
br label %39
39: ; preds = %37, %10
%40 = load i64, ptr %2, align 8
ret i64 %40
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpveshymkl.c'
source_filename = "/tmp/tmpveshymkl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [41 x i8] c"Could not expand the cover page buffer -\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @alloc_cat(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 %3, align 8
%7 = call i32 @strlen(ptr noundef %6)
%8 = load ptr, ptr %4, align 8
%9 = call i32 @strlen(ptr noundef %8)
%10 = add nsw i32 %7, %9
%11 = add nsw i32 %10, 1
%12 = sext i32 %11 to i64
%13 = mul i64 1, %12
%14 = trunc i64 %13 to i32
%15 = call ptr @realloc(ptr noundef %5, i32 noundef %14)
store ptr %15, ptr %3, align 8
%16 = icmp ne ptr %15, null
br i1 %16, label %20, label %17
17: ; preds = %2
%18 = call i32 @perror(ptr noundef @.str)
%19 = call i32 @exit(i32 noundef -1) #3
unreachable
20: ; preds = %2
%21 = load ptr, ptr %3, align 8
%22 = load ptr, ptr %4, align 8
%23 = call ptr @strcat(ptr noundef %21, ptr noundef %22)
ret ptr %23
}
declare ptr @realloc(ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @strcat(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpveshymkl.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [41 x i8] c"Could not expand the cover page buffer -\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @alloc_cat(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 %3, align 8
%7 = call i32 @strlen(ptr noundef %6)
%8 = load ptr, ptr %4, align 8
%9 = call i32 @strlen(ptr noundef %8)
%10 = add nsw i32 %7, %9
%11 = add nsw i32 %10, 1
%12 = sext i32 %11 to i64
%13 = mul i64 1, %12
%14 = trunc i64 %13 to i32
%15 = call ptr @realloc(ptr noundef %5, i32 noundef %14)
store ptr %15, ptr %3, align 8
%16 = icmp ne ptr %15, null
br i1 %16, label %20, label %17
17: ; preds = %2
%18 = call i32 @perror(ptr noundef @.str)
%19 = call i32 @exit(i32 noundef -1) #3
unreachable
20: ; preds = %2
%21 = load ptr, ptr %3, align 8
%22 = load ptr, ptr %4, align 8
%23 = call ptr @strcat(ptr noundef %21, ptr noundef %22)
ret ptr %23
}
declare ptr @realloc(ptr noundef, i32 noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @perror(ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare ptr @strcat(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp5x5q2_ay.c'
source_filename = "/tmp/tmp5x5q2_ay.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bin_serial(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 @iso9660_serial(ptr noundef %5, ptr noundef %6, i32 noundef 2352, i32 noundef 24)
ret i32 %7
}
declare i32 @iso9660_serial(ptr 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/tmp5x5q2_ay.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @bin_serial(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 @iso9660_serial(ptr noundef %5, ptr noundef %6, i32 noundef 2352, i32 noundef 24)
ret i32 %7
}
declare i32 @iso9660_serial(ptr 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/tmplya2jts8.c'
source_filename = "/tmp/tmplya2jts8.c"
target datalayout = "e-m:e-p270: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/tmplya2jts8.c"
target datalayout = "e-m:e-p270: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/tmplnqbuhg_.c'
source_filename = "/tmp/tmplnqbuhg_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @bar()
%3 = call i32 (...) @foo()
ret i32 0
}
declare i32 @bar(...) #1
declare i32 @foo(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmplnqbuhg_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, ptr %1, align 4
%2 = call i32 (...) @bar()
%3 = call i32 (...) @foo()
ret i32 0
}
declare i32 @bar(...) #1
declare i32 @foo(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpqk_jjmey.c'
source_filename = "/tmp/tmpqk_jjmey.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rai2d(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%8 = load ptr, ptr %4, align 8
%9 = load ptr, ptr %8, align 8
store i32 0, ptr %9, align 4
store i32 0, ptr %7, align 4
br label %10
10: ; preds = %33, %3
%11 = load i32, ptr %7, align 4
%12 = load i32, ptr %5, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %36
14: ; preds = %10
%15 = load ptr, ptr %4, align 8
%16 = load i32, ptr %7, align 4
%17 = add nsw i32 %16, 1
%18 = sext i32 %17 to i64
%19 = mul i64 %18, 8
%20 = trunc i64 %19 to i32
%21 = call i64 @realloc(ptr noundef %15, i32 noundef %20)
%22 = inttoptr i64 %21 to ptr
store ptr %22, ptr %4, align 8
%23 = load i32, ptr %6, align 4
%24 = sext i32 %23 to i64
%25 = mul i64 %24, 4
%26 = trunc i64 %25 to i32
%27 = call i64 @malloc(i32 noundef %26)
%28 = inttoptr i64 %27 to ptr
%29 = load ptr, ptr %4, align 8
%30 = load i32, ptr %7, align 4
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds ptr, ptr %29, i64 %31
store ptr %28, ptr %32, align 8
br label %33
33: ; preds = %14
%34 = load i32, ptr %7, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %7, align 4
br label %10, !llvm.loop !6
36: ; preds = %10
%37 = load ptr, ptr %4, align 8
ret ptr %37
}
declare i64 @realloc(ptr noundef, i32 noundef) #1
declare i64 @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpqk_jjmey.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @rai2d(ptr noundef %0, i32 noundef %1, i32 noundef %2) #0 {
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
%6 = alloca i32, align 4
%7 = alloca i32, align 4
store ptr %0, ptr %4, align 8
store i32 %1, ptr %5, align 4
store i32 %2, ptr %6, align 4
%8 = load ptr, ptr %4, align 8
%9 = load ptr, ptr %8, align 8
store i32 0, ptr %9, align 4
store i32 0, ptr %7, align 4
%10 = load i32, ptr %7, align 4
%11 = load i32, ptr %5, align 4
%12 = icmp slt i32 %10, %11
br i1 %12, label %.lr.ph, label %38
.lr.ph: ; preds = %3
br label %13
13: ; preds = %.lr.ph, %32
%14 = load ptr, ptr %4, align 8
%15 = load i32, ptr %7, align 4
%16 = add nsw i32 %15, 1
%17 = sext i32 %16 to i64
%18 = mul i64 %17, 8
%19 = trunc i64 %18 to i32
%20 = call i64 @realloc(ptr noundef %14, i32 noundef %19)
%21 = inttoptr i64 %20 to ptr
store ptr %21, ptr %4, align 8
%22 = load i32, ptr %6, align 4
%23 = sext i32 %22 to i64
%24 = mul i64 %23, 4
%25 = trunc i64 %24 to i32
%26 = call i64 @malloc(i32 noundef %25)
%27 = inttoptr i64 %26 to ptr
%28 = load ptr, ptr %4, align 8
%29 = load i32, ptr %7, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds ptr, ptr %28, i64 %30
store ptr %27, ptr %31, align 8
br label %32
32: ; preds = %13
%33 = load i32, ptr %7, align 4
%34 = add nsw i32 %33, 1
store i32 %34, ptr %7, align 4
%35 = load i32, ptr %7, align 4
%36 = load i32, ptr %5, align 4
%37 = icmp slt i32 %35, %36
br i1 %37, label %13, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %32
br label %38
38: ; preds = %._crit_edge, %3
%39 = load ptr, ptr %4, align 8
ret ptr %39
}
declare i64 @realloc(ptr noundef, i32 noundef) #1
declare i64 @malloc(i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpjt2n49h1.c'
source_filename = "/tmp/tmpjt2n49h1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"NaN(%08X%08X)\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%.17g\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @dtoa_grisu3(double noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca double, 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 i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
store double %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%13 = load i32, ptr %4, align 8
store i32 %13, ptr %11, align 4
%14 = load ptr, ptr %5, align 8
store ptr %14, ptr %12, align 8
%15 = load ptr, ptr %5, align 8
%16 = call i32 @assert(ptr noundef %15)
%17 = load i32, ptr %11, align 4
%18 = shl i32 %17, 1
%19 = sext i32 %18 to i64
%20 = icmp ugt i64 %19, -9007199254740992
br i1 %20, label %21, label %28
21: ; preds = %2
%22 = load ptr, ptr %5, align 8
%23 = load i32, ptr %11, align 4
%24 = ashr i32 %23, 32
%25 = sitofp i32 %24 to double
%26 = load i32, ptr %11, align 4
%27 = call i32 (ptr, ptr, double, ...) @sprintf(ptr noundef %22, ptr noundef @.str, double noundef %25, i32 noundef %26)
store i32 %27, ptr %3, align 4
br label %304
28: ; preds = %2
%29 = load i32, ptr %11, align 4
%30 = sext i32 %29 to i64
%31 = and i64 %30, -9223372036854775808
%32 = icmp ne i64 %31, 0
br i1 %32, label %33, label %42
33: ; preds = %28
%34 = load ptr, ptr %12, align 8
%35 = getelementptr inbounds i8, ptr %34, i32 1
store ptr %35, ptr %12, align 8
store i8 45, ptr %34, align 1
%36 = load double, ptr %4, align 8
%37 = fneg double %36
store double %37, ptr %4, align 8
%38 = load i32, ptr %11, align 4
%39 = sext i32 %38 to i64
%40 = xor i64 %39, -9223372036854775808
%41 = trunc i64 %40 to i32
store i32 %41, ptr %11, align 4
br label %42
42: ; preds = %33, %28
%43 = load i32, ptr %11, align 4
%44 = icmp ne i32 %43, 0
br i1 %44, label %55, label %45
45: ; preds = %42
%46 = load ptr, ptr %12, align 8
%47 = getelementptr inbounds i8, ptr %46, i32 1
store ptr %47, ptr %12, align 8
store i8 48, ptr %46, align 1
%48 = load ptr, ptr %12, align 8
store i8 0, ptr %48, align 1
%49 = load ptr, ptr %12, align 8
%50 = load ptr, ptr %5, align 8
%51 = ptrtoint ptr %49 to i64
%52 = ptrtoint ptr %50 to i64
%53 = sub i64 %51, %52
%54 = trunc i64 %53 to i32
store i32 %54, ptr %3, align 4
br label %304
55: ; preds = %42
%56 = load i32, ptr %11, align 4
%57 = sext i32 %56 to i64
%58 = icmp eq i64 %57, 9218868437227405312
br i1 %58, label %59, label %73
59: ; preds = %55
%60 = load ptr, ptr %12, align 8
%61 = getelementptr inbounds i8, ptr %60, i32 1
store ptr %61, ptr %12, align 8
store i8 105, ptr %60, align 1
%62 = load ptr, ptr %12, align 8
%63 = getelementptr inbounds i8, ptr %62, i32 1
store ptr %63, ptr %12, align 8
store i8 110, ptr %62, align 1
%64 = load ptr, ptr %12, align 8
%65 = getelementptr inbounds i8, ptr %64, i32 1
store ptr %65, ptr %12, align 8
store i8 102, ptr %64, align 1
%66 = load ptr, ptr %12, align 8
store i8 0, ptr %66, align 1
%67 = load ptr, ptr %12, align 8
%68 = load ptr, ptr %5, align 8
%69 = ptrtoint ptr %67 to i64
%70 = ptrtoint ptr %68 to i64
%71 = sub i64 %69, %70
%72 = trunc i64 %71 to i32
store i32 %72, ptr %3, align 4
br label %304
73: ; preds = %55
%74 = load double, ptr %4, align 8
%75 = load ptr, ptr %12, align 8
%76 = call i32 @grisu3(double noundef %74, ptr noundef %75, ptr noundef %7, ptr noundef %6)
store i32 %76, ptr %8, align 4
%77 = load i32, ptr %8, align 4
%78 = icmp ne i32 %77, 0
br i1 %78, label %90, label %79
79: ; preds = %73
%80 = load ptr, ptr %12, align 8
%81 = load double, ptr %4, align 8
%82 = call i32 (ptr, ptr, double, ...) @sprintf(ptr noundef %80, ptr noundef @.str.1, double noundef %81)
%83 = load ptr, ptr %12, align 8
%84 = load ptr, ptr %5, align 8
%85 = ptrtoint ptr %83 to i64
%86 = ptrtoint ptr %84 to i64
%87 = sub i64 %85, %86
%88 = trunc i64 %87 to i32
%89 = add nsw i32 %82, %88
store i32 %89, ptr %3, align 4
br label %304
90: ; preds = %73
%91 = load i32, ptr %6, align 4
%92 = icmp sge i32 %91, 0
br i1 %92, label %93, label %130
93: ; preds = %90
%94 = load i32, ptr %6, align 4
%95 = load i32, ptr %7, align 4
%96 = sub nsw i32 15, %95
%97 = icmp sge i32 2, %96
br i1 %97, label %98, label %99
98: ; preds = %93
br label %102
99: ; preds = %93
%100 = load i32, ptr %7, align 4
%101 = sub nsw i32 15, %100
br label %102
102: ; preds = %99, %98
%103 = phi i32 [ 2, %98 ], [ %101, %99 ]
%104 = icmp sle i32 %94, %103
br i1 %104, label %105, label %130
105: ; preds = %102
br label %106
106: ; preds = %110, %105
%107 = load i32, ptr %6, align 4
%108 = add nsw i32 %107, -1
store i32 %108, ptr %6, align 4
%109 = icmp sgt i32 %107, 0
br i1 %109, label %110, label %116
110: ; preds = %106
%111 = load ptr, ptr %12, align 8
%112 = load i32, ptr %7, align 4
%113 = add nsw i32 %112, 1
store i32 %113, ptr %7, align 4
%114 = sext i32 %112 to i64
%115 = getelementptr inbounds i8, ptr %111, i64 %114
store i8 48, ptr %115, align 1
br label %106, !llvm.loop !6
116: ; preds = %106
%117 = load ptr, ptr %12, align 8
%118 = load i32, ptr %7, align 4
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds i8, ptr %117, i64 %119
store i8 0, ptr %120, align 1
%121 = load ptr, ptr %12, align 8
%122 = load i32, ptr %7, align 4
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds i8, ptr %121, i64 %123
%125 = load ptr, ptr %5, align 8
%126 = ptrtoint ptr %124 to i64
%127 = ptrtoint ptr %125 to i64
%128 = sub i64 %126, %127
%129 = trunc i64 %128 to i32
store i32 %129, ptr %3, align 4
br label %304
130: ; preds = %102, %90
%131 = load i32, ptr %6, align 4
%132 = sub nsw i32 0, %131
%133 = load i32, ptr %7, align 4
%134 = sub nsw i32 %133, 1
%135 = icmp sge i32 1, %134
br i1 %135, label %136, label %137
136: ; preds = %130
br label %140
137: ; preds = %130
%138 = load i32, ptr %7, align 4
%139 = sub nsw i32 %138, 1
br label %140
140: ; preds = %137, %136
%141 = phi i32 [ 1, %136 ], [ %139, %137 ]
%142 = icmp sle i32 %132, %141
br i1 %142, label %143, label %146
143: ; preds = %140
%144 = load i32, ptr %6, align 4
%145 = sub nsw i32 0, %144
br label %156
146: ; preds = %140
%147 = load i32, ptr %7, align 4
%148 = sub nsw i32 %147, 1
%149 = icmp sge i32 1, %148
br i1 %149, label %150, label %151
150: ; preds = %146
br label %154
151: ; preds = %146
%152 = load i32, ptr %7, align 4
%153 = sub nsw i32 %152, 1
br label %154
154: ; preds = %151, %150
%155 = phi i32 [ 1, %150 ], [ %153, %151 ]
br label %156
156: ; preds = %154, %143
%157 = phi i32 [ %145, %143 ], [ %155, %154 ]
store i32 %157, ptr %9, align 4
%158 = load i32, ptr %6, align 4
%159 = icmp slt i32 %158, 0
br i1 %159, label %160, label %207
160: ; preds = %156
%161 = load i32, ptr %7, align 4
%162 = load i32, ptr %6, align 4
%163 = add nsw i32 %161, %162
%164 = icmp sgt i32 %163, -3
br i1 %164, label %165, label %207
165: ; preds = %160
%166 = load i32, ptr %7, align 4
%167 = load i32, ptr %6, align 4
%168 = sub nsw i32 0, %167
%169 = icmp sle i32 %166, %168
br i1 %169, label %170, label %207
170: ; preds = %165
%171 = load ptr, ptr %12, align 8
%172 = getelementptr inbounds i8, ptr %171, i64 2
%173 = load i32, ptr %6, align 4
%174 = sext i32 %173 to i64
%175 = sub i64 0, %174
%176 = getelementptr inbounds i8, ptr %172, i64 %175
%177 = load i32, ptr %7, align 4
%178 = sext i32 %177 to i64
%179 = sub i64 0, %178
%180 = getelementptr inbounds i8, ptr %176, i64 %179
%181 = load ptr, ptr %12, align 8
%182 = load i32, ptr %7, align 4
%183 = call i32 @memmove(ptr noundef %180, ptr noundef %181, i32 noundef %182)
%184 = load ptr, ptr %12, align 8
%185 = getelementptr inbounds i8, ptr %184, i64 0
store i8 48, ptr %185, align 1
%186 = load ptr, ptr %12, align 8
%187 = getelementptr inbounds i8, ptr %186, i64 1
store i8 46, ptr %187, align 1
store i32 2, ptr %10, align 4
br label %188
188: ; preds = %200, %170
%189 = load i32, ptr %10, align 4
%190 = load i32, ptr %6, align 4
%191 = sub nsw i32 2, %190
%192 = load i32, ptr %7, align 4
%193 = sub nsw i32 %191, %192
%194 = icmp slt i32 %189, %193
br i1 %194, label %195, label %203
195: ; preds = %188
%196 = load ptr, ptr %12, align 8
%197 = load i32, ptr %10, align 4
%198 = sext i32 %197 to i64
%199 = getelementptr inbounds i8, ptr %196, i64 %198
store i8 48, ptr %199, align 1
br label %200
200: ; preds = %195
%201 = load i32, ptr %10, align 4
%202 = add nsw i32 %201, 1
store i32 %202, ptr %10, align 4
br label %188, !llvm.loop !8
203: ; preds = %188
%204 = load i32, ptr %10, align 4
%205 = load i32, ptr %7, align 4
%206 = add nsw i32 %205, %204
store i32 %206, ptr %7, align 4
br label %290
207: ; preds = %165, %160, %156
%208 = load i32, ptr %6, align 4
%209 = icmp slt i32 %208, 0
br i1 %209, label %210, label %266
210: ; preds = %207
%211 = load i32, ptr %7, align 4
%212 = icmp sgt i32 %211, 1
br i1 %212, label %213, label %266
213: ; preds = %210
store i32 0, ptr %10, align 4
br label %214
214: ; preds = %233, %213
%215 = load i32, ptr %10, align 4
%216 = load i32, ptr %9, align 4
%217 = icmp slt i32 %215, %216
br i1 %217, label %218, label %236
218: ; preds = %214
%219 = load ptr, ptr %12, align 8
%220 = load i32, ptr %7, align 4
%221 = load i32, ptr %10, align 4
%222 = sub nsw i32 %220, %221
%223 = sub nsw i32 %222, 1
%224 = sext i32 %223 to i64
%225 = getelementptr inbounds i8, ptr %219, i64 %224
%226 = load i8, ptr %225, align 1
%227 = load ptr, ptr %12, align 8
%228 = load i32, ptr %7, align 4
%229 = load i32, ptr %10, align 4
%230 = sub nsw i32 %228, %229
%231 = sext i32 %230 to i64
%232 = getelementptr inbounds i8, ptr %227, i64 %231
store i8 %226, ptr %232, align 1
br label %233
233: ; preds = %218
%234 = load i32, ptr %10, align 4
%235 = add nsw i32 %234, 1
store i32 %235, ptr %10, align 4
br label %214, !llvm.loop !9
236: ; preds = %214
%237 = load ptr, ptr %12, align 8
%238 = load i32, ptr %7, align 4
%239 = add nsw i32 %238, 1
store i32 %239, ptr %7, align 4
%240 = load i32, ptr %9, align 4
%241 = sub nsw i32 %238, %240
%242 = sext i32 %241 to i64
%243 = getelementptr inbounds i8, ptr %237, i64 %242
store i8 46, ptr %243, align 1
%244 = load i32, ptr %9, align 4
%245 = load i32, ptr %6, align 4
%246 = add nsw i32 %245, %244
store i32 %246, ptr %6, align 4
%247 = load i32, ptr %6, align 4
%248 = icmp ne i32 %247, 0
br i1 %248, label %249, label %265
249: ; preds = %236
%250 = load ptr, ptr %12, align 8
%251 = load i32, ptr %7, align 4
%252 = add nsw i32 %251, 1
store i32 %252, ptr %7, align 4
%253 = sext i32 %251 to i64
%254 = getelementptr inbounds i8, ptr %250, i64 %253
store i8 101, ptr %254, align 1
%255 = load i32, ptr %6, align 4
%256 = load ptr, ptr %12, align 8
%257 = load i32, ptr %7, align 4
%258 = sext i32 %257 to i64
%259 = getelementptr inbounds i8, ptr %256, i64 %258
%260 = call i64 @i_to_str(i32 noundef %255, ptr noundef %259)
%261 = load i32, ptr %7, align 4
%262 = sext i32 %261 to i64
%263 = add nsw i64 %262, %260
%264 = trunc i64 %263 to i32
store i32 %264, ptr %7, align 4
br label %265
265: ; preds = %249, %236
br label %289
266: ; preds = %210, %207
%267 = load i32, ptr %6, align 4
%268 = icmp slt i32 %267, 0
br i1 %268, label %272, label %269
269: ; preds = %266
%270 = load i32, ptr %6, align 4
%271 = icmp sgt i32 %270, 2
br i1 %271, label %272, label %288
272: ; preds = %269, %266
%273 = load ptr, ptr %12, align 8
%274 = load i32, ptr %7, align 4
%275 = add nsw i32 %274, 1
store i32 %275, ptr %7, align 4
%276 = sext i32 %274 to i64
%277 = getelementptr inbounds i8, ptr %273, i64 %276
store i8 101, ptr %277, align 1
%278 = load i32, ptr %6, align 4
%279 = load ptr, ptr %12, align 8
%280 = load i32, ptr %7, align 4
%281 = sext i32 %280 to i64
%282 = getelementptr inbounds i8, ptr %279, i64 %281
%283 = call i64 @i_to_str(i32 noundef %278, ptr noundef %282)
%284 = load i32, ptr %7, align 4
%285 = sext i32 %284 to i64
%286 = add nsw i64 %285, %283
%287 = trunc i64 %286 to i32
store i32 %287, ptr %7, align 4
br label %288
288: ; preds = %272, %269
br label %289
289: ; preds = %288, %265
br label %290
290: ; preds = %289, %203
%291 = load ptr, ptr %12, align 8
%292 = load i32, ptr %7, align 4
%293 = sext i32 %292 to i64
%294 = getelementptr inbounds i8, ptr %291, i64 %293
store i8 0, ptr %294, align 1
%295 = load ptr, ptr %12, align 8
%296 = load i32, ptr %7, align 4
%297 = sext i32 %296 to i64
%298 = getelementptr inbounds i8, ptr %295, i64 %297
%299 = load ptr, ptr %5, align 8
%300 = ptrtoint ptr %298 to i64
%301 = ptrtoint ptr %299 to i64
%302 = sub i64 %300, %301
%303 = trunc i64 %302 to i32
store i32 %303, ptr %3, align 4
br label %304
304: ; preds = %290, %116, %79, %59, %45, %21
%305 = load i32, ptr %3, align 4
ret i32 %305
}
declare i32 @assert(ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, double noundef, ...) #1
declare i32 @grisu3(double noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @memmove(ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @i_to_str(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpjt2n49h1.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"NaN(%08X%08X)\00", align 1
@.str.1 = private unnamed_addr constant [6 x i8] c"%.17g\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @dtoa_grisu3(double noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca double, 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 i32, align 4
%11 = alloca i32, align 4
%12 = alloca ptr, align 8
store double %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
%13 = load i32, ptr %4, align 8
store i32 %13, ptr %11, align 4
%14 = load ptr, ptr %5, align 8
store ptr %14, ptr %12, align 8
%15 = load ptr, ptr %5, align 8
%16 = call i32 @assert(ptr noundef %15)
%17 = load i32, ptr %11, align 4
%18 = shl i32 %17, 1
%19 = sext i32 %18 to i64
%20 = icmp ugt i64 %19, -9007199254740992
br i1 %20, label %21, label %28
21: ; preds = %2
%22 = load ptr, ptr %5, align 8
%23 = load i32, ptr %11, align 4
%24 = ashr i32 %23, 32
%25 = sitofp i32 %24 to double
%26 = load i32, ptr %11, align 4
%27 = call i32 (ptr, ptr, double, ...) @sprintf(ptr noundef %22, ptr noundef @.str, double noundef %25, i32 noundef %26)
store i32 %27, ptr %3, align 4
br label %313
28: ; preds = %2
%29 = load i32, ptr %11, align 4
%30 = sext i32 %29 to i64
%31 = and i64 %30, -9223372036854775808
%32 = icmp ne i64 %31, 0
br i1 %32, label %33, label %42
33: ; preds = %28
%34 = load ptr, ptr %12, align 8
%35 = getelementptr inbounds i8, ptr %34, i32 1
store ptr %35, ptr %12, align 8
store i8 45, ptr %34, align 1
%36 = load double, ptr %4, align 8
%37 = fneg double %36
store double %37, ptr %4, align 8
%38 = load i32, ptr %11, align 4
%39 = sext i32 %38 to i64
%40 = xor i64 %39, -9223372036854775808
%41 = trunc i64 %40 to i32
store i32 %41, ptr %11, align 4
br label %42
42: ; preds = %33, %28
%43 = load i32, ptr %11, align 4
%44 = icmp ne i32 %43, 0
br i1 %44, label %55, label %45
45: ; preds = %42
%46 = load ptr, ptr %12, align 8
%47 = getelementptr inbounds i8, ptr %46, i32 1
store ptr %47, ptr %12, align 8
store i8 48, ptr %46, align 1
%48 = load ptr, ptr %12, align 8
store i8 0, ptr %48, align 1
%49 = load ptr, ptr %12, align 8
%50 = load ptr, ptr %5, align 8
%51 = ptrtoint ptr %49 to i64
%52 = ptrtoint ptr %50 to i64
%53 = sub i64 %51, %52
%54 = trunc i64 %53 to i32
store i32 %54, ptr %3, align 4
br label %313
55: ; preds = %42
%56 = load i32, ptr %11, align 4
%57 = sext i32 %56 to i64
%58 = icmp eq i64 %57, 9218868437227405312
br i1 %58, label %59, label %73
59: ; preds = %55
%60 = load ptr, ptr %12, align 8
%61 = getelementptr inbounds i8, ptr %60, i32 1
store ptr %61, ptr %12, align 8
store i8 105, ptr %60, align 1
%62 = load ptr, ptr %12, align 8
%63 = getelementptr inbounds i8, ptr %62, i32 1
store ptr %63, ptr %12, align 8
store i8 110, ptr %62, align 1
%64 = load ptr, ptr %12, align 8
%65 = getelementptr inbounds i8, ptr %64, i32 1
store ptr %65, ptr %12, align 8
store i8 102, ptr %64, align 1
%66 = load ptr, ptr %12, align 8
store i8 0, ptr %66, align 1
%67 = load ptr, ptr %12, align 8
%68 = load ptr, ptr %5, align 8
%69 = ptrtoint ptr %67 to i64
%70 = ptrtoint ptr %68 to i64
%71 = sub i64 %69, %70
%72 = trunc i64 %71 to i32
store i32 %72, ptr %3, align 4
br label %313
73: ; preds = %55
%74 = load double, ptr %4, align 8
%75 = load ptr, ptr %12, align 8
%76 = call i32 @grisu3(double noundef %74, ptr noundef %75, ptr noundef %7, ptr noundef %6)
store i32 %76, ptr %8, align 4
%77 = load i32, ptr %8, align 4
%78 = icmp ne i32 %77, 0
br i1 %78, label %90, label %79
79: ; preds = %73
%80 = load ptr, ptr %12, align 8
%81 = load double, ptr %4, align 8
%82 = call i32 (ptr, ptr, double, ...) @sprintf(ptr noundef %80, ptr noundef @.str.1, double noundef %81)
%83 = load ptr, ptr %12, align 8
%84 = load ptr, ptr %5, align 8
%85 = ptrtoint ptr %83 to i64
%86 = ptrtoint ptr %84 to i64
%87 = sub i64 %85, %86
%88 = trunc i64 %87 to i32
%89 = add nsw i32 %82, %88
store i32 %89, ptr %3, align 4
br label %313
90: ; preds = %73
%91 = load i32, ptr %6, align 4
%92 = icmp sge i32 %91, 0
br i1 %92, label %93, label %132
93: ; preds = %90
%94 = load i32, ptr %6, align 4
%95 = load i32, ptr %7, align 4
%96 = sub nsw i32 15, %95
%97 = icmp sge i32 2, %96
br i1 %97, label %98, label %99
98: ; preds = %93
br label %102
99: ; preds = %93
%100 = load i32, ptr %7, align 4
%101 = sub nsw i32 15, %100
br label %102
102: ; preds = %99, %98
%103 = phi i32 [ 2, %98 ], [ %101, %99 ]
%104 = icmp sle i32 %94, %103
br i1 %104, label %105, label %132
105: ; preds = %102
%106 = load i32, ptr %6, align 4
%107 = add nsw i32 %106, -1
store i32 %107, ptr %6, align 4
%108 = icmp sgt i32 %106, 0
br i1 %108, label %.lr.ph5, label %118
.lr.ph5: ; preds = %105
br label %109
109: ; preds = %.lr.ph5, %109
%110 = load ptr, ptr %12, align 8
%111 = load i32, ptr %7, align 4
%112 = add nsw i32 %111, 1
store i32 %112, ptr %7, align 4
%113 = sext i32 %111 to i64
%114 = getelementptr inbounds i8, ptr %110, i64 %113
store i8 48, ptr %114, align 1
%115 = load i32, ptr %6, align 4
%116 = add nsw i32 %115, -1
store i32 %116, ptr %6, align 4
%117 = icmp sgt i32 %115, 0
br i1 %117, label %109, label %._crit_edge6, !llvm.loop !6
._crit_edge6: ; preds = %109
br label %118
118: ; preds = %._crit_edge6, %105
%119 = load ptr, ptr %12, align 8
%120 = load i32, ptr %7, align 4
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds i8, ptr %119, i64 %121
store i8 0, ptr %122, align 1
%123 = load ptr, ptr %12, align 8
%124 = load i32, ptr %7, align 4
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds i8, ptr %123, i64 %125
%127 = load ptr, ptr %5, align 8
%128 = ptrtoint ptr %126 to i64
%129 = ptrtoint ptr %127 to i64
%130 = sub i64 %128, %129
%131 = trunc i64 %130 to i32
store i32 %131, ptr %3, align 4
br label %313
132: ; preds = %102, %90
%133 = load i32, ptr %6, align 4
%134 = sub nsw i32 0, %133
%135 = load i32, ptr %7, align 4
%136 = sub nsw i32 %135, 1
%137 = icmp sge i32 1, %136
br i1 %137, label %138, label %139
138: ; preds = %132
br label %142
139: ; preds = %132
%140 = load i32, ptr %7, align 4
%141 = sub nsw i32 %140, 1
br label %142
142: ; preds = %139, %138
%143 = phi i32 [ 1, %138 ], [ %141, %139 ]
%144 = icmp sle i32 %134, %143
br i1 %144, label %145, label %148
145: ; preds = %142
%146 = load i32, ptr %6, align 4
%147 = sub nsw i32 0, %146
br label %158
148: ; preds = %142
%149 = load i32, ptr %7, align 4
%150 = sub nsw i32 %149, 1
%151 = icmp sge i32 1, %150
br i1 %151, label %152, label %153
152: ; preds = %148
br label %156
153: ; preds = %148
%154 = load i32, ptr %7, align 4
%155 = sub nsw i32 %154, 1
br label %156
156: ; preds = %153, %152
%157 = phi i32 [ 1, %152 ], [ %155, %153 ]
br label %158
158: ; preds = %156, %145
%159 = phi i32 [ %147, %145 ], [ %157, %156 ]
store i32 %159, ptr %9, align 4
%160 = load i32, ptr %6, align 4
%161 = icmp slt i32 %160, 0
br i1 %161, label %162, label %214
162: ; preds = %158
%163 = load i32, ptr %7, align 4
%164 = load i32, ptr %6, align 4
%165 = add nsw i32 %163, %164
%166 = icmp sgt i32 %165, -3
br i1 %166, label %167, label %214
167: ; preds = %162
%168 = load i32, ptr %7, align 4
%169 = load i32, ptr %6, align 4
%170 = sub nsw i32 0, %169
%171 = icmp sle i32 %168, %170
br i1 %171, label %172, label %214
172: ; preds = %167
%173 = load ptr, ptr %12, align 8
%174 = getelementptr inbounds i8, ptr %173, i64 2
%175 = load i32, ptr %6, align 4
%176 = sext i32 %175 to i64
%177 = sub i64 0, %176
%178 = getelementptr inbounds i8, ptr %174, i64 %177
%179 = load i32, ptr %7, align 4
%180 = sext i32 %179 to i64
%181 = sub i64 0, %180
%182 = getelementptr inbounds i8, ptr %178, i64 %181
%183 = load ptr, ptr %12, align 8
%184 = load i32, ptr %7, align 4
%185 = call i32 @memmove(ptr noundef %182, ptr noundef %183, i32 noundef %184)
%186 = load ptr, ptr %12, align 8
%187 = getelementptr inbounds i8, ptr %186, i64 0
store i8 48, ptr %187, align 1
%188 = load ptr, ptr %12, align 8
%189 = getelementptr inbounds i8, ptr %188, i64 1
store i8 46, ptr %189, align 1
store i32 2, ptr %10, align 4
%190 = load i32, ptr %10, align 4
%191 = load i32, ptr %6, align 4
%192 = sub nsw i32 2, %191
%193 = load i32, ptr %7, align 4
%194 = sub nsw i32 %192, %193
%195 = icmp slt i32 %190, %194
br i1 %195, label %.lr.ph2, label %210
.lr.ph2: ; preds = %172
br label %196
196: ; preds = %.lr.ph2, %201
%197 = load ptr, ptr %12, align 8
%198 = load i32, ptr %10, align 4
%199 = sext i32 %198 to i64
%200 = getelementptr inbounds i8, ptr %197, i64 %199
store i8 48, ptr %200, align 1
br label %201
201: ; preds = %196
%202 = load i32, ptr %10, align 4
%203 = add nsw i32 %202, 1
store i32 %203, ptr %10, align 4
%204 = load i32, ptr %10, align 4
%205 = load i32, ptr %6, align 4
%206 = sub nsw i32 2, %205
%207 = load i32, ptr %7, align 4
%208 = sub nsw i32 %206, %207
%209 = icmp slt i32 %204, %208
br i1 %209, label %196, label %._crit_edge3, !llvm.loop !8
._crit_edge3: ; preds = %201
br label %210
210: ; preds = %._crit_edge3, %172
%211 = load i32, ptr %10, align 4
%212 = load i32, ptr %7, align 4
%213 = add nsw i32 %212, %211
store i32 %213, ptr %7, align 4
br label %299
214: ; preds = %167, %162, %158
%215 = load i32, ptr %6, align 4
%216 = icmp slt i32 %215, 0
br i1 %216, label %217, label %275
217: ; preds = %214
%218 = load i32, ptr %7, align 4
%219 = icmp sgt i32 %218, 1
br i1 %219, label %220, label %275
220: ; preds = %217
store i32 0, ptr %10, align 4
%221 = load i32, ptr %10, align 4
%222 = load i32, ptr %9, align 4
%223 = icmp slt i32 %221, %222
br i1 %223, label %.lr.ph, label %245
.lr.ph: ; preds = %220
br label %224
224: ; preds = %.lr.ph, %239
%225 = load ptr, ptr %12, align 8
%226 = load i32, ptr %7, align 4
%227 = load i32, ptr %10, align 4
%228 = sub nsw i32 %226, %227
%229 = sub nsw i32 %228, 1
%230 = sext i32 %229 to i64
%231 = getelementptr inbounds i8, ptr %225, i64 %230
%232 = load i8, ptr %231, align 1
%233 = load ptr, ptr %12, align 8
%234 = load i32, ptr %7, align 4
%235 = load i32, ptr %10, align 4
%236 = sub nsw i32 %234, %235
%237 = sext i32 %236 to i64
%238 = getelementptr inbounds i8, ptr %233, i64 %237
store i8 %232, ptr %238, align 1
br label %239
239: ; preds = %224
%240 = load i32, ptr %10, align 4
%241 = add nsw i32 %240, 1
store i32 %241, ptr %10, align 4
%242 = load i32, ptr %10, align 4
%243 = load i32, ptr %9, align 4
%244 = icmp slt i32 %242, %243
br i1 %244, label %224, label %._crit_edge, !llvm.loop !9
._crit_edge: ; preds = %239
br label %245
245: ; preds = %._crit_edge, %220
%246 = load ptr, ptr %12, align 8
%247 = load i32, ptr %7, align 4
%248 = add nsw i32 %247, 1
store i32 %248, ptr %7, align 4
%249 = load i32, ptr %9, align 4
%250 = sub nsw i32 %247, %249
%251 = sext i32 %250 to i64
%252 = getelementptr inbounds i8, ptr %246, i64 %251
store i8 46, ptr %252, align 1
%253 = load i32, ptr %9, align 4
%254 = load i32, ptr %6, align 4
%255 = add nsw i32 %254, %253
store i32 %255, ptr %6, align 4
%256 = load i32, ptr %6, align 4
%257 = icmp ne i32 %256, 0
br i1 %257, label %258, label %274
258: ; preds = %245
%259 = load ptr, ptr %12, align 8
%260 = load i32, ptr %7, align 4
%261 = add nsw i32 %260, 1
store i32 %261, ptr %7, align 4
%262 = sext i32 %260 to i64
%263 = getelementptr inbounds i8, ptr %259, i64 %262
store i8 101, ptr %263, align 1
%264 = load i32, ptr %6, align 4
%265 = load ptr, ptr %12, align 8
%266 = load i32, ptr %7, align 4
%267 = sext i32 %266 to i64
%268 = getelementptr inbounds i8, ptr %265, i64 %267
%269 = call i64 @i_to_str(i32 noundef %264, ptr noundef %268)
%270 = load i32, ptr %7, align 4
%271 = sext i32 %270 to i64
%272 = add nsw i64 %271, %269
%273 = trunc i64 %272 to i32
store i32 %273, ptr %7, align 4
br label %274
274: ; preds = %258, %245
br label %298
275: ; preds = %217, %214
%276 = load i32, ptr %6, align 4
%277 = icmp slt i32 %276, 0
br i1 %277, label %281, label %278
278: ; preds = %275
%279 = load i32, ptr %6, align 4
%280 = icmp sgt i32 %279, 2
br i1 %280, label %281, label %297
281: ; preds = %278, %275
%282 = load ptr, ptr %12, align 8
%283 = load i32, ptr %7, align 4
%284 = add nsw i32 %283, 1
store i32 %284, ptr %7, align 4
%285 = sext i32 %283 to i64
%286 = getelementptr inbounds i8, ptr %282, i64 %285
store i8 101, ptr %286, align 1
%287 = load i32, ptr %6, align 4
%288 = load ptr, ptr %12, align 8
%289 = load i32, ptr %7, align 4
%290 = sext i32 %289 to i64
%291 = getelementptr inbounds i8, ptr %288, i64 %290
%292 = call i64 @i_to_str(i32 noundef %287, ptr noundef %291)
%293 = load i32, ptr %7, align 4
%294 = sext i32 %293 to i64
%295 = add nsw i64 %294, %292
%296 = trunc i64 %295 to i32
store i32 %296, ptr %7, align 4
br label %297
297: ; preds = %281, %278
br label %298
298: ; preds = %297, %274
br label %299
299: ; preds = %298, %210
%300 = load ptr, ptr %12, align 8
%301 = load i32, ptr %7, align 4
%302 = sext i32 %301 to i64
%303 = getelementptr inbounds i8, ptr %300, i64 %302
store i8 0, ptr %303, align 1
%304 = load ptr, ptr %12, align 8
%305 = load i32, ptr %7, align 4
%306 = sext i32 %305 to i64
%307 = getelementptr inbounds i8, ptr %304, i64 %306
%308 = load ptr, ptr %5, align 8
%309 = ptrtoint ptr %307 to i64
%310 = ptrtoint ptr %308 to i64
%311 = sub i64 %309, %310
%312 = trunc i64 %311 to i32
store i32 %312, ptr %3, align 4
br label %313
313: ; preds = %299, %118, %79, %59, %45, %21
%314 = load i32, ptr %3, align 4
ret i32 %314
}
declare i32 @assert(ptr noundef) #1
declare i32 @sprintf(ptr noundef, ptr noundef, double noundef, ...) #1
declare i32 @grisu3(double noundef, ptr noundef, ptr noundef, ptr noundef) #1
declare i32 @memmove(ptr noundef, ptr noundef, i32 noundef) #1
declare i64 @i_to_str(i32 noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
|
; ModuleID = '/tmp/tmphg6j_z4n.c'
source_filename = "/tmp/tmphg6j_z4n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [20 x i8] c"pid du p\C3\A8re : %d \0A\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c" [1 %d : %d] \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
@.str.4 = private unnamed_addr constant [14 x i8] c" [2 %d : %d] \00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c".\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = call i32 (...) @getpid()
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %4)
%6 = call i32 (...) @fork()
store i32 %6, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %34
9: ; preds = %0
store i32 0, ptr %1, align 4
br label %10
10: ; preds = %29, %9
%11 = load i32, ptr %1, align 4
%12 = icmp slt i32 %11, 500
br i1 %12, label %13, label %32
13: ; preds = %10
%14 = call i32 (...) @getpid()
%15 = load i32, ptr %1, align 4
%16 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %14, i32 noundef %15)
store i32 0, ptr %2, align 4
br label %17
17: ; preds = %24, %13
%18 = load i32, ptr %2, align 4
%19 = icmp slt i32 %18, 100
br i1 %19, label %20, label %27
20: ; preds = %17
%21 = call i32 @exp(double noundef 1.000000e+01)
%22 = call i32 @log(i32 noundef %21)
%23 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %24
24: ; preds = %20
%25 = load i32, ptr %2, align 4
%26 = add nsw i32 %25, 1
store i32 %26, ptr %2, align 4
br label %17, !llvm.loop !6
27: ; preds = %17
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %29
29: ; preds = %27
%30 = load i32, ptr %1, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %1, align 4
br label %10, !llvm.loop !8
32: ; preds = %10
%33 = call i32 @exit(i32 noundef 0) #3
unreachable
34: ; preds = %0
%35 = call i32 (...) @fork()
store i32 %35, ptr %3, align 4
%36 = load i32, ptr %3, align 4
%37 = icmp eq i32 %36, 0
br i1 %37, label %38, label %63
38: ; preds = %34
store i32 500, ptr %1, align 4
br label %39
39: ; preds = %58, %38
%40 = load i32, ptr %1, align 4
%41 = icmp slt i32 %40, 1000
br i1 %41, label %42, label %61
42: ; preds = %39
%43 = call i32 (...) @getpid()
%44 = load i32, ptr %1, align 4
%45 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %43, i32 noundef %44)
store i32 0, ptr %2, align 4
br label %46
46: ; preds = %53, %42
%47 = load i32, ptr %2, align 4
%48 = icmp slt i32 %47, 100
br i1 %48, label %49, label %56
49: ; preds = %46
%50 = call i32 @exp(double noundef 1.000000e+01)
%51 = call i32 @log(i32 noundef %50)
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
br label %53
53: ; preds = %49
%54 = load i32, ptr %2, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %2, align 4
br label %46, !llvm.loop !9
56: ; preds = %46
%57 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %58
58: ; preds = %56
%59 = load i32, ptr %1, align 4
%60 = add nsw i32 %59, 1
store i32 %60, ptr %1, align 4
br label %39, !llvm.loop !10
61: ; preds = %39
%62 = call i32 @exit(i32 noundef 0) #3
unreachable
63: ; preds = %34
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @getpid(...) #1
declare i32 @fork(...) #1
declare i32 @log(i32 noundef) #1
declare i32 @exp(double noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphg6j_z4n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [20 x i8] c"pid du p\C3\A8re : %d \0A\00", align 1
@.str.1 = private unnamed_addr constant [14 x i8] c" [1 %d : %d] \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
@.str.4 = private unnamed_addr constant [14 x i8] c" [2 %d : %d] \00", align 1
@.str.5 = private unnamed_addr constant [2 x i8] c".\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = call i32 (...) @getpid()
%5 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %4)
%6 = call i32 (...) @fork()
store i32 %6, ptr %3, align 4
%7 = load i32, ptr %3, align 4
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %36
9: ; preds = %0
store i32 0, ptr %1, align 4
%10 = load i32, ptr %1, align 4
%11 = icmp slt i32 %10, 500
br i1 %11, label %.lr.ph8, label %34
.lr.ph8: ; preds = %9
br label %12
12: ; preds = %.lr.ph8, %29
%13 = call i32 (...) @getpid()
%14 = load i32, ptr %1, align 4
%15 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %13, i32 noundef %14)
store i32 0, ptr %2, align 4
%16 = load i32, ptr %2, align 4
%17 = icmp slt i32 %16, 100
br i1 %17, label %.lr.ph5, label %27
.lr.ph5: ; preds = %12
br label %18
18: ; preds = %.lr.ph5, %22
%19 = call i32 @exp(double noundef 1.000000e+01)
%20 = call i32 @log(i32 noundef %19)
%21 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
br label %22
22: ; preds = %18
%23 = load i32, ptr %2, align 4
%24 = add nsw i32 %23, 1
store i32 %24, ptr %2, align 4
%25 = load i32, ptr %2, align 4
%26 = icmp slt i32 %25, 100
br i1 %26, label %18, label %._crit_edge6, !llvm.loop !6
._crit_edge6: ; preds = %22
br label %27
27: ; preds = %._crit_edge6, %12
%28 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %29
29: ; preds = %27
%30 = load i32, ptr %1, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %1, align 4
%32 = load i32, ptr %1, align 4
%33 = icmp slt i32 %32, 500
br i1 %33, label %12, label %._crit_edge9, !llvm.loop !8
._crit_edge9: ; preds = %29
br label %34
34: ; preds = %._crit_edge9, %9
%35 = call i32 @exit(i32 noundef 0) #3
unreachable
36: ; preds = %0
%37 = call i32 (...) @fork()
store i32 %37, ptr %3, align 4
%38 = load i32, ptr %3, align 4
%39 = icmp eq i32 %38, 0
br i1 %39, label %40, label %67
40: ; preds = %36
store i32 500, ptr %1, align 4
%41 = load i32, ptr %1, align 4
%42 = icmp slt i32 %41, 1000
br i1 %42, label %.lr.ph2, label %65
.lr.ph2: ; preds = %40
br label %43
43: ; preds = %.lr.ph2, %60
%44 = call i32 (...) @getpid()
%45 = load i32, ptr %1, align 4
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %44, i32 noundef %45)
store i32 0, ptr %2, align 4
%47 = load i32, ptr %2, align 4
%48 = icmp slt i32 %47, 100
br i1 %48, label %.lr.ph, label %58
.lr.ph: ; preds = %43
br label %49
49: ; preds = %.lr.ph, %53
%50 = call i32 @exp(double noundef 1.000000e+01)
%51 = call i32 @log(i32 noundef %50)
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
br label %53
53: ; preds = %49
%54 = load i32, ptr %2, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %2, align 4
%56 = load i32, ptr %2, align 4
%57 = icmp slt i32 %56, 100
br i1 %57, label %49, label %._crit_edge, !llvm.loop !9
._crit_edge: ; preds = %53
br label %58
58: ; preds = %._crit_edge, %43
%59 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
br label %60
60: ; preds = %58
%61 = load i32, ptr %1, align 4
%62 = add nsw i32 %61, 1
store i32 %62, ptr %1, align 4
%63 = load i32, ptr %1, align 4
%64 = icmp slt i32 %63, 1000
br i1 %64, label %43, label %._crit_edge3, !llvm.loop !10
._crit_edge3: ; preds = %60
br label %65
65: ; preds = %._crit_edge3, %40
%66 = call i32 @exit(i32 noundef 0) #3
unreachable
67: ; preds = %36
ret i32 0
}
declare i32 @printf(ptr noundef, ...) #1
declare i32 @getpid(...) #1
declare i32 @fork(...) #1
declare i32 @log(i32 noundef) #1
declare i32 @exp(double noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = distinct !{!9, !7}
!10 = distinct !{!10, !7}
|
; ModuleID = '/tmp/tmp4hosrty6.c'
source_filename = "/tmp/tmp4hosrty6.c"
target datalayout = "e-m:e-p270: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/tmp4hosrty6.c"
target datalayout = "e-m:e-p270: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/tmprpiamg2c.c'
source_filename = "/tmp/tmprpiamg2c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @owBlock(i8 noundef zeroext %0, ptr noundef %1, i8 noundef zeroext %2) #0 {
%4 = alloca i8, align 1
%5 = alloca i8, align 1
%6 = alloca ptr, align 8
%7 = alloca i8, align 1
%8 = alloca i32, align 4
store i8 %0, ptr %5, align 1
store ptr %1, ptr %6, align 8
store i8 %2, ptr %7, align 1
%9 = load i8, ptr %7, align 1
%10 = zext i8 %9 to i32
%11 = icmp sgt i32 %10, 64
br i1 %11, label %12, label %13
12: ; preds = %3
store i8 0, ptr %4, align 1
br label %42
13: ; preds = %3
%14 = load i8, ptr %5, align 1
%15 = icmp ne i8 %14, 0
br i1 %15, label %16, label %21
16: ; preds = %13
%17 = call i32 (...) @owTouchReset()
%18 = icmp ne i32 %17, 0
br i1 %18, label %20, label %19
19: ; preds = %16
store i8 0, ptr %4, align 1
br label %42
20: ; preds = %16
br label %21
21: ; preds = %20, %13
store i32 0, ptr %8, align 4
br label %22
22: ; preds = %38, %21
%23 = load i32, ptr %8, align 4
%24 = load i8, ptr %7, align 1
%25 = zext i8 %24 to i32
%26 = icmp slt i32 %23, %25
br i1 %26, label %27, label %41
27: ; preds = %22
%28 = load ptr, ptr %6, align 8
%29 = load i32, ptr %8, align 4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i8, ptr %28, i64 %30
%32 = load i8, ptr %31, align 1
%33 = call zeroext i8 @owTouchByte(i8 noundef zeroext %32)
%34 = load ptr, ptr %6, align 8
%35 = load i32, ptr %8, align 4
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i8, ptr %34, i64 %36
store i8 %33, ptr %37, align 1
br label %38
38: ; preds = %27
%39 = load i32, ptr %8, align 4
%40 = add nsw i32 %39, 1
store i32 %40, ptr %8, align 4
br label %22, !llvm.loop !6
41: ; preds = %22
store i8 1, ptr %4, align 1
br label %42
42: ; preds = %41, %19, %12
%43 = load i8, ptr %4, align 1
ret i8 %43
}
declare i32 @owTouchReset(...) #1
declare zeroext i8 @owTouchByte(i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmprpiamg2c.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @owBlock(i8 noundef zeroext %0, ptr noundef %1, i8 noundef zeroext %2) #0 {
%4 = alloca i8, align 1
%5 = alloca i8, align 1
%6 = alloca ptr, align 8
%7 = alloca i8, align 1
%8 = alloca i32, align 4
store i8 %0, ptr %5, align 1
store ptr %1, ptr %6, align 8
store i8 %2, ptr %7, align 1
%9 = load i8, ptr %7, align 1
%10 = zext i8 %9 to i32
%11 = icmp sgt i32 %10, 64
br i1 %11, label %12, label %13
12: ; preds = %3
store i8 0, ptr %4, align 1
br label %45
13: ; preds = %3
%14 = load i8, ptr %5, align 1
%15 = icmp ne i8 %14, 0
br i1 %15, label %16, label %21
16: ; preds = %13
%17 = call i32 (...) @owTouchReset()
%18 = icmp ne i32 %17, 0
br i1 %18, label %20, label %19
19: ; preds = %16
store i8 0, ptr %4, align 1
br label %45
20: ; preds = %16
br label %21
21: ; preds = %20, %13
store i32 0, ptr %8, align 4
%22 = load i32, ptr %8, align 4
%23 = load i8, ptr %7, align 1
%24 = zext i8 %23 to i32
%25 = icmp slt i32 %22, %24
br i1 %25, label %.lr.ph, label %44
.lr.ph: ; preds = %21
br label %26
26: ; preds = %.lr.ph, %37
%27 = load ptr, ptr %6, align 8
%28 = load i32, ptr %8, align 4
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8, ptr %27, i64 %29
%31 = load i8, ptr %30, align 1
%32 = call zeroext i8 @owTouchByte(i8 noundef zeroext %31)
%33 = load ptr, ptr %6, align 8
%34 = load i32, ptr %8, align 4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8, ptr %33, i64 %35
store i8 %32, ptr %36, align 1
br label %37
37: ; preds = %26
%38 = load i32, ptr %8, align 4
%39 = add nsw i32 %38, 1
store i32 %39, ptr %8, align 4
%40 = load i32, ptr %8, align 4
%41 = load i8, ptr %7, align 1
%42 = zext i8 %41 to i32
%43 = icmp slt i32 %40, %42
br i1 %43, label %26, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %37
br label %44
44: ; preds = %._crit_edge, %21
store i8 1, ptr %4, align 1
br label %45
45: ; preds = %44, %19, %12
%46 = load i8, ptr %4, align 1
ret i8 %46
}
declare i32 @owTouchReset(...) #1
declare zeroext i8 @owTouchByte(i8 noundef zeroext) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpohbvplt_.c'
source_filename = "/tmp/tmpohbvplt_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%i\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i8, align 1
%3 = alloca i8, align 1
store i32 0, ptr %1, align 4
store i8 49, ptr %2, align 1
store i8 36, ptr %3, align 1
%4 = load i8, ptr %2, align 1
%5 = sext i8 %4 to i32
%6 = icmp sge i32 %5, 48
br i1 %6, label %7, label %11
7: ; preds = %0
%8 = load i8, ptr %2, align 1
%9 = sext i8 %8 to i32
%10 = icmp sle i32 %9, 57
br label %11
11: ; preds = %7, %0
%12 = phi i1 [ false, %0 ], [ %10, %7 ]
%13 = zext i1 %12 to i64
%14 = select i1 %12, i32 1, i32 0
%15 = call i32 @printf(ptr noundef @.str, i32 noundef %14)
%16 = load i8, ptr %3, align 1
%17 = sext i8 %16 to i32
%18 = icmp sge i32 %17, 65
br i1 %18, label %19, label %24
19: ; preds = %11
%20 = load i8, ptr %3, align 1
%21 = sext i8 %20 to i32
%22 = icmp sle i32 %21, 90
br i1 %22, label %23, label %24
23: ; preds = %19
br i1 true, label %35, label %25
24: ; preds = %19, %11
br i1 false, label %35, label %25
25: ; preds = %24, %23
%26 = load i8, ptr %3, align 1
%27 = sext i8 %26 to i32
%28 = icmp sge i32 %27, 97
br i1 %28, label %29, label %34
29: ; preds = %25
%30 = load i8, ptr %3, align 1
%31 = sext i8 %30 to i32
%32 = icmp sle i32 %31, 122
br i1 %32, label %33, label %34
33: ; preds = %29
br i1 true, label %35, label %36
34: ; preds = %29, %25
br i1 false, label %35, label %36
35: ; preds = %34, %33, %24, %23
br i1 true, label %50, label %37
36: ; preds = %34, %33
br i1 false, label %50, label %37
37: ; preds = %36, %35
%38 = load i8, ptr %3, align 1
%39 = sext i8 %38 to i32
%40 = icmp sge i32 %39, 48
br i1 %40, label %41, label %45
41: ; preds = %37
%42 = load i8, ptr %3, align 1
%43 = sext i8 %42 to i32
%44 = icmp sle i32 %43, 57
br label %45
45: ; preds = %41, %37
%46 = phi i1 [ false, %37 ], [ %44, %41 ]
%47 = zext i1 %46 to i64
%48 = select i1 %46, i32 1, i32 0
%49 = icmp ne i32 %48, 0
br label %50
50: ; preds = %45, %36, %35
%51 = phi i1 [ true, %36 ], [ true, %35 ], [ %49, %45 ]
%52 = zext i1 %51 to i64
%53 = select i1 %51, i32 0, i32 1
%54 = call i32 @printf(ptr noundef @.str, i32 noundef %53)
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/tmpohbvplt_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [4 x i8] c"%i\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i8, align 1
%3 = alloca i8, align 1
store i32 0, ptr %1, align 4
store i8 49, ptr %2, align 1
store i8 36, ptr %3, align 1
%4 = load i8, ptr %2, align 1
%5 = sext i8 %4 to i32
%6 = icmp sge i32 %5, 48
br i1 %6, label %7, label %11
7: ; preds = %0
%8 = load i8, ptr %2, align 1
%9 = sext i8 %8 to i32
%10 = icmp sle i32 %9, 57
br label %11
11: ; preds = %7, %0
%12 = phi i1 [ false, %0 ], [ %10, %7 ]
%13 = zext i1 %12 to i64
%14 = select i1 %12, i32 1, i32 0
%15 = call i32 @printf(ptr noundef @.str, i32 noundef %14)
%16 = load i8, ptr %3, align 1
%17 = sext i8 %16 to i32
%18 = icmp sge i32 %17, 65
br i1 %18, label %19, label %24
19: ; preds = %11
%20 = load i8, ptr %3, align 1
%21 = sext i8 %20 to i32
%22 = icmp sle i32 %21, 90
br i1 %22, label %23, label %24
23: ; preds = %19
br i1 true, label %35, label %25
24: ; preds = %19, %11
br i1 false, label %35, label %25
25: ; preds = %24, %23
%26 = load i8, ptr %3, align 1
%27 = sext i8 %26 to i32
%28 = icmp sge i32 %27, 97
br i1 %28, label %29, label %34
29: ; preds = %25
%30 = load i8, ptr %3, align 1
%31 = sext i8 %30 to i32
%32 = icmp sle i32 %31, 122
br i1 %32, label %33, label %34
33: ; preds = %29
br i1 true, label %35, label %36
34: ; preds = %29, %25
br i1 false, label %35, label %36
35: ; preds = %34, %33, %24, %23
br i1 true, label %50, label %37
36: ; preds = %34, %33
br i1 false, label %50, label %37
37: ; preds = %36, %35
%38 = load i8, ptr %3, align 1
%39 = sext i8 %38 to i32
%40 = icmp sge i32 %39, 48
br i1 %40, label %41, label %45
41: ; preds = %37
%42 = load i8, ptr %3, align 1
%43 = sext i8 %42 to i32
%44 = icmp sle i32 %43, 57
br label %45
45: ; preds = %41, %37
%46 = phi i1 [ false, %37 ], [ %44, %41 ]
%47 = zext i1 %46 to i64
%48 = select i1 %46, i32 1, i32 0
%49 = icmp ne i32 %48, 0
br label %50
50: ; preds = %45, %36, %35
%51 = phi i1 [ true, %36 ], [ true, %35 ], [ %49, %45 ]
%52 = zext i1 %51 to i64
%53 = select i1 %51, i32 0, i32 1
%54 = call i32 @printf(ptr noundef @.str, i32 noundef %53)
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/tmpxgz7nyg0.c'
source_filename = "/tmp/tmpxgz7nyg0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @sys_getenv(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 ptr @getenv(ptr noundef %3)
ret ptr %4
}
declare ptr @getenv(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxgz7nyg0.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local ptr @sys_getenv(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 ptr @getenv(ptr noundef %3)
ret ptr %4
}
declare ptr @getenv(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp3w8diroo.c'
source_filename = "/tmp/tmp3w8diroo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"%H:%M:%S\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"00:00:00\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%B\00", align 1
@.str.3 = private unnamed_addr constant [8 x i8] c"January\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"%b\00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"Jan\00", align 1
@.str.6 = private unnamed_addr constant [3 x i8] c"%A\00", align 1
@.str.7 = private unnamed_addr constant [9 x i8] c"Thursday\00", align 1
@.str.8 = private unnamed_addr constant [3 x i8] c"%a\00", align 1
@.str.9 = private unnamed_addr constant [4 x i8] c"Thu\00", align 1
@.str.10 = private unnamed_addr constant [3 x i8] c"%e\00", align 1
@.str.11 = private unnamed_addr constant [3 x i8] c" 1\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = load ptr, ptr %5, align 8
%9 = getelementptr inbounds ptr, ptr %8, i64 0
%10 = load ptr, ptr %9, align 8
%11 = call i64 @_clock(ptr noundef %10)
%12 = load i32, ptr %6, align 4
%13 = sext i32 %12 to i64
%14 = add nsw i64 %13, %11
%15 = trunc i64 %14 to i32
store i32 %15, ptr %6, align 4
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 0
%18 = load ptr, ptr %17, align 8
%19 = call i64 @_getdate(ptr noundef %18)
%20 = load i32, ptr %6, align 4
%21 = sext i32 %20 to i64
%22 = add nsw i64 %21, %19
%23 = trunc i64 %22 to i32
store i32 %23, ptr %6, align 4
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds ptr, ptr %24, i64 0
%26 = load ptr, ptr %25, align 8
%27 = call i64 @_mktime(ptr noundef %26)
%28 = load i32, ptr %6, align 4
%29 = sext i32 %28 to i64
%30 = add nsw i64 %29, %27
%31 = trunc i64 %30 to i32
store i32 %31, ptr %6, align 4
%32 = load ptr, ptr %5, align 8
%33 = getelementptr inbounds ptr, ptr %32, i64 0
%34 = load ptr, ptr %33, align 8
%35 = call i64 @_strftime(ptr noundef %34, ptr noundef @.str, ptr noundef @.str.1)
%36 = load i32, ptr %6, align 4
%37 = sext i32 %36 to i64
%38 = add nsw i64 %37, %35
%39 = trunc i64 %38 to i32
store i32 %39, ptr %6, align 4
%40 = load ptr, ptr %5, align 8
%41 = getelementptr inbounds ptr, ptr %40, i64 0
%42 = load ptr, ptr %41, align 8
%43 = call i64 @_strftime(ptr noundef %42, ptr noundef @.str.2, ptr noundef @.str.3)
%44 = load i32, ptr %6, align 4
%45 = sext i32 %44 to i64
%46 = add nsw i64 %45, %43
%47 = trunc i64 %46 to i32
store i32 %47, ptr %6, align 4
%48 = load ptr, ptr %5, align 8
%49 = getelementptr inbounds ptr, ptr %48, i64 0
%50 = load ptr, ptr %49, align 8
%51 = call i64 @_strftime(ptr noundef %50, ptr noundef @.str.4, ptr noundef @.str.5)
%52 = load i32, ptr %6, align 4
%53 = sext i32 %52 to i64
%54 = add nsw i64 %53, %51
%55 = trunc i64 %54 to i32
store i32 %55, ptr %6, align 4
%56 = load ptr, ptr %5, align 8
%57 = getelementptr inbounds ptr, ptr %56, i64 0
%58 = load ptr, ptr %57, align 8
%59 = call i64 @_strftime(ptr noundef %58, ptr noundef @.str.6, ptr noundef @.str.7)
%60 = load i32, ptr %6, align 4
%61 = sext i32 %60 to i64
%62 = add nsw i64 %61, %59
%63 = trunc i64 %62 to i32
store i32 %63, ptr %6, align 4
%64 = load ptr, ptr %5, align 8
%65 = getelementptr inbounds ptr, ptr %64, i64 0
%66 = load ptr, ptr %65, align 8
%67 = call i64 @_strftime(ptr noundef %66, ptr noundef @.str.8, ptr noundef @.str.9)
%68 = load i32, ptr %6, align 4
%69 = sext i32 %68 to i64
%70 = add nsw i64 %69, %67
%71 = trunc i64 %70 to i32
store i32 %71, ptr %6, align 4
%72 = load ptr, ptr %5, align 8
%73 = getelementptr inbounds ptr, ptr %72, i64 0
%74 = load ptr, ptr %73, align 8
%75 = call i64 @_strftime(ptr noundef %74, ptr noundef @.str.10, ptr noundef @.str.11)
%76 = load i32, ptr %6, align 4
%77 = sext i32 %76 to i64
%78 = add nsw i64 %77, %75
%79 = trunc i64 %78 to i32
store i32 %79, ptr %6, align 4
%80 = load ptr, ptr %5, align 8
%81 = getelementptr inbounds ptr, ptr %80, i64 0
%82 = load ptr, ptr %81, align 8
%83 = call i64 @_strptime(ptr noundef %82)
%84 = load i32, ptr %6, align 4
%85 = sext i32 %84 to i64
%86 = add nsw i64 %85, %83
%87 = trunc i64 %86 to i32
store i32 %87, ptr %6, align 4
%88 = load ptr, ptr %5, align 8
%89 = getelementptr inbounds ptr, ptr %88, i64 0
%90 = load ptr, ptr %89, align 8
%91 = call i64 @_tzset(ptr noundef %90)
%92 = load i32, ptr %6, align 4
%93 = sext i32 %92 to i64
%94 = add nsw i64 %93, %91
%95 = trunc i64 %94 to i32
store i32 %95, ptr %6, align 4
%96 = load i32, ptr %6, align 4
%97 = icmp eq i32 %96, 0
%98 = zext i1 %97 to i64
%99 = select i1 %97, i32 0, i32 2
ret i32 %99
}
declare i64 @_clock(ptr noundef) #1
declare i64 @_getdate(ptr noundef) #1
declare i64 @_mktime(ptr noundef) #1
declare i64 @_strftime(ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @_strptime(ptr noundef) #1
declare i64 @_tzset(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp3w8diroo.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [9 x i8] c"%H:%M:%S\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"00:00:00\00", align 1
@.str.2 = private unnamed_addr constant [3 x i8] c"%B\00", align 1
@.str.3 = private unnamed_addr constant [8 x i8] c"January\00", align 1
@.str.4 = private unnamed_addr constant [3 x i8] c"%b\00", align 1
@.str.5 = private unnamed_addr constant [4 x i8] c"Jan\00", align 1
@.str.6 = private unnamed_addr constant [3 x i8] c"%A\00", align 1
@.str.7 = private unnamed_addr constant [9 x i8] c"Thursday\00", align 1
@.str.8 = private unnamed_addr constant [3 x i8] c"%a\00", align 1
@.str.9 = private unnamed_addr constant [4 x i8] c"Thu\00", align 1
@.str.10 = private unnamed_addr constant [3 x i8] c"%e\00", align 1
@.str.11 = private unnamed_addr constant [3 x i8] c" 1\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca ptr, align 8
%6 = alloca i32, align 4
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
store i32 0, ptr %6, align 4
%7 = load i32, ptr %4, align 4
%8 = load ptr, ptr %5, align 8
%9 = getelementptr inbounds ptr, ptr %8, i64 0
%10 = load ptr, ptr %9, align 8
%11 = call i64 @_clock(ptr noundef %10)
%12 = load i32, ptr %6, align 4
%13 = sext i32 %12 to i64
%14 = add nsw i64 %13, %11
%15 = trunc i64 %14 to i32
store i32 %15, ptr %6, align 4
%16 = load ptr, ptr %5, align 8
%17 = getelementptr inbounds ptr, ptr %16, i64 0
%18 = load ptr, ptr %17, align 8
%19 = call i64 @_getdate(ptr noundef %18)
%20 = load i32, ptr %6, align 4
%21 = sext i32 %20 to i64
%22 = add nsw i64 %21, %19
%23 = trunc i64 %22 to i32
store i32 %23, ptr %6, align 4
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds ptr, ptr %24, i64 0
%26 = load ptr, ptr %25, align 8
%27 = call i64 @_mktime(ptr noundef %26)
%28 = load i32, ptr %6, align 4
%29 = sext i32 %28 to i64
%30 = add nsw i64 %29, %27
%31 = trunc i64 %30 to i32
store i32 %31, ptr %6, align 4
%32 = load ptr, ptr %5, align 8
%33 = getelementptr inbounds ptr, ptr %32, i64 0
%34 = load ptr, ptr %33, align 8
%35 = call i64 @_strftime(ptr noundef %34, ptr noundef @.str, ptr noundef @.str.1)
%36 = load i32, ptr %6, align 4
%37 = sext i32 %36 to i64
%38 = add nsw i64 %37, %35
%39 = trunc i64 %38 to i32
store i32 %39, ptr %6, align 4
%40 = load ptr, ptr %5, align 8
%41 = getelementptr inbounds ptr, ptr %40, i64 0
%42 = load ptr, ptr %41, align 8
%43 = call i64 @_strftime(ptr noundef %42, ptr noundef @.str.2, ptr noundef @.str.3)
%44 = load i32, ptr %6, align 4
%45 = sext i32 %44 to i64
%46 = add nsw i64 %45, %43
%47 = trunc i64 %46 to i32
store i32 %47, ptr %6, align 4
%48 = load ptr, ptr %5, align 8
%49 = getelementptr inbounds ptr, ptr %48, i64 0
%50 = load ptr, ptr %49, align 8
%51 = call i64 @_strftime(ptr noundef %50, ptr noundef @.str.4, ptr noundef @.str.5)
%52 = load i32, ptr %6, align 4
%53 = sext i32 %52 to i64
%54 = add nsw i64 %53, %51
%55 = trunc i64 %54 to i32
store i32 %55, ptr %6, align 4
%56 = load ptr, ptr %5, align 8
%57 = getelementptr inbounds ptr, ptr %56, i64 0
%58 = load ptr, ptr %57, align 8
%59 = call i64 @_strftime(ptr noundef %58, ptr noundef @.str.6, ptr noundef @.str.7)
%60 = load i32, ptr %6, align 4
%61 = sext i32 %60 to i64
%62 = add nsw i64 %61, %59
%63 = trunc i64 %62 to i32
store i32 %63, ptr %6, align 4
%64 = load ptr, ptr %5, align 8
%65 = getelementptr inbounds ptr, ptr %64, i64 0
%66 = load ptr, ptr %65, align 8
%67 = call i64 @_strftime(ptr noundef %66, ptr noundef @.str.8, ptr noundef @.str.9)
%68 = load i32, ptr %6, align 4
%69 = sext i32 %68 to i64
%70 = add nsw i64 %69, %67
%71 = trunc i64 %70 to i32
store i32 %71, ptr %6, align 4
%72 = load ptr, ptr %5, align 8
%73 = getelementptr inbounds ptr, ptr %72, i64 0
%74 = load ptr, ptr %73, align 8
%75 = call i64 @_strftime(ptr noundef %74, ptr noundef @.str.10, ptr noundef @.str.11)
%76 = load i32, ptr %6, align 4
%77 = sext i32 %76 to i64
%78 = add nsw i64 %77, %75
%79 = trunc i64 %78 to i32
store i32 %79, ptr %6, align 4
%80 = load ptr, ptr %5, align 8
%81 = getelementptr inbounds ptr, ptr %80, i64 0
%82 = load ptr, ptr %81, align 8
%83 = call i64 @_strptime(ptr noundef %82)
%84 = load i32, ptr %6, align 4
%85 = sext i32 %84 to i64
%86 = add nsw i64 %85, %83
%87 = trunc i64 %86 to i32
store i32 %87, ptr %6, align 4
%88 = load ptr, ptr %5, align 8
%89 = getelementptr inbounds ptr, ptr %88, i64 0
%90 = load ptr, ptr %89, align 8
%91 = call i64 @_tzset(ptr noundef %90)
%92 = load i32, ptr %6, align 4
%93 = sext i32 %92 to i64
%94 = add nsw i64 %93, %91
%95 = trunc i64 %94 to i32
store i32 %95, ptr %6, align 4
%96 = load i32, ptr %6, align 4
%97 = icmp eq i32 %96, 0
%98 = zext i1 %97 to i64
%99 = select i1 %97, i32 0, i32 2
ret i32 %99
}
declare i64 @_clock(ptr noundef) #1
declare i64 @_getdate(ptr noundef) #1
declare i64 @_mktime(ptr noundef) #1
declare i64 @_strftime(ptr noundef, ptr noundef, ptr noundef) #1
declare i64 @_strptime(ptr noundef) #1
declare i64 @_tzset(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpxv59gyo_.c'
source_filename = "/tmp/tmpxv59gyo_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mkdir(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%7 = load ptr, ptr %3, align 8
%8 = call i32 @__get_array_size(ptr noundef %7)
store i32 %8, ptr %5, align 4
%9 = call i32 (...) @__infer_nondet_int()
store i32 %9, ptr %6, align 4
%10 = load i32, ptr %6, align 4
%11 = icmp slt i32 %10, -1
br i1 %11, label %15, label %12
12: ; preds = %2
%13 = load i32, ptr %6, align 4
%14 = icmp sgt i32 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %12, %2
br label %16
16: ; preds = %15, %16
br label %16
17: ; preds = %12
%18 = load i32, ptr %6, align 4
ret i32 %18
}
declare i32 @__get_array_size(ptr noundef) #1
declare i32 @__infer_nondet_int(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpxv59gyo_.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @mkdir(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
%6 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
%7 = load ptr, ptr %3, align 8
%8 = call i32 @__get_array_size(ptr noundef %7)
store i32 %8, ptr %5, align 4
%9 = call i32 (...) @__infer_nondet_int()
store i32 %9, ptr %6, align 4
%10 = load i32, ptr %6, align 4
%11 = icmp slt i32 %10, -1
br i1 %11, label %15, label %12
12: ; preds = %2
%13 = load i32, ptr %6, align 4
%14 = icmp sgt i32 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %12, %2
br label %16
16: ; preds = %16, %15
br label %16
17: ; preds = %12
%18 = load i32, ptr %6, align 4
ret i32 %18
}
declare i32 @__get_array_size(ptr noundef) #1
declare i32 @__infer_nondet_int(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmplczudyi6.c'
source_filename = "/tmp/tmplczudyi6.c"
target datalayout = "e-m:e-p270: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/tmplczudyi6.c"
target datalayout = "e-m:e-p270: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/tmp5_k5788n.c'
source_filename = "/tmp/tmp5_k5788n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [50 x i8] c"setparams: Internal error: invalid class type %c\0A\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"#define\09CLASS\09 '%c'\0A\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"#define\09M\09%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @write_ep_info(ptr noundef %0, i8 noundef signext %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i8, align 1
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i8 %1, ptr %4, align 1
%6 = load i8, ptr %4, align 1
%7 = sext i8 %6 to i32
%8 = icmp eq i32 %7, 83
br i1 %8, label %9, label %10
9: ; preds = %2
store i32 24, ptr %5, align 4
br label %38
10: ; preds = %2
%11 = load i8, ptr %4, align 1
%12 = sext i8 %11 to i32
%13 = icmp eq i32 %12, 87
br i1 %13, label %14, label %15
14: ; preds = %10
store i32 25, ptr %5, align 4
br label %37
15: ; preds = %10
%16 = load i8, ptr %4, align 1
%17 = sext i8 %16 to i32
%18 = icmp eq i32 %17, 65
br i1 %18, label %19, label %20
19: ; preds = %15
store i32 28, ptr %5, align 4
br label %36
20: ; preds = %15
%21 = load i8, ptr %4, align 1
%22 = sext i8 %21 to i32
%23 = icmp eq i32 %22, 66
br i1 %23, label %24, label %25
24: ; preds = %20
store i32 30, ptr %5, align 4
br label %35
25: ; preds = %20
%26 = load i8, ptr %4, align 1
%27 = sext i8 %26 to i32
%28 = icmp eq i32 %27, 67
br i1 %28, label %29, label %30
29: ; preds = %25
store i32 32, ptr %5, align 4
br label %34
30: ; preds = %25
%31 = load i8, ptr %4, align 1
%32 = call i32 @printf(ptr noundef @.str, i8 noundef signext %31)
%33 = call i32 @exit(i32 noundef 1) #3
unreachable
34: ; preds = %29
br label %35
35: ; preds = %34, %24
br label %36
36: ; preds = %35, %19
br label %37
37: ; preds = %36, %14
br label %38
38: ; preds = %37, %9
%39 = load ptr, ptr %3, align 8
%40 = load i8, ptr %4, align 1
%41 = sext i8 %40 to i32
%42 = call i32 @fprintf(ptr noundef %39, ptr noundef @.str.1, i32 noundef %41)
%43 = load ptr, ptr %3, align 8
%44 = load i32, ptr %5, align 4
%45 = call i32 @fprintf(ptr noundef %43, ptr noundef @.str.2, i32 noundef %44)
ret void
}
declare i32 @printf(ptr noundef, i8 noundef signext) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @fprintf(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5_k5788n.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [50 x i8] c"setparams: Internal error: invalid class type %c\0A\00", align 1
@.str.1 = private unnamed_addr constant [21 x i8] c"#define\09CLASS\09 '%c'\0A\00", align 1
@.str.2 = private unnamed_addr constant [14 x i8] c"#define\09M\09%d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @write_ep_info(ptr noundef %0, i8 noundef signext %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i8, align 1
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i8 %1, ptr %4, align 1
%6 = load i8, ptr %4, align 1
%7 = sext i8 %6 to i32
%8 = icmp eq i32 %7, 83
br i1 %8, label %9, label %10
9: ; preds = %2
store i32 24, ptr %5, align 4
br label %38
10: ; preds = %2
%11 = load i8, ptr %4, align 1
%12 = sext i8 %11 to i32
%13 = icmp eq i32 %12, 87
br i1 %13, label %14, label %15
14: ; preds = %10
store i32 25, ptr %5, align 4
br label %37
15: ; preds = %10
%16 = load i8, ptr %4, align 1
%17 = sext i8 %16 to i32
%18 = icmp eq i32 %17, 65
br i1 %18, label %19, label %20
19: ; preds = %15
store i32 28, ptr %5, align 4
br label %36
20: ; preds = %15
%21 = load i8, ptr %4, align 1
%22 = sext i8 %21 to i32
%23 = icmp eq i32 %22, 66
br i1 %23, label %24, label %25
24: ; preds = %20
store i32 30, ptr %5, align 4
br label %35
25: ; preds = %20
%26 = load i8, ptr %4, align 1
%27 = sext i8 %26 to i32
%28 = icmp eq i32 %27, 67
br i1 %28, label %29, label %30
29: ; preds = %25
store i32 32, ptr %5, align 4
br label %34
30: ; preds = %25
%31 = load i8, ptr %4, align 1
%32 = call i32 @printf(ptr noundef @.str, i8 noundef signext %31)
%33 = call i32 @exit(i32 noundef 1) #3
unreachable
34: ; preds = %29
br label %35
35: ; preds = %34, %24
br label %36
36: ; preds = %35, %19
br label %37
37: ; preds = %36, %14
br label %38
38: ; preds = %37, %9
%39 = load ptr, ptr %3, align 8
%40 = load i8, ptr %4, align 1
%41 = sext i8 %40 to i32
%42 = call i32 @fprintf(ptr noundef %39, ptr noundef @.str.1, i32 noundef %41)
%43 = load ptr, ptr %3, align 8
%44 = load i32, ptr %5, align 4
%45 = call i32 @fprintf(ptr noundef %43, ptr noundef @.str.2, i32 noundef %44)
ret void
}
declare i32 @printf(ptr noundef, i8 noundef signext) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @fprintf(ptr noundef, ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpip_qbaii.c'
source_filename = "/tmp/tmpip_qbaii.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @timlib_rtrim(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 ptr @rtrim(ptr noundef %3)
ret ptr %4
}
declare ptr @rtrim(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpip_qbaii.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @timlib_rtrim(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 ptr @rtrim(ptr noundef %3)
ret ptr %4
}
declare ptr @rtrim(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpyoaa08ng.c'
source_filename = "/tmp/tmpyoaa08ng.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@M_PI = dso_local global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @CalcNextVelocities(double noundef %0, double noundef %1, double noundef %2, double noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca double, align 8
%16 = alloca double, align 8
%17 = alloca double, align 8
%18 = alloca double, align 8
%19 = alloca double, align 8
%20 = alloca double, align 8
store double %0, ptr %7, align 8
store double %1, ptr %8, align 8
store double %2, ptr %9, align 8
store double %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
store double 1.000000e+00, ptr %17, align 8
store double 2.900000e+00, ptr %18, align 8
store double 2.000000e+00, ptr %19, align 8
store double 1.000000e-05, ptr %20, align 8
%21 = load double, ptr %8, align 8
%22 = load double, ptr %8, align 8
%23 = load double, ptr %9, align 8
%24 = load double, ptr %9, align 8
%25 = fmul double %23, %24
%26 = call double @llvm.fmuladd.f64(double %21, double %22, double %25)
%27 = call double @sqrt(double noundef %26) #4
store double %27, ptr %16, align 8
%28 = load double, ptr %16, align 8
%29 = fcmp ogt double %28, 1.000000e-05
br i1 %29, label %30, label %116
30: ; preds = %6
%31 = load double, ptr %9, align 8
%32 = fneg double %31
%33 = load double, ptr %8, align 8
%34 = fneg double %33
%35 = call double @atan2(double noundef %32, double noundef %34) #4
store double %35, ptr %14, align 8
%36 = load double, ptr %14, align 8
%37 = load double, ptr @M_PI, align 8
%38 = fcmp ogt double %36, %37
br i1 %38, label %39, label %43
39: ; preds = %30
%40 = load double, ptr @M_PI, align 8
%41 = load double, ptr %14, align 8
%42 = call double @llvm.fmuladd.f64(double -2.000000e+00, double %40, double %41)
store double %42, ptr %14, align 8
br label %43
43: ; preds = %39, %30
%44 = load double, ptr %14, align 8
%45 = load double, ptr @M_PI, align 8
%46 = fneg double %45
%47 = fcmp olt double %44, %46
br i1 %47, label %48, label %52
48: ; preds = %43
%49 = load double, ptr @M_PI, align 8
%50 = load double, ptr %14, align 8
%51 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %49, double %50)
store double %51, ptr %14, align 8
br label %52
52: ; preds = %48, %43
%53 = load double, ptr %14, align 8
%54 = load double, ptr %10, align 8
%55 = fsub double %53, %54
store double %55, ptr %15, align 8
%56 = load double, ptr %15, align 8
%57 = load double, ptr @M_PI, align 8
%58 = fcmp ogt double %56, %57
br i1 %58, label %59, label %63
59: ; preds = %52
%60 = load double, ptr @M_PI, align 8
%61 = load double, ptr %15, align 8
%62 = call double @llvm.fmuladd.f64(double -2.000000e+00, double %60, double %61)
store double %62, ptr %15, align 8
br label %63
63: ; preds = %59, %52
%64 = load double, ptr %15, align 8
%65 = load double, ptr @M_PI, align 8
%66 = fneg double %65
%67 = fcmp olt double %64, %66
br i1 %67, label %68, label %72
68: ; preds = %63
%69 = load double, ptr @M_PI, align 8
%70 = load double, ptr %15, align 8
%71 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %69, double %70)
store double %71, ptr %15, align 8
br label %72
72: ; preds = %68, %63
%73 = load double, ptr %16, align 8
%74 = fmul double 1.000000e+00, %73
%75 = load ptr, ptr %11, align 8
store double %74, ptr %75, align 8
%76 = load ptr, ptr %11, align 8
%77 = load double, ptr %76, align 8
%78 = load double, ptr %7, align 8
%79 = fcmp oge double %77, %78
br i1 %79, label %80, label %83
80: ; preds = %72
%81 = load double, ptr %7, align 8
%82 = load ptr, ptr %11, align 8
store double %81, ptr %82, align 8
br label %83
83: ; preds = %80, %72
%84 = load double, ptr %15, align 8
%85 = call double @fabs(double noundef %84)
%86 = fcmp ogt double %85, 1.000000e-05
br i1 %86, label %87, label %102
87: ; preds = %83
%88 = load double, ptr %15, align 8
%89 = call double @sin(double noundef %88)
%90 = load double, ptr %14, align 8
%91 = fmul double 2.000000e+00, %90
%92 = load double, ptr %15, align 8
%93 = call double @sin(double noundef %92)
%94 = fmul double %91, %93
%95 = load double, ptr %15, align 8
%96 = fdiv double %94, %95
%97 = load double, ptr %15, align 8
%98 = call double @llvm.fmuladd.f64(double 2.900000e+00, double %97, double %96)
%99 = fadd double %89, %98
%100 = load double, ptr %16, align 8
%101 = fdiv double %99, %100
store double %101, ptr %13, align 8
br label %110
102: ; preds = %83
%103 = load double, ptr %15, align 8
%104 = load double, ptr %15, align 8
%105 = call double @llvm.fmuladd.f64(double %104, double 2.900000e+00, double %103)
%106 = load double, ptr %14, align 8
%107 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %106, double %105)
%108 = load double, ptr %16, align 8
%109 = fdiv double %107, %108
store double %109, ptr %13, align 8
br label %110
110: ; preds = %102, %87
%111 = load double, ptr %13, align 8
%112 = load ptr, ptr %11, align 8
%113 = load double, ptr %112, align 8
%114 = fmul double %111, %113
%115 = load ptr, ptr %12, align 8
store double %114, ptr %115, align 8
br label %119
116: ; preds = %6
%117 = load ptr, ptr %11, align 8
store double 0.000000e+00, ptr %117, align 8
%118 = load ptr, ptr %12, align 8
store double 0.000000e+00, ptr %118, align 8
br label %119
119: ; preds = %116, %110
ret i32 0
}
; Function Attrs: nounwind
declare double @sqrt(double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
; Function Attrs: nounwind
declare double @atan2(double noundef, double noundef) #1
declare double @fabs(double noundef) #3
declare double @sin(double noundef) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyoaa08ng.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@M_PI = dso_local global double 0.000000e+00, align 8
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @CalcNextVelocities(double noundef %0, double noundef %1, double noundef %2, double noundef %3, ptr noundef %4, ptr noundef %5) #0 {
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca double, align 8
%11 = alloca ptr, align 8
%12 = alloca ptr, align 8
%13 = alloca double, align 8
%14 = alloca double, align 8
%15 = alloca double, align 8
%16 = alloca double, align 8
%17 = alloca double, align 8
%18 = alloca double, align 8
%19 = alloca double, align 8
%20 = alloca double, align 8
store double %0, ptr %7, align 8
store double %1, ptr %8, align 8
store double %2, ptr %9, align 8
store double %3, ptr %10, align 8
store ptr %4, ptr %11, align 8
store ptr %5, ptr %12, align 8
store double 1.000000e+00, ptr %17, align 8
store double 2.900000e+00, ptr %18, align 8
store double 2.000000e+00, ptr %19, align 8
store double 1.000000e-05, ptr %20, align 8
%21 = load double, ptr %8, align 8
%22 = load double, ptr %8, align 8
%23 = load double, ptr %9, align 8
%24 = load double, ptr %9, align 8
%25 = fmul double %23, %24
%26 = call double @llvm.fmuladd.f64(double %21, double %22, double %25)
%27 = call double @sqrt(double noundef %26) #4
store double %27, ptr %16, align 8
%28 = load double, ptr %16, align 8
%29 = fcmp ogt double %28, 1.000000e-05
br i1 %29, label %30, label %116
30: ; preds = %6
%31 = load double, ptr %9, align 8
%32 = fneg double %31
%33 = load double, ptr %8, align 8
%34 = fneg double %33
%35 = call double @atan2(double noundef %32, double noundef %34) #4
store double %35, ptr %14, align 8
%36 = load double, ptr %14, align 8
%37 = load double, ptr @M_PI, align 8
%38 = fcmp ogt double %36, %37
br i1 %38, label %39, label %43
39: ; preds = %30
%40 = load double, ptr @M_PI, align 8
%41 = load double, ptr %14, align 8
%42 = call double @llvm.fmuladd.f64(double -2.000000e+00, double %40, double %41)
store double %42, ptr %14, align 8
br label %43
43: ; preds = %39, %30
%44 = load double, ptr %14, align 8
%45 = load double, ptr @M_PI, align 8
%46 = fneg double %45
%47 = fcmp olt double %44, %46
br i1 %47, label %48, label %52
48: ; preds = %43
%49 = load double, ptr @M_PI, align 8
%50 = load double, ptr %14, align 8
%51 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %49, double %50)
store double %51, ptr %14, align 8
br label %52
52: ; preds = %48, %43
%53 = load double, ptr %14, align 8
%54 = load double, ptr %10, align 8
%55 = fsub double %53, %54
store double %55, ptr %15, align 8
%56 = load double, ptr %15, align 8
%57 = load double, ptr @M_PI, align 8
%58 = fcmp ogt double %56, %57
br i1 %58, label %59, label %63
59: ; preds = %52
%60 = load double, ptr @M_PI, align 8
%61 = load double, ptr %15, align 8
%62 = call double @llvm.fmuladd.f64(double -2.000000e+00, double %60, double %61)
store double %62, ptr %15, align 8
br label %63
63: ; preds = %59, %52
%64 = load double, ptr %15, align 8
%65 = load double, ptr @M_PI, align 8
%66 = fneg double %65
%67 = fcmp olt double %64, %66
br i1 %67, label %68, label %72
68: ; preds = %63
%69 = load double, ptr @M_PI, align 8
%70 = load double, ptr %15, align 8
%71 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %69, double %70)
store double %71, ptr %15, align 8
br label %72
72: ; preds = %68, %63
%73 = load double, ptr %16, align 8
%74 = fmul double 1.000000e+00, %73
%75 = load ptr, ptr %11, align 8
store double %74, ptr %75, align 8
%76 = load ptr, ptr %11, align 8
%77 = load double, ptr %76, align 8
%78 = load double, ptr %7, align 8
%79 = fcmp oge double %77, %78
br i1 %79, label %80, label %83
80: ; preds = %72
%81 = load double, ptr %7, align 8
%82 = load ptr, ptr %11, align 8
store double %81, ptr %82, align 8
br label %83
83: ; preds = %80, %72
%84 = load double, ptr %15, align 8
%85 = call double @fabs(double noundef %84)
%86 = fcmp ogt double %85, 1.000000e-05
br i1 %86, label %87, label %102
87: ; preds = %83
%88 = load double, ptr %15, align 8
%89 = call double @sin(double noundef %88)
%90 = load double, ptr %14, align 8
%91 = fmul double 2.000000e+00, %90
%92 = load double, ptr %15, align 8
%93 = call double @sin(double noundef %92)
%94 = fmul double %91, %93
%95 = load double, ptr %15, align 8
%96 = fdiv double %94, %95
%97 = load double, ptr %15, align 8
%98 = call double @llvm.fmuladd.f64(double 2.900000e+00, double %97, double %96)
%99 = fadd double %89, %98
%100 = load double, ptr %16, align 8
%101 = fdiv double %99, %100
store double %101, ptr %13, align 8
br label %110
102: ; preds = %83
%103 = load double, ptr %15, align 8
%104 = load double, ptr %15, align 8
%105 = call double @llvm.fmuladd.f64(double %104, double 2.900000e+00, double %103)
%106 = load double, ptr %14, align 8
%107 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %106, double %105)
%108 = load double, ptr %16, align 8
%109 = fdiv double %107, %108
store double %109, ptr %13, align 8
br label %110
110: ; preds = %102, %87
%111 = load double, ptr %13, align 8
%112 = load ptr, ptr %11, align 8
%113 = load double, ptr %112, align 8
%114 = fmul double %111, %113
%115 = load ptr, ptr %12, align 8
store double %114, ptr %115, align 8
br label %119
116: ; preds = %6
%117 = load ptr, ptr %11, align 8
store double 0.000000e+00, ptr %117, align 8
%118 = load ptr, ptr %12, align 8
store double 0.000000e+00, ptr %118, align 8
br label %119
119: ; preds = %116, %110
ret i32 0
}
; Function Attrs: nounwind
declare double @sqrt(double noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2
; Function Attrs: nounwind
declare double @atan2(double noundef, double noundef) #1
declare double @fabs(double noundef) #3
declare double @sin(double noundef) #3
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpi_60j7xu.c'
source_filename = "/tmp/tmpi_60j7xu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0AMENU\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"\0A 1. Novo\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"\0A 2. Abrir\00", align 1
@.str.3 = private unnamed_addr constant [12 x i8] c"\0A 3. Salvar\00", align 1
@.str.4 = private unnamed_addr constant [11 x i8] c"\0A 4. Sair\0A\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"\0A:\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c" %d\00", align 1
@.str.7 = private unnamed_addr constant [16 x i8] c"\0A Novo arquivo\0A\00", align 1
@.str.8 = private unnamed_addr constant [16 x i8] c"\0A Abir arquivo\0A\00", align 1
@.str.9 = private unnamed_addr constant [18 x i8] c"\0A Salvar arquivo\0A\00", align 1
@.str.10 = private unnamed_addr constant [8 x i8] c"\0A Sair\0A\00", align 1
@.str.11 = private unnamed_addr constant [21 x i8] c"\0A Op\C3\A7\C3\A3o errada...\0A\00", align 1
@.str.12 = private unnamed_addr constant [6 x i8] c"\0ABye\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 = %30, %0
%4 = call i32 @printf(ptr noundef @.str)
%5 = call i32 @printf(ptr noundef @.str.1)
%6 = call i32 @printf(ptr noundef @.str.2)
%7 = call i32 @printf(ptr noundef @.str.3)
%8 = call i32 @printf(ptr noundef @.str.4)
%9 = call i32 @printf(ptr noundef @.str.5)
%10 = call i32 @scanf(ptr noundef @.str.6, ptr noundef %2)
%11 = load i32, ptr %2, align 4
switch i32 %11, label %21 [
i32 1, label %12
i32 2, label %14
i32 3, label %16
i32 4, label %18
]
12: ; preds = %3
%13 = call i32 @printf(ptr noundef @.str.7)
br label %23
14: ; preds = %3
%15 = call i32 @printf(ptr noundef @.str.8)
br label %23
16: ; preds = %3
%17 = call i32 @printf(ptr noundef @.str.9)
br label %23
18: ; preds = %3
%19 = call i32 @printf(ptr noundef @.str.10)
%20 = call i32 @exit(i32 noundef 0) #3
unreachable
21: ; preds = %3
%22 = call i32 @printf(ptr noundef @.str.11)
br label %23
23: ; preds = %21, %16, %14, %12
br label %24
24: ; preds = %23
%25 = load i32, ptr %2, align 4
%26 = icmp sgt i32 %25, 1
br i1 %26, label %30, label %27
27: ; preds = %24
%28 = load i32, ptr %2, align 4
%29 = icmp slt i32 %28, 4
br label %30
30: ; preds = %27, %24
%31 = phi i1 [ true, %24 ], [ %29, %27 ]
br i1 %31, label %3, label %32, !llvm.loop !6
32: ; preds = %30
%33 = call i32 @print(ptr noundef @.str.12)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @print(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpi_60j7xu.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"\0AMENU\0A\00", align 1
@.str.1 = private unnamed_addr constant [10 x i8] c"\0A 1. Novo\00", align 1
@.str.2 = private unnamed_addr constant [11 x i8] c"\0A 2. Abrir\00", align 1
@.str.3 = private unnamed_addr constant [12 x i8] c"\0A 3. Salvar\00", align 1
@.str.4 = private unnamed_addr constant [11 x i8] c"\0A 4. Sair\0A\00", align 1
@.str.5 = private unnamed_addr constant [3 x i8] c"\0A:\00", align 1
@.str.6 = private unnamed_addr constant [4 x i8] c" %d\00", align 1
@.str.7 = private unnamed_addr constant [16 x i8] c"\0A Novo arquivo\0A\00", align 1
@.str.8 = private unnamed_addr constant [16 x i8] c"\0A Abir arquivo\0A\00", align 1
@.str.9 = private unnamed_addr constant [18 x i8] c"\0A Salvar arquivo\0A\00", align 1
@.str.10 = private unnamed_addr constant [8 x i8] c"\0A Sair\0A\00", align 1
@.str.11 = private unnamed_addr constant [21 x i8] c"\0A Op\C3\A7\C3\A3o errada...\0A\00", align 1
@.str.12 = private unnamed_addr constant [6 x i8] c"\0ABye\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 = %30, %0
%4 = call i32 @printf(ptr noundef @.str)
%5 = call i32 @printf(ptr noundef @.str.1)
%6 = call i32 @printf(ptr noundef @.str.2)
%7 = call i32 @printf(ptr noundef @.str.3)
%8 = call i32 @printf(ptr noundef @.str.4)
%9 = call i32 @printf(ptr noundef @.str.5)
%10 = call i32 @scanf(ptr noundef @.str.6, ptr noundef %2)
%11 = load i32, ptr %2, align 4
switch i32 %11, label %21 [
i32 1, label %12
i32 2, label %14
i32 3, label %16
i32 4, label %18
]
12: ; preds = %3
%13 = call i32 @printf(ptr noundef @.str.7)
br label %23
14: ; preds = %3
%15 = call i32 @printf(ptr noundef @.str.8)
br label %23
16: ; preds = %3
%17 = call i32 @printf(ptr noundef @.str.9)
br label %23
18: ; preds = %3
%19 = call i32 @printf(ptr noundef @.str.10)
%20 = call i32 @exit(i32 noundef 0) #3
unreachable
21: ; preds = %3
%22 = call i32 @printf(ptr noundef @.str.11)
br label %23
23: ; preds = %21, %16, %14, %12
br label %24
24: ; preds = %23
%25 = load i32, ptr %2, align 4
%26 = icmp sgt i32 %25, 1
br i1 %26, label %30, label %27
27: ; preds = %24
%28 = load i32, ptr %2, align 4
%29 = icmp slt i32 %28, 4
br label %30
30: ; preds = %27, %24
%31 = phi i1 [ true, %24 ], [ %29, %27 ]
br i1 %31, label %3, label %32, !llvm.loop !6
32: ; preds = %30
%33 = call i32 @print(ptr noundef @.str.12)
ret i32 0
}
declare i32 @printf(ptr noundef) #1
declare i32 @scanf(ptr noundef, ptr noundef) #1
; Function Attrs: noreturn
declare i32 @exit(i32 noundef) #2
declare i32 @print(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpprogwq6e.c'
source_filename = "/tmp/tmpprogwq6e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"0\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"1\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [12 x i8], align 1
%3 = alloca [10 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 %5, align 4
store i32 0, ptr %6, align 4
%8 = getelementptr inbounds [12 x i8], ptr %2, i64 0, i64 0
%9 = call i32 @scanf(ptr noundef @.str, ptr noundef %8)
%10 = getelementptr inbounds [12 x i8], ptr %2, i64 0, i64 0
%11 = call i32 @strlen(ptr noundef %10)
%12 = icmp ne i32 %11, 10
br i1 %12, label %13, label %15
13: ; preds = %0
%14 = call i32 @printf(ptr noundef @.str.1)
store i32 0, ptr %1, align 4
br label %168
15: ; preds = %0
store i32 0, ptr %4, align 4
br label %16
16: ; preds = %29, %15
%17 = load i32, ptr %4, align 4
%18 = icmp slt i32 %17, 10
br i1 %18, label %19, label %32
19: ; preds = %16
%20 = load i32, ptr %4, align 4
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [12 x i8], ptr %2, i64 0, i64 %21
%23 = load i8, ptr %22, align 1
%24 = sext i8 %23 to i32
%25 = sub nsw i32 %24, 48
%26 = load i32, ptr %4, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 %27
store i32 %25, ptr %28, align 4
br label %29
29: ; preds = %19
%30 = load i32, ptr %4, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %4, align 4
br label %16, !llvm.loop !6
32: ; preds = %16
%33 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 2
%34 = load i32, ptr %33, align 8
%35 = mul nsw i32 %34, 10
%36 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 3
%37 = load i32, ptr %36, align 4
%38 = add nsw i32 %35, %37
store i32 %38, ptr %5, align 4
%39 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 4
%40 = load i32, ptr %39, align 16
%41 = mul nsw i32 %40, 10
%42 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 5
%43 = load i32, ptr %42, align 4
%44 = add nsw i32 %41, %43
store i32 %44, ptr %6, align 4
%45 = load i32, ptr %5, align 4
%46 = srem i32 %45, 20
%47 = icmp sle i32 %46, 12
br i1 %47, label %48, label %120
48: ; preds = %32
%49 = load i32, ptr %5, align 4
%50 = sdiv i32 %49, 20
%51 = icmp sge i32 %50, 0
br i1 %51, label %52, label %120
52: ; preds = %48
%53 = load i32, ptr %5, align 4
%54 = sdiv i32 %53, 20
%55 = icmp sle i32 %54, 2
br i1 %55, label %56, label %120
56: ; preds = %52
%57 = load i32, ptr %5, align 4
%58 = srem i32 %57, 20
%59 = icmp eq i32 %58, 4
br i1 %59, label %72, label %60
60: ; preds = %56
%61 = load i32, ptr %5, align 4
%62 = srem i32 %61, 20
%63 = icmp eq i32 %62, 6
br i1 %63, label %72, label %64
64: ; preds = %60
%65 = load i32, ptr %5, align 4
%66 = srem i32 %65, 20
%67 = icmp eq i32 %66, 9
br i1 %67, label %72, label %68
68: ; preds = %64
%69 = load i32, ptr %5, align 4
%70 = srem i32 %69, 20
%71 = icmp eq i32 %70, 11
br i1 %71, label %72, label %77
72: ; preds = %68, %64, %60, %56
%73 = load i32, ptr %6, align 4
%74 = icmp sgt i32 %73, 30
br i1 %74, label %75, label %77
75: ; preds = %72
%76 = call i32 @printf(ptr noundef @.str.1)
store i32 0, ptr %1, align 4
br label %168
77: ; preds = %72, %68
%78 = load i32, ptr %5, align 4
%79 = srem i32 %78, 20
%80 = icmp eq i32 %79, 1
br i1 %80, label %105, label %81
81: ; preds = %77
%82 = load i32, ptr %5, align 4
%83 = srem i32 %82, 20
%84 = icmp eq i32 %83, 3
br i1 %84, label %105, label %85
85: ; preds = %81
%86 = load i32, ptr %5, align 4
%87 = srem i32 %86, 20
%88 = icmp eq i32 %87, 5
br i1 %88, label %105, label %89
89: ; preds = %85
%90 = load i32, ptr %5, align 4
%91 = srem i32 %90, 20
%92 = icmp eq i32 %91, 7
br i1 %92, label %105, label %93
93: ; preds = %89
%94 = load i32, ptr %5, align 4
%95 = srem i32 %94, 20
%96 = icmp eq i32 %95, 8
br i1 %96, label %105, label %97
97: ; preds = %93
%98 = load i32, ptr %5, align 4
%99 = srem i32 %98, 20
%100 = icmp eq i32 %99, 10
br i1 %100, label %105, label %101
101: ; preds = %97
%102 = load i32, ptr %5, align 4
%103 = srem i32 %102, 20
%104 = icmp eq i32 %103, 12
br i1 %104, label %105, label %110
105: ; preds = %101, %97, %93, %89, %85, %81, %77
%106 = load i32, ptr %6, align 4
%107 = icmp sgt i32 %106, 31
br i1 %107, label %108, label %110
108: ; preds = %105
%109 = call i32 @printf(ptr noundef @.str.1)
store i32 0, ptr %1, align 4
br label %168
110: ; preds = %105, %101
%111 = load i32, ptr %5, align 4
%112 = srem i32 %111, 20
%113 = icmp eq i32 %112, 2
br i1 %113, label %114, label %119
114: ; preds = %110
%115 = load i32, ptr %6, align 4
%116 = icmp sgt i32 %115, 29
br i1 %116, label %117, label %119
117: ; preds = %114
%118 = call i32 @printf(ptr noundef @.str.1)
store i32 0, ptr %1, align 4
br label %168
119: ; preds = %114, %110
br label %122
120: ; preds = %52, %48, %32
%121 = call i32 @printf(ptr noundef @.str.1)
store i32 0, ptr %1, align 4
br label %168
122: ; preds = %119
%123 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 0
%124 = load i32, ptr %123, align 16
%125 = mul nsw i32 %124, 2
%126 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 1
%127 = load i32, ptr %126, align 4
%128 = mul nsw i32 %127, 4
%129 = add nsw i32 %125, %128
%130 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 2
%131 = load i32, ptr %130, align 8
%132 = mul nsw i32 %131, 8
%133 = add nsw i32 %129, %132
%134 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 3
%135 = load i32, ptr %134, align 4
%136 = mul nsw i32 %135, 5
%137 = add nsw i32 %133, %136
%138 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 4
%139 = load i32, ptr %138, align 16
%140 = mul nsw i32 %139, 10
%141 = add nsw i32 %137, %140
%142 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 5
%143 = load i32, ptr %142, align 4
%144 = mul nsw i32 %143, 9
%145 = add nsw i32 %141, %144
%146 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 6
%147 = load i32, ptr %146, align 8
%148 = mul nsw i32 %147, 7
%149 = add nsw i32 %145, %148
%150 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 7
%151 = load i32, ptr %150, align 4
%152 = mul nsw i32 %151, 3
%153 = add nsw i32 %149, %152
%154 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 8
%155 = load i32, ptr %154, align 16
%156 = mul nsw i32 %155, 6
%157 = add nsw i32 %153, %156
%158 = srem i32 %157, 11
store i32 %158, ptr %7, align 4
%159 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 9
%160 = load i32, ptr %159, align 4
%161 = load i32, ptr %7, align 4
%162 = icmp ne i32 %160, %161
br i1 %162, label %163, label %165
163: ; preds = %122
%164 = call i32 @printf(ptr noundef @.str.1)
store i32 0, ptr %1, align 4
br label %168
165: ; preds = %122
%166 = call i32 @printf(ptr noundef @.str.2)
br label %167
167: ; preds = %165
store i32 0, ptr %1, align 4
br label %168
168: ; preds = %167, %163, %120, %117, %108, %75, %13
%169 = load i32, ptr %1, align 4
ret i32 %169
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpprogwq6e.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [3 x i8] c"%s\00", align 1
@.str.1 = private unnamed_addr constant [2 x i8] c"0\00", align 1
@.str.2 = private unnamed_addr constant [2 x i8] c"1\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca [12 x i8], align 1
%3 = alloca [10 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 %5, align 4
store i32 0, ptr %6, align 4
%8 = getelementptr inbounds [12 x i8], ptr %2, i64 0, i64 0
%9 = call i32 @scanf(ptr noundef @.str, ptr noundef %8)
%10 = getelementptr inbounds [12 x i8], ptr %2, i64 0, i64 0
%11 = call i32 @strlen(ptr noundef %10)
%12 = icmp ne i32 %11, 10
br i1 %12, label %13, label %15
13: ; preds = %0
%14 = call i32 @printf(ptr noundef @.str.1)
store i32 0, ptr %1, align 4
br label %169
15: ; preds = %0
store i32 0, ptr %4, align 4
%16 = load i32, ptr %4, align 4
%17 = icmp slt i32 %16, 10
br i1 %17, label %.lr.ph, label %33
.lr.ph: ; preds = %15
br label %18
18: ; preds = %.lr.ph, %28
%19 = load i32, ptr %4, align 4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [12 x i8], ptr %2, i64 0, i64 %20
%22 = load i8, ptr %21, align 1
%23 = sext i8 %22 to i32
%24 = sub nsw i32 %23, 48
%25 = load i32, ptr %4, align 4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 %26
store i32 %24, ptr %27, align 4
br label %28
28: ; preds = %18
%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, 10
br i1 %32, label %18, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %28
br label %33
33: ; preds = %._crit_edge, %15
%34 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 2
%35 = load i32, ptr %34, align 8
%36 = mul nsw i32 %35, 10
%37 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 3
%38 = load i32, ptr %37, align 4
%39 = add nsw i32 %36, %38
store i32 %39, ptr %5, align 4
%40 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 4
%41 = load i32, ptr %40, align 16
%42 = mul nsw i32 %41, 10
%43 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 5
%44 = load i32, ptr %43, align 4
%45 = add nsw i32 %42, %44
store i32 %45, ptr %6, align 4
%46 = load i32, ptr %5, align 4
%47 = srem i32 %46, 20
%48 = icmp sle i32 %47, 12
br i1 %48, label %49, label %121
49: ; preds = %33
%50 = load i32, ptr %5, align 4
%51 = sdiv i32 %50, 20
%52 = icmp sge i32 %51, 0
br i1 %52, label %53, label %121
53: ; preds = %49
%54 = load i32, ptr %5, align 4
%55 = sdiv i32 %54, 20
%56 = icmp sle i32 %55, 2
br i1 %56, label %57, label %121
57: ; preds = %53
%58 = load i32, ptr %5, align 4
%59 = srem i32 %58, 20
%60 = icmp eq i32 %59, 4
br i1 %60, label %73, label %61
61: ; preds = %57
%62 = load i32, ptr %5, align 4
%63 = srem i32 %62, 20
%64 = icmp eq i32 %63, 6
br i1 %64, label %73, label %65
65: ; preds = %61
%66 = load i32, ptr %5, align 4
%67 = srem i32 %66, 20
%68 = icmp eq i32 %67, 9
br i1 %68, label %73, label %69
69: ; preds = %65
%70 = load i32, ptr %5, align 4
%71 = srem i32 %70, 20
%72 = icmp eq i32 %71, 11
br i1 %72, label %73, label %78
73: ; preds = %69, %65, %61, %57
%74 = load i32, ptr %6, align 4
%75 = icmp sgt i32 %74, 30
br i1 %75, label %76, label %78
76: ; preds = %73
%77 = call i32 @printf(ptr noundef @.str.1)
store i32 0, ptr %1, align 4
br label %169
78: ; preds = %73, %69
%79 = load i32, ptr %5, align 4
%80 = srem i32 %79, 20
%81 = icmp eq i32 %80, 1
br i1 %81, label %106, label %82
82: ; preds = %78
%83 = load i32, ptr %5, align 4
%84 = srem i32 %83, 20
%85 = icmp eq i32 %84, 3
br i1 %85, label %106, label %86
86: ; preds = %82
%87 = load i32, ptr %5, align 4
%88 = srem i32 %87, 20
%89 = icmp eq i32 %88, 5
br i1 %89, label %106, label %90
90: ; preds = %86
%91 = load i32, ptr %5, align 4
%92 = srem i32 %91, 20
%93 = icmp eq i32 %92, 7
br i1 %93, label %106, label %94
94: ; preds = %90
%95 = load i32, ptr %5, align 4
%96 = srem i32 %95, 20
%97 = icmp eq i32 %96, 8
br i1 %97, label %106, label %98
98: ; preds = %94
%99 = load i32, ptr %5, align 4
%100 = srem i32 %99, 20
%101 = icmp eq i32 %100, 10
br i1 %101, label %106, label %102
102: ; preds = %98
%103 = load i32, ptr %5, align 4
%104 = srem i32 %103, 20
%105 = icmp eq i32 %104, 12
br i1 %105, label %106, label %111
106: ; preds = %102, %98, %94, %90, %86, %82, %78
%107 = load i32, ptr %6, align 4
%108 = icmp sgt i32 %107, 31
br i1 %108, label %109, label %111
109: ; preds = %106
%110 = call i32 @printf(ptr noundef @.str.1)
store i32 0, ptr %1, align 4
br label %169
111: ; preds = %106, %102
%112 = load i32, ptr %5, align 4
%113 = srem i32 %112, 20
%114 = icmp eq i32 %113, 2
br i1 %114, label %115, label %120
115: ; preds = %111
%116 = load i32, ptr %6, align 4
%117 = icmp sgt i32 %116, 29
br i1 %117, label %118, label %120
118: ; preds = %115
%119 = call i32 @printf(ptr noundef @.str.1)
store i32 0, ptr %1, align 4
br label %169
120: ; preds = %115, %111
br label %123
121: ; preds = %53, %49, %33
%122 = call i32 @printf(ptr noundef @.str.1)
store i32 0, ptr %1, align 4
br label %169
123: ; preds = %120
%124 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 0
%125 = load i32, ptr %124, align 16
%126 = mul nsw i32 %125, 2
%127 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 1
%128 = load i32, ptr %127, align 4
%129 = mul nsw i32 %128, 4
%130 = add nsw i32 %126, %129
%131 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 2
%132 = load i32, ptr %131, align 8
%133 = mul nsw i32 %132, 8
%134 = add nsw i32 %130, %133
%135 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 3
%136 = load i32, ptr %135, align 4
%137 = mul nsw i32 %136, 5
%138 = add nsw i32 %134, %137
%139 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 4
%140 = load i32, ptr %139, align 16
%141 = mul nsw i32 %140, 10
%142 = add nsw i32 %138, %141
%143 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 5
%144 = load i32, ptr %143, align 4
%145 = mul nsw i32 %144, 9
%146 = add nsw i32 %142, %145
%147 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 6
%148 = load i32, ptr %147, align 8
%149 = mul nsw i32 %148, 7
%150 = add nsw i32 %146, %149
%151 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 7
%152 = load i32, ptr %151, align 4
%153 = mul nsw i32 %152, 3
%154 = add nsw i32 %150, %153
%155 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 8
%156 = load i32, ptr %155, align 16
%157 = mul nsw i32 %156, 6
%158 = add nsw i32 %154, %157
%159 = srem i32 %158, 11
store i32 %159, ptr %7, align 4
%160 = getelementptr inbounds [10 x i32], ptr %3, i64 0, i64 9
%161 = load i32, ptr %160, align 4
%162 = load i32, ptr %7, align 4
%163 = icmp ne i32 %161, %162
br i1 %163, label %164, label %166
164: ; preds = %123
%165 = call i32 @printf(ptr noundef @.str.1)
store i32 0, ptr %1, align 4
br label %169
166: ; preds = %123
%167 = call i32 @printf(ptr noundef @.str.2)
br label %168
168: ; preds = %166
store i32 0, ptr %1, align 4
br label %169
169: ; preds = %168, %164, %121, %118, %109, %76, %13
%170 = load i32, ptr %1, align 4
ret i32 %170
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @strlen(ptr noundef) #1
declare i32 @printf(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpyvd6a9e2.c'
source_filename = "/tmp/tmpyvd6a9e2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"%d -> %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 1, ptr %2, align 4
store i32 0, ptr %5, align 4
store i32 3, ptr %3, align 4
br label %6
6: ; preds = %33, %0
%7 = load i32, ptr %2, align 4
%8 = icmp slt i32 %7, 10001
br i1 %8, label %9, label %36
9: ; preds = %6
store i32 2, ptr %4, align 4
br label %10
10: ; preds = %21, %9
%11 = load i32, ptr %4, align 4
%12 = load i32, ptr %3, align 4
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %24
14: ; preds = %10
%15 = load i32, ptr %3, align 4
%16 = load i32, ptr %4, align 4
%17 = srem i32 %15, %16
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %14
br label %24
20: ; preds = %14
br label %21
21: ; preds = %20
%22 = load i32, ptr %4, align 4
%23 = add nsw i32 %22, 1
store i32 %23, ptr %4, align 4
br label %10, !llvm.loop !6
24: ; preds = %19, %10
%25 = load i32, ptr %4, align 4
%26 = load i32, ptr %3, align 4
%27 = icmp eq i32 %25, %26
br i1 %27, label %28, label %32
28: ; preds = %24
%29 = load i32, ptr %3, align 4
store i32 %29, ptr %5, align 4
%30 = load i32, ptr %2, align 4
%31 = add nsw i32 %30, 1
store i32 %31, ptr %2, align 4
br label %32
32: ; preds = %28, %24
br label %33
33: ; preds = %32
%34 = load i32, ptr %3, align 4
%35 = add nsw i32 %34, 1
store i32 %35, ptr %3, align 4
br label %6, !llvm.loop !8
36: ; preds = %6
%37 = load i32, ptr %2, align 4
%38 = load i32, ptr %5, align 4
%39 = call i32 @printf(ptr noundef @.str, i32 noundef %37, i32 noundef %38)
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"}
!8 = distinct !{!8, !7}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpyvd6a9e2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [10 x i8] c"%d -> %d\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store i32 0, ptr %1, align 4
store i32 1, ptr %2, align 4
store i32 0, ptr %5, align 4
store i32 3, ptr %3, align 4
%6 = load i32, ptr %2, align 4
%7 = icmp slt i32 %6, 10001
br i1 %7, label %.lr.ph1, label %39
.lr.ph1: ; preds = %0
br label %8
8: ; preds = %.lr.ph1, %34
store i32 2, ptr %4, align 4
%9 = load i32, ptr %4, align 4
%10 = load i32, ptr %3, align 4
%11 = icmp slt i32 %9, %10
br i1 %11, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %8
br label %12
12: ; preds = %.lr.ph, %19
%13 = load i32, ptr %3, align 4
%14 = load i32, ptr %4, align 4
%15 = srem i32 %13, %14
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %12
br label %25
18: ; preds = %12
br label %19
19: ; preds = %18
%20 = load i32, ptr %4, align 4
%21 = add nsw i32 %20, 1
store i32 %21, ptr %4, align 4
%22 = load i32, ptr %4, align 4
%23 = load i32, ptr %3, align 4
%24 = icmp slt i32 %22, %23
br i1 %24, label %12, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %19
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %8
br label %25
25: ; preds = %.loopexit, %17
%26 = load i32, ptr %4, align 4
%27 = load i32, ptr %3, align 4
%28 = icmp eq i32 %26, %27
br i1 %28, label %29, label %33
29: ; preds = %25
%30 = load i32, ptr %3, align 4
store i32 %30, ptr %5, align 4
%31 = load i32, ptr %2, align 4
%32 = add nsw i32 %31, 1
store i32 %32, ptr %2, align 4
br label %33
33: ; preds = %29, %25
br label %34
34: ; preds = %33
%35 = load i32, ptr %3, align 4
%36 = add nsw i32 %35, 1
store i32 %36, ptr %3, align 4
%37 = load i32, ptr %2, align 4
%38 = icmp slt i32 %37, 10001
br i1 %38, label %8, label %._crit_edge, !llvm.loop !8
._crit_edge: ; preds = %34
br label %39
39: ; preds = %._crit_edge, %0
%40 = load i32, ptr %2, align 4
%41 = load i32, ptr %5, align 4
%42 = call i32 @printf(ptr noundef @.str, i32 noundef %40, i32 noundef %41)
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"}
!8 = distinct !{!8, !7}
|
; ModuleID = '/tmp/tmpn89uowsi.c'
source_filename = "/tmp/tmpn89uowsi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strncmp(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 i8, align 1
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
store i8 0, ptr %7, align 1
br label %8
8: ; preds = %29, %3
%9 = load i32, ptr %6, align 4
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %32
11: ; preds = %8
%12 = load ptr, ptr %4, align 8
%13 = load i8, ptr %12, align 1
%14 = sext i8 %13 to i32
%15 = load ptr, ptr %5, align 8
%16 = getelementptr inbounds i8, ptr %15, i32 1
store ptr %16, ptr %5, align 8
%17 = load i8, ptr %15, align 1
%18 = sext i8 %17 to i32
%19 = sub nsw i32 %14, %18
%20 = trunc i32 %19 to i8
store i8 %20, ptr %7, align 1
%21 = sext i8 %20 to i32
%22 = icmp ne i32 %21, 0
br i1 %22, label %28, label %23
23: ; preds = %11
%24 = load ptr, ptr %4, align 8
%25 = getelementptr inbounds i8, ptr %24, i32 1
store ptr %25, ptr %4, align 8
%26 = load i8, ptr %24, align 1
%27 = icmp ne i8 %26, 0
br i1 %27, label %29, label %28
28: ; preds = %23, %11
br label %32
29: ; preds = %23
%30 = load i32, ptr %6, align 4
%31 = add nsw i32 %30, -1
store i32 %31, ptr %6, align 4
br label %8, !llvm.loop !6
32: ; preds = %28, %8
%33 = load i8, ptr %7, align 1
%34 = sext i8 %33 to i32
ret i32 %34
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpn89uowsi.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strncmp(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 i8, align 1
store ptr %0, ptr %4, align 8
store ptr %1, ptr %5, align 8
store i32 %2, ptr %6, align 4
store i8 0, ptr %7, align 1
%8 = load i32, ptr %6, align 4
%9 = icmp ne i32 %8, 0
br i1 %9, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %3
br label %10
10: ; preds = %.lr.ph, %28
%11 = load ptr, ptr %4, align 8
%12 = load i8, ptr %11, align 1
%13 = sext i8 %12 to i32
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds i8, ptr %14, i32 1
store ptr %15, ptr %5, align 8
%16 = load i8, ptr %14, align 1
%17 = sext i8 %16 to i32
%18 = sub nsw i32 %13, %17
%19 = trunc i32 %18 to i8
store i8 %19, ptr %7, align 1
%20 = sext i8 %19 to i32
%21 = icmp ne i32 %20, 0
br i1 %21, label %27, label %22
22: ; preds = %10
%23 = load ptr, ptr %4, align 8
%24 = getelementptr inbounds i8, ptr %23, i32 1
store ptr %24, ptr %4, align 8
%25 = load i8, ptr %23, align 1
%26 = icmp ne i8 %25, 0
br i1 %26, label %28, label %27
27: ; preds = %22, %10
br label %33
28: ; preds = %22
%29 = load i32, ptr %6, align 4
%30 = add nsw i32 %29, -1
store i32 %30, ptr %6, align 4
%31 = load i32, ptr %6, align 4
%32 = icmp ne i32 %31, 0
br i1 %32, label %10, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %28
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %3
br label %33
33: ; preds = %.loopexit, %27
%34 = load i8, ptr %7, align 1
%35 = sext i8 %34 to i32
ret i32 %35
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpy3wcboc2.c'
source_filename = "/tmp/tmpy3wcboc2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @inOutQuart(float noundef %0, float noundef %1, float noundef %2, float noundef %3) #0 {
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = alloca float, align 4
store float %0, ptr %6, align 4
store float %1, ptr %7, align 4
store float %2, ptr %8, align 4
store float %3, ptr %9, align 4
%10 = load float, ptr %6, align 4
%11 = load float, ptr %9, align 4
%12 = fdiv float %10, %11
%13 = fmul float %12, 2.000000e+00
store float %13, ptr %6, align 4
%14 = load float, ptr %6, align 4
%15 = fcmp olt float %14, 1.000000e+00
br i1 %15, label %16, label %24
16: ; preds = %4
%17 = load float, ptr %8, align 4
%18 = fdiv float %17, 2.000000e+00
%19 = load float, ptr %6, align 4
%20 = call i32 @pow(float noundef %19, i32 noundef 4)
%21 = sitofp i32 %20 to float
%22 = load float, ptr %7, align 4
%23 = call float @llvm.fmuladd.f32(float %18, float %21, float %22)
store float %23, ptr %5, align 4
br label %35
24: ; preds = %4
%25 = load float, ptr %8, align 4
%26 = fneg float %25
%27 = fdiv float %26, 2.000000e+00
%28 = load float, ptr %6, align 4
%29 = fsub float %28, 2.000000e+00
%30 = call i32 @pow(float noundef %29, i32 noundef 4)
%31 = sub nsw i32 %30, 2
%32 = sitofp i32 %31 to float
%33 = load float, ptr %7, align 4
%34 = call float @llvm.fmuladd.f32(float %27, float %32, float %33)
store float %34, ptr %5, align 4
br label %35
35: ; preds = %24, %16
%36 = load float, ptr %5, align 4
ret float %36
}
declare i32 @pow(float noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpy3wcboc2.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @inOutQuart(float noundef %0, float noundef %1, float noundef %2, float noundef %3) #0 {
%5 = alloca float, align 4
%6 = alloca float, align 4
%7 = alloca float, align 4
%8 = alloca float, align 4
%9 = alloca float, align 4
store float %0, ptr %6, align 4
store float %1, ptr %7, align 4
store float %2, ptr %8, align 4
store float %3, ptr %9, align 4
%10 = load float, ptr %6, align 4
%11 = load float, ptr %9, align 4
%12 = fdiv float %10, %11
%13 = fmul float %12, 2.000000e+00
store float %13, ptr %6, align 4
%14 = load float, ptr %6, align 4
%15 = fcmp olt float %14, 1.000000e+00
br i1 %15, label %16, label %24
16: ; preds = %4
%17 = load float, ptr %8, align 4
%18 = fdiv float %17, 2.000000e+00
%19 = load float, ptr %6, align 4
%20 = call i32 @pow(float noundef %19, i32 noundef 4)
%21 = sitofp i32 %20 to float
%22 = load float, ptr %7, align 4
%23 = call float @llvm.fmuladd.f32(float %18, float %21, float %22)
store float %23, ptr %5, align 4
br label %35
24: ; preds = %4
%25 = load float, ptr %8, align 4
%26 = fneg float %25
%27 = fdiv float %26, 2.000000e+00
%28 = load float, ptr %6, align 4
%29 = fsub float %28, 2.000000e+00
%30 = call i32 @pow(float noundef %29, i32 noundef 4)
%31 = sub nsw i32 %30, 2
%32 = sitofp i32 %31 to float
%33 = load float, ptr %7, align 4
%34 = call float @llvm.fmuladd.f32(float %27, float %32, float %33)
store float %34, ptr %5, align 4
br label %35
35: ; preds = %24, %16
%36 = load float, ptr %5, align 4
ret float %36
}
declare i32 @pow(float noundef, i32 noundef) #1
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpgro70hur.c'
source_filename = "/tmp/tmpgro70hur.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printstrings(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
br label %6
6: ; preds = %17, %2
%7 = load i32, ptr %5, align 4
%8 = load i32, ptr %4, align 4
%9 = icmp slt i32 %7, %8
br i1 %9, label %10, label %20
10: ; preds = %6
%11 = load ptr, ptr %3, align 8
%12 = load i32, ptr %5, align 4
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds ptr, ptr %11, i64 %13
%15 = load ptr, ptr %14, align 8
%16 = call i32 @printf(ptr noundef @.str, ptr noundef %15)
br label %17
17: ; preds = %10
%18 = load i32, ptr %5, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %5, align 4
br label %6, !llvm.loop !6
20: ; preds = %6
ret void
}
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpgro70hur.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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"%s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @printstrings(ptr noundef %0, i32 noundef %1) #0 {
%3 = alloca ptr, align 8
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %3, align 8
store i32 %1, ptr %4, align 4
store i32 0, ptr %5, align 4
%6 = load i32, ptr %5, align 4
%7 = load i32, ptr %4, align 4
%8 = icmp slt i32 %6, %7
br i1 %8, label %.lr.ph, label %22
.lr.ph: ; preds = %2
br label %9
9: ; preds = %.lr.ph, %16
%10 = load ptr, ptr %3, align 8
%11 = load i32, ptr %5, align 4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds ptr, ptr %10, i64 %12
%14 = load ptr, ptr %13, align 8
%15 = call i32 @printf(ptr noundef @.str, ptr noundef %14)
br label %16
16: ; preds = %9
%17 = load i32, ptr %5, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %5, align 4
%19 = load i32, ptr %5, align 4
%20 = load i32, ptr %4, align 4
%21 = icmp slt i32 %19, %20
br i1 %21, label %9, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %16
br label %22
22: ; preds = %._crit_edge, %2
ret void
}
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpogtvuoyg.c'
source_filename = "/tmp/tmpogtvuoyg.c"
target datalayout = "e-m:e-p270: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 }
@AF_INET = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [10 x i8] c"192.0.2.1\00", align 1
@INET_ADDRSTRLEN = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [23 x i8] c"round-tripped ip4: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ip4() #0 {
%1 = alloca %struct.sockaddr_in, align 4
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
%4 = load i32, ptr @AF_INET, align 4
%5 = getelementptr inbounds %struct.sockaddr_in, ptr %1, i32 0, i32 0
%6 = call i32 @inet_pton(i32 noundef %4, ptr noundef @.str, ptr noundef %5)
%7 = load i32, ptr @INET_ADDRSTRLEN, align 4
%8 = zext i32 %7 to i64
%9 = call ptr @llvm.stacksave()
store ptr %9, ptr %2, align 8
%10 = alloca i8, i64 %8, align 16
store i64 %8, ptr %3, align 8
%11 = load i32, ptr @AF_INET, align 4
%12 = getelementptr inbounds %struct.sockaddr_in, ptr %1, i32 0, i32 0
%13 = load i32, ptr @INET_ADDRSTRLEN, align 4
%14 = call i32 @inet_ntop(i32 noundef %11, ptr noundef %12, ptr noundef %10, i32 noundef %13)
%15 = call i32 @printf(ptr noundef @.str.1, ptr noundef %10)
%16 = load ptr, ptr %2, align 8
call void @llvm.stackrestore(ptr %16)
ret void
}
declare i32 @inet_pton(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @inet_ntop(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr 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"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpogtvuoyg.c"
target datalayout = "e-m:e-p270: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 }
@AF_INET = dso_local global i32 0, align 4
@.str = private unnamed_addr constant [10 x i8] c"192.0.2.1\00", align 1
@INET_ADDRSTRLEN = dso_local global i32 0, align 4
@.str.1 = private unnamed_addr constant [23 x i8] c"round-tripped ip4: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @ip4() #0 {
%1 = alloca %struct.sockaddr_in, align 4
%2 = alloca ptr, align 8
%3 = alloca i64, align 8
%4 = load i32, ptr @AF_INET, align 4
%5 = getelementptr inbounds %struct.sockaddr_in, ptr %1, i32 0, i32 0
%6 = call i32 @inet_pton(i32 noundef %4, ptr noundef @.str, ptr noundef %5)
%7 = load i32, ptr @INET_ADDRSTRLEN, align 4
%8 = zext i32 %7 to i64
%9 = call ptr @llvm.stacksave()
store ptr %9, ptr %2, align 8
%10 = alloca i8, i64 %8, align 16
store i64 %8, ptr %3, align 8
%11 = load i32, ptr @AF_INET, align 4
%12 = getelementptr inbounds %struct.sockaddr_in, ptr %1, i32 0, i32 0
%13 = load i32, ptr @INET_ADDRSTRLEN, align 4
%14 = call i32 @inet_ntop(i32 noundef %11, ptr noundef %12, ptr noundef %10, i32 noundef %13)
%15 = call i32 @printf(ptr noundef @.str.1, ptr noundef %10)
%16 = load ptr, ptr %2, align 8
call void @llvm.stackrestore(ptr %16)
ret void
}
declare i32 @inet_pton(i32 noundef, ptr noundef, ptr noundef) #1
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave() #2
declare i32 @inet_ntop(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #1
declare i32 @printf(ptr 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"}
|
; ModuleID = '/tmp/tmp3aq11d_g.c'
source_filename = "/tmp/tmp3aq11d_g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @mat4d_rotateEuler_new(ptr noundef %0, double noundef %1, double noundef %2, double noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca ptr, align 8
%11 = alloca [9 x double], align 16
store ptr %0, ptr %6, align 8
store double %1, ptr %7, align 8
store double %2, ptr %8, align 8
store double %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
%12 = getelementptr inbounds [9 x double], ptr %11, i64 0, i64 0
%13 = load double, ptr %7, align 8
%14 = load double, ptr %8, align 8
%15 = load double, ptr %9, align 8
%16 = load ptr, ptr %10, align 8
%17 = call i32 @mat3d_rotateEuler_new(ptr noundef %12, double noundef %13, double noundef %14, double noundef %15, ptr noundef %16)
%18 = load ptr, ptr %6, align 8
%19 = getelementptr inbounds [9 x double], ptr %11, i64 0, i64 0
%20 = call i32 @mat4d_from_mat3d(ptr noundef %18, ptr noundef %19)
ret void
}
declare i32 @mat3d_rotateEuler_new(ptr noundef, double noundef, double noundef, double noundef, ptr noundef) #1
declare i32 @mat4d_from_mat3d(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/tmp3aq11d_g.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @mat4d_rotateEuler_new(ptr noundef %0, double noundef %1, double noundef %2, double noundef %3, ptr noundef %4) #0 {
%6 = alloca ptr, align 8
%7 = alloca double, align 8
%8 = alloca double, align 8
%9 = alloca double, align 8
%10 = alloca ptr, align 8
%11 = alloca [9 x double], align 16
store ptr %0, ptr %6, align 8
store double %1, ptr %7, align 8
store double %2, ptr %8, align 8
store double %3, ptr %9, align 8
store ptr %4, ptr %10, align 8
%12 = getelementptr inbounds [9 x double], ptr %11, i64 0, i64 0
%13 = load double, ptr %7, align 8
%14 = load double, ptr %8, align 8
%15 = load double, ptr %9, align 8
%16 = load ptr, ptr %10, align 8
%17 = call i32 @mat3d_rotateEuler_new(ptr noundef %12, double noundef %13, double noundef %14, double noundef %15, ptr noundef %16)
%18 = load ptr, ptr %6, align 8
%19 = getelementptr inbounds [9 x double], ptr %11, i64 0, i64 0
%20 = call i32 @mat4d_from_mat3d(ptr noundef %18, ptr noundef %19)
ret void
}
declare i32 @mat3d_rotateEuler_new(ptr noundef, double noundef, double noundef, double noundef, ptr noundef) #1
declare i32 @mat4d_from_mat3d(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/tmpsrwlc98q.c'
source_filename = "/tmp/tmpsrwlc98q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [31 x i8] c"ERROR: Necesitas un argumento\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"%d: 'A'\0A\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"%d: 'E'\0A\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"%d: 'I'\0A\00", align 1
@.str.4 = private unnamed_addr constant [9 x i8] c"%d: 'O'\0A\00", align 1
@.str.5 = private unnamed_addr constant [9 x i8] c"%d: 'U'\0A\00", align 1
@.str.6 = private unnamed_addr constant [24 x i8] c"%d: %c no es una vocal\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 i8, align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = load i32, ptr %4, align 4
%9 = icmp ne i32 %8, 2
br i1 %9, label %10, label %12
10: ; preds = %2
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 1, ptr %3, align 4
br label %58
12: ; preds = %2
store i32 0, ptr %6, align 4
store i32 0, ptr %6, align 4
br label %13
13: ; preds = %54, %12
%14 = load ptr, ptr %5, align 8
%15 = getelementptr inbounds ptr, ptr %14, i64 1
%16 = load ptr, ptr %15, align 8
%17 = load i32, ptr %6, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i8, ptr %16, i64 %18
%20 = load i8, ptr %19, align 1
%21 = sext i8 %20 to i32
%22 = icmp ne i32 %21, 0
br i1 %22, label %23, label %57
23: ; preds = %13
%24 = load ptr, ptr %5, align 8
%25 = getelementptr inbounds ptr, ptr %24, i64 1
%26 = load ptr, ptr %25, align 8
%27 = load i32, ptr %6, align 4
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, ptr %26, i64 %28
%30 = load i8, ptr %29, align 1
store i8 %30, ptr %7, align 1
%31 = load i8, ptr %7, align 1
%32 = sext i8 %31 to i32
switch i32 %32, label %48 [
i32 97, label %33
i32 65, label %33
i32 101, label %36
i32 69, label %36
i32 105, label %39
i32 73, label %39
i32 111, label %42
i32 79, label %42
i32 117, label %45
i32 85, label %45
]
33: ; preds = %23, %23
%34 = load i32, ptr %6, align 4
%35 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %34)
br label %53
36: ; preds = %23, %23
%37 = load i32, ptr %6, align 4
%38 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %37)
br label %39
39: ; preds = %23, %23, %36
%40 = load i32, ptr %6, align 4
%41 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %40)
br label %53
42: ; preds = %23, %23
%43 = load i32, ptr %6, align 4
%44 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %43)
br label %53
45: ; preds = %23, %23
%46 = load i32, ptr %6, align 4
%47 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %46)
br label %53
48: ; preds = %23
%49 = load i32, ptr %6, align 4
%50 = load i8, ptr %7, align 1
%51 = sext i8 %50 to i32
%52 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %49, i32 noundef %51)
br label %53
53: ; preds = %48, %45, %42, %39, %33
br label %54
54: ; preds = %53
%55 = load i32, ptr %6, align 4
%56 = add nsw i32 %55, 1
store i32 %56, ptr %6, align 4
br label %13, !llvm.loop !6
57: ; preds = %13
store i32 0, ptr %3, align 4
br label %58
58: ; preds = %57, %10
%59 = load i32, ptr %3, align 4
ret i32 %59
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpsrwlc98q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [31 x i8] c"ERROR: Necesitas un argumento\0A\00", align 1
@.str.1 = private unnamed_addr constant [9 x i8] c"%d: 'A'\0A\00", align 1
@.str.2 = private unnamed_addr constant [9 x i8] c"%d: 'E'\0A\00", align 1
@.str.3 = private unnamed_addr constant [9 x i8] c"%d: 'I'\0A\00", align 1
@.str.4 = private unnamed_addr constant [9 x i8] c"%d: 'O'\0A\00", align 1
@.str.5 = private unnamed_addr constant [9 x i8] c"%d: 'U'\0A\00", align 1
@.str.6 = private unnamed_addr constant [24 x i8] c"%d: %c no es una vocal\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 i8, align 1
store i32 0, ptr %3, align 4
store i32 %0, ptr %4, align 4
store ptr %1, ptr %5, align 8
%8 = load i32, ptr %4, align 4
%9 = icmp ne i32 %8, 2
br i1 %9, label %10, label %12
10: ; preds = %2
%11 = call i32 (ptr, ...) @printf(ptr noundef @.str)
store i32 1, ptr %3, align 4
br label %66
12: ; preds = %2
store i32 0, ptr %6, align 4
store i32 0, ptr %6, align 4
%13 = load ptr, ptr %5, align 8
%14 = getelementptr inbounds ptr, ptr %13, i64 1
%15 = load ptr, ptr %14, align 8
%16 = load i32, ptr %6, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8, ptr %15, i64 %17
%19 = load i8, ptr %18, align 1
%20 = sext i8 %19 to i32
%21 = icmp ne i32 %20, 0
br i1 %21, label %.lr.ph, label %65
.lr.ph: ; preds = %12
br label %22
22: ; preds = %.lr.ph, %53
%23 = load ptr, ptr %5, align 8
%24 = getelementptr inbounds ptr, ptr %23, i64 1
%25 = load ptr, ptr %24, align 8
%26 = load i32, ptr %6, align 4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8, ptr %25, i64 %27
%29 = load i8, ptr %28, align 1
store i8 %29, ptr %7, align 1
%30 = load i8, ptr %7, align 1
%31 = sext i8 %30 to i32
switch i32 %31, label %47 [
i32 97, label %32
i32 65, label %32
i32 101, label %35
i32 69, label %35
i32 105, label %38
i32 73, label %38
i32 111, label %41
i32 79, label %41
i32 117, label %44
i32 85, label %44
]
32: ; preds = %22, %22
%33 = load i32, ptr %6, align 4
%34 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %33)
br label %52
35: ; preds = %22, %22
%36 = load i32, ptr %6, align 4
%37 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %36)
br label %38
38: ; preds = %35, %22, %22
%39 = load i32, ptr %6, align 4
%40 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %39)
br label %52
41: ; preds = %22, %22
%42 = load i32, ptr %6, align 4
%43 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %42)
br label %52
44: ; preds = %22, %22
%45 = load i32, ptr %6, align 4
%46 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %45)
br label %52
47: ; preds = %22
%48 = load i32, ptr %6, align 4
%49 = load i8, ptr %7, align 1
%50 = sext i8 %49 to i32
%51 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %48, i32 noundef %50)
br label %52
52: ; preds = %47, %44, %41, %38, %32
br label %53
53: ; preds = %52
%54 = load i32, ptr %6, align 4
%55 = add nsw i32 %54, 1
store i32 %55, ptr %6, align 4
%56 = load ptr, ptr %5, align 8
%57 = getelementptr inbounds ptr, ptr %56, i64 1
%58 = load ptr, ptr %57, align 8
%59 = load i32, ptr %6, align 4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds i8, ptr %58, i64 %60
%62 = load i8, ptr %61, align 1
%63 = sext i8 %62 to i32
%64 = icmp ne i32 %63, 0
br i1 %64, label %22, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %53
br label %65
65: ; preds = %._crit_edge, %12
store i32 0, ptr %3, align 4
br label %66
66: ; preds = %65, %10
%67 = load i32, ptr %3, align 4
ret i32 %67
}
declare i32 @printf(ptr noundef, ...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmphb3q1jfe.c'
source_filename = "/tmp/tmphb3q1jfe.c"
target datalayout = "e-m:e-p270: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 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @set_XColormapEvent_new(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 = load ptr, ptr %3, align 8
%7 = getelementptr inbounds %struct.TYPE_2__, ptr %6, i32 0, i32 0
store i32 %5, ptr %7, align 4
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmphb3q1jfe.c"
target datalayout = "e-m:e-p270: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 }
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @set_XColormapEvent_new(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 = load ptr, ptr %3, align 8
%7 = getelementptr inbounds %struct.TYPE_2__, ptr %6, i32 0, i32 0
store i32 %5, ptr %7, align 4
ret void
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp75qduuyp.c'
source_filename = "/tmp/tmp75qduuyp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [34 x i8] c"The year you entered is a %s year\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"leap\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"normal\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = call i32 @scanf(ptr noundef @.str, ptr noundef %1)
%3 = load i32, ptr %1, align 4
%4 = srem i32 %3, 4
%5 = icmp eq i32 %4, 0
%6 = zext i1 %5 to i64
%7 = select i1 %5, ptr @.str.2, ptr @.str.3
%8 = call i32 @printf(ptr noundef @.str.1, ptr noundef %7)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp75qduuyp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-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 [34 x i8] c"The year you entered is a %s year\00", align 1
@.str.2 = private unnamed_addr constant [5 x i8] c"leap\00", align 1
@.str.3 = private unnamed_addr constant [7 x i8] c"normal\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @main() #0 {
%1 = alloca i32, align 4
%2 = call i32 @scanf(ptr noundef @.str, ptr noundef %1)
%3 = load i32, ptr %1, align 4
%4 = srem i32 %3, 4
%5 = icmp eq i32 %4, 0
%6 = zext i1 %5 to i64
%7 = select i1 %5, ptr @.str.2, ptr @.str.3
%8 = call i32 @printf(ptr noundef @.str.1, ptr noundef %7)
ret i32 0
}
declare i32 @scanf(ptr noundef, ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmpysb4_30i.c'
source_filename = "/tmp/tmpysb4_30i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @initialize_all_gpios() #0 {
%1 = call i32 @gpio_configure_dir(i32 noundef 66, i32 noundef 1)
%2 = call i32 @gpio_write_value(i32 noundef 66, i32 noundef 0)
%3 = call i32 @gpio_configure_dir(i32 noundef 67, i32 noundef 1)
%4 = call i32 @gpio_write_value(i32 noundef 67, i32 noundef 0)
%5 = call i32 @gpio_configure_dir(i32 noundef 69, i32 noundef 1)
%6 = call i32 @gpio_write_value(i32 noundef 69, i32 noundef 0)
%7 = call i32 @gpio_configure_dir(i32 noundef 68, i32 noundef 1)
%8 = call i32 @gpio_write_value(i32 noundef 68, i32 noundef 0)
%9 = call i32 @gpio_configure_dir(i32 noundef 45, i32 noundef 1)
%10 = call i32 @gpio_write_value(i32 noundef 45, i32 noundef 0)
%11 = call i32 @gpio_configure_dir(i32 noundef 44, i32 noundef 1)
%12 = call i32 @gpio_write_value(i32 noundef 44, i32 noundef 0)
%13 = call i32 @gpio_configure_dir(i32 noundef 26, i32 noundef 1)
%14 = call i32 @gpio_write_value(i32 noundef 26, i32 noundef 0)
%15 = call i32 @gpio_configure_dir(i32 noundef 46, i32 noundef 1)
%16 = call i32 @gpio_write_value(i32 noundef 46, i32 noundef 0)
ret i32 0
}
declare i32 @gpio_configure_dir(i32 noundef, i32 noundef) #1
declare i32 @gpio_write_value(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/tmpysb4_30i.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @initialize_all_gpios() #0 {
%1 = call i32 @gpio_configure_dir(i32 noundef 66, i32 noundef 1)
%2 = call i32 @gpio_write_value(i32 noundef 66, i32 noundef 0)
%3 = call i32 @gpio_configure_dir(i32 noundef 67, i32 noundef 1)
%4 = call i32 @gpio_write_value(i32 noundef 67, i32 noundef 0)
%5 = call i32 @gpio_configure_dir(i32 noundef 69, i32 noundef 1)
%6 = call i32 @gpio_write_value(i32 noundef 69, i32 noundef 0)
%7 = call i32 @gpio_configure_dir(i32 noundef 68, i32 noundef 1)
%8 = call i32 @gpio_write_value(i32 noundef 68, i32 noundef 0)
%9 = call i32 @gpio_configure_dir(i32 noundef 45, i32 noundef 1)
%10 = call i32 @gpio_write_value(i32 noundef 45, i32 noundef 0)
%11 = call i32 @gpio_configure_dir(i32 noundef 44, i32 noundef 1)
%12 = call i32 @gpio_write_value(i32 noundef 44, i32 noundef 0)
%13 = call i32 @gpio_configure_dir(i32 noundef 26, i32 noundef 1)
%14 = call i32 @gpio_write_value(i32 noundef 26, i32 noundef 0)
%15 = call i32 @gpio_configure_dir(i32 noundef 46, i32 noundef 1)
%16 = call i32 @gpio_write_value(i32 noundef 46, i32 noundef 0)
ret i32 0
}
declare i32 @gpio_configure_dir(i32 noundef, i32 noundef) #1
declare i32 @gpio_write_value(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/tmpg6_vob4q.c'
source_filename = "/tmp/tmpg6_vob4q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SIGABRT = dso_local global i32 0, align 4
@SIG_SETMASK = 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/tmpg6_vob4q.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@SIGABRT = dso_local global i32 0, align 4
@SIG_SETMASK = 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/tmpf4wnsjr7.c'
source_filename = "/tmp/tmpf4wnsjr7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"\0A%d is prime\0A\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"%d is not a prime number\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @checkIfPrime(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 0, ptr %3, align 4
store i32 2, ptr %4, align 4
br label %5
5: ; preds = %17, %1
%6 = load i32, ptr %4, align 4
%7 = load i32, ptr %2, align 4
%8 = sdiv i32 %7, 2
%9 = icmp sle i32 %6, %8
br i1 %9, label %10, label %20
10: ; preds = %5
%11 = load i32, ptr %2, align 4
%12 = load i32, ptr %4, align 4
%13 = srem i32 %11, %12
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %16
15: ; preds = %10
store i32 1, ptr %3, align 4
br label %20
16: ; preds = %10
br label %17
17: ; preds = %16
%18 = load i32, ptr %4, align 4
%19 = add nsw i32 %18, 1
store i32 %19, ptr %4, align 4
br label %5, !llvm.loop !6
20: ; preds = %15, %5
%21 = load i32, ptr %3, align 4
%22 = icmp eq i32 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %20
%24 = load i32, ptr %2, align 4
%25 = call i32 @printf(ptr noundef @.str, i32 noundef %24)
br label %29
26: ; preds = %20
%27 = load i32, ptr %2, align 4
%28 = call i32 @printf(ptr noundef @.str.1, i32 noundef %27)
br label %29
29: ; preds = %26, %23
ret void
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpf4wnsjr7.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [14 x i8] c"\0A%d is prime\0A\00", align 1
@.str.1 = private unnamed_addr constant [25 x i8] c"%d is not a prime number\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @checkIfPrime(i32 noundef %0) #0 {
%2 = alloca i32, align 4
%3 = alloca i32, align 4
%4 = alloca i32, align 4
store i32 %0, ptr %2, align 4
store i32 0, ptr %3, align 4
store i32 2, ptr %4, align 4
%5 = load i32, ptr %4, align 4
%6 = load i32, ptr %2, align 4
%7 = sdiv i32 %6, 2
%8 = icmp sle i32 %5, %7
br i1 %8, label %.lr.ph, label %.loopexit
.lr.ph: ; preds = %1
br label %9
9: ; preds = %.lr.ph, %16
%10 = load i32, ptr %2, align 4
%11 = load i32, ptr %4, align 4
%12 = srem i32 %10, %11
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %15
14: ; preds = %9
store i32 1, ptr %3, align 4
br label %23
15: ; preds = %9
br label %16
16: ; preds = %15
%17 = load i32, ptr %4, align 4
%18 = add nsw i32 %17, 1
store i32 %18, ptr %4, align 4
%19 = load i32, ptr %4, align 4
%20 = load i32, ptr %2, align 4
%21 = sdiv i32 %20, 2
%22 = icmp sle i32 %19, %21
br i1 %22, label %9, label %..loopexit_crit_edge, !llvm.loop !6
..loopexit_crit_edge: ; preds = %16
br label %.loopexit
.loopexit: ; preds = %..loopexit_crit_edge, %1
br label %23
23: ; preds = %.loopexit, %14
%24 = load i32, ptr %3, align 4
%25 = icmp eq i32 %24, 0
br i1 %25, label %26, label %29
26: ; preds = %23
%27 = load i32, ptr %2, align 4
%28 = call i32 @printf(ptr noundef @.str, i32 noundef %27)
br label %32
29: ; preds = %23
%30 = load i32, ptr %2, align 4
%31 = call i32 @printf(ptr noundef @.str.1, i32 noundef %30)
br label %32
32: ; preds = %29, %26
ret void
}
declare i32 @printf(ptr noundef, i32 noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmp11c2uoqq.c'
source_filename = "/tmp/tmp11c2uoqq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @select_one() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %3, ptr %2, align 4
%4 = load i32, ptr %2, align 4
store i32 %4, ptr %1, align 4
%5 = load i32, ptr %1, align 4
ret i32 %5
}
declare i32 @__VERIFIER_nondet_int(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp11c2uoqq.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @select_one() #0 {
%1 = alloca i32, align 4
%2 = alloca i32, align 4
%3 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %3, ptr %2, align 4
%4 = load i32, ptr %2, align 4
store i32 %4, ptr %1, align 4
%5 = load i32, ptr %1, align 4
ret i32 %5
}
declare i32 @__VERIFIER_nondet_int(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
|
; ModuleID = '/tmp/tmp39_li9ts.c'
source_filename = "/tmp/tmp39_li9ts.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"\0AThis is the reverse of string1: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @my_strreverse(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%6 = call i64 @malloc(i32 noundef 8)
%7 = inttoptr i64 %6 to ptr
store ptr %7, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
store ptr %8, ptr %4, align 8
%9 = load ptr, ptr %2, align 8
%10 = call i32 @my_strlen(ptr noundef %9)
%11 = sub nsw i32 %10, 1
store i32 %11, ptr %5, align 4
br label %12
12: ; preds = %24, %1
%13 = load i32, ptr %5, align 4
%14 = icmp ne i32 %13, -1
br i1 %14, label %15, label %27
15: ; preds = %12
%16 = load ptr, ptr %2, align 8
%17 = load i32, ptr %5, align 4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i8, ptr %16, i64 %18
%20 = load i8, ptr %19, align 1
%21 = load ptr, ptr %3, align 8
store i8 %20, ptr %21, align 1
%22 = load ptr, ptr %3, align 8
%23 = getelementptr inbounds i8, ptr %22, i32 1
store ptr %23, ptr %3, align 8
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
%28 = load ptr, ptr %4, align 8
store ptr %28, ptr %2, align 8
%29 = load ptr, ptr %2, align 8
%30 = call i32 @printf(ptr noundef @.str, ptr noundef %29)
ret void
}
declare i64 @malloc(i32 noundef) #1
declare i32 @my_strlen(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp39_li9ts.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr constant [37 x i8] c"\0AThis is the reverse of string1: %s\0A\00", align 1
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local void @my_strreverse(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca ptr, align 8
%4 = alloca ptr, align 8
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
%6 = call i64 @malloc(i32 noundef 8)
%7 = inttoptr i64 %6 to ptr
store ptr %7, ptr %3, align 8
%8 = load ptr, ptr %3, align 8
store ptr %8, ptr %4, align 8
%9 = load ptr, ptr %2, align 8
%10 = call i32 @my_strlen(ptr noundef %9)
%11 = sub nsw i32 %10, 1
store i32 %11, ptr %5, align 4
%12 = load i32, ptr %5, align 4
%13 = icmp ne i32 %12, -1
br i1 %13, label %.lr.ph, label %28
.lr.ph: ; preds = %1
br label %14
14: ; preds = %.lr.ph, %23
%15 = load ptr, ptr %2, align 8
%16 = load i32, ptr %5, align 4
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8, ptr %15, i64 %17
%19 = load i8, ptr %18, align 1
%20 = load ptr, ptr %3, align 8
store i8 %19, ptr %20, align 1
%21 = load ptr, ptr %3, align 8
%22 = getelementptr inbounds i8, ptr %21, i32 1
store ptr %22, ptr %3, align 8
br label %23
23: ; preds = %14
%24 = load i32, ptr %5, align 4
%25 = add nsw i32 %24, -1
store i32 %25, ptr %5, align 4
%26 = load i32, ptr %5, align 4
%27 = icmp ne i32 %26, -1
br i1 %27, label %14, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %28
28: ; preds = %._crit_edge, %1
%29 = load ptr, ptr %4, align 8
store ptr %29, ptr %2, align 8
%30 = load ptr, ptr %2, align 8
%31 = call i32 @printf(ptr noundef @.str, ptr noundef %30)
ret void
}
declare i64 @malloc(i32 noundef) #1
declare i32 @my_strlen(ptr noundef) #1
declare i32 @printf(ptr noundef, ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpo3gzc_d3.c'
source_filename = "/tmp/tmpo3gzc_d3.c"
target datalayout = "e-m:e-p270: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/tmpo3gzc_d3.c"
target datalayout = "e-m:e-p270: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/tmpu2yd73yp.c'
source_filename = "/tmp/tmpu2yd73yp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @str_int(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 1, ptr %4, align 4
store i32 0, ptr %5, align 4
%6 = load ptr, ptr %2, align 8
%7 = call i32 @strlen(ptr noundef %6)
%8 = sub nsw i32 %7, 1
store i32 %8, ptr %3, align 4
br label %9
9: ; preds = %24, %1
%10 = load i32, ptr %3, align 4
%11 = icmp sge i32 %10, 0
br i1 %11, label %12, label %29
12: ; preds = %9
%13 = load ptr, ptr %2, align 8
%14 = load i32, ptr %3, align 4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8, ptr %13, i64 %15
%17 = load i8, ptr %16, align 1
%18 = sext i8 %17 to i32
%19 = sub nsw i32 %18, 48
%20 = load i32, ptr %4, align 4
%21 = mul nsw i32 %19, %20
%22 = load i32, ptr %5, align 4
%23 = add nsw i32 %22, %21
store i32 %23, ptr %5, align 4
br label %24
24: ; preds = %12
%25 = load i32, ptr %3, align 4
%26 = add nsw i32 %25, -1
store i32 %26, ptr %3, align 4
%27 = load i32, ptr %4, align 4
%28 = mul nsw i32 %27, 10
store i32 %28, ptr %4, align 4
br label %9, !llvm.loop !6
29: ; preds = %9
%30 = load i32, ptr %5, align 4
ret i32 %30
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmpu2yd73yp.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: noinline nounwind sspstrong uwtable
define dso_local i32 @str_int(ptr noundef %0) #0 {
%2 = alloca ptr, align 8
%3 = alloca i32, align 4
%4 = alloca i32, align 4
%5 = alloca i32, align 4
store ptr %0, ptr %2, align 8
store i32 1, ptr %4, align 4
store i32 0, ptr %5, align 4
%6 = load ptr, ptr %2, align 8
%7 = call i32 @strlen(ptr noundef %6)
%8 = sub nsw i32 %7, 1
store i32 %8, ptr %3, align 4
%9 = load i32, ptr %3, align 4
%10 = icmp sge i32 %9, 0
br i1 %10, label %.lr.ph, label %30
.lr.ph: ; preds = %1
br label %11
11: ; preds = %.lr.ph, %23
%12 = load ptr, ptr %2, align 8
%13 = load i32, ptr %3, align 4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i8, ptr %12, i64 %14
%16 = load i8, ptr %15, align 1
%17 = sext i8 %16 to i32
%18 = sub nsw i32 %17, 48
%19 = load i32, ptr %4, align 4
%20 = mul nsw i32 %18, %19
%21 = load i32, ptr %5, align 4
%22 = add nsw i32 %21, %20
store i32 %22, ptr %5, align 4
br label %23
23: ; preds = %11
%24 = load i32, ptr %3, align 4
%25 = add nsw i32 %24, -1
store i32 %25, ptr %3, align 4
%26 = load i32, ptr %4, align 4
%27 = mul nsw i32 %26, 10
store i32 %27, ptr %4, align 4
%28 = load i32, ptr %3, align 4
%29 = icmp sge i32 %28, 0
br i1 %29, label %11, label %._crit_edge, !llvm.loop !6
._crit_edge: ; preds = %23
br label %30
30: ; preds = %._crit_edge, %1
%31 = load i32, ptr %5, align 4
ret i32 %31
}
declare i32 @strlen(ptr noundef) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
|
; ModuleID = '/tmp/tmpy3z51tmb.c'
source_filename = "/tmp/tmpy3z51tmb.c"
target datalayout = "e-m:e-p270: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/tmpy3z51tmb.c"
target datalayout = "e-m:e-p270: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/tmpxcv8whyj.c'
source_filename = "/tmp/tmpxcv8whyj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strlen(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
store ptr %4, ptr %3, align 8
br label %5
5: ; preds = %10, %1
%6 = load ptr, ptr %3, align 8
%7 = getelementptr inbounds i8, ptr %6, i32 1
store ptr %7, ptr %3, align 8
%8 = load i8, ptr %6, align 1
%9 = icmp ne i8 %8, 0
br i1 %9, label %10, label %11
10: ; preds = %5
br label %5, !llvm.loop !6
11: ; preds = %5
%12 = load ptr, ptr %3, align 8
%13 = load ptr, ptr %2, align 8
%14 = ptrtoint ptr %12 to i64
%15 = ptrtoint ptr %13 to i64
%16 = sub i64 %14, %15
ret i64 %16
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmpxcv8whyj.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @strlen(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
store ptr %4, ptr %3, align 8
br label %5
5: ; preds = %5, %1
%6 = load ptr, ptr %3, align 8
%7 = getelementptr inbounds i8, ptr %6, i32 1
store ptr %7, ptr %3, align 8
%8 = load i8, ptr %6, align 1
%9 = icmp ne i8 %8, 0
br i1 %9, label %5, label %10, !llvm.loop !6
10: ; preds = %5
%11 = load ptr, ptr %3, align 8
%12 = load ptr, ptr %2, align 8
%13 = ptrtoint ptr %11 to i64
%14 = ptrtoint ptr %12 to i64
%15 = sub i64 %13, %14
ret i64 %15
}
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"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/tmp5x0w3dkb.c'
source_filename = "/tmp/tmp5x0w3dkb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @SYS_endwin() #0 {
%1 = call i32 (...) @endwin()
ret void
}
declare i32 @endwin(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 7, !"frame-pointer", i32 2}
!5 = !{!"clang version 17.0.6"}
| ; ModuleID = '<stdin>'
source_filename = "/tmp/tmp5x0w3dkb.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 @SYS_endwin() #0 {
%1 = call i32 (...) @endwin()
ret void
}
declare i32 @endwin(...) #1
attributes #0 = { noinline nounwind sspstrong uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
!llvm.module.flags = !{!0, !1, !2, !3, !4}
!llvm.ident = !{!5}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 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.