text stringlengths 14 100k | source stringclasses 1
value | repo stringclasses 810
values | language stringclasses 13
values |
|---|---|---|---|
<|fim_prefix|>(*
B2R2 - the Next-Generation Reversing Platform
Copyright (c) SoftSec Lab. @ KAIST, since 2016
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, includ... | fim | B2R2-org/B2R2 | fsharp |
<|fim_prefix|>(*
B2R2 - the Next-Generation Reversing Platform
Copyright (c) SoftSec Lab. @ KAIST, since 2016
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, includ... | fim | B2R2-org/B2R2 | fsharp |
<|fim_prefix|>(*
B2R2 - the Next-Generation Reversing Platform
Copyright (c) SoftSec Lab. @ KAIST, since 2016
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, includ... | fim | B2R2-org/B2R2 | fsharp |
<|fim_prefix|>(*
B2R2 - the Next-Generation Reversing Platform
Copyright (c) SoftSec Lab. @ KAIST, since 2016
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, includ... | fim | B2R2-org/B2R2 | fsharp |
<|fim_prefix|>(*
B2R2 - the Next-Generation Reversing Platform
Copyright (c) SoftSec Lab. @ KAIST, since 2016
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, includ... | fim | B2R2-org/B2R2 | fsharp |
(*
B2R2 - the Next-Generation Reversing Platform
Copyright (c) SoftSec Lab. @ KAIST, since 2016
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without li... | fim | B2R2-org/B2R2 | fsharp |
<|fim_prefix|>(*
B2R2 - the Next-Generation Reversing Platform
Cop<|fim_suffix|> 2016
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation t... | fim | B2R2-org/B2R2 | fsharp |
<|fim_prefix|>(*
B2R2 - the Next-Generation Reversing Platform
Copyright (c) SoftSec Lab. @ KAIST, since 2016
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, includ... | fim | B2R2-org/B2R2 | fsharp |
<|fim_suffix|>mm2h
zmm3a
zmm3b
zmm3c
zmm3d
zmm3e
zmm3f
zmm3g
zmm3h
zmm4a
zmm4b
zmm4c
zmm4d
zmm4e
zmm4f
zmm4g
zmm4h
zmm5a
z... | fim | B2R2-org/B2R2 | fsharp |
<|fim_suffix|>tRes2[i] := intRes1[i])
| NegPolarity (* 0b01 *) -> bld <+ (intRes2[i] := AST.not intRes1[i])
| NegMasked (* 0b11 *) ->
match ctrl.Len with
| Implicit ->
bld <+ (bInval := src2[i] == n0)
bld <+ (intRes2[i] := AST.ite bInval intRes1[i] (AST.not intRes1[i]))
| Expli... | fim | B2R2-org/B2R2 | fsharp |
<|fim_prefix|>(*
B2R2 - the Next-Generation Reversing Platform
Copyright (c) SoftSec Lab. @ KAIST, since 2016
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, incl<|... | fim | B2R2-org/B2R2 | fsharp |
<|fim_prefix|>(*
B2R2 - the Next-Generation Reversing Platform
Copyright (c) SoftSec Lab. @ KAIST, since 2016
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, includ... | fim | B2R2-org/B2R2 | fsharp |
(*
B2R2 - the Next-Generation Reversing Platform
Copyright (c) SoftSec Lab. @ KAIST, since 2016
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without li... | fim | B2R2-org/B2R2 | fsharp |
<|fim_suffix|>WISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*)
namespace B2R2.FrontEnd.Intel.Tests
open Microsoft.VisualStudio.TestTools.UnitTesting
open B2R2
open B2R2.BinIR
open B2R2.FrontEnd.BinLifter
open B2R2.FrontEnd.Intel
#if !EMULATION && !HAS... | fim | B2R2-org/B2R2 | fsharp |
<|fim_suffix|>oPrefixNoSeg
[<TestMethod>]
member _.``AVX (51)``() =
"c4e2650a03"
++ VPSIGND ** [ O.Reg R.YMM0; O.Reg R.YMM3; O.Mem(R.RBX, 256<rt>) ]
||> testX64NoPrefixNoSeg
[<TestMethod>]
member _.``AVX (52)``() =
"c4e2650ac3"
++ VPSIGND ** [ O.Reg R.YMM0; O.Reg R.YMM3; O.Reg R.YMM3 ]
... | fim | B2R2-org/B2R2 | fsharp |
<|fim_prefix|>(*
B2R2 - the Next-Generation Reversing Platform
Copyright (c) SoftSec Lab. @ KAIST, since 2016
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software with<|fim_suffix|>6
/// U... | fim | B2R2-org/B2R2 | fsharp |
<|fim_prefix|>(*
B2R2 - the Next-Generation Reversing Platform
Copyright (c) SoftSec Lab. @ KAIST, since 2016
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, includ... | fim | B2R2-org/B2R2 | fsharp |
<|fim_prefix|>(*
B2R2 - the Next-Generation Reversing Platform
Copyright (c) SoftSec Lab. @ KAIST, since 2016
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, includ... | fim | B2R2-org/B2R2 | fsharp |
<|fim_prefix|>(*
B2R2 - the Next-Generation Reversing Platform
Copyright (c) SoftSec Lab. @ KAIST, since 2016
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, includ... | fim | B2R2-org/B2R2 | fsharp |
<|fim_prefix|>(*
B2R2 - the Next-Generation Reversing Platform
Copyright (c) SoftSec Lab. @ KAIST, since 2016
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, includ... | fim | B2R2-org/B2R2 | fsharp |
<|fim_suffix|>bld
| Op.DSRA32 -> dsra32 ins insLen bld
| Op.DSRL -> dShiftLeftRight ins insLen bld (>>)
| Op.DSRL32 -> dShiftLeftRight32 ins insLen bld (>>)
| Op.DSRLV -> dShiftLeftRightVar ins insLen bld (>>)
| Op.DSUBU -> dsubu ins insLen bld
| Op.EHB -> nop ins insLen bld
| Op.EXT -> ext ins insLen bld... | fim | B2R2-org/B2R2 | fsharp |
<|fim_suffix|>r _.GetAllRegVars() = regFactory.GetAllRegVars()
member _.GetGeneralRegVars() = regFactory.GetGeneralRegVars()
member _.GetRegisterID expr = regFactory.GetRegisterID(expr = expr)
member _.GetRegisterID name = regFactory.GetRegisterID(name = name)
member _.GetRegisterIDAliases id = regFacto... | fim | B2R2-org/B2R2 | fsharp |
<|fim_prefix|>(*
B2R2 - the Next-Generation Reversing Platform
Copyright (c) SoftSec Lab. @ KAIST, since 2016
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, includ... | fim | B2R2-org/B2R2 | fsharp |
<|fim_suffix|>
| Imm of int64
| Reg of Register
/// Represents the memory access width in MIPS instructions.
and AccessLength = RegType
/// Represents a jump target as a relative offset.
and JumpTarget = Relative of int64
/// Represents a label in MIPS instructions.
and Label = string
<|fim_prefix|>(*
B2R2 - t... | fim | B2R2-org/B2R2 | fsharp |
<|fim_suffix|>ilder) = Lifter.translate ins ins.Length builder
member _.Disasm(ins, builder) = Disasm.disasm ins builder; builder }
interface IInstructionParsable with
member _.MaxInstructionSize = 4
member _.Parse(bs: byte[], addr) =
let span = ReadOnlySpan bs
ParsingMain.parse lifter s... | fim | B2R2-org/B2R2 | fsharp |
(*
B2R2 - the Next-Generation Reversing Platform
Copyright (c) SoftSec Lab. @ KAIST, since 2016
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without li... | fim | B2R2-org/B2R2 | fsharp |
<|fim_suffix|>> R.F19
| R.F20 -> R.F21
| R.F22 -> R.F23
| R.F24 -> R.F25
| R.F26 -> R.F27
| R.F28 -> R.F29
| R.F30 -> R.F31
| _ -> Terminator.impossible ()
<|fim_prefix|>(*
B2R2 - the Next-Generation Reversing Platform
Copyright (c) SoftSec Lab. @ KAIST, since 2016
Permission is here... | fim | B2R2-org/B2R2 | fsharp |
<|fim_prefix|>(*
B2R2 - the Next-Generation Reversing Platform
Copyright (c) SoftSec Lab. @ KAIST, since 2016
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, includ... | fim | B2R2-org/B2R2 | fsharp |
<|fim_suffix|>erflow")
AST.jmp (AST.jmpDest lblEnd)
AST.lmark lblL1
!.R1 := AST.sext 64<rt> <| AST.xtlo 32<rt> (!.R1 .+ !.R2)
AST.lmark lblEnd |]
|> test isa
[<TestMethod>]
member _.``[MIPS32] ADD lift test``() =
let isa = ISA(Architecture.MIPS, Endian.Big, WordSize.... | fim | B2R2-org/B2R2 | fsharp |
(*
B2R2 - the Next-Generation Reversing Platform
Copyright (c) SoftSec Lab. @ KAIST, since 2016
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without li... | fim | B2R2-org/B2R2 | fsharp |
<|fim_prefix|>(*
B2R2 - the Next-Generation Reversing Platform
Copyright (c) SoftSec Lab. @ KAIST, since 2016
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, includ... | fim | B2R2-org/B2R2 | fsharp |
<|fim_suffix|>nal string.
static member Demangle str =
if MSDemangler.IsWellFormed str then
(MSDemangler() :> IDemanglable).Demangle str
elif ItaniumDemangler.IsWellFormed str then
(ItaniumDemangler() :> IDemanglable).Demangle str
else Ok str
<|fim_prefix|>(*
B2R2 - the Next-Generation Reversi... | fim | B2R2-org/B2R2 | fsharp |
<|fim_suffix|>ontEnd.NameMangling
open B2R2
/// Represents the main interface for a demangler.
type IDemanglable =
/// Takes a "mangled" string as input and returns a demangled string as
/// output.
abstract Demangle: string -> Result<string, ErrorCase>
<|fim_prefix|>(*
B2R2 - the Next-Generation Reversing Pl... | fim | B2R2-org/B2R2 | fsharp |
<|fim_suffix|>empt pNormalArg <|> pfunc <|> pLambda <|> pDecltype)
|>> RefArg >>= addargumenttolist
pExpressionRef.Value <-
attempt pBinaryExpr <|> attempt pUnaryExpr <|> attempt pCallExpr
<|> attempt pConversionOneArg <|> pDotExpr <|> pDotPointerExpr
<|> pConversionMoreArg <|> pCastingExpr... | fim | B2R2-org/B2R2 | fsharp |
<|fim_suffix|> let newRes = FunctionPointer(newBegin, k, b, c) :: res
let newCur = ConstVolatile(Pointer p, dis) :: cur
let nextBegin = FunctionBegin(Some newCur, d)
let nextInput = FunctionPointer(nextBegin, k, b, c)
let result = getQualifierandP nextInput [] newRes
let lastBegin = F... | fim | B2R2-org/B2R2 | fsharp |
<|fim_prefix|>(*
B2R2 - the Next-Generation Reversing Platform
Copyright (c) SoftSec Lab. @ KAIST, since 2016
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, includ... | fim | B2R2-org/B2R2 | fsharp |
(*
B2R2 - the Next-Generation Reversing Platform
Copyright (c) SoftSec Lab. @ KAIST, since 2016
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without li... | fim | B2R2-org/B2R2 | fsharp |
(*
B2R2 - the Next-Generation Reversing Platform
Copyright (c) SoftSec Lab. @ KAIST, since 2016
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without li... | fim | B2R2-org/B2R2 | fsharp |
<|fim_suffix|>amelist = expr :: ArrayPointer(None, a, b) :: us.Namelist }
| _ -> { us with Namelist = expr :: us.Namelist })
>>. preturn expr
let argPackFlagOn = updateUserState (fun us -> { us with ArgPackFlag = 1 })
let argPackFlagOff = updateUserState (fun us -> { us with ArgPackFlag = 0 })
/// If argument ... | fim | B2R2-org/B2R2 | fsharp |
<|fim_suffix|>ed codes*)
let pRTTI0 = pstring "?_R0" >>. possibleType |>> RTTI0
let pRTTI1 =
pipe4 (pstring "?_R1" >>. pEncodedNum) pEncodedNum pEncodedNum pEncodedNum
(sprintf "'RTTI Base Class Descriptor at (%d,%d,%d,%d)'") |>> Name
let pRTTIrest = pstring "?_R" >>. digit |>> getRTTI |>> Name
/// RT... | fim | B2R2-org/B2R2 | fsharp |
<|fim_suffix|>)
| ArrayPtr(pointers, indices, dataType) ->
let ptrStr = List.map interpret (List.rev pointers) |> List.reduce (+)
let dimensionStr = List.map (sprintf "[%d]") indices |> List.reduce (+)
sprintf "%s (%s)%s" (interpret dataType) (ptrStr.Trim()) dimensionStr
| ArrayType(dataT, dimension) ->... | fim | B2R2-org/B2R2 | fsharp |
<|fim_prefix|>(*
B2R2 - the Next-Generation Reversing Platform
Copyright (c) SoftSec Lab. @ KAIST, since 2016
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, includ... | fim | B2R2-org/B2R2 | fsharp |
(*
B2R2 - the Next-Generation Reversing Platform
Copyright (c) SoftSec Lab. @ KAIST, since 2016
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without li... | fim | B2R2-org/B2R2 | fsharp |
<|fim_prefix|>(*
B2R2 - the Next-Generation Reversing Platform
Copyright (c) SoftSec Lab. @ KAIST, since 2016
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, includ... | fim | B2R2-org/B2R2 | fsharp |
<|fim_suffix|>ftware.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR ... | fim | B2R2-org/B2R2 | fsharp |
<|fim_prefix|>(*
B2R2 - the Next-Generation Reversing Platform
Copyright (c) SoftSec Lab. @ KAIST, since 2016
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, includ... | fim | B2R2-org/B2R2 | fsharp |
<|fim_prefix|>(*
B2R2 - the Next-Generation Reversing Platform
Copyright (c) SoftSec Lab. @ KAIST, since 2016
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, includ... | fim | B2R2-org/B2R2 | fsharp |
<|fim_prefix|>(*
B2R2 - the Next-Generation Reversing Platform
Copyright (c) SoftSec Lab. @ KAIST, since 2016
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, includ... | fim | B2R2-org/B2R2 | fsharp |
<|fim_prefix|>(*
B2R2 - the Next-Generation Reversing Platform
Copyright (c) SoftSec Lab. @ KAIST, since 2016
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, includ... | fim | B2R2-org/B2R2 | fsharp |
<|fim_suffix|>xtend32 originalSize targetSize value =
let originalMask = (1UL <<< originalSize) - 1UL
let valueMasked = value &&& originalMask
let signBit = valueMasked >>> originalSize - 1 &&& 1UL
if signBit = 0UL then
valueMasked
else
~~~((1UL <<< targetSize) - 1UL) ||| ~~~((1UL <<< originalSize) - ... | fim | B2R2-org/B2R2 | fsharp |
<|fim_prefix|>(*
B2R2 - the Next-Generation Reversing Platform
Copyright (c) SoftSec Lab. @ KAIST, since 2016
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, includ... | fim | B2R2-org/B2R2 | fsharp |
<|fim_prefix|>(*
B2R2 - the Next-Generation Reversing Platform
Copyright (c) SoftSec Lab. @ KAIST, since 2016
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, includ... | fim | B2R2-org/B2R2 | fsharp |
<|fim_suffix|> /// To determine whether read or write access to a given address is allowed.
| PROBE = 26
/// To determine whether read or write access to a given address is allowed.
| PROBEI = 27
/// To determine the absolute address of a mapped virtual page.
| LPA = 28
/// To determine the coherence index... | fim | B2R2-org/B2R2 | fsharp |
<|fim_suffix|>// Represents a base register for memory access.
and Base = Register
/// Represents an optional memory space specifier.
and Space = Register
/// Represents an offset used in memory addressing.
and Offset =
| Imm of int64
| Reg of Register
/// Represents the memory access width in PARISC instruction... | fim | B2R2-org/B2R2 | fsharp |
<|fim_prefix|>(*
B2R2 - the Next-Generation Reversing Platform
Copyright (c) SoftSec Lab. @ KAIST, since 2016
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, includ... | fim | B2R2-org/B2R2 | fsharp |
<|fim_prefix|>(*
B2R2 - the Next-Generation Reversing Platform
Copyright (c) SoftSec Lab. @ KAIST, since 2016
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, includ... | fim | B2R2-org/B2R2 | fsharp |
<|fim_suffix|> match e with
| Var(_, id, _, _) -> id
| PCVar _ -> Register.toRegID CR18
| _ -> raise InvalidRegisterException
member this.GetRegVar str =
Register.ofString str
|> Register.toRegID
|> (this :> IRegisterFactory).GetRegVar
member _.GetRegisterID str = Regis... | fim | B2R2-org/B2R2 | fsharp |
<|fim_suffix|>it64
[<TestMethod>]
member _.``[PARISC64] ADDB Instruction Test (2)``() =
"AA9EFFFD"
++ (ADDB ** [ O.Reg GR30; O.Reg GR20; O.Imm 4UL ], [| EV |], None, None)
||> testPARISC WordSize.Bit64
[<TestMethod>]
member _.``[PARISC64] ADDB Instruction Test (3)``() =
"AAFD0002"
++ (ADDB... | fim | B2R2-org/B2R2 | fsharp |
<|fim_suffix|>> "blectr"
| Op.BNECTR -> "bnectr"
| Op.BNSCTR -> "bnsctr"
| Op.BGECTRL -> "bgectrl"
| Op.BLECTRL -> "blectrl"
| Op.BNECTRL -> "bnectrl"
| Op.BNSCTRL -> "bnsctrl"
| Op.BLTCTR -> "bltctr"
| Op.BGTCTR -> "bgtctr"
| Op.BEQCTR -> "beqctr"
| Op.BSOCTR -> "bsoctr"
| Op.BLTCTRL -> "bltctrl"... | fim | B2R2-org/B2R2 | fsharp |
<|fim_suffix|>(this, builder).Stream
member this.Disasm builder = lifter.Disasm(this, builder).ToString()
member this.Disasm() =
let builder = StringDisasmBuilder(false, null, WordSize.Bit32)
lifter.Disasm(this, builder).ToString()
member this.Decompose builder = lifter.Disasm(this, builder).... | fim | B2R2-org/B2R2 | fsharp |
<|fim_suffix|>sOneOpr ins bld
let lr = regVar bld Register.LR
bld <!-- (ins.Address, insLen)
bld <+ (dst := lr)
bld --!> insLen
let mfspr (ins: Instruction) insLen bld =
let struct (dst, spr) =
match ins.Operands with
| TwoOperands(o1, OprImm o2) ->
transOpr bld o1, getSPRReg bld o2
| _ -> ... | fim | B2R2-org/B2R2 | fsharp |
<|fim_suffix|>BFEOdot = 403
| SUBFIC = 404
| SUBFME = 405
| SUBFMEdot = 406
| SUBFMEO = 407
| SUBFMEOdot = 408
| SUBFO = 409
| SUBFOdot = 410
| SUBFZE = 411
| SUBFZEdot = 412
| SUBFZEO = 413
| SUBFZEOdot = 414
| SYNC = 415
| TLBIA = 416
| TLBIE = 417
| TLBSYNC = 418
| TRAP = 419
| TW =... | fim | B2R2-org/B2R2 | fsharp |
<|fim_prefix|>(*
B2R2 - the Next-Generation Reversing Platform
Copyright (c) SoftSec Lab. @ KAIST, since 2016
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including withou... | fim | B2R2-org/B2R2 | fsharp |
<|fim_suffix|>ny person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit pers... | fim | B2R2-org/B2R2 | fsharp |
<|fim_prefix|>(*
B2R2 - the Next-Generation Reversing Platform
Copyright (c) SoftSec Lab. @ KAIST, since 2016
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, includ... | fim | B2R2-org/B2R2 | fsharp |
<|fim_prefix|>(*
B2R2 - the Next-Generation Reversing Platform
Copyright (c) SoftSec Lab. @ KAIST, since 2016
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, includ... | fim | B2R2-org/B2R2 | fsharp |
<|fim_suffix|>r id =
match Register.ofRegID id with
| Register.R0 -> r0
| Register.R1 -> r1
| Register.R2 -> r2
| Register.R3 -> r3
| Register.R4 -> r4
| Register.R5 -> r5
| Register.R6 -> r6
| Register.R7 -> r7
| Register.R8 -> r8
| Register.R9 -> r9
... | fim | B2R2-org/B2R2 | fsharp |
<|fim_prefix|>(*
B2R2 - the Next-Generation Reversing Platform
Copyright (c) SoftSec Lab. @ KAIST, since 2016
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, includ... | fim | B2R2-org/B2R2 | fsharp |
<|fim_prefix|>(*
B2R2 - the Next-Generation Reversing Platform
Copyright (c) SoftSec Lab. @ KAIST, since 2016
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, includ... | fim | B2R2-org/B2R2 | fsharp |
<|fim_prefix|>(*
B2R2 - the Next-Generation Reversing Platform
Copyright (c) SoftSec Lab. @ KAIST, since 2016
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, includ... | fim | B2R2-org/B2R2 | fsharp |
<|fim_suffix|>BACKWARD = 0xF6
| INSTRUMENTED_RETURN_CONST = 0xF7
| INSTRUMENTED_FOR_ITER = 0xF8
| INSTRUMENTED_POP_JUMP_IF_FALSE = 0xF9
| INSTRUMENTED_POP_JUMP_IF_TRUE = 0xFA
| INSTRUMENTED_END_FOR = 0xFB
| INSTRUMENTED_END_SEND = 0xFC
| INSTRUMENTED_INSTRUCTION = 0xFD
| INSTRUMENTED_LINE = 0xFE
| SET... | fim | B2R2-org/B2R2 | fsharp |
<|fim_suffix|> ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTH... | fim | B2R2-org/B2R2 | fsharp |
<|fim_prefix|>(*
B2R2 - the Next-Generation Reversing Platform
Copyright (c) SoftSec Lab. @ KAIST, since 2016
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, includ... | fim | B2R2-org/B2R2 | fsharp |
<|fim_prefix|>(*
B2R2 - the Next-Generation Reversing Platform
Copyright (c) SoftSec Lab. @ KAIST, since 2016
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, includ... | fim | B2R2-org/B2R2 | fsharp |
<|fim_suffix|>mber _.IsProgramCounter _regid = Terminator.futureFeature ()
member _.IsStackPointer _regid = Terminator.futureFeature ()
member _.IsFramePointer _ = false
<|fim_prefix|>(*
B2R2 - the Next-Generation Reversing Platform
Copyright (c) SoftSec Lab. @ KAIST, since 2016
Permission is hereby g... | fim | B2R2-org/B2R2 | fsharp |
<|fim_suffix|>.l"
| Op.FCVTdotSdotLU -> "fcvt.s.lu"
(* RV32D Standard Extension *)
| Op.FLD -> "fld"
| Op.FSD -> "fsd"
| Op.FMADDdotD -> "fmadd.d"
| Op.FMSUBdotD -> "fmsub.d"
| Op.FNMSUBdotD -> "fnmsub.d"
| Op.FNMADDdotD -> "fnmadd.d"
| Op.FADDdotD -> "fadd.d"
| Op.FSUBdotD -> "fsub.d"
| Op.FMULdo... | fim | B2R2-org/B2R2 | fsharp |
<|fim_suffix|>rands(rd b, csr b, uimm b)
<|fim_prefix|>(*
B2R2 - the Next-Generation Reversing Platform
Copyright (c) SoftSec Lab. @ KAIST, since 2016
Permission is hereby granted, free of charge, to any person obtaining a copy
of this<|fim_middle|> software and associated documentation files (the "Software")... | fim | B2R2-org/B2R2 | fsharp |
(*
B2R2 - the Next-Generation Reversing Platform
Copyright (c) SoftSec Lab. @ KAIST, since 2016
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without li... | fim | B2R2-org/B2R2 | fsharp |
<|fim_suffix|>
bld <+ (rtVal := AST.cast CastKind.FloatCast 64<rt> t0)
(* check for out-of-range *)
bld <+ (rtVal := AST.ite (AST.fle rtVal llMinInFloat) llMinInFloat rtVal)
bld <+ (rtVal := AST.ite (AST.fge rtVal llMaxInFloat) llMaxInFloat rtVal)
(* NaN Check *)
bld <+ (rtVal := AST.ite condNaN... | fim | B2R2-org/B2R2 | fsharp |
(*
B2R2 - the Next-Generation Reversing Platform
Copyright (c) SoftSec Lab. @ KAIST, since 2016
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without li... | fim | B2R2-org/B2R2 | fsharp |
<|fim_suffix|>epresents the memory access width in RISCV64 instructions.
and AccessLength = RegType
/// Represents a jump target in RISCV64 instructions.
and JumpTarget =
| Relative of int64
| RelativeBase of Base * Imm
/// Represents a memory fence mask in RISCV64 instructions.
and FenceMask = uint8
/// Represe... | fim | B2R2-org/B2R2 | fsharp |
<|fim_prefix|>(*
B2R2 - the Next-Generation Reversing Platform
Copyright (c) SoftSec Lab. @ KAIST, since 2016
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, includ... | fim | B2R2-org/B2R2 | fsharp |
<|fim_prefix|>(*
B2R2 - the Next-Generation Reversing Platform
Copyright (c) SoftSec Lab. @ KAIST, since 2016
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, includ... | fim | B2R2-org/B2R2 | fsharp |
<|fim_suffix|>hout restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this pe... | fim | B2R2-org/B2R2 | fsharp |
<|fim_suffix|>er.CSR0815) "CSR0815"
let csr0816 = AST.var rt (Register.toRegID Register.CSR0816) "CSR0816"
let csr0817 = AST.var rt (Register.toRegID Register.CSR0817) "CSR0817"
let csr0818 = AST.var rt (Register.toRegID Register.CSR0818) "CSR0818"
let csr0819 = AST.var rt (Register.toRegID Register.CSR0819) "C... | fim | B2R2-org/B2R2 | fsharp |
<|fim_prefix|>(*
B2R2 - the Next-Generation Reversing Platform
Copyright (c) SoftSec Lab. @ KAIST, since 2016
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, includ... | fim | B2R2-org/B2R2 | fsharp |
<|fim_prefix|>(*
B2R2 - the Next-Generation Reversing Platform
Copyright (c) SoftSec Lab. @ KAIST, since 2016
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, includ... | fim | B2R2-org/B2R2 | fsharp |
<|fim_suffix|>resents registers for AVR.<para/>
/// </summary>
type Register =
| R0 = 0x0
| R1 = 0x1
| R2 = 0x2
| R3 = 0x3
| R4 = 0x4
| R5 = 0x5
| R6 = 0x6
| R7 = 0x7
| R8 = 0x8
| R9 = 0x9
| R10 = 0xA
| R11 = 0xB
| R12 = 0xC
| R13 = 0xD
| R14 = 0xE
| R15 = 0xF
| R16 = 0x10
| R17 = 0x... | fim | B2R2-org/B2R2 | fsharp |
<|fim_suffix|>
| XMM11 = 0x78
/// XMM registers.
| XMM12 = 0x79
/// XMM registers.
| XMM13 = 0x7A
/// XMM registers.
| XMM14 = 0x7B
/// XMM registers.
| XMM15 = 0x7C
/// 256-bit vector registers.
| YMM0 = 0x7D
/// 256-bit vector registers.
| YMM1 = 0x7E
/// 256-bit vector registers.
| YMM2... | fim | B2R2-org/B2R2 | fsharp |
<|fim_suffix|>k1"
| Register.R28 -> "gp"
| Register.R29 -> "sp"
| Register.R30 -> "s8"
| Register.R31 -> "ra"
| Register.F0 -> "f0"
| Register.F1 -> "f1"
| Register.F2 -> "f2"
| Register.F3 -> "f3"
| Register.F4 -> "f4"
| Register.F5 -> "f5"
| Register.F... | fim | B2R2-org/B2R2 | fsharp |
<|fim_suffix|>me "ToString">]
let toString reg =
match reg with
| Register.GR0 -> "flags"
| Register.GR1 -> "r1"
| Register.GR2 -> "rp"
| Register.GR3 -> "r3"
| Register.GR4 -> "r4"
| Register.GR5 -> "r5"
| Register.GR6 -> "r6"
| Register.GR7 -> "r7"
| Register.GR8 -> "r8"
... | fim | B2R2-org/B2R2 | fsharp |
(*
B2R2 - the Next-Generation Reversing Platform
Copyright (c) SoftSec Lab. @ KAIST, since 2016
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without li... | fim | B2R2-org/B2R2 | fsharp |
<|fim_suffix|> | Register.F2 -> "ft2"
| Register.F3 -> "ft3"
| Register.F4 -> "ft4"
| Register.F5 -> "ft5"
| Register.F6 -> "ft6"
| Register.F7 -> "ft7"
| Register.F8 -> "fs0"
| Register.F9 -> "fs1"
| Register.F10 -> "fa0"
| Register.F11 -> "fa1"
| Register.F12 -> "fa2"
| R... | fim | B2R2-org/B2R2 | fsharp |
<|fim_suffix|>ter.VR29
| "vr30" -> Register.VR30
| "vr31" -> Register.VR31
| "cr0" -> Register.CR0
| "cr1" -> Register.CR1
| "cr2" -> Register.CR2
| "cr3" -> Register.CR3
| "cr4" -> Register.CR4
| "cr5" -> Register.CR5
| "cr6" -> Register.CR6
| "cr7" -> Register.CR7
| "cr8" -... | fim | B2R2-org/B2R2 | fsharp |
<|fim_suffix|>er.R9
| "r10" -> Register.R10
| "r11" -> Register.R11
| "r12" -> Register.R12
| "r13" -> Register.R13
| "r14" -> Register.R14
| "r15" -> Register.R15
| "r0_bank" -> Register.R0_BANK
| "r1_bank" -> Register.R1_BANK
| "r2_bank" -> Register.R2_BANK
| "r3_bank" -> Regis... | fim | B2R2-org/B2R2 | fsharp |
<|fim_suffix|>
| Register.O4 -> "%o4"
| Register.O5 -> "%o5"
| Register.O6 -> "%o6"
| Register.O7 -> "%o7"
| Register.L0 -> "%l0"
| Register.L1 -> "%l1"
| Register.L2 -> "%l2"
| Register.L3 -> "%l3"
| Register.L4 -> "%l4"
| Register.L5 -> "%l5"
| Register.L6 -> "%l6"
| Re... | fim | B2R2-org/B2R2 | fsharp |
<|fim_suffix|> | Register.B21 -> "B21"
| Register.B22 -> "B22"
| Register.B23 -> "B23"
| Register.B24 -> "B24"
| Register.B25 -> "B25"
| Register.B26 -> "B26"
| Register.B27 -> "B27"
| Register.B28 -> "B28"
| Register.B29 -> "B29"
| Register.B30 -> "B30"
| Register.B31 -> "B31"
... | fim | B2R2-org/B2R2 | fsharp |
<|fim_suffix|>ceb"
| Op.TCXB -> "tcxb"
| Op.TDCDT -> "tdcdt"
| Op.TDCET -> "tdcet"
| Op.TDCXT -> "tdcxt"
| Op.TDGDT -> "tdgdt"
| Op.TDGET -> "tdget"
| Op.TDGXT -> "tdgxt"
| Op.TEND -> "tend"
| Op.THDER -> "thder"
| Op.THDR -> "thdr"
| Op.TM -> "tm"
| Op.TMHH -> "tmhh"
| Op.TMHL -> "tmhl"
| O... | fim | B2R2-org/B2R2 | fsharp |
(*
B2R2 - the Next-Generation Reversing Platform
Copyright (c) SoftSec Lab. @ KAIST, since 2016
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without li... | fim | B2R2-org/B2R2 | fsharp |
<|fim_suffix|>ands(op1, op2) -> [| op1; op2 |] |> Array.tryPick extractMask
| ThreeOperands(op1, op2, op3) ->
[| op1; op2; op3 |] |> Array.tryPick extractMask
| FourOperands(op1, op2, op3, op4) ->
[| op1; op2; op3; op4 |] |> Array.tryPick extractMask
| FiveOperands(op1, op2, op3, op4, op5) ->
... | fim | B2R2-org/B2R2 | fsharp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.