Aboudek/ASM_TO_LLVM_V2
0
1; ModuleID = 'winfile/src/extr_treectl.c_GetTreePath.c'2source_filename = "winfile/src/extr_treectl.c_GetTreePath.c"3target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"4target triple = "x86_64-unknown-linux-gnu"5 6%struct.TYPE_4__ = type { i64 }7 8@CHAR_NULL = dso_local global i32 0, align 49 10; Function Attrs: noinline nounwind optnone uwtable11define dso_local i32 @GetTreePath(ptr noundef %0, ptr noundef %1) #0 {12 %3 = alloca i32, align 413 %4 = alloca ptr, align 814 %5 = alloca ptr, align 815 store ptr %0, ptr %4, align 816 store ptr %1, ptr %5, align 817 %6 = load i32, ptr @CHAR_NULL, align 418 %7 = load ptr, ptr %5, align 819 %8 = getelementptr inbounds i32, ptr %7, i64 020 store i32 %6, ptr %8, align 421 %9 = load ptr, ptr %4, align 822 %10 = load ptr, ptr %5, align 823 %11 = call i32 @GetTreePathIndirect(ptr noundef %9, ptr noundef %10)24 %12 = load ptr, ptr %4, align 825 %13 = getelementptr inbounds %struct.TYPE_4__, ptr %12, i32 0, i32 026 %14 = load i64, ptr %13, align 827 %15 = icmp ne i64 %14, 028 br i1 %15, label %16, label %2429 3016: ; preds = %231 %17 = load i32, ptr @CHAR_NULL, align 432 %18 = load ptr, ptr %5, align 833 %19 = load ptr, ptr %5, align 834 %20 = call i32 @lstrlen(ptr noundef %19)35 %21 = sub nsw i32 %20, 136 %22 = sext i32 %21 to i6437 %23 = getelementptr inbounds i32, ptr %18, i64 %2238 store i32 %17, ptr %23, align 439 br label %2440 4124: ; preds = %16, %242 %25 = load i32, ptr %3, align 443 ret i32 %2544}45 46declare i32 @GetTreePathIndirect(ptr noundef, ptr noundef) #147 48declare i32 @lstrlen(ptr noundef) #149 50attributes #0 = { noinline nounwind optnone uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }51attributes #1 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }52 53!llvm.module.flags = !{!0, !1, !2, !3, !4}54!llvm.ident = !{!5}55 56!0 = !{i32 1, !"wchar_size", i32 4}57!1 = !{i32 7, !"PIC Level", i32 2}58!2 = !{i32 7, !"PIE Level", i32 2}59!3 = !{i32 7, !"uwtable", i32 2}60!4 = !{i32 7, !"frame-pointer", i32 2}61!5 = !{!"clang version 15.0.3"}62 