Skip to content

Instantly share code, notes, and snippets.

View DemiMarie's full-sized avatar

Demi Marie Obenour DemiMarie

View GitHub Profile
@DemiMarie
DemiMarie / keybase.md
Last active November 6, 2019 00:40
Keybase account proof

Keybase proof

I hereby claim:

  • I am demimarie on github.
  • I am demimarie (https://keybase.io/demimarie) on keybase.
  • I have a public key ASDnO-JhLnUGsxHS_3GzjwTaFw_0YbqyJxzyHf6EL0VgBAo

To claim this, I am signing this object:

@DemiMarie
DemiMarie / become_bad.ll
Created December 20, 2016 01:14
Bad LLVM IR
; ModuleID = 'become_bad.cgu-0.rs'
source_filename = "become_bad.cgu-0.rs"
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%"unwind::libunwind::_Unwind_Exception" = type { i64, void (i32, %"unwind::libunwind::_Unwind_Exception"*)*, [6 x i64] }
%"unwind::libunwind::_Unwind_Context" = type {}
; Function Attrs: noinline uwtable
define internal fastcc void @_ZN10become_bad13recursive_sum17h5ffeab538ceef8eeE({ i64, i64, i64, i64, i64, i64, i64 }* noalias nocapture sret dereferenceable(56), i64, i64) unnamed_addr #0 personality i32 (i32, i32, i64, %"unwind::libunwind::_Unwind_Exception"*, %"unwind::libunwind::_Unwind_Context"*)* @rust_eh_personality {
@DemiMarie
DemiMarie / become.MIR
Created December 19, 2016 18:17
Odd-looking MIR and LLVM IR
// MIR for `recursive_sum`
// node_id = 25
// pass_name = PreTrans
// disambiguator = after
fn recursive_sum(_1: u64, _2: u64) -> u64 {
let mut _0: u64; // return pointer
scope 1 {
let _3: u64; // "x" in scope 1 at become.rs:13:18: 13:19
let _4: u64; // "y" in scope 1 at become.rs:13:26: 13:27