Skip to content

Instantly share code, notes, and snippets.

@aaronyoo
Created December 31, 2019 23:07
Show Gist options
  • Save aaronyoo/c8b8c60591d96791b4f0d40d00ebb817 to your computer and use it in GitHub Desktop.
Save aaronyoo/c8b8c60591d96791b4f0d40d00ebb817 to your computer and use it in GitHub Desktop.
; Function Attrs: noinline nounwind ssp
define void @"dummy_function(Dummy&, long, long, long)"({ i64, i64, i64 }* %dummy, i64 %i, i64 %j, i64 %k) local_unnamed_addr #0 {
%1 = tail call i8* @llvm.returnaddress(i32 0)
%2 = ptrtoint i8* %1 to i64
%3 = ptrtoint { i64, i64, i64 }* %dummy to i64
%4 = getelementptr inbounds { i64, i64, i64 }, { i64, i64, i64 }* %dummy, i64 0, i32 0
store i64 %i, i64* %4, align 8
%5 = add i64 %3, 8
%6 = inttoptr i64 %5 to i64*
store i64 %j, i64* %6, align 8
%7 = add i64 %3, 16
%8 = inttoptr i64 %7 to i64*
store i64 %k, i64* %8, align 8
%9 = tail call %struct.Memory* @__remill_function_return(%struct.State* nonnull undef, i64 %2, %struct.Memory* null) #3
ret void
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment