summary refs log tree commit diff stats
path: root/lib/pure/concurrency/threadpool.nim
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pure/concurrency/threadpool.nim')
-rw-r--r--lib/pure/concurrency/threadpool.nim606
1 files changed, 606 insertions, 0 deletions
diff --git a/lib/pure/concurrency/threadpool.nim b/lib/pure/concurrency/threadpool.nim
new file mode 100644
index 000000000..06ed2fe54
--- /dev/null
+++ b/lib/pure/concurrency/threadpool.nim
@@ -0,0 +1,606 @@
+#
+#
+#            Nim's Runtime Library
+#        (c) Copyright 2015 Andreas Rumpf
+#
+#    See the file "copying.txt", included in this
+#    distribution, for details about the copyright.
+#
+
+{.deprecated: "use the nimble packages `malebolgia`, `taskpools` or `weave` instead".}
+
+## Implements Nim's `parallel & spawn statements <manual_experimental.html#parallel-amp-spawn>`_.
+##
+## Unstable API.
+##
+## See also
+## ========
+## * `threads module <typedthreads.html>`_ for basic thread support
+## * `locks module <locks.html>`_ for locks and condition variables
+## * `asyncdispatch module <asyncdispatch.html>`_ for asynchronous IO
+
+when not compileOption("threads"):
+  {.error: "Threadpool requires --threads:on option.".}
+
+import std/[cpuinfo, cpuload, locks, os]
+
+when defined(nimPreviewSlimSystem):
+  import std/[assertions, typedthreads, sysatomics]
+
+{.push stackTrace:off.}
+
+type
+  Semaphore = object
+    c: Cond
+    L: Lock
+    counter: int
+
+proc initSemaphore(cv: var Semaphore) =
+  initCond(cv.c)
+  initLock(cv.L)
+
+proc destroySemaphore(cv: var Semaphore) {.inline.} =
+  deinitCond(cv.c)
+  deinitLock(cv.L)
+
+proc blockUntil(cv: var Semaphore) =
+  acquire(cv.L)
+  while cv.counter <= 0:
+    wait(cv.c, cv.L)
+  dec cv.counter
+  release(cv.L)
+
+proc signal(cv: var Semaphore) =
+  acquire(cv.L)
+  inc cv.counter
+  release(cv.L)
+  signal(cv.c)
+
+const CacheLineSize = 64 # true for most archs
+
+type
+  Barrier {.compilerproc.} = object
+    entered: int
+    cv: Semaphore # Semaphore takes 3 words at least
+    left {.align(CacheLineSize).}: int
+    interest {.align(CacheLineSize).} : bool # whether the master is interested in the "all done" event
+
+proc barrierEnter(b: ptr Barrier) {.compilerproc, inline.} =
+  # due to the signaling between threads, it is ensured we are the only
+  # one with access to 'entered' so we don't need 'atomicInc' here:
+  inc b.entered
+  # also we need no 'fence' instructions here as soon 'nimArgsPassingDone'
+  # will be called which already will perform a fence for us.
+
+proc barrierLeave(b: ptr Barrier) {.compilerproc, inline.} =
+  atomicInc b.left
+  when not defined(x86): fence()
+  # We may not have seen the final value of b.entered yet,
+  # so we need to check for >= instead of ==.
+  if b.interest and b.left >= b.entered: signal(b.cv)
+
+proc openBarrier(b: ptr Barrier) {.compilerproc, inline.} =
+  b.entered = 0
+  b.left = 0
+  b.interest = false
+
+proc closeBarrier(b: ptr Barrier) {.compilerproc.} =
+  fence()
+  if b.left != b.entered:
+    b.cv.initSemaphore()
+    fence()
+    b.interest = true
+    fence()
+    while b.left != b.entered: blockUntil(b.cv)
+    destroySemaphore(b.cv)
+
+{.pop.}
+
+# ----------------------------------------------------------------------------
+
+type
+  AwaitInfo = object
+    cv: Semaphore
+    idx: int
+
+  FlowVarBase* = ref FlowVarBaseObj ## Untyped base class for `FlowVar[T] <#FlowVar>`_.
+  FlowVarBaseObj {.acyclic.} = object of RootObj
+    ready, usesSemaphore, awaited: bool
+    cv: Semaphore  # for 'blockUntilAny' support
+    ai: ptr AwaitInfo
+    idx: int
+    data: pointer  # we incRef and unref it to keep it alive; note this MUST NOT
+                   # be RootRef here otherwise the wrong GC keeps track of it!
+    owner: pointer # ptr Worker
+
+  FlowVarObj[T] {.acyclic.} = object of FlowVarBaseObj
+    blob: T
+
+  FlowVar*[T] {.compilerproc.} = ref FlowVarObj[T] ## A data flow variable.
+
+  ToFreeQueue = object
+    len: int
+    lock: Lock
+    empty: Semaphore
+    data: array[128, pointer]
+
+  WorkerProc = proc (thread, args: pointer) {.nimcall, gcsafe.}
+  Worker = object
+    taskArrived: Semaphore
+    taskStarted: Semaphore #\
+    # task data:
+    f: WorkerProc
+    data: pointer
+    ready: bool # put it here for correct alignment!
+    initialized: bool # whether it has even been initialized
+    shutdown: bool # the pool requests to shut down this worker thread
+    q: ToFreeQueue
+    readyForTask: Semaphore
+
+const threadpoolWaitMs {.intdefine.}: int = 100
+
+proc blockUntil*(fv: var FlowVarBaseObj) =
+  ## Waits until the value for `fv` arrives.
+  ##
+  ## Usually it is not necessary to call this explicitly.
+  if fv.usesSemaphore and not fv.awaited:
+    fv.awaited = true
+    blockUntil(fv.cv)
+    destroySemaphore(fv.cv)
+
+proc selectWorker(w: ptr Worker; fn: WorkerProc; data: pointer): bool =
+  if cas(addr w.ready, true, false):
+    w.data = data
+    w.f = fn
+    signal(w.taskArrived)
+    blockUntil(w.taskStarted)
+    result = true
+
+proc cleanFlowVars(w: ptr Worker) =
+  let q = addr(w.q)
+  acquire(q.lock)
+  for i in 0 ..< q.len:
+    GC_unref(cast[RootRef](q.data[i]))
+    #echo "GC_unref"
+  q.len = 0
+  release(q.lock)
+
+proc wakeupWorkerToProcessQueue(w: ptr Worker) =
+  # we have to ensure it's us who wakes up the owning thread.
+  # This is quite horrible code, but it runs so rarely that it doesn't matter:
+  while not cas(addr w.ready, true, false):
+    cpuRelax()
+    discard
+  w.data = nil
+  w.f = proc (w, a: pointer) {.nimcall.} =
+    let w = cast[ptr Worker](w)
+    cleanFlowVars(w)
+    signal(w.q.empty)
+  signal(w.taskArrived)
+
+proc attach(fv: FlowVarBase; i: int): bool =
+  acquire(fv.cv.L)
+  if fv.cv.counter <= 0:
+    fv.idx = i
+    result = true
+  else:
+    result = false
+  release(fv.cv.L)
+
+proc finished(fv: var FlowVarBaseObj) =
+  doAssert fv.ai.isNil, "flowVar is still attached to an 'blockUntilAny'"
+  # we have to protect against the rare cases where the owner of the flowVar
+  # simply disregards the flowVar and yet the "flowVar" has not yet written
+  # anything to it:
+  blockUntil(fv)
+  if fv.data.isNil: return
+  let owner = cast[ptr Worker](fv.owner)
+  let q = addr(owner.q)
+  acquire(q.lock)
+  while not (q.len < q.data.len):
+    #echo "EXHAUSTED!"
+    release(q.lock)
+    wakeupWorkerToProcessQueue(owner)
+    blockUntil(q.empty)
+    acquire(q.lock)
+  q.data[q.len] = cast[pointer](fv.data)
+  inc q.len
+  release(q.lock)
+  fv.data = nil
+  # the worker thread waits for "data" to be set to nil before shutting down
+  owner.data = nil
+
+proc `=destroy`[T](fv: var FlowVarObj[T]) =
+  finished(fv)
+  `=destroy`(fv.blob)
+
+proc nimCreateFlowVar[T](): FlowVar[T] {.compilerproc.} =
+  new(result)
+
+proc nimFlowVarCreateSemaphore(fv: FlowVarBase) {.compilerproc.} =
+  fv.cv.initSemaphore()
+  fv.usesSemaphore = true
+
+proc nimFlowVarSignal(fv: FlowVarBase) {.compilerproc.} =
+  if fv.ai != nil:
+    acquire(fv.ai.cv.L)
+    fv.ai.idx = fv.idx
+    inc fv.ai.cv.counter
+    release(fv.ai.cv.L)
+    signal(fv.ai.cv.c)
+  if fv.usesSemaphore:
+    signal(fv.cv)
+
+proc awaitAndThen*[T](fv: FlowVar[T]; action: proc (x: T) {.closure.}) =
+  ## Blocks until `fv` is available and then passes its value
+  ## to `action`.
+  ##
+  ## Note that due to Nim's parameter passing semantics, this
+  ## means that `T` doesn't need to be copied, so `awaitAndThen` can
+  ## sometimes be more efficient than the `^ proc <#^,FlowVar[T]>`_.
+  blockUntil(fv[])
+  when defined(nimV2):
+    action(fv.blob)
+  elif T is string or T is seq:
+    action(cast[T](fv.data))
+  elif T is ref:
+    {.error: "'awaitAndThen' not available for FlowVar[ref]".}
+  else:
+    action(fv.blob)
+  finished(fv[])
+
+proc unsafeRead*[T](fv: FlowVar[ref T]): ptr T =
+  ## Blocks until the value is available and then returns this value.
+  blockUntil(fv[])
+  when defined(nimV2):
+    result = cast[ptr T](fv.blob)
+  else:
+    result = cast[ptr T](fv.data)
+  finished(fv[])
+
+proc `^`*[T](fv: FlowVar[T]): T =
+  ## Blocks until the value is available and then returns this value.
+  blockUntil(fv[])
+  when not defined(nimV2) and (T is string or T is seq or T is ref):
+    deepCopy result, cast[T](fv.data)
+  else:
+    result = fv.blob
+  finished(fv[])
+
+proc blockUntilAny*(flowVars: openArray[FlowVarBase]): int =
+  ## Awaits any of the given `flowVars`. Returns the index of one `flowVar`
+  ## for which a value arrived.
+  ##
+  ## A `flowVar` only supports one call to `blockUntilAny` at the same time.
+  ## That means if you `blockUntilAny([a,b])` and `blockUntilAny([b,c])`
+  ## the second call will only block until `c`. If there is no `flowVar` left
+  ## to be able to wait on, -1 is returned.
+  ##
+  ## **Note:** This results in non-deterministic behaviour and should be avoided.
+  var ai: AwaitInfo
+  ai.cv.initSemaphore()
+  var conflicts = 0
+  result = -1
+  for i in 0 .. flowVars.high:
+    if cas(addr flowVars[i].ai, nil, addr ai):
+      if not attach(flowVars[i], i):
+        result = i
+        break
+    else:
+      inc conflicts
+  if conflicts < flowVars.len:
+    if result < 0:
+      blockUntil(ai.cv)
+      result = ai.idx
+    for i in 0 .. flowVars.high:
+      discard cas(addr flowVars[i].ai, addr ai, nil)
+  destroySemaphore(ai.cv)
+
+proc isReady*(fv: FlowVarBase): bool =
+  ## Determines whether the specified `FlowVarBase`'s value is available.
+  ##
+  ## If `true`, awaiting `fv` will not block.
+  if fv.usesSemaphore and not fv.awaited:
+    acquire(fv.cv.L)
+    result = fv.cv.counter > 0
+    release(fv.cv.L)
+  else:
+    result = true
+
+proc nimArgsPassingDone(p: pointer) {.compilerproc.} =
+  let w = cast[ptr Worker](p)
+  signal(w.taskStarted)
+
+const
+  MaxThreadPoolSize* {.intdefine.} = 256 ## Maximum size of the thread pool. 256 threads
+                                         ## should be good enough for anybody ;-)
+  MaxDistinguishedThread* {.intdefine.} = 32 ## Maximum number of "distinguished" threads.
+
+type
+  ThreadId* = range[0..MaxDistinguishedThread-1] ## A thread identifier.
+
+var
+  currentPoolSize: int
+  maxPoolSize = MaxThreadPoolSize
+  minPoolSize = 4
+  gSomeReady: Semaphore
+  readyWorker: ptr Worker
+
+# A workaround for recursion deadlock issue
+# https://github.com/nim-lang/Nim/issues/4597
+var
+  numSlavesLock: Lock
+  numSlavesRunning {.guard: numSlavesLock.}: int
+  numSlavesWaiting {.guard: numSlavesLock.}: int
+  isSlave {.threadvar.}: bool
+
+numSlavesLock.initLock
+
+gSomeReady.initSemaphore()
+
+proc slave(w: ptr Worker) {.thread.} =
+  isSlave = true
+  while true:
+    if w.shutdown:
+      w.shutdown = false
+      atomicDec currentPoolSize
+      while true:
+        if w.data != nil:
+          sleep(threadpoolWaitMs)
+        else:
+          # The flowvar finalizer ("finished()") set w.data to nil, so we can
+          # safely terminate the thread.
+          #
+          # TODO: look for scenarios in which the flowvar is never finalized, so
+          # a shut down thread gets stuck in this loop until the main thread exits.
+          break
+      break
+    when declared(atomicStoreN):
+      atomicStoreN(addr(w.ready), true, ATOMIC_SEQ_CST)
+    else:
+      w.ready = true
+    readyWorker = w
+    signal(gSomeReady)
+    blockUntil(w.taskArrived)
+    # XXX Somebody needs to look into this (why does this assertion fail
+    # in Visual Studio?)
+    when not defined(vcc) and not defined(tcc): assert(not w.ready)
+
+    withLock numSlavesLock:
+      inc numSlavesRunning
+
+    w.f(w, w.data)
+
+    withLock numSlavesLock:
+      dec numSlavesRunning
+
+    if w.q.len != 0: w.cleanFlowVars
+
+proc distinguishedSlave(w: ptr Worker) {.thread.} =
+  while true:
+    when declared(atomicStoreN):
+      atomicStoreN(addr(w.ready), true, ATOMIC_SEQ_CST)
+    else:
+      w.ready = true
+    signal(w.readyForTask)
+    blockUntil(w.taskArrived)
+    assert(not w.ready)
+    w.f(w, w.data)
+    if w.q.len != 0: w.cleanFlowVars
+
+var
+  workers: array[MaxThreadPoolSize, Thread[ptr Worker]]
+  workersData: array[MaxThreadPoolSize, Worker]
+
+  distinguished: array[MaxDistinguishedThread, Thread[ptr Worker]]
+  distinguishedData: array[MaxDistinguishedThread, Worker]
+
+when defined(nimPinToCpu):
+  var gCpus: Natural
+
+proc setMinPoolSize*(size: range[1..MaxThreadPoolSize]) =
+  ## Sets the minimum thread pool size. The default value of this is 4.
+  minPoolSize = size
+
+proc setMaxPoolSize*(size: range[1..MaxThreadPoolSize]) =
+  ## Sets the maximum thread pool size. The default value of this
+  ## is `MaxThreadPoolSize <#MaxThreadPoolSize>`_.
+  maxPoolSize = size
+  if currentPoolSize > maxPoolSize:
+    for i in maxPoolSize..currentPoolSize-1:
+      let w = addr(workersData[i])
+      w.shutdown = true
+
+when defined(nimRecursiveSpawn):
+  var localThreadId {.threadvar.}: int
+
+proc activateWorkerThread(i: int) {.noinline.} =
+  workersData[i].taskArrived.initSemaphore()
+  workersData[i].taskStarted.initSemaphore()
+  workersData[i].initialized = true
+  workersData[i].q.empty.initSemaphore()
+  initLock(workersData[i].q.lock)
+  createThread(workers[i], slave, addr(workersData[i]))
+  when defined(nimRecursiveSpawn):
+    localThreadId = i+1
+  when defined(nimPinToCpu):
+    if gCpus > 0: pinToCpu(workers[i], i mod gCpus)
+
+proc activateDistinguishedThread(i: int) {.noinline.} =
+  distinguishedData[i].taskArrived.initSemaphore()
+  distinguishedData[i].taskStarted.initSemaphore()
+  distinguishedData[i].initialized = true
+  distinguishedData[i].q.empty.initSemaphore()
+  initLock(distinguishedData[i].q.lock)
+  distinguishedData[i].readyForTask.initSemaphore()
+  createThread(distinguished[i], distinguishedSlave, addr(distinguishedData[i]))
+
+proc setup() =
+  let p = countProcessors()
+  when defined(nimPinToCpu):
+    gCpus = p
+  currentPoolSize = min(p, MaxThreadPoolSize)
+  readyWorker = addr(workersData[0])
+  for i in 0..<currentPoolSize: activateWorkerThread(i)
+
+proc preferSpawn*(): bool =
+  ## Use this proc to determine quickly if a `spawn` or a direct call is
+  ## preferable.
+  ##
+  ## If it returns `true`, a `spawn` may make sense. In general
+  ## it is not necessary to call this directly; use the `spawnX template
+  ## <#spawnX.t>`_ instead.
+  result = gSomeReady.counter > 0
+
+proc spawn*(call: sink typed) {.magic: "Spawn".} =
+  ## Always spawns a new task, so that the `call` is never executed on
+  ## the calling thread.
+  ##
+  ## `call` has to be a proc call `p(...)` where `p` is gcsafe and has a
+  ## return type that is either `void` or compatible with `FlowVar[T]`.
+  discard "It uses `nimSpawn3` internally"
+
+proc pinnedSpawn*(id: ThreadId; call: sink typed) {.magic: "Spawn".} =
+  ## Always spawns a new task on the worker thread with `id`, so that
+  ## the `call` is **always** executed on the thread.
+  ##
+  ## `call` has to be a proc call `p(...)` where `p` is gcsafe and has a
+  ## return type that is either `void` or compatible with `FlowVar[T]`.
+  discard "It uses `nimSpawn4` internally"
+
+template spawnX*(call) =
+  ## Spawns a new task if a CPU core is ready, otherwise executes the
+  ## call in the calling thread.
+  ##
+  ## Usually, it is advised to use the `spawn proc <#spawn,sinktyped>`_
+  ## in order to not block the producer for an unknown amount of time.
+  ##
+  ## `call` has to be a proc call `p(...)` where `p` is gcsafe and has a
+  ## return type that is either 'void' or compatible with `FlowVar[T]`.
+  (if preferSpawn(): spawn call else: call)
+
+proc parallel*(body: untyped) {.magic: "Parallel".}
+  ## A parallel section can be used to execute a block in parallel.
+  ##
+  ## `body` has to be in a DSL that is a particular subset of the language.
+  ##
+  ## Please refer to `the manual <manual_experimental.html#parallel-amp-spawn>`_
+  ## for further information.
+
+var
+  state: ThreadPoolState
+  stateLock: Lock
+
+initLock stateLock
+
+proc nimSpawn3(fn: WorkerProc; data: pointer) {.compilerproc.} =
+  # implementation of 'spawn' that is used by the code generator.
+  while true:
+    if selectWorker(readyWorker, fn, data): return
+    for i in 0..<currentPoolSize:
+      if selectWorker(addr(workersData[i]), fn, data): return
+
+    # determine what to do, but keep in mind this is expensive too:
+    # state.calls < maxPoolSize: warmup phase
+    # (state.calls and 127) == 0: periodic check
+    if state.calls < maxPoolSize or (state.calls and 127) == 0:
+      # ensure the call to 'advice' is atomic:
+      if tryAcquire(stateLock):
+        if currentPoolSize < minPoolSize:
+          if not workersData[currentPoolSize].initialized:
+            activateWorkerThread(currentPoolSize)
+          let w = addr(workersData[currentPoolSize])
+          atomicInc currentPoolSize
+          if selectWorker(w, fn, data):
+            release(stateLock)
+            return
+
+        case advice(state)
+        of doNothing: discard
+        of doCreateThread:
+          if currentPoolSize < maxPoolSize:
+            if not workersData[currentPoolSize].initialized:
+              activateWorkerThread(currentPoolSize)
+            let w = addr(workersData[currentPoolSize])
+            atomicInc currentPoolSize
+            if selectWorker(w, fn, data):
+              release(stateLock)
+              return
+            # else we didn't succeed but some other thread, so do nothing.
+        of doShutdownThread:
+          if currentPoolSize > minPoolSize:
+            let w = addr(workersData[currentPoolSize-1])
+            w.shutdown = true
+          # we don't free anything here. Too dangerous.
+        release(stateLock)
+      # else the acquire failed, but this means some
+      # other thread succeeded, so we don't need to do anything here.
+    when defined(nimRecursiveSpawn):
+      if localThreadId > 0:
+        # we are a worker thread, so instead of waiting for something which
+        # might as well never happen (see tparallel_quicksort), we run the task
+        # on the current thread instead.
+        var self = addr(workersData[localThreadId-1])
+        fn(self, data)
+        blockUntil(self.taskStarted)
+        return
+
+    if isSlave:
+      # Run under lock until `numSlavesWaiting` increment to avoid a
+      # race (otherwise two last threads might start waiting together)
+      withLock numSlavesLock:
+        if numSlavesRunning <= numSlavesWaiting + 1:
+          # All the other slaves are waiting
+          # If we wait now, we-re deadlocked until
+          # an external spawn happens !
+          if currentPoolSize < maxPoolSize:
+            if not workersData[currentPoolSize].initialized:
+              activateWorkerThread(currentPoolSize)
+            let w = addr(workersData[currentPoolSize])
+            atomicInc currentPoolSize
+            if selectWorker(w, fn, data):
+              return
+          else:
+            # There is no place in the pool. We're deadlocked.
+            # echo "Deadlock!"
+            discard
+
+        inc numSlavesWaiting
+
+    blockUntil(gSomeReady)
+
+    if isSlave:
+      withLock numSlavesLock:
+        dec numSlavesWaiting
+
+var
+  distinguishedLock: Lock
+
+initLock distinguishedLock
+
+proc nimSpawn4(fn: WorkerProc; data: pointer; id: ThreadId) {.compilerproc.} =
+  acquire(distinguishedLock)
+  if not distinguishedData[id].initialized:
+    activateDistinguishedThread(id)
+  release(distinguishedLock)
+  while true:
+    if selectWorker(addr(distinguishedData[id]), fn, data): break
+    blockUntil(distinguishedData[id].readyForTask)
+
+
+proc sync*() =
+  ## A simple barrier to wait for all `spawn`ed tasks.
+  ##
+  ## If you need more elaborate waiting, you have to use an explicit barrier.
+  while true:
+    var allReady = true
+    for i in 0 ..< currentPoolSize:
+      if not allReady: break
+      allReady = allReady and workersData[i].ready
+    if allReady: break
+    sleep(threadpoolWaitMs)
+    # We cannot "blockUntil(gSomeReady)" because workers may be shut down between
+    # the time we establish that some are not "ready" and the time we wait for a
+    # "signal(gSomeReady)" from inside "slave()" that can never come.
+
+setup()
^
e25474154 ^
7ebaf4489 ^
4de84024e ^
2a0f7b5de ^
e25474154 ^
4de84024e ^
e25474154 ^
c51763915 ^









2df9b442c ^
c51763915 ^


2a0f7b5de ^

e25474154 ^
2a0f7b5de ^
e25474154 ^
2a0f7b5de ^
e25474154 ^

4de84024e ^
e25474154 ^
2a0f7b5de ^
e25474154 ^
4de84024e ^
2a0f7b5de ^
e25474154 ^
4de84024e ^
e25474154 ^

a13cb26c4 ^
2a0f7b5de ^
e25474154 ^
4de84024e ^
2a0f7b5de ^

e25474154 ^
4de84024e ^
e25474154 ^
2a0f7b5de ^

e25474154 ^
4de84024e ^
2a0f7b5de ^
e25474154 ^
2a0f7b5de ^

e25474154 ^
4de84024e ^
773d17cd1 ^
2a0f7b5de ^
e25474154 ^
2a0f7b5de ^

e25474154 ^
4de84024e ^
e25474154 ^
2a0f7b5de ^
e25474154 ^
dce8d3d1a ^
c51763915 ^
2a0f7b5de ^
c51763915 ^






e25474154 ^
089e287c6 ^

2df9b442c ^
c51763915 ^


2a0f7b5de ^


e25474154 ^
2a0f7b5de ^
4de84024e ^
2a0f7b5de ^
e25474154 ^
2a0f7b5de ^
e25474154 ^
a04c7d8b3 ^
2a0f7b5de ^
a04c7d8b3 ^
2a0f7b5de ^
e25474154 ^
4de84024e ^
2a0f7b5de ^
e25474154 ^
2a0f7b5de ^
e25474154 ^
405b9c8a8 ^

2a0f7b5de ^
405b9c8a8 ^
2a0f7b5de ^
e25474154 ^
39049e151 ^
2a0f7b5de ^
e25474154 ^
e25474154 ^
2df9b442c ^
2a0f7b5de ^

e25474154 ^
2a0f7b5de ^
e25474154 ^
2a0f7b5de ^
e25474154 ^


4de84024e ^
2a0f7b5de ^
e25474154 ^
4de84024e ^
e25474154 ^

2a0f7b5de ^
2df9b442c ^
7063670a2 ^
2a0f7b5de ^
92b8fac94 ^
2a0f7b5de ^
e25474154 ^
4de84024e ^
2a0f7b5de ^
e25474154 ^
4de84024e ^
2a0f7b5de ^
e25474154 ^
4de84024e ^
2a0f7b5de ^
e25474154 ^
4de84024e ^
2a0f7b5de ^
e25474154 ^
4de84024e ^
2a0f7b5de ^
e25474154 ^
2a0f7b5de ^
e25474154 ^
7916b1f9a ^
2a0f7b5de ^
e25474154 ^
a13cb26c4 ^















8780d25e0 ^



a13cb26c4 ^

8780d25e0 ^
a13cb26c4 ^


e25474154 ^
2a0f7b5de ^
e25474154 ^
2a0f7b5de ^
e25474154 ^

92b8fac94 ^
121d4e0fc ^
2a0f7b5de ^
4de84024e ^
121d4e0fc ^
e25474154 ^
2a0f7b5de ^
e25474154 ^
2a0f7b5de ^
e25474154 ^

4de84024e ^
92b8fac94 ^
e25474154 ^
39049e151 ^
92b8fac94 ^
e25474154 ^
7063670a2 ^
e25474154 ^
a13cb26c4 ^















2a0f7b5de ^

e25474154 ^


2a0f7b5de ^
e25474154 ^
2a0f7b5de ^
e25474154 ^

4de84024e ^
2a0f7b5de ^
e25474154 ^
4de84024e ^
e25474154 ^
beb13ecf6 ^
2df9b442c ^
2a0f7b5de ^
e25474154 ^
773d17cd1 ^
beb13ecf6 ^
92b8fac94 ^
dce8d3d1a ^
8be9e4640 ^
2a0f7b5de ^
e25474154 ^

d3255f708 ^
e25474154 ^
beb13ecf6 ^
2df9b442c ^
00cdbca41 ^
beb13ecf6 ^




e25474154 ^

2a0f7b5de ^
e25474154 ^
4de84024e ^
e25474154 ^
2a0f7b5de ^
e25474154 ^
4de84024e ^
2a0f7b5de ^
e25474154 ^
4de84024e ^
2a0f7b5de ^
e25474154 ^
4de84024e ^
2a0f7b5de ^
e25474154 ^
4de84024e ^
2a0f7b5de ^
e25474154 ^
2a0f7b5de ^
e25474154 ^
4de84024e ^
371619c43 ^
c51763915 ^
089e287c6 ^
c51763915 ^
2a0f7b5de ^
e25474154 ^
4de84024e ^
2a0f7b5de ^
e25474154 ^

7063670a2 ^
7171ae62c ^

92b8fac94 ^
a13cb26c4 ^




















c51763915 ^


089e287c6 ^


c51763915 ^

dce8d3d1a ^
e25474154 ^
2a0f7b5de ^

e25474154 ^
2a0f7b5de ^
7063670a2 ^
e25474154 ^
2a0f7b5de ^
e25474154 ^
7063670a2 ^
866572e2e ^
2a0f7b5de ^

e25474154 ^
2a0f7b5de ^

e25474154 ^
7063670a2 ^
2df9b442c ^
e25474154 ^
2a0f7b5de ^
92b8fac94 ^
2a0f7b5de ^

e25474154 ^
2a0f7b5de ^
e25474154 ^


2a0f7b5de ^
e25474154 ^


773d17cd1 ^
e25474154 ^
92b8fac94 ^
e25474154 ^
2a0f7b5de ^

92b8fac94 ^
e25474154 ^
2a0f7b5de ^
4de84024e ^
e25474154 ^
4de84024e ^
e25474154 ^
7063670a2 ^
e25474154 ^
92b8fac94 ^
d3255f708 ^
e25474154 ^
2a0f7b5de ^
92b8fac94 ^
e25474154 ^
2a0f7b5de ^
4de84024e ^
e25474154 ^
4de84024e ^
e25474154 ^
8be9e4640 ^
2a0f7b5de ^
e25474154 ^

d3255f708 ^
92b8fac94 ^
e25474154 ^
2a0f7b5de ^
e25474154 ^


2a0f7b5de ^
4de84024e ^
2a0f7b5de ^
e25474154 ^

4de84024e ^
beb13ecf6 ^
e25474154 ^

92b8fac94 ^
beb13ecf6 ^
e25474154 ^

92b8fac94 ^
2a0f7b5de ^
e25474154 ^


2a0f7b5de ^
4c5cf88c1 ^





35567a1eb ^
4c5cf88c1 ^



2a0f7b5de ^
7aad0d654 ^
73c6efdf6 ^
4c5cf88c1 ^

2a0f7b5de ^
62b55592e ^
2a0f7b5de ^
866572e2e ^
e9516e630 ^
62b55592e ^
2a0f7b5de ^
866572e2e ^
2a0f7b5de ^
e25474154 ^
2a0f7b5de ^
62b55592e ^
e25474154 ^
62b55592e ^

2a0f7b5de ^
e25474154 ^
4de84024e ^
92b8fac94 ^
a0b82db40 ^


2a0f7b5de ^
e25474154 ^
4de84024e ^
e25474154 ^
a702524ae ^


8fca04027 ^

a702524ae ^


4c5cf88c1 ^
a702524ae ^
e25474154 ^

2a0f7b5de ^
4de84024e ^
e25474154 ^
773d17cd1 ^
e25474154 ^

8fca04027 ^
2a0f7b5de ^
e25474154 ^

0857efe51 ^
8fca04027 ^


27dd39778 ^
e25474154 ^

e25474154 ^
2a0f7b5de ^
e25474154 ^

2a0f7b5de ^
27dd39778 ^
e25474154 ^
62b55592e ^
2a0f7b5de ^
62b55592e ^
e25474154 ^
2a0f7b5de ^
e25474154 ^


0857efe51 ^
e25474154 ^
beb13ecf6 ^

e25474154 ^
2a0f7b5de ^
e25474154 ^

2a0f7b5de ^
e25474154 ^

2a0f7b5de ^
e25474154 ^
2a0f7b5de ^
e25474154 ^
2a0f7b5de ^
e25474154 ^

bd1cb9e77 ^


2a0f7b5de ^
e25474154 ^
7063670a2 ^
235bd1c47 ^

2a0f7b5de ^
e25474154 ^

0857efe51 ^
92b8fac94 ^
0857efe51 ^


e25474154 ^
2a0f7b5de ^
e25474154 ^


235bd1c47 ^





62b55592e ^
773d17cd1 ^
e25474154 ^
773d17cd1 ^
c8d270268 ^
b731e6ef1 ^
2f43fdb83 ^
c8d270268 ^
7063670a2 ^

bd1cb9e77 ^
7063670a2 ^
e25474154 ^




d3255f708 ^
c95f6f117 ^
089e287c6 ^
b731e6ef1 ^
2a0f7b5de ^
92b8fac94 ^

e25474154 ^
7063670a2 ^
ef039a132 ^
e25474154 ^


2a0f7b5de ^
089e287c6 ^
e25474154 ^
8fca04027 ^

e25474154 ^
bd1cb9e77 ^
8fca04027 ^
e25474154 ^
2a0f7b5de ^

92b8fac94 ^
2a0f7b5de ^
e25474154 ^
7063670a2 ^
92b8fac94 ^
438703f59 ^
e25474154 ^



2a0f7b5de ^

e25474154 ^


62b55592e ^

e25474154 ^


36e25a684 ^
e25474154 ^
2a0f7b5de ^
e25474154 ^
92b8fac94 ^
7063670a2 ^
e25474154 ^



9fb36bd20 ^
2a0f7b5de ^
9fb36bd20 ^
2a0f7b5de ^
92b8fac94 ^
438703f59 ^
9fb36bd20 ^

36e25a684 ^
6d64a6e42 ^





b731e6ef1 ^
6d64a6e42 ^
36e25a684 ^
2a0f7b5de ^
8be9e4640 ^
2a0f7b5de ^
e25474154 ^
92b8fac94 ^
2a0f7b5de ^
9fb36bd20 ^
92b8fac94 ^
9fb36bd20 ^
4de84024e ^

92b8fac94 ^
36e25a684 ^
92b8fac94 ^
2a0f7b5de ^
36e25a684 ^




92b8fac94 ^
2a0f7b5de ^
e25474154 ^

089e287c6 ^
2a0f7b5de ^
a13cb26c4 ^
92b8fac94 ^
7063670a2 ^
e25474154 ^

2a0f7b5de ^
4de84024e ^
e25474154 ^
7063670a2 ^
e25474154 ^
92b8fac94 ^
e25474154 ^


2a0f7b5de ^
bd1cb9e77 ^

2a0f7b5de ^
92b8fac94 ^
e25474154 ^
2a0f7b5de ^
4de84024e ^
92b8fac94 ^
e25474154 ^
bd1cb9e77 ^


92b8fac94 ^
bd1cb9e77 ^


92b8fac94 ^
bd1cb9e77 ^
36e25a684 ^
62b55592e ^
438703f59 ^
36e25a684 ^
62b55592e ^

2a0f7b5de ^
d3255f708 ^
62b55592e ^
36e25a684 ^

f9bd8cc98 ^
36e25a684 ^
773d17cd1 ^
36e25a684 ^

2a0f7b5de ^
e25474154 ^
36e25a684 ^

62b55592e ^
36e25a684 ^
e25474154 ^
8b5aa221a ^
773d17cd1 ^
2a0f7b5de ^
2df9b442c ^
c8d270268 ^
62b55592e ^
c8d270268 ^
2a0f7b5de ^
c8d270268 ^



773d17cd1 ^
c8d270268 ^
27dd39778 ^
773d17cd1 ^
beb13ecf6 ^

c8d270268 ^
14e6ff678 ^
182ab85dc ^
c8d270268 ^
e25474154 ^
b731e6ef1 ^
e25474154 ^
36e25a684 ^

2a0f7b5de ^
773d17cd1 ^
36e25a684 ^
2a0f7b5de ^
e25474154 ^

fc9fdc2b9 ^
4de84024e ^
773d17cd1 ^
92b8fac94 ^
36e25a684 ^
2a0f7b5de ^
e25474154 ^
d3255f708 ^
e25474154 ^


bd1cb9e77 ^

e25474154 ^
e25474154 ^
089e287c6 ^
92b8fac94 ^
7063670a2 ^

92b8fac94 ^
438703f59 ^
92b8fac94 ^
beb13ecf6 ^


2df9b442c ^
2a0f7b5de ^

7063670a2 ^
2a0f7b5de ^
2df9b442c ^
089e287c6 ^
2a0f7b5de ^
089e287c6 ^

0c31686fe ^
089e287c6 ^



2a0f7b5de ^
c51763915 ^




bbf9757b4 ^

c51763915 ^









2a0f7b5de ^
2df9b442c ^
92b8fac94 ^
beb13ecf6 ^

2f43fdb83 ^
beb13ecf6 ^






a13cb26c4 ^
beb13ecf6 ^


2a0f7b5de ^

beb13ecf6 ^


2a0f7b5de ^
beb13ecf6 ^








2a0f7b5de ^
beb13ecf6 ^


2f43fdb83 ^
beb13ecf6 ^




















2a0f7b5de ^
beb13ecf6 ^

2a0f7b5de ^
beb13ecf6 ^











2f43fdb83 ^
beb13ecf6 ^






2a0f7b5de ^
beb13ecf6 ^



2a0f7b5de ^
beb13ecf6 ^













2a0f7b5de ^

beb13ecf6 ^

2a0f7b5de ^
beb13ecf6 ^



773d17cd1 ^
beb13ecf6 ^



00cdbca41 ^
beb13ecf6 ^



62b55592e ^
beb13ecf6 ^
62b55592e ^
2a0f7b5de ^
beb13ecf6 ^

92b8fac94 ^
2a0f7b5de ^
a0b82db40 ^


2a0f7b5de ^
beb13ecf6 ^


2a0f7b5de ^
beb13ecf6 ^


2a0f7b5de ^
beb13ecf6 ^


2a0f7b5de ^
beb13ecf6 ^









a0b82db40 ^
beb13ecf6 ^




a0b82db40 ^
27dd39778 ^

beb13ecf6 ^

2a0f7b5de ^
beb13ecf6 ^

2a0f7b5de ^
beb13ecf6 ^


2a0f7b5de ^
beb13ecf6 ^

62b55592e ^
2a0f7b5de ^
beb13ecf6 ^

62b55592e ^
beb13ecf6 ^




2a0f7b5de ^
beb13ecf6 ^






























2a0f7b5de ^
beb13ecf6 ^









92b8fac94 ^
beb13ecf6 ^

92b8fac94 ^
beb13ecf6 ^
92b8fac94 ^
beb13ecf6 ^








2a0f7b5de ^
beb13ecf6 ^







00cdbca41 ^
beb13ecf6 ^
2df9b442c ^
beb13ecf6 ^








1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240