Skip to content

Instantly share code, notes, and snippets.

@JHurricane96
Last active February 10, 2018 11:08
Show Gist options
  • Save JHurricane96/743e0611319d63516014ad3c7a2dcf42 to your computer and use it in GitHub Desktop.
Save JHurricane96/743e0611319d63516014ad3c7a2dcf42 to your computer and use it in GitHub Desktop.
Player code in LLVM 1
; <label>:140: ; preds = %181, %139
%141 = load i32, i32* %19, align 4
%142 = sext i32 %141 to i64
%143 = icmp slt i64 %142, 20
br i1 %143, label %144, label %184
; <label>:144: ; preds = %140
%145 = getelementptr inbounds %"struct.player_state::State",
%"struct.player_state::State"* %2, i32 0, i32 1
%146 = load i32, i32* %19, align 4
%147 = sext i32 %146 to i64
%148 = call dereferenceable(72) %"struct.player_state::Soldier"*
@_ZNSt5arrayIN12player_state7SoldierELm20EEixEm(
%"struct.std::array.10"* %145, i64 %147) #3
store %"struct.player_state::Soldier"* %148,
%"struct.player_state::Soldier"** %20, align 8
%149 = load %"struct.player_state::Soldier"*,
%"struct.player_state::Soldier"** %20, align 8
%150 = getelementptr inbounds %"struct.player_state::Soldier",
%"struct.player_state::Soldier"* %149, i32 0, i32 2
%151 = load i64, i64* %150, align 8
%152 = icmp eq i64 %151, 0
br i1 %152, label %153, label %154
; <label>:153: ; preds = %144
br label %181
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment