CoolFace
Modelpublic

Aboudek/ASM_TO_LLVM_V2

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
extr_layout.c_layout_make_node.ll72 linesDownload Raw Back to tmux
1; ModuleID = 'tmux/extr_layout.c_layout_make_node.c'2source_filename = "tmux/extr_layout.c_layout_make_node.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.layout_cell = type { i32, ptr, i32 }7%struct.TYPE_2__ = type { ptr }8 9@LAYOUT_WINDOWPANE = dso_local global i32 0, align 410@.str = private unnamed_addr constant [16 x i8] c"bad layout type\00", align 111 12; Function Attrs: noinline nounwind optnone uwtable13define dso_local void @layout_make_node(ptr noundef %0, i32 noundef %1) #0 {14  %3 = alloca ptr, align 815  %4 = alloca i32, align 416  store ptr %0, ptr %3, align 817  store i32 %1, ptr %4, align 418  %5 = load i32, ptr %4, align 419  %6 = load i32, ptr @LAYOUT_WINDOWPANE, align 420  %7 = icmp eq i32 %5, %621  br i1 %7, label %8, label %1022 238:                                                ; preds = %224  %9 = call i32 @fatalx(ptr noundef @.str)25  br label %1026 2710:                                               ; preds = %8, %228  %11 = load i32, ptr %4, align 429  %12 = load ptr, ptr %3, align 830  %13 = getelementptr inbounds %struct.layout_cell, ptr %12, i32 0, i32 031  store i32 %11, ptr %13, align 832  %14 = load ptr, ptr %3, align 833  %15 = getelementptr inbounds %struct.layout_cell, ptr %14, i32 0, i32 234  %16 = call i32 @TAILQ_INIT(ptr noundef %15)35  %17 = load ptr, ptr %3, align 836  %18 = getelementptr inbounds %struct.layout_cell, ptr %17, i32 0, i32 137  %19 = load ptr, ptr %18, align 838  %20 = icmp ne ptr %19, null39  br i1 %20, label %21, label %2640 4121:                                               ; preds = %1042  %22 = load ptr, ptr %3, align 843  %23 = getelementptr inbounds %struct.layout_cell, ptr %22, i32 0, i32 144  %24 = load ptr, ptr %23, align 845  %25 = getelementptr inbounds %struct.TYPE_2__, ptr %24, i32 0, i32 046  store ptr null, ptr %25, align 847  br label %2648 4926:                                               ; preds = %21, %1050  %27 = load ptr, ptr %3, align 851  %28 = getelementptr inbounds %struct.layout_cell, ptr %27, i32 0, i32 152  store ptr null, ptr %28, align 853  ret void54}55 56declare i32 @fatalx(ptr noundef) #157 58declare i32 @TAILQ_INIT(ptr noundef) #159 60attributes #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" }61attributes #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" }62 63!llvm.module.flags = !{!0, !1, !2, !3, !4}64!llvm.ident = !{!5}65 66!0 = !{i32 1, !"wchar_size", i32 4}67!1 = !{i32 7, !"PIC Level", i32 2}68!2 = !{i32 7, !"PIE Level", i32 2}69!3 = !{i32 7, !"uwtable", i32 2}70!4 = !{i32 7, !"frame-pointer", i32 2}71!5 = !{!"clang version 15.0.3"}72