CoolFace
Modelpublic

Aboudek/ASM_TO_LLVM_V2

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
extr_wfcomman.c_ReadMoveStatus.ll144 linesDownload Raw Back to src
1; ModuleID = 'winfile/src/extr_wfcomman.c_ReadMoveStatus.c'2source_filename = "winfile/src/extr_wfcomman.c_ReadMoveStatus.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_13__ = type { i32, i32, i32, i32, i32 }7%struct.TYPE_11__ = type { ptr }8%struct.TYPE_12__ = type { ptr }9%struct.TYPE_10__ = type { ptr }10 11@DVASPECT_CONTENT = dso_local global i32 0, align 412@TYMED_HGLOBAL = dso_local global i32 0, align 413@CFSTR_PREFERREDDROPEFFECT = dso_local global i32 0, align 414@DROPEFFECT_COPY = dso_local global i32 0, align 415@S_OK = dso_local global i64 0, align 816@DROPEFFECT_MOVE = dso_local global i32 0, align 417 18; Function Attrs: noinline nounwind optnone uwtable19define dso_local i32 @ReadMoveStatus() #0 {20  %1 = alloca ptr, align 821  %2 = alloca %struct.TYPE_13__, align 422  %3 = alloca i32, align 423  %4 = alloca %struct.TYPE_13__, align 424  %5 = alloca %struct.TYPE_11__, align 825  %6 = alloca i32, align 426  %7 = alloca ptr, align 827  %8 = getelementptr inbounds %struct.TYPE_13__, ptr %2, i32 0, i32 028  store i32 0, ptr %8, align 429  %9 = getelementptr inbounds %struct.TYPE_13__, ptr %2, i32 0, i32 130  store i32 0, ptr %9, align 431  %10 = getelementptr inbounds %struct.TYPE_13__, ptr %2, i32 0, i32 232  %11 = load i32, ptr @DVASPECT_CONTENT, align 433  store i32 %11, ptr %10, align 434  %12 = getelementptr inbounds %struct.TYPE_13__, ptr %2, i32 0, i32 335  store i32 -1, ptr %12, align 436  %13 = getelementptr inbounds %struct.TYPE_13__, ptr %2, i32 0, i32 437  %14 = load i32, ptr @TYMED_HGLOBAL, align 438  store i32 %14, ptr %13, align 439  %15 = load i32, ptr @CFSTR_PREFERREDDROPEFFECT, align 440  %16 = call i32 @RegisterClipboardFormat(i32 noundef %15)41  store i32 %16, ptr %3, align 442  %17 = getelementptr inbounds %struct.TYPE_13__, ptr %4, i32 0, i32 043  %18 = load i32, ptr %3, align 444  store i32 %18, ptr %17, align 445  %19 = getelementptr inbounds %struct.TYPE_13__, ptr %4, i32 0, i32 146  store i32 0, ptr %19, align 447  %20 = getelementptr inbounds %struct.TYPE_13__, ptr %4, i32 0, i32 248  %21 = load i32, ptr @DVASPECT_CONTENT, align 449  store i32 %21, ptr %20, align 450  %22 = getelementptr inbounds %struct.TYPE_13__, ptr %4, i32 0, i32 351  store i32 -1, ptr %22, align 452  %23 = getelementptr inbounds %struct.TYPE_13__, ptr %4, i32 0, i32 453  %24 = load i32, ptr @TYMED_HGLOBAL, align 454  store i32 %24, ptr %23, align 455  %25 = load i32, ptr @DROPEFFECT_COPY, align 456  store i32 %25, ptr %6, align 457  %26 = call i32 @OleGetClipboard(ptr noundef %1)58  %27 = load ptr, ptr %1, align 859  %28 = icmp ne ptr %27, null60  br i1 %28, label %29, label %6761 6229:                                               ; preds = %063  %30 = load ptr, ptr %1, align 864  %31 = getelementptr inbounds %struct.TYPE_12__, ptr %30, i32 0, i32 065  %32 = load ptr, ptr %31, align 866  %33 = getelementptr inbounds %struct.TYPE_10__, ptr %32, i32 0, i32 067  %34 = load ptr, ptr %33, align 868  %35 = load ptr, ptr %1, align 869  %36 = call i64 %34(ptr noundef %35, ptr noundef %4, ptr noundef %5)70  %37 = load i64, ptr @S_OK, align 871  %38 = icmp eq i64 %36, %3772  br i1 %38, label %39, label %6773 7439:                                               ; preds = %2975  %40 = getelementptr inbounds %struct.TYPE_11__, ptr %5, i32 0, i32 076  %41 = load ptr, ptr %40, align 877  %42 = icmp ne ptr %41, null78  br i1 %42, label %43, label %6779 8043:                                               ; preds = %3981  %44 = getelementptr inbounds %struct.TYPE_11__, ptr %5, i32 0, i32 082  %45 = load ptr, ptr %44, align 883  %46 = call ptr @GlobalLock(ptr noundef %45)84  store ptr %46, ptr %7, align 885  %47 = load ptr, ptr %7, align 886  %48 = load i32, ptr %47, align 487  %49 = load i32, ptr @DROPEFFECT_COPY, align 488  %50 = and i32 %48, %4989  %51 = icmp ne i32 %50, 090  br i1 %51, label %52, label %5491 9252:                                               ; preds = %4393  %53 = load i32, ptr @DROPEFFECT_COPY, align 494  store i32 %53, ptr %6, align 495  br label %5496 9754:                                               ; preds = %52, %4398  %55 = load ptr, ptr %7, align 899  %56 = load i32, ptr %55, align 4100  %57 = load i32, ptr @DROPEFFECT_MOVE, align 4101  %58 = and i32 %56, %57102  %59 = icmp ne i32 %58, 0103  br i1 %59, label %60, label %62104 10560:                                               ; preds = %54106  %61 = load i32, ptr @DROPEFFECT_MOVE, align 4107  store i32 %61, ptr %6, align 4108  br label %62109 11062:                                               ; preds = %60, %54111  %63 = getelementptr inbounds %struct.TYPE_11__, ptr %5, i32 0, i32 0112  %64 = load ptr, ptr %63, align 8113  %65 = call i32 @GlobalUnlock(ptr noundef %64)114  %66 = call i32 @ReleaseStgMedium(ptr noundef %5)115  br label %67116 11767:                                               ; preds = %62, %39, %29, %0118  %68 = load i32, ptr %6, align 4119  ret i32 %68120}121 122declare i32 @RegisterClipboardFormat(i32 noundef) #1123 124declare i32 @OleGetClipboard(ptr noundef) #1125 126declare ptr @GlobalLock(ptr noundef) #1127 128declare i32 @GlobalUnlock(ptr noundef) #1129 130declare i32 @ReleaseStgMedium(ptr noundef) #1131 132attributes #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" }133attributes #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" }134 135!llvm.module.flags = !{!0, !1, !2, !3, !4}136!llvm.ident = !{!5}137 138!0 = !{i32 1, !"wchar_size", i32 4}139!1 = !{i32 7, !"PIC Level", i32 2}140!2 = !{i32 7, !"PIE Level", i32 2}141!3 = !{i32 7, !"uwtable", i32 2}142!4 = !{i32 7, !"frame-pointer", i32 2}143!5 = !{!"clang version 15.0.3"}144