blob_id
stringlengths 40
40
| directory_id
stringlengths 40
40
| path
stringlengths 3
264
| content_id
stringlengths 40
40
| detected_licenses
sequencelengths 0
85
| license_type
stringclasses 2
values | repo_name
stringlengths 5
140
| snapshot_id
stringlengths 40
40
| revision_id
stringlengths 40
40
| branch_name
stringclasses 905
values | visit_date
timestamp[us]date 2015-08-09 11:21:18
2023-09-06 10:45:07
| revision_date
timestamp[us]date 1997-09-14 05:04:47
2023-09-17 19:19:19
| committer_date
timestamp[us]date 1997-09-14 05:04:47
2023-09-06 06:22:19
| github_id
int64 3.89k
681M
⌀ | star_events_count
int64 0
209k
| fork_events_count
int64 0
110k
| gha_license_id
stringclasses 22
values | gha_event_created_at
timestamp[us]date 2012-06-07 00:51:45
2023-09-14 21:58:39
⌀ | gha_created_at
timestamp[us]date 2008-03-27 23:40:48
2023-08-21 23:17:38
⌀ | gha_language
stringclasses 141
values | src_encoding
stringclasses 34
values | language
stringclasses 1
value | is_vendor
bool 1
class | is_generated
bool 2
classes | length_bytes
int64 3
10.4M
| extension
stringclasses 115
values | content
stringlengths 3
10.4M
| authors
sequencelengths 1
1
| author_id
stringlengths 0
158
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
305b4a660b4cbca75f1ed1d302265ec292d7879f | cb1d4663009795ffc1880a1b00eddbdb2c4d1b9d | /src/Dataflow/Engine/Scheduler/DynamicExecutor/WorkQueue.h | 910eee10f95d561bc4d6cb09d644d969120bad51 | [
"MIT"
] | permissive | skitree/SCIRun | e75502956aa193fa8e0d95f67924d2271833da36 | e32f09b71d7e536e9827eb850b18583ad9593182 | refs/heads/master | 2020-03-10T09:20:58.605598 | 2018-03-22T22:39:38 | 2018-03-22T22:39:38 | 129,307,104 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,932 | h | /*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2015 Scientific Computing and Imaging Institute,
University of Utah.
License for the specific language governing rights and limitations under
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
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 permission notice shall be included
in all copies or substantial portions of the Software.
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 OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/
#ifndef ENGINE_SCHEDULER_DYNAMICEXECUTOR_WORKQUEUE_H
#define ENGINE_SCHEDULER_DYNAMICEXECUTOR_WORKQUEUE_H
#include <Dataflow/Network/NetworkFwd.h>
#include <boost/lockfree/spsc_queue.hpp>
#include <Dataflow/Engine/Scheduler/share.h>
namespace SCIRun {
namespace Dataflow {
namespace Engine {
namespace DynamicExecutor {
template <class Unit>
class WorkQueue
{
public:
typedef boost::lockfree::spsc_queue<Unit> Impl;
};
typedef WorkQueue<Networks::ModuleHandle>::Impl ModuleWorkQueue;
typedef boost::shared_ptr<ModuleWorkQueue> ModuleWorkQueuePtr;
}}
}}
#endif | [
"[email protected]"
] | |
d4053e968978e842cafbba79a0e7cc63a91cd13a | 63a71792808868a78f0784b44e2683a1ac3b12c1 | /labm8/cpp/status_macros.h | e34ad09be2dc73e6d0916185541a4d0b4610635d | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | ChrisCummins/labm8 | f862835f65ca71cb9600276978b0754bfb0b0042 | 913d67f4f454cedc61220a210113bbf0460bb4d5 | refs/heads/master | 2020-12-24T14:02:23.717616 | 2020-11-20T00:14:52 | 2020-11-20T00:14:52 | 35,374,926 | 3 | 2 | NOASSERTION | 2020-11-20T00:14:53 | 2015-05-10T14:48:53 | Python | UTF-8 | C++ | false | false | 3,650 | h | // Adapted from Google's protocol buffer sources. Original comment header:
//
// Protocol Buffers - Google's data interchange format
// Copyright 2008 Google Inc. All rights reserved.
// https://developers.google.com/protocol-buffers/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above
// copyright notice, this list of conditions and the following disclaimer
// in the documentation and/or other materials provided with the
// distribution.
// * Neither the name of Google Inc. nor the names of its
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// From: util/task/contrib/status_macros/status_macros.h
#pragma once
#include "labm8/cpp/common.h"
#include "labm8/cpp/status.h"
#include "labm8/cpp/statusor.h"
namespace labm8 {
// Run a command that returns a util::Status. If the called code returns an
// error status, return that status up out of this method too.
//
// Example:
// RETURN_IF_ERROR(DoThings(4));
#define RETURN_IF_ERROR(expr) \
do { \
/* Using _status below to avoid capture problems if expr is "status". */ \
const ::labm8::Status _status = (expr); \
if (PREDICT_FALSE(!_status.ok())) return _status; \
} while (0)
// Internal helper for concatenating macro values.
#define STATUS_MACROS_CONCAT_NAME_INNER(x, y) x##y
#define STATUS_MACROS_CONCAT_NAME(x, y) STATUS_MACROS_CONCAT_NAME_INNER(x, y)
template <typename T>
Status DoAssignOrReturn(T& lhs, StatusOr<T> result) {
if (result.ok()) {
lhs = result.ValueOrDie();
}
return result.status();
}
#define ASSIGN_OR_RETURN_IMPL(status, lhs, rexpr) \
::labm8::Status status = ::labm8::DoAssignOrReturn(lhs, (rexpr)); \
if (PREDICT_FALSE(!status.ok())) return status;
// Executes an expression that returns a util::StatusOr, extracting its value
// into the variable defined by lhs (or returning on error).
//
// Example: Assigning to an existing value
// ValueType value;
// ASSIGN_OR_RETURN(value, MaybeGetValue(arg));
//
// WARNING: ASSIGN_OR_RETURN expands into multiple statements; it cannot be used
// in a single statement (e.g. as the body of an if statement without {})!
#define ASSIGN_OR_RETURN(lhs, rexpr) \
ASSIGN_OR_RETURN_IMPL( \
STATUS_MACROS_CONCAT_NAME(_status_or_value, __COUNTER__), lhs, rexpr);
} // namespace labm8
| [
"[email protected]"
] | |
f76f790ab412dc75b4baeb21a46c9a31160ef48f | 9f457adacd0dcb90c4d6f7aeef033d7b338d2c07 | /12.15/hourlyemployee.cpp | 247952cbcfcffa2ddda655a8dfd5b121c42e05e7 | [] | no_license | weijianqingtian/wang_tian_jiao | e6f67f06bd4e4854a581e32433b94326d2c16603 | 71acb8a2a96f850e4326ac044dc2f081254acb9f | refs/heads/master | 2020-04-27T13:22:15.214598 | 2019-08-12T14:14:53 | 2019-08-12T14:14:53 | 174,367,228 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,600 | cpp | #include <iostream>
#include "HourlyEmployee.h" // HourlyEmployee class definition
using namespace std;
// constructor
HourlyEmployee::HourlyEmployee( const string &first, const string &last,
const string &ssn, int month, int day, int year,
double hourlyWage, double hoursWorked )
: Employee( first, last, ssn, month, day, year )
{
setWage( hourlyWage ); // validate hourly wage
setHours( hoursWorked ); // validate hours worked
} // end HourlyEmployee constructor
// set wage
void HourlyEmployee::setWage( double hourlyWage )
{
wage = ( hourlyWage < 0.0 ? 0.0 : hourlyWage );
} // end function setWage
// return wage
double HourlyEmployee::getWage() const
{
return wage;
} // end function getWage
// set hours worked
void HourlyEmployee::setHours( double hoursWorked )
{
hours = ( ( ( hoursWorked >= 0.0 ) &&
( hoursWorked <= hoursPerWeek ) ) ? hoursWorked : 0.0 );
} // end function setHours
// return hours worked
double HourlyEmployee::getHours() const
{
return hours;
} // end function getHours
// calculate earnings;
// override pure virtual function earnings in Employee
double HourlyEmployee::earnings() const
{
if ( getHours() <= 40 ) // no overtime
return getWage() * getHours();
else
return 40 * getWage() + ( ( getHours() - 40 ) * getWage() * 1.5 );
} // end function earnings
// print HourlyEmployee's information
void HourlyEmployee::print() const
{
cout << "hourly employee: ";
Employee::print(); // code reuse
cout << "\nhourly wage: " << getWage() <<
"; hours worked: " << getHours();
} // end function print
| [
"[email protected]"
] | |
0d36f6e2f101b1f0b6ce31ea3bf6ac590c530cfc | 97b5ff7256b54f48b93e5ac96c289b79234afe96 | /3.x/tags/beta2/src/model/xrcfilter.h | 8c373fbd3ef75d0aa13f18cc66630f4f513f08b1 | [] | no_license | idrassi/wxFormBuilder | 7d2ba2e496d550d387a077901bb4c4629468dced | 71a8e1e43d0f6ad346232fdc8d61f4a2c465f4a0 | refs/heads/master | 2020-04-06T23:59:47.700657 | 2018-06-20T13:46:56 | 2018-06-20T13:46:56 | 53,212,048 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 3,908 | h | ///////////////////////////////////////////////////////////////////////////////
//
// wxFormBuilder - A Visual Dialog Editor for wxWidgets.
// Copyright (C) 2005 José Antonio Hurtado
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
// Written by
// José Antonio Hurtado - [email protected]
// Juan Antonio Ortega - [email protected]
//
///////////////////////////////////////////////////////////////////////////////
#ifndef __XRC_FILTER__
#define __XRC_FILTER__
#include "utils/wxfbdefs.h"
#include "model/database.h"
/**
* Filtro de conversión de/a formato XRC.
*/
class XrcFilter
{
private:
/**
* Documento XML que contiene la información de todos los componentes
* contemplados en el formato XRC (xrc.xml)
*/
TiXmlDocument m_xrcDb;
/**
* ObjectDatabase
*/
PObjectDatabase m_objDb;
/**
* Dado el nombre de una clase obtiene la información XRC para dicha clase,
* o NULL si no está definida en el formato XRC.
*/
TiXmlElement* GetXrcClassInfo(const std::string &classname);
/**
* Enlaza todas las propiedades de un objeto en un nodo XML.
*/
void LinkValues(TiXmlElement *element, TiXmlElement *xrcInfo,
const PObjectBase obj);
/**
* "Cuelga" de propElement el valor de la propiedad prop.
*/
void LinkValue(const PProperty prop, TiXmlElement *propElement);
/**
* "Cuelga" de propElement la descripción de la fuente font en el formato
* XRC
*/
void LinkFont(const wxFont &font, TiXmlElement *propElement);
/**
* Devuelve el nombre de la clase. Será el resultado de GetClassName()
* salvo para Dialog, Frame y Panel, que devolverá wxDialog, wxFrame y
* wxPanel respectivamente.
*/
std::string GetXrcClassName(const PObjectBase obj);
/**
* Dado un objeto, crea un árbol XML en formato XRC
*/
TiXmlElement* GetElement(PObjectBase project);
void ImportXrcProperties(TiXmlElement *xrcObj, PObjectBase obj);
void ImportXrcProperty(TiXmlElement *xrcProperty, PProperty property);
void ImportColour(TiXmlElement *xrcProperty, PProperty property);
void ImportFont(TiXmlElement *xrcProperty, PProperty property);
void ImportXrcElements(TiXmlElement *xrcObj, TiXmlElement *xrcInfo, PObjectBase obj);
PObjectBase GetObject(TiXmlElement *xrcObj, PObjectBase parent,
bool is_form = false);
public:
XrcFilter();
/**
* Para importar un XRC hay que configurar la base de datos de wxFB
*/
void SetObjectDatabase(PObjectDatabase db) { m_objDb = db; }
/**
* Obtiene el documento XML en formato XRC de un proyecto wxFB.
*/
TiXmlDocument *GetXrcDocument (PObjectBase project);
/**
* Dado un árbol XML en formato XRC, crea el arbol de objetos asociado.
*/
PObjectBase GetProject(TiXmlDocument *xrcDoc);
};
/**
* Filtro de importación de un fichero XRC.
*/
class XrcLoader
{
private:
PObjectDatabase m_objDb;
PObjectBase GetObject(TiXmlElement *xrcObj, PObjectBase parent);
public:
void SetObjectDatabase(PObjectDatabase db) { m_objDb = db; }
/**
* Dado un árbol XML en formato XRC, crea el arbol de objetos asociado.
*/
PObjectBase GetProject(TiXmlDocument *xrcDoc);
};
#endif //__XRC_FILTER__
| [
"rjmyst3@1bf5dfe7-1b0e-0410-9632-deacb7090205"
] | rjmyst3@1bf5dfe7-1b0e-0410-9632-deacb7090205 |
880b4779173a84a8a3a30ef3ab9d41c06a416718 | b933ccf18c8c23da44550404bb08a55e1057639b | /scheduler.cpp | 762e21d7385c75e6beb0e387c0211782d5373979 | [
"BSD-2-Clause",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | yibopi/latency-imbalance | 59fc9eeec03f96ee6f56a6ce0b7abb98a42065b5 | 2a5836bdbcf197d3373d1478b27c0ffcc8bd8a77 | refs/heads/master | 2023-03-27T11:23:39.137261 | 2021-03-02T01:41:23 | 2021-03-02T01:41:23 | 255,436,856 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 45,837 | cpp | #include <set>
#include "scheduler.h"
#include "flipr.h"
#include <time.h>
#include <iomanip>
#include <future>
#include <regex>
#define NUM_PKT_TYPE 4
#define NUM_REPEAT 6
#define OUT_RVR_PKT_LB -2
#define OUT_FWD_PKT_LB -1
#define OUT_LATENCY 0
#define OUT_FLOW_NO_LB 1
#define OUT_FLOW_LB 2
#define OUT_LB_REGION 3
#define OUT_ALIAS_RESL 4
#define OUT_LAST_HOP_ROUTER 5
#define OUT_HOPS_REVERSE_PATH 6
#define OUT_FINAL_STATE 7
#define OUT_FIREWALL 8
pthread_rwlock_t ws_lock;
////////////////////////////////////////
string decToDot(uint32_t ip) {
struct in_addr addr;
addr.s_addr = htonl(ip);
string ipstr(inet_ntoa(addr));
return ipstr;
}
uint32_t addressGenerator(char *in) {
in_addr addr;
static int inputType = -1;
static uint32_t target;
static uint32_t endIP;
static ifstream inlist;
string line;
if (inputType == 1) {
if (target + 256 < endIP) {
target += 256;
return target + 1;
} else {
return 0;
}
} else if (inputType == 2) {
return 0;
} else if (inputType == 3) {
getline(inlist, line);
if (line.empty()) { return 0; }
assert(inet_aton(line.c_str(), &addr) == 1);
target = ntohl(addr.s_addr);
return target;
}
smatch m;
string s(in);
if (regex_search(s, m, regex("([0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+)\\/([0-9]+)"))) {
inputType = 1;
string baseIP = m[1].str();
assert(inet_aton(baseIP.c_str(), &addr) == 1);
target = ntohl(addr.s_addr);
int zeros = 32 - stoi(m[2]);
target = ((target >> zeros) << zeros);
endIP = target + (1 << zeros);
} else if (regex_search(s, m, regex("[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+"))) {
inputType = 2;
string baseIP = m[0].str();
assert(inet_aton(baseIP.c_str(), &addr) == 1);
target = ntohl(addr.s_addr);
} else {
inputType = 3;
inlist.open(in);
getline(inlist, line);
if (line.empty()) { return 0; }
assert(inet_aton(line.c_str(), &addr) == 1);
target = ntohl(addr.s_addr) + 1;
}
return target;
}
Scheduler::Scheduler(char *in, char *out, int _cap, bool _lasthop, bool _scan, bool _fastmode) {
outlist.open(out);
outlist << std::fixed << std::setprecision(2);
input = in;
cap = _cap;
lasthop = _lasthop;
scan = _scan;
fastmode = _fastmode;
srand(time(NULL));
}
Scheduler::~Scheduler() {
outlist.close();
}
void
Scheduler::updateHistDB(uint32_t &ip, uint16_t &ipid) {
histDB[ip].ipid = (ipid) ? true : false;
}
double getCurrTime() {
struct timeval tv;
gettimeofday(&tv, NULL);
return tv.tv_sec + (double) tv.tv_usec / 1000000;
}
void printFlow(vector<Flow> flows) {
for (auto &f : flows) {
if (!f.hops.empty()) {
cout << f.hops.back().ip << " " << f.hops.back().val << endl;
} else {
cout << -1.0 << " " << -1.0 << endl;
}
}
printf("\n");
}
string formatOutput(uint32_t dst, uint32_t lasthop, MSG_TYPE msgType, float imbl, vector<LBReg> regs) {
stringstream ss;
string empty = "---------------";
// ss << left << setw(20) << decToDot(dst);
// ss << left << setw(30);
// if (msgType == NO_RESPONSE) {
// if (lasthop && imbl != -1) {
// ss << "Proxy" << ":" << decToDot(lasthop);
// } else if (lasthop && imbl == -1) {
// ss << "Unable to find a proxy";
// } else {
// ss << "No response from dst";
// }
// } else if (msgType == DIFF_FWD_FLOW) {
// ss << "Per-packet balancer";
// } else if (msgType == DIFF_RVR_FLOW) {
// ss << "Return paths differ";
// } else {
// ss << "Normal";
// }
ss << left << setw(30);
if (imbl != -1) {
ss << fixed << setprecision(1) << imbl;
} else {
ss << empty;
}
if (!regs.empty()) {
for (int i = 0; i < regs.size(); i++) {
ss << left << "(" << decToDot(regs[i].start.ip) << ", " << decToDot(regs[i].end.ip) << ", "
<< fixed << setprecision(1) << regs[i].link.val << ")";
if (i < regs.size() - 1) {
ss << ", ";
}
}
ss << endl;
} else {
ss << empty << endl;
}
return ss.str();
}
bool
flowCmp(Flow f1, Flow f2) {
return f1.hops[0].val < f2.hops[0].val;
}
int
getMinFlow(vector<Flow> &flows, int low, int high) {
auto it = min_element(flows.begin() + low, flows.begin() + high, flowCmp);
return distance(flows.begin(), it);
}
int
getMaxFlow(vector<Flow> &flows, int low, int high) {
auto it = max_element(flows.begin() + low, flows.begin() + high, flowCmp);
return distance(flows.begin(), it);
}
pair<uint32_t, uint32_t>
makeOrderedPair(uint32_t &ip1, uint32_t &ip2) {
return (ip1 < ip2) ? make_pair(ip1, ip2) : make_pair(ip2, ip1);
}
void
Scheduler::addToQueue(Task task) {
taskQueue.push(task);
}
Packet
singlePkt(uint32_t ip,
uint16_t sport,
uint16_t dport,
uint8_t ttl,
PKT_TYPE pktType)
{
return Packet(ip, 0, ttl, pktType, sport, dport);
}
uint16_t randPort(uint16_t minPort, uint16_t maxPort) {
return rand() % (maxPort - minPort) + minPort;
}
bool
isClose(vector<Flow> &flows, int start, int end) {
if (end <= start) return true;
int i = getMaxFlow(flows, start, end);
int j = getMinFlow(flows, start, end);
return (flows[i].hops.back().val - flows[j].hops.back().val <= MEAS_ERROR);
}
MSG_TYPE
Scheduler::pathEnumE2E(uint32_t dst,
IPState *ipState,
int numExplr,
PKT_TYPE pktType,
vector<Packet> &pkts)
{
vector<Flow> &flows = ipState->flows;
uint8_t ttl;
uint16_t sport, dport;
int minTrack, maxTrack;
int i;
// if the IP becomes mute during probing
if (ipState->numProbe > numExplr + MAX_PROBES_SENT) {
ipState->numProbe = 0;
return NUM_PROBE_EXCEEDED;
}
//printf("numFlow:%d, numProbe:%d\n", flows.size(), ipState->numProbe);
if (flows.size() < numExplr) {
sport = randPort(MIN_PORT, MAX_PORT);
dport = randPort(MIN_PORT, MAX_PORT);
ttl = UINT8_MAX;
} else if (flows.size() == numExplr) {
maxTrack = getMaxFlow(flows, 0, numExplr);
sport = flows[maxTrack].sport;
dport = flows[maxTrack].dport;
ttl = flows[maxTrack].fwdttl;
} else if (flows.size() <= numExplr + NUM_REPEAT_E2E) {
i = getMinFlow(flows, numExplr, flows.size());
maxTrack = getMaxFlow(flows, 0, numExplr);
double error = flows[maxTrack].hops.back().val * 0.01;
if ((double)flows[maxTrack].hops.back().val > (double)flows[i].hops.back().val + error) {
flows[maxTrack].hops = flows[i].hops;
flows.erase(flows.begin() + numExplr, flows.end());
maxTrack = getMaxFlow(flows, 0, numExplr);
}
// check if the last max rtt is still the maximum
/*
i = getMaxFlow(flows, 0, NUM_E2E_EXPLR);
if (abs(flows[maxTrack].hops.back().val - flows[i].hops.back().val) > MEAS_ERROR) {
flows.erase(flows.begin() + NUM_E2E_EXPLR, flows.end());
maxTrack = i;
}
// check if repeated measurements are close
if (!isClose(flows, NUM_E2E_EXPLR, flows.size()))
flows.erase(flows.begin() + NUM_E2E_EXPLR, flows.end());
*/
if (flows.size() < numExplr + NUM_REPEAT_E2E) {
sport = flows[maxTrack].sport;
dport = flows[maxTrack].dport;
ttl = flows[maxTrack].fwdttl;
} else {
minTrack = getMinFlow(flows, 0, numExplr);
sport = flows[minTrack].sport;
dport = flows[minTrack].dport;
ttl = flows[minTrack].fwdttl;
}
} else if (flows.size() <= numExplr + 2 * NUM_REPEAT_E2E) {
// check if repeated measurements are close
//if (!isClose(flows, numExplr + NUM_REPEAT_E2E, flows.size()))
// flows.erase(flows.begin() + numExplr + NUM_REPEAT_E2E, flows.end());
if (flows.size() < numExplr + 2 * NUM_REPEAT_E2E) {
minTrack = getMinFlow(flows, 0, numExplr);
sport = flows[minTrack].sport;
dport = flows[minTrack].dport;
ttl = flows[minTrack].fwdttl;
} else {
int i = getMinFlow(flows,
numExplr + NUM_REPEAT_E2E,
numExplr + 2 * NUM_REPEAT_E2E);
minTrack = getMinFlow(flows, 0, numExplr);
if (flows[minTrack].hops.back().val > flows[i].hops.back().val)
flows[minTrack] = flows[i];
// put min in the 1st and max in the 2nd position
swap(flows[0], flows[minTrack]);
maxTrack = getMaxFlow(flows, 1, numExplr);
swap(flows[1], flows[maxTrack]);
ipState->numProbe = 0;
return PHASE_DONE;
}
}
pkts = {singlePkt(dst, sport, dport, ttl, pktType)};
ipState->numProbe++;
return CONTINUE;
}
/*
int avg(vector<int> nums) {
int sum = 0, n = 0;
for (auto &h : nums) {
sum += h;
n++;
}
return (double)sum / n;
}
void
processFlow(IPState *state, vector<Flow> flows, int ref, int flowid) {
int i, j;
int numFlow = flows.size();
int index[numFlow] = {0};
Flow f(state->flows[flowid].sport, state->flows[flowid].dport);
for (i = 1; i < flows[ref].hops.size(); i++) {
vector<int> rtts;
for (j = 0; j < numFlow; j++) {
if (flows[j].hops[index[j]].ttl == i) {
rtts.push_back(flows[j].hops[index[j]].val);
index[j]++;
}
}
if (rtts.size() < 3) continue;
sort(rtts.begin(), rtts.end());
Hop h(flows[ref].hops[i].ip, flows[ref].hops[i].ttl);
if (rtts.size() >= NUM_PKTLB_EXPLR - 1 &&
abs(rtts[NUM_PKTLB_EXPLR - 2] - rtts[0]) <= MEAS_ERROR)
{
h.val = avg(rtts);
} else {
h.val = rtts[0];
}
f.hops.push_back(h);
}
state->flows[flowid] = f;
state->flows.erase(state->flows.begin() + 2, state->flows.end());
}
*/
vector<Packet>
hopEnumHelper(uint32_t dst, IPState *state, int index, PKT_TYPE pktType) {
int i;
int maxttl;
uint16_t sport, dport;
vector<Packet> f;
maxttl = state->flows[index].fwdttl;
sport = state->flows[index].sport;
dport = state->flows[index].dport;
// printf("index:%d, maxttl:%d\n", index, maxttl);
for (i = 1; i < maxttl; i++)
f.push_back(singlePkt(dst, sport, dport, i, pktType));
f.push_back(singlePkt(dst, sport, dport, maxttl, pktType));
return f;
}
MSG_TYPE
mergeFlow(Flow &f1, Flow &f2) {
Hop h;
int index, i, j;
int nhop1, nhop2;
vector<Hop> hops;
i = j = 0;
nhop1 = f1.hops.size();
nhop2 = f2.hops.size();
while (i < nhop1 && j < nhop2) {
if (f1.hops[i].fwdttl == f2.hops[j].fwdttl) {
if (f1.hops[i].ip != f2.hops[j].ip)
return DIFF_FWD_FLOW;
if (f1.hops[i].ip == f2.hops[j].ip
&& f1.hops[i].rvrttl != f2.hops[j].rvrttl)
{
return DIFF_RVR_FLOW;
}
h = f1.hops[i];
h.val = min(f1.hops[i].val, f2.hops[j].val);
h.cnt++;
i++; j++;
} else if (f1.hops[i].fwdttl < f2.hops[j].fwdttl) {
h = f1.hops[i];
i++;
} else {
h = f2.hops[j];
j++;
}
hops.push_back(h);
}
if (i == nhop1) {
hops.insert(hops.end(),
f2.hops.begin() + j,
f2.hops.end());
}
if (j == nhop2) {
hops.insert(hops.end(),
f1.hops.begin() + i,
f1.hops.end());
}
f1.hops = hops;
return CONTINUE;
}
MSG_TYPE
Scheduler::pathEnumHop(uint32_t dst,
IPState *ipState,
int measTimes,
vector<Packet> &pkts)
{
int index;
MSG_TYPE msgType;
vector<Flow> &flows = ipState->flows;
if (ipState->cnt > 0 && !ipState->recvbuf.empty()) {
Flow f = ipState->recvbuf[0];
for (index = 0; index < flows.size(); index++) {
if (flows[index].sport == f.sport &&
flows[index].dport == f.dport) {
break;
}
}
if (index == flows.size()) return PROBE_END;
msgType = mergeFlow(ipState->flows[index], f);
}
ipState->recvbuf.clear();
if (ipState->cnt >= measTimes) {
//processFlow(ipState, flows, ref, flowid);
ipState->cnt = 0;
ipState->ptr++;
}
if (ipState->ptr >= flows.size()) {
ipState->ptr = ipState->cnt = 0;
return PHASE_DONE;
}
pkts = hopEnumHelper(dst, ipState, ipState->ptr, TR_UDP);
ipState->cnt++;
return CONTINUE;
}
MSG_TYPE
Scheduler::pathHopEst(uint32_t dst,
IPState *state,
PKT_TYPE pktType,
vector<Packet> &pkts)
{
uint8_t sport, dport;
Flow *flow;
int numFlow = state->flows.size();
flow = &state->flows[state->ptr];
// cout << flow->hops.size() << " " << (int)flow->maxttl << " " << state->cnt << endl;
// if (flow->hops.size())
// cout << "ttl:" << (int)flow->hops.back().ttl << endl;
if (flow->hops.size() != 0 &&
flow->hops.back().fwdttl == flow->fwdttl + state->cnt)
{
flow->fwdttl += state->cnt;
if (flow->hops.size() == 1) {
if (flow->hops.back().ip == dst) {
flow->fwdttl--;
} else {
flow->fwdttl++;
}
} else if (flow->hops[0].ip == dst) {
if (flow->hops.back().ip == dst) {
flow->fwdttl--;
} else {
flow->fwdttl++;
state->ptr++;
}
} else {
if (flow->hops.back().ip == dst) {
state->ptr++;
} else {
flow->fwdttl++;
}
}
state->numProbe = state->cnt = 0;
}
if (state->numProbe >= NUM_TRIES_PER_HOP) {
state->numProbe = 0;
if (flow->hops.size() == 0 || flow->hops[0].ip != dst) {
state->cnt++;
} else {
flow->fwdttl = flow->hops.back().fwdttl;
state->cnt = 0;
state->ptr++;
}
}
// use state->cnt to count unresponsive hops
if (state->cnt >= NUM_UNRESPONSIVE_HOPS ||
flow->fwdttl + state->cnt > MAX_HOPS)
{
state->cnt = state->numProbe = 0;
state->ptr++;
}
if (state->ptr >= numFlow) {
state->ptr = 0;
state->cnt = state->numProbe = 0;
return PHASE_DONE;
}
flow = &state->flows[state->ptr];
pkts = {singlePkt(dst,
flow->sport,
flow->dport,
flow->fwdttl + state->cnt,
pktType)};
state->numProbe++;
return CONTINUE;
}
void Scheduler::populateTaskQueue() {
static int ipCount = 0;
uint32_t target;
double startTime;
while (true) {
if (taskQueue.size() >= cap) break;
target = addressGenerator(input);
if (target == 0) return;
// lock
pthread_rwlock_wrlock(&gLock);
if (inBlacklist(target) > 0) continue;
if (ipStateDB.count(target) == 0) {
double startTime = getCurrTime() + ((double)rand() / RAND_MAX) * UDP_FREEZE_TIME_LONG;
ipStateDB[target] = IPState();
taskQueue.push(Task(target, startTime));
summary.totalAddrProbed += 1;
}
pthread_rwlock_unlock(&gLock);
ipCount++;
// if (ipCount % 1000 == 0)
// fprintf(stderr, "populateTaskQueue(): Number of IPs probed: %d\n", ipCount);
}
return;
}
bool sameFlow(Flow &f1, Flow &f2) {
int i = 0, j = 0;
while (i < f1.hops.size() && j < f2.hops.size()) {
if (f1.hops[i].fwdttl == f2.hops[j].fwdttl) {
if (f1.hops[i].ip != f2.hops[j].ip) return false;
i++; j++;
} else if (f1.hops[i].fwdttl < f2.hops[j].fwdttl) {
i++;
} else { j++; }
}
return true;
}
int getFlowRef(vector<Flow> &flows) {
int i, flowid = 0;
for (i = 1; i < flows.size(); i++)
if (flows[i].hops.size() > flows[flowid].hops.size())
flowid = i;
return flowid;
}
MSG_TYPE
Scheduler::chkResponse(uint32_t ip,
IPState *ipState,
int numType,
PKT_TYPE pktType,
vector<Packet> &pkts)
{
uint16_t sport, dport;
if (ipState->flows.size()) {
ipState->cnt = ipState->numProbe = 0;
ipState->flows.clear();
return PHASE_DONE;
} else if (ipState->numProbe < numType) {
sport = randPort(MIN_PORT, MAX_PORT);
dport = randPort(MIN_PORT, MAX_PORT);
pkts = {singlePkt(ip, sport, dport, UINT8_MAX, pktType)};
ipState->numProbe++;
return CONTINUE;
} else {
ipState->numProbe = 0;
ipState->flows.clear();
return NO_RESPONSE;
}
}
MSG_TYPE
detectLB(uint32_t dst,
IPState *ipState,
int numFlow,
vector<Packet> &pkts)
{
if (ipState->ptr > 0 && !ipState->recvbuf.empty()) {
mergeFlow(ipState->flows[ipState->ptr-1], ipState->recvbuf[0]);
}
ipState->recvbuf.clear();
if (ipState->ptr >= numFlow) {
ipState->ptr = 0;
return PHASE_DONE;
}
pkts = hopEnumHelper(dst, ipState, ipState->ptr, TR_UDP);
ipState->ptr++;
return CONTINUE;
}
#define ALIAS_TEST_EXEMPT 0
#define ALIAS_IN_PROGRESS 1
#define ALIAS_IPID_TEST 2
#define ALIAS_IPOPT_TEST 3
#define ALIAS_TEST_FAILED 4
#define IP_ID_SAME_ROUTER 5
#define IP_ID_DIFF_ROUTER 6
#define IP_OPTION_SAME_ROUTER 7
#define IP_OPTION_DIFF_ROUTER 8
template <typename T>
MSG_TYPE
genProbeSeq(uint32_t id,
vector<Flow> &flows,
vector<LBReg> &lbRegs,
T &aliasDB)
{
int i, j;
Flow f;
Graph graph;
vector<Flow> fs;
fs = flows;
for (auto &lb : lbRegs) {
// if (lb.link.type != CMPL_MULTI_PATH) continue;
vector<vector<Hop>> subpaths;
for (i = 0; i < flows.size(); i++) {
vector<Hop> subpath;
bool start = false, end = false;
for (auto hop : fs[i].hops) {
if (hop.ip == lb.start.ip)
start = true;
if (hop.ip == lb.end.ip)
end = true;
hop.cnt = i;
if (start) subpath.push_back(hop);
if (end) break;
}
if (!start || !end) continue;
if (subpathExist(subpath, subpaths)) continue;
subpaths.push_back(subpath);
/*
if (flows[i].hops.size() == 0 ||
flows[i].hops.back().ip != subpath.front().ip)
{
flows[i].hops.push_back(subpath.front());
flows[i].hops.push_back(subpath.back());
} else if (flows[i].hops.back().ip == subpath.front().ip) {
flows[i].hops.push_back(subpath.back());
}
*/
}
if (subpaths.empty()) continue;
if (subpaths.size() < 2) {
// cout << "lbreg:" << id << " " << lb.start.ip << " " << lb.end.ip << endl;
// cout << "subpath size:" << subpaths.size() << endl;
for (auto &f : flows) {
for (auto &h : f.hops) {
// cout << h.ip << " " << (int)h.fwdttl << " ";
}
// cout << endl;
}
continue;
}
Hop h1, h2;
pair<uint32_t, uint32_t> intfpair;
for (i = 1; i < subpaths[0].size() - 1; i++) {
for (j = 1; j < subpaths[1].size() - 1; j++) {
h1 = subpaths[0][i];
h2 = subpaths[1][j];
intfpair = makeOrderedPair(h1.ip, h2.ip);
if (aliasDB.count(intfpair) > 0 && aliasDB[intfpair] >= NUM_ALIAS_RESL)
continue;
// control the number of alias resl
if (aliasDB.count(intfpair) == 0) {
aliasDB[intfpair] = 1;
} else {
aliasDB[intfpair]++;
}
h1.val = h2.val = ALIAS_IPID_TEST;
f.hops.push_back(h1);
f.hops.push_back(h2);
f.hops.push_back(Hop(0, 0));
}
}
}
if (f.hops.size() == 0) return PROBE_END;
flows.push_back(f);
return CONTINUE;
}
void
setVal(Flow &f, uint32_t ip, int val) {
for (auto &h : f.hops) {
if (h.ip == ip) {
h.rvrttl = val;
}
}
}
void
setVal(Flow &f, uint32_t ip1, uint32_t ip2, int val) {
for (int i = 0; i < f.hops.size() - 1; i++) {
if ((f.hops[i].ip == ip1 && f.hops[i+1].ip == ip2)
|| (f.hops[i].ip == ip2 && f.hops[i+1].ip == ip1))
{
f.hops[i].val = f.hops[i+1].val = val;
}
}
}
void
setRvrTTL(Flow &dflow, vector<Flow> flows) {
int i;
unordered_set<int> s;
for (auto &f : flows) {
s.insert(f.hops.back().ip);
}
unordered_map<uint32_t, vector<int>> ttls;
for (i = 0; i < flows.size(); i++) {
Hop &h = flows[i].hops[0];
ttls[h.ip].push_back(flows[i].rvrttl);
}
for (auto it = ttls.begin(); it != ttls.end(); it++) {
if (it->second.size() < 5)
continue;
unordered_set<int> s(it->second.begin(), it->second.end());
if (s.size() == 1) {
setVal(dflow, it->first, *s.begin());
}
}
return;
}
uint8_t
getRvrTTL(Flow &f, uint32_t ip) {
for (auto &h : f.hops) {
if (h.ip == ip)
return h.rvrttl; // rvr ttl
}
return 0;
}
bool
zeroIpId(vector<Flow> &flows, uint32_t &ip) {
for (auto &f : flows) {
if (f.hops.back().ip == ip)
return f.hops.back().val == 0;
}
return true;
}
MSG_TYPE
Scheduler::aliasReslIpId(uint32_t id,
IPState *ipState,
vector<Packet> &pkts)
{
int i, j, index;
uint16_t sport, dport;
Flow &dflow = ipState->flows.back();
int numHop = dflow.hops.size();
if (ipState->ptr >= dflow.hops.size()) {
ipState->numProbe = 0;
ipState->ptr = ipState->cnt = 0;
return PHASE_DONE;
}
if (ipState->numProbe == 2) {
// cout << "sending the third packet" << endl;
for (i = 0; i < 3; i++) {
pkts.push_back(singlePkt(id,
ipState->recvbuf[0].sport,
ipState->recvbuf[0].dport,
ipState->recvbuf[0].hops[0].fwdttl,
TR_UDP));
}
ipState->numProbe = 3;
return NO_ACTION;
}
if (ipState->ptr > 0) {
int type = ALIAS_IPOPT_TEST;
int minipid = INT_MAX, maxipid = INT_MIN;
uint32_t ip;
int cntIpId = 0;
int numIPs = ipState->ptr - ipState->cnt;
if (ipState->numProbe == 1 ||
ipState->recvbuf[0].hops[0].ip != ipState->recvbuf.back().hops[0].ip) {
// didn't receive responses from both addresses
// go to IP OPTION
// cout << "didn't receive the complete sequence" << endl;
} else {
ip = ipState->recvbuf[0].hops.back().ip;
for (i = ipState->cnt; i < ipState->ptr; i++) {
uint32_t routerip = dflow.hops[i].ip;
if ((histDB.count(routerip) > 0 && histDB[routerip].ipid) || !zeroIpId(ipState->recvbuf, routerip)) {
cntIpId++;
}
}
}
// if no zeros, determine if ipids are equal
if (cntIpId == numIPs) {
type = IP_ID_SAME_ROUTER;
for (i = 0; i < ipState->recvbuf.size(); i++) {
Hop h = ipState->recvbuf[i].hops.back();
if (h.ip == ip) {
if ((int)h.val < minipid)
minipid = h.val;
if ((int)h.val > maxipid)
maxipid = h.val;
}
}
for (i = 0; i < ipState->recvbuf.size(); i++) {
Hop h = ipState->recvbuf[i].hops.back();
if (h.ip != ip) {
if (h.val < minipid || h.val > maxipid) {
type = IP_ID_DIFF_ROUTER;
break;
}
}
}
// if partial zeros, not from the same router
} else if (cntIpId > 0) {
type = IP_ID_DIFF_ROUTER;
}
// cout << "cntIpIds:" << cntIpId << " " << numIPs << " " << type << endl;
// if all zeros, ip option opted in
for (i = ipState->cnt; i < ipState->ptr; i++)
dflow.hops[i].val = type;
// get reverse path length from routers
// setRvrTTL(dflow, ipState->recvbuf);
// printFlow(ipState->recvbuf);
}
int ptr1 = -1, ptr2 = -1;
for (i = ipState->ptr; i < numHop; i++) {
if (dflow.hops[i].val == ALIAS_IPID_TEST) {
ptr1 = ptr2 = i;
break;
}
}
if (ptr1 == -1) {
ipState->numProbe = 0;
ipState->ptr = ipState->cnt = 0;
return PHASE_DONE;
}
for (i = ptr1+1; i < numHop; i++) {
if (dflow.hops[i].ip != 0) {
ptr2 = i;
continue;
}
if (ptr2 - ptr1 > 0) {
ipState->numProbe = 1;
//cout << "checking " << ptr1 << " to " << ptr2 << endl;
// check if all routers have ipid
bool sendProbe = true;
for (j = ptr1; j <= ptr2; j++) {
if (histDB.count(dflow.hops[j].ip) > 0) {
sendProbe &= histDB[dflow.hops[j].ip].ipid;
// cout << dflow.hops[j].ip << " " << histDB[dflow.hops[j].ip].ipid << " ";
}
}
//cout << " send:" << sendProbe << endl;
if (!sendProbe) break;
// send twice to avoid packet loss
index = dflow.hops[ptr1].cnt;
sport = ipState->flows[index].sport;
dport = ipState->flows[index].dport;
for (j = 0; j < 3; j++) {
pkts.push_back(singlePkt(id,
sport,
dport,
dflow.hops[ptr1].fwdttl,
TR_UDP));
}
for (j = 0; j < 3; j++) {
index = dflow.hops[ptr2].cnt;
int srcport = ipState->flows[index].sport;
int dstport = ipState->flows[index].dport;
pkts.push_back(singlePkt(id,
srcport,
dstport,
dflow.hops[ptr2].fwdttl,
TR_UDP));
}
// change test status for hops
//for (j = ptr1; j <= ptr2; j++)
// dflow.hops[j].val = ALIAS_IN_PROGRESS;
break;
}
ptr1 = ptr2 = i;
}
ipState->cnt = ptr1;
ipState->ptr = i;
ipState->recvbuf.clear();
return CONTINUE;
}
ip_timestamp
assembleOptTs(uint32_t ip1, uint32_t ip2) {
ip_timestamp ts;
memset(&ts, 0, sizeof(ip_timestamp));
ts.ipt_code = IPOPT_TS;
ts.ipt_len = 36;
ts.ipt_ptr = 4 + 1;
ts.ipt_flg = IPOPT_TS_PRESPEC;
for (int i = 0; i < 2; i++) {
ts.data[4*i] = htonl(ip1);
ts.data[4*i+2] = htonl(ip2);
}
return ts;
}
MSG_TYPE
aliasReslOpt(uint32_t id,
IPState *ipState,
vector<Packet> &pkts,
vector<ip_timestamp> &opt)
{
int i, j;
Flow &dflow = ipState->flows.back();
int numHop = dflow.hops.size();
if (ipState->ptr >= numHop) {
ipState->ptr = ipState->cnt = 0;
return PROBE_END;
}
if (ipState->ptr > 0) {
// separate flows
// vector<Flow> optFlow, ttlFlow;
// for (auto &f : ipState->recvbuf) {
// if (f.hops.size() == 8) {
// optFlow.push_back(f);
// } else {
// ttlFlow.push_back(f);
// }
// }
// determine rvr path length
// setRvrTTL(dflow, ttlFlow);
for (i = 0; i < ipState->recvbuf.size(); i++) {
int cntZeros = 0;
vector<Hop> &hops = ipState->recvbuf[i].hops;
for (j = 0; j < 4; j++) {
if (hops[2*j+1].ip == 0)
cntZeros++;
}
uint8_t ttl1 = getRvrTTL(dflow, hops[0].ip);
uint8_t ttl2 = getRvrTTL(dflow, hops[2].ip);
// cout << "Zeros:" << cntZeros << " ttl:" << (int)ttl1 << " " << (int)ttl2 << " ";
if (cntZeros == 0) {
// cout << "Opt:" << ALIAS_RES_SAME_ROUTER << endl;
setVal(dflow, hops[0].ip, hops[2].ip, IP_OPTION_SAME_ROUTER);
} else if (ttl1 == 0 || ttl2 == 0) {
} else if (cntZeros <= 2 && ttl1 == ttl2) {
// cout << "Opt:" << ALIAS_RES_SAME_ROUTER << endl;
setVal(dflow, hops[0].ip, hops[2].ip, IP_OPTION_SAME_ROUTER);
} else if (ttl1 != ttl2) {
// cout << "Opt:" << ALIAS_RES_DIFF_ROUTER << endl;
setVal(dflow, hops[0].ip, hops[2].ip, IP_OPTION_DIFF_ROUTER);
}
}
}
int index = 0;
int ptr1;
ptr1 = -1;
for (i = ipState->ptr; i < numHop; i++) {
if (dflow.hops[i].val == ALIAS_IPOPT_TEST) {
if (ptr1 == -1) {
ptr1 = i;
}
}
if (ptr1 != -1 && dflow.hops[i].ip == 0) {
vector<Hop> hops;
for (j = ptr1; j < i; j++)
hops.push_back(dflow.hops[j]);
for (j = 1; j < hops.size(); j++) {
opt.push_back(assembleOptTs(hops[0].ip, hops[j].ip));
opt.push_back(assembleOptTs(hops[j].ip, hops[0].ip));
pkts.push_back(singlePkt(hops[0].ip, 0, 0, UINT8_MAX, TR_ICMP_FIX));
pkts.push_back(singlePkt(hops[j].ip, 0, 0, UINT8_MAX, TR_ICMP_FIX));
}
break;
}
}
ipState->ptr = i;
ipState->recvbuf.clear();
return CONTINUE;
}
PKT_TYPE
selPktType(int type) {
if (type == 0) {
return TR_TCP_ACK;
} else if (type == 1) {
return TR_UDP;
} else if (type == 2) {
return TR_ICMP_VAR;
} else {
return TR_ICMP_FIX;
}
}
vector<int>
findUniqPaths(vector<Flow> &flows) {
int i, j;
vector<int> numPaths;
for (i = 0; i < NUM_PKT_TYPE; i++) {
vector<Flow> subflows(flows.begin() + i * NUM_FLOWS_ENUM,
flows.begin() + (i + 1) * NUM_FLOWS_ENUM);
vector<Flow> container;
for (j = 0; j < NUM_FLOWS_ENUM; j++) {
bool exist = false;
for (auto &f : container) {
if (sameFlow(f, subflows[j])) {
exist = true;
break;
}
}
if (!exist) { container.push_back(subflows[j]); }
}
numPaths.push_back(container.size());
}
return numPaths;
}
void logRes(uint32_t id, IPState *ipState, int type, ofstream &outlist) {
pthread_rwlock_rdlock(&ws_lock);
// new
outlist << fixed << id << " " << type << " " << getCurrTime() << " ";
switch (type) {
case OUT_FWD_PKT_LB:
case OUT_RVR_PKT_LB:
break;
case OUT_LATENCY:
for (int i = 0; i < NUM_EXPLR_E2E + 2 * NUM_REPEAT_E2E; i++) {
outlist << ipState->flows[i].hops.back().val << " ";
}
break;
case OUT_FLOW_NO_LB:
case OUT_FLOW_LB:
for (auto &f : ipState->flows) {
for (auto &h : f.hops) {
outlist << h.ip << " " << (int)h.fwdttl << " "
<< (int)h.rvrttl << " " << h.val << " ";
}
}
break;
case OUT_ALIAS_RESL:
for (auto &h : ipState->flows.back().hops) {
outlist << h.ip << " " << (int)h.val << " ";
}
break;
case OUT_HOPS_REVERSE_PATH:
for (int i = 0; i < NUM_EXPLR_E2E; i++) {
outlist << (int)ipState->flows[i].rvrttl << " ";
}
break;
case OUT_LAST_HOP_ROUTER:
outlist << ipState->lastHopRouter;
break;
case OUT_FIREWALL:
outlist << ipState->cnt;
break;
}
outlist << "\n";
pthread_rwlock_unlock(&ws_lock);
}
bool
Scheduler::inBlacklist(uint32_t &id) {
return blacklist.count(IP2Pfx(id));
}
void
Scheduler::addToBlacklist(uint32_t &id) {
blacklist.insert(id);
}
MSG_TYPE
Scheduler::findLastRouter(uint32_t id,
IPState *ipState,
PKT_TYPE pktType,
vector<Packet> &pkts)
{
uint16_t sport, dport;
vector<Flow> &flows = ipState->flows;
vector<Flow> &recvbuf = ipState->recvbuf;
const int numNeighExplr = 3;
// [0, numNeighExplr] has numNeighExplr + 1 elements
if (ipState->numProbe > MAX_HOPS + 2 * NUM_EXPLR_E2E * (numNeighExplr + 1)) {
// cout << formatOutput(id, ipState->lastHopRouter, NO_RESPONSE, -1, {});
ipState->numProbe = ipState->cnt = ipState->ptr = 0;
return PROBE_END;
}
bool routerFound = false;
uint32_t routerip = 0;
if (recvbuf.size() != 0) {
routerip = recvbuf.back().hops.back().ip;
}
if (flows.size() == 0 && recvbuf.size() != 0) {
ipState->lastHopRouter = routerip;
if (histDB[routerip].probed) {
return PROBE_END;
}
flows.push_back(recvbuf.back());
ipState->ptr = 1;
routerFound = true;
// } else if (flows.size() != 0 && !ipState->found) {
// if (recvbuf.size() == 0 || (routerip && ipState->lastHopRouter != routerip)) {
// ipState->found = routerFound = true;
// flows.back().fwdttl = ipState->ptr + 2;
// // ptr is the index of next flow
// ipState->ptr = 1;
// }
} else {
// add recvbuf to flows
for (auto &f : ipState->recvbuf) {
Flow &flow = flows[ipState->ptr];
if (f.sport == flow.sport
&& f.dport == flow.dport
&& f.hops.back().ip == ipState->lastHopRouter)
{
flow = f;
routerFound = true;
ipState->ptr++;
break;
}
}
}
recvbuf.clear();
//printFlow(flows);
// cout << ipState->ptr << " " << ipState->cnt << " " << routerFound << " " << ipState->numProbe << endl;
if (!ipState->lastHopRouter) {
if (ipState->ptr == 0) {
return PROBE_END;
}
if (flows.size() == 0) {
sport = randPort(MIN_PORT, MAX_PORT);
dport = randPort(MIN_PORT, MAX_PORT);
} else {
sport = flows.back().sport;
dport = flows.back().dport;
}
pkts = {singlePkt(id, sport, dport, ipState->ptr, pktType)};
ipState->ptr--;
ipState->numProbe++;
return CONTINUE;
} else if (ipState->ptr < NUM_EXPLR_E2E) {
if (!routerFound && ipState->cnt < numNeighExplr) {
sport = flows.back().sport;
dport = flows.back().dport;
ipState->cnt++;
} else {
sport = randPort(MIN_PORT, MAX_PORT);
dport = randPort(MIN_PORT, MAX_PORT);
ipState->cnt = 0;
}
uint8_t ttl = ipState->flows[0].fwdttl;
if (ipState->cnt == 0) {
pkts = {singlePkt(id, sport, dport, ttl, pktType)};
} else {
pkts.push_back(singlePkt(id, sport, dport, ttl + ipState->cnt, pktType));
pkts.push_back(singlePkt(id, sport, dport, ttl - ipState->cnt, pktType));
}
if (flows.size() > ipState->ptr) {
flows[ipState->ptr].sport = sport;
flows[ipState->ptr].dport = dport;
} else {
flows.push_back(Flow(sport, dport));
}
ipState->numProbe++;
return CONTINUE;
}
recvbuf.clear();
flows.erase(flows.begin() + NUM_EXPLR_E2E, flows.end());
ipState->numProbe = ipState->cnt = ipState->ptr = 0;
return PHASE_DONE;
}
MSG_TYPE
Scheduler::LBRegScan(IPState *ipState,
uint32_t &id,
vector<Packet> &pkts,
vector<ip_timestamp> &opt)
{
MSG_TYPE msgType;
double currTime = getCurrTime();
double freeze_time = (fastmode) ? UDP_FREEZE_TIME_SHORT : UDP_FREEZE_TIME_LONG;
if (inBlacklist(id)) {
return PROBE_END;
}
// cout << "task:" << (int)ipState->task << endl;
if (ipState->task == CHK_RESPONSE) {
int i;
uint32_t newid;
msgType = chkResponse(id, ipState, 1, TR_UDP, pkts);
if (msgType == NO_RESPONSE) {
if (!lasthop && !scan) {
// cout << formatOutput(id, 0, msgType, -1, {});
return PROBE_END;
}
if ((id - IP2Pfx(id) == UINT8_MAX && scan) || !scan) {
if (!lasthop) return PROBE_END;
// log results
async(std::launch::async, logRes, id, ipState, OUT_FIREWALL, std::ref(outlist));
ipState->cnt = ipState->numProbe = 0;
ipState->ptr = MAX_HOPS;
ipState->task = FIND_LAST_ROUTER;
addToQueue(Task(id, currTime));
return PHASE_DONE;
}
newid = MIN(id + 1, IP2Pfx(id) + UINT8_MAX);
// update key
ipStateDB.insert({newid, *ipState});
ipState = &ipStateDB[newid];
ipStateDB.erase(id);
id = newid;
// send probes to new id
msgType = chkResponse(id, ipState, 1, TR_UDP, pkts);
} else if (msgType == PHASE_DONE) {
addToQueue(Task(id, currTime));
ipState->task = PATH_ENUM_E2E;
}
if (msgType == CONTINUE) {
addToQueue(Task(id, currTime + freeze_time));
}
} else if (ipState->task == FIND_LAST_ROUTER) {
msgType = findLastRouter(id, ipState, TR_UDP, pkts);
if (msgType == PHASE_DONE) {
ipState->task = PATH_ENUM_E2E;
// log results
async(std::launch::async, logRes, id, ipState, OUT_LAST_HOP_ROUTER, std::ref(outlist));
addToQueue(Task(id, currTime));
} else if (msgType == CONTINUE) {
addToQueue(Task(id, currTime + freeze_time));
}
} else if (ipState->task == PATH_ENUM_E2E) {
msgType = pathEnumE2E(id, ipState, NUM_EXPLR_E2E, TR_UDP, pkts);
if (msgType == PHASE_DONE) {
// go to next stage
float minRTT = ipState->flows[0].hops.back().val;
float maxRTT = ipState->flows[1].hops.back().val;
stringstream ss;
ss << left << setw(20) << decToDot(id);
ss << left << setw(10);
ss << fixed << setprecision(1) << minRTT;
ss << left << setw(10);
ss << fixed << setprecision(1) << maxRTT;
ss << left << setw(20);
ss << fixed << setprecision(1) << maxRTT - minRTT;
ipState->output += ss.str();
if (maxRTT - minRTT >= 0) {
summary.imbls.push_back(maxRTT - minRTT);
}
async(std::launch::async, logRes, id, ipState, OUT_LATENCY, std::ref(outlist));
// async(std::launch::async, logRes, id, ipState, OUT_HOPS_REVERSE_PATH, std::ref(outlist));
/* measure addresses with large latency imbalance and one-fifth addresses with almost no latency imbalance */
bool randSel = (rand() % 100 < 20);
bool largeDiff = ((maxRTT - minRTT) >= RANGE_THRES);
if (largeDiff) {
ipState->flows[0].hops.clear();
ipState->flows[1].hops.clear();
ipState->flows.erase(ipState->flows.begin() + 2, ipState->flows.end());
ipState->task = (largeDiff) ? PATH_HOP_EST : PATH_ENUM_HOP_SIMPLE;
if (largeDiff && ipState->lastHopRouter) {
ipState->task = PATH_ENUM_HOP;
} else if (largeDiff && !ipState->lastHopRouter) {
// initialize fwdttl to rvrttl
for (auto &f : ipState->flows) {
f.fwdttl = f.rvrttl;
}
ipState->task = PATH_HOP_EST;
} else {
ipState->task = PATH_ENUM_HOP_SIMPLE;
}
addToQueue(Task(id, currTime));
} else {
ipState->flows.clear();
msgType = PROBE_END;
}
} else if (msgType == CONTINUE) {
addToQueue(Task(id, currTime + freeze_time));
}
} else if (ipState->task == PATH_HOP_EST) {
msgType = pathHopEst(id, ipState, TR_UDP, pkts);
if (msgType == PHASE_DONE) {
ipState->flows[0].hops.clear();
ipState->flows[1].hops.clear();
ipState->task = PATH_ENUM_HOP;
addToQueue(Task(id, currTime));
} else if (msgType == CONTINUE) {
addToQueue(Task(id, currTime + freeze_time));
}
} else if (ipState->task == PATH_ENUM_HOP_SIMPLE) {
msgType = pathEnumHop(id, ipState, 1, pkts);
if (msgType == PHASE_DONE) {
async(std::launch::async, logRes, id, ipState, OUT_FLOW_NO_LB, std::ref(outlist));
msgType = PROBE_END;
} else if (msgType == CONTINUE) {
addToQueue(Task(id, currTime + freeze_time));
}
} else if (ipState->task == PATH_ENUM_HOP) {
msgType = pathEnumHop(id, ipState, 6, pkts);
if (msgType == DIFF_FWD_FLOW) {
// per-packet load balancer
// cout << formatOutput(id, 0, msgType, -1, {});
async(std::launch::async, logRes, id, ipState, OUT_FWD_PKT_LB, std::ref(outlist));
msgType = PROBE_END;
} else if (msgType == DIFF_RVR_FLOW) {
// cout << formatOutput(id, 0, msgType, -1, {});
async(std::launch::async, logRes, id, ipState, OUT_RVR_PKT_LB, std::ref(outlist));
msgType = PROBE_END;
} else if (msgType == PHASE_DONE) {
// write flows to files
async(std::launch::async, logRes, id, ipState, OUT_FLOW_LB, std::ref(outlist));
ipState->task = UPDATE_MAP;
addToQueue(Task(id, currTime));
} else if (msgType == CONTINUE) {
addToQueue(Task(id, currTime + freeze_time));
}
} else if (ipState->task == UPDATE_MAP) {
Graph graph;
vector<LBReg> lbRegs;
float totalRange;
// add source node
Hop source(0, 0);
// for not being considered as null when calculating
source.cnt = NUM_REPEAT;
for (auto &f : ipState->flows) {
if (f.hops.size() > 0 && f.hops[0].fwdttl == 0)
continue;
f.hops.insert(f.hops.begin(), source);
}
lbRegs = graph.findLBReg(id, ipState->flows, &outlist);
totalRange = graph.calcLBRegDiff(ipState->flows, lbRegs);
// cout << formatOutput(id, ipState->lastHopRouter, PROBE_END, totalRange, lbRegs);
stringstream ss;
if (!lbRegs.empty()) {
float imbl = 0;
int ind = 0;
for (int i = 0; i < lbRegs.size(); i++) {
if (abs(lbRegs[i].link.val) > imbl) {
imbl = abs(lbRegs[i].link.val);
ind = i;
}
}
ss << left << "(" << decToDot(lbRegs[ind].start.ip) << ", " << decToDot(lbRegs[ind].end.ip) << ")";
ss << endl;
} else {
ss << "---------------" << endl;
}
cout << ipState->output + ss.str();
msgType = PROBE_END;
}
return msgType;
}
bool
endOfProbe(MSG_TYPE msgType) {
if (msgType == NUM_PROBE_EXCEEDED ||
msgType == PROBE_END)
{
return true;
}
return false;
}
uint32_t
Scheduler::nextAddr(vector<Packet> &pkts,
vector<ip_timestamp> &opt)
{
int i;
Task task;
IPState *ipState;
MSG_TYPE msgType;
populateTaskQueue();
while (taskQueue.empty()) {
sleep(TIMEOUT);
return 0;
}
while (true) {
task = taskQueue.top();
if (getCurrTime() >= task.startTime)
break;
sleep(1.0/1000);
}
taskQueue.pop();
pthread_rwlock_wrlock(&gLock);
ipState = &ipStateDB[task.id];
msgType = LBRegScan(ipState, task.id, pkts, opt);
if (endOfProbe(msgType)) {
/* log the final state */
// outlist << fixed << numRounds << " " << task.id << " " << OUT_FINAL_STATE << " "
// << getCurrTime() << " " << (int)ipState->task << " " << msgType << endl;
if (ipState->lastHopRouter) {
histDB[ipState->lastHopRouter].probed = true;
}
/* when TCP_ACKs are used, remove the task when done */
ip2id.erase(task.id);
/* remove the task from the database when done */
ipStateDB.erase(task.id);
}
pthread_rwlock_unlock(&gLock);
return task.id;
}
uint32_t IP2Pfx(uint32_t ip) {
return (ip >> 8) << 8;
}
| [
"[email protected]"
] | |
24ccbe0f6ac51c4e1f804b537b95a8129d82859f | 08b8cf38e1936e8cec27f84af0d3727321cec9c4 | /data/crawl/make/old_hunk_802.cpp | 11cebfc17c9e9142fcabd6b227823238276f2005 | [] | no_license | ccdxc/logSurvey | eaf28e9c2d6307140b17986d5c05106d1fd8e943 | 6b80226e1667c1e0760ab39160893ee19b0e9fb1 | refs/heads/master | 2022-01-07T21:31:55.446839 | 2018-04-21T14:12:43 | 2018-04-21T14:12:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 302 | cpp | percent = find_percent (name);
if (percent)
{
struct pattern_var *p;
/* Get a reference for this pattern-specific variable struct. */
p = create_pattern_var(name, percent);
vlist = p->vars;
fname = p->target;
}
else
| [
"[email protected]"
] | |
b63613323679c418c7091afe7049281167053da6 | 3b4d05e5f53b79ffb34dc12c7eaad061286aae10 | /launcher-src/launcher/external/chromium/base/trace_event/heap_profiler_allocation_context_tracker.cc | bfa28d7f5377781d5dc263b3197307026ae3bc08 | [
"BSD-2-Clause"
] | permissive | Romantic-LiXuefeng/launcher | dd1966d7647d2ad8fcbbd165f9c77397f13b32db | f782ed9fc88774d4b009ad667546a39640470579 | refs/heads/master | 2022-11-12T17:58:23.715348 | 2020-07-07T13:32:00 | 2020-07-07T13:32:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,019 | cc | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/trace_event/heap_profiler_allocation_context_tracker.h"
#include <algorithm>
#include <iterator>
#include "base/atomicops.h"
#include "base/debug/debugging_flags.h"
#include "base/debug/leak_annotations.h"
#include "base/debug/stack_trace.h"
#include "base/threading/platform_thread.h"
#include "base/threading/thread_local_storage.h"
#include "base/trace_event/heap_profiler_allocation_context.h"
#if defined(OS_LINUX) || defined(OS_ANDROID)
#include <sys/prctl.h>
#endif
namespace base {
namespace trace_event {
subtle::Atomic32 AllocationContextTracker::capture_mode_ =
static_cast<int32_t>(AllocationContextTracker::CaptureMode::DISABLED);
namespace {
const size_t kMaxStackDepth = 128u;
const size_t kMaxTaskDepth = 16u;
AllocationContextTracker* const kInitializingSentinel =
reinterpret_cast<AllocationContextTracker*>(-1);
ThreadLocalStorage::StaticSlot g_tls_alloc_ctx_tracker = TLS_INITIALIZER;
// This function is added to the TLS slot to clean up the instance when the
// thread exits.
void DestructAllocationContextTracker(void* alloc_ctx_tracker) {
delete static_cast<AllocationContextTracker*>(alloc_ctx_tracker);
}
// Cannot call ThreadIdNameManager::GetName because it holds a lock and causes
// deadlock when lock is already held by ThreadIdNameManager before the current
// allocation. Gets the thread name from kernel if available or returns a string
// with id. This function intentionally leaks the allocated strings since they
// are used to tag allocations even after the thread dies.
const char* GetAndLeakThreadName() {
char name[16];
#if defined(OS_LINUX) || defined(OS_ANDROID)
// If the thread name is not set, try to get it from prctl. Thread name might
// not be set in cases where the thread started before heap profiling was
// enabled.
int err = prctl(PR_GET_NAME, name);
if (!err) {
return strdup(name);
}
#endif // defined(OS_LINUX) || defined(OS_ANDROID)
// Use tid if we don't have a thread name.
snprintf(name, sizeof(name), "%lu",
static_cast<unsigned long>(PlatformThread::CurrentId()));
return strdup(name);
}
} // namespace
// static
AllocationContextTracker*
AllocationContextTracker::GetInstanceForCurrentThread() {
AllocationContextTracker* tracker =
static_cast<AllocationContextTracker*>(g_tls_alloc_ctx_tracker.Get());
if (tracker == kInitializingSentinel)
return nullptr; // Re-entrancy case.
if (!tracker) {
g_tls_alloc_ctx_tracker.Set(kInitializingSentinel);
tracker = new AllocationContextTracker();
g_tls_alloc_ctx_tracker.Set(tracker);
}
return tracker;
}
AllocationContextTracker::AllocationContextTracker()
: thread_name_(nullptr), ignore_scope_depth_(0) {
tracked_stack_.reserve(kMaxStackDepth);
task_contexts_.reserve(kMaxTaskDepth);
}
AllocationContextTracker::~AllocationContextTracker() = default;
// static
void AllocationContextTracker::SetCurrentThreadName(const char* name) {
if (name && capture_mode() != CaptureMode::DISABLED) {
GetInstanceForCurrentThread()->thread_name_ = name;
}
}
// static
void AllocationContextTracker::SetCaptureMode(CaptureMode mode) {
// When enabling capturing, also initialize the TLS slot. This does not create
// a TLS instance yet.
if (mode != CaptureMode::DISABLED && !g_tls_alloc_ctx_tracker.initialized())
g_tls_alloc_ctx_tracker.Initialize(DestructAllocationContextTracker);
// Release ordering ensures that when a thread observes |capture_mode_| to
// be true through an acquire load, the TLS slot has been initialized.
subtle::Release_Store(&capture_mode_, static_cast<int32_t>(mode));
}
void AllocationContextTracker::PushPseudoStackFrame(
AllocationContextTracker::PseudoStackFrame stack_frame) {
// Impose a limit on the height to verify that every push is popped, because
// in practice the pseudo stack never grows higher than ~20 frames.
if (tracked_stack_.size() < kMaxStackDepth) {
tracked_stack_.push_back(
StackFrame::FromTraceEventName(stack_frame.trace_event_name));
} else {
NOTREACHED();
}
}
void AllocationContextTracker::PopPseudoStackFrame(
AllocationContextTracker::PseudoStackFrame stack_frame) {
// Guard for stack underflow. If tracing was started with a TRACE_EVENT in
// scope, the frame was never pushed, so it is possible that pop is called
// on an empty stack.
if (tracked_stack_.empty())
return;
tracked_stack_.pop_back();
}
void AllocationContextTracker::PushNativeStackFrame(const void* pc) {
if (tracked_stack_.size() < kMaxStackDepth)
tracked_stack_.push_back(StackFrame::FromProgramCounter(pc));
else
NOTREACHED();
}
void AllocationContextTracker::PopNativeStackFrame(const void* pc) {
if (tracked_stack_.empty())
return;
DCHECK_EQ(pc, tracked_stack_.back().value);
tracked_stack_.pop_back();
}
void AllocationContextTracker::PushCurrentTaskContext(const char* context) {
DCHECK(context);
if (task_contexts_.size() < kMaxTaskDepth)
task_contexts_.push_back(context);
else
NOTREACHED();
}
void AllocationContextTracker::PopCurrentTaskContext(const char* context) {
// Guard for stack underflow. If tracing was started with a TRACE_EVENT in
// scope, the context was never pushed, so it is possible that pop is called
// on an empty stack.
if (task_contexts_.empty())
return;
DCHECK_EQ(context, task_contexts_.back())
<< "Encountered an unmatched context end";
task_contexts_.pop_back();
}
bool AllocationContextTracker::GetContextSnapshot(AllocationContext* ctx) {
if (ignore_scope_depth_)
return false;
CaptureMode mode = static_cast<CaptureMode>(
subtle::NoBarrier_Load(&capture_mode_));
auto* backtrace = std::begin(ctx->backtrace.frames);
auto* backtrace_end = std::end(ctx->backtrace.frames);
if (!thread_name_) {
// Ignore the string allocation made by GetAndLeakThreadName to avoid
// reentrancy.
ignore_scope_depth_++;
thread_name_ = GetAndLeakThreadName();
ANNOTATE_LEAKING_OBJECT_PTR(thread_name_);
DCHECK(thread_name_);
ignore_scope_depth_--;
}
// Add the thread name as the first entry in pseudo stack.
if (thread_name_) {
*backtrace++ = StackFrame::FromThreadName(thread_name_);
}
switch (mode) {
case CaptureMode::DISABLED:
{
break;
}
case CaptureMode::PSEUDO_STACK:
case CaptureMode::MIXED_STACK:
{
for (const StackFrame& stack_frame : tracked_stack_) {
if (backtrace == backtrace_end)
break;
*backtrace++ = stack_frame;
}
break;
}
case CaptureMode::NATIVE_STACK:
{
// Backtrace contract requires us to return bottom frames, i.e.
// from main() and up. Stack unwinding produces top frames, i.e.
// from this point and up until main(). We intentionally request
// kMaxFrameCount + 1 frames, so that we know if there are more frames
// than our backtrace capacity.
#if !defined(OS_NACL) // We don't build base/debug/stack_trace.cc for NaCl.
#if 0
const void* frames[Backtrace::kMaxFrameCount + 1];
static_assert(arraysize(frames) >= Backtrace::kMaxFrameCount,
"not requesting enough frames to fill Backtrace");
size_t frame_count = debug::TraceStackFramePointers(
frames, arraysize(frames),
1 /* exclude this function from the trace */);
#else // BUILDFLAG(CAN_UNWIND_WITH_FRAME_POINTERS)
// Fall-back to capturing the stack with base::debug::StackTrace,
// which is likely slower, but more reliable.
base::debug::StackTrace stack_trace(Backtrace::kMaxFrameCount + 1);
size_t frame_count = 0u;
const void* const* frames = stack_trace.Addresses(&frame_count);
#endif // BUILDFLAG(CAN_UNWIND_WITH_FRAME_POINTERS)
// If there are too many frames, keep the ones furthest from main().
size_t backtrace_capacity = backtrace_end - backtrace;
int32_t starting_frame_index = frame_count;
if (frame_count > backtrace_capacity) {
starting_frame_index = backtrace_capacity - 1;
*backtrace++ = StackFrame::FromTraceEventName("<truncated>");
}
for (int32_t i = starting_frame_index - 1; i >= 0; --i) {
const void* frame = frames[i];
*backtrace++ = StackFrame::FromProgramCounter(frame);
}
#endif // !defined(OS_NACL)
break;
}
}
ctx->backtrace.frame_count = backtrace - std::begin(ctx->backtrace.frames);
// TODO(ssid): Fix crbug.com/594803 to add file name as 3rd dimension
// (component name) in the heap profiler and not piggy back on the type name.
if (!task_contexts_.empty()) {
ctx->type_name = task_contexts_.back();
} else {
ctx->type_name = nullptr;
}
return true;
}
} // namespace trace_event
} // namespace base
| [
"[email protected]"
] | |
8608a2b7bab7c404a4a18940b61d0c55ad905e33 | b77cc523c66701d91ecd2e821b3399bd74d08a70 | /RsyncClient/rsync_io.cpp | d760f74d4a3f315bf56b6482b175197a424f89ae | [] | no_license | Rettiwer/SyncApp-Daemon | 37fe0bf45dd7f8d0744ba173ecf44651fba2ac3c | 16e57bda5c9f1eb11dd289fb4f8c401907cd3e7d | refs/heads/master | 2022-12-23T02:51:04.680917 | 2020-10-01T12:20:00 | 2020-10-01T12:20:00 | 296,024,617 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 934 | cpp | // Copyright (C) 2015 Acrosync LLC
//
// Unless explicitly acquired and licensed from Licensor under another
// license, the contents of this file are subject to the Reciprocal Public
// License ("RPL") Version 1.5, or subsequent versions as allowed by the RPL,
// and You may not copy or use this file in either source code or executable
// form, except in compliance with the terms and conditions of the RPL.
//
// All software distributed under the RPL is provided strictly on an "AS
// IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, AND
// LICENSOR HEREBY DISCLAIMS ALL SUCH WARRANTIES, INCLUDING WITHOUT
// LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE, QUIET ENJOYMENT, OR NON-INFRINGEMENT. See the RPL for specific
// language governing rights and limitations under the RPL.
#include "rsync_io.h"
namespace rsync
{
IO::IO()
{
}
IO::~IO()
{
}
} // namespace rsync
| [
"[email protected]"
] | |
c8d01d573bb1e23597d3a47ad19b133d706a45db | dbdf999a1fef8029b626514b4ca06e8a84dc157c | /source/shared/gameplay/elements/menu_pages/menu_leaderboard.h | 5fe594f096e091da5f1c4a6454c2448d49ef9b70 | [] | no_license | StefanSlev/Survival-Shooter | 18fa5f64e6a8a5ff437bb6ba435d308b62d1f5a8 | 32996717f1e4e90616b9c761643ef9cf5bf22b22 | refs/heads/master | 2022-11-22T12:13:42.973406 | 2022-11-20T18:25:50 | 2022-11-20T18:25:50 | 193,385,871 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 847 | h | #ifndef SHARED_GAMEPLAY_ELEMENTS_MENU_LEADERBOARD
#define SHARED_GAMEPLAY_ELEMENTS_MENU_LEADERBOARD
#include "shared/gameplay/gameplay_base.h"
#include "shared/gameplay/engine/menu_item.h"
// -------------------------------------------------------------------------------------
// This is the menu page that appears when the game starts
// The Game handles showing and hiding this menu page
// -------------------------------------------------------------------------------------
BEGIN_SHARED_NAMESPACE
BEGIN_GAMEPLAY_NAMESPACE
class Leaderboard;
class MenuLeaderboard : public MenuItem
{
public:
MenuLeaderboard();
void OnStart() override;
void OnEnd() override;
Leaderboard* leaderboard;
private:
static const char* menuFileName;
};
END_GAMEPLAY_NAMESPACE
END_SHARED_NAMESPACE
#endif // SHARED_GAMEPLAY_ELEMENTS_MENU_LEADERBOARD | [
"[email protected]"
] | |
77a41f0b4498b9bbb7e260a50c3248b0faeec1b1 | ca670c6e41c1925c8621473fb25fad76b688f4a3 | /第十六章/第十六章/16.44.cpp | 279cd4a4162f74749ec33c780277177318cc2c26 | [] | no_license | yejh123/cpp-repos | 1460aa817fa67a184d89b956c9d296481d63985d | d74e3b4a14a97c7ffed8898a9a1882564afb3bf2 | refs/heads/master | 2022-02-17T07:58:46.639878 | 2019-09-13T03:09:27 | 2019-09-13T03:09:27 | 208,184,173 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 653 | cpp | #include <iostream>
using namespace std;
template<typename T> void f3(T&& i) {
cout << i << endl;
++i;
cout << i << endl;
}
class Test {
int * arr{ nullptr };
public:
Test() :arr(new int[5000]{ 1,2,3,4 }) {
cout << "default constructor this = "<<this << endl;
}
Test(const Test & t) {
cout << "copy constructor" << endl;
if (arr == nullptr) arr = new int[5000];
memcpy(arr, t.arr, 5000 * sizeof(int));
}
Test(Test && t) : arr(t.arr) {
cout << "move constructor" << endl;
t.arr = nullptr;
}
~Test() {
cout << "destructor" << endl;
delete[] arr;
}
};
Test createTest() {
return Test();
}
int main() {
Test t(createTest());
} | [
"[email protected]"
] | |
852d1fbbef89aacfca5398acce8a6770249bee50 | 7e2e71956fdf70da787bf4edcfcf7ecd34fd9c99 | /o2Engine/Sources/Render/VectorFont.cpp | 8d7339e93a2fdef501e4831dd20031fa107d6208 | [] | no_license | dmitrykolesnikovich/o2 | 579abb53c805b117d11986017dcdb50f50d75409 | c1b9038c6f56466ab96544c0e9424e4b9baf6553 | refs/heads/master | 2020-03-13T00:31:46.701057 | 2018-04-23T19:33:58 | 2018-04-23T19:33:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,177 | cpp | #include "stdafx.h"
#include "VectorFont.h"
#include "Render/Windows/OpenGL.h"
#include "Application/Application.h"
#include "Render/Render.h"
#include "Utils/Bitmap/Bitmap.h"
#include "Utils/Debug/Debug.h"
#include "Utils/Debug/Log/LogStream.h"
#include "Utils/System/Time/Timer.h"
namespace o2
{
VectorFont::VectorFont():
Font(), mFreeTypeFace(nullptr)
{
mTexture = TextureRef(Vec2I(256, 256));
mTextureSrcRect.Set(0, 0, 256, 256);
}
VectorFont::VectorFont(const String& fileName):
Font(), mFreeTypeFace(nullptr)
{
mTexture = TextureRef(Vec2I(256, 256));
mTextureSrcRect.Set(0, 0, 256, 256);
Load(fileName);
}
VectorFont::VectorFont(const VectorFont& other):
Font(), mFreeTypeFace(other.mFreeTypeFace)
{
mTexture = TextureRef(Vec2I(256, 256));
mTextureSrcRect.Set(0, 0, 256, 256);
}
VectorFont::~VectorFont()
{
if (mFreeTypeFace)
FT_Done_Face(mFreeTypeFace);
for (auto effect : mEffects)
delete effect;
}
bool VectorFont::Load(const String& fileName)
{
FT_Error error = FT_New_Face(o2Render.mFreeTypeLib, fileName.Data(), 0, &mFreeTypeFace);
if (error)
{
o2Render.mLog->Error("Failed to load vector font: %s, error: %i", fileName, error);
return false;
}
mFileName = fileName;
return true;
}
// void VectorFont::SetSize(UInt size)
// {
// if (size == mSize)
// return;
//
// mSize = size;
// Vec2I dpi = o2Render.GetDPI();
// FT_Error error = FT_Set_Char_Size(mFreeTypeFace, 0, mSize*64, dpi.x, dpi.y);
//
// FT_Load_Char(mFreeTypeFace, 'A', FT_LOAD_RENDER);
// mBaseHeight = mFreeTypeFace->glyph->metrics.horiBearingY/64.0f;
// mLineHeight = mBaseHeight*2.0f;
//
// // mBaseHeight = mFreeTypeFace->ascender/64.0f;
// // mLineHeight = (mFreeTypeFace->ascender - mFreeTypeFace->descender)/64.0f + 5.0f;
//
// Reset();
// }
String VectorFont::GetFileName() const
{
return mFileName;
}
float VectorFont::GetHeightPx(int height) const
{
Vec2I dpi = o2Render.GetDPI();
FT_Error error = FT_Set_Char_Size(mFreeTypeFace, 0, height*64, dpi.x, dpi.y);
FT_Load_Char(mFreeTypeFace, 'A', FT_LOAD_RENDER);
return mFreeTypeFace->glyph->metrics.horiBearingY/64.0f;
}
float VectorFont::GetLineHeightPx(int height) const
{
Vec2I dpi = o2Render.GetDPI();
FT_Error error = FT_Set_Char_Size(mFreeTypeFace, 0, height * 64, dpi.x, dpi.y);
FT_Load_Char(mFreeTypeFace, 'A', FT_LOAD_RENDER);
return (mFreeTypeFace->glyph->metrics.horiBearingY / 64.0f)*2.0f;
}
void VectorFont::CheckCharacters(const WString& needChararacters, int height)
{
int len = needChararacters.Length();
Vector<wchar_t> needToRenderChars(len);
for (int i = 0; i < len; i++)
{
bool isNew = true;
wchar_t c = needChararacters[i];
for (auto ch : mCharacters)
{
if (ch.mId == c && ch.mHeight == height)
{
isNew = false;
break;
}
}
if (isNew)
isNew = !needToRenderChars.Contains(c);
if (!isNew)
continue;
needToRenderChars.Add(c);
}
if (needToRenderChars.Count() > 0)
UpdateCharacters(needToRenderChars, height);
}
VectorFont::Effect* VectorFont::AddEffect(Effect* effect)
{
mEffects.Add(effect);
return effect;
}
void VectorFont::RemoveEffect(Effect* effect)
{
mEffects.Remove(effect);
delete effect;
}
void VectorFont::RemoveAllEffects()
{
for (auto effect : mEffects)
delete effect;
mEffects.Clear();
}
void VectorFont::Reset()
{
mCharacters.Clear();
}
void VectorFont::UpdateCharacters(Vector<wchar_t>& newCharacters, int height)
{
CharDefsVec charactersDefs;
mRectsPacker.Clear();
ExtractCharacterDefsFromTexture(charactersDefs);
RenderNewCharacters(charactersDefs, newCharacters, height);
PackCharactersDefs(charactersDefs);
onCharactersRebuild();
}
void VectorFont::ExtractCharacterDefsFromTexture(CharDefsVec& charDefs)
{
if (mCharacters.Count() == 0)
return;
Bitmap texBitmap(Bitmap::Format::R8G8B8A8, mTexture->GetSize());
glBindTexture(GL_TEXTURE_2D, mTexture->mHandle);
glGetTexImage(GL_TEXTURE_2D, 0, GL_RGBA, GL_UNSIGNED_BYTE, texBitmap.GetData());
//glBindTexture(GL_TEXTURE_2D, o2Render.mLastDrawTexture->mHandle);
for (auto& ch : mCharacters)
{
CharDef charDef;
Bitmap* charBitmap = mnew Bitmap(Bitmap::Format::R8G8B8A8, ch.mSize);
RectI srcRect;
Vec2F texSize = texBitmap.GetSize();
srcRect.left = (int)(ch.mTexSrc.left*texSize.x);
srcRect.right = (int)(ch.mTexSrc.right*texSize.x);
srcRect.bottom = (int)(ch.mTexSrc.top*texSize.y);
srcRect.top = (int)(ch.mTexSrc.bottom*texSize.y);
charBitmap->CopyImage(&texBitmap, Vec2I(), srcRect);
charDef.mCharacter = ch;
charDef.mBitmap = charBitmap;
charDef.mPackRect = mRectsPacker.AddRect(ch.mSize);
charDefs.Add(charDef);
}
}
void VectorFont::RenderNewCharacters(CharDefsVec& charDefs, Vector<wchar_t>& newCharacters, int height)
{
Vec2I dpi = o2Render.GetDPI();
FT_Set_Char_Size(mFreeTypeFace, 0, height * 64, dpi.x, dpi.y);
Vec2I border;
for (auto effect : mEffects)
{
Vec2I effectExt = effect->GetSizeExtend();
border.x = Math::Max(border.x, effectExt.x);
border.y = Math::Max(border.y, effectExt.y);
}
border += Vec2I(2, 2);
//border = Vec2F();
for (auto ch : newCharacters)
{
CharDef newCharDef;
FT_Load_Char(mFreeTypeFace, ch, FT_LOAD_RENDER);
auto glyph = mFreeTypeFace->glyph;
Vec2I glyphSize(glyph->bitmap.width, glyph->bitmap.rows);
Bitmap* newBitmap = mnew Bitmap(Bitmap::Format::R8G8B8A8, glyphSize + border*2);
newBitmap->Fill(Color4(255, 255, 255, 0));
UInt8* newBitmapData = newBitmap->GetData();
Vec2I newBitmapSize = newBitmap->GetSize();
for (int x = 0; x < (int)glyph->bitmap.width; x++)
{
for (int y = 0; y < (int)glyph->bitmap.rows; y++)
{
Color4 c(255, 255, 255, glyph->bitmap.buffer[y*glyph->bitmap.width + x]);
ULong cl = c.ABGR();
memcpy(&newBitmapData[((newBitmapSize.y - y - 1 - border.y)*newBitmapSize.x + x + border.x)*4], &cl, 4);
}
}
for (auto effect : mEffects)
effect->Process(newBitmap);
newCharDef.mPackRect = mRectsPacker.AddRect(glyphSize + border*2);
newCharDef.mBitmap = newBitmap;
newCharDef.mCharacter.mId = ch;
newCharDef.mCharacter.mHeight = height;
newCharDef.mCharacter.mSize = newBitmapSize;
newCharDef.mCharacter.mAdvance = glyph->advance.x/64.0f;
newCharDef.mCharacter.mOrigin.x = -glyph->metrics.horiBearingX/64.0f + border.x;
newCharDef.mCharacter.mOrigin.y = (glyph->metrics.height - glyph->metrics.horiBearingY)/64.0f + border.y;
charDefs.Add(newCharDef);
}
}
void VectorFont::PackCharactersDefs(CharDefsVec& charDefs)
{
mCharacters.Clear();
int texSizes[] ={64, 128, 256, 512, 1024};
Vec2I newTexSize;
for (int i = 0; i < 5; i++)
{
newTexSize = Vec2I(texSizes[i], texSizes[i]);
mRectsPacker.SetMaxSize(newTexSize);
if (!mRectsPacker.Pack())
continue;
if (mRectsPacker.GetPagesCount() > 1)
continue;
break;
}
if (newTexSize != mTexture->GetSize())
{
mTexture = TextureRef(newTexSize, Texture::Format::R8G8B8A8, Texture::Usage::Default);
mTextureSrcRect.Set(Vec2I(), newTexSize);
}
Bitmap texBitmap(Bitmap::Format::R8G8B8A8, mTexture->GetSize());
texBitmap.Fill(Color4(255, 255, 255, 0));
Vec2F invTexSize(1.0f/mTexture->GetSize().x, 1.0f/mTexture->GetSize().y);
for (auto& def : charDefs)
{
texBitmap.CopyImage(def.mBitmap, def.mPackRect->mRect.LeftBottom());
def.mCharacter.mTexSrc.left = def.mPackRect->mRect.left*invTexSize.x;
def.mCharacter.mTexSrc.right = def.mPackRect->mRect.right*invTexSize.x;
def.mCharacter.mTexSrc.top = def.mPackRect->mRect.bottom*invTexSize.y;
def.mCharacter.mTexSrc.bottom = def.mPackRect->mRect.top*invTexSize.y;
mCharacters.Add(def.mCharacter);
delete def.mBitmap;
}
glBindTexture(GL_TEXTURE_2D, mTexture->mHandle);
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, texBitmap.GetSize().x, texBitmap.GetSize().y, 0, GL_RGBA, GL_UNSIGNED_BYTE,
texBitmap.GetData());
GL_CHECK_ERROR(o2Render.mLog);
//glBindTexture(GL_TEXTURE_2D, o2Render.mLastDrawTexture->mHandle);
}
}
DECLARE_CLASS(o2::VectorFont::Effect);
| [
"[email protected]"
] | |
8780ef095bc75d42aaba69ba8991e8c29b606bc8 | 7a3ad0b3607e39d3c8ceb516695567399eba3206 | /GtarSdk/AudioController/AudioController/TanhDistortion.h | e05171a7fff57c02ee947080416a1eeaf48bc3c0 | [] | no_license | IncidentTechnologies/iPhone | 2ef113e41d55c8b7f1c165d3c5e31774cd3cb6ed | cd04e42ba6955eb821d5ee2c0d45356d042241a4 | refs/heads/master | 2021-06-13T12:28:15.629410 | 2013-05-14T23:05:33 | 2013-05-14T23:05:33 | 5,958,930 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,997 | h | //
// TanhDistortion.h
// gTarAudioController
//
// Created by Franco Cedano on 12/7/11.
// Copyright (c) 2011 Incident Technologies. All rights reserved.
//
// Distortion effect, applies the input signal to a hyperbolic tangent
// function.
//
#ifndef gTarAudioController_TanhDistortion_h
#define gTarAudioController_TanhDistortion_h
#include "Effect.h"
class TanhDistortion :
public Effect
{
public:
TanhDistortion (double gain, double wet, double SamplingFrequency) :
Effect("Distortion", wet, SamplingFrequency)
{
m_pPosFactor = new Parameter(1.0, 1.0, 100, "Positive Dist");
m_pNegFactor = new Parameter(1.0, 1.0, 100, "Negative Dist");
}
inline double InputSample(double sample)
{
double retVal = 0;
if(m_fPassThrough)
return sample;
float factor;
if (sample > 0)
{
factor = m_pPosFactor->getValue();
retVal = tanh(factor*sample)/factor;
}
else
{
factor = m_pNegFactor->getValue();
retVal = tanh(factor*sample)/factor;
}
return retVal * 2;
}
bool setPosFactor(double factor)
{
return m_pPosFactor->setValue(factor);
}
bool setNegFactor(double factor)
{
return m_pNegFactor->setValue(factor);
}
Parameter& getPrimaryParam()
{
return *m_pPosFactor;
}
bool setPrimaryParam(float value)
{
return m_pPosFactor->setValue(value);
}
Parameter& getSecondaryParam()
{
return *m_pNegFactor;
}
bool setSecondaryParam(float value)
{
return m_pNegFactor->setValue(value);
}
~TanhDistortion()
{
delete m_pPosFactor;
m_pPosFactor = NULL;
delete m_pNegFactor;
m_pNegFactor = NULL;
}
private:
Parameter *m_pPosFactor;
Parameter *m_pNegFactor;
};
#endif
| [
"[email protected]"
] | |
883b84130a5d1751988fa501aa5818d1ba0f962a | ec76c1297252070d72fd194baebca3146bafac59 | /damBreak_laminar/damBreak/8.05/phi | 558f13f1c6e206ecf5dc22380bcf18aaebe854a4 | [] | no_license | Shivam-IITKGP/CFD_InterFoam_BottleFill | 413cdb5536cf71d95da882821fa36c7bd138e17e | be711e0f19a5331bb1094b8e54982c9ad101da5c | refs/heads/main | 2023-04-13T12:58:09.332312 | 2021-04-15T16:24:42 | 2021-04-15T16:24:42 | 358,315,309 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 226,278 | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 8
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class surfaceScalarField;
location "8.05";
object phi;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 3 -1 0 0 0 0];
internalField nonuniform List<scalar>
18095
(
1.99886e-08
-1.72096e-07
1.52107e-07
2.32312e-08
-1.97562e-07
1.94319e-07
2.01575e-08
-2.0616e-07
2.09234e-07
1.1083e-08
-2.10581e-07
2.19655e-07
-4.02333e-10
-2.13213e-07
2.24699e-07
-1.17477e-08
-2.13481e-07
2.24827e-07
-2.0336e-08
-2.1109e-07
2.19678e-07
-2.32112e-08
-2.0622e-07
2.09095e-07
-1.99823e-08
-1.97517e-07
1.94288e-07
-1.72081e-07
1.52099e-07
1.55336e-08
-1.87629e-07
1.61056e-08
-1.98134e-07
1.19685e-08
-2.02023e-07
6.72742e-09
-2.0534e-07
5.76546e-10
-2.07063e-07
-6.18038e-09
-2.06725e-07
-1.18436e-08
-2.05427e-07
-1.6156e-08
-2.01908e-07
-1.55367e-08
-1.98136e-07
-1.87618e-07
6.79817e-09
-1.94428e-07
8.40239e-09
-1.99738e-07
7.30804e-09
-2.00929e-07
3.98534e-09
-2.02017e-07
-4.46242e-10
-2.02631e-07
-4.46019e-09
-2.02711e-07
-7.40226e-09
-2.02485e-07
-8.3836e-09
-2.00926e-07
-6.79747e-09
-1.99722e-07
-1.94415e-07
4.50726e-09
-1.98935e-07
4.72995e-09
-1.99961e-07
3.68706e-09
-1.99886e-07
2.11547e-09
-2.00445e-07
3.96169e-10
-2.00912e-07
-1.54298e-09
-2.00771e-07
-3.63591e-09
-2.00392e-07
-4.71528e-09
-1.99847e-07
-4.51426e-09
-1.99923e-07
-1.9893e-07
1.06521e-09
1.10465e-09
1.21891e-09
7.73546e-10
-1.37956e-10
-9.09169e-10
-1.30068e-09
-1.14735e-09
-1.07048e-09
-2.85383e-08
-1.95729e-07
2.24267e-07
-3.09866e-08
-1.99076e-07
2.01524e-07
-2.5249e-08
-2.01011e-07
1.95273e-07
-1.41051e-08
-2.01426e-07
1.90282e-07
6.00254e-10
-2.02163e-07
1.87458e-07
1.49659e-08
-2.0221e-07
1.87845e-07
2.57284e-08
-2.01611e-07
1.90848e-07
3.13263e-08
-2.01268e-07
1.9567e-07
2.8869e-08
-1.99428e-07
2.01885e-07
-1.96079e-07
2.24948e-07
-9.30833e-09
-1.8642e-07
-1.50867e-08
-1.93297e-07
-1.29163e-08
-2.03182e-07
-6.20216e-09
-2.0814e-07
-3.62958e-10
-2.08002e-07
5.64018e-09
-2.08213e-07
1.28234e-08
-2.08794e-07
1.51959e-08
-2.0364e-07
9.40819e-09
-1.9364e-07
-1.86671e-07
-9.87823e-09
-1.76542e-07
-7.72164e-09
-1.95454e-07
-6.01017e-09
-2.04893e-07
-3.85784e-09
-2.10292e-07
1.27361e-09
-2.13134e-07
6.21048e-09
-2.1315e-07
7.44597e-09
-2.10029e-07
8.51671e-09
-2.04711e-07
1.01595e-08
-1.95283e-07
-1.76511e-07
-6.40914e-09
-1.70133e-07
-8.41068e-09
-1.93452e-07
-8.14853e-09
-2.05156e-07
-3.83806e-09
-2.14603e-07
-3.37461e-10
-2.16634e-07
2.87688e-09
-2.16365e-07
7.33371e-09
-2.14486e-07
8.05638e-09
-2.05434e-07
6.35055e-09
-1.93577e-07
-1.70161e-07
-1.80257e-08
-1.71587e-08
-1.30805e-08
-8.02824e-09
3.61837e-11
8.49822e-09
1.36901e-08
1.73515e-08
1.80622e-08
4.01297e-08
-1.5565e-07
1.1552e-07
4.54955e-08
-1.96734e-07
1.91368e-07
3.98105e-08
-2.09806e-07
2.15491e-07
2.81369e-08
-2.15991e-07
2.27665e-07
1.08492e-08
-2.17703e-07
2.3499e-07
-7.58793e-09
-2.17989e-07
2.36426e-07
-2.47852e-08
-2.16134e-07
2.33331e-07
-3.40519e-08
-2.11116e-07
2.20383e-07
-3.08763e-08
-1.99255e-07
1.9608e-07
-1.59623e-07
1.28747e-07
1.81018e-08
-1.73752e-07
2.10626e-08
-1.99694e-07
1.73205e-08
-2.06064e-07
9.2689e-09
-2.0794e-07
-8.2577e-10
-2.07608e-07
-1.03659e-08
-2.08449e-07
-1.64769e-08
-2.10023e-07
-1.91544e-08
-2.08438e-07
-1.61716e-08
-2.02237e-07
-1.75794e-07
8.77289e-09
-1.82525e-07
1.00044e-08
-2.00926e-07
9.71411e-09
-2.05773e-07
6.87184e-09
-2.05097e-07
3.77729e-09
-2.04513e-07
-9.68034e-11
-2.04575e-07
-5.79132e-09
-2.04328e-07
-7.54106e-09
-2.06688e-07
-7.65396e-09
-2.02125e-07
-1.83449e-07
7.42953e-09
-1.89954e-07
5.67851e-09
-1.99175e-07
6.60704e-09
-2.06702e-07
1.4314e-09
-1.99922e-07
7.97442e-11
-2.03162e-07
-1.06845e-09
-2.03427e-07
-5.72624e-09
-1.99671e-07
-4.77255e-09
-2.07642e-07
-7.21222e-09
-1.99685e-07
-1.90661e-07
3.43128e-08
3.6662e-08
2.52336e-08
1.55941e-08
-1.10089e-10
-1.56926e-08
-2.45149e-08
-3.6487e-08
-3.42873e-08
1.44212e-08
-9.36505e-09
-5.05612e-09
2.51114e-08
-1.06906e-08
2.83585e-08
-3.24711e-09
1.91146e-08
9.24396e-09
1.02387e-08
8.87591e-09
7.65405e-09
2.58481e-09
9.60552e-09
-1.95133e-09
1.09406e-08
-1.33489e-09
9.8125e-09
1.12826e-09
4.85881e-09
4.95387e-09
1.17674e-08
2.44839e-09
-2.3581e-08
8.92208e-09
-7.8454e-09
1.43761e-08
-8.70101e-09
2.32274e-08
3.92779e-10
2.73319e-08
4.77163e-09
2.61506e-08
3.76636e-09
2.21612e-08
2.03842e-09
1.41384e-08
6.68821e-09
-9.32712e-10
1.61997e-08
2.86422e-08
-2.47158e-08
3.17993e-08
7.3143e-09
-3.66653e-08
2.71116e-08
-3.15753e-09
2.56544e-08
-7.24363e-09
2.78224e-08
-1.77508e-09
2.91429e-08
3.45144e-09
2.76021e-08
5.30739e-09
1.7917e-08
1.17238e-08
2.98176e-09
2.16237e-08
-1.90019e-08
3.81836e-08
5.16821e-08
-4.20416e-08
2.21924e-08
3.58367e-09
-1.84617e-08
2.22845e-08
-3.24933e-09
1.85244e-08
-3.48336e-09
1.38346e-08
2.91484e-09
9.63164e-09
7.65465e-09
3.81919e-09
1.112e-08
-4.08924e-09
1.96324e-08
-1.5169e-08
3.27037e-08
-2.42807e-08
4.72955e-08
5.68766e-08
-2.9475e-08
1.15683e-08
1.82443e-09
-9.80891e-09
9.43184e-09
-1.11256e-09
6.95767e-09
-1.00905e-09
5.77583e-09
4.09682e-09
1.40427e-09
1.20264e-08
-5.00915e-09
1.75336e-08
-1.26958e-08
2.73191e-08
-1.82239e-08
3.8232e-08
-1.86085e-08
4.76801e-08
5.44234e-08
-1.61552e-08
6.48296e-09
1.27908e-09
-5.93749e-09
5.73295e-09
-3.62325e-10
3.78015e-09
9.43823e-10
1.89373e-09
5.98331e-09
-2.76241e-09
1.66825e-08
-9.59661e-09
2.43678e-08
-1.49131e-08
3.26357e-08
-1.47402e-08
3.80589e-08
-8.8219e-09
4.17617e-08
4.43421e-08
1.25935e-09
-1.95035e-09
-9.94534e-10
4.22403e-09
-1.22079e-09
-1.09181e-09
-3.35474e-09
3.0778e-09
-9.27742e-09
1.1906e-08
-1.53807e-08
2.27857e-08
-2.04766e-08
2.94636e-08
-2.11714e-08
3.33304e-08
-1.80407e-08
3.4928e-08
-9.38851e-09
3.31093e-08
2.8757e-08
6.19638e-09
-9.84543e-09
-4.06277e-09
1.29137e-08
-8.26898e-09
-2.66826e-09
-1.12435e-08
6.05233e-09
-2.09409e-08
2.16033e-08
-2.9592e-08
3.14367e-08
-3.36223e-08
3.34936e-08
-2.98171e-08
2.9525e-08
-2.08665e-08
2.59772e-08
-9.54144e-09
2.1784e-08
1.53848e-08
3.83047e-09
-1.53647e-08
-6.46012e-09
1.7762e-08
-1.44329e-08
-3.60017e-09
-2.27125e-08
1.43319e-08
-3.93318e-08
3.82224e-08
-5.05318e-08
4.26365e-08
-4.87492e-08
3.1711e-08
-4.04999e-08
2.12756e-08
-3.38626e-08
1.93398e-08
-3.29802e-08
2.09015e-08
8.38414e-09
-2.59797e-08
-2.66369e-08
1.86121e-09
1.83155e-08
-3.275e-08
2.51273e-09
-4.05385e-08
2.21202e-08
-5.32811e-08
5.09649e-08
-6.4722e-08
5.40774e-08
-5.91111e-08
2.61e-08
-5.37462e-08
1.59106e-08
-5.23864e-08
1.798e-08
-4.11787e-08
9.69378e-09
-1.16323e-08
-2.11622e-08
-2.86728e-08
2.40571e-08
6.47692e-09
-4.58909e-08
1.97304e-08
-4.85655e-08
2.47948e-08
-4.70217e-08
4.9421e-08
-4.87495e-08
5.58051e-08
-5.70073e-08
3.43578e-08
-6.04577e-08
1.9361e-08
-5.48738e-08
1.23962e-08
-3.83115e-08
-6.86836e-09
-2.87883e-08
-2.11554e-08
1.53338e-08
4.97039e-08
-4.09808e-08
-1.75351e-08
5.25989e-08
-4.05317e-08
4.77912e-08
-4.17182e-08
5.06075e-08
-3.79646e-08
5.20515e-08
-4.22624e-08
3.86556e-08
-4.36607e-08
2.07593e-08
-3.94237e-08
8.15935e-09
-3.19229e-08
-1.4369e-08
-3.57552e-08
-2.4956e-08
4.67534e-08
5.45909e-08
-5.16405e-08
2.82783e-08
7.10736e-08
-1.67736e-09
7.77467e-08
-2.0172e-08
6.9102e-08
-2.8188e-08
6.00673e-08
-3.56276e-08
4.60951e-08
-4.00566e-08
2.51882e-08
-3.98674e-08
7.97018e-09
-4.32913e-08
-1.09452e-08
-2.88332e-08
-5.02133e-08
4.30091e-08
5.42651e-08
-4.26835e-08
3.6389e-08
7.76932e-08
2.42271e-08
8.99084e-08
8.58341e-09
8.47453e-08
-3.50583e-09
7.21562e-08
-1.81398e-08
6.07288e-08
-3.3736e-08
4.07842e-08
-4.12508e-08
1.54847e-08
-5.64758e-08
4.2796e-09
-3.99225e-09
-8.1317e-08
3.03541e-08
6.26327e-08
-3.8722e-08
2.00682e-08
8.79785e-08
1.55526e-08
9.44236e-08
1.27183e-08
8.75792e-08
4.90264e-09
7.99715e-08
-7.09233e-09
7.27234e-08
-2.53616e-08
5.9053e-08
-4.96508e-08
3.97736e-08
-7.6323e-08
3.09514e-08
2.3285e-08
-1.03601e-07
1.9652e-09
7.49663e-08
-1.42991e-08
-6.75485e-09
9.66979e-08
-4.44065e-09
9.2109e-08
-1.14117e-09
8.42793e-08
-8.79426e-09
8.76242e-08
-1.93373e-08
8.32661e-08
-3.6684e-08
7.63994e-08
-6.7569e-08
7.06583e-08
-9.09275e-08
5.43095e-08
4.09251e-08
-1.08568e-07
-4.17646e-08
7.21873e-08
4.45434e-08
-3.12373e-08
8.61701e-08
-2.20851e-08
8.29565e-08
-2.41302e-08
8.63242e-08
-2.56753e-08
8.9169e-08
-2.94807e-08
8.70713e-08
-4.28666e-08
8.97851e-08
-6.32382e-08
9.10297e-08
-7.97457e-08
7.08169e-08
5.86366e-08
-9.74574e-08
-8.66357e-08
5.54763e-08
1.03347e-07
-6.99031e-08
6.94373e-08
-6.36164e-08
7.66697e-08
-5.97227e-08
8.24305e-08
-5.94147e-08
8.88611e-08
-6.2582e-08
9.02386e-08
-6.51439e-08
9.23469e-08
-6.71215e-08
9.30073e-08
-7.32234e-08
7.69188e-08
6.71305e-08
-8.17173e-08
-1.26821e-07
4.20353e-08
1.40262e-07
-1.16345e-07
5.89612e-08
-1.07884e-07
6.8209e-08
-9.75304e-08
7.20767e-08
-8.2594e-08
7.39248e-08
-6.83769e-08
7.60216e-08
-6.12111e-08
8.51812e-08
-5.57485e-08
8.75448e-08
-5.26407e-08
7.38111e-08
6.29722e-08
-4.84825e-08
-1.30755e-07
3.47867e-08
1.38004e-07
-1.20735e-07
4.8941e-08
-1.09877e-07
5.73513e-08
-9.95461e-08
6.17461e-08
-8.72005e-08
6.15793e-08
-7.11215e-08
5.99426e-08
-5.45514e-08
6.86111e-08
-3.69684e-08
6.99617e-08
-2.20684e-08
5.8911e-08
4.6243e-08
-5.33929e-09
-1.14119e-07
3.14873e-08
1.17418e-07
-1.04986e-07
3.98076e-08
-9.16689e-08
4.40346e-08
-7.86811e-08
4.87582e-08
-6.5688e-08
4.85862e-08
-5.32228e-08
4.74773e-08
-3.51537e-08
5.0542e-08
-1.30201e-08
4.7828e-08
6.85308e-09
3.90377e-08
2.56649e-08
2.74311e-08
-3.40669e-08
4.24129e-08
2.31412e-08
-4.34859e-08
4.92263e-08
-4.63111e-08
4.68598e-08
-4.26585e-08
4.51055e-08
-3.74659e-08
4.33935e-08
-2.9702e-08
3.97133e-08
-1.5966e-08
3.68058e-08
5.05222e-09
2.68096e-08
2.984e-08
1.42498e-08
1.82227e-10
5.53225e-08
2.87644e-08
5.2639e-08
-3.89906e-08
3.81433e-08
3.98475e-08
4.50751e-08
3.99281e-08
5.38048e-08
3.63758e-08
5.43157e-08
4.28826e-08
4.76155e-08
4.64134e-08
3.86026e-08
4.58187e-08
3.45939e-08
3.08182e-08
3.67999e-08
1.20437e-08
-1.25954e-08
4.95774e-08
7.18132e-08
8.04631e-08
-9.96372e-08
5.82631e-08
5.33982e-08
6.82174e-08
2.99739e-08
8.41606e-08
2.04328e-08
1.07351e-07
1.96918e-08
1.28003e-07
2.57624e-08
1.31894e-07
4.19272e-08
1.15558e-07
4.71546e-08
8.96707e-08
3.79305e-08
1.28359e-08
6.42394e-08
1.62082e-07
1.22657e-07
-2.04275e-07
1.2958e-07
8.59017e-08
1.09537e-07
5.00168e-08
1.12866e-07
1.71042e-08
1.24003e-07
8.55417e-09
1.3724e-07
1.25262e-08
1.46125e-07
3.30422e-08
1.43507e-07
4.97729e-08
1.29681e-07
5.17558e-08
4.49882e-08
9.7529e-08
2.14242e-07
1.17069e-07
-2.08653e-07
1.97463e-07
1.02681e-07
1.78281e-07
6.91991e-08
1.66995e-07
2.83906e-08
1.56365e-07
1.91839e-08
1.46752e-07
2.21395e-08
1.425e-07
3.72945e-08
1.38483e-07
5.37896e-08
1.33043e-07
5.71966e-08
5.51955e-08
1.22836e-07
1.86107e-07
1.1093e-07
-1.79968e-07
1.87521e-07
1.01268e-07
1.89316e-07
6.7404e-08
1.77924e-07
3.97827e-08
1.61754e-07
3.53538e-08
1.4503e-07
3.88635e-08
1.3464e-07
4.76846e-08
1.24857e-07
6.35728e-08
1.19854e-07
6.21998e-08
6.33752e-08
1.11675e-07
8.73118e-08
9.74947e-08
-7.38759e-08
1.11837e-07
7.67421e-08
1.23503e-07
5.57386e-08
1.16318e-07
4.69675e-08
1.03924e-07
4.77477e-08
9.84921e-08
4.42956e-08
1.01203e-07
4.49735e-08
1.07792e-07
5.69844e-08
1.00941e-07
6.90506e-08
7.08904e-08
9.34262e-08
-1.37889e-08
6.82088e-08
4.30747e-08
2.59459e-08
3.70066e-08
5.01169e-08
3.15677e-08
5.39815e-08
4.31029e-08
5.33355e-08
4.83939e-08
7.21829e-08
2.54482e-08
8.70555e-08
3.01011e-08
8.95879e-08
5.44522e-08
9.04435e-08
6.81951e-08
7.32273e-08
8.81067e-08
-1.26769e-08
4.61042e-08
3.47812e-08
-1.24431e-08
3.67724e-08
-4.03643e-09
2.3161e-08
1.44581e-08
2.46085e-08
4.92848e-08
1.35673e-08
5.63404e-08
1.83927e-08
6.03724e-08
2.60692e-08
6.64718e-08
4.83528e-08
6.18281e-08
7.28388e-08
7.95689e-08
5.54864e-08
2.9097e-08
2.64892e-08
-9.48212e-09
3.57783e-08
3.00909e-08
3.74836e-08
2.14556e-08
4.48386e-08
1.72534e-08
4.48221e-08
1.35838e-08
4.18703e-08
2.13445e-08
4.29277e-08
2.50118e-08
5.96199e-08
3.16604e-08
6.96481e-08
6.28106e-08
8.50831e-08
6.41337e-08
1.46181e-07
9.10982e-09
-1.28801e-07
1.62085e-07
1.41871e-08
1.61416e-07
2.21245e-08
1.43347e-07
3.53225e-08
1.14778e-07
4.21518e-08
9.76748e-08
3.84477e-08
8.9895e-08
3.27911e-08
8.90791e-08
3.2476e-08
1.03372e-07
4.85172e-08
6.14009e-08
1.27054e-07
2.57795e-07
-2.05993e-08
-2.28086e-07
2.80998e-07
-9.01537e-09
2.93743e-07
9.37953e-09
2.85245e-07
4.38201e-08
2.69615e-07
5.77818e-08
2.57216e-07
5.08466e-08
2.48727e-07
4.12797e-08
2.44788e-07
3.6414e-08
2.54248e-07
3.90574e-08
4.65289e-08
2.6912e-07
2.83792e-07
-5.52038e-08
-2.49187e-07
3.05655e-07
-3.0879e-08
3.23902e-07
-8.86768e-09
3.43577e-07
2.41441e-08
3.58121e-07
4.32381e-08
3.63445e-07
4.55215e-08
3.61477e-07
4.32472e-08
3.50332e-07
4.75591e-08
3.36944e-07
5.24457e-08
5.4738e-08
3.28735e-07
2.64388e-07
-7.1041e-08
-2.48551e-07
2.86097e-07
-5.25875e-08
3.10122e-07
-3.28927e-08
3.28651e-07
5.61446e-09
3.51139e-07
2.07497e-08
3.84071e-07
1.25896e-08
4.09092e-07
1.82265e-08
4.01798e-07
5.48532e-08
3.58879e-07
9.53641e-08
8.93707e-08
3.24247e-07
2.27488e-07
-8.10412e-08
-2.17488e-07
2.39997e-07
-6.50978e-08
2.53714e-07
-4.661e-08
2.5606e-07
3.26857e-09
2.75126e-07
1.68395e-09
3.2336e-07
-3.56445e-08
3.45214e-07
-3.62719e-09
3.18684e-07
8.1383e-08
2.82976e-07
1.31072e-07
1.01144e-07
2.71202e-07
6.78888e-08
-6.4974e-08
-8.39561e-08
6.34947e-08
-6.07043e-08
6.75573e-08
-5.06728e-08
8.18644e-08
-1.10384e-08
9.77047e-08
-1.41563e-08
8.95383e-08
-2.74778e-08
7.27585e-08
1.31523e-08
8.49343e-08
6.92073e-08
1.33937e-07
8.20691e-08
7.73388e-08
1.57742e-07
-2.0748e-07
-5.48838e-08
1.9739e-07
-2.1525e-07
-5.29358e-08
-2.19552e-07
-4.63702e-08
-1.95983e-07
-3.46067e-08
-1.88799e-07
-2.13406e-08
-2.20099e-07
3.82268e-09
-2.40751e-07
3.38038e-08
-2.29283e-07
5.77389e-08
-2.17692e-07
7.04779e-08
8.5942e-08
-2.26296e-07
-3.7624e-07
-5.6882e-08
3.78237e-07
-3.77048e-07
-5.21278e-08
-3.81905e-07
-4.15133e-08
-3.90144e-07
-2.63672e-08
-4.04132e-07
-7.35258e-09
-4.16504e-07
1.61936e-08
-4.27568e-07
4.48691e-08
-4.36675e-07
6.68451e-08
-4.38917e-07
7.27193e-08
7.33862e-08
-4.2636e-07
-4.9931e-07
-4.37944e-08
4.86223e-07
-5.14297e-07
-3.71411e-08
-5.28364e-07
-2.74465e-08
-5.40072e-07
-1.46596e-08
-5.5104e-07
3.61622e-09
-5.49404e-07
1.45577e-08
-5.28409e-07
2.38736e-08
-4.91339e-07
2.97761e-08
-4.42488e-07
2.38682e-08
1.51026e-08
-3.84205e-07
-6.1784e-07
-4.54135e-08
6.19459e-07
-6.09218e-07
-4.57627e-08
-5.977e-07
-3.89639e-08
-5.81966e-07
-3.03938e-08
-5.61284e-07
-1.70657e-08
-5.35745e-07
-1.09814e-08
-5.00994e-07
-1.08777e-08
-4.48712e-07
-2.25064e-08
-3.82355e-07
-4.24888e-08
-5.45519e-08
-3.127e-07
-6.60482e-07
-7.3376e-08
6.88445e-07
-6.21362e-07
-8.48834e-08
-5.77e-07
-8.33265e-08
-5.21658e-07
-8.57347e-08
-4.58171e-07
-8.05524e-08
-3.98653e-07
-7.04993e-08
-3.42535e-07
-6.6996e-08
-2.95962e-07
-6.9079e-08
-2.70215e-07
-6.82358e-08
-6.48283e-08
-2.59939e-07
-7.46735e-07
-1.08981e-07
7.82339e-07
-6.95555e-07
-1.36063e-07
-6.43965e-07
-1.34916e-07
-5.69947e-07
-1.59754e-07
-4.82379e-07
-1.68121e-07
-4.00558e-07
-1.52321e-07
-3.45688e-07
-1.21865e-07
-3.20431e-07
-9.43364e-08
-3.19307e-07
-6.9359e-08
-5.85749e-08
-3.25561e-07
-7.51795e-07
-1.47529e-07
7.90342e-07
-7.0884e-07
-1.79017e-07
-6.45526e-07
-1.9823e-07
-5.76996e-07
-2.28283e-07
-4.97136e-07
-2.47981e-07
-4.09203e-07
-2.40254e-07
-3.16053e-07
-2.15015e-07
-2.3933e-07
-1.7106e-07
-2.27014e-07
-8.1674e-08
-5.54776e-08
-2.30111e-07
-7.25821e-07
-1.13486e-07
6.91778e-07
-7.0334e-07
-2.01499e-07
-6.58137e-07
-2.43432e-07
-6.0888e-07
-2.77541e-07
-5.58429e-07
-2.98432e-07
-4.94288e-07
-3.04395e-07
-4.09601e-07
-2.99703e-07
-3.1588e-07
-2.64781e-07
-2.05963e-07
-1.91592e-07
-1.02938e-07
-1.58503e-07
-4.90434e-07
-4.68881e-08
4.23836e-07
-5.80517e-07
-1.11415e-07
-6.18694e-07
-2.05255e-07
-6.06978e-07
-2.89256e-07
-5.81937e-07
-3.23473e-07
-5.49787e-07
-3.36545e-07
-5.0631e-07
-3.43179e-07
-4.33093e-07
-3.37997e-07
-3.22551e-07
-3.02134e-07
-2.03901e-07
-2.21588e-07
-3.59285e-07
-3.62624e-08
3.48659e-07
-4.12074e-07
-5.86265e-08
-4.88413e-07
-1.28917e-07
-5.45572e-07
-2.32097e-07
-5.70002e-07
-2.99044e-07
-5.773e-07
-3.29247e-07
-5.74146e-07
-3.46333e-07
-5.51954e-07
-3.6019e-07
-4.94033e-07
-3.60054e-07
-3.18009e-07
-3.79925e-07
-3.35243e-07
-3.48734e-08
3.33854e-07
-3.4799e-07
-4.5879e-08
-3.92988e-07
-8.39189e-08
-4.62691e-07
-1.62394e-07
-5.23839e-07
-2.37897e-07
-5.71953e-07
-2.81133e-07
-5.99903e-07
-3.18383e-07
-6.01703e-07
-3.5839e-07
-5.74966e-07
-3.86791e-07
-3.95486e-07
-4.97489e-07
-2.8155e-07
-2.34712e-08
2.70149e-07
-2.83845e-07
-4.35853e-08
-3.00405e-07
-6.73587e-08
-3.49626e-07
-1.13174e-07
-4.30124e-07
-1.57398e-07
-5.1e-07
-2.01257e-07
-5.80404e-07
-2.47979e-07
-6.14001e-07
-3.24793e-07
-6.01617e-07
-3.99175e-07
-4.30875e-07
-5.66227e-07
-2.0399e-07
-4.71141e-08
2.27633e-07
-1.66451e-07
-8.11265e-08
-1.53641e-07
-8.01687e-08
-1.83318e-07
-8.34976e-08
-2.44052e-07
-9.66642e-08
-3.22576e-07
-1.22733e-07
-4.15826e-07
-1.54729e-07
-5.44627e-07
-1.95991e-07
-5.74961e-07
-3.6884e-07
-4.51593e-07
-5.54244e-07
-1.79015e-07
-7.9412e-08
2.11312e-07
-1.4107e-07
-1.19072e-07
-9.36776e-08
-1.27561e-07
-6.97348e-08
-1.0744e-07
-7.81258e-08
-8.82733e-08
-1.00471e-07
-1.00388e-07
-1.5032e-07
-1.0488e-07
-2.72958e-07
-7.33536e-08
-4.95654e-07
-1.46144e-07
-4.48923e-07
-4.98324e-07
-1.6387e-07
-1.15678e-07
2.00135e-07
-1.33498e-07
-1.49444e-07
-1.00411e-07
-1.60649e-07
-4.82753e-08
-1.59575e-07
-2.07573e-08
-1.15791e-07
3.48858e-09
-1.24634e-07
2.56443e-08
-1.27036e-07
2.36536e-08
-7.1363e-08
-1.83841e-07
6.13494e-08
-2.65351e-07
-3.67413e-07
-1.05885e-07
-1.10398e-07
1.00605e-07
-1.03715e-07
-1.51615e-07
-9.07056e-08
-1.73658e-07
-7.78912e-08
-1.7239e-07
-5.80109e-08
-1.35672e-07
-4.31036e-08
-1.39542e-07
-5.99274e-08
-1.10212e-07
-7.33418e-08
-5.79495e-08
-9.66399e-08
8.46468e-08
-1.08219e-07
-2.53772e-07
1.38533e-07
-5.31529e-08
-1.95778e-07
8.17248e-08
-9.48069e-08
2.66645e-08
-1.18598e-07
1.40716e-08
-1.59797e-07
8.5477e-09
-1.30148e-07
-1.37895e-08
-1.17205e-07
-3.68833e-08
-8.71186e-08
-1.78155e-08
-7.70178e-08
6.09508e-08
5.88122e-09
-6.62272e-08
1.89597e-08
3.93311e-07
-7.61155e-08
-3.70349e-07
3.71071e-07
-7.25683e-08
3.22013e-07
-6.95398e-08
2.54948e-07
-9.27332e-08
2.01774e-07
-7.69738e-08
1.48244e-07
-6.36752e-08
1.10234e-07
-4.91098e-08
7.42139e-08
-4.09986e-08
1.08856e-07
-2.87607e-08
-5.55327e-08
9.81613e-08
3.91669e-07
-9.68118e-08
-3.70973e-07
3.86747e-07
-6.76461e-08
3.9086e-07
-7.36524e-08
3.66295e-07
-6.81682e-08
2.93384e-07
-4.06318e-09
2.28444e-07
1.26564e-09
2.1025e-07
-3.09159e-08
1.88072e-07
-1.88196e-08
1.80817e-07
-2.15062e-08
-5.83082e-08
1.83592e-07
4.56234e-07
-8.88417e-08
-4.64204e-07
3.67981e-07
2.06074e-08
3.05161e-07
-1.08326e-08
2.76859e-07
-3.98667e-08
1.92546e-07
8.02504e-08
8.22848e-08
1.11526e-07
4.21012e-08
9.26829e-09
7.79941e-08
-5.47124e-08
1.35958e-07
-7.94698e-08
-1.2753e-07
2.0518e-07
4.7903e-07
-1.11279e-07
-4.56592e-07
4.84191e-07
1.54487e-08
4.2852e-07
4.48392e-08
3.23077e-07
6.55753e-08
2.58288e-07
1.45039e-07
2.02689e-07
1.67125e-07
1.66459e-07
4.54984e-08
1.87696e-07
-7.595e-08
2.3143e-07
-1.23205e-07
-1.75469e-07
2.79369e-07
2.86584e-07
-9.38759e-08
-3.03988e-07
2.99055e-07
2.97929e-09
2.82431e-07
6.1465e-08
2.43174e-07
1.04833e-07
2.45039e-07
1.43175e-07
2.86354e-07
1.25812e-07
2.98024e-07
3.38297e-08
2.58692e-07
-3.66168e-08
2.79594e-07
-1.44106e-07
-2.12813e-07
3.16939e-07
1.38867e-07
-4.67863e-08
-1.85958e-07
1.33792e-07
8.05317e-09
1.30016e-07
6.52396e-08
1.52443e-07
8.24054e-08
2.29576e-07
6.6041e-08
3.27142e-07
2.82451e-08
3.78903e-07
-1.7931e-08
4.03173e-07
-6.08852e-08
3.93393e-07
-1.34327e-07
-2.08933e-07
3.89513e-07
-2.40584e-08
2.81422e-08
-5.08696e-08
-2.36298e-08
7.63258e-09
1.94059e-08
2.22049e-08
9.60528e-08
5.76039e-09
1.86492e-07
-2.43977e-08
2.82214e-07
-6.74759e-08
3.24194e-07
-5.99116e-08
3.62422e-07
-9.91129e-08
3.68114e-07
-1.40018e-07
-2.34908e-07
3.9409e-07
1.84488e-08
4.47328e-08
-3.5039e-08
-1.56612e-08
4.17433e-08
3.90239e-09
2.64109e-09
5.73882e-08
-4.77249e-08
1.21178e-07
-8.81871e-08
1.5822e-07
-1.04517e-07
1.95437e-07
-9.71284e-08
2.24957e-07
-1.28633e-07
2.82553e-07
-1.97614e-07
-2.49251e-07
2.96896e-07
-7.41807e-09
5.50625e-08
-2.91132e-09
3.025e-08
4.07586e-09
1.20536e-07
-8.76449e-08
1.61644e-07
-8.88324e-08
2.18153e-07
-1.44696e-07
2.42368e-07
-1.28731e-07
2.47543e-07
-1.02303e-07
2.22596e-07
-1.03687e-07
2.14123e-07
-1.89141e-07
-2.52976e-07
2.17847e-07
-4.74604e-08
1.56287e-08
8.68946e-08
7.49552e-08
-1.18338e-07
1.75319e-07
-1.88008e-07
2.85487e-07
-1.99e-07
3.04683e-07
-1.63892e-07
2.73306e-07
-9.73544e-08
2.01033e-07
-3.00309e-08
1.35586e-07
-3.82394e-08
1.21844e-07
-1.75397e-07
-2.71762e-07
1.40631e-07
-3.62567e-09
-9.58683e-08
1.15123e-07
9.97375e-08
-2.217e-07
1.7791e-07
-2.6618e-07
2.28992e-07
-2.50081e-07
2.39275e-07
-1.74175e-07
2.01859e-07
-5.99384e-08
1.69371e-07
2.45686e-09
1.52432e-07
-2.12998e-08
1.39487e-07
-1.62452e-07
-2.13385e-07
8.11114e-08
1.28054e-08
-1.22238e-07
1.35647e-08
4.07573e-08
-2.49651e-07
6.51351e-08
-2.90558e-07
7.97525e-08
-2.64699e-07
9.77191e-08
-1.92142e-07
1.48139e-07
-1.10359e-07
2.25136e-07
-7.45394e-08
2.91458e-07
-8.76202e-08
2.71841e-07
-1.42835e-07
-1.53267e-07
2.11724e-07
7.14514e-08
-1.00786e-07
-9.29033e-08
2.56415e-08
-2.03841e-07
3.19431e-09
-2.68111e-07
1.65151e-08
-2.78019e-07
3.87591e-08
-2.14385e-07
1.08612e-07
-1.80212e-07
2.13527e-07
-1.79454e-07
3.028e-07
-1.76891e-07
3.31962e-07
-1.71996e-07
-1.72815e-07
3.51512e-07
1.35302e-07
-8.53467e-08
-1.50742e-07
1.02305e-07
-1.70843e-07
5.32176e-08
-2.19024e-07
3.70506e-08
-2.61852e-07
6.5714e-08
-2.43048e-07
1.06725e-07
-2.21222e-07
1.80721e-07
-2.5345e-07
2.64816e-07
-2.60986e-07
3.55621e-07
-2.628e-07
-2.58645e-07
4.41452e-07
1.63965e-07
-8.4329e-08
-1.64982e-07
1.4132e-07
-1.48196e-07
1.30086e-07
-2.07789e-07
1.21492e-07
-2.53258e-07
1.38342e-07
-2.59899e-07
1.86402e-07
-2.6928e-07
2.55043e-07
-3.22091e-07
3.66591e-07
-3.72533e-07
5.00792e-07
-3.97e-07
-3.484e-07
5.90546e-07
1.87619e-07
-8.39936e-08
-1.87955e-07
1.68978e-07
-1.29556e-07
1.67238e-07
-2.06049e-07
1.67632e-07
-2.53652e-07
2.0104e-07
-2.93306e-07
3.14436e-07
-3.82676e-07
4.66318e-07
-4.73972e-07
5.75124e-07
-4.81339e-07
6.17325e-07
-4.392e-07
-4.03504e-07
6.7243e-07
1.72521e-07
-9.61299e-08
-1.60384e-07
1.76503e-07
-1.33538e-07
1.77377e-07
-2.06924e-07
1.75851e-07
-2.52125e-07
2.74013e-07
-3.91469e-07
4.37518e-07
-5.46181e-07
5.37083e-07
-5.73537e-07
5.88849e-07
-5.33105e-07
6.41143e-07
-4.91495e-07
-4.03504e-07
6.41142e-07
1.16266e-07
-1.09031e-07
-1.03365e-07
1.32059e-07
-1.49331e-07
1.32526e-07
-2.0739e-07
1.39852e-07
-2.59451e-07
2.92198e-07
-5.43814e-07
4.07222e-07
-6.61204e-07
4.34949e-07
-6.01264e-07
4.14473e-07
-5.1263e-07
3.0113e-07
-3.78152e-07
-2.14587e-07
1.12213e-07
1.08458e-08
-1.10573e-07
-9.30376e-09
1.31511e-08
-1.51636e-07
-8.2693e-09
-1.8597e-07
5.37251e-08
-3.21446e-07
1.35197e-07
-6.25286e-07
1.34987e-07
-6.60994e-07
6.12648e-08
-5.27542e-07
-9.39731e-08
-3.57392e-07
-2.3767e-07
-2.34456e-07
-1.09975e-07
-3.42282e-07
-4.61117e-08
-1.42427e-07
7.7966e-08
-6.38029e-08
-1.33946e-07
-9.59272e-08
-1.53845e-07
7.31486e-09
-4.24688e-07
3.2059e-08
-6.5003e-07
1.43542e-08
-6.43288e-07
-5.8792e-08
-4.54396e-07
-1.89021e-07
-2.27163e-07
-2.4462e-07
-1.78857e-07
-7.18239e-08
-2.82771e-07
-6.12333e-08
-1.16565e-07
3.53706e-08
-7.28422e-08
-1.22338e-07
-7.65052e-08
-1.50182e-07
-1.22293e-08
-4.88964e-07
3.28135e-09
-6.65541e-07
1.78322e-08
-6.5784e-07
2.21316e-09
-4.38776e-07
-1.01373e-07
-1.23579e-07
-1.73734e-07
-1.06495e-07
-7.03276e-08
-1.7523e-07
-8.35098e-08
-1.31244e-07
9.81886e-08
-7.09672e-08
-1.3488e-07
-6.32451e-08
-1.57904e-07
-3.19196e-08
-5.20289e-07
-3.50608e-09
-6.93954e-07
1.37904e-08
-6.75137e-07
-9.13879e-09
-4.15847e-07
-7.66174e-08
-5.61001e-08
-1.39494e-07
-4.36188e-08
-4.40631e-08
-1.65758e-07
-1.26519e-07
-1.7211e-07
1.67386e-07
-6.4936e-08
-1.96463e-07
-2.13643e-08
-2.01475e-07
9.28931e-09
-5.50943e-07
1.88598e-08
-7.03524e-07
2.2928e-08
-6.79206e-07
-1.11535e-08
-3.81766e-07
-5.66882e-08
-1.05646e-08
-1.00848e-07
5.41102e-10
-3.09267e-09
-1.41818e-07
-1.29922e-07
-1.80842e-07
1.38654e-07
-1.07309e-07
-2.19076e-07
-3.24956e-08
-2.76287e-07
5.83735e-09
-5.89277e-07
1.89382e-08
-7.16625e-07
3.31839e-08
-6.93452e-07
-2.10666e-08
-3.27516e-07
-6.29927e-08
3.13621e-08
-1.05841e-07
4.33893e-08
3.73263e-08
-1.4626e-07
1.81485e-08
-1.46104e-07
-5.2886e-08
-4.86675e-09
-1.96062e-07
5.27183e-09
-2.86426e-07
-2.73003e-09
-5.81275e-07
-1.21175e-08
-7.07238e-07
-1.93035e-08
-6.86266e-07
-7.30172e-08
-2.73802e-07
-1.19567e-07
7.79121e-08
-1.60877e-07
8.46995e-08
7.43406e-08
-1.97891e-07
8.59348e-08
-9.74765e-08
-1.34563e-07
4.4844e-08
-1.54971e-07
1.90486e-08
-2.6063e-07
-1.53539e-08
-5.46872e-07
-3.67139e-08
-6.85879e-07
-5.97846e-08
-6.63195e-07
-5.06969e-08
-2.8289e-07
-1.25981e-07
1.53196e-07
-1.8279e-07
1.41508e-07
1.20846e-07
-2.29294e-07
1.16965e-07
-7.00993e-08
-1.44342e-07
1.07766e-07
-1.45772e-07
6.2649e-08
-2.15513e-07
1.84081e-08
-5.02631e-07
-1.27231e-08
-6.54749e-07
-2.48207e-08
-6.51098e-07
4.71585e-08
-3.54868e-07
-5.71954e-08
2.5755e-07
-1.17906e-07
2.02219e-07
2.11858e-07
-2.08919e-07
9.19539e-08
-7.16042e-08
-9.04487e-08
8.54973e-08
-1.39315e-07
6.53943e-08
-1.9541e-07
5.46943e-08
-4.91931e-07
5.07067e-08
-6.50761e-07
3.68089e-08
-6.37201e-07
1.18648e-07
-4.36707e-07
3.10328e-08
3.45166e-07
-7.29222e-08
3.06174e-07
2.96961e-07
-1.58025e-07
4.42057e-08
-1.11677e-07
-4.13283e-09
7.51518e-08
-1.70261e-07
6.50432e-08
-1.85302e-07
7.65129e-08
-5.03401e-07
8.60276e-08
-6.60276e-07
9.08391e-08
-6.42012e-07
1.36976e-07
-4.82844e-07
8.7172e-08
3.94971e-07
-7.10017e-08
4.64349e-07
3.84564e-07
-1.58604e-07
4.89418e-08
-1.39212e-07
-2.14069e-08
6.85036e-08
-1.89822e-07
6.55939e-08
-1.82393e-07
1.1099e-07
-5.48797e-07
1.17115e-07
-6.664e-07
1.20774e-07
-6.4567e-07
1.08843e-07
-4.70914e-07
8.97735e-08
4.1404e-07
-1.71969e-08
5.71317e-07
4.8453e-07
-1.17164e-07
7.77529e-08
-1.58797e-07
-5.81679e-08
8.47364e-08
-1.96807e-07
7.35134e-08
-1.7117e-07
1.14774e-07
-5.90058e-07
1.28466e-07
-6.80091e-07
1.3182e-07
-6.49024e-07
8.62834e-08
-4.25376e-07
8.33814e-08
4.16942e-07
4.45759e-08
6.10124e-07
5.5111e-07
-2.20029e-08
1.04908e-07
-1.76532e-07
-8.7172e-08
1.12346e-07
-2.04247e-07
7.89902e-08
-1.37814e-07
1.31007e-07
-6.42075e-07
1.28622e-07
-6.77706e-07
1.08217e-07
-6.28619e-07
2.82789e-08
-3.45438e-07
1.29976e-08
4.32222e-07
5.41802e-09
6.17701e-07
5.91605e-07
-3.50789e-08
6.87586e-08
-1.6476e-07
-8.0531e-08
2.99557e-08
-1.65443e-07
6.31539e-08
-1.7101e-07
6.25193e-08
-6.41439e-07
4.47723e-08
-6.59958e-07
1.87822e-08
-6.02629e-07
-5.02194e-08
-2.76435e-07
-5.32721e-08
4.35276e-07
-1.5547e-08
5.79977e-07
5.86655e-07
-1.05954e-08
-4.89552e-08
-5.8012e-08
-5.77934e-08
-1.86219e-07
-2.81806e-08
-6.93411e-08
-2.87888e-07
-6.12362e-08
-6.49545e-07
-6.50834e-08
-6.56111e-07
-6.39268e-08
-6.03786e-07
-7.83547e-08
-2.62008e-07
-1.1462e-08
3.68382e-07
3.54678e-09
5.64969e-07
5.72419e-07
1.77829e-08
-4.54913e-08
2.93268e-08
-4.18476e-08
-1.38951e-07
6.52809e-08
-1.17901e-07
-3.08937e-07
-1.39119e-07
-6.28326e-07
-1.51234e-07
-6.43996e-07
-1.55169e-07
-5.9985e-07
-1.02612e-07
-3.14566e-07
-2.32409e-08
2.89011e-07
1.64339e-08
5.25295e-07
5.00924e-07
8.79294e-08
-2.70565e-08
8.4723e-08
-2.83398e-08
-8.90634e-08
1.27287e-07
-1.71984e-07
-2.2602e-07
-1.73147e-07
-6.27163e-07
-1.88983e-07
-6.2816e-07
-1.97893e-07
-5.90941e-07
-1.26734e-07
-3.85725e-07
-3.25389e-08
1.94816e-07
1.13721e-07
3.79035e-07
3.93277e-07
2.21368e-07
-6.7412e-08
1.62424e-07
-1.0294e-08
-1.15668e-07
1.75543e-07
-9.0149e-08
-2.51537e-07
-1.19587e-07
-5.97725e-07
-1.6893e-07
-5.78818e-07
-2.01454e-07
-5.58417e-07
-1.35653e-07
-4.51525e-07
-2.59628e-08
8.51242e-08
1.84904e-07
1.68168e-07
2.41451e-07
3.36729e-07
5.63585e-08
2.28365e-07
-1.22289e-07
-1.06458e-07
3.38362e-07
-5.91368e-08
-2.98858e-07
-8.0077e-08
-5.76783e-07
-1.0077e-07
-5.58125e-07
-1.34303e-07
-5.24884e-07
-1.00471e-07
-4.85357e-07
8.14159e-08
-9.67628e-08
1.33506e-07
1.16075e-07
1.03016e-07
2.71941e-07
1.15849e-07
2.92163e-07
-1.79658e-07
-2.24901e-08
4.76706e-07
6.04209e-08
-3.81772e-07
-7.38823e-10
-5.15625e-07
-3.44111e-08
-5.24454e-07
-4.49716e-08
-5.14324e-07
-6.68029e-09
-5.23648e-07
1.4449e-07
-2.47934e-07
5.55084e-08
2.05056e-07
2.01234e-08
1.38401e-07
-6.57384e-09
3.46316e-07
-4.75746e-08
4.93593e-09
4.65226e-07
6.42652e-08
-4.41095e-07
3.8333e-08
-4.89691e-07
-1.27541e-09
-4.84845e-07
-3.12745e-08
-4.84326e-07
-5.40429e-08
-5.0088e-07
1.17704e-07
-4.1968e-07
7.44414e-08
2.48319e-07
-5.44791e-08
1.49042e-07
-1.08301e-08
1.96154e-07
1.61006e-07
1.05929e-07
3.48435e-07
7.8827e-08
-4.13988e-07
3.58127e-08
-4.46677e-07
1.381e-08
-4.62843e-07
-6.02297e-09
-4.64494e-07
-4.47606e-08
-4.62143e-07
2.07149e-10
-4.64649e-07
1.02996e-07
1.45524e-07
3.68166e-08
1.17174e-08
-1.9377e-07
9.27386e-08
2.97202e-07
1.43024e-07
1.16255e-08
1.16531e-07
-3.87484e-07
6.86088e-08
-3.98755e-07
8.71656e-09
-4.0295e-07
-4.90848e-08
-4.06692e-07
-9.8944e-08
-4.12284e-07
-1.73109e-07
-3.90486e-07
3.43784e-08
-6.19529e-08
-6.98608e-08
1.41033e-07
-1.08847e-07
8.38857e-08
1.17682e-07
1.33832e-07
-2.31085e-07
8.76783e-08
-3.41332e-07
5.17509e-08
-3.62828e-07
1.93123e-08
-3.70512e-07
-1.85894e-08
-3.68791e-07
-7.80237e-08
-3.5285e-07
-1.28922e-07
-3.39587e-07
1.03455e-07
-2.94325e-07
-1.32806e-07
1.66418e-07
8.05432e-08
-1.68466e-08
2.0225e-08
1.36562e-07
-2.87108e-07
9.43323e-08
-2.99102e-07
3.98964e-08
-3.08392e-07
-1.57288e-08
-3.14887e-07
-6.70659e-08
-3.17454e-07
-1.03068e-07
-3.16847e-07
-1.3538e-07
-3.07275e-07
-1.49902e-07
-2.79808e-07
-1.36099e-07
-1.46626e-07
2.26913e-07
-1.73621e-07
-7.01478e-08
1.59641e-07
-2.19836e-07
1.16695e-07
-2.56156e-07
7.5922e-08
-2.67619e-07
3.01779e-08
-2.69142e-07
-2.07352e-08
-2.66541e-07
-7.93083e-08
-2.58275e-07
-1.39293e-07
-2.47291e-07
-1.96062e-07
-2.23038e-07
-2.15208e-07
-1.16961e-07
1.30281e-07
-1.88381e-07
1.01812e-07
6.11467e-08
2.11922e-08
-1.29601e-08
-4.30746e-08
-6.80179e-08
-9.49257e-08
-1.21884e-07
-2.0835e-07
-9.24412e-09
1.41982e-08
-2.78024e-08
1.85584e-08
-4.72867e-08
1.94845e-08
-5.87326e-08
1.1446e-08
-6.27267e-08
3.99422e-09
-6.24755e-08
-2.51158e-10
-6.03872e-08
-2.08837e-09
-5.90353e-08
-1.35195e-09
-6.54142e-08
6.37873e-09
-8.17809e-08
1.63666e-08
-9.90081e-08
1.7227e-08
-1.00325e-07
1.3169e-09
-1.01136e-07
8.11076e-10
-1.07693e-07
6.55622e-09
-1.1525e-07
7.55695e-09
-1.20409e-07
5.15935e-09
-1.25953e-07
5.5441e-09
-1.34389e-07
8.43546e-09
-1.43667e-07
9.27806e-09
-1.50286e-07
6.61911e-09
-1.54889e-07
4.60265e-09
-1.59978e-07
5.08885e-09
-1.62158e-07
2.18004e-09
-1.58939e-07
-3.21945e-09
-1.52231e-07
-6.70848e-09
-1.44778e-07
-7.45341e-09
-1.35958e-07
-8.81999e-09
-1.29023e-07
-6.93504e-09
-1.27184e-07
-1.8396e-09
-1.27531e-07
3.46821e-10
-1.24575e-07
-2.95578e-09
-1.17679e-07
-6.8959e-09
-1.12606e-07
-5.07252e-09
-1.04103e-07
-8.50342e-09
-9.45441e-08
-9.55845e-09
-7.9387e-08
-1.51569e-08
-5.77353e-08
-2.16516e-08
-2.94603e-08
-2.8275e-08
-4.77662e-09
-2.46836e-08
-4.77651e-09
-5.40057e-08
4.34883e-08
-8.03843e-08
4.49373e-08
-9.62267e-08
3.53271e-08
-1.07492e-07
2.27109e-08
-1.16033e-07
1.25357e-08
-1.21897e-07
5.61243e-09
-1.25486e-07
1.50136e-09
-1.2491e-07
-1.92887e-09
-1.12718e-07
-5.81337e-09
-9.11424e-08
-5.20906e-09
-6.774e-08
-6.17567e-09
-6.69611e-08
5.37815e-10
-7.67336e-08
1.05834e-08
-9.23398e-08
2.21623e-08
-1.13001e-07
2.82177e-08
-1.29519e-07
2.1678e-08
-1.40818e-07
1.6843e-08
-1.44921e-07
1.25386e-08
-1.47639e-07
1.1995e-08
-1.51285e-07
1.0265e-08
-1.5473e-07
8.04683e-09
-1.56581e-07
6.93973e-09
-1.55361e-07
9.59802e-10
-1.45341e-07
-1.324e-08
-1.33505e-07
-1.85457e-08
-1.22155e-07
-1.88039e-08
-1.07604e-07
-2.33705e-08
-9.29161e-08
-2.16234e-08
-8.24095e-08
-1.23462e-08
-7.72911e-08
-4.7714e-09
-8.1033e-08
7.86207e-10
-8.40886e-08
-3.84006e-09
-9.37156e-08
4.55465e-09
-8.80864e-08
-1.41324e-08
-8.32352e-08
-1.44094e-08
-8.20532e-08
-1.63386e-08
-6.99548e-08
-3.37498e-08
-4.66542e-08
-5.15754e-08
-1.89045e-08
-5.2433e-08
-2.36811e-08
-6.19104e-08
6.33573e-08
-7.86904e-08
6.17176e-08
-9.07467e-08
4.73835e-08
-9.97929e-08
3.17573e-08
-1.04301e-07
1.70437e-08
-1.04326e-07
5.63754e-09
-1.02511e-07
-3.13336e-10
-1.02493e-07
-1.9474e-09
-1.05994e-07
-2.31246e-09
-1.00666e-07
-1.05375e-08
-9.89011e-08
-7.94033e-09
-1.05742e-07
7.37891e-09
-1.05746e-07
1.05872e-08
-9.45585e-08
1.09745e-08
-7.58451e-08
9.50419e-09
-7.13693e-08
1.7202e-08
-7.87864e-08
2.426e-08
-9.54758e-08
2.92277e-08
-1.08814e-07
2.53329e-08
-1.11551e-07
1.30018e-08
-1.07823e-07
4.3187e-09
-1.04147e-07
3.26313e-09
-1.02251e-07
-9.36411e-10
-1.00739e-07
-1.47524e-08
-9.41166e-08
-2.51687e-08
-8.43059e-08
-2.86148e-08
-7.37244e-08
-3.3952e-08
-5.87914e-08
-3.65565e-08
-3.3823e-08
-3.73145e-08
-7.51761e-09
-3.10767e-08
1.60848e-08
-2.2816e-08
3.12573e-08
-1.90124e-08
2.17351e-08
1.40771e-08
5.43834e-09
2.16466e-09
-4.94548e-09
-4.02533e-09
-1.45692e-08
-6.71464e-09
-2.44588e-08
-2.38601e-08
-2.65297e-08
-4.95044e-08
-1.66359e-08
-6.23266e-08
-4.03168e-08
-3.5708e-08
6.95905e-08
-4.16089e-08
6.76186e-08
-4.50286e-08
5.08033e-08
-4.63551e-08
3.30839e-08
-4.08331e-08
1.15218e-08
-3.20155e-08
-3.17993e-09
-2.04968e-08
-1.1832e-08
-1.29284e-08
-9.51583e-09
-1.80356e-08
2.79474e-09
-3.50101e-08
6.43701e-09
-5.51151e-08
1.21646e-08
-6.95377e-08
2.18015e-08
-7.61319e-08
1.71813e-08
-7.8919e-08
1.37615e-08
-7.48891e-08
5.47416e-09
-6.36382e-08
5.95095e-09
-6.18221e-08
2.24437e-08
-7.0353e-08
3.77583e-08
-8.24733e-08
3.7453e-08
-9.29056e-08
2.34338e-08
-9.19331e-08
3.34593e-09
-8.11765e-08
-7.4937e-09
-6.69468e-08
-1.51663e-08
-6.2497e-08
-1.92023e-08
-7.26072e-08
-1.50584e-08
-8.31182e-08
-1.81038e-08
-8.35907e-08
-3.34793e-08
-7.46398e-08
-4.55072e-08
-6.24066e-08
-4.95476e-08
-4.47135e-08
-4.87696e-08
-2.29482e-08
-4.45812e-08
-5.79426e-09
-3.61662e-08
1.39488e-08
-5.66591e-09
1.62133e-08
-9.9795e-11
2.17148e-08
-9.52676e-09
2.88984e-08
-1.38983e-08
2.5993e-08
-2.09547e-08
1.90776e-08
-4.25888e-08
7.67193e-09
-5.09209e-08
-3.26449e-08
-9.39416e-09
6.28294e-08
-7.92738e-10
5.90173e-08
4.52336e-09
4.54872e-08
7.59948e-09
3.00079e-08
1.54304e-08
3.69093e-09
2.30794e-08
-1.08288e-08
3.28429e-08
-2.15953e-08
4.15923e-08
-1.82652e-08
4.84496e-08
-4.06243e-09
3.90225e-08
1.58641e-08
2.69689e-08
2.42182e-08
1.30738e-08
3.56965e-08
-4.15768e-09
3.44127e-08
-2.97512e-08
3.93548e-08
-5.3968e-08
2.96909e-08
-6.85569e-08
2.05396e-08
-7.08336e-08
2.47203e-08
-6.65944e-08
3.3519e-08
-6.56579e-08
3.65163e-08
-7.01705e-08
2.79464e-08
-7.75849e-08
1.07604e-08
-7.79568e-08
-7.12183e-09
-6.29955e-08
-3.01274e-08
-6.16727e-08
-2.0525e-08
-7.04241e-08
-6.30694e-09
-8.11681e-08
-7.35978e-09
-8.43282e-08
-3.03192e-08
-7.70067e-08
-5.28286e-08
-6.32676e-08
-6.32867e-08
-4.89387e-08
-6.30985e-08
-3.62304e-08
-5.72895e-08
-2.51254e-08
-4.72712e-08
7.90697e-10
-3.15821e-08
1.89967e-08
-1.83059e-08
3.03782e-08
-2.09082e-08
3.66798e-08
-2.02e-08
4.27303e-08
-2.70052e-08
3.70039e-08
-3.68623e-08
2.10508e-08
-3.49678e-08
-1.15943e-08
1.42171e-08
4.98715e-08
3.18294e-08
4.14049e-08
4.6192e-08
3.11246e-08
6.45567e-08
1.16431e-08
8.53948e-08
-1.71471e-08
1.06214e-07
-3.16477e-08
1.1899e-07
-3.43717e-08
1.23256e-07
-2.25304e-08
1.23972e-07
-4.77867e-09
1.19193e-07
2.06436e-08
1.09076e-07
3.43346e-08
9.52091e-08
4.95637e-08
7.54e-08
5.42218e-08
5.5311e-08
5.94437e-08
2.44169e-08
6.05849e-08
-1.24238e-08
5.73802e-08
-3.15379e-08
4.38343e-08
-3.57771e-08
3.77581e-08
-3.6356e-08
3.70953e-08
-3.20169e-08
2.36073e-08
-3.54091e-08
1.41527e-08
-5.43369e-08
1.1806e-08
-7.63212e-08
-8.14296e-09
-7.73243e-08
-1.95218e-08
-6.48083e-08
-1.88229e-08
-5.14208e-08
-2.07473e-08
-4.50751e-08
-3.66649e-08
-4.26856e-08
-5.52181e-08
-3.70983e-08
-6.88739e-08
-2.84135e-08
-7.17832e-08
-1.77805e-08
-6.79225e-08
-5.08937e-09
-5.99623e-08
1.3294e-08
-4.99654e-08
3.17268e-08
-3.67386e-08
4.34937e-08
-3.26751e-08
5.10976e-08
-2.78039e-08
5.10549e-08
-2.69624e-08
4.04739e-08
-2.62814e-08
2.67004e-08
-2.11943e-08
1.51059e-08
2.73414e-08
2.87263e-08
5.46303e-08
1.41158e-08
8.15245e-08
4.23027e-09
1.18656e-07
-2.54887e-08
1.51483e-07
-4.99739e-08
1.75238e-07
-5.54024e-08
1.81929e-07
-4.1063e-08
1.79315e-07
-1.99153e-08
1.7842e-07
-3.88425e-09
1.64665e-07
3.43996e-08
1.36962e-07
6.20373e-08
1.10711e-07
7.58147e-08
8.83162e-08
7.66166e-08
6.2332e-08
8.54278e-08
3.73158e-08
8.5601e-08
1.36592e-08
8.10368e-08
-1.00311e-09
5.84965e-08
-8.26145e-09
4.50165e-08
-7.13979e-09
3.59737e-08
-7.24448e-09
2.37121e-08
-9.0833e-09
1.59917e-08
-1.6393e-08
1.91159e-08
-3.63595e-08
1.18238e-08
-4.46246e-08
-1.12566e-08
-3.477e-08
-2.86774e-08
-2.53268e-08
-3.01904e-08
-2.06539e-08
-4.13377e-08
-2.43503e-08
-5.15216e-08
-2.06958e-08
-7.25284e-08
-1.11643e-08
-8.13147e-08
-9.53746e-10
-7.81331e-08
7.37415e-09
-6.82902e-08
1.60957e-08
-5.86869e-08
2.95149e-08
-5.01576e-08
3.7077e-08
-4.02372e-08
4.24797e-08
-3.32065e-08
4.41218e-08
-2.86044e-08
3.82623e-08
-2.04221e-08
2.17422e-08
-4.67445e-09
3.68481e-08
2.46288e-08
7.92775e-09
5.96061e-08
-2.08616e-08
9.88889e-08
-3.50526e-08
1.39779e-07
-6.63791e-08
1.76562e-07
-8.67569e-08
2.0385e-07
-8.26894e-08
1.92668e-07
-2.98812e-08
1.50367e-07
2.23855e-08
1.11806e-07
3.4677e-08
8.66474e-08
5.95588e-08
7.73077e-08
7.13771e-08
5.79513e-08
9.51714e-08
3.1323e-08
1.03245e-07
1.48906e-08
1.0186e-07
-1.23415e-09
1.01726e-07
-8.46388e-09
8.82666e-08
-1.23352e-08
6.23679e-08
-1.58399e-08
4.85213e-08
-1.82201e-08
3.8354e-08
-2.07456e-08
2.62378e-08
-1.84614e-08
1.37076e-08
-2.08441e-08
2.14987e-08
-2.01849e-08
1.11647e-08
-2.55259e-08
-5.91551e-09
-2.03498e-08
-3.38535e-08
-2.15594e-08
-2.89807e-08
-2.13962e-08
-4.15009e-08
-2.21209e-08
-5.07969e-08
-1.64433e-08
-7.8206e-08
-5.47661e-09
-9.22814e-08
1.91309e-09
-8.55228e-08
3.56927e-09
-6.99463e-08
2.53691e-09
-5.76546e-08
9.23408e-10
-4.85441e-08
-1.91087e-09
-3.74029e-08
-4.96099e-09
-3.01564e-08
-9.91077e-09
-2.36547e-08
-1.59667e-08
-1.43664e-08
-1.61453e-08
-4.49606e-09
2.07029e-08
-1.20785e-10
-1.79313e-08
2.94313e-08
-5.04138e-08
5.65401e-08
-6.21614e-08
6.4107e-08
-7.39459e-08
5.69926e-08
-7.96423e-08
2.48783e-08
-5.05748e-08
-3.0568e-08
2.55654e-08
-7.84016e-08
7.02194e-08
-1.19663e-07
7.59389e-08
-1.17841e-07
5.77366e-08
-1.04219e-07
5.77558e-08
-8.73372e-08
7.82895e-08
-7.15579e-08
8.74658e-08
-5.73498e-08
8.76524e-08
-4.73461e-08
9.17222e-08
-3.6898e-08
7.78187e-08
-3.70177e-08
6.24877e-08
-4.04171e-08
5.19208e-08
-4.3939e-08
4.1876e-08
-5.08983e-08
3.31973e-08
-5.11734e-08
1.39829e-08
-3.28319e-08
3.15732e-09
-1.71801e-08
-4.487e-09
-1.67692e-08
-6.32641e-09
-2.89714e-08
-2.16513e-08
-3.2775e-08
-2.5177e-08
-4.39392e-08
-3.03367e-08
-4.90385e-08
-4.56977e-08
-4.18002e-08
-8.54444e-08
-2.75126e-08
-1.06569e-07
-2.28846e-08
-9.01508e-08
-3.26925e-08
-6.01384e-08
-4.89997e-08
-4.13473e-08
-5.93201e-08
-3.82237e-08
-7.12558e-08
-2.54671e-08
-8.14777e-08
-1.99347e-08
-8.2927e-08
-2.22057e-08
-7.08954e-08
-2.63981e-08
-4.31186e-08
-3.22728e-08
-2.24157e-08
-4.35128e-09
-3.47422e-08
-1.97191e-09
-5.2793e-08
-2.68225e-09
-6.14509e-08
-1.32526e-08
-6.33754e-08
-4.48267e-08
-4.80679e-08
-1.00808e-07
5.40717e-09
-1.34509e-07
5.92666e-08
-1.45675e-07
8.13852e-08
-1.57063e-07
8.73276e-08
-1.56188e-07
5.68622e-08
-1.50948e-07
5.25161e-08
-1.35424e-07
6.27652e-08
-1.1845e-07
7.04921e-08
-1.04994e-07
7.41962e-08
-9.37984e-08
8.05272e-08
-9.22454e-08
7.62658e-08
-1.02177e-07
7.24199e-08
-1.10612e-07
6.03553e-08
-1.13555e-07
4.48193e-08
-1.07319e-07
2.69618e-08
-1.03723e-07
1.03865e-08
-9.09414e-08
-9.62376e-09
-7.97412e-08
-1.56871e-08
-7.04432e-08
-1.56243e-08
-7.84526e-08
-1.36418e-08
-8.23815e-08
-2.12481e-08
-7.74432e-08
-3.52749e-08
-6.63762e-08
-5.67647e-08
-6.67675e-08
-8.50531e-08
-7.88369e-08
-9.44997e-08
-7.64572e-08
-9.25305e-08
-6.74017e-08
-6.9194e-08
-5.81459e-08
-5.06031e-08
-6.8511e-08
-2.78588e-08
-7.75449e-08
-1.64333e-08
-7.97678e-08
-1.77119e-08
-6.80921e-08
-3.38814e-08
-4.57946e-08
-4.86956e-08
-2.90371e-08
-4.90302e-08
-5.14529e-08
-1.37522e-08
-4.21452e-08
-1.65096e-08
-5.00354e-08
-2.85611e-08
-4.93992e-08
-5.08233e-08
-4.1113e-08
-8.4527e-08
-1.43639e-08
-1.2273e-07
4.36102e-08
-1.34993e-07
7.15301e-08
-1.35178e-07
8.15699e-08
-1.37485e-07
8.96348e-08
-1.49704e-07
6.90814e-08
-1.63101e-07
6.5914e-08
-1.73643e-07
7.33075e-08
-1.75108e-07
7.19567e-08
-1.78284e-07
7.73726e-08
-1.84781e-07
8.70247e-08
-1.99809e-07
9.12938e-08
-2.09656e-07
8.22671e-08
-2.07284e-07
5.79839e-08
-1.94821e-07
3.23556e-08
-1.85296e-07
1.74376e-08
-1.79507e-07
4.59778e-09
-1.76174e-07
-1.29573e-08
-1.68943e-07
-2.29176e-08
-1.57142e-07
-2.74256e-08
-1.38647e-07
-3.21367e-08
-1.21478e-07
-3.84176e-08
-1.04661e-07
-5.20919e-08
-9.2835e-08
-6.85905e-08
-9.86604e-08
-7.92279e-08
-1.1524e-07
-7.79198e-08
-1.17553e-07
-9.02184e-08
-1.01362e-07
-8.5385e-08
-7.5554e-08
-7.64112e-08
-4.5249e-08
-5.81641e-08
-1.80364e-08
-4.36461e-08
8.39388e-09
-4.41422e-08
1.65243e-08
-4.20117e-08
9.62544e-09
-4.17967e-08
4.83051e-09
-4.42351e-08
-4.66224e-08
-1.74376e-08
-4.96634e-08
-1.61563e-08
-5.13166e-08
-3.03042e-08
-3.52512e-08
-6.57543e-08
-5.66286e-09
-1.00905e-07
2.07867e-08
-1.151e-07
5.78051e-08
-1.28709e-07
8.51393e-08
-1.50029e-07
1.0289e-07
-1.50671e-07
9.02777e-08
-1.70408e-07
8.8818e-08
-2.08423e-07
1.03929e-07
-2.45233e-07
1.10117e-07
-2.67919e-07
9.46428e-08
-2.82746e-07
9.22e-08
-2.86512e-07
9.07911e-08
-2.74739e-07
7.95208e-08
-2.54557e-07
6.20853e-08
-2.37861e-07
4.12879e-08
-2.30913e-07
2.54086e-08
-2.28195e-07
1.47194e-08
-2.23772e-07
1.74698e-10
-2.19406e-07
-1.73235e-08
-2.12099e-07
-3.02242e-08
-2.02371e-07
-3.71532e-08
-1.91794e-07
-4.27141e-08
-1.83106e-07
-4.71054e-08
-1.77457e-07
-5.77418e-08
-1.7355e-07
-7.24974e-08
-1.67452e-07
-8.53264e-08
-1.52076e-07
-9.3296e-08
-1.43285e-07
-9.90095e-08
-1.23092e-07
-1.05578e-07
-9.33135e-08
-1.0619e-07
-5.44581e-08
-9.70197e-08
-1.35445e-08
-8.45599e-08
2.70168e-08
-8.47037e-08
5.08169e-08
-6.58118e-08
5.90647e-08
-5.00445e-08
4.28836e-08
-2.80541e-08
-3.73891e-09
-6.4696e-08
-3.51807e-08
-9.69793e-08
-1.90333e-08
-1.4193e-07
9.69887e-09
-1.78082e-07
3.04892e-08
-1.98713e-07
4.14179e-08
-2.04102e-07
6.3194e-08
-2.11675e-07
9.27118e-08
-2.10977e-07
1.02191e-07
-2.34649e-07
1.1395e-07
-2.71557e-07
1.25726e-07
-2.94141e-07
1.26514e-07
-3.01343e-07
1.17319e-07
-3.04075e-07
9.73745e-08
-3.04461e-07
9.25862e-08
-2.98407e-07
8.47375e-08
-2.83071e-07
6.41848e-08
-2.66347e-07
4.53616e-08
-2.59681e-07
3.46218e-08
-2.59832e-07
2.55596e-08
-2.55158e-07
1.00453e-08
-2.45612e-07
-9.37064e-09
-2.39302e-07
-2.36335e-08
-2.31889e-07
-3.76375e-08
-2.20705e-07
-4.83373e-08
-2.11753e-07
-5.16653e-08
-2.0759e-07
-5.1269e-08
-2.08323e-07
-5.70088e-08
-2.05005e-07
-7.58153e-08
-1.94095e-07
-9.62366e-08
-1.73492e-07
-1.13898e-07
-1.47196e-07
-1.25306e-07
-1.22734e-07
-1.3004e-07
-9.99476e-08
-1.28976e-07
-7.30004e-08
-1.23967e-07
-3.85148e-08
-1.19045e-07
-6.68108e-09
-1.16537e-07
2.5218e-08
-9.7711e-08
5.74566e-08
-8.22833e-08
5.47922e-08
-2.53899e-08
5.10533e-08
-1.1598e-07
-5.18156e-10
-1.67853e-07
3.28398e-08
-2.12329e-07
5.41748e-08
-2.33891e-07
5.20509e-08
-2.4924e-07
5.67663e-08
-2.66548e-07
8.05019e-08
-2.77622e-07
1.03786e-07
-2.90363e-07
1.14932e-07
-3.06139e-07
1.29727e-07
-3.17348e-07
1.36935e-07
-3.25787e-07
1.34953e-07
-3.28206e-07
1.19738e-07
-3.31066e-07
1.00235e-07
-3.28017e-07
8.95373e-08
-3.17498e-07
7.4218e-08
-2.95874e-07
4.25607e-08
-2.75608e-07
2.50964e-08
-2.62959e-07
2.19726e-08
-2.52882e-07
1.54829e-08
-2.45235e-07
2.39846e-09
-2.42366e-07
-1.22401e-08
-2.38169e-07
-2.78295e-08
-2.2808e-07
-4.77271e-08
-2.10123e-07
-6.62933e-08
-1.92797e-07
-6.89914e-08
-1.89331e-07
-5.47352e-08
-1.99277e-07
-4.70623e-08
-2.10361e-07
-6.47311e-08
-2.10681e-07
-9.5917e-08
-2.00156e-07
-1.24423e-07
-1.74589e-07
-1.50872e-07
-1.45086e-07
-1.59543e-07
-1.15808e-07
-1.58255e-07
-8.76905e-08
-1.52084e-07
-6.09662e-08
-1.4577e-07
-3.67676e-08
-1.40736e-07
-5.45911e-09
-1.2902e-07
1.69039e-08
-1.04646e-07
1.41804e-08
-2.26665e-08
6.52336e-08
-1.3556e-07
3.14412e-08
-1.76582e-07
7.3861e-08
-2.137e-07
9.12924e-08
-2.34648e-07
7.29988e-08
-2.49782e-07
7.18996e-08
-2.6112e-07
9.18397e-08
-2.73126e-07
1.15792e-07
-2.87216e-07
1.29021e-07
-2.96968e-07
1.39479e-07
-3.03172e-07
1.43138e-07
-3.09486e-07
1.41267e-07
-3.16953e-07
1.27205e-07
-3.22292e-07
1.05574e-07
-3.1409e-07
8.13353e-08
-2.91294e-07
5.14217e-08
-2.64936e-07
1.62024e-08
-2.3486e-07
-4.9793e-09
-2.02808e-07
-1.00794e-08
-1.66369e-07
-2.09556e-08
-1.43879e-07
-2.00914e-08
-1.40727e-07
-1.53926e-08
-1.56772e-07
-1.17834e-08
-1.82422e-07
-2.20775e-08
-1.7215e-07
-7.65647e-08
-1.43792e-07
-9.7349e-08
-1.25276e-07
-7.32515e-08
-1.48056e-07
-2.42817e-08
-1.83954e-07
-2.88338e-08
-2.11307e-07
-6.85634e-08
-2.12775e-07
-1.22955e-07
-2.0083e-07
-1.62818e-07
-1.72589e-07
-1.87784e-07
-1.37451e-07
-1.93393e-07
-1.0333e-07
-1.86205e-07
-7.72723e-08
-1.71827e-07
-5.92114e-08
-1.58797e-07
-4.346e-08
-1.44771e-07
-2.59762e-08
-1.2213e-07
-1.65198e-08
-3.21226e-08
4.87138e-08
-1.2876e-07
5.16332e-08
-1.43549e-07
8.86499e-08
-1.73115e-07
1.20858e-07
-2.09638e-07
1.09521e-07
-2.32458e-07
9.47185e-08
-2.43498e-07
1.0288e-07
-2.50778e-07
1.23071e-07
-2.61387e-07
1.3963e-07
-2.67993e-07
1.46084e-07
-2.75952e-07
1.51098e-07
-2.81508e-07
1.46822e-07
-2.84846e-07
1.30543e-07
-2.83991e-07
1.04719e-07
-2.70714e-07
6.80579e-08
-2.40197e-07
2.09054e-08
-2.13627e-07
-1.03683e-08
-1.85682e-07
-3.29236e-08
-1.54173e-07
-4.1589e-08
-1.21425e-07
-5.37029e-08
-7.99541e-08
-6.15625e-08
-4.15391e-08
-5.38075e-08
-2.76788e-08
-2.56435e-08
-7.20673e-08
2.23112e-08
-1.1579e-07
-3.28422e-08
-1.14256e-07
-9.88824e-08
-9.09809e-08
-9.65267e-08
-8.92461e-08
-2.60164e-08
-1.06967e-07
-1.11133e-08
-1.42966e-07
-3.2564e-08
-1.66514e-07
-9.94075e-08
-1.70731e-07
-1.586e-07
-1.5104e-07
-2.07474e-07
-1.23561e-07
-2.20872e-07
-9.91414e-08
-2.10624e-07
-8.11784e-08
-1.89791e-07
-6.63083e-08
-1.73667e-07
-5.6642e-08
-1.54437e-07
-4.70021e-08
-1.3177e-07
-1.90728e-08
-6.00518e-08
2.96412e-08
-1.12021e-07
6.6197e-08
-1.07816e-07
8.44447e-08
-1.0657e-07
1.19612e-07
-1.34342e-07
1.37293e-07
-1.72611e-07
1.32988e-07
-1.95782e-07
1.26051e-07
-1.98844e-07
1.26133e-07
-2.01684e-07
1.42469e-07
-2.08225e-07
1.52626e-07
-2.09152e-07
1.52025e-07
-2.12215e-07
1.49885e-07
-2.16147e-07
1.34475e-07
-2.26558e-07
1.1513e-07
-2.3514e-07
7.66399e-08
-2.27211e-07
1.29761e-08
-2.09265e-07
-2.83147e-08
-1.88807e-07
-5.33815e-08
-1.65652e-07
-6.47439e-08
-1.4544e-07
-7.39141e-08
-1.20692e-07
-8.63111e-08
-8.78369e-08
-8.66621e-08
-6.41088e-08
-4.93715e-08
-5.39937e-08
1.21962e-08
-7.9217e-08
-7.61883e-09
-9.85289e-08
-7.95706e-08
-1.02592e-07
-9.24639e-08
-7.39685e-08
-5.46397e-08
-4.83042e-08
-3.67776e-08
-3.84761e-08
-4.2392e-08
-5.19652e-08
-8.59184e-08
-8.05986e-08
-1.29967e-07
-8.50199e-08
-2.03053e-07
-7.25814e-08
-2.33311e-07
-6.21392e-08
-2.21067e-07
-5.79816e-08
-1.93948e-07
-5.29309e-08
-1.78718e-07
-5.19502e-08
-1.55418e-07
-4.88777e-08
-1.34842e-07
-2.46289e-08
-8.43006e-08
5.01262e-09
-9.08511e-08
7.53308e-08
-8.9642e-08
8.32356e-08
-7.105e-08
1.0102e-07
-6.03731e-08
1.26616e-07
-6.58901e-08
1.38505e-07
-8.67321e-08
1.46893e-07
-1.13761e-07
1.53162e-07
-1.24715e-07
1.53423e-07
-1.19905e-07
1.47815e-07
-1.10977e-07
1.43097e-07
-8.79532e-08
1.26862e-07
-7.34783e-08
1.2e-07
-8.56941e-08
1.27346e-07
-1.07942e-07
9.88878e-08
-1.3397e-07
3.90049e-08
-1.49152e-07
-1.31333e-08
-1.48861e-07
-5.36725e-08
-1.35394e-07
-7.82104e-08
-1.28097e-07
-8.12117e-08
-1.24451e-07
-8.99562e-08
-1.15804e-07
-9.53099e-08
-1.02214e-07
-6.2961e-08
-8.13306e-08
-8.68713e-09
-7.71712e-08
-1.17783e-08
-8.88316e-08
-6.79103e-08
-8.83475e-08
-9.29482e-08
-5.99442e-08
-8.30431e-08
-2.9586e-08
-6.71359e-08
-8.28461e-09
-6.36934e-08
-3.31223e-09
-9.08909e-08
-1.64673e-08
-1.16812e-07
-2.92859e-08
-1.90234e-07
-3.2525e-08
-2.30071e-07
-3.62754e-08
-2.17316e-07
-4.08234e-08
-1.894e-07
-4.01021e-08
-1.79439e-07
-3.86975e-08
-1.56822e-07
-3.72208e-08
-1.36319e-07
-2.19768e-08
-9.95445e-08
-1.6964e-08
-4.25936e-08
6.94419e-08
-3.53656e-08
7.60075e-08
-1.84022e-08
8.40566e-08
9.27138e-09
9.89422e-08
2.9848e-08
1.17928e-07
3.8468e-08
1.38273e-07
3.7594e-08
1.54036e-07
2.59304e-08
1.65087e-07
1.5232e-08
1.58514e-07
1.06155e-08
1.47713e-07
1.33938e-08
1.24084e-07
2.27178e-08
1.10677e-07
3.82847e-08
1.11779e-07
4.18135e-08
9.5359e-08
2.82576e-08
5.25609e-08
-7.76441e-09
2.28887e-08
-3.93623e-08
-2.20745e-08
-6.11798e-08
-5.63928e-08
-8.33336e-08
-5.90579e-08
-1.06065e-07
-6.72249e-08
-1.17254e-07
-8.41208e-08
-1.10076e-07
-7.01396e-08
-8.71483e-08
-3.16147e-08
-6.07719e-08
-3.81549e-08
-3.80787e-08
-9.06037e-08
-1.79832e-08
-1.13044e-07
-1.27496e-08
-8.82768e-08
-1.40704e-08
-6.5815e-08
-1.16537e-09
-7.65985e-08
1.74723e-08
-1.09528e-07
2.5864e-08
-1.25204e-07
1.11296e-08
-1.755e-07
-1.13666e-08
-2.07575e-07
-2.44031e-08
-2.04279e-07
-2.90379e-08
-1.84765e-07
-3.2876e-08
-1.75601e-07
-3.09349e-08
-1.58763e-07
-2.61519e-08
-1.41102e-07
-1.91465e-08
-1.0655e-07
-3.61106e-08
1.23352e-08
5.17673e-08
2.94546e-08
5.8888e-08
4.99302e-08
6.3581e-08
8.16676e-08
6.72047e-08
1.1542e-07
8.41762e-08
1.47359e-07
1.06334e-07
1.66028e-07
1.35367e-07
1.87669e-07
1.43445e-07
2.06765e-07
1.39418e-07
2.13117e-07
1.41362e-07
1.96464e-07
1.40737e-07
1.8219e-07
1.24951e-07
1.7295e-07
1.21019e-07
1.57483e-07
1.10826e-07
1.36716e-07
7.33287e-08
1.13342e-07
4.62624e-08
7.35037e-08
1.77637e-08
3.26e-08
-1.54891e-08
5.11408e-09
-3.1572e-08
-2.9454e-08
-3.26569e-08
-8.70948e-08
-2.64801e-08
-1.18752e-07
-3.84825e-08
-9.02444e-08
-6.01226e-08
-5.70759e-08
-7.13236e-08
-2.91517e-08
-1.18528e-07
-7.69942e-09
-1.34496e-07
1.93748e-08
-1.15351e-07
3.20499e-08
-7.84901e-08
4.12036e-08
-8.57522e-08
4.61744e-08
-1.14499e-07
5.37343e-08
-1.32763e-07
2.94492e-08
-1.51215e-07
2.45894e-09
-1.80585e-07
-1.25646e-08
-1.89256e-07
-2.08633e-08
-1.76466e-07
-2.62233e-08
-1.7024e-07
-2.6725e-08
-1.58261e-07
-2.31094e-08
-1.44717e-07
-1.64111e-08
-1.13247e-07
-5.25218e-08
5.13968e-08
2.78016e-08
8.35057e-08
2.6779e-08
1.28314e-07
1.87724e-08
1.69931e-07
2.55877e-08
2.10384e-07
4.37237e-08
2.40844e-07
7.58737e-08
2.64753e-07
1.11459e-07
2.79902e-07
1.28296e-07
2.82037e-07
1.37282e-07
2.77903e-07
1.45497e-07
2.70639e-07
1.48001e-07
2.54401e-07
1.41189e-07
2.42594e-07
1.32826e-07
2.32366e-07
1.21054e-07
2.17568e-07
8.81266e-08
2.10753e-07
5.30781e-08
1.92403e-07
3.61128e-08
1.73795e-07
3.11985e-09
1.60187e-07
-1.79645e-08
1.48453e-07
-2.0923e-08
1.26376e-07
-4.40318e-09
6.23307e-08
2.55628e-08
3.71118e-09
-1.50308e-09
-1.28755e-08
-5.47369e-08
-8.61221e-09
-1.22791e-07
3.02793e-09
-1.46136e-07
3.86441e-08
-1.50967e-07
8.10801e-08
-1.20926e-07
1.05115e-07
-1.09787e-07
9.93902e-08
-1.08775e-07
8.41892e-08
-1.17562e-07
5.71699e-08
-1.24195e-07
2.86623e-08
-1.52077e-07
1.32545e-08
-1.73848e-07
6.89576e-10
-1.63901e-07
-1.18341e-08
-1.57716e-07
-1.64311e-08
-1.53664e-07
-1.36026e-08
-1.47545e-07
-7.31625e-09
-1.19533e-07
-5.98379e-08
9.03195e-08
-7.19546e-09
1.41515e-07
-2.44164e-08
1.98661e-07
-3.83737e-08
2.46021e-07
-2.17719e-08
2.56816e-07
3.29282e-08
2.5575e-07
7.69408e-08
2.61816e-07
1.05393e-07
2.6877e-07
1.21343e-07
2.70772e-07
1.3528e-07
2.65115e-07
1.51155e-07
2.5915e-07
1.53966e-07
2.50061e-07
1.50278e-07
2.39501e-07
1.43386e-07
2.26428e-07
1.34127e-07
2.22767e-07
9.1788e-08
2.17131e-07
5.87135e-08
2.11785e-07
4.14589e-08
2.10917e-07
3.98742e-09
2.15806e-07
-2.28528e-08
2.26263e-07
-3.13805e-08
2.46523e-07
-2.46636e-08
2.52401e-07
1.96854e-08
2.20477e-07
3.04207e-08
1.75881e-07
-1.01399e-08
1.40872e-07
-8.7783e-08
1.22712e-07
-1.27975e-07
1.07379e-07
-1.35635e-07
1.15144e-07
-1.28691e-07
1.28891e-07
-1.23534e-07
1.37533e-07
-1.17416e-07
1.2249e-07
-1.02519e-07
9.71204e-08
-9.88256e-08
6.33395e-08
-1.18296e-07
3.83702e-08
-1.48879e-07
2.25898e-08
-1.4812e-07
6.32039e-09
-1.41447e-07
-2.8744e-09
-1.44468e-07
-4.12652e-09
-1.46293e-07
-1.01701e-09
-1.22643e-07
-6.08545e-08
8.00371e-08
-3.76552e-08
1.24208e-07
-6.85872e-08
1.6226e-07
-7.64257e-08
1.5755e-07
-1.70623e-08
1.46638e-07
4.3841e-08
1.52222e-07
7.13572e-08
1.73058e-07
8.45573e-08
1.92745e-07
1.01656e-07
2.02468e-07
1.25557e-07
2.08555e-07
1.45068e-07
2.11028e-07
1.51493e-07
2.10265e-07
1.51041e-07
2.06357e-07
1.47294e-07
2.06461e-07
1.34023e-07
2.03224e-07
9.50251e-08
1.99914e-07
6.20229e-08
2.05902e-07
3.54708e-08
2.0977e-07
1.1921e-10
2.08477e-07
-2.15595e-08
2.05015e-07
-2.79188e-08
2.02339e-07
-2.19874e-08
2.2126e-07
7.64404e-10
2.43864e-07
7.81717e-09
2.37775e-07
-4.0508e-09
2.09927e-07
-5.99348e-08
1.93348e-07
-1.11396e-07
1.77275e-07
-1.19561e-07
1.62491e-07
-1.13906e-07
1.50471e-07
-1.11514e-07
1.4064e-07
-1.07585e-07
1.22935e-07
-8.48137e-08
9.63347e-08
-7.22254e-08
7.05272e-08
-9.24884e-08
4.67858e-08
-1.25137e-07
3.29478e-08
-1.34282e-07
2.08373e-08
-1.29336e-07
9.20734e-09
-1.32838e-07
1.68036e-09
-1.38765e-07
-1.35905e-10
-1.20826e-07
-6.09903e-08
4.44361e-08
-1.78519e-08
2.83062e-08
-5.24573e-08
4.87601e-09
-5.29955e-08
-2.58132e-08
1.36271e-08
-2.17171e-08
3.97451e-08
2.31623e-08
2.64781e-08
5.2533e-08
5.51868e-08
7.38797e-08
8.03096e-08
7.6676e-08
1.22761e-07
8.46442e-08
1.37099e-07
9.74125e-08
1.38725e-07
1.12896e-07
1.35556e-07
1.32211e-07
1.27978e-07
1.57873e-07
1.0836e-07
1.79363e-07
7.35343e-08
1.97819e-07
4.35673e-08
2.16246e-07
1.70431e-08
2.24166e-07
-7.80051e-09
2.28711e-07
-2.61048e-08
2.33236e-07
-3.24429e-08
2.4031e-07
-2.90614e-08
2.55897e-07
-1.48231e-08
2.65752e-07
-2.03711e-09
2.67825e-07
-6.1241e-09
2.52791e-07
-4.49007e-08
2.31903e-07
-9.05074e-08
2.14162e-07
-1.0182e-07
1.98454e-07
-9.81979e-08
1.81021e-07
-9.40814e-08
1.59495e-07
-8.60593e-08
1.27611e-07
-5.29293e-08
9.23175e-08
-3.69323e-08
7.22938e-08
-7.24644e-08
5.27574e-08
-1.056e-07
3.93436e-08
-1.20868e-07
3.2561e-08
-1.22553e-07
2.2575e-08
-1.22852e-07
1.14705e-08
-1.27661e-07
4.04229e-09
-1.13398e-07
-5.69481e-08
5.2833e-08
2.68441e-08
-1.82492e-10
5.58264e-10
-4.26632e-08
-1.05148e-08
-3.52875e-08
6.25146e-09
-1.12856e-08
1.57433e-08
2.48423e-09
1.27083e-08
1.30288e-08
4.46421e-08
1.89791e-08
7.4359e-08
2.52705e-08
1.16469e-07
3.66172e-08
1.25752e-07
5.15877e-08
1.23754e-07
7.38562e-08
1.13287e-07
1.08401e-07
9.34337e-08
1.47253e-07
6.95067e-08
1.76731e-07
4.4056e-08
1.9741e-07
2.28881e-08
2.06419e-07
8.0347e-09
2.05697e-07
-7.07909e-09
2.06637e-07
-2.70443e-08
2.18874e-07
-4.46802e-08
2.29595e-07
-3.97817e-08
2.38799e-07
-2.40277e-08
2.45521e-07
-8.75899e-09
2.60435e-07
-2.10384e-08
2.63594e-07
-4.80594e-08
2.4687e-07
-7.37832e-08
2.27061e-07
-8.20105e-08
2.09256e-07
-8.0393e-08
1.90301e-07
-7.51261e-08
1.6214e-07
-5.78985e-08
1.13232e-07
-4.02105e-09
8.02902e-08
-3.99051e-09
6.32373e-08
-5.54114e-08
5.03322e-08
-9.26946e-08
4.24616e-08
-1.12997e-07
3.97986e-08
-1.1989e-07
3.36265e-08
-1.1668e-07
2.40818e-08
-1.18117e-07
8.36966e-09
-9.76859e-08
-4.85787e-08
9.67733e-08
5.29063e-08
5.69114e-08
4.04203e-08
1.29735e-08
3.34232e-08
-1.41193e-09
2.06369e-08
-1.15128e-08
2.58443e-08
-2.49204e-08
2.61159e-08
-2.71695e-08
4.68911e-08
-2.14675e-08
6.86568e-08
7.36503e-09
8.76364e-08
3.87904e-08
9.43267e-08
7.18191e-08
9.07248e-08
1.05419e-07
7.96869e-08
1.39124e-07
5.9729e-08
1.6484e-07
4.37907e-08
1.79725e-07
2.91707e-08
1.8502e-07
1.7594e-08
1.85675e-07
7.37899e-09
1.82543e-07
-3.94712e-09
1.70277e-07
-1.47776e-08
1.46142e-07
-2.05453e-08
1.258e-07
-1.94394e-08
1.23621e-07
-2.18482e-08
1.47389e-07
-3.25272e-08
1.75817e-07
-4.94663e-08
1.95152e-07
-6.73949e-08
1.97189e-07
-7.58199e-08
1.92556e-07
-7.73773e-08
1.84304e-07
-7.21412e-08
1.58098e-07
-4.892e-08
1.12755e-07
-1.25555e-08
8.45035e-08
2.42307e-08
7.51882e-08
5.32498e-09
7.15348e-08
-5.17579e-08
6.36709e-08
-8.48309e-08
5.49696e-08
-1.04296e-07
4.84874e-08
-1.13408e-07
4.26439e-08
-1.10836e-07
3.15472e-08
-1.0702e-07
1.71166e-08
-8.32557e-08
-3.14619e-08
9.6749e-08
6.78321e-08
8.03564e-08
5.68131e-08
6.12282e-08
5.25514e-08
3.36166e-08
4.82487e-08
1.01289e-08
4.9332e-08
-9.9319e-09
4.61768e-08
-1.3027e-08
4.99862e-08
3.53687e-10
5.52759e-08
2.55817e-08
6.2408e-08
5.88112e-08
6.10968e-08
9.92863e-08
5.02493e-08
1.35031e-07
4.39424e-08
1.56287e-07
3.84726e-08
1.66347e-07
3.37305e-08
1.66456e-07
2.90619e-08
1.62216e-07
2.18341e-08
1.55204e-07
1.43914e-08
1.42568e-07
8.68873e-09
1.2386e-07
3.92984e-09
1.0628e-07
-2.96575e-09
1.02895e-07
-1.60542e-08
1.16085e-07
-3.50376e-08
1.39287e-07
-5.57296e-08
1.58654e-07
-6.88338e-08
1.65863e-07
-7.46038e-08
1.64693e-07
-7.46505e-08
1.53052e-07
-6.57362e-08
1.28979e-07
-4.80689e-08
1.01431e-07
-2.13716e-08
7.96812e-08
9.19408e-09
8.58243e-08
1.80879e-08
9.67837e-08
-5.63431e-09
9.73363e-08
-5.23108e-08
8.87019e-08
-7.61969e-08
7.46005e-08
-9.0195e-08
6.17072e-08
-1.00515e-07
5.07537e-08
-9.98826e-08
3.81966e-08
-9.4463e-08
2.37882e-08
-6.88474e-08
-7.67383e-09
8.93663e-08
7.18921e-08
8.21425e-08
6.4037e-08
7.7023e-08
5.7671e-08
6.86687e-08
5.66029e-08
6.06947e-08
5.73059e-08
5.18749e-08
5.49965e-08
5.57164e-08
4.61444e-08
7.56203e-08
3.53718e-08
1.06103e-07
3.19254e-08
1.35177e-07
3.20222e-08
1.54754e-07
3.06722e-08
1.68885e-07
2.98121e-08
1.75176e-07
3.21814e-08
1.70232e-07
3.86748e-08
1.59421e-07
3.98733e-08
1.47716e-07
3.35384e-08
1.35139e-07
2.69694e-08
1.22819e-07
2.10084e-08
1.12844e-07
1.39043e-08
1.08287e-07
1.5908e-09
1.09831e-07
-1.75986e-08
1.17005e-07
-4.22113e-08
1.25175e-07
-6.38998e-08
1.31028e-07
-7.46878e-08
1.32799e-07
-7.63745e-08
1.31278e-07
-7.31294e-08
1.21347e-07
-5.58056e-08
1.11142e-07
-3.78648e-08
1.08139e-07
-1.83686e-08
1.2017e-07
-2.83694e-09
1.41784e-07
-3.52516e-09
1.60572e-07
-2.44221e-08
1.58417e-07
-5.01555e-08
1.46109e-07
-6.38888e-08
1.23485e-07
-6.75709e-08
9.8554e-08
-7.55846e-08
7.23779e-08
-7.37069e-08
4.59556e-08
-6.80405e-08
2.24269e-08
-4.53184e-08
1.47529e-08
7.64272e-08
8.35717e-08
6.87244e-08
7.17398e-08
6.93684e-08
5.7027e-08
6.93124e-08
5.66588e-08
6.64946e-08
6.01235e-08
6.40152e-08
5.74756e-08
7.32005e-08
3.69589e-08
8.76566e-08
2.09155e-08
1.10175e-07
9.40716e-09
1.39945e-07
2.25175e-09
1.74269e-07
-3.65135e-09
2.08468e-07
-4.38719e-09
2.29129e-07
1.15208e-08
2.22048e-07
4.57552e-08
1.98098e-07
6.38237e-08
1.68559e-07
6.30772e-08
1.45662e-07
4.98664e-08
1.32003e-07
3.46673e-08
1.22223e-07
2.36837e-08
1.1615e-07
7.66404e-09
1.15498e-07
-1.69467e-08
1.17486e-07
-4.41994e-08
1.19483e-07
-6.58974e-08
1.19838e-07
-7.50437e-08
1.17572e-07
-7.41087e-08
1.16989e-07
-7.25461e-08
1.26649e-07
-6.54654e-08
1.46376e-07
-5.75915e-08
1.71644e-07
-4.3637e-08
2.02045e-07
-3.32383e-08
2.3645e-07
-3.79299e-08
2.56257e-07
-4.42293e-08
2.49407e-07
-4.33061e-08
2.29183e-07
-4.36646e-08
1.94737e-07
-3.31252e-08
1.51607e-07
-3.24543e-08
1.07258e-07
-2.93592e-08
6.03633e-08
-2.11452e-08
2.2373e-08
-7.32785e-09
3.71262e-08
4.81243e-08
9.09337e-08
5.34777e-08
6.63864e-08
5.98618e-08
5.06428e-08
5.46853e-08
6.18353e-08
4.59639e-08
6.8845e-08
4.55443e-08
5.78949e-08
5.5033e-08
2.74696e-08
7.03552e-08
5.59272e-09
9.41155e-08
-1.43535e-08
1.27127e-07
-3.07597e-08
1.66494e-07
-4.30181e-08
2.06034e-07
-4.39278e-08
2.382e-07
-2.06447e-08
2.3146e-07
5.24947e-08
2.02798e-07
9.24856e-08
1.75354e-07
9.05217e-08
1.63671e-07
6.15488e-08
1.56908e-07
4.143e-08
1.48461e-07
3.213e-08
1.39181e-07
1.69441e-08
1.3436e-07
-1.21252e-08
1.3121e-07
-4.10498e-08
1.2647e-07
-6.11574e-08
1.20412e-07
-6.89866e-08
1.23012e-07
-7.67089e-08
1.4847e-07
-9.80033e-08
1.95106e-07
-1.12101e-07
2.40052e-07
-1.02537e-07
2.84807e-07
-8.83913e-08
3.29481e-07
-7.79129e-08
3.63425e-07
-7.18743e-08
3.71861e-07
-5.26654e-08
3.58338e-07
-2.97825e-08
3.22964e-07
-8.29116e-09
2.77641e-07
1.21979e-08
2.19925e-07
2.52623e-08
1.57763e-07
3.28029e-08
9.72731e-08
3.93442e-08
4.65864e-08
4.33588e-08
8.37126e-08
5.90702e-08
9.59972e-08
5.66043e-08
6.88523e-08
6.46311e-08
4.26161e-08
6.78247e-08
5.86415e-08
5.58969e-08
8.07724e-08
4.85815e-08
6.52099e-08
5.46456e-08
2.14053e-08
7.19604e-08
-1.17223e-08
9.17415e-08
-3.4135e-08
1.14035e-07
-5.3053e-08
1.37327e-07
-6.63106e-08
1.61554e-07
-6.81543e-08
1.8255e-07
-4.16413e-08
1.74864e-07
6.0181e-08
1.54917e-07
1.12433e-07
1.50595e-07
9.48437e-08
1.54342e-07
5.78012e-08
1.5127e-07
4.45025e-08
1.42226e-07
4.1174e-08
1.34776e-07
2.4394e-08
1.39424e-07
-1.67727e-08
1.42034e-07
-4.36592e-08
1.44008e-07
-6.31317e-08
1.55781e-07
-8.07597e-08
1.93296e-07
-1.14223e-07
2.34364e-07
-1.39071e-07
2.73786e-07
-1.51524e-07
3.18966e-07
-1.47716e-07
3.6678e-07
-1.36205e-07
4.05276e-07
-1.16408e-07
4.2594e-07
-9.25386e-08
4.25892e-07
-5.2618e-08
4.07862e-07
-1.1752e-08
3.67635e-07
3.19357e-08
3.12653e-07
6.71796e-08
2.53317e-07
8.45988e-08
1.95687e-07
9.04327e-08
1.35604e-07
9.94277e-08
6.84033e-08
1.10559e-07
1.52116e-07
1.54605e-07
6.84465e-08
1.56537e-07
6.69207e-08
1.37956e-07
6.11965e-08
1.40229e-07
5.63675e-08
1.34155e-07
8.68464e-08
1.16823e-07
8.25413e-08
9.16163e-08
4.66117e-08
8.47964e-08
-4.90262e-09
9.19341e-08
-4.12729e-08
1.01783e-07
-6.29019e-08
1.12341e-07
-7.68687e-08
1.21121e-07
-7.6934e-08
1.32e-07
-5.25209e-08
1.37709e-07
5.44713e-08
1.49596e-07
1.00546e-07
1.54704e-07
8.97349e-08
1.49892e-07
6.2613e-08
1.25385e-07
6.90103e-08
1.00944e-07
6.5615e-08
1.09763e-07
1.55743e-08
1.21546e-07
-2.85551e-08
1.27925e-07
-5.00383e-08
1.37223e-07
-7.24295e-08
1.72247e-07
-1.15784e-07
2.13153e-07
-1.55129e-07
2.4525e-07
-1.71167e-07
2.77904e-07
-1.84178e-07
3.12976e-07
-1.82788e-07
3.50351e-07
-1.73579e-07
3.86164e-07
-1.52222e-07
4.05861e-07
-1.12236e-07
4.11137e-07
-5.7894e-08
3.95021e-07
4.36416e-09
3.61317e-07
6.564e-08
3.08785e-07
1.19712e-07
2.43458e-07
1.49926e-07
1.81311e-07
1.5258e-07
1.20325e-07
1.60414e-07
5.89391e-08
1.71945e-07
2.11055e-07
2.88708e-07
4.88593e-08
3.07704e-07
4.79245e-08
3.13284e-07
5.56162e-08
3.11093e-07
5.85587e-08
3.24508e-07
7.34312e-08
3.13354e-07
9.36949e-08
2.71235e-07
8.87303e-08
2.12145e-07
5.41872e-08
1.62126e-07
8.74671e-09
1.34098e-07
-3.48743e-08
1.16742e-07
-5.95122e-08
1.06511e-07
-6.67025e-08
1.01394e-07
-4.74045e-08
1.21832e-07
3.40328e-08
1.3539e-07
8.69872e-08
1.37353e-07
8.7772e-08
1.03561e-07
9.64053e-08
5.70193e-08
1.15553e-07
4.84482e-08
7.41864e-08
7.38916e-08
-9.86894e-09
7.80499e-08
-3.27134e-08
7.95017e-08
-5.149e-08
1.07088e-07
-1.00016e-07
1.34966e-07
-1.43661e-07
1.25897e-07
-1.46059e-07
1.17158e-07
-1.62428e-07
1.31877e-07
-1.98896e-07
1.62385e-07
-2.13297e-07
2.04833e-07
-2.16027e-07
2.4469e-07
-1.92079e-07
2.6002e-07
-1.27566e-07
2.62754e-07
-6.06285e-08
2.59716e-07
7.40209e-09
2.4654e-07
7.88167e-08
2.17249e-07
1.49004e-07
1.76428e-07
1.90746e-07
1.25775e-07
2.03232e-07
7.32405e-08
2.12949e-07
2.77145e-08
2.1747e-07
2.3877e-07
3.23988e-07
5.36062e-08
3.26138e-07
4.57742e-08
3.40829e-07
4.09247e-08
3.59164e-07
4.02229e-08
3.75836e-07
5.67588e-08
3.72571e-07
9.69595e-08
3.57394e-07
1.03907e-07
3.14861e-07
9.67204e-08
2.54907e-07
6.87002e-08
2.11809e-07
8.22301e-09
1.73867e-07
-2.15699e-08
1.37001e-07
-2.98368e-08
1.09851e-07
-2.02542e-08
1.07869e-07
3.60141e-08
1.05364e-07
8.94923e-08
7.99048e-08
1.1323e-07
3.68139e-08
1.39496e-07
1.23713e-08
1.39995e-07
3.42348e-08
5.23225e-08
3.3016e-08
-8.65032e-09
2.46333e-08
-2.43307e-08
2.86668e-08
-5.55235e-08
3.66442e-08
-1.07993e-07
5.08024e-09
-1.12096e-07
-4.02387e-08
-1.0074e-07
-4.39724e-08
-1.58694e-07
-2.19294e-08
-2.2094e-07
-4.17819e-10
-2.34809e-07
2.28747e-08
-2.39319e-07
5.09976e-08
-2.20202e-07
6.71584e-08
-1.43726e-07
6.78362e-08
-6.13062e-08
7.53979e-08
-1.59282e-10
8.68333e-08
6.73818e-08
9.77836e-08
1.38054e-07
9.50803e-08
1.93449e-07
7.37294e-08
2.24583e-07
4.93607e-08
2.37318e-07
2.59279e-08
2.40903e-07
2.64697e-07
3.07466e-07
7.03867e-08
3.02949e-07
5.02904e-08
3.04207e-07
3.96668e-08
3.06023e-07
3.84064e-08
3.08041e-07
5.47407e-08
3.08924e-07
9.60771e-08
3.06189e-07
1.06642e-07
3.00462e-07
1.02448e-07
2.92495e-07
7.66678e-08
2.71361e-07
2.93574e-08
2.33053e-07
1.67381e-08
1.83211e-07
2.00043e-08
1.34233e-07
2.87245e-08
1.01111e-07
6.91359e-08
7.46091e-08
1.15995e-07
4.42814e-08
1.43558e-07
2.18211e-08
1.61956e-07
1.85031e-08
1.43313e-07
2.33296e-08
4.74958e-08
-3.62181e-09
1.83011e-08
-2.1189e-08
-6.76323e-09
-1.68751e-08
-5.98371e-08
-3.62925e-08
-8.85751e-08
-7.38375e-08
-7.4551e-08
-9.0892e-08
-8.36856e-08
-7.82079e-08
-1.71378e-07
-7.04721e-08
-2.28676e-07
-6.23066e-08
-2.42974e-07
-5.72929e-08
-2.44333e-07
-6.22314e-08
-2.15264e-07
-6.79103e-08
-1.38047e-07
-7.50486e-08
-5.4168e-08
-7.19839e-08
-3.22388e-09
-5.81492e-08
5.35473e-08
-3.86697e-08
1.18574e-07
-1.95966e-08
1.74376e-07
-9.19982e-09
2.14187e-07
-3.32243e-09
2.31441e-07
4.04904e-09
2.33533e-07
2.68746e-07
2.64787e-07
7.68007e-08
2.60985e-07
5.40914e-08
2.61487e-07
3.91649e-08
2.53296e-07
4.65972e-08
2.28584e-07
7.94518e-08
2.25136e-07
9.95254e-08
2.34332e-07
9.74456e-08
2.46898e-07
8.9883e-08
2.4941e-07
7.41559e-08
2.23327e-07
5.54397e-08
1.83641e-07
5.64242e-08
1.40845e-07
6.27995e-08
9.9423e-08
7.01465e-08
6.24689e-08
1.0609e-07
4.49427e-08
1.33521e-07
3.79322e-08
1.50568e-07
3.53055e-08
1.64582e-07
4.09118e-08
1.37706e-07
2.03373e-08
6.80702e-08
-1.12053e-08
4.9844e-08
-2.96603e-08
1.16922e-08
-5.11698e-08
-3.83272e-08
-7.12011e-08
-6.85438e-08
-8.79882e-08
-5.7764e-08
-1.08123e-07
-6.35504e-08
-1.20107e-07
-1.59395e-07
-1.28734e-07
-2.20048e-07
-1.29786e-07
-2.41922e-07
-1.31223e-07
-2.42896e-07
-1.45599e-07
-2.00887e-07
-1.79667e-07
-1.0398e-07
-2.09845e-07
-2.39901e-08
-2.14671e-07
1.60185e-09
-1.91543e-07
3.04191e-08
-1.54484e-07
8.1515e-08
-1.14093e-07
1.33985e-07
-6.97518e-08
1.69845e-07
-3.14206e-08
1.93109e-07
-4.11176e-09
2.06224e-07
2.64635e-07
1.45604e-07
8.89387e-08
1.20478e-07
7.92169e-08
9.77226e-08
6.19203e-08
7.41675e-08
7.01525e-08
6.86965e-08
8.49229e-08
7.51255e-08
9.30962e-08
9.77073e-08
7.48635e-08
1.14281e-07
7.33091e-08
1.22998e-07
6.54393e-08
1.09184e-07
6.92534e-08
9.12758e-08
7.43328e-08
7.33765e-08
8.06989e-08
4.66457e-08
9.68773e-08
2.61473e-08
1.26588e-07
3.22611e-08
1.27407e-07
4.67518e-08
1.36078e-07
5.80113e-08
1.53323e-07
7.07234e-08
1.24994e-07
4.59322e-08
9.28613e-08
1.93188e-08
7.64574e-08
-8.07173e-09
3.9083e-08
-5.63488e-08
9.95002e-09
-8.815e-08
-3.67428e-08
-9.5863e-08
-5.00512e-08
-1.14328e-07
-4.50851e-08
-1.5362e-07
-1.20103e-07
-1.74569e-07
-1.99099e-07
-1.90078e-07
-2.26413e-07
-2.0668e-07
-2.26293e-07
-2.23888e-07
-1.8368e-07
-2.36168e-07
-9.1699e-08
-2.46945e-07
-1.32134e-08
-2.5655e-07
1.12062e-08
-2.44399e-07
1.82681e-08
-2.0355e-07
4.06661e-08
-1.43924e-07
7.43597e-08
-8.16238e-08
1.07545e-07
-2.1594e-08
1.3308e-07
5.61439e-09
1.79015e-07
2.70249e-07
-2.51869e-07
1.14512e-07
-2.65873e-07
9.32204e-08
-2.47121e-07
4.31687e-08
-1.95483e-07
1.85141e-08
-1.28726e-07
1.81661e-08
-6.47324e-08
2.91025e-08
-8.36322e-09
1.84939e-08
2.81972e-08
3.67481e-08
4.33084e-08
5.03276e-08
4.54297e-08
6.7132e-08
3.70829e-08
8.26797e-08
2.82018e-08
8.95801e-08
1.27589e-08
1.1232e-07
1.10038e-08
1.28344e-07
2.19564e-08
1.16454e-07
4.60337e-08
1.12e-07
7.17921e-08
1.27564e-07
8.97384e-08
1.07048e-07
8.55842e-08
9.70153e-08
7.22075e-08
8.9834e-08
5.60561e-08
5.52342e-08
2.1632e-08
4.4374e-08
-3.20301e-08
1.69191e-08
-6.39401e-08
-1.81414e-08
-7.12263e-08
-3.77989e-08
-1.19882e-07
-7.14467e-08
-1.74621e-07
-1.4436e-07
-2.25423e-07
-1.75611e-07
-2.6934e-07
-1.82377e-07
-2.98775e-07
-1.54245e-07
-2.95406e-07
-9.50689e-08
-2.60815e-07
-4.78041e-08
-2.26546e-07
-2.30632e-08
-1.91048e-07
-1.72291e-08
-1.40352e-07
-1.00298e-08
-9.15489e-08
2.55569e-08
-5.18873e-08
6.78837e-08
-1.07363e-08
9.19297e-08
8.00144e-09
1.60278e-07
2.7825e-07
-3.83113e-07
7.12642e-08
-3.13844e-07
2.3951e-08
-2.58595e-07
-1.20799e-08
-2.1209e-07
-2.79908e-08
-1.70925e-07
-2.29985e-08
-1.31722e-07
-1.01008e-08
-1.10856e-07
-2.37112e-09
-8.73366e-08
1.32285e-08
-6.62531e-08
2.92438e-08
-5.12842e-08
5.21628e-08
-4.56565e-08
7.7052e-08
-4.00327e-08
8.39564e-08
-2.68454e-08
9.91334e-08
-6.74253e-09
1.08241e-07
1.29127e-08
9.67991e-08
3.32939e-08
9.16191e-08
7.0582e-08
9.02762e-08
9.01243e-08
8.75053e-08
9.16626e-08
9.54772e-08
7.89608e-08
1.02536e-07
5.10862e-08
8.31086e-08
2.05757e-08
7.48841e-08
-4.2484e-08
7.99786e-08
-7.26524e-08
1.2027e-08
-8.49e-08
-2.55511e-08
-1.22933e-07
-3.3413e-08
-1.79917e-07
-8.73762e-08
-2.20873e-07
-1.34655e-07
-2.74228e-07
-1.29022e-07
-3.12131e-07
-1.16341e-07
-3.18268e-07
-8.89321e-08
-2.9751e-07
-6.85611e-08
-2.6617e-07
-5.44039e-08
-2.20398e-07
-6.30004e-08
-1.68968e-07
-6.14597e-08
-1.07587e-07
-3.58241e-08
-5.81009e-08
1.83971e-08
-3.37756e-08
6.76043e-08
-1.85387e-08
1.45041e-07
2.59712e-07
-3.10024e-07
-2.9162e-09
-2.49201e-07
-3.68714e-08
-2.18229e-07
-4.30525e-08
-2.12596e-07
-3.36232e-08
-2.12705e-07
-2.28895e-08
-2.03929e-07
-1.88774e-08
-1.88973e-07
-1.7327e-08
-1.64061e-07
-1.1683e-08
-1.37661e-07
2.84465e-09
-1.20382e-07
3.48829e-08
-1.07403e-07
6.40738e-08
-8.95516e-08
6.61045e-08
-5.60653e-08
6.56469e-08
-2.42145e-08
7.63898e-08
1.13497e-08
6.12344e-08
4.97749e-08
5.31938e-08
7.97034e-08
6.0348e-08
1.03524e-07
6.36853e-08
1.0027e-07
9.8732e-08
9.14649e-08
1.11341e-07
8.12354e-08
9.33382e-08
6.98494e-08
8.627e-08
2.00055e-08
1.29823e-07
-3.48386e-08
6.68714e-08
-6.29803e-08
2.591e-09
-8.73211e-08
-9.07192e-09
-1.57063e-07
-1.76342e-08
-2.21719e-07
-6.99984e-08
-2.73323e-07
-7.74179e-08
-3.27778e-07
-6.18865e-08
-3.59896e-07
-5.68138e-08
-3.72941e-07
-5.55153e-08
-3.61638e-07
-6.57067e-08
-3.43357e-07
-8.12809e-08
-3.10424e-07
-9.43929e-08
-2.55999e-07
-9.02483e-08
-1.84401e-07
-5.32019e-08
-1.39811e-07
2.30152e-08
-9.52585e-08
1.00487e-07
1.64454e-07
-2.55944e-07
-5.9673e-08
-2.37185e-07
-5.56299e-08
-2.35633e-07
-4.4604e-08
-2.42609e-07
-2.66462e-08
-2.46748e-07
-1.87503e-08
-2.46315e-07
-1.93112e-08
-2.42864e-07
-2.07787e-08
-2.36273e-07
-1.82745e-08
-2.2473e-07
-8.69774e-09
-2.06651e-07
1.6804e-08
-1.80396e-07
3.78196e-08
-1.57209e-07
4.29168e-08
-1.09457e-07
1.78947e-08
-5.83065e-08
2.52389e-08
-2.07111e-08
2.36389e-08
1.60529e-08
1.643e-08
4.06455e-08
3.57559e-08
6.45919e-08
3.97393e-08
7.96964e-08
8.36277e-08
9.38186e-08
9.7219e-08
9.14166e-08
9.57402e-08
8.49772e-08
9.27097e-08
9.14127e-08
1.23388e-07
4.95533e-08
1.08731e-07
2.67058e-09
4.94739e-08
-2.54646e-08
1.90631e-08
-7.17174e-08
2.86186e-08
-1.45646e-07
3.93024e-09
-1.93828e-07
-2.92354e-08
-2.30842e-07
-2.48724e-08
-2.76894e-07
-1.0761e-08
-3.21295e-07
-1.11142e-08
-3.51877e-07
-3.51235e-08
-3.57125e-07
-7.60327e-08
-3.4519e-07
-1.06327e-07
-3.21212e-07
-1.14227e-07
-2.76941e-07
-9.74725e-08
-2.03167e-07
-5.07586e-08
-1.10756e-07
8.07644e-09
5.36976e-08
-2.7564e-07
-4.39717e-08
-3.19856e-07
-1.14133e-08
-3.6566e-07
1.19983e-09
-3.86144e-07
-6.16126e-09
-3.91273e-07
-1.36212e-08
-3.9163e-07
-1.8954e-08
-3.85264e-07
-2.71446e-08
-3.70055e-07
-3.34833e-08
-3.4245e-07
-3.63027e-08
-2.99625e-07
-2.60205e-08
-2.51843e-07
-9.96248e-09
-2.02592e-07
-6.33413e-09
-1.67251e-07
-1.7447e-08
-1.17081e-07
-2.49305e-08
-5.93995e-08
-3.40425e-08
-1.50485e-08
-2.79204e-08
4.92836e-08
-2.85756e-08
7.95697e-08
9.45366e-09
9.59468e-08
6.7251e-08
1.08933e-07
8.42336e-08
1.09129e-07
9.5544e-08
9.83314e-08
1.03508e-07
9.44821e-08
1.27237e-07
7.9325e-08
1.23889e-07
3.1429e-08
9.73701e-08
-1.01836e-08
6.06759e-08
-5.05892e-08
6.90246e-08
-1.03061e-07
5.64029e-08
-1.51102e-07
1.88059e-08
-1.91618e-07
1.56435e-08
-2.35511e-07
3.31329e-08
-2.81754e-07
3.51292e-08
-3.21548e-07
4.67032e-09
-3.34261e-07
-6.33206e-08
-3.26899e-07
-1.13689e-07
-3.02191e-07
-1.38936e-07
-2.54313e-07
-1.4535e-07
-1.7965e-07
-1.25421e-07
-8.40876e-08
-8.74854e-08
-3.03904e-08
-3.38811e-07
-3.07213e-08
-3.73037e-07
2.2812e-08
-4.02716e-07
3.08784e-08
-3.97378e-07
-1.14991e-08
-3.671e-07
-4.38996e-08
-3.23988e-07
-6.20656e-08
-2.80249e-07
-7.08828e-08
-2.46673e-07
-6.70596e-08
-2.1962e-07
-6.33559e-08
-1.93244e-07
-5.23969e-08
-1.62876e-07
-4.03301e-08
-1.31449e-07
-3.77606e-08
-1.05536e-07
-4.33599e-08
-7.11978e-08
-5.92686e-08
-2.231e-08
-8.293e-08
2.78324e-08
-7.80623e-08
5.72085e-08
-5.79513e-08
8.77855e-08
-2.1123e-08
1.09352e-07
4.56849e-08
1.22321e-07
7.12648e-08
1.18565e-07
9.93003e-08
1.06423e-07
1.1565e-07
9.43763e-08
1.39285e-07
9.16409e-08
1.26625e-07
7.43861e-08
1.14625e-07
4.023e-08
9.48321e-08
1.08266e-08
9.84282e-08
-3.35352e-08
1.00765e-07
-9.68441e-08
8.21152e-08
-1.48219e-07
6.70188e-08
-2.05923e-07
9.08379e-08
-2.58038e-07
8.72437e-08
-2.89361e-07
3.59945e-08
-3.1146e-07
-4.12221e-08
-3.1727e-07
-1.07878e-07
-3.03446e-07
-1.52761e-07
-2.603e-07
-1.88495e-07
-1.88949e-07
-1.96772e-07
-9.59993e-08
-1.80434e-07
-1.26389e-07
-2.36835e-07
-2.39965e-08
-2.22317e-07
8.29443e-09
-2.08988e-07
1.75499e-08
-1.91183e-07
-2.93041e-08
-1.60694e-07
-7.43897e-08
-1.35961e-07
-8.67988e-08
-1.01797e-07
-1.05046e-07
-7.3172e-08
-9.56846e-08
-5.35586e-08
-8.29694e-08
-4.51201e-08
-6.08356e-08
-3.45154e-08
-5.09348e-08
-2.07941e-08
-5.14818e-08
-2.33355e-09
-6.18207e-08
2.99606e-08
-9.15629e-08
7.4544e-08
-1.27514e-07
1.14028e-07
-1.17546e-07
1.32909e-07
-7.68322e-08
1.50143e-07
-3.83575e-08
1.69542e-07
2.62861e-08
1.75346e-07
6.54611e-08
1.78883e-07
9.5763e-08
1.76377e-07
1.18156e-07
1.70563e-07
1.451e-07
1.43044e-07
1.54143e-07
1.0487e-07
1.528e-07
6.40759e-08
1.35626e-07
3.05305e-08
1.31974e-07
-5.07003e-09
1.36366e-07
-5.88305e-08
1.35876e-07
-1.41028e-07
1.49216e-07
-2.21342e-07
1.71151e-07
-2.72539e-07
1.38441e-07
-3.0176e-07
6.52159e-08
-3.18513e-07
-2.44692e-08
-3.2311e-07
-1.03281e-07
-3.16885e-07
-1.58984e-07
-2.78851e-07
-2.26529e-07
-2.14378e-07
-2.61245e-07
-1.19647e-07
-2.75165e-07
-2.46036e-07
-1.51453e-07
-3.10455e-08
-1.51542e-07
8.38359e-09
-1.31799e-07
-2.19277e-09
-1.17545e-07
-4.35582e-08
-9.22095e-08
-9.97251e-08
-7.07652e-08
-1.08243e-07
-5.63589e-08
-1.19452e-07
-3.68881e-08
-1.15155e-07
-1.60289e-08
-1.03828e-07
-1.06376e-08
-6.62265e-08
-4.17404e-09
-5.7398e-08
1.37301e-08
-6.93856e-08
4.77349e-08
-9.58255e-08
9.01733e-08
-1.34001e-07
1.22977e-07
-1.60317e-07
1.40467e-07
-1.35036e-07
1.50273e-07
-8.6638e-08
1.45132e-07
-3.32165e-08
1.67464e-07
3.95413e-09
1.83422e-07
4.95036e-08
2.08774e-07
7.04117e-08
2.20745e-07
1.06185e-07
2.19154e-07
1.46691e-07
1.97227e-07
1.7607e-07
1.58012e-07
1.92015e-07
1.05226e-07
1.88413e-07
5.00259e-08
1.87173e-07
-2.16072e-08
2.07999e-07
-9.49839e-08
2.09253e-07
-1.71247e-07
2.2548e-07
-2.25963e-07
2.25867e-07
-2.53663e-07
1.66141e-07
-2.87645e-07
9.91985e-08
-3.00555e-07
-1.15595e-08
-2.95615e-07
-1.08221e-07
-2.80435e-07
-1.74164e-07
-2.54016e-07
-2.52948e-07
-2.03684e-07
-3.11577e-07
-1.17284e-07
-3.61564e-07
-3.6332e-07
-2.06128e-07
-4.65063e-08
-1.91731e-07
-6.01323e-09
-1.40975e-07
-5.29493e-08
-1.02854e-07
-8.16786e-08
-9.18605e-08
-1.10719e-07
-7.95878e-08
-1.20517e-07
-6.9718e-08
-1.29322e-07
-6.73586e-08
-1.17514e-07
-6.91219e-08
-1.02064e-07
-5.49395e-08
-8.04087e-08
-3.14827e-08
-8.0855e-08
5.95542e-09
-1.06824e-07
4.97458e-08
-1.39616e-07
7.29277e-08
-1.57183e-07
4.43681e-08
-1.31756e-07
-6.13127e-09
-8.45363e-08
-2.88656e-08
-6.39038e-08
8.24573e-09
-7.03277e-08
7.25278e-08
-6.03273e-08
1.35846e-07
-1.38142e-08
1.65121e-07
4.11371e-08
1.86431e-07
8.48761e-08
1.91525e-07
1.41597e-07
1.83831e-07
1.83765e-07
1.60483e-07
2.15364e-07
1.20026e-07
2.2887e-07
6.78201e-08
2.3938e-07
-5.70067e-09
2.8152e-07
-8.59691e-08
2.89521e-07
-1.39995e-07
2.79507e-07
-1.71689e-07
2.57561e-07
-1.79894e-07
1.74347e-07
-1.84043e-07
1.03348e-07
-1.9223e-07
-3.37225e-09
-1.82477e-07
-1.17974e-07
-1.59897e-07
-1.96744e-07
-1.51166e-07
-2.61678e-07
-1.38961e-07
-3.23782e-07
-8.75893e-08
-4.12935e-07
-4.50909e-07
-2.1571e-07
-2.10722e-07
-1.41841e-07
-7.98822e-08
-1.39693e-07
-5.50974e-08
-1.37572e-07
-8.37995e-08
-1.33565e-07
-1.14725e-07
-1.33837e-07
-1.20245e-07
-1.51404e-07
-1.11755e-07
-1.5763e-07
-1.11288e-07
-1.56194e-07
-1.035e-07
-1.35047e-07
-1.01555e-07
-9.63593e-08
-1.19542e-07
-7.16153e-08
-1.31568e-07
-7.90344e-08
-1.32196e-07
-1.30566e-07
-1.0565e-07
-1.91003e-07
-7.13191e-08
-2.11583e-07
-6.39556e-08
-1.89551e-07
-8.5936e-08
-1.39145e-07
-1.20733e-07
-7.61501e-08
-1.23322e-07
-7.26249e-09
-8.27014e-08
3.35366e-08
3.38658e-10
4.81868e-08
7.02264e-08
6.63526e-08
1.23432e-07
8.53863e-08
1.64732e-07
1.02216e-07
1.98534e-07
1.05945e-07
2.25141e-07
8.85098e-08
2.56816e-07
4.67436e-08
3.23287e-07
-3.88471e-09
3.4015e-07
-4.61157e-08
3.21737e-07
-6.51054e-08
2.7655e-07
-6.88111e-08
1.78052e-07
-5.59292e-08
9.04663e-08
-3.5699e-08
-2.3603e-08
-7.4988e-09
-1.46174e-07
2.16811e-08
-2.25923e-07
1.61313e-08
-2.56128e-07
-3.0737e-08
-2.76914e-07
-4.21816e-08
-4.01491e-07
-4.93091e-07
-3.1725e-07
-3.9096e-07
-1.37626e-07
-2.59506e-07
-8.28957e-08
-1.09828e-07
-1.18655e-07
-4.80398e-08
-1.66285e-07
-6.70946e-08
-1.96344e-07
-9.01851e-08
-2.17776e-07
-9.03224e-08
-2.29633e-07
-9.94305e-08
-2.28465e-07
-1.04668e-07
-2.26123e-07
-1.03897e-07
-2.21279e-07
-1.24385e-07
-2.23137e-07
-1.2971e-07
-2.36095e-07
-1.19238e-07
-2.54637e-07
-8.71078e-08
-2.54024e-07
-7.19319e-08
-2.38223e-07
-7.97562e-08
-2.06645e-07
-1.17514e-07
-1.86471e-07
-1.40906e-07
-1.62296e-07
-1.47497e-07
-1.21454e-07
-1.23543e-07
-6.46093e-08
-5.65059e-08
-1.99984e-08
2.5616e-08
1.95569e-08
8.38769e-08
4.77334e-08
1.36556e-07
7.98382e-08
1.6643e-07
1.08321e-07
1.96658e-07
1.30306e-07
2.3483e-07
1.368e-07
3.16794e-07
1.33357e-07
3.43593e-07
1.22286e-07
3.32808e-07
9.56567e-08
3.0318e-07
4.7807e-08
2.25902e-07
4.01492e-08
9.81242e-08
5.2456e-08
-3.59102e-08
5.79482e-08
-1.51667e-07
8.28298e-08
-2.50804e-07
9.69515e-08
-2.7025e-07
4.92982e-08
-2.2926e-07
8.95311e-09
-3.61145e-07
-4.84138e-07
-4.68064e-07
-4.89123e-07
-2.81102e-07
-4.46467e-07
-1.06607e-07
-2.84323e-07
-9.30488e-08
-6.15981e-08
-1.82317e-07
2.2173e-08
-2.38087e-07
-3.44146e-08
-2.7367e-07
-5.47395e-08
-3.02548e-07
-7.05527e-08
-3.23143e-07
-8.40732e-08
-3.41332e-07
-8.57082e-08
-3.57254e-07
-1.08463e-07
-3.64953e-07
-1.22011e-07
-3.65478e-07
-1.18714e-07
-3.47899e-07
-1.04687e-07
-3.22368e-07
-9.74618e-08
-2.99599e-07
-1.02524e-07
-3.04484e-07
-1.12629e-07
-3.19162e-07
-1.26228e-07
-3.07445e-07
-1.59213e-07
-2.65073e-07
-1.65916e-07
-1.81636e-07
-1.39943e-07
-7.96245e-08
-7.6395e-08
1.44155e-08
-1.01627e-08
6.30634e-08
8.79083e-08
9.658e-08
1.32913e-07
1.33577e-07
1.59662e-07
1.79445e-07
1.88963e-07
2.18333e-07
2.77906e-07
2.33421e-07
3.28505e-07
2.40297e-07
3.25931e-07
2.34915e-07
3.08561e-07
2.02878e-07
2.5794e-07
1.63466e-07
1.37536e-07
1.10319e-07
1.72372e-08
8.8174e-08
-1.29521e-07
9.38492e-08
-2.56479e-07
1.05664e-07
-2.82065e-07
1.0131e-07
-2.24907e-07
5.31566e-08
-3.12991e-07
-4.30981e-07
-5.05221e-07
-5.38146e-07
-4.1922e-07
-5.32469e-07
-2.48134e-07
-4.55409e-07
-9.26648e-08
-2.17067e-07
-1.1435e-07
4.38583e-08
-2.2835e-07
7.9585e-08
-2.69981e-07
-1.31079e-08
-3.04219e-07
-3.63143e-08
-3.43117e-07
-4.5175e-08
-3.78981e-07
-4.98446e-08
-4.09526e-07
-7.79173e-08
-4.33115e-07
-9.84215e-08
-4.5753e-07
-9.42987e-08
-4.61421e-07
-1.00796e-07
-4.50324e-07
-1.08558e-07
-4.49807e-07
-1.03042e-07
-4.68558e-07
-9.38781e-08
-4.72963e-07
-1.21823e-07
-4.50661e-07
-1.81515e-07
-4.01459e-07
-2.15117e-07
-3.24992e-07
-2.16409e-07
-2.14311e-07
-1.87076e-07
-1.09437e-07
-1.15036e-07
-2.08254e-08
-7.03463e-10
5.74088e-08
5.46792e-08
1.26828e-07
9.02421e-08
1.97086e-07
1.18705e-07
2.49219e-07
2.25774e-07
2.89484e-07
2.8824e-07
3.20582e-07
2.94833e-07
3.48512e-07
2.80632e-07
3.65949e-07
2.40503e-07
3.50954e-07
1.52529e-07
3.03824e-07
6.4367e-08
2.68534e-07
-9.42314e-08
2.26564e-07
-2.14509e-07
1.86082e-07
-2.41583e-07
1.09306e-07
-1.4813e-07
5.45503e-08
-2.58236e-07
-3.76431e-07
-4.65521e-07
-5.70948e-07
-4.20221e-07
-5.77769e-07
-3.39749e-07
-5.3588e-07
-1.56478e-07
-4.00338e-07
-8.96865e-08
-2.29343e-08
-2.08443e-07
1.98341e-07
-2.8619e-07
6.46396e-08
-3.01984e-07
-2.05201e-08
-3.107e-07
-3.64591e-08
-3.3452e-07
-2.60252e-08
-3.70181e-07
-4.22564e-08
-4.05029e-07
-6.35733e-08
-4.34816e-07
-6.45116e-08
-4.64452e-07
-7.11602e-08
-4.68643e-07
-1.04366e-07
-4.78935e-07
-9.27495e-08
-4.90266e-07
-8.25468e-08
-4.99925e-07
-1.12164e-07
-4.72016e-07
-2.09424e-07
-4.49789e-07
-2.37345e-07
-4.23483e-07
-2.42715e-07
-3.88554e-07
-2.22005e-07
-3.27815e-07
-1.75774e-07
-2.09972e-07
-1.18546e-07
-8.4639e-08
-7.06536e-08
8.29112e-09
-2.68771e-09
1.14966e-07
1.20299e-08
1.94753e-07
1.45986e-07
2.66098e-07
2.16895e-07
3.1942e-07
2.41511e-07
3.6011e-07
2.39942e-07
3.88664e-07
2.11948e-07
3.86698e-07
1.54497e-07
3.77338e-07
7.37265e-08
3.56232e-07
-7.31252e-08
3.12204e-07
-1.70482e-07
2.54063e-07
-1.83441e-07
1.15667e-07
-9.73329e-09
4.98523e-08
-1.92423e-07
-3.26579e-07
-4.15895e-07
-5.22466e-07
-4.16238e-07
-5.77427e-07
-3.82146e-07
-5.69971e-07
-3.13874e-07
-4.6861e-07
-1.19907e-07
-2.169e-07
-3.94337e-08
1.17867e-07
-1.09738e-07
1.34944e-07
-1.6609e-07
3.58318e-08
-1.94576e-07
-7.97309e-09
-1.99465e-07
-2.11362e-08
-1.90783e-07
-5.09378e-08
-1.91144e-07
-6.3212e-08
-1.64076e-07
-9.15798e-08
-1.80922e-07
-5.43131e-08
-2.85711e-07
4.23105e-10
-3.66544e-07
-1.19163e-08
-3.79939e-07
-6.91522e-08
-3.58785e-07
-1.33317e-07
-3.84902e-07
-1.83307e-07
-3.99666e-07
-2.2258e-07
-4.17009e-07
-2.25371e-07
-4.24867e-07
-2.14147e-07
-3.96989e-07
-2.03651e-07
-3.1393e-07
-2.01606e-07
-2.28654e-07
-1.55929e-07
-1.20435e-07
-1.10906e-07
-1.20483e-09
-1.072e-07
1.19399e-07
2.53835e-08
2.17482e-07
1.18812e-07
2.82969e-07
1.76025e-07
3.35297e-07
1.87615e-07
3.73285e-07
1.73959e-07
3.78076e-07
1.49705e-07
3.72975e-07
7.88278e-08
3.59742e-07
-5.98914e-08
3.11158e-07
-1.21898e-07
1.66635e-07
-3.89173e-08
3.66857e-08
1.20216e-07
2.56984e-08
-1.81436e-07
-3.00881e-07
-3.53388e-07
-4.22851e-07
-3.87141e-07
-5.43674e-07
-4.1616e-07
-5.40953e-07
-3.81787e-07
-5.02983e-07
-2.46693e-07
-3.51994e-07
-1.84934e-08
-1.10332e-07
9.69871e-08
1.94634e-08
1.14196e-07
1.86235e-08
1.05917e-07
3.06067e-10
1.26632e-07
-4.18509e-08
1.33908e-07
-5.82141e-08
1.09662e-07
-3.8966e-08
1.16665e-07
-9.85824e-08
1.6685e-07
-1.04499e-07
1.77462e-07
-1.01879e-08
1.79731e-07
-1.41842e-08
1.56479e-07
-4.59005e-08
8.41564e-08
-6.0995e-08
6.58916e-10
-9.981e-08
-7.0331e-08
-1.5159e-07
-1.33439e-07
-1.62263e-07
-1.8254e-07
-1.65046e-07
-2.03048e-07
-1.83142e-07
-2.15027e-07
-1.89627e-07
-1.99633e-07
-1.71323e-07
-1.40052e-07
-1.70486e-07
-8.74037e-08
-1.59848e-07
4.02693e-08
-1.0229e-07
1.92261e-07
-3.31797e-08
3.15646e-07
5.26399e-08
3.82494e-07
1.20767e-07
4.04628e-07
1.51826e-07
4.01641e-07
1.52692e-07
3.69601e-07
1.10867e-07
2.95069e-07
1.46404e-08
2.09631e-07
-3.64588e-08
1.0938e-07
6.13331e-08
1.21527e-07
1.08068e-07
6.76875e-08
-1.27597e-07
-2.33194e-07
-1.40352e-07
-2.63538e-07
-2.30647e-07
-4.53378e-07
-3.0216e-07
-4.69439e-07
-3.49741e-07
-4.55402e-07
-3.11376e-07
-3.90359e-07
-1.53895e-07
-2.67812e-07
6.08613e-08
-1.95293e-07
2.02115e-07
-1.2263e-07
3.22236e-07
-1.19815e-07
4.00346e-07
-1.19961e-07
4.36984e-07
-9.48521e-08
4.55324e-07
-5.73055e-08
4.07208e-07
-5.04661e-08
3.79972e-07
-7.72622e-08
4.60043e-07
-9.02583e-08
5.11663e-07
-6.58043e-08
4.90686e-07
-2.49224e-08
4.48865e-07
-1.9174e-08
3.99611e-07
-5.05556e-08
3.46169e-07
-9.81469e-08
3.13188e-07
-1.2928e-07
2.95497e-07
-1.47355e-07
2.51273e-07
-1.38918e-07
1.95006e-07
-1.3336e-07
1.62517e-07
-1.38833e-07
1.41765e-07
-1.49734e-07
1.28986e-07
-1.47068e-07
1.5467e-07
-1.27973e-07
2.21482e-07
-9.99912e-08
3.35005e-07
-6.08827e-08
4.57734e-07
-1.96282e-09
5.12362e-07
9.71972e-08
5.08723e-07
1.56332e-07
4.54814e-07
1.64776e-07
3.17989e-07
1.51465e-07
1.7864e-07
1.02891e-07
1.18371e-07
1.21603e-07
1.05567e-07
1.20871e-07
6.87015e-08
-9.07316e-08
-1.64493e-07
-2.81754e-08
-1.37202e-07
-1.32314e-07
-3.4924e-07
-1.75062e-07
-4.26691e-07
-2.15415e-07
-4.15049e-07
-2.001e-07
-4.05673e-07
-1.09622e-07
-3.58291e-07
4.50803e-08
-3.49995e-07
2.08352e-07
-2.85902e-07
3.44278e-07
-2.55741e-07
4.49174e-07
-2.24858e-07
5.34348e-07
-1.80026e-07
5.91727e-07
-1.14684e-07
6.13533e-07
-7.22718e-08
5.88857e-07
-5.2586e-08
5.42213e-07
-4.36149e-08
5.05731e-07
-2.93225e-08
4.97024e-07
-1.62153e-08
4.94939e-07
-1.709e-08
5.01345e-07
-5.69619e-08
5.29116e-07
-1.25918e-07
5.49378e-07
-1.49541e-07
5.43076e-07
-1.41053e-07
5.42832e-07
-1.38674e-07
5.5305e-07
-1.43578e-07
5.59135e-07
-1.44917e-07
5.20432e-07
-1.11031e-07
4.78984e-07
-1.05621e-07
4.3449e-07
-8.34788e-08
3.92786e-07
-5.82879e-08
3.89054e-07
-5.71501e-08
4.35039e-07
-4.79476e-08
5.03281e-07
2.89556e-08
5.03854e-07
1.55759e-07
4.50965e-07
2.17666e-07
3.63755e-07
2.38676e-07
2.51433e-07
2.15213e-07
1.6805e-07
2.04985e-07
1.11784e-07
1.77136e-07
5.41574e-08
-3.31055e-08
-1.10335e-07
1.59606e-07
-1.13216e-07
8.32379e-08
-2.72873e-07
4.74567e-08
-3.9091e-07
3.47016e-08
-4.02294e-07
2.98354e-08
-4.00807e-07
6.60397e-08
-3.94495e-07
1.25395e-07
-4.09351e-07
2.61675e-07
-4.22182e-07
4.00924e-07
-3.94991e-07
4.96432e-07
-3.20366e-07
5.66996e-07
-2.5059e-07
6.37418e-07
-1.85105e-07
6.70968e-07
-1.05821e-07
6.55834e-07
-3.74525e-08
6.16585e-07
-4.3646e-09
5.83273e-07
3.99128e-09
5.74978e-07
-7.92024e-09
5.90095e-07
-3.22064e-08
6.2518e-07
-9.2047e-08
6.58292e-07
-1.59029e-07
6.84942e-07
-1.76191e-07
7.20157e-07
-1.76268e-07
7.43457e-07
-1.61974e-07
7.4237e-07
-1.42491e-07
7.08428e-07
-1.10975e-07
6.74543e-07
-7.71449e-08
6.33139e-07
-6.42154e-08
5.73031e-07
-2.33716e-08
4.93605e-07
2.11377e-08
4.29407e-07
7.04807e-09
3.90717e-07
-9.25862e-09
4.04448e-07
1.5224e-08
4.13414e-07
1.46792e-07
3.69234e-07
2.61846e-07
3.11481e-07
2.96429e-07
2.36032e-07
2.90662e-07
1.6258e-07
2.78436e-07
1.10417e-07
2.29299e-07
7.09984e-08
6.31236e-09
-3.93364e-08
2.66147e-07
-1.74182e-07
2.63646e-07
-2.70371e-07
2.54844e-07
-3.82108e-07
2.48055e-07
-3.95505e-07
2.49913e-07
-4.02666e-07
2.89551e-07
-4.34133e-07
3.63791e-07
-4.83592e-07
4.43943e-07
-5.02333e-07
5.21081e-07
-4.72129e-07
5.9197e-07
-3.91255e-07
6.36563e-07
-2.95183e-07
6.95175e-07
-2.43718e-07
7.68385e-07
-1.79031e-07
8.18156e-07
-8.72228e-08
8.25488e-07
-1.16962e-08
8.23691e-07
5.78794e-09
8.38691e-07
-2.29207e-08
8.56453e-07
-4.99683e-08
8.59645e-07
-9.524e-08
8.48412e-07
-1.47796e-07
8.38893e-07
-1.66672e-07
8.26965e-07
-1.6434e-07
8.19925e-07
-1.54933e-07
8.13136e-07
-1.35702e-07
8.05361e-07
-1.032e-07
7.67706e-07
-3.94895e-08
6.98076e-07
5.41432e-09
6.09826e-07
6.48786e-08
5.03637e-07
1.27327e-07
4.05783e-07
1.04903e-07
3.35431e-07
6.10941e-08
2.86024e-07
6.46309e-08
2.46344e-07
1.86472e-07
2.0912e-07
2.9907e-07
1.66778e-07
3.38771e-07
1.21925e-07
3.35515e-07
8.43067e-08
3.16055e-07
7.58366e-08
2.37768e-07
4.2453e-08
3.9696e-08
3.11634e-09
3.21075e-07
-2.15887e-07
3.71802e-07
-3.21099e-07
3.72902e-07
-3.83208e-07
3.86512e-07
-4.09115e-07
4.29347e-07
-4.455e-07
5.16927e-07
-5.21713e-07
5.97152e-07
-5.63817e-07
6.46735e-07
-5.51917e-07
6.78828e-07
-5.04222e-07
6.7612e-07
-3.88546e-07
6.53421e-07
-2.72483e-07
6.65182e-07
-2.55481e-07
7.16491e-07
-2.3034e-07
8.00116e-07
-1.70846e-07
8.73374e-07
-8.49541e-08
9.19125e-07
-3.99619e-08
9.2819e-07
-3.19849e-08
9.24568e-07
-4.63464e-08
9.03443e-07
-7.41149e-08
8.9196e-07
-1.36313e-07
8.84896e-07
-1.59607e-07
8.83265e-07
-1.62709e-07
8.82982e-07
-1.5465e-07
8.76694e-07
-1.29413e-07
8.26632e-07
-5.31374e-08
7.18679e-07
6.84631e-08
5.90729e-07
1.33365e-07
4.7947e-07
1.76138e-07
3.90683e-07
2.16114e-07
2.94069e-07
2.01517e-07
2.06923e-07
1.4824e-07
1.31525e-07
1.4003e-07
8.33865e-08
2.34611e-07
4.97453e-08
3.32713e-07
5.13737e-08
3.37142e-07
5.325e-08
3.33639e-07
5.37977e-08
3.15508e-07
8.49004e-08
2.06666e-07
4.14448e-08
8.31524e-08
4.45609e-08
3.89596e-07
-2.88544e-07
4.12652e-07
-3.44156e-07
4.11309e-07
-3.81865e-07
4.3455e-07
-4.32356e-07
5.11815e-07
-5.22765e-07
5.96671e-07
-6.06569e-07
6.45712e-07
-6.12858e-07
6.78013e-07
-5.84218e-07
6.89261e-07
-5.1547e-07
6.9194e-07
-3.91225e-07
6.82222e-07
-2.62765e-07
6.59917e-07
-2.33175e-07
6.70037e-07
-2.4046e-07
7.21693e-07
-2.22503e-07
7.98842e-07
-1.62104e-07
8.33997e-07
-7.51158e-08
8.3232e-07
-3.03078e-08
8.14121e-07
-2.81474e-08
8.2437e-07
-8.43633e-08
8.51197e-07
-1.6314e-07
8.4406e-07
-1.5247e-07
8.46182e-07
-1.6483e-07
8.07829e-07
-1.16295e-07
6.64476e-07
1.39404e-08
5.25656e-07
8.56837e-08
3.92811e-07
2.01308e-07
2.91042e-07
2.35134e-07
2.00257e-07
2.66923e-07
1.39888e-07
2.76484e-07
9.74909e-08
2.43913e-07
5.05464e-08
1.95184e-07
1.3457e-09
1.8923e-07
-1.93171e-08
2.55274e-07
-1.72406e-08
3.30637e-07
1.28163e-08
3.07085e-07
5.45204e-08
2.91934e-07
7.97218e-08
2.90306e-07
9.63801e-08
1.90008e-07
5.0666e-08
1.28867e-07
9.5227e-08
4.09348e-07
-3.0838e-07
4.07125e-07
-3.41933e-07
4.05733e-07
-3.80473e-07
4.63168e-07
-4.89791e-07
5.44249e-07
-6.03846e-07
5.79166e-07
-6.41485e-07
5.88883e-07
-6.22575e-07
5.54779e-07
-5.50114e-07
5.00702e-07
-4.61393e-07
4.86843e-07
-3.77366e-07
5.12391e-07
-2.88312e-07
5.19754e-07
-2.40538e-07
4.96497e-07
-2.17203e-07
4.34541e-07
-1.60547e-07
4.35213e-07
-1.62775e-07
4.63263e-07
-1.03166e-07
5.36036e-07
-1.03081e-07
6.07808e-07
-9.99181e-08
6.53212e-07
-1.29767e-07
6.55951e-07
-1.65879e-07
5.26812e-07
-2.33298e-08
3.62476e-07
-4.93096e-10
1.77592e-07
6.85893e-08
-8.25813e-09
1.99791e-07
-1.03615e-07
1.8104e-07
-1.40648e-07
2.38341e-07
-1.51412e-07
2.45899e-07
-1.38504e-07
2.54016e-07
-1.00942e-07
2.38922e-07
-6.56009e-08
2.08572e-07
-6.14261e-08
1.9101e-07
-6.73119e-08
1.95116e-07
-4.15248e-08
2.29487e-07
7.05648e-09
2.82056e-07
3.462e-08
2.79523e-07
6.03752e-08
2.6618e-07
9.629e-08
2.54391e-07
9.09174e-08
1.95381e-07
4.76003e-08
1.72184e-07
1.42828e-07
3.84654e-07
-2.98944e-07
3.52198e-07
-3.09477e-07
3.61858e-07
-3.90132e-07
4.29486e-07
-5.5742e-07
4.54081e-07
-6.28441e-07
4.34077e-07
-6.21482e-07
3.37249e-07
-5.25748e-07
2.24192e-07
-4.37056e-07
1.46352e-07
-3.83553e-07
1.00918e-07
-3.31931e-07
8.78899e-08
-2.75283e-07
1.05474e-07
-2.58123e-07
1.27781e-07
-2.39509e-07
1.38129e-07
-1.70895e-07
1.64795e-07
-1.89441e-07
2.67229e-07
-2.05599e-07
3.2794e-07
-1.63791e-07
3.20284e-07
-9.22614e-08
2.1079e-07
-2.02719e-08
2.91512e-08
1.57616e-08
-1.37468e-07
1.4329e-07
-2.95025e-07
1.57065e-07
-3.47553e-07
1.21118e-07
-3.39834e-07
1.92072e-07
-3.66777e-07
2.07983e-07
-3.45529e-07
2.17094e-07
-3.03937e-07
2.04306e-07
-2.50897e-07
2.00976e-07
-1.91268e-07
1.79293e-07
-1.41649e-07
1.58953e-07
-1.15907e-07
1.65268e-07
-1.06312e-07
1.85522e-07
-9.35569e-08
2.16732e-07
-5.07528e-08
2.39252e-07
-9.60686e-09
2.38377e-07
2.10433e-08
2.3553e-07
5.31988e-08
2.22236e-07
4.73772e-08
2.01203e-07
2.9068e-08
1.90493e-07
1.71896e-07
2.67446e-07
-2.69494e-07
2.28812e-07
-2.70843e-07
2.82959e-07
-4.44279e-07
3.23541e-07
-5.98001e-07
2.8228e-07
-5.8718e-07
2.17928e-07
-5.5713e-07
1.05936e-07
-4.13754e-07
4.07178e-08
-3.71836e-07
-8.30713e-09
-3.34528e-07
-3.82819e-08
-3.01956e-07
-4.32579e-08
-2.70307e-07
-3.52108e-08
-2.6617e-07
2.38232e-09
-2.77103e-07
8.37761e-08
-2.52289e-07
9.65982e-08
-2.02262e-07
-1.21832e-08
-9.68172e-08
-1.5246e-07
-2.35138e-08
-2.85396e-07
4.06757e-08
-3.95606e-07
8.99382e-08
-4.89914e-07
1.1007e-07
-4.76819e-07
1.30194e-07
-4.68839e-07
1.49086e-07
-5.09294e-07
1.61573e-07
-4.87859e-07
1.70638e-07
-4.41208e-07
1.61332e-07
-3.75571e-07
1.51456e-07
-3.11204e-07
1.39939e-07
-2.5226e-07
1.42032e-07
-1.92864e-07
1.19897e-07
-1.58352e-07
1.24441e-07
-1.39656e-07
1.46573e-07
-1.36813e-07
1.82679e-07
-1.29679e-07
2.09597e-07
-1.09916e-07
2.19489e-07
-7.43047e-08
2.02766e-07
-3.24596e-08
1.93685e-07
-1.28796e-09
1.91065e-07
8.84987e-09
1.91065e-07
1.09148e-08
1.88429e-07
1.82811e-07
1.9766e-07
-2.49307e-07
1.66614e-07
-2.39796e-07
2.06405e-07
-4.8407e-07
2.01634e-07
-5.9323e-07
1.72707e-07
-5.58255e-07
1.51697e-07
-5.3612e-07
6.49321e-08
-3.26989e-07
-4.16573e-09
-3.02738e-07
-6.41783e-08
-2.74515e-07
-9.49195e-08
-2.71215e-07
-1.002e-07
-2.65027e-07
-8.51631e-08
-2.81207e-07
-1.1972e-07
-2.42547e-07
-2.3605e-07
-1.35957e-07
-3.73213e-07
-6.50977e-08
-4.88902e-07
1.88733e-08
-5.69184e-07
5.67687e-08
-5.99914e-07
7.14064e-08
-6.0363e-07
9.36552e-08
-5.91487e-07
9.79266e-08
-5.72804e-07
1.1151e-07
-5.49842e-07
1.26123e-07
-5.13003e-07
1.24735e-07
-4.58882e-07
1.16517e-07
-3.93358e-07
9.58078e-08
-3.28879e-07
8.69772e-08
-2.80256e-07
9.13161e-08
-2.23608e-07
8.53843e-08
-1.76632e-07
7.29203e-08
-1.45064e-07
9.28733e-08
-1.38518e-07
1.40027e-07
-1.32254e-07
1.76414e-07
-1.25374e-07
2.02718e-07
-1.16996e-07
2.11111e-07
-9.09181e-08
1.76688e-07
-5.36894e-08
1.56456e-07
-1.97253e-08
1.571e-07
-4.47503e-09
1.75815e-07
-2.81327e-09
1.86767e-07
1.79998e-07
1.18843e-07
-2.27518e-07
1.25159e-07
-2.46112e-07
1.48028e-07
-5.06939e-07
1.18054e-07
-5.63256e-07
1.0431e-07
-5.4451e-07
6.16798e-08
-4.93489e-07
1.0424e-08
-2.75734e-07
-3.27626e-08
-2.59551e-07
-7.59161e-08
-2.31361e-07
-1.13508e-07
-2.33623e-07
-1.41126e-07
-2.37409e-07
-2.14836e-07
-2.07496e-07
-3.46289e-07
-1.11093e-07
-4.37805e-07
-4.44404e-08
-5.06062e-07
3.16073e-09
-5.27126e-07
3.99388e-08
-5.30069e-07
5.97119e-08
-5.35044e-07
7.63805e-08
-5.42049e-07
1.0066e-07
-5.51608e-07
1.07486e-07
-5.41937e-07
1.01839e-07
-5.11578e-07
9.57647e-08
-4.52257e-07
6.54152e-08
-3.81481e-07
4.57402e-08
-3.23064e-07
3.73905e-08
-2.81979e-07
4.58929e-08
-2.48961e-07
5.82987e-08
-2.17219e-07
5.36427e-08
-1.86582e-07
4.22837e-08
-1.478e-07
5.40915e-08
-1.23676e-07
1.15903e-07
-1.12251e-07
1.6499e-07
-1.03205e-07
1.93672e-07
-8.75435e-08
1.9545e-07
-6.91849e-08
1.58329e-07
-5.11638e-08
1.38435e-07
-2.86819e-08
1.34618e-07
-1.54492e-08
1.62582e-07
-1.07388e-08
1.82057e-07
1.69259e-07
4.69503e-08
-1.93356e-07
1.30238e-07
-3.29399e-07
1.61108e-07
-5.37809e-07
1.47249e-07
-5.49396e-07
1.07193e-07
-5.04455e-07
3.80769e-09
-3.90103e-07
-1.68786e-08
-2.55048e-07
-4.56077e-08
-2.30822e-07
-8.08771e-08
-1.96091e-07
-1.29309e-07
-1.85191e-07
-1.7397e-07
-1.92748e-07
-2.49003e-07
-1.32463e-07
-3.49253e-07
-1.08413e-08
-4.13106e-07
1.94124e-08
-4.5263e-07
4.2685e-08
-4.74554e-07
6.18628e-08
-4.86709e-07
7.18663e-08
-4.87377e-07
7.70487e-08
-4.68865e-07
8.21467e-08
-4.34363e-07
7.29839e-08
-3.82306e-07
4.97825e-08
-3.233e-07
3.67594e-08
-2.70271e-07
1.23859e-08
-2.33868e-07
9.33734e-09
-2.0995e-07
1.34715e-08
-1.91774e-07
2.77167e-08
-1.6879e-07
3.53146e-08
-1.54063e-07
3.89156e-08
-1.40592e-07
2.88126e-08
-1.27372e-07
4.08716e-08
-1.1825e-07
1.06781e-07
-1.07494e-07
1.54235e-07
-8.8077e-08
1.74256e-07
-6.41914e-08
1.71565e-07
-5.00746e-08
1.44213e-07
-3.72848e-08
1.25645e-07
-2.89219e-08
1.26256e-07
-1.92873e-08
1.52948e-07
-8.48263e-09
1.71253e-07
1.60777e-07
2.23234e-07
-2.04865e-07
2.86672e-07
-3.92836e-07
2.59865e-07
-5.11002e-07
2.38608e-07
-5.28139e-07
1.94604e-07
-4.60451e-07
7.63776e-08
-2.71877e-07
2.14542e-08
-2.00124e-07
-2.53025e-08
-1.84065e-07
-7.52503e-08
-1.46143e-07
-1.45223e-07
-1.15218e-07
-2.27811e-07
-1.10159e-07
-2.96799e-07
-6.34755e-08
-3.3578e-07
2.81409e-08
-3.67322e-07
5.09556e-08
-4.01808e-07
7.7171e-08
-4.29719e-07
8.97741e-08
-4.28556e-07
7.07032e-08
-4.02802e-07
5.12943e-08
-3.41377e-07
2.07218e-08
-2.69597e-07
1.20266e-09
-2.05796e-07
-1.40181e-08
-1.5718e-07
-1.18563e-08
-1.31571e-07
-1.32226e-08
-1.14125e-07
-8.10768e-09
-9.99785e-08
-6.74992e-10
-8.44144e-08
1.21529e-08
-6.58069e-08
1.67074e-08
-6.69943e-08
4.01034e-08
-1.01988e-07
6.38071e-08
-1.43135e-07
8.20193e-08
-1.52181e-07
1.15828e-07
-1.38117e-07
1.4017e-07
-1.117e-07
1.47839e-07
-8.03792e-08
1.40244e-07
-6.80396e-08
1.31874e-07
-5.52755e-08
1.12882e-07
-4.55143e-08
1.16495e-07
-3.78573e-08
1.45291e-07
-1.81229e-08
1.51518e-07
1.42654e-07
4.04603e-07
-2.57957e-07
4.1355e-07
-4.01782e-07
3.42666e-07
-4.40118e-07
2.52852e-07
-4.38325e-07
1.52105e-07
-3.59705e-07
7.27382e-08
-1.9251e-07
2.7986e-08
-1.55372e-07
-9.71265e-09
-1.46366e-07
-4.44724e-08
-1.11384e-07
-9.5373e-08
-6.43181e-08
-1.71219e-07
-3.43132e-08
-2.3495e-07
2.55532e-10
-2.56498e-07
4.96884e-08
-2.36174e-07
3.06296e-08
-2.27108e-07
6.81049e-08
-2.47239e-07
1.09905e-07
-2.57469e-07
8.09335e-08
-2.34487e-07
2.83113e-08
-1.97643e-07
-1.61211e-08
-1.67616e-07
-2.8825e-08
-1.47737e-07
-3.38974e-08
-1.24895e-07
-3.46988e-08
-1.0853e-07
-2.95874e-08
-9.77264e-08
-1.89113e-08
-9.39092e-08
-4.49182e-09
-1.02526e-07
2.07701e-08
-1.25664e-07
3.98443e-08
-1.72279e-07
8.6718e-08
-2.3808e-07
1.29609e-07
-2.75294e-07
1.19234e-07
-2.62034e-07
1.02568e-07
-2.23583e-07
1.0172e-07
-1.85264e-07
1.0952e-07
-1.56568e-07
1.11548e-07
-1.33508e-07
1.08814e-07
-1.28518e-07
1.07892e-07
-1.11006e-07
9.89835e-08
-6.99456e-08
1.04231e-07
-2.33874e-08
1.0496e-07
1.19267e-07
5.22299e-07
-3.38802e-07
5.03822e-07
-3.83304e-07
4.47233e-07
-3.8353e-07
3.61512e-07
-3.52603e-07
2.32227e-07
-2.30421e-07
1.45984e-07
-1.06267e-07
7.5331e-08
-8.47191e-08
1.4803e-08
-8.58378e-08
-3.05561e-08
-6.60242e-08
-7.97431e-08
-1.5131e-08
-1.3451e-07
2.04538e-08
-1.73179e-07
3.89253e-08
-1.9199e-07
6.84995e-08
-2.28089e-07
6.67284e-08
-2.46895e-07
8.6911e-08
-2.32645e-07
9.56547e-08
-2.16767e-07
6.5055e-08
-1.98432e-07
9.97602e-09
-1.86715e-07
-2.78375e-08
-1.74672e-07
-4.08676e-08
-1.64665e-07
-4.39044e-08
-1.56252e-07
-4.31107e-08
-1.53661e-07
-3.21787e-08
-1.69111e-07
-3.46018e-09
-2.063e-07
3.26969e-08
-2.48455e-07
6.2926e-08
-2.88802e-07
8.01911e-08
-3.15052e-07
1.12967e-07
-3.12604e-07
1.27161e-07
-3.07632e-07
1.14262e-07
-2.96226e-07
9.11624e-08
-2.75901e-07
8.13954e-08
-2.58335e-07
9.19545e-08
-2.61502e-07
1.14716e-07
-2.57368e-07
1.04682e-07
-2.19145e-07
6.96687e-08
-1.58345e-07
3.81841e-08
-9.84201e-08
4.43062e-08
-4.63104e-08
5.28508e-08
7.29561e-08
6.37476e-07
-3.85732e-07
6.00799e-07
-3.46627e-07
5.05974e-07
-2.88705e-07
3.72168e-07
-2.18797e-07
2.44884e-07
-1.03137e-07
1.66169e-07
-2.75522e-08
1.05694e-07
-2.42441e-08
5.09316e-08
-3.10758e-08
-4.98931e-09
-1.01031e-08
-6.21794e-08
4.20588e-08
-1.258e-07
8.40739e-08
-1.85452e-07
9.85779e-08
-2.28186e-07
1.11233e-07
-2.70155e-07
1.08697e-07
-2.77094e-07
9.38501e-08
-2.57485e-07
7.60453e-08
-2.38162e-07
4.57317e-08
-2.31087e-07
2.90121e-09
-2.33588e-07
-2.53363e-08
-2.37233e-07
-3.72228e-08
-2.41071e-07
-4.00666e-08
-2.52759e-07
-3.14223e-08
-2.82739e-07
-2.19896e-09
-3.25137e-07
3.8938e-08
-3.63171e-07
7.07316e-08
-3.80594e-07
8.03492e-08
-3.85652e-07
8.52494e-08
-3.72267e-07
9.95829e-08
-3.50163e-07
1.05057e-07
-3.27098e-07
9.11973e-08
-3.03502e-07
6.75666e-08
-2.84941e-07
6.2834e-08
-2.71751e-07
7.87654e-08
-2.58661e-07
1.01627e-07
-2.36101e-07
8.2122e-08
-2.03801e-07
3.73681e-08
-1.51705e-07
-1.39118e-08
-9.46708e-08
-1.27288e-08
-5.57027e-08
1.38836e-08
1.72533e-08
6.69764e-07
-3.83066e-07
6.05782e-07
-2.82645e-07
4.90277e-07
-1.732e-07
3.50845e-07
-7.9365e-08
2.23388e-07
2.43192e-08
1.39776e-07
5.6059e-08
1.01298e-07
1.4235e-08
6.25149e-08
7.70722e-09
-1.16494e-08
6.40609e-08
-9.19573e-08
1.22367e-07
-1.6073e-07
1.52847e-07
-2.20356e-07
1.58204e-07
-2.62524e-07
1.53401e-07
-2.8919e-07
1.35363e-07
-3.0036e-07
1.0502e-07
-2.96812e-07
7.24973e-08
-2.94159e-07
4.30793e-08
-3.10307e-07
1.90489e-08
-3.45016e-07
9.3735e-09
-3.85374e-07
3.13477e-09
-4.19661e-07
-5.77987e-09
-4.52275e-07
1.19192e-09
-4.83143e-07
2.86695e-08
-4.97207e-07
5.30021e-08
-4.83638e-07
5.71624e-08
-4.58578e-07
5.5289e-08
-4.30166e-07
5.68374e-08
-4.02796e-07
7.22125e-08
-3.7938e-07
8.1641e-08
-3.57495e-07
6.93131e-08
-3.12414e-07
2.24857e-08
-2.6484e-07
1.52597e-08
-2.12103e-07
2.60288e-08
-1.51278e-07
4.08018e-08
-9.67138e-08
2.75584e-08
-6.0727e-08
1.38223e-09
-5.07112e-08
-2.39283e-08
-3.84147e-08
-2.50247e-08
-3.22108e-08
7.67932e-09
-1.49569e-08
5.65323e-07
-3.07246e-07
4.07186e-07
-1.24508e-07
2.56558e-07
-2.25718e-08
1.35597e-07
4.15963e-08
8.29605e-08
7.69554e-08
7.37313e-08
6.52881e-08
2.61516e-08
6.18148e-08
-6.33435e-08
9.72026e-08
-1.5498e-07
1.55697e-07
-2.29747e-07
1.97134e-07
-2.8224e-07
2.0534e-07
-3.13366e-07
1.8933e-07
-3.29454e-07
1.69489e-07
-3.31382e-07
1.37291e-07
-3.23214e-07
9.68525e-08
-3.14473e-07
6.37548e-08
-3.18768e-07
4.73743e-08
-3.5298e-07
5.32606e-08
-4.0879e-07
6.51832e-08
-4.62312e-07
5.66572e-08
-4.95723e-07
2.76321e-08
-5.13238e-07
1.87074e-08
-5.19e-07
3.44316e-08
-5.15475e-07
4.94781e-08
-5.11891e-07
5.35784e-08
-4.92888e-07
3.62852e-08
-4.59723e-07
2.36729e-08
-3.98691e-07
1.11808e-08
-3.19464e-07
2.41482e-09
-2.42151e-07
-7.99879e-09
-1.96678e-07
-2.2987e-08
-1.56349e-07
-2.50677e-08
-1.15858e-07
-1.44626e-08
-6.06367e-08
-1.44205e-08
-1.66034e-08
-1.64746e-08
1.62212e-08
-3.14417e-08
1.70314e-09
-9.40997e-09
1.63676e-09
-2.49581e-08
1.16941e-08
-2.37883e-09
-3.26287e-09
-6.59343e-08
-1.29099e-07
-1.84081e-07
-6.36212e-09
-2.44415e-07
3.7763e-08
-2.40878e-07
3.80591e-08
-2.03545e-07
3.96215e-08
-2.19606e-07
8.13496e-08
-2.95526e-07
1.37735e-07
-3.76211e-07
1.77887e-07
-4.14156e-07
1.93643e-07
-4.22477e-07
2.05455e-07
-4.20627e-07
2.0349e-07
-4.13637e-07
1.8234e-07
-3.996e-07
1.55452e-07
-3.8694e-07
1.2463e-07
-3.91516e-07
1.01428e-07
-4.16818e-07
8.90566e-08
-4.61153e-07
9.17089e-08
-5.1184e-07
1.03947e-07
-5.52674e-07
1.06017e-07
-5.78214e-07
8.21973e-08
-6.03536e-07
5.29539e-08
-6.13243e-07
2.84155e-08
-5.82613e-07
3.80198e-09
-5.34e-07
8.64139e-10
-4.86029e-07
5.60764e-09
-4.41883e-07
-7.8609e-09
-3.90538e-07
-2.76717e-08
-3.32022e-07
-4.73357e-08
-2.69244e-07
-6.03631e-08
-2.1218e-07
-6.50626e-08
-1.71452e-07
-6.37137e-08
-1.38776e-07
-5.77433e-08
-1.04391e-07
-4.88481e-08
-7.55718e-08
-4.32397e-08
-4.53478e-08
-4.66991e-08
-3.6156e-08
-4.06348e-08
-4.05321e-09
-4.15122e-08
1.09191e-08
-3.99313e-08
2.19704e-08
-1.34304e-08
1.87076e-08
-4.04779e-07
-6.66019e-08
-3.68469e-07
-4.26729e-08
-3.09395e-07
-2.13102e-08
-3.04522e-07
3.31858e-08
-3.53238e-07
8.83369e-08
-4.44511e-07
1.72622e-07
-4.91563e-07
1.84787e-07
-5.01862e-07
1.88186e-07
-4.99256e-07
1.91037e-07
-4.85812e-07
1.92011e-07
-4.60427e-07
1.78104e-07
-4.27178e-07
1.49091e-07
-4.00716e-07
1.2899e-07
-3.90398e-07
1.14313e-07
-3.98205e-07
1.09235e-07
-4.24462e-07
1.15314e-07
-4.62448e-07
1.29694e-07
-4.88137e-07
1.29636e-07
-4.94724e-07
1.12604e-07
-5.02866e-07
9.03406e-08
-5.19025e-07
6.91127e-08
-5.04395e-07
1.37862e-08
-4.81639e-07
-1.89546e-08
-4.5171e-07
-2.90652e-08
-4.12955e-07
-3.31472e-08
-3.73568e-07
-4.72468e-08
-3.35114e-07
-6.6125e-08
-3.00114e-07
-8.23339e-08
-2.65145e-07
-9.53317e-08
-2.23438e-07
-1.06769e-07
-1.77718e-07
-1.09434e-07
-1.3327e-07
-1.0219e-07
-9.75791e-08
-8.45391e-08
-6.65056e-08
-7.43124e-08
-3.67539e-08
-7.64507e-08
-4.1546e-09
-7.32349e-08
2.31502e-08
-6.88174e-08
2.74764e-08
-4.42581e-08
1.1283e-08
2.76283e-09
2.9991e-08
-2.84817e-07
-6.45553e-08
-2.74107e-07
-5.33822e-08
-2.75843e-07
-1.95738e-08
-3.14367e-07
7.17094e-08
-4.03795e-07
1.77765e-07
-4.85572e-07
2.544e-07
-5.2017e-07
2.19385e-07
-5.20152e-07
1.88168e-07
-5.07033e-07
1.77919e-07
-4.83654e-07
1.68632e-07
-4.50727e-07
1.45177e-07
-4.24812e-07
1.23175e-07
-4.11965e-07
1.16143e-07
-4.11848e-07
1.14196e-07
-4.24657e-07
1.22043e-07
-4.43206e-07
1.33862e-07
-4.53255e-07
1.39742e-07
-4.58161e-07
1.3454e-07
-4.6423e-07
1.18674e-07
-4.42374e-07
6.8485e-08
-4.26581e-07
5.33193e-08
-4.37052e-07
2.42576e-08
-4.61432e-07
5.42468e-09
-4.82962e-07
-7.5357e-09
-4.93915e-07
-2.21937e-08
-4.93703e-07
-4.74581e-08
-4.81685e-07
-7.81433e-08
-4.57886e-07
-1.06133e-07
-4.17562e-07
-1.35655e-07
-3.55728e-07
-1.68604e-07
-2.78104e-07
-1.87058e-07
-1.98644e-07
-1.81651e-07
-1.2973e-07
-1.53453e-07
-8.40441e-08
-1.19999e-07
-4.82004e-08
-1.12295e-07
-2.64442e-08
-9.49907e-08
-2.2206e-08
-7.30562e-08
-1.53294e-08
-5.11353e-08
-9.03846e-09
-3.52826e-09
2.09528e-08
-1.80802e-07
-5.89836e-08
-2.09653e-07
-2.45304e-08
-2.55031e-07
2.58049e-08
-3.28389e-07
1.45067e-07
-4.29097e-07
2.78473e-07
-4.92231e-07
3.17535e-07
-5.10667e-07
2.37821e-07
-5.05782e-07
1.83282e-07
-4.90326e-07
1.62462e-07
-4.65198e-07
1.43503e-07
-4.45093e-07
1.25072e-07
-4.39315e-07
1.17397e-07
-4.39266e-07
1.16094e-07
-4.45955e-07
1.20885e-07
-4.49039e-07
1.25127e-07
-4.5544e-07
1.40263e-07
-4.67871e-07
1.52174e-07
-4.83903e-07
1.50572e-07
-4.82126e-07
1.16897e-07
-4.98963e-07
8.53226e-08
-5.23016e-07
7.73722e-08
-5.60804e-07
6.20466e-08
-5.92459e-07
3.70798e-08
-6.08229e-07
8.23462e-09
-6.09921e-07
-2.0502e-08
-6.03785e-07
-5.35932e-08
-5.88287e-07
-9.36411e-08
-5.67508e-07
-1.26912e-07
-5.45031e-07
-1.58132e-07
-5.11575e-07
-2.0206e-07
-4.48761e-07
-2.49872e-07
-3.5638e-07
-2.74031e-07
-2.42998e-07
-2.66835e-07
-1.48247e-07
-2.1475e-07
-9.92272e-08
-1.61315e-07
-6.46125e-08
-1.29605e-07
-5.11182e-08
-8.65509e-08
-3.22862e-08
-6.99676e-08
-8.85564e-09
-2.69584e-08
1.2097e-08
-1.83189e-07
-4.15535e-08
-2.19079e-07
1.13606e-08
-2.75898e-07
8.26239e-08
-3.4584e-07
2.15008e-07
-3.96019e-07
3.28651e-07
-4.13465e-07
3.34982e-07
-4.47444e-07
2.71799e-07
-4.67723e-07
2.0356e-07
-4.61894e-07
1.56633e-07
-4.48789e-07
1.30398e-07
-4.42778e-07
1.19061e-07
-4.41548e-07
1.16166e-07
-4.45652e-07
1.20198e-07
-4.53114e-07
1.28347e-07
-4.66444e-07
1.38457e-07
-4.81339e-07
1.55158e-07
-4.88473e-07
1.59308e-07
-4.94651e-07
1.56749e-07
-5.11944e-07
1.34191e-07
-5.35886e-07
1.09264e-07
-5.57415e-07
9.8902e-08
-5.75457e-07
8.00884e-08
-5.90771e-07
5.23945e-08
-6.00131e-07
1.75951e-08
-5.95731e-07
-2.49029e-08
-5.80587e-07
-6.8737e-08
-5.55179e-07
-1.19049e-07
-5.28719e-07
-1.53372e-07
-5.12641e-07
-1.74211e-07
-5.08926e-07
-2.05775e-07
-4.81922e-07
-2.76876e-07
-4.11036e-07
-3.44917e-07
-3.09661e-07
-3.6821e-07
-2.10369e-07
-3.14043e-07
-1.71908e-07
-1.99776e-07
-1.35956e-07
-1.65557e-07
-1.11127e-07
-1.1138e-07
-8.8963e-08
-9.21323e-08
-4.77403e-08
-6.81816e-08
-3.56441e-08
-1.9019e-07
6.81881e-09
-2.23349e-07
4.45201e-08
-2.76124e-07
1.35399e-07
-3.35135e-07
2.74019e-07
-3.42454e-07
3.3597e-07
-3.49152e-07
3.4168e-07
-3.81702e-07
3.04349e-07
-4.13309e-07
2.35167e-07
-4.20919e-07
1.64243e-07
-4.16776e-07
1.26254e-07
-4.15725e-07
1.18009e-07
-4.18507e-07
1.18949e-07
-4.25925e-07
1.27616e-07
-4.37187e-07
1.39609e-07
-4.50583e-07
1.51853e-07
-4.58174e-07
1.62749e-07
-4.66585e-07
1.67719e-07
-4.77031e-07
1.67196e-07
-4.90571e-07
1.4773e-07
-4.98068e-07
1.16762e-07
-4.87868e-07
8.87018e-08
-4.71284e-07
6.3504e-08
-4.56248e-07
3.73579e-08
-4.36236e-07
-2.41733e-09
-4.07786e-07
-5.33532e-08
-3.71183e-07
-1.05341e-07
-3.227e-07
-1.67532e-07
-2.70892e-07
-2.0518e-07
-2.42484e-07
-2.02619e-07
-2.74058e-07
-1.74202e-07
-3.1876e-07
-2.32175e-07
-3.15466e-07
-3.48211e-07
-2.40653e-07
-4.43023e-07
-1.4586e-07
-4.08837e-07
-1.19301e-07
-2.26336e-07
-1.17054e-07
-1.67805e-07
-1.07401e-07
-1.21032e-07
-8.41535e-08
-1.1538e-07
-3.904e-08
-1.13295e-07
-7.46837e-08
-1.94547e-07
5.51058e-08
-2.3037e-07
8.03437e-08
-2.63856e-07
1.68885e-07
-2.77997e-07
2.8816e-07
-2.7192e-07
3.29893e-07
-2.68163e-07
3.37922e-07
-2.84048e-07
3.20235e-07
-3.09566e-07
2.60685e-07
-3.26123e-07
1.80799e-07
-3.33842e-07
1.33973e-07
-3.42e-07
1.26167e-07
-3.52104e-07
1.29054e-07
-3.65804e-07
1.41316e-07
-3.79832e-07
1.53637e-07
-3.89027e-07
1.61048e-07
-3.93429e-07
1.67152e-07
-3.92395e-07
1.66685e-07
-3.86654e-07
1.61455e-07
-3.83744e-07
1.44821e-07
-3.56008e-07
8.90273e-08
-2.99611e-07
3.23053e-08
-2.39091e-07
2.98379e-09
-1.79664e-07
-2.20691e-08
-1.38518e-07
-4.35637e-08
-8.63865e-08
-1.05484e-07
-3.04039e-08
-1.61323e-07
1.65141e-08
-2.14449e-07
7.47022e-08
-2.63367e-07
1.21237e-07
-2.49153e-07
1.16975e-07
-1.69941e-07
5.32327e-08
-1.68433e-07
-1.41315e-08
-2.80847e-07
1.58826e-09
-4.58743e-07
2.96669e-08
-4.36916e-07
-1.25565e-08
-1.84112e-07
-8.51225e-08
-9.52397e-08
-9.39886e-08
-1.12166e-07
-7.7334e-08
-1.32036e-07
-4.56035e-08
-1.45025e-07
-1.20287e-07
-2.29709e-07
8.69238e-08
-2.58936e-07
1.0957e-07
-2.74021e-07
1.8397e-07
-2.6815e-07
2.82289e-07
-2.46647e-07
3.0839e-07
-2.17689e-07
3.08964e-07
-1.8218e-07
2.84726e-07
-1.76304e-07
2.54809e-07
-1.95011e-07
1.99507e-07
-2.14314e-07
1.53275e-07
-2.26617e-07
1.3847e-07
-2.35529e-07
1.37966e-07
-2.41123e-07
1.46911e-07
-2.42468e-07
1.54982e-07
-2.39654e-07
1.58233e-07
-2.29454e-07
1.56952e-07
-2.10584e-07
1.47815e-07
-1.88884e-07
1.39755e-07
-1.77481e-07
1.33416e-07
-1.9107e-07
1.02615e-07
-1.88916e-07
3.01516e-08
-1.31455e-07
-5.44762e-08
-3.98416e-08
-1.13683e-07
4.71124e-08
-1.30519e-07
1.34433e-07
-1.92805e-07
1.92339e-07
-2.19228e-07
2.1453e-07
-2.36641e-07
2.16858e-07
-2.65697e-07
2.3636e-07
-2.68657e-07
3.06431e-07
-2.40013e-07
3.53235e-07
-2.15238e-07
3.06606e-07
-2.3422e-07
2.2516e-07
-3.77297e-07
1.33377e-07
-3.45132e-07
-4.63959e-08
-4.33906e-09
-1.59866e-07
1.82308e-08
-1.51354e-07
-1.20678e-07
-1.03413e-07
-1.79977e-07
-5.34213e-08
-1.95018e-07
-1.73708e-07
-2.81218e-07
1.38848e-07
-3.1804e-07
1.46392e-07
-3.14568e-07
1.80498e-07
-2.80451e-07
2.48173e-07
-2.45277e-07
2.73215e-07
-1.87084e-07
2.50771e-07
-1.43089e-07
2.40731e-07
-1.38252e-07
2.49971e-07
-1.32617e-07
1.93871e-07
-1.39435e-07
1.60094e-07
-1.44655e-07
1.4369e-07
-1.49831e-07
1.43142e-07
-1.5066e-07
1.4774e-07
-1.48661e-07
1.52983e-07
-1.43281e-07
1.52854e-07
-1.26762e-07
1.40433e-07
-1.01448e-07
1.22502e-07
-6.01497e-08
9.84572e-08
-5.24821e-09
7.85146e-08
3.83375e-08
5.90304e-08
7.62844e-08
-7.79516e-09
1.33328e-07
-1.11519e-07
1.89537e-07
-1.69892e-07
2.49368e-07
-1.9035e-07
2.67035e-07
-2.1047e-07
2.8549e-07
-2.37683e-07
3.01162e-07
-2.52312e-07
3.03338e-07
-2.67873e-07
3.03947e-07
-2.69266e-07
3.31741e-07
-2.67807e-07
3.79993e-07
-2.63491e-07
3.91469e-07
-2.45696e-07
2.82757e-07
-2.68586e-07
5.31055e-08
-1.15481e-07
-2.27881e-07
2.76646e-07
-2.7206e-07
6.24094e-08
-1.84536e-07
-2.08202e-07
-1.02487e-07
-2.62025e-07
-4.45043e-08
-2.53001e-07
-2.18211e-07
-3.10924e-07
2.40853e-07
-3.49581e-07
1.85049e-07
-3.57324e-07
1.88241e-07
-3.23465e-07
2.14314e-07
-2.55022e-07
2.04772e-07
-1.93165e-07
1.88914e-07
-1.49813e-07
1.97379e-07
-9.14946e-08
1.91652e-07
-6.2479e-08
1.64855e-07
-5.3224e-08
1.50839e-07
-5.47574e-08
1.45224e-07
-4.73194e-08
1.35704e-07
-3.47846e-08
1.35205e-07
-1.92951e-08
1.37493e-07
2.51566e-09
1.31043e-07
2.59428e-08
1.17006e-07
5.51919e-08
9.32528e-08
9.47076e-08
5.89414e-08
1.44342e-07
2.888e-08
2.1698e-07
-1.3608e-08
2.90322e-07
-8.1137e-08
3.32556e-07
-1.53753e-07
3.59825e-07
-1.9716e-07
3.70625e-07
-2.0115e-07
3.69589e-07
-2.09435e-07
3.60542e-07
-2.28636e-07
3.55693e-07
-2.47463e-07
3.48693e-07
-2.60874e-07
3.45038e-07
-2.65611e-07
3.40331e-07
-2.631e-07
3.22245e-07
-2.45404e-07
2.88652e-07
-2.12103e-07
1.40495e-07
-1.20427e-07
-7.48893e-08
9.9903e-08
-1.37805e-07
3.39563e-07
-1.44039e-07
6.86431e-08
-7.24019e-08
-2.79839e-07
-3.62588e-08
-2.98168e-07
-1.59063e-08
-2.73354e-07
-2.34117e-07
-2.4571e-07
3.28539e-07
-2.69945e-07
2.09284e-07
-2.8352e-07
2.01816e-07
-2.75398e-07
2.06192e-07
-2.07427e-07
1.36801e-07
-1.26314e-07
1.07801e-07
-6.44038e-08
1.35469e-07
-2.03505e-08
1.47598e-07
1.36133e-08
1.30891e-07
4.55183e-08
1.18934e-07
5.69954e-08
1.33747e-07
8.56261e-08
1.07074e-07
1.22153e-07
9.86775e-08
1.70453e-07
8.91938e-08
2.20683e-07
8.08129e-08
2.62481e-07
7.52091e-08
2.99965e-07
5.57687e-08
3.34183e-07
2.47225e-08
3.68209e-07
-5.14584e-09
4.01844e-07
-4.72432e-08
4.2396e-07
-1.03252e-07
4.24618e-07
-1.54412e-07
4.07201e-07
-1.79743e-07
3.96255e-07
-1.90203e-07
3.84307e-07
-1.97486e-07
3.69433e-07
-2.1376e-07
3.56573e-07
-2.34603e-07
3.45558e-07
-2.49859e-07
3.35945e-07
-2.55999e-07
3.18566e-07
-2.45722e-07
2.81517e-07
-2.08355e-07
1.93583e-07
-1.2417e-07
8.57446e-09
6.45809e-08
-1.13383e-07
2.21861e-07
-4.51e-08
2.71281e-07
5.4373e-08
-3.08292e-08
4.81294e-08
-2.73594e-07
2.24278e-08
-2.72467e-07
4.96018e-09
-2.55886e-07
-2.29155e-07
-2.28685e-07
3.98619e-07
-2.85495e-07
2.66095e-07
-2.94905e-07
2.11228e-07
-2.40321e-07
1.51608e-07
-2.20519e-07
1.17e-07
-2.23145e-07
1.10427e-07
-2.14168e-07
1.26492e-07
-1.0031e-07
3.37404e-08
-1.36508e-08
4.42311e-08
1.31189e-07
-2.59063e-08
2.59748e-07
5.18903e-09
3.16857e-07
4.99639e-08
3.39304e-07
7.62318e-08
3.65068e-07
6.34307e-08
3.89198e-07
5.6682e-08
4.10051e-07
5.43561e-08
4.48081e-07
1.77391e-08
4.8164e-07
-8.83663e-09
5.14952e-07
-3.84578e-08
5.3766e-07
-6.99516e-08
5.37159e-07
-1.0275e-07
5.0898e-07
-1.26233e-07
4.69898e-07
-1.40662e-07
4.42555e-07
-1.62861e-07
4.2044e-07
-1.75371e-07
3.94658e-07
-1.87978e-07
3.65822e-07
-2.05767e-07
3.32832e-07
-2.16868e-07
2.97462e-07
-2.20629e-07
2.57404e-07
-2.05665e-07
2.10735e-07
-1.61685e-07
1.31568e-07
-4.50027e-08
-8.13392e-09
2.04281e-07
-4.68587e-08
2.60583e-07
6.14151e-08
1.63005e-07
1.65392e-07
-1.34806e-07
1.02872e-07
-2.11074e-07
5.17852e-08
-2.2138e-07
1.7817e-08
-2.21917e-07
-2.11337e-07
-1.60621e-07
4.42075e-07
-1.1602e-07
2.21492e-07
-9.77353e-08
1.92942e-07
-1.62709e-07
2.16582e-07
-1.84881e-07
1.39171e-07
-1.72733e-07
9.82779e-08
-1.75017e-07
1.28775e-07
-1.15465e-07
-2.58115e-08
5.6313e-08
-1.27546e-07
2.01713e-07
-1.71305e-07
3.21198e-07
-1.14297e-07
4.03253e-07
-3.20911e-08
4.84547e-07
-5.06189e-09
5.27516e-07
2.0462e-08
5.42256e-07
4.19435e-08
5.70343e-07
2.62695e-08
5.80249e-07
7.83224e-09
5.8986e-07
-1.84466e-08
5.92397e-07
-4.09948e-08
5.88044e-07
-6.5598e-08
5.74442e-07
-8.91487e-08
5.5542e-07
-1.07211e-07
5.35077e-07
-1.2032e-07
5.13229e-07
-1.41012e-07
4.89235e-07
-1.51376e-07
4.55229e-07
-1.53972e-07
4.10974e-07
-1.61513e-07
3.5805e-07
-1.63944e-07
3.02814e-07
-1.65393e-07
2.53988e-07
-1.56839e-07
2.24285e-07
-1.31982e-07
1.93705e-07
-1.44211e-08
1.45477e-07
2.5251e-07
2.4507e-08
3.81554e-07
1.35495e-07
5.20172e-08
1.12832e-07
-1.12143e-07
5.70211e-08
-1.55263e-07
2.64281e-08
-1.90787e-07
1.51928e-08
-2.1068e-07
-1.96144e-07
1.68467e-08
4.03227e-07
3.62713e-08
2.02069e-07
3.16567e-08
1.97557e-07
5.02832e-08
1.97956e-07
1.64761e-08
1.72978e-07
-5.31641e-08
1.67918e-07
-6.7332e-08
1.42942e-07
-3.37562e-08
-5.93875e-08
9.75867e-08
-2.58889e-07
2.1169e-07
-2.85408e-07
3.05013e-07
-2.0762e-07
3.96809e-07
-1.23887e-07
4.32731e-07
-4.09835e-08
3.99719e-07
5.34738e-08
3.83396e-07
5.82662e-08
4.03983e-07
5.68357e-09
4.46051e-07
-3.42355e-08
4.7863e-07
-5.10249e-08
5.02039e-07
-6.44034e-08
5.14663e-07
-7.82223e-08
5.18653e-07
-9.31393e-08
5.17052e-07
-1.0561e-07
5.13348e-07
-1.16615e-07
4.99077e-07
-1.26741e-07
4.71909e-07
-1.24208e-07
4.3484e-07
-1.16903e-07
3.80212e-07
-1.06886e-07
3.07358e-07
-9.10895e-08
2.37604e-07
-9.5638e-08
1.9068e-07
-1.09915e-07
1.72796e-07
-1.14099e-07
1.95277e-07
-3.69037e-08
2.01128e-07
2.46658e-07
1.01078e-07
4.81607e-07
7.90947e-08
7.40023e-08
3.40991e-08
-6.71476e-08
1.41381e-08
-1.353e-07
1.41509e-08
-1.90799e-07
1.95878e-08
-2.16118e-07
-1.76556e-07
4.1166e-08
3.26982e-07
5.46849e-08
1.88551e-07
5.98747e-08
1.92367e-07
6.61289e-08
1.91702e-07
8.86978e-08
1.5041e-07
1.23742e-07
1.32873e-07
9.57326e-08
1.70952e-07
4.37926e-08
-7.4479e-09
1.43327e-07
-3.58424e-07
2.37437e-07
-3.79517e-07
2.88348e-07
-2.58531e-07
2.2521e-07
-6.07491e-08
1.75713e-07
8.51281e-09
9.9803e-08
1.29383e-07
8.962e-08
6.84493e-08
1.20682e-07
-2.53785e-08
1.54706e-07
-6.8259e-08
1.82676e-07
-7.89938e-08
2.08908e-07
-9.06353e-08
2.35763e-07
-1.05077e-07
2.65813e-07
-1.2319e-07
2.91055e-07
-1.30853e-07
3.03747e-07
-1.29307e-07
2.9815e-07
-1.21143e-07
2.75479e-07
-1.01538e-07
2.81047e-07
-1.22471e-07
2.91499e-07
-1.17339e-07
2.60988e-07
-6.05793e-08
2.25457e-07
-6.01056e-08
1.59255e-07
-4.37128e-08
1.65246e-07
-1.2009e-07
1.98095e-07
-6.9753e-08
1.80058e-07
2.64694e-07
3.79563e-08
6.23707e-07
-1.84509e-08
1.30412e-07
-2.6373e-08
-5.92271e-08
-2.7672e-08
-1.34e-07
-4.65997e-09
-2.13811e-07
2.19294e-08
-2.42709e-07
-1.54626e-07
4.81304e-08
2.68257e-07
9.16588e-08
1.45022e-07
1.11086e-07
1.72941e-07
1.30998e-07
1.71789e-07
1.5487e-07
1.26538e-07
1.90281e-07
9.74618e-08
2.24963e-07
1.3627e-07
2.31425e-07
-1.3911e-08
2.40075e-07
-3.67075e-07
2.40695e-07
-3.80137e-07
1.41639e-07
-1.59477e-07
-2.97038e-08
1.10594e-07
-3.21909e-08
1.09998e-08
9.32659e-09
8.78658e-08
1.59365e-08
6.18399e-08
-5.61595e-08
4.67181e-08
-9.97617e-08
-2.46571e-08
-2.82519e-08
-1.50503e-07
5.10705e-08
-1.69955e-07
8.79954e-08
-1.41999e-07
9.56065e-08
-1.30798e-07
1.12874e-07
-1.48118e-07
9.32843e-08
-1.09715e-07
-2.8196e-08
3.38711e-10
-6.39084e-08
-6.58234e-08
4.67167e-08
-2.33095e-07
7.36644e-08
-1.44286e-07
6.64956e-08
-5.34097e-08
1.22956e-07
-1.16567e-07
1.53704e-07
-7.44612e-08
1.77201e-07
-1.43587e-07
2.24152e-07
-1.16703e-07
1.77062e-07
3.11785e-07
1.59696e-07
6.41072e-07
7.68799e-09
2.82422e-07
-5.66842e-08
5.14375e-09
-6.21688e-08
-1.28516e-07
-4.12611e-08
-2.34719e-07
-1.66783e-08
-2.67292e-07
-1.71305e-07
4.97476e-08
2.36292e-07
1.01968e-07
9.28026e-08
1.17705e-07
1.57203e-07
1.41394e-07
1.481e-07
1.82588e-07
8.5343e-08
2.42602e-07
3.74459e-08
3.58584e-07
2.02866e-08
4.50874e-07
-1.06199e-07
3.41673e-07
-2.57875e-07
2.51929e-07
-2.90393e-07
1.53694e-07
-6.12427e-08
2.27853e-07
3.64359e-08
2.39267e-07
-4.14867e-10
3.21059e-07
6.07379e-09
3.67949e-07
1.49471e-08
3.78728e-07
3.59601e-08
3.89082e-07
-3.50231e-08
3.24667e-07
-8.60902e-08
2.25454e-07
-7.07464e-08
8.47084e-08
-1.23033e-09
-2.04311e-08
-2.56201e-08
-1.9034e-07
2.18192e-08
-4.1214e-07
1.1209e-07
-4.47816e-07
3.60167e-08
-2.69636e-07
-2.43986e-07
-2.05104e-07
-2.97626e-07
-1.40177e-07
-2.09213e-07
-5.83718e-08
-1.35214e-07
-2.86199e-08
-1.46319e-07
7.5425e-08
-1.78506e-07
1.66875e-07
-2.35037e-07
2.31204e-07
-1.81031e-07
3.08637e-07
2.34351e-07
4.14122e-07
5.35585e-07
3.03518e-07
3.93028e-07
1.79218e-07
1.29443e-07
4.17318e-08
8.96916e-09
-6.29715e-08
-1.30015e-07
-5.80318e-08
-2.72233e-07
-2.29337e-07
8.47294e-08
2.39493e-07
8.54365e-08
9.20952e-08
1.12741e-07
1.29898e-07
1.74916e-07
8.59254e-08
2.48513e-07
1.17453e-08
3.36607e-07
-5.06482e-08
4.39347e-07
-8.2452e-08
5.00618e-07
-1.6747e-07
5.17716e-07
-2.74971e-07
2.72782e-07
-4.5458e-08
1.33051e-07
7.84877e-08
3.30107e-07
-1.6062e-07
6.14563e-07
-2.84873e-07
9.86073e-07
-3.65441e-07
8.85235e-07
1.1579e-07
8.42162e-07
7.90226e-08
8.53636e-07
-4.64948e-08
8.80052e-07
-1.12496e-07
8.40756e-07
-3.14247e-08
7.35081e-07
1.04471e-07
6.24163e-07
8.53011e-08
4.73301e-07
1.72694e-07
1.76877e-07
4.08545e-07
-1.23964e-07
3.36887e-07
-3.54319e-07
-1.36318e-08
-1.37717e-07
-5.14229e-07
2.86314e-08
-3.75564e-07
2.14968e-08
-1.28082e-07
-1.44888e-09
-1.23374e-07
7.5376e-08
-2.55331e-07
1.6232e-07
-3.21977e-07
2.00521e-07
-2.19231e-07
3.28479e-07
1.06395e-07
4.77543e-07
3.86518e-07
4.79413e-07
3.91159e-07
4.0526e-07
2.036e-07
3.13392e-07
1.00843e-07
1.23122e-07
6.02463e-08
3.43678e-08
-1.83478e-07
-1.94966e-07
1.53368e-07
3.07492e-07
1.58358e-07
8.7105e-08
2.50355e-07
3.7901e-08
3.17978e-07
1.83016e-08
3.04746e-07
2.49773e-08
3.1067e-07
-5.65726e-08
3.98503e-07
-1.70285e-07
4.73832e-07
-2.42797e-07
5.59848e-07
-3.61001e-07
3.70807e-07
1.43572e-07
3.2587e-07
1.23424e-07
9.03264e-08
7.49089e-08
7.34703e-09
-2.01922e-07
-6.65357e-08
-2.91556e-07
1.21018e-07
-7.17819e-08
2.92998e-07
-9.2958e-08
4.49309e-07
-2.02808e-07
5.60908e-07
-2.24089e-07
7.36552e-07
-2.07057e-07
9.28932e-07
-8.79073e-08
1.00073e-06
1.35043e-08
1.01594e-06
1.57484e-07
1.03587e-06
3.88612e-07
9.38174e-07
4.34569e-07
6.40291e-07
2.84239e-07
3.0876e-07
-1.82699e-07
1.70202e-07
-2.36996e-07
9.77713e-08
-5.56404e-08
7.55797e-08
-1.01187e-07
1.43734e-07
-3.2349e-07
8.64148e-08
-2.64675e-07
-3.46825e-08
-9.81552e-08
1.56207e-07
-8.44867e-08
3.5262e-07
1.90109e-07
4.72015e-07
2.71761e-07
3.77212e-07
2.98401e-07
3.496e-07
1.28459e-07
3.70521e-07
3.9318e-08
1.63339e-07
2.36883e-08
-3.16269e-08
4.45209e-07
1.99012e-07
4.26781e-07
1.05533e-07
4.10977e-07
5.37049e-08
3.94975e-07
3.43049e-08
4.22707e-07
-2.7548e-09
4.70686e-07
-1.04551e-07
5.71661e-07
-2.71266e-07
5.32943e-07
-2.04077e-07
4.01798e-07
-2.29878e-07
4.98076e-07
4.73205e-08
5.03663e-07
1.17829e-07
5.38252e-07
4.03021e-08
4.3778e-07
-1.01449e-07
3.47142e-07
-2.00936e-07
4.77886e-07
-2.02532e-07
5.90064e-07
-2.05138e-07
6.11976e-07
-2.24731e-07
5.98619e-07
-2.10739e-07
5.73144e-07
-1.8158e-07
5.72602e-07
-8.73586e-08
5.60331e-07
2.57795e-08
5.57043e-07
1.60777e-07
5.77047e-07
3.68611e-07
5.97803e-07
4.13825e-07
6.44696e-07
2.37368e-07
4.77413e-07
-1.53871e-08
3.51784e-07
-1.11343e-07
3.81691e-07
-8.55253e-08
3.81262e-07
-1.00739e-07
2.49842e-07
-1.92034e-07
1.95927e-07
-2.10731e-07
1.30229e-07
-3.24627e-08
1.06756e-07
-6.10074e-08
2.04035e-07
9.28265e-08
3.08136e-07
1.67662e-07
4.74644e-07
1.31889e-07
5.60554e-07
4.25588e-08
4.4438e-07
1.555e-07
1.83479e-07
2.84599e-07
1.51855e-07
3.51994e-07
1.1896e-07
3.84455e-07
7.30723e-08
4.01578e-07
3.65826e-08
4.18811e-07
1.70715e-08
5.73467e-07
-1.57412e-07
6.79664e-07
-2.10759e-07
5.5282e-07
-1.44387e-07
4.76527e-07
-1.27821e-07
3.11254e-07
-6.45917e-08
3.1755e-07
4.09814e-08
3.70206e-07
6.51824e-08
4.08751e-07
1.74971e-09
3.79638e-07
-7.23524e-08
2.84358e-07
-1.0565e-07
2.10028e-07
-1.28173e-07
1.50274e-07
-1.4537e-07
7.75622e-08
-1.52012e-07
6.39495e-09
-1.39557e-07
-6.68581e-08
-1.08338e-07
-1.12058e-07
-4.21904e-08
-1.30237e-07
4.39402e-08
-1.04211e-07
1.34738e-07
5.80389e-08
2.0637e-07
2.63545e-07
2.08314e-07
3.94372e-07
1.06538e-07
3.69741e-07
9.24897e-09
2.8683e-07
-2.84306e-08
2.59361e-07
-5.80653e-08
2.47153e-07
-8.85167e-08
1.52302e-07
-9.72074e-08
3.35468e-09
-6.18067e-08
-1.14873e-07
8.57637e-08
-1.38084e-07
-3.77817e-08
-1.40304e-08
-3.12288e-08
1.25367e-07
2.82683e-08
3.84515e-07
-1.2726e-07
7.43771e-07
-3.16697e-07
5.66702e-07
3.32575e-07
2.33467e-07
6.17837e-07
3.8532e-07
1.64315e-07
9.30464e-08
2.50324e-07
-1.29402e-08
6.10718e-07
-3.23813e-07
7.2893e-07
-1.01128e-07
6.36724e-07
-6.52169e-08
5.47027e-07
-1.21044e-07
4.94428e-07
-9.17895e-08
3.72825e-07
-6.16007e-09
2.64414e-07
4.3826e-08
2.24228e-07
8.12173e-08
2.08102e-07
8.13244e-08
1.64122e-07
4.57016e-08
1.07434e-07
-1.56965e-08
6.05673e-08
-5.87874e-08
1.69854e-08
-8.4575e-08
-2.87944e-08
-9.95749e-08
-8.40008e-08
-9.6788e-08
-1.4066e-07
-8.28858e-08
-1.87666e-07
-6.13441e-08
-2.02972e-07
-2.69051e-08
-1.81009e-07
2.1972e-08
-1.15069e-07
6.88064e-08
4.15824e-09
8.71598e-08
1.34898e-07
7.76104e-08
2.0031e-07
4.11371e-08
2.06087e-07
3.45523e-09
2.05483e-07
-2.78253e-08
2.07996e-07
-6.05434e-08
2.08556e-07
-8.90325e-08
2.12443e-07
-1.01082e-07
2.35351e-07
-8.47269e-08
3.07141e-07
1.39554e-08
2.97027e-07
-2.76549e-08
3.59527e-07
-9.37157e-08
4.37826e-07
-5.00351e-08
3.81992e-07
-7.14231e-08
2.15492e-07
-1.50205e-07
3.529e-07
1.95167e-07
2.71148e-07
6.99576e-07
6.56477e-07
2.10958e-07
3.11268e-08
1.8121e-07
1.68105e-08
7.31384e-08
-2.15761e-07
6.15717e-08
-8.95506e-08
8.80491e-08
-9.1735e-08
4.67751e-08
-7.97816e-08
-7.1513e-09
-3.78285e-08
-2.94508e-08
1.61158e-08
-2.67688e-08
4.11838e-08
-1.80725e-10
5.46366e-08
3.52783e-08
4.58328e-08
6.53963e-08
1.56074e-08
6.38823e-08
-1.41417e-08
4.22744e-08
-3.71856e-08
1.01007e-08
-5.24258e-08
-2.87196e-08
-6.0765e-08
-6.58299e-08
-5.96596e-08
-9.69731e-08
-5.17206e-08
-1.19867e-07
-3.84418e-08
-1.26356e-07
-2.03956e-08
-1.04539e-07
1.55856e-10
-5.46179e-08
1.88859e-08
7.0947e-09
2.5425e-08
6.48841e-08
1.98166e-08
1.03513e-07
2.50135e-09
1.27668e-07
-2.07055e-08
1.44766e-07
-4.49353e-08
1.57587e-07
-7.33676e-08
1.7448e-07
-1.05934e-07
2.0017e-07
-1.26738e-07
2.44946e-07
-1.29497e-07
3.52458e-07
-9.35161e-08
4.1093e-07
-8.61538e-08
4.31802e-07
-1.14565e-07
5.29378e-07
-1.4758e-07
5.33462e-07
-7.54959e-08
4.20072e-07
-3.68422e-08
2.69658e-07
3.45576e-07
1.20378e-07
8.48847e-07
7.76845e-07
1.93684e-08
2.34525e-08
8.94164e-08
-5.32756e-08
-1.21193e-08
-1.14201e-07
-1.09342e-08
-9.07663e-08
-2.70545e-08
-7.55665e-08
-6.56928e-08
-4.10995e-08
-9.50376e-08
-8.45521e-09
-9.61856e-08
1.72843e-08
-8.35637e-08
2.85587e-08
-5.62922e-08
2.736e-08
-1.73381e-08
6.88381e-09
7.62064e-09
-9.3276e-09
1.09753e-08
-1.74833e-08
4.88485e-09
-3.10807e-08
-6.23745e-09
-4.12676e-08
-2.11194e-08
-4.58648e-08
-3.61082e-08
-4.46945e-08
-4.83522e-08
-3.95139e-08
-5.51388e-08
-3.16826e-08
-5.32259e-08
-2.23044e-08
-3.96424e-08
-1.34055e-08
-1.28806e-08
-7.85219e-09
2.02095e-08
-7.65559e-09
5.41404e-08
-1.41009e-08
8.31972e-08
-2.65272e-08
1.05902e-07
-4.33997e-08
1.22692e-07
-6.17151e-08
1.31322e-07
-8.19901e-08
1.30708e-07
-1.05341e-07
1.27083e-07
-1.23083e-07
1.27392e-07
-1.29829e-07
1.5514e-07
-1.21293e-07
1.62408e-07
-9.34729e-08
1.61166e-07
-1.13296e-07
1.32446e-07
-1.18853e-07
6.24618e-08
-5.5208e-09
-2.35881e-08
4.91959e-08
-8.79901e-08
4.09982e-07
-2.87598e-08
7.89608e-07
7.48079e-07
1.9198e-07
-2.75038e-08
1.71262e-07
-3.25821e-08
9.06954e-08
-3.36667e-08
2.65928e-08
-2.66512e-08
-2.65402e-08
-2.2473e-08
-6.75805e-08
-4.13253e-11
-9.71713e-08
2.11701e-08
-1.05035e-07
2.51256e-08
-9.51818e-08
1.86962e-08
-7.80257e-08
1.02228e-08
-5.08551e-08
-2.02983e-08
-2.72419e-08
-3.2972e-08
-1.75731e-08
-2.7166e-08
-1.44473e-08
-3.41997e-08
-1.63373e-08
-3.9363e-08
-2.04665e-08
-4.17096e-08
-2.44204e-08
-4.06969e-08
-2.63094e-08
-3.75735e-08
-2.45303e-08
-3.34281e-08
-1.74866e-08
-2.93623e-08
-4.52578e-09
-2.64003e-08
1.34578e-08
-2.58497e-08
3.49294e-08
-2.91325e-08
5.74893e-08
-3.66749e-08
7.87456e-08
-4.77807e-08
9.63076e-08
-6.09608e-08
1.08846e-07
-7.4276e-08
1.14174e-07
-8.73088e-08
1.11384e-07
-1.02531e-07
1.02816e-07
-1.14458e-07
9.40657e-08
-1.21048e-07
9.25305e-08
-1.19753e-07
8.9963e-08
-9.08962e-08
3.99354e-08
-6.32235e-08
-6.52803e-08
-1.36789e-08
-1.81007e-07
1.10214e-07
-2.55104e-07
1.23283e-07
-2.28705e-07
3.8359e-07
-7.74795e-08
6.38378e-07
6.70608e-07
1.41136e-07
-2.25948e-09
8.00302e-08
2.85539e-08
3.71193e-08
9.25947e-09
1.81373e-08
-7.69728e-09
3.89179e-09
-8.17812e-09
-1.04331e-08
1.43217e-08
-2.60103e-08
3.67622e-08
-3.66156e-08
3.57323e-08
-3.80202e-08
2.01013e-08
-1.78489e-08
-9.94831e-09
3.25051e-09
-4.14008e-08
2.46495e-09
-3.21703e-08
-4.40691e-09
-2.02614e-08
-7.28818e-09
-3.13054e-08
-9.14232e-09
-3.75285e-08
-1.01919e-08
-4.06735e-08
-1.00277e-08
-4.08571e-08
-7.83232e-09
-3.97748e-08
-2.86437e-09
-3.84e-08
5.13273e-09
-3.7361e-08
1.63288e-08
-3.75927e-08
3.01712e-08
-3.96747e-08
4.51916e-08
-4.41443e-08
5.95817e-08
-5.10848e-08
7.15597e-08
-5.97823e-08
8.00212e-08
-6.94004e-08
8.52555e-08
-7.9484e-08
8.60148e-08
-8.80932e-08
8.08066e-08
-9.73458e-08
7.25709e-08
-1.06234e-07
6.2899e-08
-1.11364e-07
4.95009e-08
-1.06393e-07
4.00112e-08
-8.13767e-08
-1.93162e-08
-3.87557e-09
-1.16778e-07
8.3813e-08
-1.6341e-07
1.56877e-07
-2.41372e-07
2.01221e-07
-2.10736e-07
3.52943e-07
-1.54972e-07
5.82619e-07
5.15636e-07
-1.0407e-07
-4.48378e-08
-6.18706e-08
-1.36565e-08
-2.62909e-08
-2.63883e-08
-2.86617e-09
-3.10771e-08
1.76459e-08
-2.86701e-08
4.47663e-08
-1.2816e-08
7.02171e-08
1.13307e-08
7.75203e-08
2.8439e-08
5.90238e-08
3.85701e-08
3.41721e-08
1.48812e-08
1.347e-08
-2.07027e-08
-6.14785e-09
-1.25555e-08
-1.2394e-08
-1.40271e-08
-1.18353e-08
-3.18648e-08
-1.01418e-08
-3.92057e-08
-8.72073e-09
-4.20695e-08
-6.3083e-09
-4.32451e-08
-2.50422e-09
-4.35748e-08
2.81377e-09
-4.37339e-08
9.91075e-09
-4.44674e-08
1.84376e-08
-4.60999e-08
2.76946e-08
-4.89041e-08
3.65868e-08
-5.30308e-08
4.38368e-08
-5.8353e-08
4.87879e-08
-6.47523e-08
5.108e-08
-7.17203e-08
5.06345e-08
-7.90346e-08
4.79678e-08
-8.54177e-08
4.2339e-08
-9.16849e-08
3.57951e-08
-9.96552e-08
3.19751e-08
-1.07519e-07
3.1702e-08
-1.06141e-07
4.10643e-08
-9.08339e-08
6.11142e-08
-2.39233e-08
3.47493e-08
1.10102e-07
1.60268e-08
1.75609e-07
-2.39173e-08
2.41186e-07
-9.75545e-08
4.26587e-07
-1.06067e-07
5.91104e-07
4.09548e-07
-7.5087e-08
-8.67139e-08
-4.22656e-08
-4.64796e-08
-2.32981e-08
-4.53578e-08
-7.58243e-09
-4.67989e-08
9.32423e-09
-4.55461e-08
3.71008e-08
-4.05478e-08
7.67917e-08
-2.83409e-08
1.1264e-07
-7.41625e-09
1.28527e-07
2.26838e-08
1.02018e-07
4.14124e-08
-3.76212e-08
1.18961e-07
-5.81385e-08
7.98327e-09
-4.21388e-08
-3.00189e-08
-2.92847e-08
-4.47311e-08
-2.03139e-08
-4.81962e-08
-1.4424e-08
-4.79719e-08
-9.73864e-09
-4.79375e-08
-5.1882e-09
-4.81178e-08
-5.58089e-10
-4.8347e-08
4.12274e-09
-4.91496e-08
8.89881e-09
-5.08888e-08
1.33746e-08
-5.33797e-08
1.71459e-08
-5.67746e-08
1.99559e-08
-6.11313e-08
2.1714e-08
-6.64941e-08
2.30229e-08
-7.3036e-08
2.42146e-08
-8.02362e-08
2.6502e-08
-8.77243e-08
2.81637e-08
-9.33885e-08
2.58518e-08
-9.7308e-08
2.17395e-08
-1.03371e-07
1.57053e-08
-1.00051e-07
1.51394e-08
-9.02562e-08
5.43173e-08
-6.31604e-08
1.34548e-07
2.99256e-08
2.08353e-07
1.01823e-07
2.51405e-07
1.98113e-07
2.52509e-07
4.25495e-07
2.16687e-07
6.26944e-07
6.26256e-07
-1.44063e-07
-9.32059e-08
-5.85035e-08
-3.2365e-08
-1.11404e-08
1.11875e-08
4.25447e-08
8.34254e-08
1.30531e-07
1.54298e-07
-3.70914e-08
-5.07212e-08
-2.88405e-08
-1.89446e-08
-1.13172e-08
-6.87251e-09
-3.93264e-09
-2.00543e-09
-5.97351e-10
6.43066e-10
1.73631e-09
2.67106e-09
3.40971e-09
3.93774e-09
4.34914e-09
4.91748e-09
6.06243e-09
8.02169e-09
1.06781e-08
1.37453e-08
1.68692e-08
2.10131e-08
3.01067e-08
6.00497e-08
1.5762e-07
2.8763e-07
4.41732e-07
5.84231e-07
7.22632e-07
5.8028e-09
-5.8028e-09
2.75258e-08
-2.1723e-08
5.64291e-08
-2.89034e-08
8.81026e-08
-3.16735e-08
1.16979e-07
-2.88767e-08
1.32246e-07
-1.52664e-08
1.38719e-07
-6.47389e-09
1.44312e-07
-5.59227e-09
1.49719e-07
-5.40762e-09
1.5395e-07
-4.23095e-09
1.58767e-07
-4.81751e-09
1.65656e-07
-6.88832e-09
1.72775e-07
-7.11984e-09
1.78361e-07
-5.58572e-09
1.82339e-07
-3.97818e-09
1.8678e-07
-4.44149e-09
1.91268e-07
-4.48816e-09
1.93442e-07
-2.1737e-09
1.92096e-07
1.3457e-09
1.87261e-07
4.83476e-09
1.79653e-07
7.6075e-09
1.70093e-07
9.56075e-09
1.60243e-07
9.84991e-09
1.51463e-07
8.77924e-09
1.44232e-07
7.23078e-09
1.36958e-07
7.27443e-09
1.30185e-07
6.77241e-09
1.22428e-07
7.75725e-09
1.13508e-07
8.91914e-09
1.06239e-07
7.26918e-09
9.74305e-08
8.80825e-09
8.53646e-08
1.20658e-08
7.09551e-08
1.44094e-08
4.83105e-08
2.26445e-08
2.74227e-08
2.08877e-08
1.25746e-08
1.48481e-08
6.10629e-09
6.46825e-09
8.39198e-09
-2.28575e-09
6.12779e-09
2.26412e-09
1.07138e-09
1.08342e-08
-1.6637e-08
2.49184e-08
-3.58073e-08
4.11858e-08
-4.51709e-08
6.28671e-08
-5.33548e-08
8.71062e-08
-5.31159e-08
1.14141e-07
-4.23011e-08
1.35174e-07
-2.75073e-08
1.49424e-07
-1.98422e-08
1.57222e-07
-1.32064e-08
1.61231e-07
-8.23967e-09
1.63891e-07
-7.47813e-09
1.66688e-07
-9.68496e-09
1.68377e-07
-8.80943e-09
1.69999e-07
-7.20787e-09
1.72943e-07
-6.92183e-09
1.79274e-07
-1.07733e-08
1.89932e-07
-1.51457e-08
2.02607e-07
-1.48494e-08
2.1313e-07
-9.17703e-09
2.15822e-07
2.14237e-09
2.12043e-07
1.13861e-08
2.07401e-07
1.42027e-08
2.02862e-07
1.43886e-08
1.9796e-07
1.36812e-08
1.92064e-07
1.31257e-08
1.84951e-07
1.43874e-08
1.74163e-07
1.75605e-08
1.62506e-07
1.94137e-08
1.51262e-07
2.01624e-08
1.39686e-07
1.88451e-08
1.26357e-07
2.21377e-08
1.10689e-07
2.77337e-08
9.53588e-08
2.97393e-08
8.66087e-08
3.13946e-08
7.38208e-08
3.36755e-08
5.44884e-08
3.41804e-08
3.72462e-08
2.37103e-08
2.86769e-08
6.28344e-09
2.84271e-08
2.51385e-09
5.91746e-09
1.21904e-08
-2.88275e-08
1.9747e-08
-4.33639e-08
2.95738e-08
-5.49978e-08
4.29697e-08
-6.67507e-08
5.84285e-08
-6.85748e-08
7.94717e-08
-6.33444e-08
1.00874e-07
-4.89095e-08
1.18501e-07
-3.74693e-08
1.30212e-07
-2.49177e-08
1.35095e-07
-1.31233e-08
1.34931e-07
-7.31373e-09
1.31876e-07
-6.63064e-09
1.29488e-07
-6.42142e-09
1.3225e-07
-9.96982e-09
1.42619e-07
-1.7291e-08
1.58604e-07
-2.67582e-08
1.75082e-07
-3.16242e-08
1.9193e-07
-3.16974e-08
2.08802e-07
-2.6049e-08
2.23921e-07
-1.29769e-08
2.31958e-07
3.34943e-09
2.32543e-07
1.36174e-08
2.27981e-07
1.89506e-08
2.20555e-07
2.1107e-08
2.10507e-07
2.31731e-08
1.99976e-07
2.49188e-08
1.87719e-07
2.9817e-08
1.69562e-07
3.75704e-08
1.51549e-07
3.8176e-08
1.35957e-07
3.44364e-08
1.19198e-07
3.88966e-08
1.02669e-07
4.4263e-08
9.04962e-08
4.19118e-08
8.36701e-08
3.82207e-08
7.87019e-08
3.86437e-08
7.31282e-08
3.97541e-08
6.11878e-08
3.56508e-08
4.90046e-08
1.84667e-08
4.15073e-08
1.00112e-08
1.07597e-08
1.04519e-08
-3.92795e-08
1.65737e-08
-4.94858e-08
2.46763e-08
-6.31004e-08
3.40169e-08
-7.60914e-08
4.31708e-08
-7.77289e-08
5.5471e-08
-7.56447e-08
7.04852e-08
-6.39238e-08
8.36481e-08
-5.06322e-08
9.63958e-08
-3.76654e-08
1.05656e-07
-2.23837e-08
1.10829e-07
-1.24869e-08
1.15768e-07
-1.1569e-08
1.24968e-07
-1.56221e-08
1.39471e-07
-2.44726e-08
1.59044e-07
-3.68643e-08
1.75573e-07
-4.32871e-08
1.86085e-07
-4.2136e-08
1.94583e-07
-4.01956e-08
2.01909e-07
-3.33744e-08
2.09888e-07
-2.09565e-08
2.15144e-07
-1.90625e-09
2.18967e-07
9.7949e-09
2.20258e-07
1.76594e-08
2.1921e-07
2.2155e-08
2.14652e-07
2.77304e-08
2.08867e-07
3.07039e-08
1.99691e-07
3.89933e-08
1.76588e-07
6.06735e-08
1.48483e-07
6.62803e-08
1.20563e-07
6.2357e-08
1.01075e-07
5.83841e-08
8.72103e-08
5.81282e-08
7.73209e-08
5.18013e-08
7.15235e-08
4.40181e-08
6.72215e-08
4.29458e-08
6.17819e-08
4.51938e-08
5.42293e-08
4.32035e-08
4.36049e-08
2.90912e-08
2.55532e-08
2.8063e-08
1.78516e-08
1.24825e-08
-5.1762e-08
2.39922e-08
-6.09956e-08
3.068e-08
-6.97883e-08
3.55707e-08
-8.09822e-08
4.08094e-08
-8.29677e-08
4.76894e-08
-8.25248e-08
5.8827e-08
-7.50615e-08
7.11715e-08
-6.29768e-08
8.46076e-08
-5.11016e-08
9.87229e-08
-3.6499e-08
1.11836e-07
-2.55999e-08
1.24791e-07
-2.45246e-08
1.38325e-07
-2.91556e-08
1.51603e-07
-3.77504e-08
1.65209e-07
-5.04698e-08
1.74435e-07
-5.25134e-08
1.73192e-07
-4.08932e-08
1.72567e-07
-3.95702e-08
1.70443e-07
-3.125e-08
1.60245e-07
-1.07589e-08
1.53076e-07
5.2634e-09
1.5233e-07
1.05402e-08
1.61286e-07
8.70401e-09
1.70431e-07
1.30094e-08
1.72683e-07
2.54793e-08
1.68431e-07
3.4955e-08
1.59234e-07
4.8191e-08
1.43533e-07
7.63742e-08
1.23346e-07
8.64678e-08
1.01755e-07
8.39478e-08
8.15274e-08
7.86117e-08
6.77916e-08
7.18641e-08
6.16417e-08
5.79513e-08
5.75491e-08
4.81109e-08
5.219e-08
4.8305e-08
4.77111e-08
4.96728e-08
4.22825e-08
4.86322e-08
2.63816e-08
4.49922e-08
9.66083e-09
4.47839e-08
1.77038e-08
2.16237e-08
-7.33857e-08
3.18628e-08
-7.1235e-08
3.43308e-08
-7.22564e-08
3.97697e-08
-8.64213e-08
4.61265e-08
-8.93247e-08
5.25888e-08
-8.89872e-08
6.0621e-08
-8.30939e-08
6.88614e-08
-7.12172e-08
7.65114e-08
-5.87516e-08
8.31167e-08
-4.31043e-08
9.04735e-08
-3.29566e-08
9.88102e-08
-3.28612e-08
1.00985e-07
-3.133e-08
9.44409e-08
-3.12065e-08
7.81674e-08
-3.41963e-08
5.75179e-08
-3.18638e-08
3.56096e-08
-1.89849e-08
1.67965e-08
-2.0757e-08
1.27587e-08
-2.72121e-08
2.34681e-08
-2.14683e-08
4.53113e-08
-1.65797e-08
6.26249e-08
-6.7732e-09
8.19095e-08
-1.05805e-08
1.00776e-07
-5.85737e-09
1.04631e-07
2.16245e-08
9.58357e-08
4.37506e-08
8.20174e-08
6.20096e-08
6.78522e-08
9.05395e-08
5.77108e-08
9.66094e-08
4.49941e-08
9.66646e-08
3.43875e-08
8.92185e-08
3.28681e-08
7.33836e-08
3.20839e-08
5.87357e-08
2.51487e-08
5.50461e-08
1.73423e-08
5.61116e-08
1.19836e-08
5.50316e-08
7.40066e-09
5.32152e-08
-3.52317e-10
5.27452e-08
2.46799e-10
4.41848e-08
1.20133e-08
1.99401e-08
-9.3326e-08
1.90918e-08
-7.0387e-08
1.62214e-08
-6.93862e-08
2.62623e-08
-9.64624e-08
3.78027e-08
-1.00865e-07
4.96579e-08
-1.00842e-07
5.80938e-08
-9.15299e-08
6.262e-08
-7.57434e-08
6.50777e-08
-6.12093e-08
6.89431e-08
-4.69697e-08
7.14754e-08
-3.54889e-08
6.37626e-08
-2.51484e-08
4.44404e-08
-1.20078e-08
2.16877e-08
-8.45367e-09
-7.66305e-09
-4.84549e-09
-4.02817e-08
7.54968e-10
-5.52727e-08
-3.99386e-09
-5.83536e-08
-1.76761e-08
-6.02619e-08
-2.53037e-08
-4.75662e-08
-3.41639e-08
-2.87544e-08
-3.53914e-08
-1.3583e-08
-2.19445e-08
-1.13099e-08
-1.28535e-08
-1.89476e-08
1.78044e-09
-3.07262e-08
3.34034e-08
-4.86419e-08
6.16665e-08
-7.30855e-08
8.64533e-08
-8.45433e-08
1.01998e-07
-8.7612e-08
9.96782e-08
-8.26356e-08
9.16884e-08
-6.77137e-08
7.42968e-08
-5.75355e-08
6.32054e-08
-5.68476e-08
5.80479e-08
-5.4215e-08
5.24136e-08
-4.4647e-08
4.65436e-08
-3.56428e-08
4.60274e-08
-2.94387e-08
4.7011e-08
-2.2351e-08
4.56576e-08
-1.08964e-08
3.27302e-08
5.34093e-09
-5.98131e-10
-9.2728e-08
-6.38494e-09
-6.46004e-08
-9.89117e-09
-6.58802e-08
3.01616e-09
-1.0937e-07
1.78291e-08
-1.15678e-07
3.21566e-08
-1.1517e-07
4.44476e-08
-1.03821e-07
5.10617e-08
-8.23576e-08
5.42024e-08
-6.43501e-08
5.83076e-08
-5.10749e-08
5.6298e-08
-3.34793e-08
4.26979e-08
-1.15484e-08
2.20241e-08
8.66597e-09
-6.66379e-09
2.02342e-08
-4.95823e-08
3.8073e-08
-8.98781e-08
4.10508e-08
-1.13561e-07
1.96885e-08
-1.38641e-07
7.40475e-09
-1.56948e-07
-6.99738e-09
-1.68311e-07
-2.28005e-08
-1.74935e-07
-2.87676e-08
-1.70132e-07
-2.67475e-08
-1.69883e-07
-1.31023e-08
-1.82434e-07
1.43317e-08
-1.91243e-07
4.22129e-08
-1.93583e-07
6.40064e-08
-1.85987e-07
7.88575e-08
-1.71761e-07
8.77721e-08
-1.60132e-07
8.80492e-08
-1.42739e-07
7.42955e-08
-1.23392e-07
5.49504e-08
-1.09586e-07
4.93988e-08
-9.83956e-08
4.6858e-08
-8.65569e-08
4.05748e-08
-6.96398e-08
2.96264e-08
-5.25058e-08
2.88933e-08
-3.88649e-08
3.337e-08
-2.80839e-08
3.48766e-08
-1.76081e-08
2.22543e-08
6.46487e-10
-1.46454e-08
-7.80828e-08
-8.5897e-09
-7.06562e-08
-3.53867e-09
-7.09313e-08
1.98278e-09
-1.14891e-07
5.27598e-09
-1.18972e-07
1.09848e-08
-1.20879e-07
2.08387e-08
-1.13675e-07
2.98106e-08
-9.13294e-08
3.6099e-08
-7.06385e-08
4.25693e-08
-5.75453e-08
4.27272e-08
-3.36371e-08
2.38917e-08
7.28708e-09
-1.45213e-08
4.70789e-08
-7.30766e-08
7.87894e-08
-1.29764e-07
9.47602e-08
-1.67374e-07
7.86612e-08
-2.01366e-07
5.36799e-08
-2.30316e-07
3.63554e-08
-2.4407e-07
6.75657e-09
-2.55679e-07
-1.11921e-08
-2.65364e-07
-1.90816e-08
-2.70699e-07
-2.14133e-08
-2.69582e-07
-1.42192e-08
-2.67216e-07
1.19668e-08
-2.62538e-07
3.75344e-08
-2.46941e-07
4.84097e-08
-2.1909e-07
5.10071e-08
-1.84848e-07
5.35301e-08
-1.55114e-07
5.83153e-08
-1.27363e-07
4.6545e-08
-1.08044e-07
3.56311e-08
-9.25827e-08
3.39377e-08
-7.67836e-08
3.10588e-08
-6.65861e-08
3.03772e-08
-5.2782e-08
1.58221e-08
-3.84737e-08
1.45849e-08
-2.77883e-08
2.26845e-08
-1.7934e-08
2.50221e-08
-1.63437e-08
2.06639e-08
2.0647e-09
-1.23145e-08
-6.57683e-08
1.58872e-09
-8.45595e-08
1.36766e-08
-8.30192e-08
8.81748e-09
-1.10032e-07
6.12629e-09
-1.1628e-07
8.70763e-09
-1.2346e-07
1.35605e-08
-1.18528e-07
2.24755e-08
-1.00244e-07
3.15416e-08
-7.97046e-08
3.84266e-08
-6.44304e-08
3.38832e-08
-2.90938e-08
-2.0864e-08
6.20342e-08
-8.95197e-08
1.15735e-07
-1.35055e-07
1.24325e-07
-1.55502e-07
1.15207e-07
-1.77956e-07
1.01115e-07
-2.14049e-07
8.97721e-08
-2.45549e-07
6.78553e-08
-2.70346e-07
3.15538e-08
-2.8341e-07
1.87229e-09
-2.87545e-07
-1.49464e-08
-2.89352e-07
-1.96064e-08
-2.85799e-07
-1.77725e-08
-2.72376e-07
-1.45574e-09
-2.50131e-07
1.52895e-08
-2.21162e-07
1.94409e-08
-1.92154e-07
2.19994e-08
-1.61998e-07
2.33748e-08
-1.35704e-07
3.20212e-08
-1.1743e-07
2.82711e-08
-1.01303e-07
1.95039e-08
-8.438e-08
1.70146e-08
-5.83517e-08
5.03034e-09
-3.07279e-08
2.75333e-09
-8.52045e-09
-6.38558e-09
-3.16771e-09
9.23195e-09
-3.71328e-09
2.32299e-08
-3.86978e-09
2.51785e-08
-9.25537e-09
2.60493e-08
1.11245e-08
-1.33154e-09
-6.44368e-08
1.54319e-08
-1.01323e-07
3.09437e-08
-9.85309e-08
2.3268e-08
-1.02356e-07
1.35581e-08
-1.0657e-07
8.8548e-09
-1.18757e-07
8.756e-09
-1.18429e-07
1.37869e-08
-1.05275e-07
1.78945e-08
-8.38122e-08
1.46637e-08
-6.11996e-08
4.43526e-09
-1.88654e-08
-4.74617e-08
1.13931e-07
-9.87241e-08
1.66997e-07
-1.27881e-07
1.53481e-07
-1.37567e-07
1.24893e-07
-1.40826e-07
1.04375e-07
-1.51835e-07
1.00782e-07
-1.94119e-07
1.10139e-07
-2.55195e-07
9.263e-08
-2.91372e-07
3.80484e-08
-2.87852e-07
-1.8466e-08
-2.74563e-07
-3.28954e-08
-2.52082e-07
-4.02533e-08
-2.21611e-07
-3.19259e-08
-1.94259e-07
-1.20625e-08
-1.79509e-07
4.69088e-09
-1.68992e-07
1.14821e-08
-1.61098e-07
1.54817e-08
-1.49367e-07
2.029e-08
-1.40129e-07
1.90333e-08
-1.34222e-07
1.35962e-08
-1.13679e-07
-3.52824e-09
-7.62095e-08
-3.24395e-08
-2.92561e-08
-4.42003e-08
6.09482e-09
-4.17367e-08
2.03044e-08
-4.97781e-09
3.5868e-08
7.66613e-09
2.99648e-08
3.10815e-08
1.38396e-08
4.21743e-08
3.14407e-08
8.46638e-09
-7.29031e-08
2.2968e-08
-1.15824e-07
3.90241e-08
-1.14587e-07
3.91856e-08
-1.02518e-07
2.6837e-08
-9.42217e-08
6.30944e-09
-9.82293e-08
-5.87035e-09
-1.06249e-07
-7.09159e-09
-1.04054e-07
-7.39864e-09
-8.35052e-08
-1.68014e-08
-5.17969e-08
-2.30777e-08
-1.25892e-08
-1.41507e-08
1.05004e-07
-1.90813e-08
1.71927e-07
-4.19336e-08
1.76333e-07
-7.09011e-08
1.5386e-07
-7.4101e-08
1.07575e-07
-6.52767e-08
9.19572e-08
-8.74507e-08
1.32313e-07
-1.41595e-07
1.46775e-07
-2.12865e-07
1.09318e-07
-2.43295e-07
1.19648e-08
-2.43458e-07
-3.27322e-08
-2.17456e-07
-6.62553e-08
-1.78044e-07
-7.13383e-08
-1.36584e-07
-5.35218e-08
-1.12113e-07
-1.97802e-08
-1.10925e-07
1.0294e-08
-1.18035e-07
2.25914e-08
-1.10359e-07
1.26143e-08
-8.86236e-08
-2.70268e-09
-9.6374e-08
2.13466e-08
-9.99637e-08
6.12665e-11
-7.39984e-08
-5.8405e-08
-2.80071e-08
-9.01918e-08
9.98261e-09
-7.97266e-08
4.63329e-08
-4.13283e-08
6.62769e-08
-1.2278e-08
6.90987e-08
2.82595e-08
6.24055e-08
4.88674e-08
5.28651e-08
1.88608e-08
-9.17639e-08
3.30161e-08
-1.2998e-07
4.57267e-08
-1.27298e-07
4.98179e-08
-1.06609e-07
4.38091e-08
-8.82129e-08
1.91765e-08
-7.35967e-08
-8.61415e-09
-7.84584e-08
-1.9225e-08
-9.34433e-08
-1.91341e-08
-8.35961e-08
-2.36646e-08
-4.72665e-08
-2.72598e-08
-8.994e-09
1.17712e-08
6.59729e-08
4.90968e-08
1.34602e-07
5.60333e-08
1.69397e-07
3.71223e-08
1.72771e-07
3.82391e-10
1.44314e-07
-2.84503e-08
1.2079e-07
-3.41175e-08
1.3798e-07
-3.06734e-08
1.43331e-07
-5.07573e-08
1.29401e-07
-1.08101e-07
6.93085e-08
-1.50437e-07
9.60379e-09
-1.58381e-07
-5.83115e-08
-1.36493e-07
-9.32264e-08
-9.40771e-08
-9.59376e-08
-5.27386e-08
-6.11188e-08
-3.78785e-08
-4.56624e-09
-3.53843e-08
2.00969e-08
-1.67933e-08
-5.97677e-09
4.41654e-09
-2.39127e-08
1.15678e-09
2.46061e-08
-7.16936e-09
8.38724e-09
3.77288e-09
-6.93473e-08
1.46953e-08
-1.01114e-07
3.04943e-08
-9.55256e-08
5.11076e-08
-6.19416e-08
5.73211e-08
-1.84915e-08
5.76838e-08
2.78968e-08
5.56762e-08
5.08749e-08
5.69003e-08
1.59384e-08
-1.07702e-07
2.74443e-08
-1.41486e-07
3.83218e-08
-1.38175e-07
4.80238e-08
-1.16311e-07
5.25472e-08
-9.27364e-08
4.32818e-08
-6.43314e-08
6.32691e-09
-4.15035e-08
-2.59389e-08
-6.11775e-08
-3.18546e-08
-7.76804e-08
-2.66189e-08
-5.25022e-08
-3.13868e-08
-4.22607e-09
-2.75248e-09
3.73386e-08
4.02667e-08
9.15827e-08
5.51326e-08
1.54531e-07
5.09666e-08
1.76937e-07
3.10699e-08
1.64211e-07
1.35501e-08
1.3831e-07
2.08236e-08
1.30707e-07
2.94261e-08
1.34728e-07
2.75933e-08
1.31234e-07
-7.76205e-09
1.04664e-07
-4.93785e-08
5.12201e-08
-9.02756e-08
-1.74145e-08
-1.0752e-07
-7.59818e-08
-1.1137e-07
-9.20881e-08
-9.63772e-08
-7.61117e-08
-6.72225e-08
-3.37211e-08
-3.61292e-08
-1.09965e-08
-2.16717e-08
-2.04344e-08
-2.09966e-08
-2.45879e-08
4.24806e-09
-6.3862e-10
4.27686e-08
-3.01333e-08
5.87211e-08
-8.52998e-08
5.179e-08
-9.41831e-08
3.75098e-08
-8.12453e-08
3.06842e-08
-5.51158e-08
3.14332e-08
-1.92404e-08
4.42964e-08
1.50337e-08
4.6207e-08
4.89643e-08
6.04232e-08
6.87068e-09
-1.14573e-07
1.16325e-08
-1.46248e-07
1.84465e-08
-1.44989e-07
3.48011e-08
-1.32666e-07
5.11108e-08
-1.09046e-07
5.60966e-08
-6.93173e-08
3.57777e-08
-2.11847e-08
-5.3668e-09
-2.0033e-08
-3.72661e-08
-4.57811e-08
-3.60516e-08
-5.37167e-08
-3.03991e-08
-9.87857e-09
-2.60439e-08
3.29834e-08
-8.55377e-09
7.40926e-08
9.94983e-09
1.36027e-07
2.94577e-08
1.57429e-07
4.39043e-08
1.49764e-07
4.29645e-08
1.39249e-07
3.90407e-08
1.3463e-07
3.61137e-08
1.37655e-07
3.68234e-08
1.30524e-07
1.15299e-08
1.29957e-07
-1.92339e-08
8.19837e-08
-6.34376e-08
2.67888e-08
-1.07722e-07
-3.16973e-08
-1.26732e-07
-7.30791e-08
-1.30164e-07
-7.26792e-08
-1.09857e-07
-5.40287e-08
-7.49403e-08
-4.59134e-08
-4.1691e-08
-5.36839e-08
-8.38966e-09
-5.78893e-08
3.8044e-08
-4.70723e-08
7.96434e-08
-7.17325e-08
8.0787e-08
-8.64433e-08
6.65715e-08
-7.99673e-08
4.33276e-08
-5.80011e-08
2.06811e-08
-3.24691e-08
1.99977e-08
-1.85569e-08
2.57746e-08
9.25686e-09
3.34833e-08
4.12556e-08
5.51837e-08
4.8857e-09
-1.19459e-07
9.41694e-09
-1.50779e-07
1.49809e-08
-1.50553e-07
2.62724e-08
-1.43957e-07
4.06285e-08
-1.23402e-07
5.91614e-08
-8.78502e-08
7.67018e-08
-3.87251e-08
6.87139e-08
-1.20451e-08
3.2482e-08
-9.54909e-09
-2.35114e-09
-1.88835e-08
-6.11633e-09
-6.11331e-09
-4.40172e-09
3.12688e-08
-6.12415e-09
7.5815e-08
2.74173e-09
1.27161e-07
1.78583e-08
1.42313e-07
3.34063e-08
1.34216e-07
3.26017e-08
1.40054e-07
2.87826e-08
1.38449e-07
3.54708e-08
1.30967e-07
5.11177e-08
1.14877e-07
5.81857e-08
1.22889e-07
4.05046e-08
9.96647e-08
-2.07035e-08
8.79966e-08
-7.79798e-08
2.55788e-08
-1.0505e-07
-4.60096e-08
-1.1577e-07
-6.19591e-08
-1.05789e-07
-6.40095e-08
-8.04351e-08
-7.12678e-08
-4.86248e-08
-8.54943e-08
-1.95878e-08
-8.69263e-08
2.02513e-08
-8.69112e-08
3.90704e-08
-9.05514e-08
2.29362e-08
-7.03089e-08
1.44166e-09
-5.84724e-08
-7.71046e-09
-4.88487e-08
-4.46107e-09
-3.57182e-08
-1.85893e-09
-2.11589e-08
3.88173e-10
7.00978e-09
9.10573e-09
3.25379e-08
4.99896e-08
1.50261e-08
-1.34485e-07
2.73066e-08
-1.63059e-07
3.98006e-08
-1.63047e-07
4.63872e-08
-1.50544e-07
4.95915e-08
-1.26607e-07
6.19246e-08
-1.00183e-07
8.44493e-08
-6.12497e-08
9.59531e-08
-2.35489e-08
9.03695e-08
-3.96535e-09
6.08606e-08
1.06254e-08
3.64152e-08
1.83322e-08
3.55757e-08
3.21084e-08
3.57802e-08
7.56105e-08
3.7478e-08
1.25464e-07
3.07327e-08
1.49058e-07
1.95753e-08
1.45374e-07
1.57989e-08
1.4383e-07
1.62216e-08
1.38027e-07
2.51477e-08
1.22041e-07
4.00343e-08
9.99906e-08
5.70257e-08
1.05897e-07
5.4015e-08
1.02675e-07
2.13243e-08
1.20687e-07
-4.3328e-08
9.02308e-08
-7.07729e-08
-1.8565e-08
-7.55582e-08
-5.7174e-08
-7.45518e-08
-6.50161e-08
-7.3638e-08
-7.21818e-08
-7.04021e-08
-8.87303e-08
-5.61911e-08
-1.01137e-07
-4.25703e-08
-1.00532e-07
-4.65813e-08
-8.65403e-08
-6.40128e-08
-5.28774e-08
-7.82061e-08
-4.4279e-08
-7.94237e-08
-4.76309e-08
-7.08476e-08
-4.42943e-08
-6.33726e-08
-2.86339e-08
-5.74939e-08
1.13088e-09
-4.77067e-08
2.27505e-08
4.68259e-08
3.73836e-08
-1.71869e-07
6.20033e-08
-1.87679e-07
7.57304e-08
-1.76774e-07
7.83567e-08
-1.5317e-07
7.74142e-08
-1.25664e-07
7.68344e-08
-9.96033e-08
8.84089e-08
-7.28241e-08
1.04495e-07
-3.96351e-08
1.13016e-07
-1.24857e-08
1.13532e-07
1.01095e-08
9.76856e-08
3.41782e-08
8.25451e-08
4.72489e-08
8.27796e-08
7.53758e-08
8.54173e-08
1.22826e-07
8.08946e-08
1.53581e-07
6.64469e-08
1.59821e-07
5.26828e-08
1.57594e-07
4.12534e-08
1.49456e-07
3.69074e-08
1.26386e-07
4.18644e-08
9.50334e-08
4.86714e-08
9.909e-08
3.97229e-08
1.11623e-07
1.23946e-08
1.48015e-07
-4.01659e-08
1.42791e-07
-6.6635e-08
7.90378e-09
-7.19854e-08
-5.18239e-08
-7.73273e-08
-5.96745e-08
-8.04086e-08
-6.91006e-08
-7.83724e-08
-9.07667e-08
-7.77824e-08
-1.01727e-07
-7.52932e-08
-1.03021e-07
-7.98697e-08
-8.19638e-08
-9.35649e-08
-3.91822e-08
-1.07904e-07
-2.99405e-08
-1.17926e-07
-3.76089e-08
-1.23039e-07
-3.91814e-08
-1.24827e-07
-2.68462e-08
-1.18509e-07
-5.18734e-09
-1.11203e-07
1.54447e-08
3.89691e-08
5.04277e-08
-2.22296e-07
7.27772e-08
-2.10028e-07
7.72339e-08
-1.81231e-07
7.70737e-08
-1.5301e-07
8.32904e-08
-1.31881e-07
9.33262e-08
-1.09639e-07
1.03328e-07
-8.28261e-08
1.17232e-07
-5.35388e-08
1.23425e-07
-1.86789e-08
1.22456e-07
1.10784e-08
1.14488e-07
4.21457e-08
1.03884e-07
5.78532e-08
9.32992e-08
8.59605e-08
9.19894e-08
1.24136e-07
9.46566e-08
1.50913e-07
9.2809e-08
1.61669e-07
9.00068e-08
1.60396e-07
8.52133e-08
1.54249e-07
8.22973e-08
1.29302e-07
7.63554e-08
1.00975e-07
6.13453e-08
1.141e-07
3.12175e-08
1.41751e-07
-9.807e-09
1.89039e-07
-5.22121e-08
1.85196e-07
-6.26576e-08
1.83488e-08
-7.70891e-08
-3.73927e-08
-8.72803e-08
-4.94836e-08
-8.91459e-08
-6.72353e-08
-8.98571e-08
-9.00557e-08
-8.89222e-08
-1.02663e-07
-8.69276e-08
-1.05016e-07
-8.57887e-08
-8.31029e-08
-9.74966e-08
-2.74747e-08
-1.19187e-07
-8.25069e-09
-1.32167e-07
-2.46292e-08
-1.40624e-07
-3.07246e-08
-1.45041e-07
-2.24292e-08
-1.4744e-07
-2.7894e-09
-1.48462e-07
1.64664e-08
3.077e-08
4.21323e-08
-2.64428e-07
5.04357e-08
-2.18332e-07
3.75805e-08
-1.68376e-07
3.75115e-08
-1.52941e-07
5.38976e-08
-1.48267e-07
7.38755e-08
-1.29617e-07
8.6243e-08
-9.51938e-08
9.28416e-08
-6.01376e-08
9.88751e-08
-2.47126e-08
1.03668e-07
6.28483e-09
1.03716e-07
4.20977e-08
9.38137e-08
6.77554e-08
7.68321e-08
1.02942e-07
7.64614e-08
1.24506e-07
8.28491e-08
1.44525e-07
8.78624e-08
1.56655e-07
9.18396e-08
1.56419e-07
9.66875e-08
1.49401e-07
1.08141e-07
1.17849e-07
1.05751e-07
1.03365e-07
7.2448e-08
1.47402e-07
2.01271e-08
1.94071e-07
-1.95973e-08
2.28763e-07
-6.06551e-08
2.26253e-07
-6.74528e-08
2.51462e-08
-8.16863e-08
-2.31596e-08
-9.14709e-08
-3.96993e-08
-9.3778e-08
-6.49285e-08
-9.46299e-08
-8.92042e-08
-9.52299e-08
-1.02063e-07
-9.38922e-08
-1.06354e-07
-8.32338e-08
-9.37616e-08
-7.04971e-08
-4.02117e-08
-8.10768e-08
2.32853e-09
-1.06427e-07
7.20048e-10
-1.31202e-07
-5.94966e-09
-1.41155e-07
-1.24766e-08
-1.41219e-07
-2.72526e-09
-1.41373e-07
1.66204e-08
2.74006e-08
1.64457e-08
-2.80874e-07
-1.45101e-08
-1.87376e-07
-4.71975e-08
-1.35688e-07
-3.61692e-08
-1.63969e-07
-1.24497e-08
-1.71986e-07
1.08086e-08
-1.52875e-07
2.54279e-08
-1.09813e-07
3.09565e-08
-6.56664e-08
3.60712e-08
-2.98277e-08
3.91176e-08
3.23812e-09
3.86654e-08
4.25495e-08
2.345e-08
8.29706e-08
1.59011e-08
1.1049e-07
2.57701e-08
1.14637e-07
4.40462e-08
1.26249e-07
6.21784e-08
1.38523e-07
7.05847e-08
1.48013e-07
8.45951e-08
1.35391e-07
9.75952e-08
1.04848e-07
7.40784e-08
1.26882e-07
3.17734e-08
1.89707e-07
-4.46089e-09
2.30305e-07
-2.43233e-08
2.48625e-07
-4.74424e-08
2.49372e-07
-6.80358e-08
4.57393e-08
-7.53813e-08
-1.58143e-08
-8.17503e-08
-3.33305e-08
-8.196e-08
-6.47189e-08
-7.41741e-08
-9.69903e-08
-6.74317e-08
-1.08805e-07
-6.48278e-08
-1.08958e-07
-6.29932e-08
-9.55966e-08
-4.26422e-08
-6.0563e-08
-1.32859e-08
-2.70281e-08
-8.62672e-09
-3.93956e-09
-3.4877e-08
2.03004e-08
-7.00233e-08
2.26694e-08
-9.25824e-08
1.98337e-08
-1.0571e-07
2.97482e-08
3.91087e-08
-3.90417e-08
-2.41832e-07
-7.3539e-08
-1.52879e-07
-8.2484e-08
-1.26744e-07
-6.61943e-08
-1.80259e-07
-4.94789e-08
-1.88702e-07
-3.29698e-08
-1.69385e-07
-1.9984e-08
-1.22799e-07
-1.27358e-08
-7.29151e-08
-1.41803e-08
-2.83835e-08
-1.72167e-08
6.27411e-09
-1.85167e-08
4.38493e-08
-1.87273e-08
8.31809e-08
-1.56754e-08
1.07438e-07
-1.05741e-08
1.09536e-07
-5.34895e-10
1.1621e-07
6.4461e-09
1.31542e-07
1.36934e-08
1.40765e-07
3.00056e-08
1.19078e-07
3.24293e-08
1.02424e-07
5.50086e-09
1.5381e-07
-1.50056e-08
2.10213e-07
-1.02571e-08
2.25556e-07
7.12333e-09
2.31245e-07
1.63034e-08
2.40191e-07
-1.72906e-08
7.93333e-08
-3.55783e-08
2.4734e-09
-4.65501e-08
-2.23586e-08
-4.28485e-08
-6.84205e-08
-2.40016e-08
-1.15837e-07
-2.69156e-09
-1.30115e-07
1.50241e-08
-1.26674e-07
2.56243e-08
-1.06197e-07
3.58776e-08
-7.08165e-08
5.23511e-08
-4.35019e-08
4.78063e-08
6.05165e-10
3.50299e-08
3.30766e-08
1.56431e-08
4.2056e-08
-7.12496e-09
4.26017e-08
-1.85004e-08
4.11236e-08
4.37492e-08
-5.0987e-08
-1.90845e-07
-6.87993e-08
-1.35067e-07
-6.25816e-08
-1.32962e-07
-5.85266e-08
-1.84314e-07
-4.88947e-08
-1.98334e-07
-4.14864e-08
-1.76794e-07
-3.60888e-08
-1.28197e-07
-3.06174e-08
-7.83868e-08
-2.47702e-08
-3.4231e-08
-1.95348e-08
1.03849e-09
-1.85265e-08
4.28407e-08
-1.37221e-08
7.83763e-08
-1.25675e-08
1.06283e-07
-1.55573e-08
1.12525e-07
-2.15466e-08
1.22199e-07
-3.26375e-08
1.42632e-07
-4.48944e-08
1.53022e-07
-5.42748e-08
1.28458e-07
-6.81469e-08
1.16296e-07
-6.84898e-08
1.54153e-07
-4.71945e-08
1.88917e-07
-6.33468e-09
1.84697e-07
5.86165e-08
1.66293e-07
1.18327e-07
1.80481e-07
1.14404e-07
8.3256e-08
9.7982e-08
1.88956e-08
6.59003e-08
9.72319e-09
4.169e-08
-4.42101e-08
5.31096e-08
-1.27257e-07
7.0341e-08
-1.47347e-07
8.60595e-08
-1.42393e-07
1.00368e-07
-1.20506e-07
1.15895e-07
-8.63431e-08
1.27116e-07
-5.47229e-08
1.23954e-07
3.76684e-09
1.22071e-07
3.49603e-08
1.12355e-07
5.17712e-08
8.48645e-08
7.00927e-08
5.86039e-08
6.73841e-08
6.33626e-08
-3.44576e-08
-1.56388e-07
-4.56104e-08
-1.23915e-07
-5.00231e-08
-1.28549e-07
-4.95992e-08
-1.84738e-07
-3.86053e-08
-2.09328e-07
-3.38387e-08
-1.8156e-07
-3.63478e-08
-1.25689e-07
-3.65515e-08
-7.81834e-08
-2.50741e-08
-4.57086e-08
-1.22494e-08
-1.17864e-08
-9.45977e-09
4.00508e-08
-1.71811e-08
8.60975e-08
-2.19662e-08
1.11068e-07
-2.84946e-08
1.19054e-07
-3.96408e-08
1.33345e-07
-6.14376e-08
1.64429e-07
-8.912e-08
1.80704e-07
-1.22506e-07
1.61844e-07
-1.42856e-07
1.36646e-07
-1.31719e-07
1.43015e-07
-9.77926e-08
1.54991e-07
-4.57125e-08
1.32616e-07
1.63604e-08
1.04221e-07
1.04811e-07
9.20308e-08
1.27365e-07
6.07023e-08
1.21136e-07
2.51247e-08
1.28675e-07
2.18448e-09
1.44668e-07
-6.0203e-08
1.56714e-07
-1.39302e-07
1.60498e-07
-1.5113e-07
1.61323e-07
-1.43218e-07
1.61104e-07
-1.20286e-07
1.52603e-07
-7.78416e-08
1.40311e-07
-4.24317e-08
1.64269e-07
-2.01905e-08
2.08111e-07
-8.88181e-09
2.43827e-07
1.60551e-08
2.28195e-07
8.57243e-08
1.58133e-07
1.37446e-07
1.2186e-07
-1.69529e-08
-1.39435e-07
-2.77867e-08
-1.13081e-07
-5.29833e-08
-1.03353e-07
-5.83178e-08
-1.79404e-07
-6.03049e-08
-2.07342e-07
-8.40081e-08
-1.57857e-07
-1.06569e-07
-1.03128e-07
-1.09946e-07
-7.48061e-08
-9.87009e-08
-5.69539e-08
-1.02467e-07
-8.02074e-09
-1.05389e-07
4.29728e-08
-9.61469e-08
7.68556e-08
-8.3913e-08
9.88342e-08
-8.5357e-08
1.20497e-07
-1.00875e-07
1.48862e-07
-1.15895e-07
1.79449e-07
-1.23997e-07
1.88805e-07
-1.38772e-07
1.7662e-07
-1.45394e-07
1.43267e-07
-1.33135e-07
1.30756e-07
-1.09347e-07
1.31203e-07
-7.97216e-08
1.02991e-07
-2.42292e-08
4.87281e-08
3.82668e-08
2.95348e-08
8.54199e-08
1.35493e-08
1.21974e-07
-1.14296e-08
1.74107e-07
-4.9948e-08
2.08409e-07
-9.45048e-08
2.06616e-07
-1.37509e-07
1.99585e-07
-1.441e-07
1.9482e-07
-1.38453e-07
1.82652e-07
-1.08118e-07
1.68569e-07
-6.3759e-08
1.47085e-07
-2.09472e-08
1.49413e-07
-2.25184e-08
1.83039e-07
-4.25078e-08
2.2219e-07
-2.30964e-08
2.39446e-07
6.84692e-08
2.33824e-07
1.43068e-07
1.51409e-07
-3.30772e-10
-1.39105e-07
-1.08612e-08
-1.02551e-07
-5.8886e-08
-5.53282e-08
-1.04665e-07
-1.33626e-07
-1.48818e-07
-1.63188e-07
-1.94206e-07
-1.12469e-07
-2.32175e-07
-6.51594e-08
-2.54035e-07
-5.29469e-08
-2.75306e-07
-3.56828e-08
-2.91952e-07
8.62566e-09
-2.82872e-07
3.38929e-08
-2.50089e-07
4.4072e-08
-2.09321e-07
5.80656e-08
-1.74138e-07
8.53146e-08
-1.52115e-07
1.26838e-07
-1.3938e-07
1.66714e-07
-1.26902e-07
1.76327e-07
-1.17174e-07
1.66891e-07
-1.07496e-07
1.33589e-07
-8.66975e-08
1.09957e-07
-4.56032e-08
9.01087e-08
-8.64221e-09
6.603e-08
2.46235e-08
1.54624e-08
4.52209e-08
8.93726e-09
7.81293e-08
-1.93591e-08
1.25325e-07
-5.86257e-08
1.68181e-07
-9.28034e-08
1.99237e-07
-1.25561e-07
2.09904e-07
-1.48177e-07
2.06318e-07
-1.40514e-07
1.85257e-07
-1.17391e-07
1.42083e-07
-6.49448e-08
1.20423e-07
-4.20988e-08
1.16724e-07
-1.72483e-08
1.20168e-07
-2.59621e-08
1.2381e-07
-4.61496e-08
1.35613e-07
-3.48993e-08
1.68339e-07
3.5743e-08
1.95306e-07
1.16102e-07
1.38063e-07
-2.42892e-08
-1.14816e-07
-5.49823e-08
-7.18579e-08
-9.12108e-08
-1.90998e-08
-1.44031e-07
-8.08058e-08
-2.0366e-07
-1.0356e-07
-2.33723e-07
-8.24056e-08
-2.70835e-07
-2.80475e-08
-3.07767e-07
-1.60153e-08
-3.39542e-07
-3.90788e-09
-3.47582e-07
1.66653e-08
-3.35488e-07
2.17991e-08
-3.10869e-07
1.94522e-08
-2.76032e-07
2.32291e-08
-2.34164e-07
4.34457e-08
-1.92519e-07
8.51937e-08
-1.56925e-07
1.3112e-07
-1.23157e-07
1.42559e-07
-8.73926e-08
1.31127e-07
-5.92563e-08
1.05453e-07
-1.88202e-08
6.95211e-08
4.12845e-08
3.0004e-08
7.68961e-08
3.04184e-08
9.91032e-08
-6.74472e-09
1.19353e-07
-1.13128e-08
1.34125e-07
-3.41311e-08
1.30016e-07
-5.45166e-08
1.1667e-07
-7.94574e-08
1.07599e-07
-1.1649e-07
9.65884e-08
-1.37166e-07
8.75756e-08
-1.31502e-07
7.16105e-08
-1.01427e-07
7.51212e-08
-6.84557e-08
8.74825e-08
-5.44601e-08
1.10393e-07
-4.01587e-08
1.24594e-07
-4.01629e-08
1.16672e-07
-3.82278e-08
1.06742e-07
-2.49685e-08
1.31391e-07
1.10938e-08
1.63197e-07
8.42962e-08
1.21292e-07
-3.27645e-08
-8.20512e-08
-6.42838e-08
-4.03386e-08
-8.97565e-08
6.37288e-09
-1.50138e-07
-2.04245e-08
-2.03066e-07
-5.06308e-08
-2.49188e-07
-3.62837e-08
-2.74259e-07
-2.97697e-09
-2.94396e-07
4.12218e-09
-3.08612e-07
1.03074e-08
-3.14368e-07
2.24214e-08
-3.12922e-07
2.03525e-08
-3.13101e-07
1.96315e-08
-3.13443e-07
2.35712e-08
-2.98577e-07
2.85789e-08
-2.53164e-07
3.97804e-08
-1.76069e-07
5.40249e-08
-9.83735e-08
6.4863e-08
-5.09849e-08
8.37384e-08
-1.96956e-08
7.41639e-08
8.63513e-09
4.11904e-08
2.75235e-08
1.11157e-08
4.33971e-08
1.45449e-08
4.77057e-08
-1.10534e-08
5.59123e-08
-1.95195e-08
4.75187e-08
-2.57376e-08
4.322e-08
-5.0218e-08
3.94449e-08
-7.56825e-08
2.69709e-08
-1.04017e-07
9.23613e-10
-1.11119e-07
-2.42775e-08
-1.06301e-07
-5.02757e-08
-7.54284e-08
-5.20075e-08
-6.67239e-08
-2.57417e-08
-8.07259e-08
4.48914e-09
-7.03894e-08
2.5176e-08
-6.08494e-08
2.79064e-08
-4.09579e-08
2.02183e-08
-1.72801e-08
2.23495e-08
8.96284e-09
4.85899e-08
5.80559e-08
9.6006e-08
-5.17911e-08
-3.02601e-08
-7.60272e-08
-1.61024e-08
-9.76121e-08
2.79578e-08
-1.36109e-07
1.80728e-08
-1.93241e-07
6.50094e-09
-2.4504e-07
1.55157e-08
-2.6315e-07
1.51323e-08
-2.70938e-07
1.19106e-08
-2.71663e-07
1.10322e-08
-2.70904e-07
2.1662e-08
-2.69739e-07
1.91875e-08
-2.65863e-07
1.5756e-08
-2.5883e-07
1.65381e-08
-2.45856e-07
1.56046e-08
-2.23887e-07
1.78117e-08
-1.86536e-07
1.66732e-08
-1.42067e-07
2.03947e-08
-9.51604e-08
3.68317e-08
-5.27429e-08
3.17465e-08
-2.73494e-08
1.57971e-08
-2.23107e-08
6.07703e-09
-9.85737e-09
2.09166e-09
-2.04441e-08
-4.66708e-10
-3.11104e-08
-8.8532e-09
-2.39389e-08
-3.29091e-08
-1.46084e-08
-5.95486e-08
-2.31088e-08
-6.71822e-08
-5.09471e-08
-7.61785e-08
-8.05488e-08
-8.15177e-08
-1.12947e-07
-7.39022e-08
-1.18448e-07
-6.99275e-08
-1.06765e-07
-7.84076e-08
-9.93057e-08
-8.81845e-08
-9.19231e-08
-7.77717e-08
-9.38978e-08
-5.88744e-08
-1.00869e-07
-3.39863e-08
-1.04952e-07
-1.3197e-08
-9.91124e-08
3.12332e-09
-7.19049e-08
3.08483e-08
6.7175e-08
-5.28928e-08
2.26327e-08
-8.26234e-08
1.36283e-08
-1.02607e-07
4.79417e-08
-1.31856e-07
4.73219e-08
-1.59461e-07
3.41063e-08
-1.96751e-07
5.28053e-08
-2.2535e-07
4.37319e-08
-2.4569e-07
3.22503e-08
-2.60231e-07
2.55728e-08
-2.60272e-07
2.17035e-08
-2.54313e-07
1.32285e-08
-2.44245e-07
5.68824e-09
-2.33874e-07
6.16694e-09
-2.17071e-07
-1.19787e-09
-1.97458e-07
-1.80134e-09
-1.82669e-07
1.88359e-09
-1.66612e-07
4.33814e-09
-1.38065e-07
8.2848e-09
-1.14629e-07
8.31083e-09
-1.00739e-07
1.90684e-09
-9.00522e-08
-4.60929e-09
-7.57514e-08
-1.2209e-08
-5.57262e-08
-2.04918e-08
-3.99104e-08
-2.46691e-08
-3.58551e-08
-3.69646e-08
-5.08502e-08
-4.45537e-08
-7.13354e-08
-4.66973e-08
-9.53286e-08
-5.21855e-08
-1.17089e-07
-5.9757e-08
-1.25236e-07
-6.57557e-08
-1.20167e-07
-7.49965e-08
-1.15195e-07
-8.33795e-08
-1.19817e-07
-8.35616e-08
-1.20603e-07
-7.69851e-08
-1.1914e-07
-6.0338e-08
-1.09539e-07
-4.35864e-08
-1.07959e-07
-1.47772e-08
-9.90549e-08
-5.78114e-09
-6.6647e-08
-1.56003e-09
3.53089e-08
-3.50421e-08
5.76748e-08
-6.25451e-08
4.11313e-08
-7.16052e-08
5.70019e-08
-8.70431e-08
6.27599e-08
-1.08277e-07
5.53401e-08
-1.35177e-07
7.97058e-08
-1.74045e-07
8.26003e-08
-2.06198e-07
6.4403e-08
-2.22951e-07
4.2326e-08
-2.23722e-07
2.2475e-08
-2.22068e-07
1.15739e-08
-2.21777e-07
5.39772e-09
-2.13722e-07
-1.88816e-09
-2.08883e-07
-6.03654e-09
-2.05303e-07
-5.381e-09
-1.98727e-07
-4.69219e-09
-1.90677e-07
-3.71221e-09
-1.78734e-07
-3.65852e-09
-1.62225e-07
-8.19757e-09
-1.43148e-07
-1.71704e-08
-1.16649e-07
-3.11081e-08
-8.8363e-08
-4.04946e-08
-6.46863e-08
-4.41684e-08
-4.65882e-08
-4.27672e-08
-4.23937e-08
-4.11592e-08
-5.02589e-08
-3.66886e-08
-6.34992e-08
-3.34572e-08
-7.9141e-08
-3.65438e-08
-9.24256e-08
-4.64724e-08
-9.8316e-08
-5.98653e-08
-9.53689e-08
-7.79434e-08
-9.41677e-08
-8.45806e-08
-9.77103e-08
-8.00188e-08
-1.02647e-07
-7.20483e-08
-9.64475e-08
-6.65375e-08
-7.55466e-08
-6.44874e-08
-4.61052e-08
-4.42189e-08
-2.54394e-08
-2.64472e-08
-1.08187e-08
-1.61811e-08
1.50078e-08
-2.31638e-09
5.99913e-08
-2.05214e-08
5.93362e-08
-3.59686e-08
7.2449e-08
-4.73484e-08
7.41396e-08
-6.91375e-08
7.71293e-08
-7.41748e-08
8.47431e-08
-8.55885e-08
9.40142e-08
-1.22425e-07
1.01239e-07
-1.7259e-07
9.24916e-08
-2.00814e-07
5.06992e-08
-2.08125e-07
1.8885e-08
-2.09402e-07
6.67484e-09
-2.09367e-07
-1.92326e-09
-2.10582e-07
-4.82156e-09
-2.09868e-07
-6.09499e-09
-2.06277e-07
-8.28279e-09
-2.00784e-07
-9.205e-09
-1.92873e-07
-1.15698e-08
-1.78682e-07
-2.23886e-08
-1.57466e-07
-3.83856e-08
-1.30929e-07
-5.7645e-08
-1.00794e-07
-7.06301e-08
-7.37618e-08
-7.12005e-08
-5.43898e-08
-6.21393e-08
-5.28968e-08
-4.26522e-08
-6.23431e-08
-2.72424e-08
-7.16577e-08
-2.41426e-08
-7.90471e-08
-2.91544e-08
-8.34748e-08
-4.20447e-08
-8.07812e-08
-6.25588e-08
-5.24968e-08
-1.06228e-07
-1.88622e-08
-1.18215e-07
4.2896e-09
-1.03171e-07
1.87669e-08
-8.65258e-08
3.15864e-08
-7.93572e-08
4.73674e-08
-8.02687e-08
7.02714e-08
-6.71232e-08
8.89963e-08
-4.51723e-08
1.04492e-07
-3.16767e-08
-9.30199e-09
-3.49823e-09
6.34895e-08
-1.4977e-08
7.08147e-08
-2.0243e-08
7.77148e-08
-1.90627e-08
7.29592e-08
-1.57778e-08
7.38442e-08
-4.61214e-09
7.35774e-08
1.48863e-08
7.45158e-08
1.11053e-08
1.05021e-07
-4.54873e-08
1.49084e-07
-1.22502e-07
1.27714e-07
-1.61617e-07
5.80004e-08
-1.73754e-07
1.8812e-08
-1.7794e-07
2.26267e-09
-1.8255e-07
-2.11695e-10
-1.90192e-07
1.54752e-09
-1.94361e-07
-4.11446e-09
-1.92948e-07
-1.06174e-08
-1.89273e-07
-1.52453e-08
-1.8076e-07
-3.09015e-08
-1.65819e-07
-5.33265e-08
-1.44435e-07
-7.9028e-08
-1.20248e-07
-9.4817e-08
-9.47127e-08
-9.67362e-08
-7.9174e-08
-7.76782e-08
-8.55618e-08
-3.62645e-08
-9.84286e-08
-1.43756e-08
-1.00581e-07
-2.19901e-08
-9.76578e-08
-3.20774e-08
-8.60142e-08
-5.36881e-08
-6.17966e-08
-8.67761e-08
-1.64575e-08
-1.51567e-07
2.00221e-08
-1.54695e-07
4.79561e-08
-1.31105e-07
7.13425e-08
-1.09912e-07
9.65683e-08
-1.04583e-07
1.23301e-07
-1.07001e-07
1.44873e-07
-8.86959e-08
1.68085e-07
-6.83842e-08
1.9382e-07
-5.74109e-08
-4.35683e-08
-8.71684e-09
7.22061e-08
-5.82453e-09
6.7922e-08
-2.79319e-09
7.46831e-08
-5.63876e-11
7.02222e-08
2.62931e-10
7.35248e-08
2.72452e-09
7.11158e-08
1.79622e-08
5.92781e-08
3.06826e-08
9.23003e-08
2.17238e-08
1.58043e-07
-1.174e-08
1.61178e-07
-6.24219e-08
1.08682e-07
-9.74015e-08
5.37916e-08
-1.13503e-07
1.83644e-08
-1.24588e-07
1.08726e-08
-1.44433e-07
2.13929e-08
-1.69144e-07
2.05964e-08
-1.88629e-07
8.86749e-09
-1.93828e-07
-1.00454e-08
-1.89244e-07
-3.54859e-08
-1.89524e-07
-5.30469e-08
-1.93136e-07
-7.54155e-08
-1.92758e-07
-9.51947e-08
-1.88175e-07
-1.01319e-07
-1.74559e-07
-9.12941e-08
-1.47955e-07
-6.2869e-08
-1.05343e-07
-5.69871e-08
-7.85693e-08
-4.87632e-08
-4.43033e-08
-6.63432e-08
-2.02549e-08
-7.7736e-08
1.0077e-08
-1.17108e-07
3.75601e-08
-1.7905e-07
5.0837e-08
-1.67972e-07
5.8311e-08
-1.38579e-07
7.34223e-08
-1.25024e-07
1.04721e-07
-1.35882e-07
1.4023e-07
-1.4251e-07
1.74731e-07
-1.23197e-07
1.90624e-07
-8.42772e-08
2.13079e-07
-7.98653e-08
-7.96765e-08
-4.42443e-09
7.66303e-08
-3.90361e-09
6.74007e-08
-2.85881e-09
7.3638e-08
-6.49477e-09
7.38579e-08
-6.39688e-09
7.34268e-08
-4.0111e-09
6.873e-08
-1.39928e-08
6.92599e-08
1.89099e-09
7.64165e-08
2.05473e-08
1.39387e-07
1.98382e-08
1.61887e-07
8.10858e-09
1.20412e-07
-1.61747e-08
7.80749e-08
-5.09588e-08
5.31486e-08
-6.45951e-08
2.4509e-08
-7.0252e-08
2.70499e-08
-7.96497e-08
2.99943e-08
-1.03285e-07
3.25032e-08
-1.27363e-07
1.40325e-08
-1.55188e-07
-7.66152e-09
-1.89753e-07
-1.84821e-08
-2.10161e-07
-5.5007e-08
-2.1976e-07
-8.55956e-08
-2.14492e-07
-1.06588e-07
-1.9632e-07
-1.09465e-07
-1.49165e-07
-1.10024e-07
-8.73513e-08
-1.18801e-07
-3.3838e-08
-1.02276e-07
1.79555e-08
-1.18136e-07
5.2783e-08
-1.12563e-07
7.20138e-08
-1.36338e-07
6.70085e-08
-1.74044e-07
6.16682e-08
-1.62632e-07
5.75928e-08
-1.34504e-07
6.75389e-08
-1.3497e-07
9.83274e-08
-1.66671e-07
1.31144e-07
-1.75326e-07
1.68762e-07
-1.60814e-07
2.03428e-07
-1.18943e-07
2.28082e-07
-1.04519e-07
-1.00146e-07
-4.24414e-09
8.08741e-08
-1.20002e-08
7.51566e-08
-1.57358e-08
7.73735e-08
-1.77911e-08
7.59131e-08
-1.77127e-08
7.33484e-08
-1.78585e-08
6.88758e-08
-1.59168e-08
6.73182e-08
-8.62312e-09
6.91228e-08
1.91356e-08
1.11628e-07
2.91081e-08
1.51914e-07
2.42263e-08
1.25294e-07
1.24245e-08
8.98767e-08
-1.27678e-08
7.8341e-08
-3.91371e-08
5.08783e-08
-4.60965e-08
3.40094e-08
-3.58396e-08
1.97375e-08
-1.08652e-08
7.52874e-09
1.00357e-08
-6.8685e-09
1.30877e-08
-1.07137e-08
-1.15826e-08
6.18809e-09
-7.34876e-08
6.89799e-09
-1.28766e-07
-3.03171e-08
-1.53345e-07
-8.20089e-08
-1.41983e-07
-1.20827e-07
-9.42846e-08
-1.57722e-07
-5.81733e-08
-1.54912e-07
-2.56704e-08
-1.34779e-07
-3.14555e-09
-1.40661e-07
2.11185e-08
-1.36827e-07
3.26464e-08
-1.47867e-07
1.89902e-08
-1.60389e-07
1.04897e-08
-1.54132e-07
2.86876e-08
-1.52702e-07
6.43328e-08
-1.70616e-07
9.29474e-08
-1.95285e-07
1.10428e-07
-1.92806e-07
1.30497e-07
-1.80884e-07
1.68835e-07
-1.57282e-07
2.03164e-07
-1.38849e-07
-1.1447e-07
-3.71658e-09
8.45905e-08
-1.20758e-08
8.35159e-08
-1.76101e-08
8.29079e-08
-2.24917e-08
8.07947e-08
-2.33366e-08
7.41933e-08
-2.24282e-08
6.79672e-08
-2.31258e-08
6.80158e-08
-2.05873e-08
6.65842e-08
8.40318e-09
8.26376e-08
4.5863e-08
1.14454e-07
5.87697e-08
1.12387e-07
6.05343e-08
8.81121e-08
5.61618e-08
8.27136e-08
2.43688e-08
8.26714e-08
-8.33807e-09
6.67162e-08
-2.98528e-08
4.12521e-08
-2.99478e-08
7.62353e-09
-3.15976e-09
-3.36569e-08
3.23873e-08
-4.6261e-08
3.97318e-08
-1.1566e-09
6.18661e-09
4.04431e-08
-2.9364e-08
5.23353e-09
-5.27081e-08
-5.86646e-08
-6.75733e-08
-1.05961e-07
-7.48439e-08
-1.50452e-07
-6.88349e-08
-1.60921e-07
-5.14618e-08
-1.52152e-07
-4.83187e-08
-1.43804e-07
-5.71128e-08
-1.28034e-07
-7.10032e-08
-1.33976e-07
-6.82695e-08
-1.63123e-07
-4.46961e-08
-1.77705e-07
-4.45676e-09
-1.92942e-07
3.08126e-08
-2.05885e-07
4.37114e-08
-2.08184e-07
5.29474e-08
-2.02043e-07
6.39137e-08
-1.9185e-07
8.47358e-08
-1.78104e-07
9.62025e-08
-1.50316e-07
-1.02224e-07
3.09358e-09
8.1497e-08
3.6823e-09
8.29275e-08
1.90809e-09
8.46823e-08
8.36674e-11
8.26193e-08
5.6691e-12
7.42713e-08
-4.85386e-10
6.84582e-08
5.19553e-09
6.23347e-08
1.39499e-08
5.78296e-08
3.42882e-08
6.22991e-08
7.08628e-08
7.78796e-08
1.00082e-07
8.31679e-08
1.08952e-07
7.9242e-08
1.13578e-07
7.80871e-08
1.12809e-07
8.3441e-08
9.04358e-08
8.9089e-08
4.97219e-08
8.19659e-08
3.18557e-09
5.41597e-08
-2.71849e-08
-3.28659e-09
-2.64704e-08
-4.69758e-08
-2.84221e-08
7.94881e-10
-2.21146e-08
3.41356e-08
-2.22759e-08
5.3948e-09
-3.60804e-08
-4.486e-08
-4.76785e-08
-9.4363e-08
-6.02802e-08
-1.3785e-07
-8.23831e-08
-1.38818e-07
-1.07342e-07
-1.27193e-07
-1.33899e-07
-1.17247e-07
-1.34804e-07
-1.2713e-07
-1.21334e-07
-1.47446e-07
-1.12856e-07
-1.716e-07
-1.00939e-07
-1.89623e-07
-9.23549e-08
-2.01525e-07
-8.86821e-08
-2.09558e-07
-8.93756e-08
-2.07491e-07
-9.06047e-08
-2.00814e-07
-9.62672e-08
-1.86188e-07
-1.24423e-07
-1.49949e-07
-1.68433e-07
-1.06305e-07
-7.32684e-08
-1.89855e-09
8.33957e-08
9.67657e-09
7.13527e-08
3.62945e-08
5.80645e-08
5.92874e-08
5.96265e-08
6.73741e-08
6.61846e-08
6.41949e-08
7.16373e-08
6.36143e-08
6.2915e-08
6.8396e-08
5.30476e-08
7.73624e-08
5.33325e-08
8.76071e-08
6.76348e-08
9.87038e-08
7.20712e-08
1.07498e-07
7.04481e-08
1.1559e-07
6.99949e-08
1.22853e-07
7.61772e-08
1.21023e-07
9.09196e-08
9.8102e-08
1.04886e-07
5.36445e-08
9.86172e-08
-7.38543e-09
5.77433e-08
-4.5073e-08
-9.28824e-09
-4.98937e-08
5.61559e-09
-3.77626e-08
2.20044e-08
-3.04003e-08
-1.96736e-09
-2.91111e-08
-4.61493e-08
-3.97054e-08
-8.37687e-08
-7.93309e-08
-9.82243e-08
-1.32989e-07
-8.51594e-08
-1.80845e-07
-7.93381e-08
-1.98205e-07
-9.98864e-08
-2.00414e-07
-1.24921e-07
-2.09029e-07
-1.38831e-07
-2.26042e-07
-1.54587e-07
-2.34632e-07
-1.81033e-07
-2.39151e-07
-1.97006e-07
-2.44e-07
-2.04708e-07
-2.49041e-07
-2.0245e-07
-2.61239e-07
-1.88617e-07
-2.89052e-07
-1.58376e-07
-3.35022e-07
-1.03979e-07
-3.7072e-07
-7.06073e-08
-6.57506e-08
-2.52996e-09
8.59259e-08
1.59779e-08
5.2845e-08
3.9734e-08
3.43085e-08
5.15014e-08
4.78591e-08
5.82377e-08
5.94483e-08
6.3973e-08
6.59018e-08
6.53772e-08
6.15107e-08
7.17433e-08
4.66814e-08
8.21917e-08
4.2884e-08
9.02117e-08
5.96147e-08
9.39049e-08
6.8378e-08
9.98855e-08
6.44676e-08
1.03604e-07
6.6276e-08
1.08563e-07
7.12184e-08
1.10876e-07
8.86062e-08
9.2988e-08
1.22774e-07
5.197e-08
1.39635e-07
-1.16757e-08
1.21389e-07
-6.73186e-08
4.63547e-08
-8.54517e-08
2.37488e-08
-7.52666e-08
1.18195e-08
-6.59518e-08
-1.12822e-08
-7.21592e-08
-3.99419e-08
-1.03833e-07
-5.20951e-08
-1.57764e-07
-4.42937e-08
-2.08102e-07
-3.48215e-08
-2.45049e-07
-4.23911e-08
-2.67366e-07
-7.75698e-08
-2.97386e-07
-9.49004e-08
-3.32582e-07
-1.03635e-07
-3.50922e-07
-1.36247e-07
-3.65336e-07
-1.66618e-07
-3.83137e-07
-1.79205e-07
-4.0055e-07
-1.87296e-07
-4.18487e-07
-1.84513e-07
-4.36399e-07
-1.70704e-07
-4.51554e-07
-1.43222e-07
-4.65345e-07
-9.01887e-08
-4.73904e-07
-6.20487e-08
-5.34313e-08
-7.40058e-09
9.33267e-08
-1.10157e-08
5.64601e-08
-2.86685e-08
5.19612e-08
-3.32985e-08
5.2489e-08
-2.46566e-08
5.08063e-08
-9.54054e-09
5.07857e-08
8.90265e-09
4.30675e-08
3.54832e-08
2.01009e-08
6.92563e-08
9.11101e-09
8.94083e-08
3.94628e-08
1.13972e-07
4.38147e-08
1.25811e-07
5.26279e-08
1.23954e-07
6.81331e-08
1.1547e-07
7.97025e-08
1.04854e-07
9.9222e-08
8.49594e-08
1.42669e-07
4.56309e-08
1.78964e-07
1.40196e-09
1.65618e-07
-5.20501e-08
9.98068e-08
-8.24012e-08
5.40999e-08
-1.05968e-07
3.53858e-08
-1.22946e-07
5.69667e-09
-1.42794e-07
-2.00941e-08
-1.70059e-07
-2.48311e-08
-2.06722e-07
-7.63058e-09
-2.43253e-07
1.70913e-09
-2.75274e-07
-1.03707e-08
-3.10955e-07
-4.18889e-08
-3.58404e-07
-4.74509e-08
-3.99074e-07
-6.29649e-08
-4.48757e-07
-8.65641e-08
-4.97516e-07
-1.17859e-07
-5.29796e-07
-1.46925e-07
-5.53204e-07
-1.63888e-07
-5.73664e-07
-1.64053e-07
-5.89886e-07
-1.54483e-07
-5.99618e-07
-1.3349e-07
-6.02239e-07
-8.75673e-08
-6.12626e-07
-5.16619e-08
-4.65991e-08
-3.30953e-08
1.26422e-07
-6.66528e-08
9.00175e-08
-1.01794e-07
8.71025e-08
-1.28738e-07
7.94324e-08
-1.38985e-07
6.10535e-08
-1.32736e-07
4.45363e-08
-1.0315e-07
1.34821e-08
-6.42633e-08
-1.87856e-08
-2.09601e-08
-3.41919e-08
2.91723e-08
-1.06695e-08
7.77662e-08
-4.77917e-09
1.19401e-07
1.09927e-08
1.35183e-07
5.23516e-08
1.27012e-07
8.78728e-08
1.05468e-07
1.20766e-07
7.73151e-08
1.70822e-07
4.19079e-08
2.14371e-07
-1.95443e-09
2.0948e-07
-5.71986e-08
1.55051e-07
-8.74337e-08
8.4335e-08
-1.07584e-07
5.55358e-08
-1.34174e-07
3.22868e-08
-1.65887e-07
1.16183e-08
-2.04061e-07
1.33433e-08
-2.46727e-07
3.50347e-08
-2.80065e-07
3.50464e-08
-3.02648e-07
1.22119e-08
-3.41846e-07
-2.6906e-09
-3.87426e-07
-1.87132e-09
-4.41597e-07
-8.79439e-09
-5.19402e-07
-8.75959e-09
-5.84188e-07
-5.30737e-08
-6.19286e-07
-1.11828e-07
-6.56842e-07
-1.26333e-07
-6.95888e-07
-1.25006e-07
-7.24423e-07
-1.25948e-07
-7.35934e-07
-1.21979e-07
-7.25781e-07
-9.77206e-08
-7.08087e-07
-6.93559e-08
-6.62424e-08
-2.51369e-08
1.51559e-07
-4.98303e-08
1.14711e-07
-7.11789e-08
1.08451e-07
-1.04802e-07
1.13056e-07
-1.5858e-07
1.14831e-07
-2.09328e-07
9.52845e-08
-2.00156e-07
4.31065e-09
-1.68124e-07
-5.08175e-08
-1.24226e-07
-7.809e-08
-5.27509e-08
-8.21441e-08
8.90929e-09
-6.64394e-08
7.13051e-08
-5.14032e-08
1.15703e-07
7.95399e-09
1.12399e-07
9.11762e-08
9.07419e-08
1.42423e-07
6.17775e-08
1.99786e-07
2.11623e-08
2.54986e-07
-4.18257e-08
2.72468e-07
-8.31892e-08
1.96415e-07
-1.04738e-07
1.05884e-07
-1.20911e-07
7.17082e-08
-1.4201e-07
5.33858e-08
-1.75701e-07
4.53093e-08
-2.22564e-07
6.02058e-08
-2.63362e-07
7.58321e-08
-2.95229e-07
6.69131e-08
-3.20816e-07
3.77993e-08
-3.64318e-07
4.0811e-08
-4.22484e-07
5.62942e-08
-4.98297e-07
6.70184e-08
-5.86497e-07
7.94398e-08
-6.48673e-07
9.10126e-09
-6.95777e-07
-6.47233e-08
-7.3925e-07
-8.28611e-08
-7.74078e-07
-9.01782e-08
-7.99177e-07
-1.00849e-07
-8.18699e-07
-1.02457e-07
-8.24265e-07
-9.21539e-08
-8.06236e-07
-8.73853e-08
-9.01396e-08
1.33726e-08
1.38186e-07
2.1781e-08
1.06302e-07
2.29468e-08
1.07285e-07
1.42418e-08
1.21761e-07
-3.00625e-08
1.59135e-07
-7.8593e-08
1.43815e-07
-1.3125e-07
5.6968e-08
-1.52335e-07
-2.97322e-08
-1.32569e-07
-9.78565e-08
-8.36635e-08
-1.3105e-07
-3.47692e-08
-1.15334e-07
1.28092e-08
-9.89818e-08
5.28824e-08
-3.21193e-08
3.86373e-08
1.05421e-07
1.2273e-08
1.68787e-07
-4.61407e-09
2.16674e-07
-4.45376e-08
2.9491e-07
-1.04803e-07
3.32734e-07
-1.36673e-07
2.28285e-07
-1.50333e-07
1.19544e-07
-1.59088e-07
8.04629e-08
-1.72153e-07
6.6451e-08
-1.91359e-07
6.45148e-08
-2.18278e-07
8.71242e-08
-2.41119e-07
9.86736e-08
-2.58298e-07
8.40917e-08
-2.91006e-07
7.05064e-08
-3.36419e-07
8.62239e-08
-3.89983e-07
1.09858e-07
-4.5878e-07
1.35815e-07
-5.41221e-07
1.61881e-07
-6.28241e-07
9.61207e-08
-6.99263e-07
6.29904e-09
-7.45576e-07
-3.65485e-08
-7.76831e-07
-5.89234e-08
-7.98379e-07
-7.93017e-08
-8.12588e-07
-8.82476e-08
-8.18501e-07
-8.62416e-08
-8.19468e-07
-8.6418e-08
-1.19266e-07
4.6841e-08
9.1345e-08
7.92551e-08
7.38878e-08
1.02681e-07
8.3859e-08
1.11748e-07
1.12694e-07
1.18749e-07
1.52134e-07
1.16328e-07
1.46236e-07
6.92101e-08
1.04086e-07
-7.38712e-09
4.6865e-08
-7.401e-08
-3.12338e-08
-7.48726e-08
-1.30187e-07
-5.21326e-08
-1.38074e-07
-3.30354e-08
-1.18079e-07
-1.17173e-08
-5.34376e-08
-2.95328e-08
1.23237e-07
-5.89602e-08
1.98215e-07
-5.75113e-08
2.15225e-07
-7.19373e-08
3.09336e-07
-1.1617e-07
3.76966e-07
-1.72375e-07
2.84491e-07
-1.83539e-07
1.30708e-07
-1.84795e-07
8.17182e-08
-1.89738e-07
7.13949e-08
-1.97968e-07
7.27444e-08
-2.07788e-07
9.69439e-08
-2.29854e-07
1.2074e-07
-2.52504e-07
1.06742e-07
-2.79169e-07
9.71713e-08
-3.00989e-07
1.08043e-07
-3.19326e-07
1.28195e-07
-3.44012e-07
1.60501e-07
-3.7971e-07
1.97579e-07
-4.59281e-07
1.75692e-07
-5.56513e-07
1.03532e-07
-6.28524e-07
3.54627e-08
-6.67953e-07
-1.94944e-08
-6.7703e-07
-7.02251e-08
-6.64422e-07
-1.00855e-07
-6.46847e-07
-1.03817e-07
-6.49842e-07
-8.34228e-08
-7.73292e-08
6.89321e-08
2.24127e-08
1.03072e-07
3.97476e-08
1.38745e-07
4.81864e-08
1.55205e-07
9.6234e-08
1.54783e-07
1.52556e-07
1.53999e-07
1.47019e-07
1.40878e-07
1.17208e-07
1.06541e-07
8.12012e-08
3.44755e-08
4.08317e-08
-1.78403e-08
-7.78716e-08
-4.80771e-08
-1.07837e-07
-6.8655e-08
-9.75012e-08
-6.91366e-08
-5.29558e-08
-3.28386e-08
8.69393e-08
-3.47467e-08
2.00123e-07
-4.73805e-08
2.27859e-07
-4.40517e-08
3.06008e-07
-6.74915e-08
4.00406e-07
-1.26268e-07
3.43267e-07
-1.65154e-07
1.69595e-07
-1.70921e-07
8.74848e-08
-1.67804e-07
6.82778e-08
-1.66747e-07
7.16873e-08
-1.58963e-07
8.91601e-08
-1.70239e-07
1.32016e-07
-2.00537e-07
1.37039e-07
-2.23062e-07
1.19697e-07
-2.31182e-07
1.16163e-07
-2.36884e-07
1.33896e-07
-2.37376e-07
1.60993e-07
-2.40933e-07
2.01135e-07
-2.67767e-07
2.02527e-07
-3.30163e-07
1.65928e-07
-4.00082e-07
1.05382e-07
-4.55852e-07
3.6275e-08
-4.78855e-07
-4.72222e-08
-4.6219e-07
-1.17521e-07
-4.2856e-07
-1.37447e-07
-3.98124e-07
-1.13859e-07
-5.16166e-08
1.84143e-08
3.99834e-09
4.82612e-08
9.90092e-09
8.61304e-08
1.03172e-08
1.07764e-07
7.46006e-08
1.2134e-07
1.3898e-07
1.10745e-07
1.57614e-07
1.10209e-07
1.17744e-07
9.16413e-08
9.97682e-08
6.9891e-08
6.25816e-08
3.21726e-08
-4.01534e-08
-1.06056e-08
-6.5059e-08
-4.69914e-08
-6.11151e-08
-6.92991e-08
-3.06477e-08
-3.00502e-08
4.76907e-08
-6.69236e-09
1.76766e-07
-4.77176e-09
2.25939e-07
2.73183e-09
2.98504e-07
2.59165e-08
3.77222e-07
2.76623e-08
3.41521e-07
-2.39219e-08
2.21179e-07
-6.52278e-08
1.2879e-07
-7.75747e-08
8.06243e-08
-8.03796e-08
7.44921e-08
-7.75962e-08
8.63765e-08
-8.45972e-08
1.39017e-07
-1.17492e-07
1.69933e-07
-1.5053e-07
1.52735e-07
-1.77815e-07
1.43448e-07
-1.95351e-07
1.51433e-07
-1.95388e-07
1.6103e-07
-1.82389e-07
1.88136e-07
-1.80248e-07
2.00386e-07
-1.98802e-07
1.84481e-07
-2.35091e-07
1.41671e-07
-2.75547e-07
7.67306e-08
-3.07065e-07
-1.57036e-08
-3.31885e-07
-9.27005e-08
-3.51293e-07
-1.18039e-07
-3.56765e-07
-1.08387e-07
-5.97218e-08
-4.81431e-08
5.21415e-08
-6.22563e-08
2.40143e-08
-4.52351e-08
-6.7038e-09
1.40105e-09
2.79645e-08
4.11852e-08
9.91962e-08
4.41478e-08
1.54652e-07
7.44481e-08
8.74431e-08
7.58299e-08
9.83863e-08
9.44319e-08
4.39797e-08
8.04456e-08
-2.61669e-08
4.45935e-08
-2.92067e-08
-6.75584e-09
-9.76566e-09
-4.04357e-08
3.03233e-09
-3.69647e-08
4.42199e-08
6.22529e-09
1.33576e-07
2.80763e-08
2.04088e-07
4.66677e-08
2.79912e-07
8.94746e-08
3.34415e-07
1.25565e-07
3.0543e-07
1.07405e-07
2.39339e-07
5.52674e-08
1.80927e-07
1.48325e-08
1.21059e-07
-1.73566e-08
1.06681e-07
-4.50749e-08
1.14095e-07
-5.87312e-08
1.52673e-07
-1.03881e-07
2.15083e-07
-1.56562e-07
2.05416e-07
-1.86906e-07
1.73792e-07
-2.04695e-07
1.69222e-07
-2.08833e-07
1.65168e-07
-1.95964e-07
1.75267e-07
-1.82088e-07
1.86509e-07
-1.73367e-07
1.7576e-07
-1.87338e-07
1.55641e-07
-2.14797e-07
1.04189e-07
-2.43621e-07
1.31194e-08
-2.68784e-07
-6.75373e-08
-2.98982e-07
-8.78407e-08
-3.22497e-07
-8.48724e-08
-4.83659e-08
-6.62798e-09
5.87696e-08
-5.31535e-09
2.27021e-08
-3.09519e-08
1.89331e-08
-1.89351e-08
1.59479e-08
4.44518e-08
3.58095e-08
8.28754e-08
1.16228e-07
6.98555e-08
1.00463e-07
8.34715e-08
8.47704e-08
1.13123e-07
1.43287e-08
9.62472e-08
-9.29118e-09
5.06368e-08
1.6404e-08
-3.86461e-09
4.4736e-08
-3.45517e-08
3.37196e-08
-3.87604e-08
4.84287e-08
-2.92228e-09
9.77373e-08
3.84538e-08
1.62711e-07
7.15572e-08
2.46809e-07
1.16985e-07
2.88986e-07
1.61429e-07
2.60986e-07
1.7329e-07
2.27478e-07
1.44555e-07
2.09663e-07
9.61526e-08
1.69461e-07
5.02401e-08
1.52593e-07
1.38058e-08
1.50529e-07
-4.84385e-09
1.71323e-07
-3.51869e-08
2.45426e-07
-8.53743e-08
2.55603e-07
-1.29959e-07
2.18376e-07
-1.68912e-07
2.08176e-07
-1.93569e-07
1.89825e-07
-1.87759e-07
1.69457e-07
-1.66032e-07
1.64782e-07
-1.53507e-07
1.63235e-07
-1.52464e-07
1.54597e-07
-1.73502e-07
1.25228e-07
-2.00551e-07
4.01685e-08
-2.25553e-07
-4.25349e-08
-2.41137e-07
-7.22568e-08
-2.54715e-07
-7.12945e-08
-3.29336e-08
2.06054e-08
3.81645e-08
4.24175e-08
8.9039e-10
3.24652e-08
2.88857e-08
1.81127e-08
3.03006e-08
1.9708e-08
3.42144e-08
4.48212e-08
9.11151e-08
4.81052e-08
9.71791e-08
6.35707e-08
6.9305e-08
7.05026e-08
7.397e-09
5.77614e-08
3.45016e-09
3.79628e-08
3.62029e-08
2.46158e-08
5.80832e-08
7.06436e-09
5.12713e-08
1.16398e-09
5.43291e-08
1.59344e-08
8.29669e-08
5.03169e-08
1.28329e-07
9.61243e-08
2.01001e-07
1.36851e-07
2.48259e-07
1.62507e-07
2.3533e-07
1.79774e-07
2.10211e-07
1.72604e-07
2.16833e-07
1.38474e-07
2.0359e-07
1.01324e-07
1.89744e-07
7.04217e-08
1.81431e-07
5.40257e-08
1.87719e-07
4.84161e-08
2.51036e-07
1.76095e-08
2.8641e-07
-3.40759e-08
2.70061e-07
-8.51745e-08
2.59274e-07
-1.37328e-07
2.41977e-07
-1.58252e-07
1.9038e-07
-1.68985e-07
1.75515e-07
-1.78796e-07
1.73045e-07
-1.96958e-07
1.72759e-07
-2.02969e-07
1.31239e-07
-1.79801e-07
1.70007e-08
-1.96561e-07
-2.57753e-08
-2.2391e-07
-4.49082e-08
-2.44548e-07
-5.06565e-08
-4.98477e-08
5.91675e-09
3.22481e-08
4.10151e-09
2.70607e-09
2.02012e-08
1.27863e-08
3.6489e-08
1.40131e-08
3.7597e-08
3.31066e-08
6.4214e-08
6.44984e-08
7.87856e-08
8.26078e-08
7.94106e-08
6.86804e-08
6.74697e-08
1.93383e-08
5.25121e-08
1.84081e-08
5.73316e-08
3.13836e-08
7.26777e-08
4.27374e-08
7.44389e-08
4.95104e-08
6.83537e-08
6.04147e-08
6.50779e-08
8.62429e-08
7.59921e-08
1.17415e-07
1.11137e-07
1.65857e-07
1.48012e-07
2.11385e-07
1.62817e-07
2.20525e-07
1.60191e-07
2.12838e-07
1.55804e-07
2.2122e-07
1.38788e-07
2.20606e-07
1.1319e-07
2.15342e-07
8.93615e-08
2.0526e-07
6.77231e-08
2.09357e-07
5.34589e-08
2.653e-07
3.13655e-08
3.08503e-07
-2.61624e-09
3.04043e-07
-3.57368e-08
2.92395e-07
-6.22437e-08
2.68484e-07
-8.01478e-08
2.08284e-07
-9.51613e-08
1.90529e-07
-1.44949e-07
2.22833e-07
-2.08566e-07
2.36376e-07
-2.26827e-07
1.495e-07
-2.45768e-07
3.59427e-08
-2.53954e-07
-1.75892e-08
-2.49308e-07
-4.95545e-08
-2.36887e-07
-6.30769e-08
-7.54227e-08
3.10756e-08
1.17266e-09
4.42718e-08
-1.04899e-08
6.47087e-08
-7.65033e-09
7.21694e-08
6.55264e-09
8.05226e-08
2.47537e-08
9.15245e-08
5.34967e-08
1.13143e-07
6.09899e-08
1.05574e-07
7.6249e-08
8.824e-08
3.66727e-08
8.29302e-08
2.37182e-08
9.08392e-08
2.34749e-08
1.04102e-07
2.94744e-08
1.18945e-07
3.46684e-08
1.17497e-07
6.18627e-08
9.93806e-08
1.04359e-07
9.14936e-08
1.25302e-07
1.06718e-07
1.50632e-07
1.34913e-07
1.8319e-07
1.48932e-07
2.06506e-07
1.44161e-07
2.17609e-07
1.39904e-07
2.25476e-07
1.32174e-07
2.28336e-07
1.17178e-07
2.30339e-07
9.66766e-08
2.25761e-07
7.72629e-08
2.28771e-07
6.03219e-08
2.82241e-07
5.60438e-08
3.12781e-07
4.50485e-08
3.15038e-07
2.3388e-08
3.14055e-07
-6.02175e-09
2.97894e-07
-3.22209e-08
2.34483e-07
-3.06706e-08
1.88978e-07
-2.90306e-08
2.21194e-07
-6.87557e-08
2.761e-07
-1.1461e-07
1.95354e-07
-1.66498e-07
8.78306e-08
-2.04116e-07
2.00278e-08
-2.16546e-07
-3.7124e-08
-2.11038e-07
-6.85847e-08
-8.63252e-08
2.5829e-08
-2.46562e-08
2.92082e-08
-1.38691e-08
2.83848e-08
-6.8268e-09
4.22626e-08
-7.32494e-09
7.47581e-08
-7.7415e-09
9.04132e-08
3.78418e-08
6.96721e-08
8.17312e-08
7.69887e-08
6.89326e-08
7.07656e-08
4.2896e-08
7.04652e-08
2.40187e-08
7.27541e-08
2.11863e-08
8.43774e-08
1.78512e-08
9.07647e-08
2.82813e-08
9.20677e-08
6.05597e-08
8.85051e-08
1.07922e-07
8.63634e-08
1.27444e-07
9.20336e-08
1.44962e-07
1.09999e-07
1.65225e-07
1.26329e-07
1.90176e-07
1.34423e-07
2.09515e-07
1.38177e-07
2.21723e-07
1.36319e-07
2.30193e-07
1.28319e-07
2.38339e-07
1.14506e-07
2.39574e-07
1.00299e-07
2.42977e-07
9.91591e-08
2.8338e-07
8.14627e-08
3.30477e-07
7.83818e-08
3.18119e-07
7.86807e-08
3.13756e-07
7.5386e-08
3.01188e-07
4.68268e-08
2.63042e-07
3.55803e-08
2.00224e-07
7.38577e-08
1.82917e-07
1.14634e-07
2.35324e-07
1.10755e-07
1.99234e-07
9.30439e-08
1.05542e-07
7.43661e-08
3.87053e-08
2.60137e-08
1.1229e-08
-4.51388e-08
2.56758e-09
-3.08596e-08
-2.09495e-08
-3.70658e-09
-2.85878e-08
-6.23021e-09
-2.67018e-08
-8.71247e-09
-7.41991e-09
-2.66065e-08
2.85198e-08
-4.3681e-08
6.8649e-08
-2.28713e-09
9.35196e-08
5.68608e-08
1.04658e-07
5.77938e-08
9.10016e-08
5.65528e-08
6.97385e-08
4.52819e-08
5.13665e-08
3.95582e-08
5.12537e-08
1.7964e-08
6.06306e-08
1.89044e-08
7.54065e-08
4.57838e-08
8.3657e-08
9.96714e-08
8.80229e-08
1.23078e-07
9.15496e-08
1.41435e-07
9.98979e-08
1.56876e-07
1.15505e-07
1.74569e-07
1.30713e-07
1.94308e-07
1.43793e-07
2.08642e-07
1.50925e-07
2.23062e-07
1.5222e-07
2.37044e-07
1.50027e-07
2.41766e-07
1.48083e-07
2.44921e-07
1.71859e-07
2.59603e-07
1.8062e-07
3.21716e-07
1.74418e-07
3.24321e-07
1.71964e-07
3.1621e-07
1.74468e-07
2.98684e-07
1.60346e-07
2.77164e-07
1.34459e-07
2.26111e-07
1.28592e-07
1.88784e-07
1.63004e-07
2.00912e-07
2.04897e-07
1.57341e-07
2.66242e-07
4.41971e-08
2.76096e-07
2.8852e-08
2.68332e-07
1.89933e-08
2.39503e-07
3.13953e-08
1.28647e-08
-1.84801e-08
1.47736e-08
-2.3511e-08
-1.19884e-09
-3.43569e-08
2.13391e-09
-3.40275e-08
-2.69356e-08
-1.86796e-08
-5.90287e-08
2.68826e-08
-4.78492e-08
7.35298e-08
1.02135e-08
1.12911e-07
1.84125e-08
1.16952e-07
5.25115e-08
8.51626e-08
7.70714e-08
6.29361e-08
6.17845e-08
3.82214e-08
4.26786e-08
2.70899e-08
3.00358e-08
3.43141e-08
3.85594e-08
6.23683e-08
7.16172e-08
9.08963e-08
9.45501e-08
1.06632e-07
1.257e-07
1.12773e-07
1.50735e-07
1.16181e-07
1.71161e-07
1.26429e-07
1.8406e-07
1.44617e-07
1.90454e-07
1.67125e-07
2.00554e-07
1.82168e-07
2.22002e-07
1.85992e-07
2.37942e-07
1.90128e-07
2.40785e-07
2.01322e-07
2.48409e-07
2.26417e-07
2.96622e-07
2.27291e-07
3.23446e-07
2.25846e-07
3.17654e-07
2.24853e-07
2.99677e-07
2.22923e-07
2.79094e-07
2.17028e-07
2.32005e-07
2.15555e-07
1.90257e-07
2.39204e-07
1.77263e-07
2.62705e-07
1.3384e-07
2.709e-07
3.60019e-08
2.68821e-07
3.09319e-08
2.79082e-07
8.73146e-09
3.19232e-07
-8.75437e-09
-3.82511e-08
5.18868e-09
9.58523e-09
8.08906e-09
-4.09857e-09
1.42706e-08
-4.0471e-09
4.27861e-08
-5.54508e-08
6.23662e-08
-7.86087e-08
8.53899e-08
-7.08729e-08
1.3498e-07
-3.93771e-08
1.46746e-07
6.6467e-09
1.3426e-07
6.49981e-08
1.17764e-07
9.35673e-08
8.63733e-08
9.31749e-08
5.27451e-08
7.63068e-08
2.82893e-08
5.44915e-08
1.30124e-08
5.38363e-08
3.47365e-08
4.98931e-08
6.62214e-08
6.30652e-08
1.02505e-07
8.94164e-08
1.27965e-07
1.25275e-07
1.37769e-07
1.61358e-07
1.4028e-07
1.81549e-07
1.50017e-07
1.80718e-07
1.71357e-07
1.79214e-07
1.93784e-07
1.99574e-07
2.02957e-07
2.28769e-07
2.05818e-07
2.37924e-07
2.16316e-07
2.3791e-07
2.59822e-07
2.53116e-07
2.79634e-07
3.03634e-07
2.82738e-07
3.1455e-07
2.78941e-07
3.03474e-07
2.79352e-07
2.78683e-07
2.72375e-07
2.38982e-07
2.67931e-07
1.94701e-07
2.76717e-07
1.68477e-07
2.74615e-07
1.35942e-07
2.21299e-07
8.93186e-08
2.03766e-07
4.84648e-08
2.39041e-07
-2.65444e-08
3.08626e-07
-7.83402e-08
-1.00597e-07
5.15154e-08
-4.19298e-08
1.05636e-07
-5.8219e-08
1.55342e-07
-5.37526e-08
1.78855e-07
-7.89634e-08
1.93911e-07
-9.36653e-08
1.91183e-07
-6.81445e-08
1.89618e-07
-3.78124e-08
1.92842e-07
3.42315e-09
2.04404e-07
5.34358e-08
2.03778e-07
9.41927e-08
1.84532e-07
1.12422e-07
1.49226e-07
1.11612e-07
1.09286e-07
9.4431e-08
7.79337e-08
8.51887e-08
6.15247e-08
6.63019e-08
6.10547e-08
6.3535e-08
8.02499e-08
7.0221e-08
1.12041e-07
9.34847e-08
1.458e-07
1.27599e-07
1.76112e-07
1.51237e-07
1.91324e-07
1.65506e-07
1.98236e-07
1.72302e-07
2.14129e-07
1.8368e-07
2.16602e-07
2.26296e-07
2.16241e-07
2.38286e-07
2.21275e-07
2.32875e-07
2.43929e-07
2.30462e-07
2.80424e-07
2.67139e-07
2.96383e-07
2.98592e-07
3.02848e-07
2.97009e-07
3.028e-07
2.78731e-07
2.94978e-07
2.46803e-07
2.83674e-07
2.06005e-07
2.8684e-07
1.65311e-07
2.89847e-07
1.32936e-07
2.78475e-07
1.00691e-07
2.88355e-07
3.85848e-08
3.44119e-07
-8.23083e-08
4.14942e-07
-1.49164e-07
-1.49858e-07
4.82326e-08
-9.0162e-08
1.19536e-07
-1.29523e-07
1.89588e-07
-1.23804e-07
2.21731e-07
-1.11106e-07
2.43532e-07
-1.15467e-07
2.24856e-07
-4.94681e-08
1.69852e-07
1.71914e-08
1.69167e-07
4.10825e-09
2.12541e-07
1.00617e-08
2.52956e-07
5.37775e-08
2.60009e-07
1.05369e-07
2.58721e-07
1.129e-07
2.4113e-07
1.12021e-07
2.16173e-07
1.10146e-07
1.83753e-07
9.87218e-08
1.51209e-07
9.60787e-08
1.32853e-07
8.85772e-08
1.38286e-07
8.80527e-08
1.57997e-07
1.07887e-07
1.81212e-07
1.28022e-07
2.10468e-07
1.3625e-07
2.31237e-07
1.51533e-07
2.44143e-07
1.70774e-07
2.45604e-07
2.24836e-07
2.34973e-07
2.48916e-07
2.24388e-07
2.4346e-07
2.27184e-07
2.27666e-07
2.62053e-07
2.32271e-07
2.91307e-07
2.69337e-07
3.05203e-07
2.83114e-07
3.10286e-07
2.73648e-07
3.08863e-07
2.48227e-07
3.04739e-07
2.10129e-07
3.0375e-07
1.663e-07
3.02671e-07
1.34015e-07
3.04911e-07
9.8452e-08
3.30164e-07
1.33315e-08
3.77694e-07
-1.29838e-07
4.17305e-07
-1.88774e-07
-1.89145e-07
4.26038e-08
-1.32766e-07
5.7108e-08
-1.44027e-07
8.43797e-08
-1.51075e-07
9.27231e-08
-1.1945e-07
9.28808e-08
-1.15624e-07
4.62331e-08
-2.82021e-09
4.01134e-08
2.33111e-08
7.16482e-08
-2.74265e-08
1.32474e-07
-5.07646e-08
1.92597e-07
-6.34544e-09
2.29686e-07
6.82792e-08
2.46119e-07
9.64667e-08
2.54801e-07
1.03339e-07
2.61132e-07
1.03815e-07
2.53994e-07
1.05861e-07
2.46116e-07
1.03956e-07
2.27688e-07
1.07005e-07
2.06266e-07
1.09475e-07
1.9801e-07
1.16143e-07
2.04987e-07
1.21044e-07
2.17451e-07
1.23785e-07
2.38357e-07
1.30628e-07
2.55858e-07
1.53273e-07
2.67872e-07
2.12821e-07
2.63108e-07
2.53681e-07
2.48581e-07
2.57986e-07
2.31031e-07
2.45217e-07
2.29472e-07
2.3383e-07
2.63953e-07
2.34857e-07
2.93904e-07
2.53162e-07
3.12621e-07
2.5493e-07
3.18478e-07
2.4237e-07
3.1588e-07
2.12727e-07
3.07003e-07
1.75177e-07
2.97695e-07
1.43323e-07
2.95572e-07
1.00574e-07
3.13972e-07
-5.06711e-09
3.25634e-07
-1.41501e-07
3.23641e-07
-1.8678e-07
-1.6949e-07
3.0479e-08
-1.63245e-07
1.61901e-08
-1.29738e-07
1.33075e-08
-1.48193e-07
-4.32985e-09
-1.01812e-07
-5.47746e-09
-1.14476e-07
-4.68266e-08
3.85289e-08
-2.19162e-08
-1.59931e-09
2.12747e-08
-7.06176e-08
5.08396e-08
-8.03296e-08
8.59879e-08
-4.14938e-08
1.43546e-07
1.07215e-08
2.05076e-07
3.49367e-08
2.48724e-07
5.96913e-08
2.54169e-07
9.83699e-08
2.53758e-07
1.06272e-07
2.54319e-07
1.03395e-07
2.58068e-07
1.03256e-07
2.58851e-07
1.08693e-07
2.53523e-07
1.21471e-07
2.42932e-07
1.31635e-07
2.36171e-07
1.30546e-07
2.37736e-07
1.29064e-07
2.47213e-07
1.43794e-07
2.62912e-07
1.97123e-07
2.68396e-07
2.48197e-07
2.67688e-07
2.58694e-07
2.59055e-07
2.5385e-07
2.54043e-07
2.38842e-07
2.6297e-07
2.25929e-07
2.85057e-07
2.31075e-07
3.056e-07
2.34387e-07
3.18096e-07
2.29874e-07
3.15522e-07
2.15301e-07
3.03067e-07
1.87633e-07
2.85659e-07
1.60731e-07
2.71177e-07
1.15056e-07
2.60465e-07
5.64504e-09
2.48027e-07
-1.29062e-07
2.29977e-07
-1.6873e-07
-1.25465e-07
-1.22925e-08
-1.50952e-07
5.00587e-09
-1.47036e-07
4.94116e-09
-1.48128e-07
-9.09934e-09
-8.77717e-08
-5.87997e-08
-6.4776e-08
-2.10347e-08
7.63806e-10
5.45341e-08
-7.71682e-08
4.79113e-08
-6.3995e-08
2.76136e-08
-6.0032e-08
4.28374e-08
-5.67175e-08
8.5894e-08
-3.23348e-08
1.3262e-07
-1.17892e-08
1.60592e-07
3.17198e-08
1.7486e-07
8.41029e-08
1.88695e-07
9.24372e-08
2.1818e-07
7.391e-08
2.48741e-07
7.26959e-08
2.76297e-07
8.11363e-08
2.96119e-07
1.01649e-07
2.90214e-07
1.3754e-07
2.67505e-07
1.53255e-07
2.44564e-07
1.52005e-07
2.31713e-07
1.56645e-07
2.42427e-07
1.86408e-07
2.57138e-07
2.33486e-07
2.63816e-07
2.52016e-07
2.66303e-07
2.51363e-07
2.69062e-07
2.36082e-07
2.70674e-07
2.24318e-07
2.81973e-07
2.19776e-07
2.94008e-07
2.22352e-07
3.03173e-07
2.2071e-07
3.04995e-07
2.1348e-07
2.92243e-07
2.00384e-07
2.7783e-07
1.75143e-07
2.61287e-07
1.31599e-07
2.40847e-07
2.60854e-08
2.06964e-07
-9.51791e-08
1.43668e-07
-1.05435e-07
-3.26681e-08
-3.06683e-08
-1.20284e-07
-2.52478e-08
-1.52457e-07
2.36107e-08
-1.96987e-07
5.27682e-08
-1.1693e-07
4.70002e-08
-5.90081e-08
8.41177e-08
-3.63537e-08
9.47998e-08
-8.78501e-08
1.19211e-07
-8.84059e-08
1.20498e-07
-6.13192e-08
1.15481e-07
-5.17001e-08
1.21709e-07
-3.85627e-08
1.43887e-07
-3.39673e-08
1.8054e-07
-4.93299e-09
2.31359e-07
3.32846e-08
2.64875e-07
5.89211e-08
2.79546e-07
5.92398e-08
2.92865e-07
5.93769e-08
3.06652e-07
6.73488e-08
3.20616e-07
8.76842e-08
3.15536e-07
1.4262e-07
2.74845e-07
1.93946e-07
2.32394e-07
1.94456e-07
2.02586e-07
1.86453e-07
2.00255e-07
1.88739e-07
2.22654e-07
2.11088e-07
2.41663e-07
2.33007e-07
2.59732e-07
2.33295e-07
2.67918e-07
2.27897e-07
2.73299e-07
2.18936e-07
2.74973e-07
2.18102e-07
2.77663e-07
2.19662e-07
2.72536e-07
2.25838e-07
2.64879e-07
2.21137e-07
2.532e-07
2.12063e-07
2.31507e-07
1.96836e-07
2.03232e-07
1.59875e-07
1.68145e-07
6.11736e-08
1.12731e-07
-3.97644e-08
5.76565e-08
-5.03598e-08
-1.00496e-08
-2.113e-08
-9.91538e-08
2.50111e-09
-1.76088e-07
2.75804e-08
-2.22066e-07
4.55516e-09
-9.39044e-08
-1.29285e-09
-5.31601e-08
6.64669e-08
-1.04114e-07
1.03708e-07
-1.25091e-07
1.34655e-07
-1.19354e-07
1.6864e-07
-9.53037e-08
1.89799e-07
-7.28599e-08
2.03381e-07
-5.21448e-08
2.10937e-07
-4.15232e-08
2.34972e-07
-2.89673e-08
2.65146e-07
3.1104e-09
2.90424e-07
3.36438e-08
3.03967e-07
4.56966e-08
3.07514e-07
5.583e-08
3.05746e-07
6.91156e-08
2.94996e-07
9.84344e-08
2.75395e-07
1.62222e-07
2.40407e-07
2.28934e-07
2.01893e-07
2.32969e-07
1.80039e-07
2.08307e-07
1.76552e-07
1.92226e-07
1.9194e-07
1.95699e-07
2.16636e-07
2.08312e-07
2.35067e-07
2.14864e-07
2.51263e-07
2.117e-07
2.55043e-07
2.15156e-07
2.55939e-07
2.17207e-07
2.54226e-07
2.21374e-07
2.5065e-07
2.29415e-07
2.38695e-07
2.33092e-07
2.21463e-07
2.29295e-07
2.0066e-07
2.1764e-07
1.72413e-07
1.88121e-07
1.27936e-07
1.05651e-07
7.66009e-08
1.1571e-08
2.33828e-08
2.85887e-09
1.04247e-08
-1.72114e-08
-8.19429e-08
-2.31654e-08
-1.70135e-07
-3.00868e-08
-2.15145e-07
-7.60846e-08
-4.79065e-08
-7.44099e-08
-5.48347e-08
-3.12748e-08
-1.47249e-07
-5.96609e-09
-1.504e-07
-3.98373e-09
-1.21336e-07
-3.36868e-09
-9.5919e-08
7.2236e-09
-8.34522e-08
2.5092e-08
-7.00131e-08
5.03078e-08
-6.67387e-08
8.5175e-08
-6.38343e-08
1.30582e-07
-4.22958e-08
1.7845e-07
-1.42241e-08
2.12212e-07
1.19342e-08
2.29532e-07
3.85095e-08
2.34073e-07
6.45748e-08
2.20642e-07
1.11865e-07
1.98622e-07
1.84241e-07
1.9333e-07
2.34226e-07
1.88157e-07
2.38144e-07
1.81759e-07
2.14705e-07
1.80589e-07
1.93396e-07
1.79491e-07
1.96797e-07
1.84274e-07
2.0353e-07
1.9608e-07
2.03058e-07
2.01824e-07
2.05956e-07
2.11382e-07
2.05599e-07
2.16304e-07
2.12286e-07
2.17181e-07
2.20497e-07
2.18036e-07
2.28559e-07
2.13687e-07
2.3744e-07
2.0245e-07
2.40533e-07
1.82471e-07
2.3762e-07
1.51195e-07
2.19398e-07
8.50627e-08
1.71783e-07
-3.57428e-08
1.32376e-07
-9.23518e-08
5.9468e-08
4.96954e-09
2.01681e-08
-1.02111e-07
1.68867e-09
-1.51655e-07
-4.36162e-08
-1.6984e-07
-8.35279e-08
-7.99476e-09
-8.72276e-08
-5.11351e-08
-1.06534e-07
-1.27942e-07
-1.20203e-07
-1.36731e-07
-1.3301e-07
-1.0853e-07
-1.4382e-07
-8.51086e-08
-1.4713e-07
-8.01427e-08
-1.37578e-07
-7.95647e-08
-1.15986e-07
-8.83305e-08
-8.03268e-08
-9.94938e-08
-2.89724e-08
-9.36505e-08
2.38109e-08
-6.70076e-08
5.50022e-08
-1.92573e-08
8.57566e-08
7.75516e-09
1.07875e-07
4.24562e-08
1.184e-07
1.01341e-07
1.4272e-07
1.59922e-07
1.6358e-07
2.13366e-07
1.78182e-07
2.23542e-07
1.85263e-07
2.07624e-07
1.80336e-07
1.98324e-07
1.67932e-07
2.09201e-07
1.5818e-07
2.13283e-07
1.58049e-07
2.0319e-07
1.65644e-07
1.9836e-07
1.71635e-07
1.99608e-07
1.79854e-07
2.04067e-07
1.86011e-07
2.14341e-07
1.92023e-07
2.22547e-07
1.93578e-07
2.35884e-07
1.77968e-07
2.56143e-07
1.48469e-07
2.6712e-07
1.1659e-07
2.51278e-07
8.12522e-08
2.07122e-07
-1.35438e-08
2.27173e-07
-1.29452e-07
1.75377e-07
-9.35872e-09
5.5441e-08
-1.57552e-07
4.30816e-08
-1.39296e-07
6.15596e-09
-1.32915e-07
-2.25362e-08
2.06975e-08
-1.00742e-07
2.70709e-08
-1.4924e-07
-7.94448e-08
-1.60363e-07
-1.25608e-07
-1.58526e-07
-1.10366e-07
-1.54649e-07
-8.89852e-08
-1.4709e-07
-8.77017e-08
-1.37526e-07
-8.91291e-08
-1.20137e-07
-1.05719e-07
-9.06767e-08
-1.28955e-07
-5.37459e-08
-1.30582e-07
-1.1791e-08
-1.08963e-07
3.53529e-09
-3.45837e-08
2.66952e-08
-1.54048e-08
4.06442e-08
2.85072e-08
7.87111e-08
6.32741e-08
1.21182e-07
1.1745e-07
1.59044e-07
1.75504e-07
1.81762e-07
2.00825e-07
1.88938e-07
2.00448e-07
1.79394e-07
2.07868e-07
1.65426e-07
2.2317e-07
1.51851e-07
2.26858e-07
1.45021e-07
2.1002e-07
1.47081e-07
1.963e-07
1.52051e-07
1.94638e-07
1.55073e-07
2.01045e-07
1.6212e-07
2.07295e-07
1.63738e-07
2.20928e-07
1.5022e-07
2.49403e-07
1.31095e-07
2.75269e-07
1.31237e-07
2.66977e-07
1.43902e-07
2.38613e-07
1.46569e-07
2.04455e-07
1.17317e-07
2.56425e-07
2.80383e-08
2.64656e-07
3.22436e-08
3.42846e-08
-1.91837e-07
-9.67289e-09
-9.5339e-08
-1.19455e-08
-1.30642e-07
4.58e-08
-3.70486e-08
-3.43439e-09
7.63052e-08
-6.4315e-08
-1.85641e-08
-9.49357e-08
-9.49867e-08
-9.20017e-08
-1.133e-07
-8.06517e-08
-1.00335e-07
-7.46128e-08
-9.37409e-08
-7.28581e-08
-9.0884e-08
-7.22409e-08
-1.06336e-07
-6.5953e-08
-1.35242e-07
-4.56175e-08
-1.50917e-07
-1.34941e-09
-1.53231e-07
3.65429e-08
-7.24764e-08
4.52322e-08
-2.40942e-08
2.96061e-08
4.41336e-08
5.29751e-08
3.99054e-08
7.95639e-08
9.08616e-08
1.0466e-07
1.50408e-07
1.39704e-07
1.65781e-07
1.68868e-07
1.71284e-07
1.63436e-07
2.13299e-07
1.50807e-07
2.35799e-07
1.42128e-07
2.35536e-07
1.38077e-07
2.14071e-07
1.37968e-07
1.96409e-07
1.36121e-07
1.96485e-07
1.27509e-07
2.09658e-07
1.17829e-07
2.16975e-07
9.47154e-08
2.44042e-07
5.67051e-08
2.87413e-07
5.60936e-08
2.75881e-07
1.1127e-07
2.11801e-07
1.53085e-07
1.96799e-07
1.52372e-07
2.05167e-07
1.56203e-07
2.52594e-07
1.49099e-07
2.71761e-07
8.8439e-08
-3.05745e-08
-1.61263e-07
-4.85225e-08
-7.73913e-08
-7.36407e-08
-1.05524e-07
-2.17319e-09
-1.08516e-07
8.47854e-08
-1.06533e-08
9.1353e-08
-2.51316e-08
7.1649e-08
-7.52828e-08
5.89619e-08
-1.00613e-07
4.55813e-08
-8.69548e-08
3.35317e-08
-8.16913e-08
7.81845e-09
-6.51706e-08
-3.51918e-08
-6.33259e-08
-6.54693e-08
-1.04965e-07
-7.56596e-08
-1.40727e-07
-7.37197e-08
-1.55171e-07
-5.65161e-09
-1.40545e-07
6.43468e-08
-9.40929e-08
1.21907e-07
-1.34261e-08
1.24217e-07
3.75954e-08
1.08399e-07
1.0668e-07
9.87437e-08
1.60062e-07
1.13167e-07
1.51358e-07
1.21609e-07
1.62842e-07
1.18907e-07
2.16002e-07
1.17082e-07
2.37625e-07
1.20481e-07
2.32137e-07
1.32144e-07
2.02409e-07
1.36905e-07
1.91647e-07
1.31463e-07
2.01927e-07
9.69426e-08
2.44178e-07
5.32073e-08
2.60709e-07
1.57363e-08
2.81513e-07
-1.5139e-08
3.18288e-07
3.10126e-09
2.5764e-07
5.77611e-08
1.57141e-07
1.21515e-07
1.33045e-07
1.26301e-07
2.00382e-07
1.23068e-07
2.55828e-07
1.55595e-07
2.39234e-07
9.32922e-08
-9.01713e-08
-7.10918e-08
-7.40378e-08
-9.35249e-08
-5.8493e-08
-1.21069e-07
-3.20901e-08
-1.34919e-07
5.2957e-08
-9.57006e-08
1.14396e-07
-8.65712e-08
1.21417e-07
-8.23039e-08
1.20134e-07
-9.93306e-08
1.31491e-07
-9.83111e-08
1.21943e-07
-7.21429e-08
1.00895e-07
-4.41222e-08
6.38292e-08
-2.62601e-08
-4.15444e-09
-3.6981e-08
-7.48463e-08
-7.00348e-08
-9.7415e-08
-1.32603e-07
-9.89861e-08
-1.38974e-07
-5.97053e-08
-1.33374e-07
2.94745e-08
-1.02606e-07
7.14779e-08
-4.40804e-09
7.05012e-08
1.07656e-07
8.75058e-08
1.43057e-07
9.07967e-08
1.48067e-07
7.27586e-08
1.8088e-07
5.12988e-08
2.37462e-07
6.67897e-08
2.22134e-07
1.0265e-07
1.96277e-07
1.28284e-07
1.76775e-07
1.39467e-07
1.80465e-07
1.27095e-07
2.143e-07
6.85101e-08
3.02763e-07
1.50118e-08
3.14208e-07
-1.74449e-08
3.13969e-07
-3.43306e-08
3.35173e-07
-2.34736e-08
2.46783e-07
7.10408e-10
1.32957e-07
4.84167e-08
8.53391e-08
8.17341e-08
1.67065e-07
1.12136e-07
2.25425e-07
1.48262e-07
2.03109e-07
7.65703e-08
-5.34058e-08
-1.76861e-08
-5.9044e-08
-8.78864e-08
-4.91464e-08
-1.30966e-07
-4.49124e-08
-1.39153e-07
-4.60635e-09
-1.36007e-07
4.23034e-08
-1.33481e-07
9.10675e-08
-1.31068e-07
1.18601e-07
-1.26864e-07
1.34009e-07
-1.13719e-07
1.61482e-07
-9.96158e-08
1.67834e-07
-5.04742e-08
1.52329e-07
-1.07555e-08
8.97817e-08
2.55662e-08
6.44787e-11
1.96826e-08
-8.93187e-08
-4.32192e-08
-1.44395e-07
-8.38974e-08
-1.3255e-07
-1.4522e-07
-1.00648e-07
-1.34507e-07
-3.47176e-08
-7.03384e-08
2.93513e-08
4.35879e-08
2.89073e-08
1.43502e-07
-2.5212e-08
2.02187e-07
-6.67955e-08
2.22464e-07
-5.08202e-08
2.21487e-07
-5.19487e-09
1.76509e-07
3.56778e-08
1.55404e-07
6.01856e-08
1.52267e-07
5.77559e-08
1.82894e-07
1.60784e-08
2.55978e-07
-1.12809e-09
3.19969e-07
-8.3082e-09
3.21387e-07
-1.329e-08
3.18951e-07
-5.1145e-09
3.26998e-07
4.97046e-09
2.36698e-07
7.45419e-09
1.30474e-07
8.5083e-09
8.42852e-08
3.44768e-08
1.41098e-07
8.55268e-08
1.74376e-07
1.40942e-07
1.47695e-07
2.95599e-08
-4.78807e-08
3.01948e-08
-6.47981e-08
-7.09691e-08
-5.97291e-08
-1.36036e-07
-4.39925e-08
-1.5489e-07
-1.9069e-08
-1.60931e-07
1.42659e-08
-1.66816e-07
5.26169e-08
-1.69419e-07
9.10574e-08
-1.65305e-07
1.18143e-07
-1.40805e-07
1.3048e-07
-1.11953e-07
1.61336e-07
-8.13307e-08
1.79411e-07
-2.88304e-08
1.79802e-07
2.51762e-08
1.52394e-07
4.70902e-08
8.24617e-08
2.67135e-08
-4.18924e-09
2.75373e-09
-7.32401e-08
-7.61685e-08
-9.22935e-08
-1.15454e-07
-7.09891e-08
-9.16422e-08
-5.53881e-08
2.7987e-08
-8.00913e-08
1.68205e-07
-1.13084e-07
2.3518e-07
-1.29929e-07
2.39309e-07
-1.14563e-07
2.06121e-07
-9.32722e-08
1.55218e-07
-7.35673e-08
1.35699e-07
-5.60389e-08
1.34738e-07
-6.88306e-08
1.95686e-07
-6.39477e-08
2.51095e-07
-3.55043e-08
2.91525e-07
-1.94839e-08
3.05367e-07
-2.16734e-08
3.2114e-07
1.93425e-08
2.85982e-07
6.00375e-08
1.96003e-07
5.38369e-08
1.36674e-07
1.68052e-08
1.21316e-07
2.05851e-08
1.37317e-07
5.2229e-08
1.42732e-07
9.90867e-08
1.00836e-07
-3.1738e-08
-2.78578e-08
5.80528e-08
-6.23776e-08
-3.64492e-08
-6.28446e-08
-1.35569e-07
-5.71114e-08
-1.60623e-07
-4.24483e-08
-1.75594e-07
-1.10552e-08
-1.9821e-07
2.74988e-08
-2.07974e-07
7.00601e-08
-2.07867e-07
1.10002e-07
-1.80747e-07
1.43102e-07
-1.45053e-07
1.70688e-07
-1.08916e-07
1.83489e-07
-4.16312e-08
1.81368e-07
2.72978e-08
1.99315e-07
2.9143e-08
1.90366e-07
3.56631e-08
1.46789e-07
4.63307e-08
2.12641e-08
4.9356e-08
-7.59168e-08
-1.82729e-08
-1.26638e-07
-4.09203e-08
-1.35115e-07
3.64644e-08
-1.28479e-07
1.6157e-07
-1.2006e-07
2.26763e-07
-1.16334e-07
2.35584e-07
-1.10056e-07
1.99843e-07
-1.19514e-07
1.64676e-07
-1.22693e-07
1.38878e-07
-1.0454e-07
1.16585e-07
-9.4848e-08
1.85995e-07
-8.2242e-08
2.38488e-07
-4.96835e-08
2.58966e-07
-2.22843e-08
2.77968e-07
3.0209e-09
2.95836e-07
4.62282e-08
2.42774e-07
6.83358e-08
1.73896e-07
4.77216e-08
1.57288e-07
1.90012e-08
1.50037e-07
1.52221e-08
1.41097e-07
4.38619e-08
1.14093e-07
9.20667e-08
5.26325e-08
-4.30371e-08
-2.25749e-08
8.06275e-08
-3.12268e-08
-2.77973e-08
-3.10193e-08
-1.35776e-07
-3.14962e-08
-1.60146e-07
-2.12111e-08
-1.8588e-07
4.09354e-10
-2.19831e-07
4.22789e-08
-2.49844e-07
9.97934e-08
-2.65382e-07
1.55474e-07
-2.36427e-07
2.01706e-07
-1.91284e-07
2.10753e-07
-1.17964e-07
2.01973e-07
-3.28503e-08
2.03244e-07
2.60265e-08
1.90895e-07
4.14923e-08
1.67098e-07
5.94607e-08
1.03542e-07
1.09887e-07
5.90209e-09
1.46996e-07
-1.08367e-07
9.5996e-08
-1.80027e-07
3.07398e-08
-1.91212e-07
4.76502e-08
-1.73716e-07
1.44073e-07
-1.52071e-07
2.05118e-07
-1.34677e-07
2.1819e-07
-1.40054e-07
2.05221e-07
-1.59895e-07
1.84518e-07
-1.8662e-07
1.65602e-07
-2.234e-07
1.53366e-07
-2.18237e-07
1.80832e-07
-1.68208e-07
1.88459e-07
-9.44326e-08
1.8519e-07
-6.37009e-08
2.47236e-07
-3.14716e-08
2.63606e-07
1.2521e-08
1.98781e-07
2.10356e-08
1.65381e-07
2.61544e-08
1.52168e-07
4.55854e-08
1.30605e-07
2.61551e-08
1.60527e-07
3.06025e-08
1.09646e-07
4.15346e-08
4.17005e-08
-1.08067e-08
-4.97732e-09
8.56049e-08
2.13554e-08
-5.41295e-08
8.30457e-09
-1.22726e-07
-4.0883e-09
-1.47754e-07
2.01789e-09
-1.91987e-07
1.19254e-08
-2.29739e-07
5.04684e-08
-2.88387e-07
1.0894e-07
-3.23853e-07
1.68106e-07
-2.95594e-07
2.16463e-07
-2.39642e-07
2.23166e-07
-1.24666e-07
2.05594e-07
-1.52782e-08
2.11711e-07
1.99095e-08
2.0809e-07
4.51126e-08
1.93832e-07
7.37188e-08
1.54149e-07
1.4957e-07
8.46908e-08
2.16455e-07
-3.55052e-08
2.16192e-07
-1.58513e-07
1.53748e-07
-2.19264e-07
1.08401e-07
-2.2285e-07
1.4766e-07
-2.08566e-07
1.90834e-07
-1.87454e-07
1.97078e-07
-1.78149e-07
1.95917e-07
-1.90607e-07
1.96976e-07
-1.96868e-07
1.71863e-07
-2.23688e-07
1.80186e-07
-2.22904e-07
1.80048e-07
-1.93223e-07
1.58779e-07
-1.71635e-07
1.63603e-07
-1.18555e-07
1.94157e-07
-5.13046e-08
1.96356e-07
-1.59762e-08
1.63453e-07
-1.11488e-08
1.60553e-07
-2.62818e-09
1.43648e-07
-1.1998e-08
1.39975e-07
-8.92614e-09
1.57455e-07
-9.08646e-09
1.09807e-07
-6.26591e-08
9.52734e-08
4.49963e-09
1.4014e-08
7.15912e-08
2.90568e-08
-6.91724e-08
2.64079e-08
-1.20077e-07
1.99512e-08
-1.41297e-07
2.55141e-08
-1.9755e-07
2.24456e-08
-2.2667e-07
4.45487e-08
-3.1049e-07
9.21806e-08
-3.71485e-07
1.29083e-07
-3.32496e-07
1.43536e-07
-2.54094e-07
1.02348e-07
-8.34779e-08
7.60651e-08
1.10056e-08
1.00181e-07
-4.20557e-09
1.2486e-07
2.04327e-08
1.28573e-07
7.00065e-08
1.29115e-07
1.49028e-07
1.04155e-07
2.41414e-07
2.71308e-08
2.93216e-07
-8.77225e-08
2.68601e-07
-1.87605e-07
2.08284e-07
-2.16606e-07
1.76661e-07
-2.08696e-07
1.82925e-07
-1.90983e-07
1.79366e-07
-1.78937e-07
1.83871e-07
-1.82206e-07
2.00244e-07
-1.96574e-07
1.86231e-07
-1.9371e-07
1.77323e-07
-1.92974e-07
1.79312e-07
-1.72303e-07
1.38106e-07
-1.42142e-07
1.33441e-07
-8.66841e-08
1.38699e-07
-3.14894e-08
1.41161e-07
-7.39712e-09
1.39361e-07
1.30295e-08
1.40126e-07
2.12381e-08
1.35439e-07
1.73614e-08
1.43852e-07
1.96616e-09
1.72851e-07
-7.1747e-08
1.8352e-07
-7.46479e-08
9.81744e-08
-3.47778e-08
3.62682e-08
3.53231e-08
4.45786e-08
-7.74835e-08
3.5292e-08
-1.10791e-07
2.69406e-08
-1.32946e-07
3.08641e-08
-2.01473e-07
3.04583e-08
-2.26264e-07
3.79062e-08
-3.17938e-07
1.09577e-08
-3.44536e-07
-1.93725e-08
-3.02166e-07
-3.99194e-08
-2.33548e-07
-5.78827e-08
-6.55156e-08
-4.31104e-08
-3.76675e-09
-3.89571e-09
-4.34197e-08
1.62658e-08
2.71009e-10
5.46067e-08
3.16658e-08
9.50025e-08
1.08633e-07
1.2254e-07
2.13877e-07
9.53537e-08
3.20402e-07
2.10078e-08
3.42948e-07
-7.46162e-08
3.03909e-07
-1.4535e-07
2.47395e-07
-1.68676e-07
2.0625e-07
-1.78188e-07
1.88877e-07
-1.73442e-07
1.79126e-07
-1.46963e-07
1.73766e-07
-1.16705e-07
1.55973e-07
-9.11354e-08
1.51753e-07
-1.17663e-07
2.0584e-07
-1.33191e-07
1.53634e-07
-1.24148e-07
1.24398e-07
-7.31338e-08
8.76848e-08
-7.28365e-10
6.87563e-08
4.99541e-08
8.86793e-08
8.11489e-08
1.08932e-07
7.08108e-08
1.45777e-07
-9.09093e-09
2.23753e-07
-1.59151e-07
3.22911e-07
-2.50066e-07
2.74437e-07
-1.64104e-07
1.22121e-08
-1.00693e-07
3.72582e-09
3.15972e-08
8.9004e-09
-8.2658e-08
7.52612e-09
-1.09416e-07
1.66127e-08
-1.42032e-07
2.41569e-08
-2.09016e-07
2.24698e-08
-2.24577e-07
-8.75608e-09
-2.86712e-07
-6.03217e-08
-2.92971e-07
-1.12553e-07
-2.49934e-07
-1.40011e-07
-2.06089e-07
-1.10244e-07
-9.52831e-08
-4.15147e-08
-7.24954e-08
2.67658e-09
-8.76105e-08
7.72869e-09
-4.78114e-09
1.74408e-08
2.19544e-08
6.27802e-08
6.32934e-08
1.16011e-07
1.60646e-07
1.38713e-07
2.97701e-07
1.16867e-07
3.64794e-07
6.33486e-08
3.57427e-07
-7.62865e-09
3.18372e-07
-6.68833e-08
2.65505e-07
-1.00173e-07
2.22166e-07
-1.11258e-07
1.90211e-07
-9.75736e-08
1.60081e-07
-7.05994e-08
1.28998e-07
-4.43511e-08
1.25505e-07
-2.81532e-08
1.89642e-07
-3.39371e-08
1.59417e-07
-3.45544e-08
1.25015e-07
2.99637e-08
2.31668e-08
7.23155e-08
2.64053e-08
8.44809e-08
7.65139e-08
8.36664e-08
1.09746e-07
2.99952e-08
1.99448e-07
-9.79779e-08
3.51727e-07
-2.34011e-07
4.58945e-07
-2.53063e-07
2.93489e-07
-2.09491e-07
-3.13599e-08
-1.42798e-07
-1.99204e-10
3.17963e-08
-6.97725e-09
-7.58793e-08
-5.01383e-09
-1.11379e-07
1.37571e-08
-1.60803e-07
3.04146e-08
-2.25674e-07
2.26721e-08
-2.16834e-07
-1.91631e-08
-2.44877e-07
-5.35686e-08
-2.58566e-07
-8.59521e-08
-2.1755e-07
-1.10733e-07
-1.81309e-07
-7.45504e-08
-1.31467e-07
-5.34292e-08
-9.3616e-08
-1.99088e-08
-1.2113e-07
-4.06945e-09
-2.06213e-08
5.05013e-09
1.28346e-08
1.40519e-08
5.42919e-08
6.29664e-08
1.1173e-07
1.29585e-07
2.31082e-07
1.37399e-07
3.5698e-07
1.29604e-07
3.65222e-07
9.97337e-08
3.48242e-07
5.15813e-08
3.13658e-07
5.76662e-09
2.67981e-07
-2.80794e-08
2.24056e-07
-5.34754e-08
1.85476e-07
-5.72127e-08
1.32735e-07
-5.23487e-08
1.20641e-07
-1.64905e-08
1.53783e-07
1.89983e-08
1.23928e-07
5.67623e-08
8.72513e-08
7.05137e-08
9.41583e-09
4.11676e-08
5.57515e-08
-1.13068e-08
1.28988e-07
-6.45647e-08
1.63003e-07
-1.18834e-07
2.53717e-07
-1.45146e-07
3.78038e-07
-1.23436e-07
4.37236e-07
-1.23652e-07
2.93706e-07
-1.30452e-07
-2.45591e-08
-1.34596e-07
1.40891e-09
3.03877e-08
-1.97199e-08
-5.47499e-08
-2.17141e-08
-1.09385e-07
-1.64043e-08
-1.66113e-07
-3.18067e-10
-2.4176e-07
2.72096e-09
-2.19873e-07
-3.89247e-08
-2.03231e-07
-7.59774e-08
-2.21514e-07
-1.07473e-07
-1.86054e-07
-1.43282e-07
-1.45501e-07
-1.37917e-07
-1.36832e-07
-9.48821e-08
-1.36651e-07
-8.42467e-08
-1.31765e-07
-3.78389e-08
-6.70287e-08
2.55633e-08
-5.05675e-08
1.7902e-08
6.19537e-08
-1.28707e-08
1.42503e-07
3.7068e-08
1.81144e-07
1.08707e-07
2.85342e-07
1.2099e-07
3.5294e-07
1.20336e-07
3.48895e-07
1.01235e-07
3.32758e-07
6.42974e-08
3.04919e-07
1.98445e-08
2.68509e-07
-2.08888e-08
2.2621e-07
-5.26447e-08
1.64492e-07
-6.30444e-08
1.31041e-07
-5.17109e-08
1.4245e-07
-3.82462e-08
1.10463e-07
-1.58194e-08
6.48245e-08
-4.2141e-08
3.5738e-08
-9.76388e-08
1.1125e-07
-1.32495e-07
1.63845e-07
-1.59191e-07
1.89699e-07
-1.52086e-07
2.46612e-07
-9.42302e-08
3.20184e-07
2.58958e-09
3.40417e-07
8.02276e-08
2.16068e-07
8.18093e-08
-2.61409e-08
-1.05675e-07
-2.0194e-08
5.0582e-08
-2.15602e-08
-5.33841e-08
-1.66132e-08
-1.14332e-07
-1.56669e-08
-1.67059e-07
-5.39904e-09
-2.52028e-07
-9.16617e-09
-2.16106e-07
-5.45073e-08
-1.5789e-07
-8.0447e-08
-1.95576e-07
-1.18668e-07
-1.47833e-07
-1.69259e-07
-9.49104e-08
-2.13201e-07
-9.28899e-08
-1.95144e-07
-1.54707e-07
-1.31093e-07
-1.95816e-07
-2.54913e-08
-1.7263e-07
-6.41321e-09
-6.96457e-08
-2.20536e-08
7.75935e-08
-9.61464e-09
1.30064e-07
1.44037e-08
1.57125e-07
5.86783e-08
2.41067e-07
9.26888e-08
3.18929e-07
1.00596e-07
3.40989e-07
9.87213e-08
3.34633e-07
9.08368e-08
3.12803e-07
7.30467e-08
2.86299e-07
3.74336e-08
2.61823e-07
-2.66828e-08
2.28609e-07
-7.45204e-08
1.78878e-07
-9.14362e-08
1.59365e-07
-1.1624e-07
1.35267e-07
-1.73967e-07
1.22551e-07
-2.26343e-07
8.81147e-08
-2.37096e-07
1.22003e-07
-1.97599e-07
1.24349e-07
-1.89223e-07
1.81323e-07
-1.71503e-07
2.28893e-07
-5.72048e-08
2.05885e-07
8.50142e-08
1.98198e-07
1.75493e-07
1.25588e-07
1.74071e-07
-2.47195e-08
-6.61658e-08
1.3696e-08
3.68856e-08
3.17776e-08
-7.14659e-08
3.77928e-08
-1.20346e-07
1.18726e-08
-1.41138e-07
-1.04117e-08
-2.29744e-07
-2.7975e-08
-1.98542e-07
-3.97895e-08
-1.46075e-07
-6.2587e-08
-1.72778e-07
-8.94115e-08
-1.21008e-07
-1.55036e-07
-2.92847e-08
-2.52039e-07
4.11195e-09
-2.67935e-07
-1.3881e-07
-2.20764e-07
-2.42987e-07
-1.4606e-07
-2.47333e-07
-1.00318e-07
-1.15387e-07
-3.35609e-08
1.08353e-08
-1.64784e-08
1.12982e-07
-1.08412e-08
1.51489e-07
1.56658e-08
2.1456e-07
5.62066e-08
2.78388e-07
7.93808e-08
3.17815e-07
8.42981e-08
3.29716e-07
8.75465e-08
3.09554e-07
8.38988e-08
2.89946e-07
5.90261e-08
2.86696e-07
9.08084e-09
2.78554e-07
-5.81509e-08
2.4611e-07
-1.04657e-07
2.05871e-07
-1.6099e-07
1.91599e-07
-2.02111e-07
1.63672e-07
-2.39389e-07
1.25394e-07
-2.43777e-07
1.2639e-07
-2.49728e-07
1.303e-07
-2.02053e-07
1.33648e-07
-1.1109e-07
1.37929e-07
1.12466e-08
8.35483e-08
1.03868e-07
1.05577e-07
1.88892e-07
4.05634e-08
1.74832e-07
-1.06601e-08
-3.56753e-08
6.30013e-08
-2.61159e-08
7.33323e-08
-8.17962e-08
5.28142e-08
-9.98277e-08
2.8134e-08
-1.16458e-07
-2.90836e-08
-1.72527e-07
-7.32022e-08
-1.54423e-07
-6.51995e-08
-1.54078e-07
-9.00487e-08
-1.47929e-07
-1.84265e-07
-2.67915e-08
-2.75794e-07
6.22434e-08
-2.79082e-07
7.39893e-09
-2.25314e-07
-1.92579e-07
-2.19122e-07
-2.4918e-07
-2.1949e-07
-2.46966e-07
-1.72534e-07
-1.62343e-07
-1.18805e-07
-4.28933e-08
-1.09419e-07
1.03597e-07
-1.11798e-07
1.53867e-07
-8.02994e-08
1.83061e-07
-3.73097e-08
2.35399e-07
2.39541e-09
2.7811e-07
3.94616e-08
2.9265e-07
6.85313e-08
2.80484e-07
9.54537e-08
2.63024e-07
1.09635e-07
2.72515e-07
8.60496e-08
3.02139e-07
3.87101e-08
2.93449e-07
-2.70472e-08
2.71628e-07
-8.84321e-08
2.52984e-07
-1.4119e-07
2.16431e-07
-1.88314e-07
1.72518e-07
-2.04562e-07
1.42638e-07
-1.87246e-07
1.12983e-07
-1.45904e-07
9.23065e-08
-7.25684e-08
6.45944e-08
5.22486e-09
5.75514e-09
9.62606e-08
1.45405e-08
1.43074e-07
-6.25005e-09
1.03473e-07
2.89413e-08
-2.26517e-08
3.46357e-08
-6.07506e-08
1.08619e-08
-5.8022e-08
2.82552e-09
-9.17918e-08
-1.28114e-08
-1.00821e-07
-8.70196e-08
-9.83186e-08
-1.29723e-07
-1.1172e-07
-1.71395e-07
-1.12406e-07
-3.05624e-07
-1.36979e-08
-4.2255e-07
9.01345e-08
-4.1985e-07
5.95494e-08
-3.29077e-07
-8.33716e-08
-3.02619e-07
-2.19034e-07
-3.16355e-07
-2.35442e-07
-3.60619e-07
-2.02702e-07
-3.8563e-07
-1.37331e-07
-3.43903e-07
-8.46195e-08
-2.51611e-07
1.13063e-08
-1.92313e-07
9.45685e-08
-1.48532e-07
1.3928e-07
-9.17475e-08
1.78615e-07
-4.83944e-08
2.34757e-07
9.63202e-09
2.34623e-07
8.29693e-08
2.07147e-07
1.24809e-07
2.21184e-07
1.30081e-07
2.67243e-07
1.17773e-07
3.14447e-07
8.17372e-08
3.29484e-07
4.14322e-08
3.11933e-07
1.36357e-08
2.80781e-07
-7.8767e-09
2.37943e-07
-2.942e-08
1.94061e-07
-6.33919e-08
1.7661e-07
-1.00249e-07
1.4984e-07
-1.02657e-07
9.4715e-08
-5.91635e-08
2.11009e-08
7.2795e-10
-5.41363e-08
4.8389e-08
-3.31203e-08
1.90888e-08
2.30505e-08
-1.12047e-08
5.92351e-08
-3.7988e-08
-3.13396e-08
-2.94107e-08
-9.6581e-08
7.21912e-09
-1.70318e-07
-1.80547e-08
-2.34858e-07
-3.6281e-08
-2.79006e-07
-5.41705e-08
-3.03896e-07
-8.68312e-08
-4.00799e-07
-1.55025e-08
-5.14482e-07
9.99845e-08
-5.22604e-07
9.82555e-08
-4.68095e-07
5.03669e-09
-3.9125e-07
-1.60217e-07
-3.91702e-07
-2.18583e-07
-3.9505e-07
-2.32093e-07
-3.83103e-07
-2.1465e-07
-3.61644e-07
-1.58789e-07
-3.3225e-07
-1.14013e-07
-2.65682e-07
-5.52627e-08
-1.84221e-07
1.31081e-08
-1.12199e-07
6.72596e-08
-5.70923e-08
1.23509e-07
1.35708e-08
1.64095e-07
6.85066e-08
1.79687e-07
1.04908e-07
1.70745e-07
1.2321e-07
2.02881e-07
1.1052e-07
2.79933e-07
8.44344e-08
3.40532e-07
5.50193e-08
3.589e-07
4.72864e-08
3.19666e-07
4.94218e-08
2.78646e-07
5.10267e-08
2.36338e-07
5.36769e-08
1.9141e-07
5.66424e-08
1.73645e-07
2.57928e-08
1.8069e-07
-1.52214e-08
1.3573e-07
-1.62135e-08
2.20933e-08
-1.93514e-09
-6.8415e-08
1.52762e-08
-5.03317e-08
-2.12463e-09
4.04515e-08
1.70967e-08
4.0014e-08
-4.22982e-08
6.61587e-09
-3.60267e-08
-5.50043e-08
6.88398e-08
-2.94575e-07
2.21515e-07
-4.79438e-07
1.48581e-07
-5.266e-07
-7.00826e-09
-6.00529e-07
-1.29013e-08
-6.64909e-07
4.88772e-08
-6.11553e-07
4.66301e-08
-5.3992e-07
2.66256e-08
-4.73878e-07
-6.10061e-08
-4.55259e-07
-1.78835e-07
-4.58436e-07
-2.15406e-07
-4.69919e-07
-2.20611e-07
-4.73271e-07
-2.11297e-07
-4.44565e-07
-1.87494e-07
-4.1286e-07
-1.45718e-07
-3.71661e-07
-9.64619e-08
-3.11268e-07
-4.72847e-08
-2.39132e-07
-4.87606e-09
-1.57865e-07
4.22422e-08
-8.23643e-08
8.85942e-08
-1.94263e-08
1.16749e-07
1.13275e-09
1.50186e-07
-2.48856e-08
2.28899e-07
-4.30454e-08
2.98092e-07
-3.31499e-08
3.30637e-07
-8.88355e-09
3.34634e-07
2.29505e-08
2.87832e-07
4.44558e-08
2.5714e-07
5.7825e-08
2.22969e-07
6.79266e-08
1.81308e-07
8.45164e-08
1.57055e-07
1.18075e-07
1.47132e-07
1.3429e-07
1.19516e-07
1.13273e-07
4.31106e-08
6.98812e-08
-2.50227e-08
3.08335e-08
-1.12841e-08
1.42546e-08
5.70306e-08
3.91194e-08
1.51496e-08
-6.13472e-08
6.54769e-08
-1.01503e-07
7.3672e-08
6.06446e-08
1.09639e-07
1.85546e-07
-7.01e-08
3.28314e-07
-4.41172e-07
3.64059e-07
-5.36928e-07
8.28551e-08
-4.97203e-07
9.15383e-09
-4.90669e-07
4.00948e-08
-4.93822e-07
2.97777e-08
-4.47136e-07
-1.07691e-07
-4.54016e-07
-1.71956e-07
-4.92909e-07
-1.76511e-07
-5.47382e-07
-1.66137e-07
-5.79097e-07
-1.79582e-07
-5.7983e-07
-1.86761e-07
-5.49899e-07
-1.75649e-07
-5.10263e-07
-1.36098e-07
-4.75539e-07
-8.20077e-08
-4.31506e-07
-4.89084e-08
-3.88235e-07
-1.02901e-09
-3.34195e-07
3.45543e-08
-2.68826e-07
5.13807e-08
-2.19019e-07
1.00378e-07
-2.0026e-07
2.1014e-07
-1.79417e-07
2.77249e-07
-1.33329e-07
2.84549e-07
-5.92112e-08
2.60516e-07
4.93563e-09
2.23685e-07
4.60874e-08
2.15989e-07
8.05533e-08
1.88503e-07
1.05933e-07
1.55929e-07
1.27599e-07
1.35389e-07
1.4905e-07
1.25681e-07
1.61334e-07
1.07232e-07
1.48297e-07
5.61472e-08
1.0854e-07
1.47343e-08
6.61108e-08
3.11452e-08
6.98347e-08
5.33072e-08
7.388e-08
1.11042e-08
-7.46384e-08
-7.75121e-08
-2.39923e-08
1.71658e-08
-3.40347e-08
2.91415e-07
-8.87012e-08
5.40083e-07
7.96467e-08
1.18878e-07
7.85264e-07
-4.95451e-07
6.97187e-07
-5.89791e-07
1.03492e-07
-5.36861e-07
-1.2835e-08
-3.79051e-07
-1.28031e-07
-2.58615e-07
-2.28127e-07
-3.75282e-07
-5.52887e-08
-5.44518e-07
-7.27532e-09
-6.07798e-07
-1.02857e-07
-6.37851e-07
-1.49528e-07
-6.54274e-07
-1.70339e-07
-6.43138e-07
-1.86784e-07
-5.99955e-07
-1.79281e-07
-5.54368e-07
-1.27595e-07
-5.00718e-07
-1.02558e-07
-4.27104e-07
-7.46422e-08
-3.62758e-07
-2.97923e-08
-3.14812e-07
3.43509e-09
-2.75008e-07
6.05743e-08
-2.20921e-07
1.56053e-07
-1.52187e-07
2.08515e-07
-9.2249e-08
2.24611e-07
-1.45734e-08
1.8284e-07
5.27557e-08
1.56356e-07
1.10902e-07
1.57843e-07
1.43349e-07
1.56056e-07
1.61639e-07
1.37639e-07
1.72252e-07
1.24777e-07
1.73845e-07
1.24088e-07
1.61159e-07
1.19918e-07
1.27336e-07
8.99695e-08
9.6924e-08
4.51461e-08
8.14994e-08
4.65706e-08
8.70204e-08
4.77867e-08
8.14244e-08
1.66999e-08
-7.37455e-08
1.14927e-07
-1.38921e-07
1.98106e-07
-1.17217e-07
2.40044e-07
-1.30654e-07
3.12217e-07
7.49059e-09
2.31611e-07
8.6586e-07
-1.55085e-07
1.0839e-06
-4.98552e-07
4.46951e-07
-4.57033e-07
-5.43533e-08
-2.23797e-07
-3.61263e-07
-3.14164e-07
-1.37757e-07
-6.06868e-07
2.374e-07
-6.38577e-07
2.44259e-08
-5.87918e-07
-1.53513e-07
-6.29123e-07
-1.08322e-07
-7.36042e-07
-6.34178e-08
-7.05266e-07
-2.17562e-07
-6.04869e-07
-2.79679e-07
-6.05721e-07
-1.26743e-07
-5.93116e-07
-1.15163e-07
-5.4455e-07
-1.23208e-07
-4.90991e-07
-8.33518e-08
-4.54046e-07
-3.35104e-08
-4.00889e-07
7.41665e-09
-3.01152e-07
5.63154e-08
-1.91649e-07
9.90122e-08
-8.10826e-08
1.14044e-07
-2.20344e-08
1.23792e-07
5.01377e-08
8.41841e-08
9.78673e-08
1.10113e-07
1.18528e-07
1.35395e-07
1.50828e-07
1.0534e-07
1.62983e-07
1.12622e-07
1.78684e-07
1.08387e-07
1.90306e-07
1.08294e-07
1.85629e-07
9.46464e-08
1.55582e-07
7.51944e-08
1.32664e-07
6.94892e-08
1.18011e-07
6.24397e-08
9.69602e-08
3.77507e-08
-3.45774e-08
1.58761e-07
-2.97687e-07
2.37275e-07
-1.95722e-07
2.36621e-07
-1.30023e-07
1.83415e-07
6.06972e-08
3.57141e-07
6.9216e-07
4.35966e-07
1.00504e-06
7.2255e-08
8.10668e-07
-3.42883e-07
3.60767e-07
-6.52546e-07
-5.15873e-08
-7.50687e-07
-3.96448e-08
-5.62382e-07
4.9057e-08
-4.26008e-07
-1.11953e-07
-3.00287e-07
-2.79229e-07
-2.14328e-07
-1.94279e-07
-3.14445e-07
3.66975e-08
-5.18671e-07
-1.33344e-08
-7.34451e-07
-6.38914e-08
-7.87506e-07
-7.36899e-08
-7.72466e-07
-1.30203e-07
-5.37109e-07
-3.58565e-07
-4.85466e-07
-1.34994e-07
-4.76165e-07
-4.28122e-08
-4.37712e-07
-3.10364e-08
-3.70375e-07
-1.10222e-08
-2.78679e-07
7.31589e-09
-1.99538e-07
3.49036e-08
-1.27856e-07
5.21092e-08
-1.24785e-07
8.11128e-08
-5.57889e-08
4.11173e-08
3.03362e-08
4.92698e-08
6.97529e-08
6.59224e-08
1.21914e-07
6.046e-08
1.68422e-07
6.18789e-08
1.97434e-07
7.92824e-08
2.05917e-07
8.61641e-08
1.87901e-07
9.32097e-08
1.57645e-07
9.97461e-08
1.1951e-07
1.00574e-07
9.61379e-08
6.11228e-08
1.97116e-08
-1.02146e-07
-1.95559e-07
-9.5443e-08
-2.02425e-07
-5.57402e-08
-1.69723e-07
3.3389e-08
-2.83889e-08
3.59622e-07
3.65925e-07
5.40561e-07
8.24097e-07
5.96602e-07
7.5463e-07
4.68759e-07
4.886e-07
1.85681e-07
2.31514e-07
6.48911e-08
8.11181e-08
4.80223e-08
6.59165e-08
-3.65701e-08
-2.73259e-08
-1.89034e-07
-1.26764e-07
-2.63357e-07
-1.19972e-07
-2.28894e-07
2.22223e-09
-2.62798e-07
2.06068e-08
-2.51295e-07
-7.53853e-08
-1.20418e-07
-2.04569e-07
-2.08287e-07
-4.23364e-08
-4.7994e-07
-8.69136e-08
-5.95013e-07
-1.99135e-08
-4.53796e-07
-1.84025e-07
-3.11728e-07
-1.73105e-07
-2.344e-07
-8.83485e-08
-2.31658e-07
4.57459e-09
-2.21901e-07
2.51459e-08
-1.94097e-07
2.43049e-08
-1.41607e-07
2.86226e-08
-9.47396e-08
-5.75031e-09
-4.89993e-08
3.52914e-09
1.2282e-08
4.64084e-09
8.30747e-08
-1.03324e-08
1.39434e-07
5.51992e-09
1.76189e-07
4.25272e-08
1.97874e-07
6.44791e-08
1.89694e-07
1.01389e-07
1.94375e-07
9.50651e-08
1.58955e-07
1.35994e-07
1.29236e-07
9.08419e-08
1.20609e-07
-1.32949e-07
-6.26303e-08
-2.26093e-07
-1.09249e-07
-2.88516e-07
-1.07278e-07
-2.51725e-07
-6.52133e-08
4.21974e-08
7.2002e-08
3.99659e-07
4.66638e-07
6.29209e-07
5.25104e-07
6.77434e-07
4.40388e-07
6.73549e-07
2.35364e-07
6.59576e-07
9.50614e-08
6.74782e-07
5.07091e-08
6.02147e-07
4.53177e-08
4.31781e-07
4.36121e-08
2.74197e-07
3.76083e-08
2.48606e-07
2.7833e-08
3.2464e-07
-5.54168e-08
3.7352e-07
-1.24257e-07
3.72527e-07
-2.03569e-07
4.65825e-07
-1.35632e-07
3.51118e-07
2.77989e-08
3.57442e-07
-2.62314e-08
3.06998e-07
-1.33569e-07
3.15625e-07
-1.81729e-07
4.09524e-07
-1.82243e-07
4.41053e-07
-2.69535e-08
2.97064e-07
1.69134e-07
3.94039e-08
2.81963e-07
-5.95061e-08
1.27532e-07
-9.03047e-08
2.50482e-08
-3.08218e-08
-5.59543e-08
6.99186e-08
-9.60991e-08
8.43313e-08
-2.47486e-08
8.53899e-08
4.47564e-09
9.199e-08
3.59317e-08
1.17235e-07
3.92403e-08
1.56458e-07
6.21672e-08
1.83667e-07
6.7855e-08
1.96178e-07
1.23484e-07
2.53126e-07
3.38851e-08
3.63438e-07
-7.32029e-08
1.05583e-08
-1.86643e-07
4.19963e-09
-2.84664e-07
-9.18997e-09
-3.31954e-07
-1.79463e-08
-2.61871e-07
1.95313e-09
6.02722e-08
1.44492e-07
3.52898e-07
2.32477e-07
5.56836e-07
2.36463e-07
6.41801e-07
1.50388e-07
6.5119e-07
8.56865e-08
6.26567e-07
7.53444e-08
5.85967e-07
8.58927e-08
5.31497e-07
9.8067e-08
4.83289e-07
8.5846e-08
4.27394e-07
8.37527e-08
3.1509e-07
5.68887e-08
1.28271e-07
6.25517e-08
5.85583e-08
-1.33863e-07
1.03457e-07
-1.80525e-07
1.43704e-07
-1.24382e-08
2.87139e-07
-1.69651e-07
3.54356e-07
-2.0078e-07
5.2701e-07
-3.54376e-07
6.79416e-07
-3.34648e-07
8.67669e-07
-2.15217e-07
9.61167e-07
7.56145e-08
9.34544e-07
3.08571e-07
7.16245e-07
3.45831e-07
4.87981e-07
2.53316e-07
3.27589e-07
1.04433e-07
2.15495e-07
1.59801e-08
2.03251e-07
-1.25235e-08
2.32326e-07
-2.46169e-08
2.74977e-07
-6.71783e-09
2.9722e-07
1.70028e-08
2.89068e-07
7.03176e-08
2.45867e-07
1.11047e-07
1.93598e-07
1.75736e-07
7.60259e-08
1.51462e-07
3.17173e-07
-6.72287e-08
7.77623e-08
-1.45909e-07
8.28979e-08
-1.98244e-07
4.3153e-08
-2.20964e-07
4.78539e-09
-2.16423e-07
-2.59576e-09
-1.18624e-07
4.66983e-08
2.61791e-08
8.76897e-08
1.69393e-07
9.32397e-08
2.49236e-07
7.05205e-08
2.81085e-07
5.3845e-08
2.99848e-07
5.65971e-08
3.1174e-07
7.39955e-08
3.29827e-07
7.99894e-08
3.13929e-07
1.01752e-07
2.64538e-07
1.33151e-07
1.80212e-07
1.41205e-07
8.12775e-08
1.61465e-07
3.32173e-08
-8.58004e-08
3.39054e-08
-1.81207e-07
2.71382e-07
-2.49897e-07
4.17972e-07
-3.16233e-07
5.14851e-07
-2.97652e-07
3.9032e-07
-2.29845e-07
2.89417e-07
-2.33757e-07
2.76283e-07
-2.02099e-07
3.06773e-07
4.51169e-08
3.83044e-07
2.32305e-07
4.22948e-07
3.05932e-07
3.97918e-07
2.78346e-07
3.30033e-07
1.72317e-07
2.54206e-07
9.18193e-08
2.55734e-07
-1.40669e-08
2.81368e-07
-5.02601e-08
3.13835e-07
-3.91764e-08
3.42169e-07
-1.13325e-08
3.52255e-07
6.02236e-08
3.15783e-07
1.47543e-07
2.55539e-07
2.35996e-07
1.63181e-07
2.43838e-07
3.00739e-07
-3.40526e-08
1.11857e-07
-8.96267e-08
1.38479e-07
-1.55173e-07
1.08689e-07
-2.1353e-07
6.31562e-08
-2.5476e-07
3.86235e-08
-2.4765e-07
3.96451e-08
-1.9949e-07
3.9536e-08
-1.4773e-07
4.14682e-08
-1.06605e-07
2.94151e-08
-7.5828e-08
2.30699e-08
-4.14499e-08
2.22026e-08
4.01976e-08
-7.6638e-09
1.47011e-07
-2.6807e-08
2.51257e-07
-2.47937e-09
2.98959e-07
8.54576e-08
3.242e-07
1.15956e-07
3.44993e-07
1.40673e-07
2.54637e-07
4.56551e-09
1.78238e-07
-1.04797e-07
8.39457e-08
-1.556e-07
-1.27878e-08
-2.1949e-07
-8.87095e-08
-2.21736e-07
-1.33552e-07
-1.85019e-07
-2.02153e-07
-1.65164e-07
-2.70895e-07
-1.33361e-07
-2.18288e-07
-7.48179e-09
-9.81224e-08
1.12143e-07
4.10964e-08
1.66706e-07
1.61611e-07
1.57817e-07
2.1387e-07
1.20059e-07
2.50597e-07
5.51117e-08
2.64351e-07
-2.78257e-08
2.67646e-07
-5.35739e-08
2.75036e-07
-4.65643e-08
2.63237e-07
4.65147e-10
2.17262e-07
1.06203e-07
1.38855e-07
2.25911e-07
6.24368e-08
3.12403e-07
1.65034e-08
2.89763e-07
2.69614e-07
1.22572e-08
9.95925e-08
1.25151e-09
1.49486e-07
-4.4305e-08
1.5426e-07
-1.04516e-07
1.23404e-07
-1.63826e-07
9.79691e-08
-1.95125e-07
7.09507e-08
-2.00375e-07
4.47829e-08
-1.96959e-07
3.80618e-08
-1.8182e-07
1.42908e-08
-1.48694e-07
-1.00526e-08
-1.08859e-07
-1.76383e-08
-7.2084e-08
-4.44257e-08
-2.97564e-08
-6.91174e-08
4.55389e-08
-7.77864e-08
1.15415e-07
1.55564e-08
1.53803e-07
7.75635e-08
1.76391e-07
1.18095e-07
1.49413e-07
3.1569e-08
7.43955e-08
-2.97413e-08
-2.58039e-08
-5.53859e-08
-1.13373e-07
-1.31928e-07
-1.60326e-07
-1.74801e-07
-1.73521e-07
-1.71831e-07
-1.90657e-07
-1.48018e-07
-2.11191e-07
-1.12809e-07
-1.86265e-07
-3.23929e-08
-1.0482e-07
3.07074e-08
-8.74154e-09
7.06338e-08
9.6969e-08
5.20991e-08
1.63024e-07
5.39889e-08
2.00374e-07
1.77691e-08
1.87117e-07
-1.45443e-08
1.45987e-07
-1.24241e-08
9.41107e-08
5.33959e-09
2.26676e-08
7.19342e-08
-9.85699e-08
2.27467e-07
-2.16778e-07
3.44143e-07
-2.67655e-07
3.6329e-07
-2.4235e-07
2.64517e-07
1.88272e-07
2.77097e-08
7.18842e-08
4.69438e-08
1.30275e-07
5.04615e-08
1.5077e-07
3.7373e-08
1.36493e-07
2.41002e-08
1.1124e-07
8.31909e-09
8.67295e-08
-3.40233e-09
5.65129e-08
4.80216e-10
3.419e-08
-9.08026e-09
2.385e-08
-2.35372e-08
4.40489e-09
-3.93397e-08
-1.81364e-09
-6.87633e-08
-1.49862e-08
-9.63821e-08
-4.15145e-08
-1.17111e-07
-5.70719e-08
-7.50044e-08
-2.65534e-08
-2.68569e-08
2.94179e-08
3.10655e-08
6.01776e-08
5.20112e-08
1.06171e-08
6.62239e-08
-4.39487e-08
9.03268e-08
-7.94855e-08
8.02051e-08
-1.21798e-07
3.75424e-08
-1.32126e-07
-5.82447e-09
-1.28455e-07
-1.97042e-08
-1.34138e-07
-3.30608e-08
-9.94595e-08
-3.63841e-08
-2.90657e-08
-1.84887e-08
1.2826e-08
3.42101e-08
1.79424e-08
9.17402e-08
-5.42557e-09
1.4268e-07
3.05015e-09
1.36764e-07
2.3676e-08
8.7063e-08
3.51606e-08
2.22523e-08
5.23739e-08
-4.47214e-08
7.22967e-08
-1.15471e-07
1.42714e-07
-1.85449e-07
2.9742e-07
-2.47005e-07
4.05705e-07
-3.06848e-07
4.23102e-07
-3.57866e-07
3.15511e-07
1.27594e-07
1.72222e-08
5.46895e-08
3.58919e-08
1.11614e-07
5.26557e-08
1.33998e-07
6.4205e-08
1.24948e-07
7.52604e-08
1.00185e-07
8.73892e-08
7.46145e-08
9.47273e-08
4.91865e-08
9.97578e-08
2.91511e-08
1.04008e-07
1.96002e-08
9.99587e-08
8.47302e-09
9.79874e-08
1.61215e-10
7.6468e-08
6.51837e-09
4.11491e-08
-6.21944e-09
7.21954e-09
-2.31568e-08
5.71357e-09
-2.50298e-08
4.65111e-08
-1.13561e-08
1.15271e-07
-8.57367e-09
1.63287e-07
-3.74128e-08
1.87283e-07
-6.79689e-08
1.93202e-07
-8.5433e-08
1.72655e-07
-1.01259e-07
1.44413e-07
-1.03878e-07
1.11575e-07
-9.56151e-08
6.57435e-08
-8.83147e-08
2.86363e-08
-6.23582e-08
6.79333e-09
-7.21264e-09
2.46008e-09
1.71704e-08
2.79745e-08
-7.56162e-09
3.95317e-08
-1.69634e-08
2.92982e-08
1.33059e-08
1.602e-09
5.13899e-08
-3.81562e-08
7.49603e-08
-7.54749e-08
8.97464e-08
-1.12059e-07
1.08885e-07
-1.35051e-07
1.65745e-07
-1.2614e-07
2.8854e-07
-1.2119e-07
4.00768e-07
-1.12545e-07
4.14454e-07
-9.75379e-08
3.00517e-07
1.47763e-07
-3.2595e-09
5.79373e-08
8.74186e-09
9.96282e-08
2.92789e-08
1.13459e-07
4.90097e-08
1.05208e-07
6.512e-08
8.40826e-08
7.84844e-08
6.1251e-08
8.67586e-08
4.09203e-08
9.06717e-08
2.52624e-08
9.62644e-08
1.40064e-08
1.01756e-07
2.96924e-09
1.08407e-07
-6.49692e-09
1.19855e-07
-4.93952e-09
1.22239e-07
-8.61275e-09
1.15037e-07
-1.59736e-08
1.11135e-07
-2.11387e-08
1.29721e-07
-2.99427e-08
1.66591e-07
-4.54616e-08
1.9721e-07
-6.80485e-08
2.09167e-07
-7.99318e-08
2.13022e-07
-8.92909e-08
1.9941e-07
-8.76552e-08
1.73797e-07
-7.8281e-08
1.42379e-07
-6.42015e-08
9.93558e-08
-4.52861e-08
5.31756e-08
-1.6186e-08
2.86974e-08
1.72444e-08
2.77273e-08
1.8134e-08
1.27789e-08
7.3837e-09
-2.03663e-08
1.61592e-08
-4.9619e-08
4.25408e-08
-6.76583e-08
6.94356e-08
-8.22147e-08
8.95221e-08
-9.81119e-08
1.05691e-07
-1.13842e-07
1.24612e-07
-1.11286e-07
1.63221e-07
-6.73714e-08
2.44656e-07
1.08856e-09
3.32299e-07
7.52405e-08
3.40271e-07
8.47475e-08
2.90998e-07
2.52743e-07
-2.73397e-08
8.52833e-08
-2.66302e-08
9.895e-08
-1.1473e-08
9.82859e-08
7.45972e-09
8.62375e-08
2.3837e-08
6.77094e-08
3.54218e-08
4.96739e-08
4.28006e-08
3.35217e-08
4.84672e-08
1.95831e-08
5.46514e-08
7.83199e-09
5.98294e-08
-2.19553e-09
6.39527e-08
-1.06304e-08
7.46911e-08
-1.56932e-08
8.78203e-08
-2.17212e-08
1.01182e-07
-2.9303e-08
1.17444e-07
-3.741e-08
1.34438e-07
-4.69752e-08
1.46761e-07
-5.78221e-08
1.46004e-07
-6.73032e-08
1.39023e-07
-7.29489e-08
1.24417e-07
-7.46822e-08
1.07481e-07
-7.07255e-08
8.9399e-08
-6.02206e-08
7.24127e-08
-4.72342e-08
5.4988e-08
-2.78544e-08
3.53972e-08
3.42808e-09
5.52426e-09
4.71241e-08
-2.07411e-08
4.44103e-08
-4.16338e-08
2.83032e-08
-6.02268e-08
3.47607e-08
-6.99668e-08
5.22712e-08
-7.33489e-08
7.28353e-08
-7.48361e-08
9.10178e-08
-7.58139e-08
1.06699e-07
-7.41972e-08
1.23004e-07
-5.91473e-08
1.48152e-07
-9.65235e-09
1.95163e-07
6.97693e-08
2.52895e-07
1.26877e-07
2.83178e-07
8.00178e-08
3.37847e-07
2.62623e-07
-4.18323e-08
-4.09683e-08
-2.97566e-08
-1.86373e-08
-6.86249e-09
1.35062e-09
6.40455e-09
9.15479e-09
1.07096e-08
1.18726e-08
1.31116e-08
1.60283e-08
1.98362e-08
2.37111e-08
2.77995e-08
3.11188e-08
3.18595e-08
3.00125e-08
2.70238e-08
2.37387e-08
2.21169e-08
2.45331e-08
2.93154e-08
3.61284e-08
3.94891e-08
3.53667e-09
-3.80419e-08
-4.73674e-08
-5.39181e-08
-5.63794e-08
-5.38635e-08
-4.53795e-08
-2.86201e-08
1.238e-09
5.22356e-08
1.45928e-07
2.89678e-07
3.12183e-07
2.20994e-07
)
;
boundaryField
{
inlet
{
type calculated;
value uniform -2e-07;
}
inletWall
{
type calculated;
value uniform 0;
}
bottleWall
{
type calculated;
value uniform 0;
}
atmosphere
{
type calculated;
value nonuniform List<scalar>
80
(
-1.50978e-07
-9.7334e-08
-8.00718e-08
-7.29489e-08
-6.67481e-08
-6.2847e-08
-5.96893e-08
-4.82991e-08
-2.44142e-08
1.76599e-08
3.10346e-07
2.15798e-08
-5.19244e-08
-5.46341e-08
-5.58289e-08
-5.24217e-08
-5.08809e-08
-5.00471e-08
-4.97509e-08
-5.03871e-08
-5.19868e-08
-5.43249e-08
-5.75315e-08
-6.16633e-08
-6.69037e-08
-7.35964e-08
-8.13529e-08
-8.96603e-08
-9.6096e-08
-1.00415e-07
-1.06461e-07
-1.04264e-07
-9.9329e-08
-9.31233e-08
-6.76546e-08
-2.81899e-08
4.39599e-08
2.82966e-07
4.88544e-07
1.34889e-06
1.27118e-07
9.80786e-08
8.70839e-08
7.51346e-08
5.59326e-08
4.14447e-08
2.84708e-08
1.68386e-08
6.25729e-09
-3.37516e-09
-1.18689e-08
-1.8609e-08
-2.55325e-08
-3.31855e-08
-4.15172e-08
-5.03146e-08
-5.85718e-08
-6.54579e-08
-6.99697e-08
-7.14011e-08
-6.90996e-08
-6.26436e-08
-5.20424e-08
-3.46874e-08
6.7547e-11
8.3068e-08
8.59578e-08
3.76004e-08
4.13168e-08
5.47391e-08
7.03078e-08
8.25608e-08
8.9947e-08
9.31686e-08
9.71826e-08
1.01457e-07
1.09119e-07
2.60679e-07
4.29035e-07
2.95233e-07
)
;
}
frontAndBack
{
type empty;
value nonuniform List<scalar> 0();
}
}
// ************************************************************************* //
| [
"[email protected]"
] | ||
fb318fd15acd900f20a4cc90180e3a35bc042abc | a758d924476bbc8b11e5ccae2dcac309accceeff | /hw2/UVA-408.cpp | ec45a73a606df20249e1fa6a653b005ce5d89cc3 | [] | no_license | st9007a/acm | cf3e98167247d2b2126be9fa568b08ab4701386f | 65894061e397e29a8737b6efb71fe95eceaf03d0 | refs/heads/master | 2020-04-10T03:53:14.486676 | 2018-06-21T03:06:23 | 2018-06-21T03:06:23 | 124,260,369 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 440 | cpp | #include <cstdio>
int gcd(int a, int b);
int main()
{
int step, mod;
while (scanf("%d %d", &step, &mod) != EOF) {
int flag = gcd(step, mod);
if (flag == 1) {
printf("%10d%10d Good Choice\n\n", step, mod);
} else {
printf("%10d%10d Bad Choice\n\n", step, mod);
}
}
}
int gcd(int a, int b)
{
if (a == 0) {
return b;
}
return gcd(b % a, a);
}
| [
"[email protected]"
] | |
03e7b53b5e6ea090e9751332368ef0c3cc83ae0e | ed6def55b1d46d42dee1af05ab49c6676f71747f | /src/vm/Universe.h | 222a9242fdc1179ea9f92fd6b8926dcd866bf268 | [] | no_license | yongqinglu/sompp32rhl | 4b2cc34846d6b1df62daa6d65ecf88c10ed87099 | f88a3fe344f3eca0ba21b6f940137bd72bc22c01 | refs/heads/master | 2021-01-11T00:22:14.165481 | 2016-10-11T04:41:07 | 2016-10-11T04:41:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,452 | h | #pragma once
#ifndef UNIVERSE_H_
#define UNIVERSE_H_
/*
*
*
Copyright (c) 2007 Michael Haupt, Tobias Pape, Arne Bergmann
Software Architecture Group, Hasso Plattner Institute, Potsdam, Germany
http://www.hpi.uni-potsdam.de/swa/
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 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 permission notice shall be included in
all copies or substantial portions of the Software.
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 OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
//#define __DEBUG
#include <map>
#include <vector>
#include "../misc/defs.h"
#include "../misc/ExtendedList.h"
#include "../vmobjects/ObjectFormats.h"
#include "../interpreter/Interpreter.h"
#include "../memory/Heap.h"
class VMObject;
class VMSymbol;
class VMClass;
class VMFrame;
class VMArray;
class VMBlock;
class VMDouble;
class VMInteger;
class VMMethod;
class VMString;
class VMBigInteger;
class Symboltable;
class SourcecodeCompiler;
//Convenience macro for Singleton access
#define _UNIVERSE Universe::GetUniverse()
// for runtime debug
extern short dumpBytecodes;
extern short gcVerbosity;
//global VMObjects
extern pVMObject nilObject;
extern pVMObject trueObject;
extern pVMObject falseObject;
extern pVMClass objectClass;
extern pVMClass classClass;
extern pVMClass metaClassClass;
extern pVMClass nilClass;
extern pVMClass integerClass;
extern pVMClass bigIntegerClass;
extern pVMClass arrayClass;
extern pVMClass methodClass;
extern pVMClass symbolClass;
extern pVMClass frameClass;
extern pVMClass primitiveClass;
extern pVMClass stringClass;
extern pVMClass systemClass;
extern pVMClass blockClass;
extern pVMClass doubleClass;
using namespace std;
class Universe
{
public:
Universe* operator->();
//static methods
static Universe* GetUniverse();
static void Start(int argc, char** argv);
static void Quit(int);
static void ErrorExit(const char*);
//Globals accessor (only for GC, could be considered be
//declared as a private friend method for the GC)
map<pVMSymbol, pVMObject> GetGlobals() {return globals;}
Heap* GetHeap() {return heap;}
Interpreter* GetInterpreter() {return interpreter;}
//
void Assert(bool) const;
pVMSymbol SymbolFor(const StdString&);
pVMSymbol SymbolForChars(const char*);
//VMObject instanciation methods. These should probably be refactored to a new class
pVMArray NewArray(int) const;
pVMArray NewArrayList(ExtendedList<pVMObject>& list) const;
pVMArray NewArrayFromArgv(const vector<StdString>&) const;
pVMBlock NewBlock(pVMMethod, pVMFrame, int);
pVMClass NewClass(pVMClass) const;
pVMFrame NewFrame(pVMFrame, pVMMethod) const;
pVMMethod NewMethod(pVMSymbol, size_t, size_t) const;
pVMObject NewInstance(pVMClass) const;
pVMInteger NewInteger(int32_t) const;
pVMBigInteger NewBigInteger(int64_t) const;
pVMDouble NewDouble(double) const;
pVMClass NewMetaclassClass(void) const;
pVMString NewString(const StdString&) const;
pVMSymbol NewSymbol(const StdString&);
pVMString NewString(const char*) const;
pVMSymbol NewSymbol(const char*);
pVMClass NewSystemClass(void) const;
void InitializeSystemClass(pVMClass, pVMClass, const char*);
pVMObject GetGlobal(pVMSymbol);
void SetGlobal(pVMSymbol name, pVMObject val);
// bool HasGlobal(pVMSymbol);
pVMObject HasGlobal(pVMSymbol);
void InitializeGlobals();
pVMClass GetBlockClass(void) const;
pVMClass GetBlockClassWithArgs(int);
pVMClass LoadClass(pVMSymbol);
void LoadSystemClass(pVMClass);
pVMClass LoadClassBasic(pVMSymbol, pVMClass);
pVMClass LoadShellClass(StdString&);
void FullGC();
Universe();
~Universe();
//
private:
vector<StdString> handleArguments(int argc, char** argv) ;
int getClassPathExt(vector<StdString>& tokens, const StdString& arg) const;
static Universe* theUniverse;
int setupClassPath(const StdString& cp);
int addClassPath(const StdString& cp);
void printUsageAndExit(char* executable) const;
void initialize(int, char**);
Heap* heap;
uintptr_t heapSize;
//int heapSize;
map<pVMSymbol, pVMObject> globals;
vector<StdString> classPath;
Symboltable* symboltable;
SourcecodeCompiler* compiler;
Interpreter* interpreter;
};
#endif
| [
"[email protected]"
] | |
e255a9157d23757efef0daff7d6525da739a8538 | d6c88c10b2ed79ed260f3eedeb8a4f544ccd555a | /assignment solutions/assignment 2/2c/main.cpp | cec36f40eff75e8d8999e41ae792a48815b27806 | [] | no_license | prijuly2000/CPP | 4e14141f2f5f6256921715425dc17f3f9ab6e566 | 74b574094787dc2d326c625336144a26ee70521d | refs/heads/master | 2016-09-06T08:26:56.249305 | 2015-08-14T00:02:53 | 2015-08-14T00:02:53 | 40,687,105 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 269 | cpp | #include"Complex.h"
void main()
{
Complex c1[5];
Complex::displaycount();
Complex c2(10,20);
Complex::displaycount();
c2.display();
Complex *p=new Complex[4];
Complex::displaycount();
delete []p;
Complex c4;
c4.accept();
Complex c3(c4);
c3.display();
} | [
"[email protected]"
] | |
44bc13888ea40aa5e8d0a7510494aaa5759d8e87 | 2421ccec410ff11bba692eae5c493df3cc4f0516 | /OpenCV/OpenCV/methodsForImage.cpp | 6c440788ca5ab4463cc9e6bcee65528557b6c0dd | [] | no_license | Smirnov-Mikhail/SearchTableCell | b0679d5b2156440076db38b353e8bd12b67fa207 | fcd96820d54a9cb5daeb82f3cddee33f708cef5c | refs/heads/master | 2021-01-10T15:47:01.902088 | 2015-09-23T19:47:09 | 2015-09-23T19:47:09 | 43,020,659 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 13,175 | cpp | #include <iostream>
#include "opencv2/core/core.hpp"
#include "opencv2/highgui/highgui.hpp"
#include <string>
#include "methodsForImage.h"
using namespace std;
// Параментры прямоугольников, котрый мы ищем, чтобы обнаружить угол.
int lengthRectangle = 60;
int widthRectangle = 1;
// Определяем является ли пиксель серым или чёрным.
inline bool isGreyOrBlack(int a, int b, int c, int sensitivity)
{
if (abs(a - b) < 5 && abs(a - c) < 5 && a < sensitivity + 10)
return true;
return false;
}
// Определяем является ли пиксель серым или чёрным, но с учётом того, что проверяем для датчика.
inline bool isGreyOrBlackForSensor(IplImage *img, int x, int y, int sensitivity)
{
uchar* ptr = (uchar*) (img->imageData + y * img->widthStep);
if (abs(ptr[x * 3] - ptr[x * 3 + 1]) < (sensitivity / 40) && abs(ptr[x * 3] - ptr[x * 3 + 2]) < (sensitivity / 40)
&& ptr[x * 3] < sensitivity)
return true;
return false;
}
// Определяем является ли пиксель белым.
inline bool isWhite(int a, int b, int c)
{
if (abs(a - b) < 3 && abs(a - c) < 3 && a > 245)
return true;
return false;
}
// Определяем является ли точка основанием левого-верхнего угла.
bool isTopLeftCorner(IplImage *img, int x, int y, int sensitivity, int amountWhitePixels)
{
// Проверяем границы.
if (x + lengthRectangle > img->width || x + widthRectangle > img->width
|| y + widthRectangle > img->height || y + lengthRectangle > img->height)
return false;
int count = 0; // Для подсчёта не чёрных клеток.
// Для этого проверим наличие двух пересекающихся прямоугольников.
// Проверяем наличие горизонтального.
for (int y2 = y; y2 < y + widthRectangle; y2++)
{
uchar* ptr = (uchar*) (img->imageData + y2 * img->widthStep);
for (int x2 = x; x2 < x + lengthRectangle; x2++)
{
if (!isGreyOrBlack(ptr[x2 * 3], ptr[x2 * 3 + 1], ptr[x2 * 3 + 2], sensitivity))
{
count++;
if (count > amountWhitePixels)
return false;
}
}
}
count = 0;
// Проверяем наличие вертикального.
for (int y2 = y; y2 < y + lengthRectangle; y2++)
{
uchar* ptr = (uchar*) (img->imageData + y2 * img->widthStep);
for (int x2 = x; x2 < x + widthRectangle; x2++)
{
if (!isGreyOrBlack(ptr[x2 * 3], ptr[x2 * 3 + 1], ptr[x2 * 3 + 2], sensitivity))
{
count++;
if (count > amountWhitePixels)
return false;
}
}
}
return true;
}
// Определяем является ли точка основанием правого-верхнего угла.
bool isTopRightCorner(IplImage *img, int x, int y, int sensitivity, int amountWhitePixels)
{
// Проверяем границы.
if (x - lengthRectangle < 0 || x - widthRectangle < 0
|| y + widthRectangle > img->height || y + lengthRectangle > img->height)
return false;
int count = 0; // Для подсчёта не чёрных пикселей.
// Для этого проверим наличие двух пересекающихся прямоугольников.
// Проверяем наличие горизонтального.
for (int y2 = y; y2 < y + widthRectangle; y2++)
{
uchar* ptr = (uchar*) (img->imageData + y2 * img->widthStep);
for (int x2 = x; x2 > x - lengthRectangle; x2--)
{
if (!isGreyOrBlack(ptr[x2 * 3], ptr[x2 * 3 + 1], ptr[x2 * 3 + 2], sensitivity))
{
count++;
if (count > amountWhitePixels)
return false;
}
}
}
count = 0;
// Проверяем наличие вертикального.
for (int y2 = y; y2 < y + lengthRectangle; y2++)
{
uchar* ptr = (uchar*) (img->imageData + y2 * img->widthStep);
for (int x2 = x; x2 > x - widthRectangle; x2--)
{
if (!isGreyOrBlack(ptr[x2 * 3], ptr[x2 * 3 + 1], ptr[x2 * 3 + 2], sensitivity))
{
count++;
if (count > amountWhitePixels)
return false;
}
}
}
return true;
}
// Аналогично функциии, которая выше.
bool isBotLeftCorner(IplImage *img, int x, int y, int sensitivity, int amountWhitePixels)
{
// Проверяем границы.
if (x + lengthRectangle > img->width || x + widthRectangle > img->width
|| y - widthRectangle < 0 || y - lengthRectangle < 0)
return false;
int count = 0; // Для подсчёта не чёрных пикселей.
// Для этого проверим наличие двух пересекающихся прямоугольников.
// Проверяем наличие горизонтального.
for (int y2 = y; y2 > y - widthRectangle; y2--)
{
uchar* ptr = (uchar*) (img->imageData + y2 * img->widthStep);
for (int x2 = x; x2 < x + lengthRectangle; x2++)
{
if (!isGreyOrBlack(ptr[x2 * 3], ptr[x2 * 3 + 1], ptr[x2 * 3 + 2], sensitivity))
{
count++;
if (count > amountWhitePixels)
return false;
}
}
}
count = 0;
// Проверяем наличие вертикального.
for (int y2 = y; y2 > y - lengthRectangle; y2--)
{
uchar* ptr = (uchar*) (img->imageData + y2 * img->widthStep);
for (int x2 = x; x2 < x + widthRectangle; x2++)
{
if (!isGreyOrBlack(ptr[x2 * 3], ptr[x2 * 3 + 1], ptr[x2 * 3 + 2], sensitivity))
{
count++;
if (count > amountWhitePixels)
return false;
}
}
}
return true;
}
// Аналогично функции, которая выше.
bool isBotRightCorner(IplImage *img, int x, int y, int sensitivity, int amountWhitePixels)
{
// Проверяем границы.
if (x - lengthRectangle < 0 || x - widthRectangle < 0
|| y - widthRectangle < 0 || y - lengthRectangle < 0)
return false;
int count = 0; // Для подсчёта не чёрных пикселей.
// Для этого проверим наличие двух пересекающихся прямоугольников.
// Проверяем наличие горизонтального.
for (int y2 = y; y2 > y - widthRectangle; y2--)
{
uchar* ptr = (uchar*) (img->imageData + y2 * img->widthStep);
for (int x2 = x; x2 > x - lengthRectangle; x2--)
{
if (!isGreyOrBlack(ptr[x2 * 3], ptr[x2 * 3 + 1], ptr[x2 * 3 + 2], sensitivity))
{
count++;
if (count > amountWhitePixels)
return false;
}
}
}
count = 0;
// Проверяем наличие вертикального.
for (int y2 = y; y2 > y - lengthRectangle; y2--)
{
uchar* ptr = (uchar*) (img->imageData + y2 * img->widthStep);
for (int x2 = x; x2 > x - widthRectangle; x2--)
{
if (!isGreyOrBlack(ptr[x2 * 3], ptr[x2 * 3 + 1], ptr[x2 * 3 + 2], sensitivity))
{
count++;
if (count > amountWhitePixels)
return false;
}
}
}
return true;
}
// Проверяем является ли точка основанием ячейки.
bool isCell(CellCoordinate *cellCoordinate, int sizeCellCoordinate, IplImage *img, int xCoordinate, int yCoordinate, int &width, int &height, int sensitivity, int amountWhitePixels)
{
// Проверим является ли точка основанием левого-верхнего угла.
if (!isTopLeftCorner(img, xCoordinate, yCoordinate, sensitivity, amountWhitePixels))
return false;
// Создаём три датчика (2 внутренних и один внешний). Датчик срабатывает, когда натыкается на чёрный пиксель.
int sensorTop = yCoordinate - 12;
int sensorBot = yCoordinate + 12;
int sensorBotSecond = yCoordinate + 25;
int sensorBotThird = yCoordinate + 45;
width = 0;
// Проверяем наличие правого-верхнего угла и запоминаем ширину ячейки.
bool hasCorner = false;
for (int x = xCoordinate + 50; x < img->width && x < xCoordinate + 1500; x++)
{
if (hasCorner)
break;
// Если сработал хотя бы один датчик.
if (isGreyOrBlackForSensor(img, x, sensorTop + x % 3, sensitivity) || isGreyOrBlackForSensor(img, x, sensorBot + x % 3, sensitivity)
|| isGreyOrBlackForSensor(img, x, sensorBotSecond + x % 3, sensitivity) || isGreyOrBlackForSensor(img, x, sensorBotThird + x % 3, sensitivity))
{
for (int y = yCoordinate - 2; y <= yCoordinate + 5; y++)
{
if (isTopRightCorner(img, x, y, sensitivity, amountWhitePixels))
{
hasCorner = true;
width = x - xCoordinate;
break;
}
}
}
}
// Если правого-верхнего угла нет - проверяем наличие ячейки выше.
if (!hasCorner)
{
//return false;
return searchTopCell(cellCoordinate, sizeCellCoordinate, xCoordinate, width, height);
}
// Аналогичные датчики.
int sensorRight = xCoordinate + 12;
int sensorRightSecond = xCoordinate + 25;
int sensorRightThird = xCoordinate + 45;
int sensorLeft = xCoordinate - 12;
hasCorner = false;
height = 0;
// Проверяем наличие левого-нижнего угла и запоминаем высоту ячейки.
for (int y = yCoordinate + 50; y < img->height && y < yCoordinate + 500; y++)
{
if (hasCorner)
break;
// Если сработал хотя бы один счётчик.
if (isGreyOrBlackForSensor(img, sensorRight + y % 3, y, sensitivity) || isGreyOrBlackForSensor(img, sensorLeft + y % 3, y, sensitivity)
|| isGreyOrBlackForSensor(img, sensorRightSecond + y % 3, y, sensitivity) || isGreyOrBlackForSensor(img, sensorRightThird + y % 3, y, sensitivity))
{
for (int x = xCoordinate - 4; x <= xCoordinate + 4; x++)
{
if (isBotLeftCorner(img, x, y, sensitivity, amountWhitePixels))
{
hasCorner = true;
height = y - yCoordinate;
break;
}
}
}
}
// Если левого-нижнего угла нет - проверяем наличие ячейки выше.
if (!hasCorner)
return searchTopCell(cellCoordinate, sizeCellCoordinate, xCoordinate, width, height);
// Проверяем наличие правого-нижнего угла.
for (int y = yCoordinate + height - 3; y < yCoordinate + height + 3; y++)
{
for (int x = xCoordinate + width - 3; x <= xCoordinate + width + 3; x++)
{
if (isBotRightCorner(img, x, y, sensitivity, amountWhitePixels))
{
return true;
}
}
}
return searchTopCell(cellCoordinate, sizeCellCoordinate, xCoordinate, width, height);
}
// Проверяем нет ли уже в структуре данной ячейки.
bool checkRepetition(CellCoordinate *cellCoordinate, int x, int y, int width, int height, int sizeCellCoordinate)
{
for (int i = 0; i < sizeCellCoordinate; i++)
if (abs(cellCoordinate[i].xCoordinate - x) < 20 && abs(cellCoordinate[i].yCoordinate - y) < 20)
{
if (cellCoordinate[i].width > width + 10)
cellCoordinate[i].width = width;
if (cellCoordinate[i].height > height + 10)
cellCoordinate[i].height = height;
return false;
}
return true;
}
// Переводим число в строку.
string intToString(int number)
{
string result;
if (number < 10)
{
result = "000";
result += char(number + 48);
}
else if (number < 100)
{
result = "00";
result += char(number / 10 + 48);
result += char((number % 10) + 48);
}
else if (number < 1000)
{
result = "0";
result += char((number / 100) + 48);
result += char(((number / 10) % 10) + 48);
result += char((number % 10) + 48);
}
else
{
result += char((number / 1000) + 48);
result += char(((number / 100) % 10) + 48);
result += char(((number / 10) % 10) + 48);
result += char((number % 10) + 48);
}
return result;
}
// Создаём имя изображения. (координата х, координата у, ширина, высота и формат)
string createImageName(CellCoordinate *cellCoordinate, int i)
{
string imgName;
imgName = intToString(cellCoordinate[i].xCoordinate) + " ";
imgName += intToString(cellCoordinate[i].yCoordinate) + " ";
imgName += intToString(cellCoordinate[i].width) + " ";
imgName += intToString(cellCoordinate[i].height) + ".bmp";
return imgName;
}
void addCellInArray(CellCoordinate *cellCoordinate, int x, int y, int width, int height, int &sizeCellCoordinate)
{
cellCoordinate[sizeCellCoordinate].xCoordinate = x;
cellCoordinate[sizeCellCoordinate].yCoordinate = y;
cellCoordinate[sizeCellCoordinate].width = width;
cellCoordinate[sizeCellCoordinate].height = height;
sizeCellCoordinate++;
}
bool searchTopCell(CellCoordinate *cellCoordinate, int sizeCellCoordinate, int xCoordinate, int &width, int &height)
{
bool isSearch = false;
int tempY = 0;
for (int i = 0; i < sizeCellCoordinate; i++)
{
if (abs(xCoordinate - cellCoordinate[i].xCoordinate) < 15 && cellCoordinate[i].yCoordinate > tempY)
{
tempY = cellCoordinate[i].yCoordinate;
width = cellCoordinate[i].width;
height = cellCoordinate[i].height;
isSearch = true;
}
}
return isSearch;
} | [
"[email protected]"
] | |
715873d61f67ebfff9a1b86a3190b0686eb0d28a | 37bac9d36db89e723fe2d9e17e46a1b76063a580 | /Arduino Sketches/AnalogDataloggerWithXandY/AnalogDataloggerWithXandY.ino | 7335b9bf923b4aadd0a6f26bd09814e4f120d65c | [] | no_license | jeremy-daily/TeensyCrashDAQ | 28d81f2e8a5a3f90a7ead3b11c1b954dd80ca1e7 | fa2179516de3cba6c2353aae615295dd8c253293 | refs/heads/master | 2021-01-01T03:34:30.469057 | 2016-04-30T10:59:35 | 2016-04-30T10:59:35 | 55,987,380 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,495 | ino | /*
SD card datalogger
This example shows how to log data from three analog sensors
to an SD card using the SD library.
The circuit:
* analog sensors on analog ins 0, 1, and 2
* SD card attached to SPI bus as follows:
** MOSI - pin 11
** MISO - pin 12
** CLK - pin 13
** CS - pin 4
created 24 Nov 2010
modified 9 Apr 2012
by Tom Igoe
This example code is in the public domain.
*/
#include <SD.h>
#include <SPI.h>
// On the Ethernet Shield, CS is pin 4. Note that even if it's not
// used as the CS pin, the hardware CS pin (10 on most Arduino boards,
// 53 on the Mega) must be left as an output or the SD library
// functions will not work.
// change this to match your SD shield or module;
// Arduino Ethernet shield: pin 4
// Adafruit SD shields and modules: pin 10
// Sparkfun SD shield: pin 8
// Teensy audio board: pin 10
// Wiz820+SD board: pin 4
// Teensy 2.0: pin 0
// Teensy++ 2.0: pin 20
const int chipSelect = A1;
float Xoffset = 0.0;
float Xgain = 1.0;
float Yoffset = 0.0;
float Ygain = 1.0;
uint32_t currentMicros = 0;
String dataString = "abcdefghijklmnopqrstuvwxyz";
void setup()
{
// Open serial communications and wait for port to open:
Serial.begin(9600);
while (!Serial) {
; // wait for serial port to connect. Needed for Leonardo only
}
Serial.print("Initializing SD card...");
// see if the card is present and can be initialized:
if (!SD.begin(chipSelect)) {
Serial.println("Card failed, or not present");
// don't do anything more:
return;
}
Serial.println("card initialized.");
}
void loop()
{
currentMicros = micros();
// make a string for assembling the data to log:
dataString = String(currentMicros);
dataString += ",";
// read three sensors and append to the string:
int Xsensor = analogRead(A10);
int Ysensor = analogRead(A11);
dataString += String((Xsensor-Xoffset)*Xgain);
dataString += ",";
dataString += String((Ysensor-Yoffset)*Ygain);
dataString += "\n";
// open the file. note that only one file can be open at a time,
// so you have to close this one before opening another.
File dataFile = SD.open("high-G.csv", FILE_WRITE);
// if the file is available, write to it:
if (dataFile) {
dataFile.println(dataString);
dataFile.close();
// print to the serial port too:
Serial.println(dataString);
}
// if the file isn't open, pop up an error:
else {
Serial.println("error opening datalog.txt");
}
}
| [
"[email protected]"
] | |
e370e3515d3f4deb4ee8f6e78df23f2649dc0434 | dccd1058e723b6617148824dc0243dbec4c9bd48 | /atcoder/abc006/d.cpp | 58bd32fba5fa473458115150e97ba4f65c6ee31f | [] | no_license | imulan/procon | 488e49de3bcbab36c624290cf9e370abfc8735bf | 2a86f47614fe0c34e403ffb35108705522785092 | refs/heads/master | 2021-05-22T09:24:19.691191 | 2021-01-02T14:27:13 | 2021-01-02T14:27:13 | 46,834,567 | 7 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 566 | cpp | #include <cstdio>
#include <iostream>
using namespace std;
const long INF=100000;
int main(){
long n;
long c[30000];
long up[30001];
scanf(" %ld", &n);
//増加列
up[0]=-INF;
for(long i=1; i<=30001; ++i) up[i]=INF;
for(long i=0; i<n; ++i){
scanf(" %ld", &c[i]);
for(long j=1; j<=n; ++j){
if(up[j]>c[i]){
up[j]=c[i];
//printf("up[%ld] = c[%ld]\n", j, i);
break;
}
}
}
for(long j=0; j<=30001; ++j){
//printf("up[%ld] = %ld\n", j, up[j]);
if(INF==up[j]){
printf("%ld\n", n-j+1);
break;
}
}
return 0;
} | [
"[email protected]"
] | |
41b34e39c29e7c8f37a0b2323463760c10659769 | 6cecd07f26ec061b4abb9464534e07e705f78f12 | /include/multirotor_manipulation_and_control_framework/arm_parsers/arm_parser.h | cd3b0d2effc951d8f84d08e29819ea53da014539 | [] | no_license | garimellagowtham/multirotor_manipulation_and_control_framework | 5509c7832600e91ab1924096dfafb49b7cd99cb3 | ec12bcf85b146353f817af34a47556dc6a7fdcac | refs/heads/master | 2021-01-11T18:04:06.882124 | 2017-01-19T18:48:31 | 2017-01-19T18:48:31 | 79,483,843 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,242 | h | /* Copyright (C)
* 2015 - Gowtham Garimella
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
#ifndef ARM_PARSER_H
#define ARM_PARSER_H
#include <iostream>
#include <fstream>
#include <vector>
#include <Eigen/Dense>
#include <utils/utils.h>
#include <boost/signal.hpp>
#include <stdexcept>
using namespace std;
/**
* @brief This class provides an abstract interface to control multi DOF arms.
* Subclasses should provide functions for setting and getting joint angles/ velocities.
*/
class ArmParser{
public:
/**
* @brief Stores arm data. Add more entities like voltage etc later
*/
struct ArmSensorData{
std::vector<double> joint_angles_;///< Feedback Joint Angles
std::vector<double> joint_velocities_;///< Feedback Joint Velocities
std::string arm_state;///< State of the arm
double timestamp;///< Time when joint angles and velocities are received
ArmSensorData(): arm_state("NONE")
, timestamp(0)
{
}
};
enum State{
ENABLED=0,///< Enabled
DISABLED=1,///< Disabled
CRITICAL=2///< Critical
};
public:
const State &state;///< Basic state used in statemachine 0: ENABLED, 1: DISABLED, 2: CRITICAL
const ArmSensorData &sensor_data;///< Arm feedback data for reading
boost::signal<void (const ArmSensorData&)> signal_feedback_received_;///< Signal that arm feedback has been updated
boost::signal<void (const uint8_t &, int id)> signal_state_update_;///< state updated
public:
ArmParser(): log_enable_(false)
, sensor_data(sensor_data_)
, state(state_)
, state_(DISABLED)
{
}
/**
* @brief Virtual Destructor
*/
virtual ~ArmParser()
{
}
/**
* @brief Sets the joint angles and velocities of the arm
*
* @param joint_angles Desired Joint Angles (unit: rad) should be between [-pi to pi]
* @param joint_velocities Desired Joint Velocities (If not provided will leave at previous/default values) (unit: rad/s)
*
* @return true if successfully set false otherwise
*/
virtual bool setAngles(const vector<double> &joint_angles, const vector<double> *joint_velocities=0)=0;
/**
* @brief Sets the End effector at Desired Pose. For lower DOF arms, it sets the projection of the desired pose
*
* @param end_effector_pose End Effector Pose in the local base frame
*
* @return true if successfully set
*/
virtual bool setEndEffectorPose(const Eigen::Matrix4d &end_effector_pose)=0;
/**
* @brief Powers Motors on an arm on/off and resets the arm
*
* @param state Input to switch the motors on(true)/off(false)
*
* @return true if successful
*/
virtual bool powerMotors(bool state)=0;
/**
* @brief Creates files for logging and enables log status
*
* @param log_directory Input Directory where log files are created
*/
virtual void enableLog(string log_directory)//Default does not create a log directory etc
{
//Default is empty no log
}
/**
* @brief Set the state of the gripper
*
* @param value Gripper value Depends on the arm
*
* @return true if success
*/
virtual bool grip(double value)=0;
/**
* @brief Disable the log status and close all log files
*/
void disableLog()
{
log_enable_ = false;
command_log_file_.close();
feedback_log_file_.close();
}
protected:
bool log_enable_;///< Enable Log
ofstream command_log_file_;///< Command Log file
ofstream feedback_log_file_;///< Feedback of actual angles log file
ArmSensorData sensor_data_;///< Arm feedback
State state_;///< State
};
#endif
| [
"[email protected]"
] | |
880a3634d5df5d7285c6d74d0a22d72c18894391 | 87418f8cd9acad99597d09c40a659a965fd98d09 | /some_qu_jian_dp.cpp | 26a8472a0d7fa3fe9a5449145cbca6d223e6232d | [] | no_license | 1779296311/leetcode | 22541e36af344838480683ef11c3ceb2b16ee92e | a846bae6515c77972d5ee6f5ac07a993f9bd44f3 | refs/heads/master | 2021-05-17T07:00:07.007664 | 2020-12-07T09:49:24 | 2020-12-07T09:49:24 | 250,686,597 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,800 | cpp | /*********************************************
* ------------------------
* ------------------------
* file name: some_qu_jian_dp.cpp
* author : @ JY
* date : 2020--10--07
**********************************************/
#include <iostream>
#include <algorithm>
#include <vector>
#include <stack>
#include <queue>
#include <climits>
#include <cmath>
#include <cstring>
#include <numeric>
#include <map>
#include <set>
#include <unordered_set>
#include <unordered_map>
#include <stdlib.h>
class Solution{
public:
//面试题 08.14. 布尔运算
int countEval(std::string s, int result){
int len = s.size();
std::vector<std::vector<int>> dp_0(len, std::vector<int>(len));
std::vector<std::vector<int>> dp_1(len, std::vector<int>(len));
for(int j=0; j<len; ++j){
for(int i=j; i>=0; --i){
if(i==j){
if(std::isdigit(s[i])){
dp_0[i][j] = s[i] == '0';
dp_1[i][j] = s[i] == '1';
}
continue;
}
for(int k=i; k<j; ++k){
if(std::isdigit(s[k]))continue;
char c = s[k];
if(c=='|'){
dp_1[i][j] += (dp_1[i][k-1] * (dp_1[k+1][j] + dp_0[k+1][j]) +
dp_0[i][k-1] * dp_1[k+1][j]);
dp_0[i][j] += (dp_0[i][k-1] * dp_0[k+1][j]);
}else if(c=='&'){
dp_1[i][j] += (dp_1[i][k-1] * dp_1[k+1][j]);
dp_0[i][j] += (dp_0[i][k-1] * (dp_0[k+1][j] + dp_1[k+1][j]) +
dp_0[k+1][j] * dp_1[i][k-1]);
}else if(c=='^'){
dp_1[i][j] += (dp_1[i][k-1] * dp_0[k+1][j] + dp_0[i][k-1] * dp_1[k+1][j]);
dp_0[i][j] += (dp_1[i][k-1] * dp_1[k+1][j] + dp_0[i][k-1] * dp_0[k+1][j]);
}
}
}
}
return result ? dp_1[0][len-1] : dp_0[0][len-1];
}
//1039. 多边形三角剖分的最低得分
int minScoreTriangulation(std::vector<int> &A){
int len = A.size();
std::vector<std::vector<int>> dp(len, std::vector<int>(len));
for(int j=2; j<len; ++j){
for(int i=j-2; i>=0; --i){
if(j-i==2){
dp[i][j] = A[i] * A[i+1] * A[j];
continue;
}
dp[i][j] = INT_MAX;
for(int k=i+1; k<j; ++k){
dp[i][j] = std::min(dp[i][j], A[i]*A[k]*A[j] + dp[i][k] + dp[k][j]);
}
}
}
return dp[0][len-1];
}
//1130. 叶值的最小代价生成树
int mcFromLeafValues(std::vector<int> &arr){
int len = arr.size();
std::vector<std::vector<int>> dp(len, std::vector<int>(len));
for(int j=0; j<len; ++j){
for(int i=j-1; i>=0; --i){
if(j-i==1){
dp[i][j] = arr[i] * arr[j];
continue;
}
dp[i][j] = INT_MAX;
for(int k=i; k<j; ++k){
int sum = *max_element(begin(arr)+i, begin(arr)+k+1) *
*max_element(begin(arr)+k+1, begin(arr)+j+1);
dp[i][j] = std::min(dp[i][j], sum + dp[i][k] + dp[k+1][j]);
}
}
}
return dp[0][len-1];
}
};
| [
"1779296311"
] | 1779296311 |
b5ea40b460bdd27f9ba00e32d4223017411898a2 | fa1ead11618f6a640b4d0b20ceae241f7b7c3e8f | /DMCore/Agents/CoreAgents/DMCoreAgent.h | ca0d7e70fa512c3b14ee0b39b114c4855782de36 | [] | no_license | ishine/RavenClaw | d89ca69089e5a8f905908a60966804f60e2e7295 | 8e4a029a2fd40846ca1ef54101b8d31c7fa535af | refs/heads/master | 2021-10-09T00:18:47.279624 | 2018-12-19T06:34:25 | 2018-12-19T06:34:25 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 32,116 | h | //=============================================================================
//
// Copyright (c) 2000-2004, Carnegie Mellon University.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in
// the documentation and/or other materials provided with the
// distribution.
//
// This work was supported in part by funding from the Defense Advanced
// Research Projects Agency and the National Science Foundation of the
// United States of America, and the CMU Sphinx Speech Consortium.
//
// THIS SOFTWARE IS PROVIDED BY CARNEGIE MELLON UNIVERSITY ``AS IS'' AND
// ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY
// NOR ITS EMPLOYEES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
//=============================================================================
//-----------------------------------------------------------------------------
//
// DMCoreAgent.H - defines the core dialog management agent, that handles
// execution and input passes (agenda generation, bindings,
// etc)
// ** THIS IS A DEVELOPMENT VERSION THAT NEEDS TO BE MERGED
// WITH DMCOREAGENT WHEN IT'S STABLE **
//
// ----------------------------------------------------------------------------
//
// BEFORE MAKING CHANGES TO THIS CODE, please read the appropriate
// documentation, available in the Documentation folder.
//
// ANY SIGNIFICANT CHANGES made should be reflected back in the documentation
// file(s)
//
// ANY CHANGES made (even small bug fixes, should be reflected in the history
// below, in reverse chronological order
//
// HISTORY --------------------------------------------------------------------
//
// [2007-03-05] (antoine): changed Execute so that grounding and dialog agents
// are only executed once the floor is free and all
// pending prompt notifications have been received
// (previously, only the floor mattered)
// [2004-12-29] (antoine): added method GetNumberNonUnderstandings
// [2004-12-23] (antoine): modified constructor and agent factory to handle
// configurations
// [2004-04-06] (dbohus): rearranged the broadcast agenda into a new,
// compressed format
// [2004-03-25] (dbohus): moved functionality for broadcastign the
// expectation agenda into the state manager where
// it actually belong
// [2004-03-23] (dbohus): added functionality for broadcasting the
// expectation agenda
// [2004-03-22] (dbohus): fixed binding counting and developed bindings
// description and history routines
// [2004-03-03] (dbohus): added RestartTopic
// [2004-03-03] (dbohus): fixed bug in popFromExecutionStack so that indeed
// all the children are removed. Added
// PopAgentFromExecutionStack() and
// PopTopicFromExecutionStack()
// [2004-03-03] (dbohus): added access to binding history datastructure
// [2004-02-16] (dbohus): added binding history datastructure (maintains a
// history of features regarding the binding
// process)
// [2003-11-09] (dbohus): moved the grounding and focus claims phase out of
// the input phase, into the execution cycle; now
// they happen at every clock tick, when the core
// agent has been signaled to do them (added the
// SignalFocusClaimsPhase and SignalGroundingPhase
// methods)
// [2003-07-11] (antoine): added support for state-dependent language models
// (function updateLanguageModel called in
// doInputPass)
// [2003-04-29] (dbohus): fixed small bug in Execute (checking for empty
// execution stack after popCompleted)
// [2003-04-25] (dbohus,
// antoine): checking for completion of agents changed to
// before execution; added PopAgentFromExecutionStack
// [2003-04-15] (dbohus,
// antoine): introduced support for *-type expectations
// [2003-04-13] (dbohus): added friend class CGroundingManagerAgent
// delete counters for bindings in 2nd phase, since
// there's no more second phase
// [2003-04-08] (dbohus): added support for logging the execution stack
// [2003-03-24] (dbohus): changed resolveFocusShifts so that all the
// claiming agents are pushed on the stack
// [2003-02-13] (dbohus): added support for dercRestartDialog
// [2003-01-15] (dbohus): changed so that conflicting expectations are not
// created when the slots map to the same concept
// from different agents
// [2002-12-01] (dbohus): added confidence to concept binding
// [2002-11-20] (dbohus): added support for and binding through custom
// binding filters
// [2002-10-19] (dbohus): added basic skeleton code for non-understanding
// processing
// [2002-07-15] (dbohus): fixed bug with binding on multiple expectations on
// a given level
// [2002-05-25] (dbohus): deemed preliminary stable version 0.5
// [2002-04-12] (dbohus): decided to transform it into a core agent, which
// therefore took over all the functionality that
// we previously had implemented in DMCore.h (cpp).
// [2002-01-26] (dbohus): started working on this
//
//-----------------------------------------------------------------------------
#pragma once
#ifndef __DMCOREAGENT_H__
#define __DMCOREAGENT_H__
#include "../../../Utils/Utils.h"
#include "../../../DMCore/Agents/Agent.h"
#include "../../../DMCore/Agents/DialogAgents/DialogAgent.h"
// D: when ALWAYS_CONFIDENT is defined, the binding on concepts will ignore the
// confidence scores on the input and will be considered "always confident"
// #define ALWAYS_CONFIDENT
//-----------------------------------------------------------------------------
// D: Auxiliary type definitions for the expectation agenda
// These definitions are also reflected into Helios, since Helios uses the
// agenda to simulate this binding process in advance in order to compute
// expectation features. Any changes to these structures, need to be
// also reflected in Helios
//-----------------------------------------------------------------------------
// D: a compiled concept expectation: implemented as a mapping between a
// string (the grammar concept), and a vector of integers (pointers in the
// concept expectation list [celSystemExpectations]. This representation is used for faster
// checking of grammar concept expectations
//D:编译概念期望:实现为字符串(语法概念)和整数向量(概念期望列表中的指针)之间的映射。
// 这种表示法用于更快地检查语法概念期望
// slotName -> (vector)slotIndex
typedef map <string, TIntVector, less <string>, allocator <TIntVector> >
TMapCE;
typedef struct
{
TMapCE mapCE; // the hash of compiled expectations 编译期望的哈希
CDialogAgent* pdaGenerator; // the agent that represents that level 代表当前level期望的代理
// of expectations
} TCompiledExpectationLevel;
// D: the struct representation for the compiled expectation agenda. It
// contains the expectation list gathered from the dialog task tree,
// and a "compiled" representation for each of the levels
// D:编译的期望议程的struct表示。 它包含从对话任务树收集的期望列表,以及每个级别的“已编译”表示
typedef struct
{
// the full system expectations, as gathered from the dialog task tree
// 从对话任务树收集的完整系统期望
TConceptExpectationList celSystemExpectations;
// an array holding the expectations of different levels (on index 0,
// are the expectations of the focused agent, on index 1 those of the
// immediate upper level agent, etc)
// 保持不同level的期望的数组(在索引0上,是focus agent的期望,在索引1上的直接上层agent的期望等)
vector <TCompiledExpectationLevel, allocator <TCompiledExpectationLevel> > vCompiledExpectations;
} TExpectationAgenda;
//-----------------------------------------------------------------------------
// D: Auxiliary type definitions for the execution stack and history
//-----------------------------------------------------------------------------
// D: structure holding an execution stack item
// 结构保存执行堆栈项
typedef struct
{
CDialogAgent* pdaAgent; // the agent that is on the stack agent指针
int iEHIndex; // an index into it's correspondent history entry 历史索引
} TExecutionStackItem;
// D: definition of the execution stack type - essentially a list
// 定义执行堆栈类型 - 本质上是一个列表
typedef list <TExecutionStackItem, allocator<TExecutionStackItem> >
TExecutionStack;
// D: structure holding a execution history item
// 保存执行历史 item 项的结构体
typedef struct
{
string sCurrentAgent; // the name of the agent that is executed 要执行的Agent的名称
string sCurrentAgentType; // the type of that agent Agent 类型
string sScheduledBy; // the agent that scheduled this one for 调度当前agent的父Agent
// execution
bool bScheduled; // has the history item been scheduled 是否有被调度执行历史
// for execution?
bool bExecuted; // has the history item been executed? 有历史项被执行?
bool bCommitted; // has the history item been committed 有历史项已被提交到History?
// to history?
bool bCanceled; // has the history item been canceled 在执行前,历史item是否被取消
// before being committed?
_timeb timeScheduled; // the time when the agent was scheduled 被调度的时间【一个】
// for execution
vector<_timeb, allocator<_timeb> >
vtExecutionTimes; // the times when the agent was actually agent被实际执行的时间【多个】
// executed
_timeb timeTerminated; // the time when the agent completed agent完成的时间【一个】
// execution
int iStateHistoryIndex; // the index in the history of dialog 执行代理时dialog state的历史记录中的索引
// states when the agent was executed
} TExecutionHistoryItem;
// A: definition of the execution history class - an extended vector
class CExecutionHistory : public vector<TExecutionHistoryItem, allocator<TExecutionHistoryItem> >
{
};
//-----------------------------------------------------------------------------
// D: Auxiliary type definitions for bindings
//-----------------------------------------------------------------------------
// D: structure describing one particular binding
// D:描述一种特定结合的结构
typedef struct
{
bool bBlocked; // indicates whether the binding was 是否阻塞
// blocked or not
string sGrammarExpectation; // the expected grammar slot 期望的语法槽
string sValue; // the value in the binding 绑定的值
float fConfidence; // the confidence score for the binding 绑定的置信分
int iLevel; // the level in the agenda agenda的level
string sAgentName; // the name of the agent that declared the 声明期望的agent
// expectation
string sConceptName; // the name of the concept that will bind 绑定的concept名
string sReasonDisabled; // if the binding was blocked, the reason 如果disable,说明原因
// the expectation was disabled
} TBinding;
// D: structure describing a particular forced update
#define FCU_EXPLICIT_CONFIRM 1 //强制 - 显示确认
#define FCU_IMPLICIT_CONFIRM 2 //强制 - 隐式确认
#define FCU_UNPLANNED_IMPLICIT_CONFIRM 3 //无计划 - 隐式确认
typedef struct
{
string sConceptName; // the name of the concept that had a 具有强制更新的概念的名称
// forced update
int iType; // the type of the forced update 强制更新的类型
bool bUnderstanding; // the update changed the concept
// enough that the grounding action
// on it is different, and therefore
// we consider that we have an actual
// understanding occuring on that
// concept
// 更新改变了足够的概念,对它的基础动作是不同的,因此我们认为我们有一个实际的理解发生在那个概念
} TForcedConceptUpdate;
/*
#define IET_DIALOG_STATE_CHANGE "dialog_state_change"
#define IET_USER_UTT_START "user_utterance_start"
#define IET_USER_UTT_END "user_utterance_end"
#define IET_PARTIAL_USER_UTT "partial_user_utterance"
#define IET_SYSTEM_UTT_START "system_utterance_start"
#define IET_SYSTEM_UTT_END "system_utterance_end"
#define IET_SYSTEM_UTT_CANCELED "system_utterance_canceled"
#define IET_FLOOR_OWNER_CHANGES "floor_owner_changes"
#define IET_SESSION "session"
#define IET_GUI "gui"
*/
// D: structure holding a binding history item, describing the bindings in a turn
// D:保存绑定历史记录项的结构,描述一个回合中的绑定
typedef struct
{
// int iTurnNumber; // the input turn number
string sEventType; // the type of event to which this event类型 "IET_USER_UTT_START", ...
// binding corresponds
bool bNonUnderstanding; // was the turn a non-understanding? 是否no-understanding [例如:没有concept绑定]
// i.e. no concepts bound
int iConceptsBound; // the number of bound concepts 绑定的concept数目
int iConceptsBlocked; // the number of blocked concepts 阻塞Concept数
int iSlotsMatched; // the number of slots that matched 匹配的slot数
int iSlotsBlocked; // the number of slots that were blocked 阻塞的slot数
vector<TBinding> vbBindings; // the vector of bindings 绑定vector
vector<TForcedConceptUpdate> vfcuForcedUpdates; //强制更新的向量
// the vector of forced updates
} TBindingsDescr;
// D: definition of the binding history - a vector
// D:绑定历史的定义 - 一个向量
typedef vector<TBindingsDescr, allocator<TBindingsDescr> >
TBindingHistory;
// D: definition of function type for performing customized bindings
// (binding filter functions)
// 定义用户定制绑定的函数 [slotName, slotValue]
typedef string(*TBindingFilterFunct)(string sSlotName, string sSlotValue);
// D: auxiliary definition for mapping from binding filter names to the actual functions
// 辅助定义,用于从绑定过滤器名称到实际函数的映射
typedef map<string, TBindingFilterFunct,
less<string>, allocator<TBindingFilterFunct> > STRING2BFF;
// D: structure maintaining a description of the current system action on the
// various concepts
// D:保持当前系统action对各种概念的描述的结构
typedef struct
{
set<CConcept *> setcpRequests; //Turn Grouding
set<CConcept *> setcpExplicitConfirms; //显示确认
set<CConcept *> setcpImplicitConfirms; //隐式确认
set<CConcept *> setcpUnplannedImplicitConfirms; //正常Concept
} TSystemAction;
// D: structure describing system actions taken on a particular concept
// D:描述对特定概念采取的系统操作的结构
#define SA_REQUEST "REQ"
#define SA_EXPL_CONF "EC"
#define SA_IMPL_CONF "IC"
#define SA_UNPLANNED_IMPL_CONF "UIC"
#define SA_OTHER "OTH"
typedef struct
{
string sSystemAction;
// *** this might need to be elaborated with other system actions
// 这可能需要与其他系统操作一起进行阐述
} TSystemActionOnConcept;
// D: definition for customized start over routine
// 一个自定义的开始函数
typedef void(*TCustomStartOverFunct)();
//-----------------------------------------------------------------------------
//
// D: CDMCoreAgent class -
// implements core dialog management functionalities execution, input
// passes, expectation agenda, etc
//
//-----------------------------------------------------------------------------
// A: Floor status constants
// floor 状态常量
typedef enum
{
fsUnknown, // floor owner is unknown 未知
fsUser, // floor owner is user 用户
fsSystem, // floor owner is system 系统
fsFree, // floor is not owned by anyone 自由
} TFloorStatus;
extern vector<string> vsFloorStatusLabels;
class CDMCoreAgent : public CAgent
{
private:
//---------------------------------------------------------------------
// Private members
//---------------------------------------------------------------------
//
TExecutionStack esExecutionStack; // the execution stack //执行栈
CExecutionHistory ehExecutionHistory; // the execution history //执行历史
TBindingHistory bhBindingHistory; // the binding history //绑定历史
TExpectationAgenda eaAgenda; // the expectation agenda //期望agenda
TFocusClaimsList fclFocusClaims; // the list of focus claims //焦点声明列表
TSystemAction saSystemAction; // the current system action //当前系统动作
int iTimeoutPeriod; // the current timeout period //当前超时阶段
int iDefaultTimeoutPeriod; // the default timeout period //默认超时阶段
float fNonunderstandingThreshold; // the current nonunderstanding //当前不理解阈值
// threshold
float fDefaultNonunderstandingThreshold;// the default nonunderstanding //默认不理解阈值
// threshold
STRING2BFF s2bffFilters; // the register of binding //绑定过滤器名称到实际函数的映射
// filters
bool bFocusClaimsPhaseFlag; // indicates whether we should //是否运行焦点声明
// run focus claims
bool bAgendaModifiedFlag; // indicates if the agenda should //agenda是否修改过【重组装】
// be recompiled
TFloorStatus fsFloorStatus; // indicates who has the floor // floor 状态常量[未知、系统、用户、自由]
int iTurnNumber; // stores the current turn number //当前的turn数
TCustomStartOverFunct csoStartOverFunct;// a custom start over function //自定义的重新开始函数
//---------------------------------------------------------------------
// The grounding manager needs access to internals, so it is declared
// as a friend class
//---------------------------------------------------------------------
//Grouding 需要访问内部成员,声明为友元类
friend class CGroundingManagerAgent;
friend class CStateManagerAgent;
public:
//---------------------------------------------------------------------
// Constructor and destructor
//---------------------------------------------------------------------
//
// Default constructor
CDMCoreAgent(string sAName,
string sAConfiguration = "",
string sAType = "CAgent:CDMCoreAgent");
// Virtual destructor
virtual ~CDMCoreAgent();
// static function for dynamic agent creation
// 静态工厂动态创建agent对象
static CAgent* AgentFactory(string sAName, string sAConfiguration);
//---------------------------------------------------------------------
// CAgent Class overwritten methods
//---------------------------------------------------------------------
//虚 - 重置
virtual void Reset(); // overwritten Reset
public:
//---------------------------------------------------------------------
//
// DMCoreAgent class specific public methods
//
//---------------------------------------------------------------------
//---------------------------------------------------------------------
// Execution
//---------------------------------------------------------------------
// Executes the dialog task
// 执行对话任务
void Execute();
//---------------------------------------------------------------------
// Method for performing an input pass (and related)
//---------------------------------------------------------------------
// Waits for and processes the next real world event
// 等待和处理下一个 事件
void AcquireNextEvent();
// Registers a customized binding filter
// 注册自定义绑定过滤器
void RegisterBindingFilter(string sBindingFilterName, TBindingFilterFunct bffFilter);
//---------------------------------------------------------------------
// Methods for accessing Interface-specific variables
// 访问接口特定变量的方法
//---------------------------------------------------------------------
int GetIntSessionID();
//---------------------------------------------------------------------
// Timeout related methods
// 超时相关方法
//---------------------------------------------------------------------
// Sets and gets the timeout for the system
// 设置获取系统超时
void SetTimeoutPeriod(int iATimeoutPeriod);
int GetTimeoutPeriod();
// Sets the default timeout period for the system
// 设置获取系统默认超时
void SetDefaultTimeoutPeriod(int iADefaultTimeoutPeriod);
int GetDefaultTimeoutPeriod();
//---------------------------------------------------------------------
// Methods for accessing the nonunderstanding threshold
// 访问非理解阈值的方法
//---------------------------------------------------------------------
// Sets and gets the nonunderstanding threshold for the system
// 设置获取 不理解阈值
void SetNonunderstandingThreshold(float fANonunderstandingThreshold);
float GetNonunderstandingThreshold();
// Sets the default nonunderstanding threshold for the system
// 设置获取系统默认不理解阈值
void SetDefaultNonunderstandingThreshold(float fANonuThreshold);
float GetDefaultNonunderstandingThreshold();
//---------------------------------------------------------------------
// Signaling the need for running a focus claims phase
// 发信号通知需要运行焦点声明阶段
//---------------------------------------------------------------------
void SignalFocusClaimsPhase(bool bAFocusClaimsPhaseFlag = true);
//---------------------------------------------------------------------
// Signaling floor changes
// floor 改变
//---------------------------------------------------------------------
void SetFloorStatus(TFloorStatus fsaFloorStatus);
TFloorStatus GetFloorStatus();
void CDMCoreAgent::SetFloorStatus(string sAFloorStatus);
string FloorStatusToString(TFloorStatus fsAFloor);
TFloorStatus StringToFloorStatus(string sAFloor);
//---------------------------------------------------------------------
// Access to various private fields
// 私有对象访问
//---------------------------------------------------------------------
// Gets the number of concepts bound in the last input phase
// 最后输入阶段绑定的concept数目
int LastTurnGetConceptsBound();
// Returns true if there was a non-understanding in the last input phase
// 是否理解最后输入
bool LastTurnNonUnderstanding();
// Returns the number of consecutive non-understandings so far
// 连续不理解数目
int GetNumberNonUnderstandings();
// Returns the total number non-understandings so far
// 总不理解数
int GetTotalNumberNonUnderstandings();
//---------------------------------------------------------------------
// Methods for execution and access to the execution stack, history, and binding history
// 执行和访问执行堆栈,历史和绑定历史的方法
//---------------------------------------------------------------------
// Plans a new agent for execution (pushes it on the execution stack)
// 决定下一个执行的agent [放到栈顶]
void ContinueWith(CAgent* paPusher, CDialogAgent* pdaDialogAgent);
// Restarts an agent
// 重新启动一个agent
void RestartTopic(CDialogAgent* pdaDialogAgent);
// Registers a customized start over routine
// 注册自定义的启动过程
void RegisterCustomStartOver(TCustomStartOverFunct csoAStartOverFunct);
// The start over function
// 重新启动
void StartOver();
// Returns the agent on top of the execution stack (the focused one)
// 返回栈顶agent
CDialogAgent* GetAgentInFocus();
// Returns the dialog task specification agent in focus (closest to the top of the execution stack
// 返回DTT的焦点agent
CDialogAgent* GetDTSAgentInFocus();
// Returns true if the agent is in focus
// agent是否是焦点
bool AgentIsInFocus(CDialogAgent* pdaDialogAgent);
// Returns the previously focused agent (previous with respect to the incoming parameter)
// 返回栈中前一个焦点agent
CDialogAgent* GetAgentPreviouslyInFocus(CDialogAgent* pdaDialogAgent = NULL);
// Returns the previously focused dialog task specification agent
// (previous with respect to the incoming parameter)
// 返回DTT中的前一个焦点agent
CDialogAgent* GetDTSAgentPreviouslyInFocus(CDialogAgent* pdaDialogAgent = NULL);
// Returns the current main topic agent
// 返回当前topic agent
CDialogAgent* GetCurrentMainTopicAgent();
// Returns true if the agent is currently active (i.e. it is
// somewhere on the execution stack)
// 判断agent是否活跃
bool AgentIsActive(CDialogAgent* pdaDialogAgent);
// Eliminates an agent from the execution stack
// 删除栈顶agent
void PopAgentFromExecutionStack(CDialogAgent* pdaADialogAgent);
// Eliminates an agent from the execution stack, together with all
// the subagents it has planned
// 删除栈顶topic agent, 同时删除所有 子agent
void PopTopicFromExecutionStack(CDialogAgent* pdaADialogAgent);
// Eliminates all grounding agents from the execution stack
// 删除所有grouding agent
void PopGroundingAgentsFromExecutionStack();
// Returns the size of the binding history
// 返回绑定历史的size
int GetBindingHistorySize();
// Returns a reference to the binding history item
// 通过索引返回引用
const TBindingsDescr& GetBindingResult(int iBindingHistoryIndex);
// Returns the number of the last input turn
// 返回最后输入的turn数
int GetLastInputTurnNumber();
// Returns a description of the system action on a particular concept
// 返回对特定概念的系统操作的描述
TSystemActionOnConcept GetSystemActionOnConcept(CConcept* pConcept);
// Signal explicit and implicit confirms on a certain concept
// 信号显式和隐式确认某一概念
void SignalExplicitConfirmOnConcept(CConcept* pConcept);
void SignalImplicitConfirmOnConcept(CConcept* pConcept);
void SignalUnplannedImplicitConfirmOnConcept(int iState, CConcept* pConcept);
void SignalAcceptOnConcept(CConcept* pConcept);
//---------------------------------------------------------------------
// Methods for floor handling
//---------------------------------------------------------------------
private:
//---------------------------------------------------------------------
// DMCoreManagerAgent private methods related to the execution stack
// 关于执行栈的私有方法
//---------------------------------------------------------------------
// Pops all the completed agents from the execution stack, and returns
// the number popped
// 删除完成的agent,返回数目
int popCompletedFromExecutionStack();
// Pops a dialog agent from the execution stack
// 删除一个agent
void popAgentFromExecutionStack(CDialogAgent *pdaADialogAgent, TStringVector& rvsAgentsEliminated);
// Pops a dialog agent from the execution stack, together with all the
// sub-agents (recursively) that it has planned for execution
// 删除topic agent 【包括所以子agent】
void popTopicFromExecutionStack(CDialogAgent *pdaADialogAgent, TStringVector& rvsAgentsEliminated);
// Eliminates all grounding agents from the execution stack
// 删除所有grouding agent
void popGroundingAgentsFromExecutionStack(TStringVector& rvsAgentsEliminated);
//---------------------------------------------------------------------
// DMCoreManagerAgent private methods related to the input pass
// 输入的私有方法
//---------------------------------------------------------------------
// Method for logging the concepts
//log记录concept
void dumpConcepts();
// Methods for logging the execution stack
//log记录执行栈
void dumpExecutionStack();
string executionStackToString();
string executionStackToString(TExecutionStack es);
// Methods for computing the current system action
// 计算当前系统的action
void clearCurrentSystemAction();
void computeCurrentSystemAction();
string systemActionToString(TSystemAction saASystemAction);
string currentSystemActionToString();
// Methods for assembling, logging, and broadcasting the expectation agenda
// 组装、记录、广播期望agenda
void assembleExpectationAgenda();
void compileExpectationAgenda();
void enforceBindingPolicies();
void broadcastExpectationAgenda();
string expectationAgendaToString();
string expectationAgendaToBroadcastString();
string expectationAgendaToBroadcastString(TExpectationAgenda eaBAgenda);
// Method for logging the bindings description
//log记录binding 修饰符
string bindingsDescrToString(TBindingsDescr& rbdBindings);
// J: Updates the speech recognizer's configuration according to the execution stack
//根据执行堆栈更新语音识别器配置
void updateInputLineConfiguration();
// Assembles the list of focus claims
// 组装焦点声明列表
int assembleFocusClaims();
// Binds the concepts from the input, according to an agenda
// 通过agenda绑定concept
void bindConcepts(TBindingsDescr& rbdBindings);
// Helper function which performs an actual binding to a concept
// 辅助函数,其执行对概念的实际绑定
void performConceptBinding(string sSlotName, string sSlotValue, float fConfidence, int iExpectationIndex, bool bIsComplete);
// Helper function that performs a binding through a customized binding filter
//帮助函数,通过自定义绑定过滤器执行绑定
void performCustomConceptBinding(int iExpectationIndex);
// Helper function that performs the forced concept updates (if
// there are concepts that are being explicitly or implicitly
// confirmed and they are not being updated in the binding phase
// then force an update on these concepts)
//辅助函数,用于执行强制概念更新(如果存在显式或隐式确认的概念,并且它们在绑定阶段未更新,则强制对这些概念进行更新)
void performForcedConceptUpdates(TBindingsDescr& rbdBindings);
// Process non-understandings
// 处理 不理解
void processNonUnderstanding();
// Analyze the need for and resolve focus shifts
// 分析需求和解决检点转移
void resolveFocusShift();
// Rolls back to a previous dialog state (e.g. after a user barge-in)
//回滚到上一个对话框状态(例如,在用户插入之后)
void rollBackDialogState(int iState);
};
#endif // __DMCOREAGENT_H__ | [
"[email protected]"
] | |
371825086073d7efdb11121bfa2c0135cad00e23 | 7247514c99a991574793fb0ebf837fa7b36fdbb7 | /src/spork.h | 331cee7b1c9313d9bb1ff0c254ff5daaad68c9d0 | [
"MIT"
] | permissive | scottie/Seather | 2409280278e1dbbba89fcb6132e92440044e798b | 6f883a4b289f77160fa4fda8ae38ac43ebd2cdb5 | refs/heads/master | 2020-03-19T10:28:59.502637 | 2018-06-03T05:26:26 | 2018-06-03T05:26:26 | 136,374,998 | 0 | 1 | null | 2018-06-06T19:10:34 | 2018-06-06T19:10:34 | null | UTF-8 | C++ | false | false | 3,912 | h | // Copyright (c) 2014-2016 The Dash developers
// Copyright (c) 2016-2017 The PIVX developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef SPORK_H
#define SPORK_H
#include "base58.h"
#include "key.h"
#include "main.h"
#include "net.h"
#include "sync.h"
#include "util.h"
#include "protocol.h"
#include <boost/lexical_cast.hpp>
using namespace std;
using namespace boost;
/*
Don't ever reuse these IDs for other sporks
- This would result in old clients getting confused about which spork is for what
*/
#define SPORK_START 10001
#define SPORK_END 10015
#define SPORK_2_SWIFTTX 10001
#define SPORK_3_SWIFTTX_BLOCK_FILTERING 10002
#define SPORK_5_MAX_VALUE 10004
#define SPORK_7_MASTERNODE_SCANNING 10006
#define SPORK_8_MASTERNODE_PAYMENT_ENFORCEMENT 10007
#define SPORK_9_MASTERNODE_BUDGET_ENFORCEMENT 10008
#define SPORK_10_MASTERNODE_PAY_UPDATED_NODES 10009
#define SPORK_11_RESET_BUDGET 10010
#define SPORK_12_RECONSIDER_BLOCKS 10011
#define SPORK_13_ENABLE_SUPERBLOCKS 10012
#define SPORK_14_NEW_PROTOCOL_ENFORCEMENT 10013
#define SPORK_15_NEW_PROTOCOL_ENFORCEMENT_2 10014
#define SPORK_16_MN_WINNER_MINIMUM_AGE 10015
#define SPORK_2_SWIFTTX_DEFAULT 978307200 //2001-1-1
#define SPORK_3_SWIFTTX_BLOCK_FILTERING_DEFAULT 1424217600 //2015-2-18
#define SPORK_5_MAX_VALUE_DEFAULT 1000 //1000 STR
#define SPORK_7_MASTERNODE_SCANNING_DEFAULT 978307200 //2001-1-1
#define SPORK_8_MASTERNODE_PAYMENT_ENFORCEMENT_DEFAULT 4070908800 //OFF
#define SPORK_9_MASTERNODE_BUDGET_ENFORCEMENT_DEFAULT 4070908800 //OFF
#define SPORK_10_MASTERNODE_PAY_UPDATED_NODES_DEFAULT 4070908800 //OFF
#define SPORK_11_RESET_BUDGET_DEFAULT 0
#define SPORK_12_RECONSIDER_BLOCKS_DEFAULT 0
#define SPORK_13_ENABLE_SUPERBLOCKS_DEFAULT 4070908800 //OFF
#define SPORK_14_NEW_PROTOCOL_ENFORCEMENT_DEFAULT 4070908800 //OFF
#define SPORK_15_NEW_PROTOCOL_ENFORCEMENT_2_DEFAULT 4070908800 //OFF
#define SPORK_16_MN_WINNER_MINIMUM_AGE_DEFAULT 8000 // Age in seconds. This should be > MASTERNODE_REMOVAL_SECONDS to avoid
// misconfigured new nodes in the list.
// Set this to zero to emulate classic behaviour
class CSporkMessage;
class CSporkManager;
extern std::map<uint256, CSporkMessage> mapSporks;
extern std::map<int, CSporkMessage> mapSporksActive;
extern CSporkManager sporkManager;
void LoadSporksFromDB();
void ProcessSpork(CNode* pfrom, std::string& strCommand, CDataStream& vRecv);
int64_t GetSporkValue(int nSporkID);
bool IsSporkActive(int nSporkID);
void ReprocessBlocks(int nBlocks);
//
// Spork Class
// Keeps track of all of the network spork settings
//
class CSporkMessage
{
public:
std::vector<unsigned char> vchSig;
int nSporkID;
int64_t nValue;
int64_t nTimeSigned;
uint256 GetHash()
{
uint256 n = HashQuark(BEGIN(nSporkID), END(nTimeSigned));
return n;
}
ADD_SERIALIZE_METHODS;
template <typename Stream, typename Operation>
inline void SerializationOp(Stream& s, Operation ser_action, int nType, int nVersion)
{
READWRITE(nSporkID);
READWRITE(nValue);
READWRITE(nTimeSigned);
READWRITE(vchSig);
}
};
class CSporkManager
{
private:
std::vector<unsigned char> vchSig;
std::string strMasterPrivKey;
public:
CSporkManager()
{
}
std::string GetSporkNameByID(int id);
int GetSporkIDByName(std::string strName);
bool UpdateSpork(int nSporkID, int64_t nValue);
bool SetPrivKey(std::string strPrivKey);
bool CheckSignature(CSporkMessage& spork);
bool Sign(CSporkMessage& spork);
void Relay(CSporkMessage& msg);
};
#endif
| [
"[email protected]"
] | |
581fa7357afad816205ebe79f948b970b4f180db | 2c2f16f73d691a6e0bc475ab07f12ef22ac6a8d1 | /include/My2048.h | d844464baaab5b3130cf84e56cc3662fb1af902b | [] | no_license | bitpja/My2048 | e878d6b8c99573187d1240bd00bf9fdab3a7e35a | 53d4b2bb3fc006d1fd96e61d949f182c3f2a51d4 | refs/heads/master | 2020-07-10T04:29:41.212900 | 2019-08-24T14:27:00 | 2019-08-24T14:27:00 | 204,167,537 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 641 | h | #ifndef MY2048_H
#define MY2048_H
#include<vector>
#include<iostream>
#include<random>
#include<stdlib.h>
#include<time.h>
using namespace std;
class My2048
{
public:
My2048(int x=4,int y=4);
virtual ~My2048();
bool Init();
char Check();
void Move();
void Print();
void MoveSingRow(int row,int dir);
void MoveSingCol(int col,int dir);
void Play();
void Make();
protected:
private:
// vector<vector<int> > _map(4,vector<int>(4,0));
vector<vector<int> > _map;
int _x,_y;
unsigned int _sum = 0;
};
#endif // MY2048_H
| [
"[email protected]"
] | |
4db9136b89e5d71a6cf85ec6227afe0de90805df | bc5540f59c44b60878f2b60f3029dd837922ef5b | /android/app/src/main/cpp/src/reporter/JavaReporter.cpp | fa1d8ace2d3f972ae20e14a22a78935608a56ffc | [
"MIT"
] | permissive | comword/TCD20-DP-MobileApp | a0a9831e40484587b6674d209c71df7e2daa729d | 94b21fb00f3c7b98dcbb19a3f2715ea6faaa9444 | refs/heads/main | 2023-07-20T13:16:29.486502 | 2021-08-20T19:27:58 | 2021-08-20T19:27:58 | 372,375,425 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,039 | cpp | #include "JavaReporter.h"
#include <cassert>
#include <jni.h>
#include <tuple>
#include "dlog.h"
JavaReporter::JavaReporter() = default;
JavaReporter::~JavaReporter()
{
ScopedEnv scopedEnv( *this );
if( mCls ) {
scopedEnv.GetEnv()->DeleteGlobalRef( mCls );
}
}
bool JavaReporter::init( void *userData )
{
JNIEnv *env = nullptr;
jobject cls = nullptr;
std::tie( env, cls ) = *static_cast<std::tuple<JNIEnv *, jobject> *>( userData );
assert( env != nullptr );
assert( cls != nullptr );
mCls = env->NewGlobalRef( cls );
return env->GetJavaVM( &mJvm ) == 0;
}
void JavaReporter::onMLResult( const std::vector<float> &result )
{
ScopedEnv scopedEnv( *this );
auto env = scopedEnv.GetEnv();
jclass mlClass = env->GetObjectClass( mCls );
jmethodID idEmitResult = env->GetMethodID( mlClass, "emitResult",
"([F)V" );
auto jfArr = env->NewFloatArray( result.size() );
if( jfArr == nullptr ) {
return;
}
env->SetFloatArrayRegion( jfArr, 0, result.size(), &result[0] );
env->CallVoidMethod( mCls, idEmitResult, jfArr );
}
void JavaReporter::onVideoFrame( const cv::Mat &result ) {}
bool JavaReporter::start()
{
return true;
}
const char *JavaReporter::getName()
{
return "JavaReporter";
}
void JavaReporter::registerMgr( ReporterMgr *mgr )
{
reporterMgr = mgr;
}
void JavaReporter::stop() {}
void JavaReporter::onError( const char *name, const char *reason )
{
ScopedEnv scopedEnv( *this );
auto env = scopedEnv.GetEnv();
jclass mlClass = env->GetObjectClass( mCls );
jmethodID idEmitError = env->GetMethodID( mlClass, "emitError",
"(Ljava/lang/String;Ljava/lang/String;)V" );
}
JavaReporter::ScopedEnv::ScopedEnv( const JavaReporter &parent ): mParent( parent )
{
mAttached = GetJniEnv( mParent.mJvm, &mEnv );
}
JavaReporter::ScopedEnv::~ScopedEnv()
{
if( mAttached ) {
mParent.mJvm->DetachCurrentThread();
mAttached = false;
}
}
JNIEnv *JavaReporter::ScopedEnv::GetEnv() const
{
if( mAttached ) {
return mEnv;
} else {
return nullptr;
}
}
//reference: https://stackoverflow.com/questions/30026030/what-is-the-best-way-to-save-jnienv
bool JavaReporter::ScopedEnv::GetJniEnv( JavaVM *vm, JNIEnv **jnienv )
{
bool did_attach_thread = false;
*jnienv = nullptr;
// Check if the current thread is attached to the VM
auto get_env_result = vm->GetEnv( ( void ** )jnienv, JNI_VERSION_1_6 );
if( get_env_result == JNI_EDETACHED ) {
if( vm->AttachCurrentThread( jnienv, nullptr ) == JNI_OK ) {
did_attach_thread = true;
} else {
// Failed to attach thread. Throw an exception if you want to.
LOGE( "Failed to attach thread" );
}
} else if( get_env_result == JNI_EVERSION ) {
// Unsupported JNI version. Throw an exception if you want to.
LOGE( "Unsupported JNI version" );
}
return did_attach_thread;
}
| [
"[email protected]"
] | |
42b457122b63c8c2b4c897d3a8d444a120256b0f | f4a588e3eee9ce4780a29da60fdd9d3ae225022f | /autoinsert/autoinsert.cpp | f59eadce9a9c2729e6b12167613fd23be507164a | [] | no_license | iamslash/emacs_robin | 9aa776a6a35e59b86e5beab09117b983469a051e | 65a08e681b00396c7ada18f754cda2bb8843f5c9 | refs/heads/master | 2023-08-17T12:00:49.040387 | 2023-08-06T03:09:06 | 2023-08-06T03:09:06 | 52,074,208 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 91 | cpp | /* Copyright (C) 2023 by iamslash */
#include <cstdio>
int main() {
return 0;
}
| [
"[email protected]"
] | |
ad26629f0bf971a332b965e693e148f2f84728f0 | 325f4a6ce8aa09a019cae883c0db967b615da5db | /SDK/PUBG_Toy_WeapGroza_functions.cpp | a0082f2fde9344f17ad33ad7f26a6d208da5bb25 | [] | no_license | Rioo-may/PUBG-SDK | 1c9e18b1dc0f893f5e88d5c2f631651ada7e63a4 | fa64ffdc5924e5f3222a30b051daa3a5b3a86fbf | refs/heads/master | 2023-01-07T22:57:11.560093 | 2020-11-11T05:49:47 | 2020-11-11T05:49:47 | 311,240,310 | 0 | 0 | null | 2020-11-11T05:51:42 | 2020-11-09T06:09:27 | C++ | UTF-8 | C++ | false | false | 823 | cpp | // PlayerUnknown's Battlegrounds (2.5.39.19) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "../SDK.hpp"
namespace Classes
{
//---------------------------------------------------------------------------
//Functions
//---------------------------------------------------------------------------
// Function Toy_WeapGroza.Toy_WeapGroza_C.UserConstructionScript
// (FUNC_Event, FUNC_Public, FUNC_BlueprintCallable, FUNC_BlueprintEvent)
void AToy_WeapGroza_C::UserConstructionScript()
{
static auto fn = UObject::FindObject<UFunction>("Function Toy_WeapGroza.Toy_WeapGroza_C.UserConstructionScript");
AToy_WeapGroza_C_UserConstructionScript_Params params;
auto flags = fn->FunctionFlags;
UObject::ProcessEvent(fn, ¶ms);
fn->FunctionFlags = flags;
}
}
#ifdef _MSC_VER
#pragma pack(pop)
#endif
| [
"[email protected]"
] | |
1286f26ba5438958763cf6b2b3d246a8a3a69409 | d123f6c421de255abbba591fa81ea30b7befbd1a | /Arduino_Codes/LoRa/LoRa_TX.ino | a2d5aeaf0117eeadbc4f7ef24e95325dff2a1576 | [] | no_license | jamienhare/HiveMonitor | d5f5ef9e8ce5a2d60fdd64d5972d7b058c9a91ec | 5d5a33d7dbb51a703aac688f1e5863472ef28398 | refs/heads/master | 2023-02-10T00:13:34.368129 | 2020-11-24T17:43:27 | 2020-11-24T17:43:27 | 302,157,007 | 2 | 0 | null | 2020-11-24T02:34:35 | 2020-10-07T20:49:40 | C++ | UTF-8 | C++ | false | false | 1,798 | ino | /*
* Author - Deepen Solanki
* Purpose - LoRa Transmitter Code
* Module - REYAX RYLR890
*/
#include<string.h>
#define NETWORKID 6
#define TXNODE 120
#define RXNODE 100
int sendAT();
int setNetworkID(unsigned int);
int setNodeID(unsigned int);
int sendData(unsigned int nodeID, char* message);
void setup()
{
int ret;
Serial.begin(115200);
Serial.setTimeout(2000);
ret = sendAT();
if(ret == -1)
Serial.print("Sending AT failed, please check wiring or module\n");
ret = setNetworkID(NETWORKID);
if(ret == -1)
Serial.print("Setting Network ID failed. Please check wiring or module\n");
ret = setNodeID(TXNODE);
if(ret == -1)
Serial.print("Setting Node ID failed. Please check wiring or module\n");
delay(1000);
}
void loop()
{
int ret;
ret = sendData(RXNODE,"Krabby Patty");
if(ret == -1)
{
Serial.println("Sending data failed. Please check wiring or module");
while(1);
}
delay(2000);
}
int sendAT()
{
String rx = "";
Serial.print("AT\r\n");
rx = Serial.readString();
if(rx.indexOf("OK")>=0)
return 1;
else
return -1;
}
int setNetworkID(unsigned int ID)
{
String rx = "";
Serial.print("AT+NETWORKID="+String(ID)+"\r\n");
rx = Serial.readString();
if(rx.indexOf("OK")>=0)
return 1;
else
return -1;
}
int setNodeID(unsigned int ID)
{
String rx = "";
Serial.print("AT+ADDRESS="+String(ID)+"\r\n");
rx = Serial.readString();
if(rx.indexOf("OK")>=0)
return 1;
else
return -1;
}
int sendData(unsigned int ID, char* message)
{
String rx = "";
int l = (int)(strlen(message));
Serial.print("AT+SEND="+String(ID)+","+String(l)+","+message+"\r\n");
rx = Serial.readString();
if(rx.indexOf("OK")>=0)
return 1;
else
return -1;
}
| [
"[email protected]"
] | |
c8082473b9625928669930652cd70c9138afba15 | 7cffa9b29f855c68ec5efcf049f596dc7be6bff6 | /src/color/hsv/make/brown.hpp | 2a3224aa9ad0c05076130ecbb363bb16953f83f0 | [
"Apache-2.0"
] | permissive | lzs4073/color | c4e12e26cfe96022e0a5e6736a7abaadf9912c14 | 290c2c1550c499465f814ba89a214cbec19a72df | refs/heads/master | 2020-04-03T07:16:33.120894 | 2016-02-02T16:18:25 | 2016-02-02T16:18:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,862 | hpp | #ifndef color_hsv_make_brown
#define color_hsv_make_brown
// ::color::make::brown( c )
namespace color
{
namespace make
{ //RGB equivalents: std::array<double,3>( { 0, 74.5455, 64.7059 } ) - rgb(165,42,42) - #a52a2a
inline
void brown( ::color::_internal::model< ::color::category::hsv_uint8 > & color_parameter )
{
color_parameter.container() = std::array< std::uint8_t, 3 >( { 0x00, 0xbe, 0xa5 } );
}
inline
void brown( ::color::_internal::model< ::color::category::hsv_uint16 > & color_parameter )
{
color_parameter.container() = std::array< std::uint16_t, 3 >( { 0x0000, 0xbed5, 0xa5a5 } );
}
inline
void brown( ::color::_internal::model< ::color::category::hsv_uint32 > & color_parameter )
{
color_parameter.container() = std::array< std::uint32_t, 3 >( { 0x00000000, 0xbed61bec, 0xa5a5a5a5 } );
}
inline
void brown( ::color::_internal::model< ::color::category::hsv_uint64 > & color_parameter )
{
color_parameter.container() = std::array< std::uint64_t, 3 >( { 0x0000000000000000ull, 0xbed61bed61bed800ull, 0xa5a5a5a5a5a5a800ull } );
}
inline
void brown( ::color::_internal::model< ::color::category::hsv_float > & color_parameter )
{
color_parameter.container() = std::array<float,3>( { 0, 74.5455, 64.7059 } );
}
inline
void brown( ::color::_internal::model< ::color::category::hsv_double> & color_parameter )
{
color_parameter.container() = std::array<double,3>( { 0, 74.5455, 64.7059 } );
}
inline
void brown( ::color::_internal::model< ::color::category::hsv_ldouble> & color_parameter )
{
color_parameter.container() = std::array<long double,3>( { 0, 74.5455, 64.7059 } );
}
}
}
#endif
| [
"[email protected]"
] | |
b528d9a923534c4dc9ea8fdca08d7e85e1346952 | 3c1d68de4dfcedaeea11db403c0a08ec053a3749 | /src/battle/stats.cpp | 968ad88c345189ad82a1b90c3a145c0ff92bd955 | [] | no_license | wreien/turn-based | 38d02192fb5a4f8956dfc5664f73695575e4b6f0 | 3a02db4cda8291f6d35baf3b8be18c032428f2aa | refs/heads/master | 2020-04-15T05:04:26.516125 | 2019-07-12T13:43:58 | 2019-07-12T13:43:58 | 164,407,937 | 1 | 0 | null | 2019-07-12T13:43:59 | 2019-01-07T09:20:54 | C++ | UTF-8 | C++ | false | false | 2,346 | cpp | #include "battle/stats.h"
#include <cmath>
namespace battle {
Stats calculateModifiedStats(Stats s, const std::vector<StatModifier>& mods) noexcept {
static constexpr auto num_stat_types =
static_cast<unsigned>(StatType::resist);
std::array<int, num_stat_types> stat_mult_sum = { 0 };
std::array<int, num_elements> resist_mult_sum = { 0 };
auto performMod = [&s](StatType stat, auto modFunc) {
switch (stat) {
case StatType::health: modFunc(s.max_health); break;
case StatType::mana: modFunc(s.max_mana); break;
case StatType::tech: modFunc(s.max_tech); break;
case StatType::p_atk: modFunc(s.p_atk); break;
case StatType::p_def: modFunc(s.p_def); break;
case StatType::m_atk: modFunc(s.m_atk); break;
case StatType::m_def: modFunc(s.m_def); break;
case StatType::skill: modFunc(s.skill); break;
case StatType::evade: modFunc(s.evade); break;
case StatType::react: modFunc(s.react); break;
case StatType::resist: break;
}
};
for (const auto& m : mods) {
switch (m.type) {
case StatModType::additive:
if (m.stat == StatType::resist)
s.setResistance(m.resist, s.getResistance(m.resist) + m.modifier);
else
performMod(m.stat, [&m](auto& stat){ stat += m.modifier; });
break;
case StatModType::multiplicative:
if (m.stat == StatType::resist)
resist_mult_sum[static_cast<unsigned>(m.resist)] += m.modifier;
else
stat_mult_sum[static_cast<unsigned>(m.stat)] += m.modifier;
break;
}
}
for (unsigned i = 0; i < num_stat_types; i++) {
performMod(static_cast<StatType>(i), [&](auto& stat) {
auto mod = stat_mult_sum[i] / 100.0 + 1.0;
stat = static_cast<int>(std::round(stat * mod));
stat = std::max(stat, 1); // cannot have less than 1 in a stat
});
}
for (unsigned i = 0; i < num_elements; i++) {
auto e = static_cast<Element>(i);
auto r = s.getResistance(e);
auto mod = resist_mult_sum[i] / 100.0 + 1.0;
s.setResistance(e, static_cast<int>(std::round(r * mod)));
}
return s;
}
}
| [
"[email protected]"
] | |
79c14faebc2cfd88f062efbc43701917d2164b90 | 48e5e2abfee4a0bd954ee423db2a7057b79856f5 | /second_max.cpp | 0bb43025a2487f8bdf6e159bacc535d223b85375 | [] | no_license | sroy-mirp/sroy-mirp | 6905f27108cc3c6a461ddfc7ce5bbca0107b953e | 461e03e65627930993669457e82f2971429834a3 | refs/heads/master | 2021-01-23T02:00:38.589958 | 2017-06-05T01:32:31 | 2017-06-05T01:32:31 | 92,903,066 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 409 | cpp | #include<iostream>
using namespace std;
int main () {
int n1,n2,n3,n4;
cout<<"Enter the second max value:";
cin>>n1>>n2>>n3>>n4;
if ((n1>n2)&&(n2>n3)&&(n3>n4)){
cout<<"second max value:"<<n1;
}
else if ((n2>n1)&&(n2>n3)&&(n2>n4)){
cout<<"second max value:"<<n2;
}
if ((n3>n1)&&(n3>n2)&&(n3>n4)){
cout<<"second max value:"<<n3;
}
else ((n4>n1)&&(n4>n2)&&(n4>n3));{
cout<<"second max value:"<<n4;
}
return 0;
}
| [
"[email protected]"
] | |
b7d125c1a3bf09563d25816b84ba9d6738d32740 | 8ba6192dced3f6a6d231c1fa53773cd941f2c079 | /Classes/AppDelegate.cpp | c81645b7dcc4581ceecd1aac0d99ace62f9edda1 | [] | no_license | NFWSA/DoOrDie | 64500f65fada0264a26532a746a2da6654b6507d | cef63a14bdeb1dc028aaa8d180d033c9ae84b71c | refs/heads/master | 2021-01-19T03:21:20.897653 | 2016-08-16T02:20:39 | 2016-08-16T02:20:39 | 65,780,417 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,994 | cpp | #include "AppDelegate.h"
#include "SplashScene.h"
#include "CreditScene.h"
USING_NS_CC;
AppDelegate::AppDelegate() {
}
AppDelegate::~AppDelegate()
{
}
//if you want a different context,just modify the value of glContextAttrs
//it will takes effect on all platforms
void AppDelegate::initGLContextAttrs()
{
//set OpenGL context attributions,now can only set six attributions:
//red,green,blue,alpha,depth,stencil
GLContextAttrs glContextAttrs = {8, 8, 8, 8, 24, 8};
GLView::setGLContextAttrs(glContextAttrs);
}
bool AppDelegate::applicationDidFinishLaunching() {
// initialize director
auto director = Director::getInstance();
auto glview = director->getOpenGLView();
if(!glview) {
glview = GLViewImpl::createWithRect("Do or Die", Rect(0, 0, 960, 640));
director->setOpenGLView(glview);
}
director->getOpenGLView()->setDesignResolutionSize(960, 640, ResolutionPolicy::SHOW_ALL);
// turn on display FPS
director->setDisplayStats(false);
// set FPS. the default value is 1.0/60 if you don't call this
director->setAnimationInterval(1.0f / 60);
FileUtils::getInstance()->addSearchPath("Data");
FileUtils::getInstance()->addSearchPath("Story");
// create a scene. it's an autorelease object
auto scene = Splash::createScene();
// run
director->runWithScene(scene);
return true;
}
// This function will be called when the app is inactive. When comes a phone call,it's be invoked too
void AppDelegate::applicationDidEnterBackground() {
Director::getInstance()->stopAnimation();
// if you use SimpleAudioEngine, it must be pause
// SimpleAudioEngine::getInstance()->pauseBackgroundMusic();
}
// this function will be called when the app is active again
void AppDelegate::applicationWillEnterForeground() {
Director::getInstance()->startAnimation();
// if you use SimpleAudioEngine, it must resume here
// SimpleAudioEngine::getInstance()->resumeBackgroundMusic();
}
| [
"[email protected]"
] | |
8714315497dc49457f222fd4a6839f994022f576 | 7d39397bcd5298f72f7cf3d4671d8357cb819cf9 | /src/DelayGUI/DelayGUI.cpp | a4fa3aa2d6a0bce6f80e27499b958fbda417cb2d | [
"Apache-2.0"
] | permissive | d8euAI8sMs/scm-1-delay | 7d3f6e403f12e988e1e8cf116da4f527d28f1e0d | 78e756b5a0c59b15b3e90366d60339edbdba8951 | refs/heads/master | 2020-07-29T21:48:51.221040 | 2020-01-22T12:49:35 | 2020-01-22T12:49:35 | 209,974,452 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,657 | cpp | // DelayGUI.cpp : Defines the initialization routines for the DLL.
//
#include "pch.h"
#include "framework.h"
#include "DelayGUI.h"
#include "CMainDialog.h"
#include <interop\types.h>
// Dummy exported function (otherwise no .lib is generated and build fails)
#include <cstdio>
extern "C" {
__declspec(dllexport) void dummy() {
printf("Hello from dll!");
}
}
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
//
//TODO: If this DLL is dynamically linked against the MFC DLLs,
// any functions exported from this DLL which call into
// MFC must have the AFX_MANAGE_STATE macro added at the
// very beginning of the function.
//
// For example:
//
// extern "C" BOOL PASCAL EXPORT ExportedFunction()
// {
// AFX_MANAGE_STATE(AfxGetStaticModuleState());
// // normal function body here
// }
//
// It is very important that this macro appear in each
// function, prior to any calls into MFC. This means that
// it must appear as the first statement within the
// function, even before any object variable declarations
// as their constructors may generate calls into the MFC
// DLL.
//
// Please see MFC Technical Notes 33 and 58 for additional
// details.
//
// CDelayGUIApp
BEGIN_MESSAGE_MAP(CDelayGUIApp, CWinApp)
END_MESSAGE_MAP()
// CDelayGUIApp construction
CDelayGUIApp::CDelayGUIApp()
: m_bInitialized(FALSE)
, m_callbackCb(0)
{
// TODO: add construction code here,
// Place all significant initialization in InitInstance
}
// The one and only CDelayGUIApp object
CDelayGUIApp theApp;
// CDelayGUIApp initialization
BOOL CDelayGUIApp::InitInstance()
{
if (!m_bInitialized) return TRUE;
// InitCommonControlsEx() is required on Windows XP if an application
// manifest specifies use of ComCtl32.dll version 6 or later to enable
// visual styles. Otherwise, any window creation will fail.
INITCOMMONCONTROLSEX InitCtrls;
InitCtrls.dwSize = sizeof(InitCtrls);
// Set this to include all the common control classes you want to use
// in your application.
InitCtrls.dwICC = ICC_WIN95_CLASSES;
InitCommonControlsEx(&InitCtrls);
CWinApp::InitInstance();
CMainDialog dlg;
dlg.m_callbackCb = m_callbackCb;
m_pMainWnd = &dlg;
if (m_callbackCb != 0) m_callbackCb(HSDEV_POST_INIT, 0, 0);
INT_PTR nResponse = dlg.DoModal();
if (m_callbackCb != 0) m_callbackCb(HSDEV_PRE_EXIT, 0, 0);
return TRUE;
}
void hsd_init() {
AFX_MANAGE_STATE(AfxGetStaticModuleState());
}
void hsd_show_and_wait(hsd_callback cb)
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());
theApp.m_bInitialized = true;
theApp.m_callbackCb = cb;
if (theApp.InitInstance())
{
theApp.Run();
}
}
void hsd_refresh() {
AFX_MANAGE_STATE(AfxGetStaticModuleState());
static_cast<CMainDialog*>(theApp.GetMainWnd())->Refresh();
}
void hsd_exit() {
AFX_MANAGE_STATE(AfxGetStaticModuleState());
theApp.ExitInstance();
}
void _set_data_range(model::points_t& pts, int count, point_t* s) {
pts.resize(static_cast <size_t> (count));
for (size_t i = 0; i < static_cast <size_t> (count); ++i) {
pts[i] = { s[i].t, s[i].x };
}
}
void hsd_get_params(params_t* data) {
AFX_MANAGE_STATE(AfxGetStaticModuleState());
auto wnd = static_cast<CMainDialog*>(theApp.GetMainWnd());
auto& sig = wnd->m_data;
data->mode = (wnd->m_mode == CMainDialog::MODE_DEMO) ? HSDMD_DEMO : HSDMD_SIM;
data->span = sig.params->span;
data->shift = sig.params->shift;
data->carrier = sig.params->carrier;
data->bitrate = sig.params->bitrate;
data->sampling_rate = sig.params->sampling_rate;
data->snr = sig.params->snr;
data->snr_from = sig.params->snr_from;
data->snr_to = sig.params->snr_to;
data->snr_count = sig.params->snr_count;
data->num_of_tests = sig.params->num_of_tests;
}
void hsd_set_signals(gen_data_t * data) {
AFX_MANAGE_STATE(AfxGetStaticModuleState());
auto & sig = static_cast<CMainDialog*>(theApp.GetMainWnd())->m_data;
_set_data_range(*sig.signals.am.data, data->count_base, data->data_am_base);
_set_data_range(*sig.signals.pm.data, data->count_base, data->data_pm_base);
_set_data_range(*sig.signals.fm.data, data->count_base, data->data_fm_base);
_set_data_range(*sig.signals_shifted.am.data, data->count_shifted, data->data_am_shifted);
_set_data_range(*sig.signals_shifted.pm.data, data->count_shifted, data->data_pm_shifted);
_set_data_range(*sig.signals_shifted.fm.data, data->count_shifted, data->data_fm_shifted);
}
void hsd_set_cur_demo(demo_data_t* data) {
AFX_MANAGE_STATE(AfxGetStaticModuleState());
auto& sig = static_cast<CMainDialog*>(theApp.GetMainWnd())->m_data;
_set_data_range(*sig.correlation.am.data, data->correlation_count, data->correlation_am);
_set_data_range(*sig.correlation.pm.data, data->correlation_count, data->correlation_pm);
_set_data_range(*sig.correlation.fm.data, data->correlation_count, data->correlation_fm);
auto& res = static_cast<CMainDialog*>(theApp.GetMainWnd())->m_demoResults;
res.shift_am = data->shift_am;
res.shift_pm = data->shift_pm;
res.shift_fm = data->shift_fm;
}
void hsd_set_cur_sim(sim_data_t* data) {
AFX_MANAGE_STATE(AfxGetStaticModuleState());
auto& sig = static_cast<CMainDialog*>(theApp.GetMainWnd())->m_data;
sig.results.am.data->emplace_back(data->snr, data->prob_am);
sig.results.pm.data->emplace_back(data->snr, data->prob_pm);
sig.results.fm.data->emplace_back(data->snr, data->prob_fm);
}
void hsd_stop_sim() {
AFX_MANAGE_STATE(AfxGetStaticModuleState());
static_cast<CMainDialog*>(theApp.GetMainWnd())->m_bWorking = FALSE;
}
| [
"[email protected]"
] | |
21ad51f5d8a9652ca8a33dad365a053679362407 | c0f804a4a98a3eef2a9e4f4a8e9ba919a9716033 | /Frogger/src/Frogger/Tank.cpp | 4410a5547b1e9eb0490c30eec399116b3ad68e7e | [] | no_license | freazert/C---game | 53584d8c23d3900e3b8d8976aab45957fb4cd15a | d4f3caa45053300d077c226ec695378c0148e53f | refs/heads/master | 2020-04-01T18:17:31.889191 | 2018-10-17T15:50:47 | 2018-10-17T15:50:47 | 153,483,215 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 880 | cpp | /*
* Tank.cpp
*
* Created on: 18-jun.-2016
* Author: Kris
*/
#include <Tank.h>
namespace Frogger {
const float width = 1.2f;
const float height = 1;
Tank::Tank(GameProperties* gameProperties, int lane, int grid_width,
int grid_height, Factory* fac, float spawnX) :
RidingObject(gameProperties, grid_width, grid_height, lane, spawnX) {
//score van enemy zetten
points = 20;
this->factory = fac;
this->gameProperties = gameProperties;
}
// een tank schiet random een kogel, die kogel moet richting de frog gaan daarom worden de coordinaten van de frog meegegeven.
void Tank::Shoot() {
if ((rand() % (900)) == 0) {
gameProperties->entities->push_back(
this->factory->CreateProjectile(gameProperties, x, y,
gameProperties->entities->at(0)->GetX(),
gameProperties->entities->at(0)->GetY()));
}
}
Tank::~Tank() {
}
} /* namespace Frogger */
| [
"[email protected]"
] | |
048efced56d47dad2835602be80120f29f6d87f7 | 5846d9cbd1fe1a27cc467263244741cf2d0a7740 | /dbc/dbcmessageeditor.cpp | 41fdbfa30d1bb62fdf4f16a19b2fd35b32b6519e | [
"MIT"
] | permissive | IanMurphy-Rockfort/SavvyCAN | 09babeea7e980dc63ff2d50162a3318d951c6752 | b7d33ef0b21273791285b582fda2e477a868e2d2 | refs/heads/master | 2023-04-25T20:53:13.160845 | 2021-05-30T01:31:11 | 2021-05-30T01:31:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,641 | cpp | #include "dbcmessageeditor.h"
#include "ui_dbcmessageeditor.h"
#include <QSettings>
#include <QKeyEvent>
#include <QColorDialog>
#include "helpwindow.h"
#include "utility.h"
DBCMessageEditor::DBCMessageEditor(QWidget *parent) :
QDialog(parent),
ui(new Ui::DBCMessageEditor)
{
ui->setupUi(this);
readSettings();
dbcHandler = DBCHandler::getReference();
dbcMessage = nullptr;
suppressEditCallbacks = false;
connect(ui->lineComment, &QLineEdit::editingFinished,
[=]()
{
if (dbcMessage == nullptr) return;
if (suppressEditCallbacks) return;
if (dbcMessage->comment != ui->lineComment->text()) dbcFile->setDirtyFlag();
dbcMessage->comment = ui->lineComment->text();
emit updatedTreeInfo(dbcMessage);
});
connect(ui->lineFrameID, &QLineEdit::editingFinished,
[=]()
{
if (dbcMessage == nullptr) return;
if (suppressEditCallbacks) return;
if ((dbcMessage->ID & 0x1FFFFFFFul) != Utility::ParseStringToNum(ui->lineFrameID->text())) dbcFile->setDirtyFlag();
dbcMessage->ID = Utility::ParseStringToNum(ui->lineFrameID->text());
emit updatedTreeInfo(dbcMessage);
});
connect(ui->lineMsgName, &QLineEdit::editingFinished,
[=]()
{
if (dbcMessage == nullptr) return;
if (suppressEditCallbacks) return;
if (dbcMessage->name != ui->lineMsgName->text().simplified().replace(' ', '_')) dbcFile->setDirtyFlag();
dbcMessage->name = ui->lineMsgName->text().simplified().replace(' ', '_');
emit updatedTreeInfo(dbcMessage);
});
connect(ui->lineFrameLen, &QLineEdit::editingFinished,
[=]()
{
if (dbcMessage == nullptr) return;
if (suppressEditCallbacks) return;
if (dbcMessage->len != Utility::ParseStringToNum(ui->lineFrameLen->text())) dbcFile->setDirtyFlag();
dbcMessage->len = Utility::ParseStringToNum(ui->lineFrameLen->text());
});
connect(ui->comboSender, &QComboBox::currentTextChanged,
[=](const QString newText)
{
if (dbcMessage == nullptr) return;
if (suppressEditCallbacks) return;
DBC_NODE *node = dbcFile->findNodeByName(newText);
if (!node) return;
if (node != dbcMessage->sender) dbcFile->setDirtyFlag();
dbcMessage->sender = node;
emit updatedTreeInfo(dbcMessage);
});
connect(ui->comboSender->lineEdit(), &QLineEdit::editingFinished,
[=]()
{
if (dbcMessage == nullptr) return;
if (suppressEditCallbacks) return;
QString newText = ui->comboSender->currentText();
DBC_NODE *node = dbcFile->findNodeByName(newText);
if (!node)
{
DBC_NODE newNode;
newNode.name = newText;
dbcFile->dbc_nodes.append(newNode);
node = dbcFile->findNodeByName(newText);
ui->comboSender->addItem(newText);
}
if (node != dbcMessage->sender) dbcFile->setDirtyFlag();
dbcMessage->sender = node;
emit updatedTreeInfo(dbcMessage);
});
connect(ui->btnTextColor, &QAbstractButton::clicked,
[=]()
{
if (suppressEditCallbacks) return;
QColor newColor = QColorDialog::getColor(dbcMessage->fgColor);
if (dbcMessage->fgColor != newColor) dbcFile->setDirtyFlag();
dbcMessage->fgColor = newColor;
DBC_ATTRIBUTE_VALUE *val = dbcMessage->findAttrValByName("GenMsgForegroundColor");
if (val)
{
val->value = newColor.name();
}
else
{
DBC_ATTRIBUTE_VALUE newVal;
newVal.attrName = "GenMsgForegroundColor";
newVal.value = newColor.name();
dbcMessage->attributes.append(newVal);
}
generateSampleText();
});
connect(ui->btnBackgroundColor, &QAbstractButton::clicked,
[=]()
{
if (suppressEditCallbacks) return;
QColor newColor = QColorDialog::getColor(dbcMessage->bgColor);
if (dbcMessage->bgColor != newColor) dbcFile->setDirtyFlag();
dbcMessage->bgColor = newColor;
DBC_ATTRIBUTE_VALUE *val = dbcMessage->findAttrValByName("GenMsgBackgroundColor");
if (val)
{
val->value = newColor.name();
}
else
{
DBC_ATTRIBUTE_VALUE newVal;
newVal.attrName = "GenMsgBackgroundColor";
newVal.value = newColor.name();
dbcMessage->attributes.append(newVal);
}
generateSampleText();
});
installEventFilter(this);
}
DBCMessageEditor::~DBCMessageEditor()
{
removeEventFilter(this);
delete ui;
}
void DBCMessageEditor::closeEvent(QCloseEvent *event)
{
Q_UNUSED(event);
writeSettings();
}
bool DBCMessageEditor::eventFilter(QObject *obj, QEvent *event)
{
if (event->type() == QEvent::KeyRelease) {
QKeyEvent *keyEvent = static_cast<QKeyEvent *>(event);
switch (keyEvent->key())
{
case Qt::Key_F1:
HelpWindow::getRef()->showHelp("messageeditor.html");
break;
}
return true;
} else {
// standard event processing
return QObject::eventFilter(obj, event);
}
return false;
}
void DBCMessageEditor::setFileIdx(int idx)
{
if (idx < 0 || idx > dbcHandler->getFileCount() - 1) return;
dbcFile = dbcHandler->getFileByIdx(idx);
suppressEditCallbacks = true;
ui->comboSender->clear();
for (int x = 0; x < dbcFile->dbc_nodes.count(); x++)
{
ui->comboSender->addItem(dbcFile->dbc_nodes[x].name);
}
suppressEditCallbacks = false;
}
void DBCMessageEditor::readSettings()
{
QSettings settings;
if (settings.value("Main/SaveRestorePositions", false).toBool())
{
resize(settings.value("DBCMessageEditor/WindowSize", QSize(340, 400)).toSize());
move(Utility::constrainedWindowPos(settings.value("DBCMessageEditor/WindowPos", QPoint(100, 100)).toPoint()));
}
}
void DBCMessageEditor::writeSettings()
{
QSettings settings;
if (settings.value("Main/SaveRestorePositions", false).toBool())
{
settings.setValue("DBCMessageEditor/WindowSize", size());
settings.setValue("DBCMessageEditor/WindowPos", pos());
}
}
void DBCMessageEditor::setMessageRef(DBC_MESSAGE *msg)
{
dbcMessage = msg;
}
void DBCMessageEditor::showEvent(QShowEvent* event)
{
QDialog::showEvent(event);
refreshView();
}
void DBCMessageEditor::refreshView()
{
suppressEditCallbacks = true;
ui->lineComment->setText(dbcMessage->comment);
ui->lineFrameID->setText(Utility::formatCANID(dbcMessage->ID & 0x1FFFFFFFul));
ui->lineMsgName->setText(dbcMessage->name);
ui->lineFrameLen->setText(QString::number(dbcMessage->len));
for (int i = 0; i < ui->comboSender->count(); i++)
{
if (ui->comboSender->itemText(i) == dbcMessage->sender->name)
{
ui->comboSender->setCurrentIndex(i);
break;
}
}
suppressEditCallbacks = false;
generateSampleText();
}
void DBCMessageEditor::generateSampleText()
{
QBrush fg, bg;
if (dbcMessage->fgColor.isValid()) fg = QBrush(dbcMessage->fgColor);
else fg = QBrush(QColor(dbcFile->findAttributeByName("GenMsgForegroundColor")->defaultValue.toString()));
if (dbcMessage->bgColor.isValid()) bg = QBrush(dbcMessage->bgColor);
else bg = QBrush(QColor(dbcFile->findAttributeByName("GenMsgBackgroundColor")->defaultValue.toString()));
ui->listSample->clear();
QListWidgetItem *item = new QListWidgetItem("Test String");
item->setForeground(fg);
item->setBackground(bg);
ui->listSample->addItem(item);
item = new QListWidgetItem("0x20F TestMsg");
item->setForeground(fg);
item->setBackground(bg);
ui->listSample->addItem(item);
item = new QListWidgetItem("20 FF 10 A1 BB CC 4D");
item->setForeground(fg);
item->setBackground(bg);
ui->listSample->addItem(item);
item = new QListWidgetItem("1024.3434");
item->setForeground(fg);
item->setBackground(bg);
ui->listSample->addItem(item);
}
| [
"[email protected]"
] | |
2fc89985151f75953f1bc79a403a054069badbde | 8d88c774dd7979401f434c1b0e35e4cb9a42938e | /855.Exam Room.cpp | ada7a7d2eaf81a1c3c55ed765ba4a5fdd3b30458 | [] | no_license | yycccccccc/Leetcode | 15a76eca96f6d5420416d806b5372bdf2c55efbf | 8e879cc1495e47f1230e968b941543326cb28f38 | refs/heads/master | 2020-05-27T08:09:58.411710 | 2019-03-28T06:46:43 | 2019-03-28T06:46:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,295 | cpp | 题意:849follow up,找到现有位置距离最远的空位。
思路:
1.首先设置一个全局变量用来记录每次坐下的位置和原始数组的长度。
2.当数组中没有人坐的时候,表示数组为空,那么直接在数组中插入0元素,返回0
当数组中有人的时候,判断目前为止的最大距离。
先用第一个元素和最大值减去数组中的最后一个元素进行比较,再两两遍历数组中的数字求两个数字之间的距离的较大值。
如果当前的最大距离等于数据中的第一个元素,表示第一个位置为空,那么插入0,返回0
3.如果不等于第一位上的值,开始遍历,判断两两之间的差是否等于这个距离。
如果等于,在当前位置上插入这个元素,同时返回。
4.如果数组的个数只有一个,且最大的距离不等于第一位上的值,那么表示应该在最后一位上坐下,那么就在最后插入元素并返回
5.如果某位上的人走了,那么从头开始遍历,遍历的值等于目标值之后,用erase()方法删除
注意:
在数组中插入或者删除都需要用到迭代器,insert()需要用vec.begin()+X开始在指定位置进行插入,erase()要在指定位置进行删除
class ExamRoom {
private:
vector<int>vec;
int n;
public:
ExamRoom(int N) {
n = N;
}
int seat() {
if(vec.size() == 0){
vec.push_back(0);
return 0;
}
int d = max(vec[0],n-1-vec[vec.size()-1]);
for(int i = 0; i +1 < vec.size(); ++i){
d = max(d,(vec[i+1]-vec[i])/2);
}
if(vec[0] == d){
vec.insert(vec.begin(),0);
return 0;
}
for(int i = 0; i +1 < vec.size(); ++i){
if((vec[i+1]-vec[i])/2 == d){
vec.insert(vec.begin()+i+1,(vec[i+1] + vec[i])/2);
return vec[i+1];
}
}
vec.push_back(n-1);
return n-1;
}
void leave(int p) {
for(int i = 0; i< vec.size(); ++i){
if(vec[i] == p) vec.erase(vec.begin()+i);
}
}
};
/**
* Your ExamRoom object will be instantiated and called as such:
* ExamRoom obj = new ExamRoom(N);
* int param_1 = obj.seat();
* obj.leave(p);
*/ | [
"[email protected]"
] | |
85d668294bd07ea3af029ff281f83f1206b4049b | b6a78c62271b9be421eb43722d500d717dfa1db8 | /codeforces/A/div.cpp | e981ff61bc357e3daaa5864a747819281d6c48ba | [] | no_license | Zehnun/cp | 474388f44f7e260140335581326ec5788c9b6f21 | 91d5e8517684364ef5e472924affa922da2d708e | refs/heads/main | 2023-01-24T06:39:17.299891 | 2020-12-08T22:09:00 | 2020-12-08T22:09:00 | 267,667,970 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 393 | cpp | #include <bits/stdc++.h>
using namespace std;
int bd(string n){
string num = n;
int dec_value = 0;
int base = 1;
int len = num.length();
for(int i = len -1; i >= 0; i--){
if(num[i] == '1')
dec_value += base;
base = base * 2;
}
return dec_value;
}
int main(){
string s;
cin >> s;
int val = bd(s);
if(val % 64 == 0)
cout << "yes";
else
cout << "no";
return 0;
}
| [
"[email protected]"
] | |
bdb49a2876ca48b698267c3126cf97a581371267 | 96ae90c1b6cb02f22362a38cbac9f469ff5bbc19 | /my_list_test.cpp | 7d08f6a68cda73f7f5c2295dd07d1da40ba45f6e | [] | no_license | zdevt/cpp_code | 67bd106b2cec02376e75937fcd335fed30284a85 | 979cd226e3f45ebfe39cb018df90da8ca7262e60 | refs/heads/master | 2021-06-04T00:14:14.731552 | 2020-12-26T06:58:54 | 2020-12-26T06:58:54 | 131,384,756 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,815 | cpp |
/*
* =========================================================================
*
* FileName: my_list_test.cpp
*
* Description:
*
* Version: 1.0
* Created: 2018-07-05 11:42:15
* Last Modified: 2019-09-03 11:48:00
* Revision: none
* Compiler: gcc
*
* Author: zt ()
* Organization:
*
* =========================================================================
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <stddef.h>
#include <string.h>
#include <signal.h>
#include <errno.h>
#include <unistd.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <iostream>
#include <memory>
#include <algorithm>
#include <vector>
#include <thread>
#include <mutex>
#include <map>
#include <list>
#include <string>
#include <functional>
class Node
{
public:
Node ( int v )
{
a = v;
next = NULL;
}
~Node() {}
Node* next;
int a;
};
Node* Reverse ( Node* head )
{
if ( !head )
return NULL;
if ( !head->next )
return head;
Node* pre = head;
Node* cur = head->next;
Node* next = NULL;
pre->next = NULL;
do
{
next = cur->next;
cur->next = pre;
pre = cur;
cur = next;
}
while ( cur->next );
cur->next = pre;
return cur;
}
int main ( int argc, char* argv[] )
{
( void ) argc;
( void ) argv;
Node* p = NULL;
p = new Node ( 0 );
Node* head = p;
for ( int i = 1; i < 10; ++i )
{
p->next = new Node ( i );
p = p->next;
}
p->next = NULL;
p = head;
do
{
printf ( "%d ", p->a );
p = p->next;
}
while ( p != NULL );
printf ( "\n" );
Node* r = Reverse ( head );
p = r;
do
{
printf ( "%d ", p->a );
p = p->next;
}
while ( p != NULL );
return 0;
}
| [
"[email protected]"
] | |
e3dbf3a1cbcfe05456f2d1d3c70361501111fc37 | f295f1e190bccd3e07a630a79890fac3019c537b | /Engine/Engine/src/graphics/RenderTexture.h | 69fe2627f2f4a55419fd27c0c5e0a4085e69a46e | [] | no_license | Kavarna/Oblivion | f3aaa2fb577548b459115420fad738e82f0337e0 | cca2986ae9e4969b027b4751619ca11b3a241974 | refs/heads/master | 2021-06-14T15:11:28.457996 | 2021-03-15T21:01:31 | 2021-03-15T21:01:31 | 154,550,644 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,206 | h | #pragma once
#include "interfaces/GraphicsObject.h"
#include "Helpers/TextureUtilities.h"
#include "Texture.h"
enum RenderTextureFlags
{
RenderTextureNone = 0b0000,
DepthWriteEnable = 0b00001,
DepthReadEnable = 0b00010,
ColorWriteEnable = 0b00100,
ColorReadEnable = 0b01000,
UnorderedAccess = 0b10000,
RenderTextureCustom = ~0
};
class RenderTexture :
public IGraphicsObject
{
public:
RenderTexture() = default;
RenderTexture(uint32_t width, uint32_t height, RenderTextureFlags flags, uint32_t MSAACount = 1, uint32_t MSAAQuality = 0);
~RenderTexture();
public:
void Reset(uint32_t width, uint32_t height, RenderTextureFlags flags, uint32_t MSAACount = 1, uint32_t MSAAQuality = 0);
void Clear(float r = 0.0f, float g = 0.0f, float b = 0.0f, float a = 0.0f);
void ClearTexture(float r = 0.0f, float g = 0.0f, float b = 0.0f, float a = 0.0f);
void ClearDepth();
void SetRenderTarget();
public:
ID3D11Texture2D * GetTexture() const { return m_texture.Get(); };
ID3D11RenderTargetView * GetTextureRTV() const { return m_renderTargetView.Get(); };
ID3D11ShaderResourceView * GetTextureSRV() const { return m_shaderResourceView.Get(); };
ID3D11UnorderedAccessView * GetTextureUAV() const { return m_unorderedAccessView.Get(); };
std::weak_ptr<Texture> GetOblivionTexture() const { return m_oblTexture; };
std::weak_ptr<Texture> GetOblivionDepth() const { return m_oblDepth; };
private:
void Reset();
private:
MicrosoftPointer<ID3D11Texture2D> m_texture = nullptr;
MicrosoftPointer<ID3D11RenderTargetView> m_renderTargetView = nullptr;
MicrosoftPointer<ID3D11ShaderResourceView> m_shaderResourceView = nullptr;
MicrosoftPointer<ID3D11UnorderedAccessView> m_unorderedAccessView = nullptr;
MicrosoftPointer<ID3D11Texture2D> m_textureDepth = nullptr;
MicrosoftPointer<ID3D11DepthStencilView> m_depthView = nullptr;
MicrosoftPointer<ID3D11ShaderResourceView> m_depthShaderResource = nullptr;
std::shared_ptr<Texture> m_oblTexture = nullptr; // Oblivion Texture
std::shared_ptr<Texture> m_oblDepth = nullptr;
RenderTextureFlags m_textureFlags = RenderTextureFlags::RenderTextureNone;
D3D11_VIEWPORT m_viewPort;
};
| [
"[email protected]"
] | |
3118b1de19a626f0f5ee13454454c1d3f529cb9b | 90047daeb462598a924d76ddf4288e832e86417c | /net/cert/cert_verify_proc_mac.cc | 4184294b3436a9ab80600d0466397296a1a3aab3 | [
"BSD-3-Clause"
] | permissive | massbrowser/android | 99b8c21fa4552a13c06bbedd0f9c88dd4a4ad080 | a9c4371682c9443d6e1d66005d4db61a24a9617c | refs/heads/master | 2022-11-04T21:15:50.656802 | 2017-06-08T12:31:39 | 2017-06-08T12:31:39 | 93,747,579 | 2 | 2 | BSD-3-Clause | 2022-10-31T10:34:25 | 2017-06-08T12:36:07 | null | UTF-8 | C++ | false | false | 43,892 | cc | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "net/cert/cert_verify_proc_mac.h"
#include <CommonCrypto/CommonDigest.h>
#include <CoreServices/CoreServices.h>
#include <Security/Security.h>
#include <string>
#include <vector>
#include "base/logging.h"
#include "base/mac/mac_logging.h"
#include "base/mac/mac_util.h"
#include "base/mac/scoped_cftyperef.h"
#include "base/sha1.h"
#include "base/strings/string_piece.h"
#include "base/synchronization/lock.h"
#include "crypto/mac_security_services_lock.h"
#include "crypto/sha2.h"
#include "net/base/hash_value.h"
#include "net/base/net_errors.h"
#include "net/cert/asn1_util.h"
#include "net/cert/cert_status_flags.h"
#include "net/cert/cert_verifier.h"
#include "net/cert/cert_verify_result.h"
#include "net/cert/crl_set.h"
#include "net/cert/ev_root_ca_metadata.h"
#include "net/cert/internal/certificate_policies.h"
#include "net/cert/internal/parsed_certificate.h"
#include "net/cert/known_roots_mac.h"
#include "net/cert/test_keychain_search_list_mac.h"
#include "net/cert/test_root_certs.h"
#include "net/cert/x509_certificate.h"
#include "net/cert/x509_util.h"
#include "net/cert/x509_util_mac.h"
// CSSM functions are deprecated as of OSX 10.7, but have no replacement.
// https://bugs.chromium.org/p/chromium/issues/detail?id=590914#c1
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
using base::ScopedCFTypeRef;
namespace net {
namespace {
typedef OSStatus (*SecTrustCopyExtendedResultFuncPtr)(SecTrustRef,
CFDictionaryRef*);
int NetErrorFromOSStatus(OSStatus status) {
switch (status) {
case noErr:
return OK;
case errSecNotAvailable:
case errSecNoCertificateModule:
case errSecNoPolicyModule:
return ERR_NOT_IMPLEMENTED;
case errSecAuthFailed:
return ERR_ACCESS_DENIED;
default: {
OSSTATUS_LOG(ERROR, status) << "Unknown error mapped to ERR_FAILED";
return ERR_FAILED;
}
}
}
CertStatus CertStatusFromOSStatus(OSStatus status) {
switch (status) {
case noErr:
return 0;
case CSSMERR_TP_INVALID_ANCHOR_CERT:
case CSSMERR_TP_NOT_TRUSTED:
case CSSMERR_TP_INVALID_CERT_AUTHORITY:
return CERT_STATUS_AUTHORITY_INVALID;
case CSSMERR_TP_CERT_EXPIRED:
case CSSMERR_TP_CERT_NOT_VALID_YET:
// "Expired" and "not yet valid" collapse into a single status.
return CERT_STATUS_DATE_INVALID;
case CSSMERR_TP_CERT_REVOKED:
case CSSMERR_TP_CERT_SUSPENDED:
return CERT_STATUS_REVOKED;
case CSSMERR_APPLETP_HOSTNAME_MISMATCH:
return CERT_STATUS_COMMON_NAME_INVALID;
case CSSMERR_APPLETP_CRL_NOT_FOUND:
case CSSMERR_APPLETP_OCSP_UNAVAILABLE:
case CSSMERR_APPLETP_INCOMPLETE_REVOCATION_CHECK:
return CERT_STATUS_NO_REVOCATION_MECHANISM;
case CSSMERR_APPLETP_CRL_EXPIRED:
case CSSMERR_APPLETP_CRL_NOT_VALID_YET:
case CSSMERR_APPLETP_CRL_SERVER_DOWN:
case CSSMERR_APPLETP_CRL_NOT_TRUSTED:
case CSSMERR_APPLETP_CRL_INVALID_ANCHOR_CERT:
case CSSMERR_APPLETP_CRL_POLICY_FAIL:
case CSSMERR_APPLETP_OCSP_BAD_RESPONSE:
case CSSMERR_APPLETP_OCSP_BAD_REQUEST:
case CSSMERR_APPLETP_OCSP_STATUS_UNRECOGNIZED:
case CSSMERR_APPLETP_NETWORK_FAILURE:
case CSSMERR_APPLETP_OCSP_NOT_TRUSTED:
case CSSMERR_APPLETP_OCSP_INVALID_ANCHOR_CERT:
case CSSMERR_APPLETP_OCSP_SIG_ERROR:
case CSSMERR_APPLETP_OCSP_NO_SIGNER:
case CSSMERR_APPLETP_OCSP_RESP_MALFORMED_REQ:
case CSSMERR_APPLETP_OCSP_RESP_INTERNAL_ERR:
case CSSMERR_APPLETP_OCSP_RESP_TRY_LATER:
case CSSMERR_APPLETP_OCSP_RESP_SIG_REQUIRED:
case CSSMERR_APPLETP_OCSP_RESP_UNAUTHORIZED:
case CSSMERR_APPLETP_OCSP_NONCE_MISMATCH:
// We asked for a revocation check, but didn't get it.
return CERT_STATUS_UNABLE_TO_CHECK_REVOCATION;
case CSSMERR_APPLETP_SSL_BAD_EXT_KEY_USE:
// TODO(wtc): Should we add CERT_STATUS_WRONG_USAGE?
return CERT_STATUS_INVALID;
case CSSMERR_APPLETP_CRL_BAD_URI:
case CSSMERR_APPLETP_IDP_FAIL:
return CERT_STATUS_INVALID;
case CSSMERR_CSP_UNSUPPORTED_KEY_SIZE:
// Mapping UNSUPPORTED_KEY_SIZE to CERT_STATUS_WEAK_KEY is not strictly
// accurate, as the error may have been returned due to a key size
// that exceeded the maximum supported. However, within
// CertVerifyProcMac::VerifyInternal(), this code should only be
// encountered as a certificate status code, and only when the key size
// is smaller than the minimum required (1024 bits).
return CERT_STATUS_WEAK_KEY;
default: {
// Failure was due to something Chromium doesn't define a
// specific status for (such as basic constraints violation, or
// unknown critical extension)
OSSTATUS_LOG(WARNING, status)
<< "Unknown error mapped to CERT_STATUS_INVALID";
return CERT_STATUS_INVALID;
}
}
}
// Creates a series of SecPolicyRefs to be added to a SecTrustRef used to
// validate a certificate for an SSL server. |flags| is a bitwise-OR of
// VerifyFlags that can further alter how trust is validated, such as how
// revocation is checked. If successful, returns noErr, and stores the
// resultant array of SecPolicyRefs in |policies|.
OSStatus CreateTrustPolicies(int flags, ScopedCFTypeRef<CFArrayRef>* policies) {
ScopedCFTypeRef<CFMutableArrayRef> local_policies(
CFArrayCreateMutable(kCFAllocatorDefault, 0, &kCFTypeArrayCallBacks));
if (!local_policies)
return memFullErr;
SecPolicyRef ssl_policy;
OSStatus status =
x509_util::CreateSSLServerPolicy(std::string(), &ssl_policy);
if (status)
return status;
CFArrayAppendValue(local_policies, ssl_policy);
CFRelease(ssl_policy);
// Explicitly add revocation policies, in order to override system
// revocation checking policies and instead respect the application-level
// revocation preference.
status = x509_util::CreateRevocationPolicies(
(flags & CertVerifier::VERIFY_REV_CHECKING_ENABLED), local_policies);
if (status)
return status;
policies->reset(local_policies.release());
return noErr;
}
// Stores the constructed certificate chain |cert_chain| into
// |*verify_result|. |cert_chain| must not be empty.
void CopyCertChainToVerifyResult(CFArrayRef cert_chain,
CertVerifyResult* verify_result) {
DCHECK_LT(0, CFArrayGetCount(cert_chain));
SecCertificateRef verified_cert = NULL;
std::vector<SecCertificateRef> verified_chain;
for (CFIndex i = 0, count = CFArrayGetCount(cert_chain); i < count; ++i) {
SecCertificateRef chain_cert = reinterpret_cast<SecCertificateRef>(
const_cast<void*>(CFArrayGetValueAtIndex(cert_chain, i)));
if (i == 0) {
verified_cert = chain_cert;
} else {
verified_chain.push_back(chain_cert);
}
}
if (!verified_cert) {
NOTREACHED();
verify_result->cert_status |= CERT_STATUS_INVALID;
return;
}
scoped_refptr<X509Certificate> verified_cert_with_chain =
x509_util::CreateX509CertificateFromSecCertificate(verified_cert,
verified_chain);
if (verified_cert_with_chain)
verify_result->verified_cert = std::move(verified_cert_with_chain);
else
verify_result->cert_status |= CERT_STATUS_INVALID;
}
// Returns true if the certificate uses MD2, MD4, MD5, or SHA1, and false
// otherwise. A return of false also includes the case where the signature
// algorithm couldn't be conclusively labeled as weak.
bool CertUsesWeakHash(SecCertificateRef cert_handle) {
x509_util::CSSMCachedCertificate cached_cert;
OSStatus status = cached_cert.Init(cert_handle);
if (status)
return false;
x509_util::CSSMFieldValue signature_field;
status =
cached_cert.GetField(&CSSMOID_X509V1SignatureAlgorithm, &signature_field);
if (status || !signature_field.field())
return false;
const CSSM_X509_ALGORITHM_IDENTIFIER* sig_algorithm =
signature_field.GetAs<CSSM_X509_ALGORITHM_IDENTIFIER>();
if (!sig_algorithm)
return false;
const CSSM_OID* alg_oid = &sig_algorithm->algorithm;
return (CSSMOIDEqual(alg_oid, &CSSMOID_MD2WithRSA) ||
CSSMOIDEqual(alg_oid, &CSSMOID_MD4WithRSA) ||
CSSMOIDEqual(alg_oid, &CSSMOID_MD5WithRSA) ||
CSSMOIDEqual(alg_oid, &CSSMOID_SHA1WithRSA) ||
CSSMOIDEqual(alg_oid, &CSSMOID_SHA1WithRSA_OIW) ||
CSSMOIDEqual(alg_oid, &CSSMOID_SHA1WithDSA) ||
CSSMOIDEqual(alg_oid, &CSSMOID_SHA1WithDSA_CMS) ||
CSSMOIDEqual(alg_oid, &CSSMOID_SHA1WithDSA_JDK) ||
CSSMOIDEqual(alg_oid, &CSSMOID_ECDSA_WithSHA1));
}
// Returns true if the intermediates (excluding trusted certificates) use a
// weak hashing algorithm, but the target does not use a weak hash.
bool IsWeakChainBasedOnHashingAlgorithms(
CFArrayRef cert_chain,
CSSM_TP_APPLE_EVIDENCE_INFO* chain_info) {
DCHECK_LT(0, CFArrayGetCount(cert_chain));
bool intermediates_contain_weak_hash = false;
bool leaf_uses_weak_hash = false;
for (CFIndex i = 0, count = CFArrayGetCount(cert_chain); i < count; ++i) {
SecCertificateRef chain_cert = reinterpret_cast<SecCertificateRef>(
const_cast<void*>(CFArrayGetValueAtIndex(cert_chain, i)));
if ((chain_info[i].StatusBits & CSSM_CERT_STATUS_IS_IN_ANCHORS) ||
(chain_info[i].StatusBits & CSSM_CERT_STATUS_IS_ROOT)) {
// The current certificate is either in the user's trusted store or is
// a root (self-signed) certificate. Ignore the signature algorithm for
// these certificates, as it is meaningless for security. We allow
// self-signed certificates (i == 0 & IS_ROOT), since we accept that
// any security assertions by such a cert are inherently meaningless.
continue;
}
if (CertUsesWeakHash(chain_cert)) {
if (i == 0) {
leaf_uses_weak_hash = true;
} else {
intermediates_contain_weak_hash = true;
}
}
}
return !leaf_uses_weak_hash && intermediates_contain_weak_hash;
}
// Checks if |*cert| has a Certificate Policies extension containing either
// of |ev_policy_oid| or anyPolicy.
bool HasPolicyOrAnyPolicy(const ParsedCertificate* cert,
const der::Input& ev_policy_oid) {
if (!cert->has_policy_oids())
return false;
for (const der::Input& policy_oid : cert->policy_oids()) {
if (policy_oid == ev_policy_oid || policy_oid == AnyPolicy())
return true;
}
return false;
}
// Looks for known EV policy OIDs in |cert_input|, if one is found it will be
// stored in |*ev_policy_oid| as a DER-encoded OID value (no tag or length).
void GetCandidateEVPolicy(const X509Certificate* cert_input,
std::string* ev_policy_oid) {
ev_policy_oid->clear();
std::string der_cert;
if (!X509Certificate::GetDEREncoded(cert_input->os_cert_handle(),
&der_cert)) {
return;
}
scoped_refptr<ParsedCertificate> cert(ParsedCertificate::Create(
x509_util::CreateCryptoBuffer(der_cert), {}, nullptr));
if (!cert)
return;
if (!cert->has_policy_oids())
return;
EVRootCAMetadata* metadata = EVRootCAMetadata::GetInstance();
for (const der::Input& policy_oid : cert->policy_oids()) {
if (metadata->IsEVPolicyOID(policy_oid)) {
*ev_policy_oid = policy_oid.AsString();
// De-prioritize the CA/Browser forum Extended Validation policy
// (2.23.140.1.1). See crbug.com/705285.
if (!EVRootCAMetadata::IsCaBrowserForumEvOid(policy_oid))
break;
}
}
}
// Checks that the certificate chain of |cert| has policies consistent with
// |ev_policy_oid_string|. The leaf is not checked, as it is assumed that is
// where the policy came from.
bool CheckCertChainEV(const X509Certificate* cert,
const std::string& ev_policy_oid_string) {
der::Input ev_policy_oid(&ev_policy_oid_string);
X509Certificate::OSCertHandles os_cert_chain =
cert->GetIntermediateCertificates();
// Root should have matching policy in EVRootCAMetadata.
std::string der_cert;
if (!X509Certificate::GetDEREncoded(os_cert_chain.back(), &der_cert))
return false;
SHA1HashValue weak_fingerprint;
base::SHA1HashBytes(reinterpret_cast<const unsigned char*>(der_cert.data()),
der_cert.size(), weak_fingerprint.data);
EVRootCAMetadata* metadata = EVRootCAMetadata::GetInstance();
if (!metadata->HasEVPolicyOID(weak_fingerprint, ev_policy_oid))
return false;
// Intermediates should have Certificate Policies extension with the EV policy
// or AnyPolicy.
for (size_t i = 0; i < os_cert_chain.size() - 1; ++i) {
std::string der_cert;
if (!X509Certificate::GetDEREncoded(os_cert_chain[i], &der_cert))
return false;
scoped_refptr<ParsedCertificate> intermediate_cert(
ParsedCertificate::Create(x509_util::CreateCryptoBuffer(der_cert), {},
nullptr));
if (!intermediate_cert)
return false;
if (!HasPolicyOrAnyPolicy(intermediate_cert.get(), ev_policy_oid))
return false;
}
return true;
}
void AppendPublicKeyHashes(CFArrayRef chain,
HashValueVector* hashes) {
const CFIndex n = CFArrayGetCount(chain);
for (CFIndex i = 0; i < n; i++) {
SecCertificateRef cert = reinterpret_cast<SecCertificateRef>(
const_cast<void*>(CFArrayGetValueAtIndex(chain, i)));
CSSM_DATA cert_data;
OSStatus err = SecCertificateGetData(cert, &cert_data);
DCHECK_EQ(err, noErr);
base::StringPiece der_bytes(reinterpret_cast<const char*>(cert_data.Data),
cert_data.Length);
base::StringPiece spki_bytes;
if (!asn1::ExtractSPKIFromDERCert(der_bytes, &spki_bytes))
continue;
HashValue sha1(HASH_VALUE_SHA1);
CC_SHA1(spki_bytes.data(), spki_bytes.size(), sha1.data());
hashes->push_back(sha1);
HashValue sha256(HASH_VALUE_SHA256);
CC_SHA256(spki_bytes.data(), spki_bytes.size(), sha256.data());
hashes->push_back(sha256);
}
}
enum CRLSetResult {
kCRLSetOk,
kCRLSetRevoked,
kCRLSetUnknown,
};
// CheckRevocationWithCRLSet attempts to check each element of |cert_list|
// against |crl_set|. It returns:
// kCRLSetRevoked: if any element of the chain is known to have been revoked.
// kCRLSetUnknown: if there is no fresh information about the leaf
// certificate in the chain or if the CRLSet has expired.
//
// Only the leaf certificate is considered for coverage because some
// intermediates have CRLs with no revocations (after filtering) and
// those CRLs are pruned from the CRLSet at generation time. This means
// that some EV sites would otherwise take the hit of an OCSP lookup for
// no reason.
// kCRLSetOk: otherwise.
CRLSetResult CheckRevocationWithCRLSet(CFArrayRef chain, CRLSet* crl_set) {
if (CFArrayGetCount(chain) == 0)
return kCRLSetOk;
// error is set to true if any errors are found. It causes such chains to be
// considered as not covered.
bool error = false;
// last_covered is set to the coverage state of the previous certificate. The
// certificates are iterated over backwards thus, after the iteration,
// |last_covered| contains the coverage state of the leaf certificate.
bool last_covered = false;
// We iterate from the root certificate down to the leaf, keeping track of
// the issuer's SPKI at each step.
std::string issuer_spki_hash;
for (CFIndex i = CFArrayGetCount(chain) - 1; i >= 0; i--) {
SecCertificateRef cert = reinterpret_cast<SecCertificateRef>(
const_cast<void*>(CFArrayGetValueAtIndex(chain, i)));
CSSM_DATA cert_data;
OSStatus err = SecCertificateGetData(cert, &cert_data);
if (err != noErr) {
NOTREACHED();
error = true;
continue;
}
base::StringPiece der_bytes(reinterpret_cast<const char*>(cert_data.Data),
cert_data.Length);
base::StringPiece spki;
if (!asn1::ExtractSPKIFromDERCert(der_bytes, &spki)) {
NOTREACHED();
error = true;
continue;
}
const std::string spki_hash = crypto::SHA256HashString(spki);
x509_util::CSSMCachedCertificate cached_cert;
if (cached_cert.Init(cert) != CSSM_OK) {
NOTREACHED();
error = true;
continue;
}
x509_util::CSSMFieldValue serial_number;
err = cached_cert.GetField(&CSSMOID_X509V1SerialNumber, &serial_number);
if (err || !serial_number.field()) {
NOTREACHED();
error = true;
continue;
}
base::StringPiece serial(
reinterpret_cast<const char*>(serial_number.field()->Data),
serial_number.field()->Length);
CRLSet::Result result = crl_set->CheckSPKI(spki_hash);
if (result != CRLSet::REVOKED && !issuer_spki_hash.empty())
result = crl_set->CheckSerial(serial, issuer_spki_hash);
issuer_spki_hash = spki_hash;
switch (result) {
case CRLSet::REVOKED:
return kCRLSetRevoked;
case CRLSet::UNKNOWN:
last_covered = false;
continue;
case CRLSet::GOOD:
last_covered = true;
continue;
default:
NOTREACHED();
error = true;
continue;
}
}
if (error || !last_covered || crl_set->IsExpired())
return kCRLSetUnknown;
return kCRLSetOk;
}
// Builds and evaluates a SecTrustRef for the certificate chain contained
// in |cert_array|, using the verification policies in |trust_policies|. On
// success, returns OK, and updates |trust_ref|, |trust_result|,
// |verified_chain|, and |chain_info| with the verification results. On
// failure, no output parameters are modified.
//
// Note: An OK return does not mean that |cert_array| is trusted, merely that
// verification was performed successfully.
//
// This function should only be called while the Mac Security Services lock is
// held.
int BuildAndEvaluateSecTrustRef(CFArrayRef cert_array,
CFArrayRef trust_policies,
int flags,
CFArrayRef keychain_search_list,
ScopedCFTypeRef<SecTrustRef>* trust_ref,
SecTrustResultType* trust_result,
ScopedCFTypeRef<CFArrayRef>* verified_chain,
CSSM_TP_APPLE_EVIDENCE_INFO** chain_info) {
SecTrustRef tmp_trust = NULL;
OSStatus status = SecTrustCreateWithCertificates(cert_array, trust_policies,
&tmp_trust);
if (status)
return NetErrorFromOSStatus(status);
ScopedCFTypeRef<SecTrustRef> scoped_tmp_trust(tmp_trust);
if (TestRootCerts::HasInstance()) {
status = TestRootCerts::GetInstance()->FixupSecTrustRef(tmp_trust);
if (status)
return NetErrorFromOSStatus(status);
}
if (keychain_search_list) {
status = SecTrustSetKeychains(tmp_trust, keychain_search_list);
if (status)
return NetErrorFromOSStatus(status);
}
CSSM_APPLE_TP_ACTION_DATA tp_action_data;
memset(&tp_action_data, 0, sizeof(tp_action_data));
tp_action_data.Version = CSSM_APPLE_TP_ACTION_VERSION;
// Allow CSSM to download any missing intermediate certificates if an
// authorityInfoAccess extension or issuerAltName extension is present.
tp_action_data.ActionFlags = CSSM_TP_ACTION_FETCH_CERT_FROM_NET |
CSSM_TP_ACTION_TRUST_SETTINGS;
// Note: For EV certificates, the Apple TP will handle setting these flags
// as part of EV evaluation.
if (flags & CertVerifier::VERIFY_REV_CHECKING_ENABLED) {
// Require a positive result from an OCSP responder or a CRL (or both)
// for every certificate in the chain. The Apple TP automatically
// excludes the self-signed root from this requirement. If a certificate
// is missing both a crlDistributionPoints extension and an
// authorityInfoAccess extension with an OCSP responder URL, then we
// will get a kSecTrustResultRecoverableTrustFailure back from
// SecTrustEvaluate(), with a
// CSSMERR_APPLETP_INCOMPLETE_REVOCATION_CHECK error code. In that case,
// we'll set our own result to include
// CERT_STATUS_NO_REVOCATION_MECHANISM. If one or both extensions are
// present, and a check fails (server unavailable, OCSP retry later,
// signature mismatch), then we'll set our own result to include
// CERT_STATUS_UNABLE_TO_CHECK_REVOCATION.
tp_action_data.ActionFlags |= CSSM_TP_ACTION_REQUIRE_REV_PER_CERT;
// Note, even if revocation checking is disabled, SecTrustEvaluate() will
// modify the OCSP options so as to attempt OCSP checking if it believes a
// certificate may chain to an EV root. However, because network fetches
// are disabled in CreateTrustPolicies() when revocation checking is
// disabled, these will only go against the local cache.
}
CFDataRef action_data_ref =
CFDataCreateWithBytesNoCopy(kCFAllocatorDefault,
reinterpret_cast<UInt8*>(&tp_action_data),
sizeof(tp_action_data), kCFAllocatorNull);
if (!action_data_ref)
return ERR_OUT_OF_MEMORY;
ScopedCFTypeRef<CFDataRef> scoped_action_data_ref(action_data_ref);
status = SecTrustSetParameters(tmp_trust, CSSM_TP_ACTION_DEFAULT,
action_data_ref);
if (status)
return NetErrorFromOSStatus(status);
// Verify the certificate. A non-zero result from SecTrustGetResult()
// indicates that some fatal error occurred and the chain couldn't be
// processed, not that the chain contains no errors. We need to examine the
// output of SecTrustGetResult() to determine that.
SecTrustResultType tmp_trust_result;
status = SecTrustEvaluate(tmp_trust, &tmp_trust_result);
if (status)
return NetErrorFromOSStatus(status);
CFArrayRef tmp_verified_chain = NULL;
CSSM_TP_APPLE_EVIDENCE_INFO* tmp_chain_info;
status = SecTrustGetResult(tmp_trust, &tmp_trust_result, &tmp_verified_chain,
&tmp_chain_info);
if (status)
return NetErrorFromOSStatus(status);
trust_ref->swap(scoped_tmp_trust);
*trust_result = tmp_trust_result;
verified_chain->reset(tmp_verified_chain);
*chain_info = tmp_chain_info;
return OK;
}
// IsIssuedByKnownRoot returns true if the given chain is rooted at a root CA
// that we recognise as a standard root.
bool IsIssuedByKnownRoot(CFArrayRef chain) {
CFIndex n = CFArrayGetCount(chain);
if (n < 1)
return false;
SecCertificateRef root_ref = reinterpret_cast<SecCertificateRef>(
const_cast<void*>(CFArrayGetValueAtIndex(chain, n - 1)));
return IsKnownRoot(root_ref);
}
// Runs path building & verification loop for |cert|, given |flags|. This is
// split into a separate function so verification can be repeated with different
// flags. This function does not handle EV.
int VerifyWithGivenFlags(X509Certificate* cert,
const std::string& hostname,
const int flags,
CRLSet* crl_set,
CertVerifyResult* verify_result,
CRLSetResult* completed_chain_crl_result) {
ScopedCFTypeRef<CFArrayRef> trust_policies;
OSStatus status = CreateTrustPolicies(flags, &trust_policies);
if (status)
return NetErrorFromOSStatus(status);
*completed_chain_crl_result = kCRLSetUnknown;
// Serialize all calls that may use the Keychain, to work around various
// issues in OS X 10.6+ with multi-threaded access to Security.framework.
base::AutoLock lock(crypto::GetMacSecurityServicesLock());
ScopedCFTypeRef<SecTrustRef> trust_ref;
SecTrustResultType trust_result = kSecTrustResultDeny;
ScopedCFTypeRef<CFArrayRef> completed_chain;
CSSM_TP_APPLE_EVIDENCE_INFO* chain_info = NULL;
bool candidate_untrusted = true;
bool candidate_weak = false;
// OS X lacks proper path discovery; it will take the input certs and never
// backtrack the graph attempting to discover valid paths.
// This can create issues in some situations:
// - When OS X changes the trust store, there may be a chain
// A -> B -> C -> D
// where OS X trusts D (on some versions) and trusts C (on some versions).
// If a server supplies a chain A, B, C (cross-signed by D), then this chain
// will successfully validate on systems that trust D, but fail for systems
// that trust C. If the server supplies a chain of A -> B, then it forces
// all clients to fetch C (via AIA) if they trust D, and not all clients
// (notably, Firefox and Android) will do this, thus breaking them.
// An example of this is the Verizon Business Services root - GTE CyberTrust
// and Baltimore CyberTrust roots represent old and new roots that cause
// issues depending on which version of OS X being used.
//
// - A server may be (misconfigured) to send an expired intermediate
// certificate. On platforms with path discovery, the graph traversal
// will back up to immediately before this intermediate, and then
// attempt an AIA fetch or retrieval from local store. However, OS X
// does not do this, and thus prevents access. While this is ostensibly
// a server misconfiguration issue, the fact that it works on other
// platforms is a jarring inconsistency for users.
//
// - When OS X trusts both C and D (simultaneously), it's possible that the
// version of C signed by D is signed using a weak algorithm (e.g. SHA-1),
// while the version of C in the trust store's signature doesn't matter.
// Since a 'strong' chain exists, it would be desirable to prefer this
// chain.
//
// - A variant of the above example, it may be that the version of B sent by
// the server is signed using a weak algorithm, but the version of B
// present in the AIA of A is signed using a strong algorithm. Since a
// 'strong' chain exists, it would be desirable to prefer this chain.
//
// - A user keychain may contain a less desirable intermediate or root.
// OS X gives the user keychains higher priority than the system keychain,
// so it may build a weak chain.
//
// Because of this, the code below first attempts to validate the peer's
// identity using the supplied chain. If it is not trusted (e.g. the OS only
// trusts C, but the version of C signed by D was sent, and D is not trusted),
// or if it contains a weak chain, it will begin lopping off certificates
// from the end of the chain and attempting to verify. If a stronger, trusted
// chain is found, it is used, otherwise, the algorithm continues until only
// the peer's certificate remains.
//
// If the loop does not find a trusted chain, the loop will be repeated with
// the keychain search order altered to give priority to the System Roots
// keychain.
//
// This does cause a performance hit for these users, but only in cases where
// OS X is building weaker chains than desired, or when it would otherwise
// fail the connection.
for (bool try_reordered_keychain : {false, true}) {
ScopedCFTypeRef<CFArrayRef> scoped_alternate_keychain_search_list;
if (TestKeychainSearchList::HasInstance()) {
// Unit tests need to be able to hermetically simulate situations where a
// user has an undesirable certificate in a per-user keychain.
// Adding/Removing a Keychain using SecKeychainCreate/SecKeychainDelete
// has global side effects, which would break other tests and processes
// running on the same machine, so instead tests may load pre-created
// keychains using SecKeychainOpen and then inject them through
// TestKeychainSearchList.
CFArrayRef keychain_search_list;
status = TestKeychainSearchList::GetInstance()->CopySearchList(
&keychain_search_list);
if (status)
return NetErrorFromOSStatus(status);
scoped_alternate_keychain_search_list.reset(keychain_search_list);
}
if (try_reordered_keychain) {
// If a TestKeychainSearchList is present, it will have already set
// |scoped_alternate_keychain_search_list|, which will be used as the
// basis for reordering the keychain. Otherwise, get the current keychain
// search list and use that.
if (!scoped_alternate_keychain_search_list) {
CFArrayRef keychain_search_list;
status = SecKeychainCopySearchList(&keychain_search_list);
if (status)
return NetErrorFromOSStatus(status);
scoped_alternate_keychain_search_list.reset(keychain_search_list);
}
CFMutableArrayRef mutable_keychain_search_list = CFArrayCreateMutableCopy(
kCFAllocatorDefault,
CFArrayGetCount(scoped_alternate_keychain_search_list.get()) + 1,
scoped_alternate_keychain_search_list.get());
if (!mutable_keychain_search_list)
return ERR_OUT_OF_MEMORY;
scoped_alternate_keychain_search_list.reset(mutable_keychain_search_list);
SecKeychainRef keychain;
// Get a reference to the System Roots keychain. The System Roots
// keychain is not normally present in the keychain search list, but is
// implicitly checked after the keychains in the search list. By
// including it directly, force it to be checked first. This is a gross
// hack, but the path is known to be valid on OS X 10.9-10.11.
status = SecKeychainOpen(
"/System/Library/Keychains/SystemRootCertificates.keychain",
&keychain);
if (status)
return NetErrorFromOSStatus(status);
ScopedCFTypeRef<SecKeychainRef> scoped_keychain(keychain);
CFArrayInsertValueAtIndex(mutable_keychain_search_list, 0, keychain);
}
ScopedCFTypeRef<CFMutableArrayRef> cert_array(
x509_util::CreateSecCertificateArrayForX509Certificate(cert));
if (!cert_array)
return ERR_CERT_INVALID;
// Beginning with the certificate chain as supplied by the server, attempt
// to verify the chain. If a failure is encountered, trim a certificate
// from the end (so long as one remains) and retry, in the hope of forcing
// OS X to find a better path.
while (CFArrayGetCount(cert_array) > 0) {
ScopedCFTypeRef<SecTrustRef> temp_ref;
SecTrustResultType temp_trust_result = kSecTrustResultDeny;
ScopedCFTypeRef<CFArrayRef> temp_chain;
CSSM_TP_APPLE_EVIDENCE_INFO* temp_chain_info = NULL;
int rv = BuildAndEvaluateSecTrustRef(
cert_array, trust_policies, flags,
scoped_alternate_keychain_search_list.get(), &temp_ref,
&temp_trust_result, &temp_chain, &temp_chain_info);
if (rv != OK)
return rv;
// Check to see if the path |temp_chain| has been revoked. This is less
// than ideal to perform after path building, rather than during, because
// there may be multiple paths to trust anchors, and only some of them
// are revoked. Ideally, CRLSets would be part of path building, which
// they are when using NSS (Linux) or CryptoAPI (Windows).
//
// The CRLSet checking is performed inside the loop in the hope that if a
// path is revoked, it's an older path, and the only reason it was built
// is because the server forced it (by supplying an older or less
// desirable intermediate) or because the user had installed a
// certificate in their Keychain forcing this path. However, this means
// its still possible for a CRLSet block of an intermediate to prevent
// access, even when there is a 'good' chain. To fully remedy this, a
// solution might be to have CRLSets contain enough knowledge about what
// the 'desired' path might be, but for the time being, the
// implementation is kept as 'simple' as it can be.
CRLSetResult crl_result = kCRLSetUnknown;
if (crl_set)
crl_result = CheckRevocationWithCRLSet(temp_chain, crl_set);
bool untrusted = (temp_trust_result != kSecTrustResultUnspecified &&
temp_trust_result != kSecTrustResultProceed) ||
crl_result == kCRLSetRevoked;
bool weak_chain = false;
if (CFArrayGetCount(temp_chain) == 0) {
// If the chain is empty, it cannot be trusted or have recoverable
// errors.
DCHECK(untrusted);
DCHECK_NE(kSecTrustResultRecoverableTrustFailure, temp_trust_result);
} else {
weak_chain =
IsWeakChainBasedOnHashingAlgorithms(temp_chain, temp_chain_info);
}
// Set the result to the current chain if:
// - This is the first verification attempt. This ensures that if
// everything is awful (e.g. it may just be an untrusted cert), that
// what is reported is exactly what was sent by the server
// - If the current chain is trusted, and the old chain was not trusted,
// then prefer this chain. This ensures that if there is at least a
// valid path to a trust anchor, it's preferred over reporting an error.
// - If the current chain is trusted, and the old chain is trusted, but
// the old chain contained weak algorithms while the current chain only
// contains strong algorithms, then prefer the current chain over the
// old chain.
//
// Note: If the leaf certificate itself is weak, then the only
// consideration is whether or not there is a trusted chain. That's
// because no amount of path discovery will fix a weak leaf.
if (!trust_ref || (!untrusted && (candidate_untrusted ||
(candidate_weak && !weak_chain)))) {
trust_ref = temp_ref;
trust_result = temp_trust_result;
completed_chain = temp_chain;
*completed_chain_crl_result = crl_result;
chain_info = temp_chain_info;
candidate_untrusted = untrusted;
candidate_weak = weak_chain;
}
// Short-circuit when a current, trusted chain is found.
if (!untrusted && !weak_chain)
break;
CFArrayRemoveValueAtIndex(cert_array, CFArrayGetCount(cert_array) - 1);
}
// Short-circuit when a current, trusted chain is found.
if (!candidate_untrusted && !candidate_weak)
break;
}
if (flags & CertVerifier::VERIFY_REV_CHECKING_ENABLED)
verify_result->cert_status |= CERT_STATUS_REV_CHECKING_ENABLED;
if (*completed_chain_crl_result == kCRLSetRevoked)
verify_result->cert_status |= CERT_STATUS_REVOKED;
if (CFArrayGetCount(completed_chain) > 0) {
CopyCertChainToVerifyResult(completed_chain, verify_result);
}
// As of Security Update 2012-002/OS X 10.7.4, when an RSA key < 1024 bits
// is encountered, CSSM returns CSSMERR_TP_VERIFY_ACTION_FAILED and adds
// CSSMERR_CSP_UNSUPPORTED_KEY_SIZE as a certificate status. Avoid mapping
// the CSSMERR_TP_VERIFY_ACTION_FAILED to CERT_STATUS_INVALID if the only
// error was due to an unsupported key size.
bool policy_failed = false;
bool policy_fail_already_mapped = false;
bool weak_key_or_signature_algorithm = false;
// Evaluate the results
OSStatus cssm_result;
switch (trust_result) {
case kSecTrustResultUnspecified:
case kSecTrustResultProceed:
// Certificate chain is valid and trusted ("unspecified" indicates that
// the user has not explicitly set a trust setting)
break;
// According to SecTrust.h, kSecTrustResultConfirm isn't returned on 10.5+,
// and it is marked deprecated in the 10.9 SDK.
case kSecTrustResultDeny:
// Certificate chain is explicitly untrusted.
verify_result->cert_status |= CERT_STATUS_AUTHORITY_INVALID;
break;
case kSecTrustResultRecoverableTrustFailure:
// Certificate chain has a failure that can be overridden by the user.
status = SecTrustGetCssmResultCode(trust_ref, &cssm_result);
if (status)
return NetErrorFromOSStatus(status);
if (cssm_result == CSSMERR_TP_VERIFY_ACTION_FAILED) {
policy_failed = true;
} else {
verify_result->cert_status |= CertStatusFromOSStatus(cssm_result);
}
// Walk the chain of error codes in the CSSM_TP_APPLE_EVIDENCE_INFO
// structure which can catch multiple errors from each certificate.
for (CFIndex index = 0, chain_count = CFArrayGetCount(completed_chain);
index < chain_count; ++index) {
if (chain_info[index].StatusBits & CSSM_CERT_STATUS_EXPIRED ||
chain_info[index].StatusBits & CSSM_CERT_STATUS_NOT_VALID_YET)
verify_result->cert_status |= CERT_STATUS_DATE_INVALID;
if (!IsCertStatusError(verify_result->cert_status) &&
chain_info[index].NumStatusCodes == 0) {
LOG(WARNING) << "chain_info[" << index << "].NumStatusCodes is 0"
", chain_info[" << index << "].StatusBits is "
<< chain_info[index].StatusBits;
}
for (uint32_t status_code_index = 0;
status_code_index < chain_info[index].NumStatusCodes;
++status_code_index) {
// As of OS X 10.9, attempting to verify a certificate chain that
// contains a weak signature algorithm (MD2, MD5) in an intermediate
// or leaf cert will be treated as a (recoverable) policy validation
// failure, with the status code CSSMERR_TP_INVALID_CERTIFICATE
// added to the Status Codes. Don't treat this code as an invalid
// certificate; instead, map it to a weak key. Any truly invalid
// certificates will have the major error (cssm_result) set to
// CSSMERR_TP_INVALID_CERTIFICATE, rather than
// CSSMERR_TP_VERIFY_ACTION_FAILED.
CertStatus mapped_status = 0;
if (policy_failed &&
chain_info[index].StatusCodes[status_code_index] ==
CSSMERR_TP_INVALID_CERTIFICATE) {
mapped_status = CERT_STATUS_WEAK_SIGNATURE_ALGORITHM;
weak_key_or_signature_algorithm = true;
policy_fail_already_mapped = true;
} else if (policy_failed &&
(flags & CertVerifier::VERIFY_REV_CHECKING_ENABLED) &&
chain_info[index].StatusCodes[status_code_index] ==
CSSMERR_TP_VERIFY_ACTION_FAILED &&
base::mac::IsAtLeastOS10_12()) {
// On 10.12, using kSecRevocationRequirePositiveResponse flag
// causes a CSSMERR_TP_VERIFY_ACTION_FAILED status if revocation
// couldn't be checked. (Note: even if the cert had no
// crlDistributionPoints or OCSP AIA.)
mapped_status = CERT_STATUS_UNABLE_TO_CHECK_REVOCATION;
policy_fail_already_mapped = true;
} else {
mapped_status = CertStatusFromOSStatus(
chain_info[index].StatusCodes[status_code_index]);
if (mapped_status == CERT_STATUS_WEAK_KEY) {
weak_key_or_signature_algorithm = true;
policy_fail_already_mapped = true;
}
}
verify_result->cert_status |= mapped_status;
}
}
if (policy_failed && !policy_fail_already_mapped) {
// If CSSMERR_TP_VERIFY_ACTION_FAILED wasn't returned due to a weak
// key or problem checking revocation, map it back to an appropriate
// error code.
verify_result->cert_status |= CertStatusFromOSStatus(cssm_result);
}
if (!IsCertStatusError(verify_result->cert_status)) {
LOG(ERROR) << "cssm_result=" << cssm_result;
verify_result->cert_status |= CERT_STATUS_INVALID;
NOTREACHED();
}
break;
default:
status = SecTrustGetCssmResultCode(trust_ref, &cssm_result);
if (status)
return NetErrorFromOSStatus(status);
verify_result->cert_status |= CertStatusFromOSStatus(cssm_result);
if (!IsCertStatusError(verify_result->cert_status)) {
LOG(WARNING) << "trust_result=" << trust_result;
verify_result->cert_status |= CERT_STATUS_INVALID;
}
break;
}
// Hostname validation is handled by CertVerifyProc, so mask off any errors
// that SecTrustEvaluate may have set, as its results are not used.
verify_result->cert_status &= ~CERT_STATUS_COMMON_NAME_INVALID;
// TODO(wtc): Suppress CERT_STATUS_NO_REVOCATION_MECHANISM for now to be
// compatible with Windows, which in turn implements this behavior to be
// compatible with WinHTTP, which doesn't report this error (bug 3004).
verify_result->cert_status &= ~CERT_STATUS_NO_REVOCATION_MECHANISM;
AppendPublicKeyHashes(completed_chain, &verify_result->public_key_hashes);
verify_result->is_issued_by_known_root = IsIssuedByKnownRoot(completed_chain);
if (IsCertStatusError(verify_result->cert_status))
return MapCertStatusToNetError(verify_result->cert_status);
return OK;
}
} // namespace
CertVerifyProcMac::CertVerifyProcMac() {}
CertVerifyProcMac::~CertVerifyProcMac() {}
bool CertVerifyProcMac::SupportsAdditionalTrustAnchors() const {
return false;
}
bool CertVerifyProcMac::SupportsOCSPStapling() const {
// TODO(rsleevi): Plumb an OCSP response into the Mac system library.
// https://crbug.com/430714
return false;
}
int CertVerifyProcMac::VerifyInternal(
X509Certificate* cert,
const std::string& hostname,
const std::string& ocsp_response,
int flags,
CRLSet* crl_set,
const CertificateList& additional_trust_anchors,
CertVerifyResult* verify_result) {
// Save the input state of |*verify_result|, which may be needed to re-do
// verification with different flags.
const CertVerifyResult input_verify_result(*verify_result);
// If EV verification is enabled, check for EV policy in leaf cert.
std::string candidate_ev_policy_oid;
if (flags & CertVerifier::VERIFY_EV_CERT)
GetCandidateEVPolicy(cert, &candidate_ev_policy_oid);
CRLSetResult completed_chain_crl_result;
int rv = VerifyWithGivenFlags(cert, hostname, flags, crl_set, verify_result,
&completed_chain_crl_result);
if (rv != OK)
return rv;
if (!candidate_ev_policy_oid.empty() &&
CheckCertChainEV(verify_result->verified_cert.get(),
candidate_ev_policy_oid)) {
// EV policies check out and the verification succeeded. See if revocation
// checking still needs to be done before it can be marked as EV.
if (completed_chain_crl_result == kCRLSetUnknown &&
(flags & CertVerifier::VERIFY_REV_CHECKING_ENABLED_EV_ONLY) &&
!(flags & CertVerifier::VERIFY_REV_CHECKING_ENABLED)) {
// If this is an EV cert and it wasn't covered by CRLSets and revocation
// checking wasn't already on, try again with revocation forced on.
//
// Restore the input state of |*verify_result|, so that the
// re-verification starts with a clean slate.
*verify_result = input_verify_result;
int tmp_rv = VerifyWithGivenFlags(
verify_result->verified_cert.get(), hostname,
flags | CertVerifier::VERIFY_REV_CHECKING_ENABLED, crl_set,
verify_result, &completed_chain_crl_result);
// If re-verification failed, return those results without setting EV
// status.
if (tmp_rv != OK)
return tmp_rv;
// Otherwise, fall through and add the EV status flag.
}
// EV cert and it was covered by CRLSets or revocation checking passed.
verify_result->cert_status |= CERT_STATUS_IS_EV;
}
return OK;
}
} // namespace net
#pragma clang diagnostic pop // "-Wdeprecated-declarations"
| [
"[email protected]"
] | |
78de077680f000082d8f836faa5d4dfc4ec15eec | d3c70c27f6c92e784be8be9962571f5330430871 | /Introduction to Embedded Systems/Lab2/Lab 2 Final Code/Display.cpp | 2a118bee0dd54e414ea9b6efc147f84469bc9fb4 | [] | no_license | KhoaDTran/UW-Embedded-Systems-Coursework-Projects | 30382eae18940041e86b88121a577fe6d9584e75 | ea6510e22ee3fd0b58859a6e1f8cb40e4281c127 | refs/heads/main | 2023-07-20T13:22:19.570910 | 2021-08-31T06:43:16 | 2021-08-31T06:43:16 | 401,482,156 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,104 | cpp | #include "Display.h"
#include "Colors.h"
void buttons(Elegoo_TFTLCD tft) {
/****************
* Function name: buttons
* Function inputs: the TFT screen
* Function outputs: none
* Function description: Sets up the page-change buttons. Only runs at startup
* Author(s): Yasin Alissa
*****************/
tft.fillRect(0, 240, 240, 80, BLACK);
tft.fillRect(0, 240, 240, 5, BLUE);
Elegoo_GFX_Button mButton, aButton, bButton;
mButton.initButton(&tft, 43, 278, 68, 45, WHITE, BLUE, WHITE, "Measure", 1);
mButton.drawButton();
aButton.initButton(&tft, 120, 278, 68, 45, WHITE, BLUE, WHITE, "Alarm", 1);
aButton.drawButton();
bButton.initButton(&tft, 197, 278, 68, 45, WHITE, BLUE, WHITE, "Battery", 1);
bButton.drawButton();
}
void measurePage(Elegoo_TFTLCD tft, bool newScreen, measurementData mData, socData sData, int seconds) {
/****************
* Function name: measurePage
* Function inputs: the TFT screen, an indicator if we just switched to this screen, the measurementData struct,
* the socData struct, and the seconds elapsed since we started running the system
* Function outputs: none
* Function description: Updates the display for the measurement screen at each measurement's respective rate. Also
* sets the screen up if we just switched to it
* Author(s): Yasin Alissa
*****************/
// Only do this if we just switched to the measurement screen
if (newScreen) {
// Clear old screen
tft.fillRect(0, 0, 240, 240, WHITE);
// Draw the title
tft.setCursor(10, 10);
tft.setTextColor(BLACK);
tft.setTextSize(2);
tft.print("Measurement");
tft.fillRect(10, 28, 220, 5, BLUE);
// Draw the bullet points
for (int x = 0; x < 5; x++) {
tft.fillCircle(10, 60 + (30 * x), 2, BLUE);
}
// Draw labels for each measurement we have
tft.setTextSize(1);
tft.setCursor(20, 58);
tft.print("State of Charge:");
tft.setCursor(20, 88);
tft.print("Temperature:");
tft.setCursor(20, 118);
tft.print("HV Current:");
tft.setCursor(20, 148);
tft.print("HV Voltage:");
tft.setCursor(20, 178);
tft.print("HVIL Status:");
}
tft.setTextColor(BLACK);
// Update the SOC State Change --- 1 Hz or if we just switched to this screen
tft.fillRect(150, 43, 90, 30, WHITE);
tft.setCursor(150, 58);
tft.print(*sData.charge);
// Update the Temperature State Change --- 1 Hz or if we just switched to this screen
tft.fillRect(150, 73, 90, 30, WHITE);
tft.setCursor(150, 88);
tft.print(*mData.temperature);
// Update the Current State Change --- 1/2 Hz or if we just switched to this screen
if (seconds % 2 == 0 || newScreen) {
tft.fillRect(150, 103, 90, 30, WHITE);
tft.setCursor(150, 118);
tft.print(*mData.hvCurrent);
}
// Update the Voltage State Change --- 1/3 Hz or if we just switched to this screen
if (seconds % 3 == 0 || newScreen) {
tft.fillRect(150, 133, 90, 30, WHITE);
tft.setCursor(150, 148);
tft.print(*mData.hvVoltage);
}
// Update the HVIL Status -- only on physical change in the system or if we just switched to this screen
if (*mData.hvilChanged || newScreen) {
tft.fillRect(150, 163, 90, 30, WHITE);
tft.setCursor(150, 178);
if (*mData.hvilStatus == true) {
tft.print("OPEN");
} else {
tft.print("CLOSED");
}
}
}
void alarmPage(Elegoo_TFTLCD tft, bool newScreen, alarmData aData, int seconds) {
/****************
* Function name: alarmPage
* Function inputs: the TFT screen, an indicator if we just switched to this screen, the alarmData struct,
* and the seconds elapsed since we started running the system
* Function outputs: none
* Function description: Updates the display for the alarm screen at each alarm's respective rate. Also sets
* the screen up if we just switched to it
* Author(s): Yasin Alissa
*****************/
// Only do this if we just switched to the alarm screen
if (newScreen) {
// Clear old screen
tft.fillRect(0, 0, 240, 240, WHITE);
// Draw the title
tft.setCursor(10, 10);
tft.setTextColor(BLACK);
tft.setTextSize(2);
tft.print("Alarm");
tft.fillRect(10, 28, 220, 5, BLUE);
// Draw the bullet points
for (int x = 0; x < 3; x++) {
tft.fillCircle(10, 60 + (30 * x), 2, BLUE);
}
// Draw the labels for each alarm we have
tft.setTextSize(1);
tft.setCursor(20, 58);
tft.print("HVIL Alarm:");
tft.setCursor(20, 88);
tft.print("Overcurrent:");
tft.setCursor(20, 118);
tft.print("HVOOR Alarm:");
}
tft.setTextColor(BLACK);
// Update the HVIL Alarm Status --- 1 Hz or if we just switched to this screen
tft.fillRect(95, 43, 145, 30, WHITE);
tft.setCursor(95, 58);
tft.print(*aData.hvilAlarmStatus);
// Update the Overcurrent Alarm Status --- 1/2 Hz or if we just switched to this screen
if (seconds % 2 == 0 || newScreen) {
tft.fillRect(95, 73, 145, 30, WHITE);
tft.setCursor(95, 88);
tft.print(*aData.overcurrentStatus);
}
// Update the HVOOR Alarm Status --- 1/3 Hz or if we just switched to this screen
if (seconds % 3 == 0 || newScreen) {
tft.fillRect(95, 103, 145, 30, WHITE);
tft.setCursor(95, 118);
tft.print(*aData.hvOutOfRangeStatus);
}
}
void batteryPage(Elegoo_TFTLCD tft, bool newScreen, contactorData cData) {
/****************
* Function name: batteryPage
* Function inputs: the TFT screen, an indicator if we just switched to this screen, and the contactorData struct
* Function outputs: none
* Function description: Updates the display for the battery on/off screen if there is a change needed. Also sets
* the screen up if we just switched to it
* Author(s): Yasin Alissa
*****************/
// Only do this if we just switched to the battery screen
if (newScreen) {
// Clear old screen
tft.fillRect(0, 0, 240, 240, WHITE);
// Draw the title on the screen
tft.setCursor(10, 10);
tft.setTextColor(BLACK);
tft.setTextSize(2);
tft.print("Contactor");
tft.fillRect(10, 28, 220, 5, BLUE);
// Draw the bullet point
tft.fillCircle(10, 60, 2, BLUE);
// Draw the label for the status
tft.setTextSize(1);
tft.setCursor(20, 58);
tft.print("Contactor Status:");
// Draw the buttons to turn battery on and off
tft.setCursor(10, 130);
tft.setTextColor(BLACK);
tft.setTextSize(2);
tft.print("Battery ON/OFF");
tft.fillRect(10, 148, 220, 5, BLUE);
Elegoo_GFX_Button onButton, offButton;
onButton.initButton(&tft, 60, 195, 68, 45, BLACK, BLUE, WHITE, "ON", 1);
onButton.drawButton();
offButton.initButton(&tft, 180, 195, 68, 45, BLACK, BLUE, WHITE, "OFF", 1);
offButton.drawButton();
}
tft.setTextColor(BLACK);
// Update the contactor status --- Only change if the flag is for a change
// or this is a new screen
if (*cData.contactorFlag != UNCHANGED_CONT || newScreen) {
tft.fillRect(180, 43, 120, 30, WHITE);
tft.setCursor(180, 58);
if (*cData.contactorStatus == CONTACTOR_OPEN) {
tft.print("OPEN");
} else {
tft.print("CLOSED");
}
}
}
void displayTask(void* dData) {
/****************
* Function name: displayTask
* Function inputs: void* pointer to the displayData struct
* Function outputs: none
* Function description: Updates all the values of each page's statuses at their respective rates
* Author(s): Yasin Alissa
*****************/
displayData* data = (displayData*) dData;
// If we just started the system, draw the buttons on the screen
if (*data->seconds == 0) {
buttons(*data->tft);
}
// This tells us if we just switched to this screen
bool newScreen = (*data->oldPage != *data->currPage);
// Run this method only if we're currently on the measurement page
if (*data->currPage == MEASURE_PAGE) {
measurePage(*data->tft, newScreen, *data->mData, *data->sData, *data->seconds);
// Run this method only if we're currently on the alarms page
} else if (*data->currPage == ALARM_PAGE) {
alarmPage(*data->tft, newScreen, *data->aData, *data->seconds);
// Run this method only if we're currently on the battery on/off page
} else if (*data->currPage == BATTERY_PAGE) {
batteryPage(*data->tft, newScreen, *data->cData);
}
// Set the old page to the current page for the next cycle
*data->oldPage = *data->currPage;
} | [
"[email protected]"
] | |
a769b0e042138c82f077aa8dc51ddad6f2a90240 | 76d0e84b1efd2249497b26287ad3a301658af852 | /CPP/minperm.cpp | 9c6cdf94ba6acc7eaf1e4744ab5a9e46c2e36c2e | [] | no_license | nickzuck/Codechef | e5409e31343350fb884770a96161d18689f96536 | cfcd7e9aeeec29e1434162e077ca05793eec7184 | refs/heads/master | 2021-05-22T04:18:09.764528 | 2021-04-05T03:32:02 | 2021-04-05T03:32:02 | 38,664,793 | 0 | 2 | null | 2021-04-05T03:32:03 | 2015-07-07T04:49:14 | C++ | UTF-8 | C++ | false | false | 706 | cpp | #include<bits/stdc++.h>
using namespace std ;
void pa(int arr[], int n){
for(int i = 0; i <n ; i++){
cout << arr[i] << " " ;
}
cout << endl ;
}
int main()
{
int t, n ;
cin >> t ;
while(t--){
cin >> n ;
int arr[n+1] ;
for(int i = 0 ;i < n ; i++){
arr[i] = i+1;
}
int actualN = n ;
int t[4] ;
if(n%2 !=0){
t[0] = arr[n-3]; t[1] = arr[n-2] ; t[2] = arr[n-1];
arr[n-3] = t[1] ; arr[n-2] = t[2] ; arr[n-1] = t[0];
n -= 3 ;
}
for(int i = 1 ;i < n; i+=2){
swap(arr[i], arr[i-1]);
}
pa(arr, actualN);
}
return 0;
}
| [
"[email protected]"
] | |
4c49bf2e6ab94dbc2697d659b53909b70937f987 | 9f3de216919290f4c23027b7c29bcef73197df66 | /gamestates/cMainMenuGameState.cpp | ad2334cc46fc2da5a0b2145f50f1b6e9b67701fa | [] | no_license | mbielsk/Dune-II---The-Maker | ba0c5743a63a2738ffdc447b068d4ca025f3831f | ae03b6ca84fac8ebbab8a6b20dcfad04b4c5f395 | refs/heads/master | 2023-08-31T18:52:45.004538 | 2021-10-30T14:10:03 | 2021-10-30T14:10:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,328 | cpp | #include "d2tmh.h"
cMainMenuGameState::cMainMenuGameState(cGame &theGame) : cGameState(theGame), textDrawer(cTextDrawer(bene_font)) {
bmp_D2TM_Title = (BITMAP *) gfxinter[BMP_D2TM].dat;
int logoWidth = bmp_D2TM_Title->w;
int logoHeight = bmp_D2TM_Title->h;
int centerOfScreen = game.screen_x / 2;
logoX = centerOfScreen - (logoWidth / 2);
logoY = (logoHeight/10);
mainMenuWidth = 130;
mainMenuHeight = 143;
// adjust x and y according to resolution, we can add because the above values
// assume 640x480 resolution, and logoX/logoY are already taking care of > resolutions
// mainMenuFrameX = 257 + logoX;
mainMenuFrameX = centerOfScreen -(mainMenuWidth/2);
mainMenuFrameY = 319;
logoY = mainMenuFrameY - (logoHeight)*1.2f;
// Buttons:
int buttonsX = mainMenuFrameX + 2;
int colorInactiveHover = makecol(128, 128, 128);
int colorInactive = makecol(192, 192, 192);
// PLAY
int playY = 323;
int buttonHeight = textDrawer.getFontHeight();
int buttonWidth = mainMenuWidth - 8;
const cRectangle &window = cRectangle(mainMenuFrameX, mainMenuFrameY, mainMenuWidth, mainMenuHeight);
gui_window = new cGuiWindow(window);
const eGuiButtonRenderKind buttonKinds = eGuiButtonRenderKind::TRANSPARENT_WITHOUT_BORDER;
const eGuiTextAlignHorizontal buttonTextAlignment = eGuiTextAlignHorizontal::CENTER;
const cRectangle &campaign = cRectangle(buttonsX, playY, buttonWidth, buttonHeight);
cGuiButton *gui_btn_SelectHouse = new cGuiButton(textDrawer, campaign, "Campaign", buttonKinds);
gui_btn_SelectHouse->setTextAlignHorizontal(buttonTextAlignment);
gui_btn_SelectHouse->setOnLeftMouseButtonClickedAction(new cGuiActionSelectHouse());
gui_window->addGuiObject(gui_btn_SelectHouse);
int skirmishY = 344;
const cRectangle &skirmish = cRectangle(buttonsX, skirmishY, buttonWidth, buttonHeight);
cGuiButton *gui_btn_Skirmish = new cGuiButton(textDrawer, skirmish, "Skirmish", buttonKinds);
gui_btn_Skirmish->setTextAlignHorizontal(buttonTextAlignment);
gui_btn_Skirmish->setOnLeftMouseButtonClickedAction(new cGuiActionSetupSkirmishGame());
gui_window->addGuiObject(gui_btn_Skirmish);
int multiplayerY = 364;
const cRectangle &multiplayer = cRectangle(buttonsX, multiplayerY, buttonWidth, buttonHeight);
cGuiButton *gui_btn_Multiplayer = new cGuiButton(textDrawer, multiplayer, "Multiplayer", buttonKinds);
gui_btn_Multiplayer->setTextColor(colorInactive);
gui_btn_Multiplayer->setTextAlignHorizontal(buttonTextAlignment);
gui_btn_Multiplayer->setTextColorHover(colorInactiveHover);
gui_btn_Multiplayer->setOnLeftMouseButtonClickedAction(new cGuiActionFadeOutOnly());
gui_window->addGuiObject(gui_btn_Multiplayer);
// LOAD
int loadY = 384;
const cRectangle &load = cRectangle(buttonsX, loadY, buttonWidth, buttonHeight);
cGuiButton *gui_btn_Load = new cGuiButton(textDrawer, load, "Load", buttonKinds);
gui_btn_Load->setTextColor(colorInactive);
gui_btn_Load->setTextAlignHorizontal(buttonTextAlignment);
gui_btn_Load->setTextColorHover(colorInactiveHover);
gui_btn_Load->setOnLeftMouseButtonClickedAction(new cGuiActionFadeOutOnly());
gui_window->addGuiObject(gui_btn_Load);
// OPTIONS
int optionsY = 404;
const cRectangle &options = cRectangle(buttonsX, optionsY, buttonWidth, buttonHeight);
cGuiButton *gui_btn_Options = new cGuiButton(textDrawer, options, "Options", buttonKinds);
gui_btn_Options->setTextColor(colorInactive);
gui_btn_Options->setTextAlignHorizontal(buttonTextAlignment);
gui_btn_Options->setTextColorHover(colorInactiveHover);
gui_btn_Options->setOnLeftMouseButtonClickedAction(new cGuiActionFadeOutOnly());
gui_window->addGuiObject(gui_btn_Options);
// HALL OF FAME
int hofY = 424;
const cRectangle &hof = cRectangle(buttonsX, hofY, buttonWidth, buttonHeight);
cGuiButton *gui_btn_Hof = new cGuiButton(textDrawer, hof, "Hall of Fame", buttonKinds);
gui_btn_Hof->setTextColor(colorInactive);
gui_btn_Hof->setTextAlignHorizontal(buttonTextAlignment);
gui_btn_Hof->setTextColorHover(colorInactiveHover);
gui_btn_Hof->setOnLeftMouseButtonClickedAction(new cGuiActionFadeOutOnly());
gui_window->addGuiObject(gui_btn_Hof);
// EXIT
int exitY = 444;
const cRectangle &exit = cRectangle(buttonsX, exitY, buttonWidth, buttonHeight);
cGuiButton *gui_btn_Exit = new cGuiButton(textDrawer, exit, "Exit", buttonKinds);
gui_btn_Exit->setTextAlignHorizontal(buttonTextAlignment);
gui_btn_Exit->setOnLeftMouseButtonClickedAction(new cGuiActionExitGame());
gui_window->addGuiObject(gui_btn_Exit);
}
cMainMenuGameState::~cMainMenuGameState() {
delete gui_window;
}
void cMainMenuGameState::thinkFast() {
}
void cMainMenuGameState::draw() const {
if (DEBUGGING) {
for (int x = 0; x < game.screen_x; x += 60) {
for (int y = 0; y < game.screen_y; y += 20) {
rect(bmp_screen, x, y, x + 50, y + 10, makecol(64, 64, 64));
putpixel(bmp_screen, x, y, makecol(255, 255, 255));
alfont_textprintf(bmp_screen, bene_font, x, y, makecol(32, 32, 32), "Debug");
}
}
}
draw_sprite(bmp_screen, bmp_D2TM_Title, logoX, logoY);
GUI_DRAW_FRAME(mainMenuFrameX, mainMenuFrameY, mainMenuWidth,mainMenuHeight);
gui_window->draw();
int creditsX = (game.screen_x / 2) - (alfont_text_length(bene_font, "CREDITS") / 2);
GUI_DRAW_BENE_TEXT_MOUSE_SENSITIVE(creditsX, 1, "CREDITS", makecol(64, 64, 64));
// draw version
textDrawer.drawTextBottomRight(game.version);
// mp3 addon?
if (game.bMp3) {
textDrawer.drawTextBottomLeft("Music: MP3 ADD-ON");
} else {
textDrawer.drawTextBottomLeft("Music: MIDI");
}
if (DEBUGGING) {
char mouseTxt[255];
sprintf(mouseTxt, "%d, %d", mouse_x, mouse_y);
textDrawer.drawText(0, 0, mouseTxt);
}
// MOUSE
game.getMouse()->draw();
if (key[KEY_ESC]) {
game.bPlaying=false;
}
}
void cMainMenuGameState::onNotifyMouseEvent(const s_MouseEvent &event) {
gui_window->onNotifyMouseEvent(event);
}
eGameStateType cMainMenuGameState::getType() {
return GAMESTATE_MAIN_MENU;
}
| [
"[email protected]"
] | |
f6bf3de69fd24cdfd5ac260d41899a533c1ba3c3 | 431b54f82d61e2bff7b886a20e40291303e01128 | /pewpew.cpp | 9dd6b30dce55fa9cdc291e77fdd7a89a57fb1087 | [] | no_license | slyra/pewpew | 4c209f873438f80762fa147b01cca26b5a1ba242 | 6c93161cd7fc2f57a7bea63684aaaa350f50c95d | refs/heads/master | 2021-01-15T20:24:23.451439 | 2011-06-24T11:17:17 | 2011-06-24T11:17:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,255 | cpp | #include "level.h"
//accumulator buffer
level lv;
void display()
{
lv.play();
}
void reshape(int w,int h)
{
lv.reshape(w,h);
}
void kbRelF(unsigned char key, int x, int y)
{
lv.keyboardReleaseFunction(key,x,y);
}
void kbF(unsigned char key, int x, int y)
{
lv.keyboardFunction(key,x,y);
}
void mF(int x, int y)
{
lv.myMouseFunction(x,y);
}
int main(int argc, char** argv)
{
glutInit(&argc,argv);
glutInitWindowPosition(50,50);
glutInitWindowSize(800,600);
glutInitDisplayMode(GLUT_DOUBLE|GLUT_RGBA);
glutCreateWindow("PewPew");
glEnable(GL_LIGHTING);
glEnable(GL_BLEND);
glShadeModel(GL_SMOOTH);
glEnable(GL_LIGHT0);
GLenum err = glewInit();
if (GLEW_OK != err)
{
std::cout << "Error: " << glewGetErrorString(err) << std::endl;
exit(EXIT_FAILURE);
}
GLfloat filter[11] = {0.3,0.28,0.26,0.24,0.22,0.20,0.22,0.24,0.26,0.28,0.3}; //GOOD
//glSeparableFilter2D(GL_SEPARABLE_2D, GL_LUMINANCE, 11, 11, GL_LUMINANCE, GL_FLOAT, filter,filter); //<< segfault !!!
glHint(GL_LINE_SMOOTH_HINT, GL_FASTEST);
glutReshapeFunc(reshape);
glutDisplayFunc(display);
glutIdleFunc(glutPostRedisplay);
glutKeyboardUpFunc(kbRelF);
glutKeyboardFunc(kbF);
glutPassiveMotionFunc(mF);
glutMainLoop();
return 0;
}
| [
"[email protected]"
] | |
502fb74662301369e42994c285a30f407ac35c9a | 8392d14754290581debf010e49a59f71c144a0a3 | /UVa/UVa10055.cpp | b73a58df267259e30022045e7b66f4fcd647fee6 | [] | no_license | Tankgq/Code | 5f481c3350addcbd9e04d0d6d07d7d502095ecc7 | 235ff58b4cfeb78260e9cab81291c4c45a7ca6d2 | refs/heads/master | 2020-05-20T03:39:34.585787 | 2015-08-07T14:17:23 | 2015-08-07T14:17:23 | 40,357,100 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 188 | cpp | #define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
long long a, b;
while(scanf("%lld%lld", &a, &b) == 2)
printf("%lld\n", a > b ? (a - b) : (b - a));
return 0;
} | [
"[email protected]"
] | |
3bd9e0f050198634e259e71fa53a30157446cd50 | 4f66a8b89ba55a701e76da9a6007eb1c8438c8f8 | /test.cpp | 0bce6799c8c59589049a33af9c2a968637d673f0 | [] | no_license | viking05/Test | 147b7b8f19aeee234acac07557d1fc5a5ba9e3c5 | 75be5db6098003e0b31f738304088e06f49591a2 | refs/heads/master | 2016-09-05T18:26:39.610315 | 2013-05-02T05:48:27 | 2013-05-02T05:48:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 63 | cpp | #include <iostream.h>
int main()
{
cout << "Test";
return 0;
} | [
"[email protected]"
] | |
50a2e86a83c37196e1c67ec3b2dfb6aab00c6270 | af99369345c372b4f0001d4a8e688e7ed02ad140 | /serial_code/libgol_serial.hpp | 5936786317f994965e922cd08f49c07443612072 | [] | no_license | hariprasadr1hp/GameofLife3D_HPC | 76343fc9615a709f9df1d6fdfd0577fddc299b43 | 070cb343401d90c2e57b5f00658893f5a7aae66b | refs/heads/master | 2020-03-07T19:56:41.498199 | 2019-11-27T13:11:32 | 2019-11-27T13:11:32 | 127,684,206 | 0 | 0 | null | 2019-03-17T23:00:29 | 2018-04-02T00:54:08 | null | UTF-8 | C++ | false | false | 5,182 | hpp | #ifndef LIBGOL_SERIAL_H
#define LIBGOL_SERIAL_H
#include <fstream>
#include <iostream>
#include <math.h>
#include <stdlib.h>
#include <time.h>
#include <malloc.h>
#define MAX_SIZE 256
using namespace std;
//################################# CLASSES ###################################
class Generate
{
private:
int xdim, ydim, zdim;
public:
void*** malloc3D(int xdim,int ydim,int zdim,int type_size,int* arr_size)
{
void ***table;
//size of stripe in z direction
long zsize = zdim*type_size;
//size of y-z plane plus the pointers to the stripes
long ysize = ydim*sizeof(void*) + ydim*zsize;
//size of whole array
long xsize = xdim*sizeof(void**) + xdim*ysize;
*arr_size = xsize;
table = (void***)malloc(xsize);
long i, j;
long offset;
for (i=0;i<xdim;i++)
{
//location x[i] points to relative to first address of x
offset = xdim*sizeof(void**) + i*ysize;
// tell x[i] to point to offset
//(char*) needed to make pointer have stride of 1
table[i] = (void**) ((char*)table+(offset));
for (j=0;j<ydim;j++)
{
//printf("%i %i\n",i,j);
table[i][j]=(void*)((char*)table[i] +
ydim*sizeof(void*) + j*zsize);
}
}
return table;
}
//#####################################################################
void randGen(int xdim, int ydim, int zdim, int ***board)
/*Generates random 'ones' and 'zeros'*/
{
for(int i=0; i<xdim; i++)
{
for(int j=0; j<ydim; j++)
{
for(int k=0; k<zdim; k++)
{
board[i][j][k] = rand() % 2;
}
}
}
}
//#####################################################################
void stencilMat(int ***stencil)
/*creates the stencil matrix*/
{
for (int i=0; i<3; i++)
{
for (int j=0; j<3; j++)
{
for (int k=0; k<3; k++)
{
stencil[i][j][k] = 1;
}
}
}
stencil[1][1][1] = 0;
}
//#####################################################################
void convOper(int xdim,int ydim,int zdim,int ***convMat,
int ***step_n0,int ***stencil)
/*performs convolution operation*/
{
for (int i=0; i<xdim; i++)
{
for (int j=0; j<ydim; j++)
{
for (int k=0; k<zdim; k++)
{
int temp=0;
int sum=0;
for (int l=-1 ;l<2; l++)
{
for (int m=-1 ;m<2; m++)
{
for (int n=-1 ;n<2; n++)
{
if((i+l) <= -1) {temp=0;}
else if((i+l) >= xdim) {temp=0;}
else if((j+m) <= -1) {temp=0;}
else if((j+m) >= ydim) {temp=0;}
else if((k+n) <= -1) {temp=0;}
else if((k+n) >= zdim) {temp=0;}
else{temp = (step_n0[i+l][j+m][k+n]);}
sum += (stencil[l+1][m+1][n+1]) * temp;
}
}
}
convMat[i][j][k] = sum;
}
}
}
}
//#####################################################################
int rules(int state, int myneighbCount)
/*establishes rules for the board*/
{
int chance;
if(state == 0)
{
if (myneighbCount == 6) {chance = 1;}
else {chance = 0;}
}
if(state == 1)
{
if (myneighbCount > 7) {chance = 1;}
else if (myneighbCount > 5) {chance = 1;}
else {chance = 0;}
}
return chance;
}
//#####################################################################
void newmatx(int xdim,int ydim,int zdim,int ***step_n1,
int ***step_n0,int ***convMat)
/*Generates the next iteration based on assigned rules*/
{
//int count, state;
for(int i=0; i<xdim; i++)
{
for(int j=0; j<ydim; j++)
{
for(int k=0; k<zdim; k++)
{
step_n1[i][j][k]=rules(step_n0[i][j][k],convMat[i][j][k]);
}
}
}
}
//#####################################################################
void simulate(int xdim,int ydim,int zdim,int ***step_n1,
int ***step_n0, int ***stencil,int ***convMat)
/*Simulates the board*/
{
convOper(xdim,ydim,zdim,convMat,step_n0,stencil); //convMat
newmatx(xdim,ydim,zdim,step_n1,step_n0,convMat); //step_n1
}
};
//#############################################################################
#endif //LIBGOL_SERIAL_H
| [
"[email protected]"
] | |
bf0014276342fe36f9f40483d069f72ffee507e3 | 91315e0f65da503d0a6b9423f3a51e397564f3af | /Hydrax/Mesh.cpp | 932f4ebe903095da084b7e17b579c2e8681d81f0 | [] | no_license | kaaveland/coaster | 76ee1f6f3f252798a7762bfd6763bee3267213d2 | 04cae18cfc6e1b02b617691196a46e04db548a81 | refs/heads/master | 2016-09-10T19:10:45.712532 | 2011-05-10T09:55:09 | 2011-05-10T09:55:09 | 1,295,050 | 1 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 13,830 | cpp | /*
--------------------------------------------------------------------------------
This source file is part of Hydrax.
Visit ---
Copyright (C) 2008 Xavier Verguín González <[email protected]>
<[email protected]>
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the Free Software
Foundation; either version 2 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
Place - Suite 330, Boston, MA 02111-1307, USA, or go to
http://www.gnu.org/copyleft/lesser.txt.
--------------------------------------------------------------------------------
*/
#include "Mesh.h"
#include "Hydrax.h"
namespace Hydrax
{
Mesh::Mesh(Hydrax *h)
: mHydrax(h)
, mCreated(false)
, mMesh(0)
, mSubMesh(0)
, mEntity(0)
, mNumFaces(0)
, mNumVertices(0)
, mVertexBuffer(0)
, mIndexBuffer(0)
, mSceneNode(0)
, mMaterialName("_NULL_")
{
}
Mesh::~Mesh()
{
remove();
}
void Mesh::remove()
{
if (!mCreated)
{
return;
}
mSceneNode->detachAllObjects();
mSceneNode->getParentSceneNode()->removeAndDestroyChild(mSceneNode->getName());
mSceneNode = 0;
Ogre::MeshManager::getSingleton().remove("HydraxMesh");
mHydrax->getSceneManager()->destroyEntity(mEntity);
mMesh.setNull();
mSubMesh = 0;
mEntity = 0;
mNumFaces = 0;
mNumVertices = 0;
mVertexBuffer.setNull();
mIndexBuffer.setNull();
mMaterialName = "_NULL_";
mCreated = false;
}
void Mesh::setOptions(const Options& Options)
{
if (mCreated)
{
Ogre::AxisAlignedBox meshBounds;
if (Options.MeshSize.Width == 0 && Options.MeshSize.Height == 0)
{
meshBounds = Ogre::AxisAlignedBox(-1000000, -Options.MeshStrength/2,-1000000,
1000000, Options.MeshStrength/2, 1000000);
}
else
{
meshBounds = Ogre::AxisAlignedBox(0, -Options.MeshStrength/2, 0,
Options.MeshSize.Width, Options.MeshStrength/2, Options.MeshSize.Height);
}
mMesh->_setBounds(meshBounds);
mSceneNode->_updateBounds();
if (mOptions.MeshSize.Width != Options.MeshSize.Width || mOptions.MeshSize.Height != Options.MeshSize.Height)
{
mSceneNode->setPosition(mHydrax->getPosition().x-Options.MeshSize.Width/2,mHydrax->getPosition().y,mHydrax->getPosition().z-Options.MeshSize.Height/2);
}
}
mOptions = Options;
}
void Mesh::setMaterialName(const Ogre::String &MaterialName)
{
mMaterialName = MaterialName;
if (mEntity)
{
mEntity->setMaterialName(mMaterialName);
}
}
void Mesh::create()
{
if (mCreated)
{
return;
}
// Create mesh and submesh
mMesh = Ogre::MeshManager::getSingleton().createManual("HydraxMesh",
HYDRAX_RESOURCE_GROUP);
mSubMesh = mMesh->createSubMesh();
mSubMesh->useSharedVertices = false;
if (mHydrax->getModule())
{
if (!mHydrax->getModule()->_createGeometry(this))
{
_createGeometry();
}
}
// End mesh creation
Ogre::AxisAlignedBox meshBounds;
if (mOptions.MeshSize.Width == 0 && mOptions.MeshSize.Height == 0)
{
meshBounds = Ogre::AxisAlignedBox(-1000000, -mOptions.MeshStrength/2,-1000000,
1000000, mOptions.MeshStrength/2, 1000000);
}
else
{
meshBounds = Ogre::AxisAlignedBox(0, -mOptions.MeshStrength/2, 0,
mOptions.MeshSize.Width, mOptions.MeshStrength/2, mOptions.MeshSize.Height);
}
mMesh->_setBounds(meshBounds);
mMesh->load();
mMesh->touch();
mEntity = mHydrax->getSceneManager()->createEntity("HydraxMeshEnt", "HydraxMesh");
mEntity->setMaterialName(mMaterialName);
mEntity->setCastShadows(false);
mEntity->setRenderQueueGroup(Ogre::RENDER_QUEUE_1);
mEntity->setQueryFlags(1<<3);
mSceneNode = mHydrax->getSceneManager()->getRootSceneNode()->createChildSceneNode();
mSceneNode->showBoundingBox(false);
mSceneNode->attachObject(mEntity);
mSceneNode->setPosition(mHydrax->getPosition().x-mOptions.MeshSize.Width/2,mHydrax->getPosition().y,mHydrax->getPosition().z-mOptions.MeshSize.Height/2);
mCreated = true;
}
void Mesh::_createGeometry()
{
int& Complexity = mOptions.MeshComplexity;
int numVertices = Complexity*Complexity;
int numEle = 6 * (Complexity-1)*(Complexity-1);
// Vertex buffers
mSubMesh->vertexData = new Ogre::VertexData();
mSubMesh->vertexData->vertexStart = 0;
mSubMesh->vertexData->vertexCount = numVertices;
Ogre::VertexDeclaration* vdecl = mSubMesh->vertexData->vertexDeclaration;
Ogre::VertexBufferBinding* vbind = mSubMesh->vertexData->vertexBufferBinding;
size_t offset = 0;
switch (mOptions.MeshVertexType)
{
case VT_POS_NORM_UV:
{
vdecl->addElement(0, 0, Ogre::VET_FLOAT3, Ogre::VES_POSITION);
offset += Ogre::VertexElement::getTypeSize(Ogre::VET_FLOAT3);
vdecl->addElement(0, offset, Ogre::VET_FLOAT3, Ogre::VES_NORMAL);
offset += Ogre::VertexElement::getTypeSize(Ogre::VET_FLOAT3);
vdecl->addElement(0, offset, Ogre::VET_FLOAT2, Ogre::VES_TEXTURE_COORDINATES);
mVertexBuffer = Ogre::HardwareBufferManager::getSingleton().
createVertexBuffer(sizeof(POS_NORM_UV_VERTEX),
numVertices,
Ogre::HardwareBuffer::HBU_DYNAMIC_WRITE_ONLY);
}
break;
case VT_POS_NORM:
{
vdecl->addElement(0, 0, Ogre::VET_FLOAT3, Ogre::VES_POSITION);
offset += Ogre::VertexElement::getTypeSize(Ogre::VET_FLOAT3);
vdecl->addElement(0, offset, Ogre::VET_FLOAT3, Ogre::VES_NORMAL);
mVertexBuffer = Ogre::HardwareBufferManager::getSingleton().
createVertexBuffer(sizeof(POS_NORM_VERTEX),
numVertices,
Ogre::HardwareBuffer::HBU_DYNAMIC_WRITE_ONLY);
}
break;
case VT_POS_UV:
{
vdecl->addElement(0, 0, Ogre::VET_FLOAT3, Ogre::VES_POSITION);
offset += Ogre::VertexElement::getTypeSize(Ogre::VET_FLOAT3);
vdecl->addElement(0, offset, Ogre::VET_FLOAT2, Ogre::VES_TEXTURE_COORDINATES);
mVertexBuffer = Ogre::HardwareBufferManager::getSingleton().
createVertexBuffer(sizeof(POS_UV_VERTEX),
numVertices,
Ogre::HardwareBuffer::HBU_DYNAMIC_WRITE_ONLY);
}
break;
case VT_POS:
{
vdecl->addElement(0, 0, Ogre::VET_FLOAT3, Ogre::VES_POSITION);
mVertexBuffer = Ogre::HardwareBufferManager::getSingleton().
createVertexBuffer(sizeof(POS_VERTEX),
numVertices,
Ogre::HardwareBuffer::HBU_DYNAMIC_WRITE_ONLY);
}
break;
}
vbind->setBinding(0, mVertexBuffer);
unsigned int *indexbuffer = new unsigned int[numEle];
int i = 0;
for(int v=0; v<Complexity-1; v++){
for(int u=0; u<Complexity-1; u++){
// face 1 |/
indexbuffer[i++] = v*Complexity + u;
indexbuffer[i++] = v*Complexity + u + 1;
indexbuffer[i++] = (v+1)*Complexity + u;
// face 2 /|
indexbuffer[i++] = (v+1)*Complexity + u;
indexbuffer[i++] = v*Complexity + u + 1;
indexbuffer[i++] = (v+1)*Complexity + u + 1;
}
}
// Prepare buffer for indices
mIndexBuffer =
Ogre::HardwareBufferManager::getSingleton().createIndexBuffer(
Ogre::HardwareIndexBuffer::IT_32BIT,
numEle,
Ogre::HardwareBuffer::HBU_STATIC, true);
mIndexBuffer->
writeData(0,
mIndexBuffer->getSizeInBytes(),
indexbuffer,
true);
delete []indexbuffer;
// Set index buffer for this submesh
mSubMesh->indexData->indexBuffer = mIndexBuffer;
mSubMesh->indexData->indexStart = 0;
mSubMesh->indexData->indexCount = numEle;
}
bool Mesh::updateGeometry(const int &numVer, void* verArray)
{
if (numVer != mVertexBuffer->getNumVertices() || !mCreated)
{
return false;
}
if (verArray)
{
mVertexBuffer->
writeData(0,
mVertexBuffer->getSizeInBytes(),
verArray,
true);
}
return true;
}
bool Mesh::isPointInGrid(const Ogre::Vector2 &Position)
{
Ogre::AxisAlignedBox WordMeshBox = mEntity->getWorldBoundingBox();
// Get our mesh grid rectangle:
// c-----------d
// | |
// | |
// | |
// a-----------b
Ogre::Vector3
a = WordMeshBox.getCorner(Ogre::AxisAlignedBox::FAR_LEFT_BOTTOM),
b = WordMeshBox.getCorner(Ogre::AxisAlignedBox::FAR_RIGHT_BOTTOM),
c = WordMeshBox.getCorner(Ogre::AxisAlignedBox::NEAR_RIGHT_BOTTOM),
d = WordMeshBox.getCorner(Ogre::AxisAlignedBox::NEAR_LEFT_BOTTOM);
// Transform all corners to Ogre::Vector2 array
Ogre::Vector2 Corners2D[4] =
{Ogre::Vector2(a.x, a.z),
Ogre::Vector2(b.x, b.z),
Ogre::Vector2(c.x, c.z),
Ogre::Vector2(d.x, d.z)};
// Determinate if Position is into our rectangle, we use a line intersection detection
// because our mesh rectangle can be rotated, if the number of collisions with the four
// segments AB, BC, CD, DA is one, the Position point is into the rectangle, else(if number
// of collisions are 0 or 2, the Position point is outside the rectangle.
int NumberOfCollisions = 0;
// Find a point wich isn't be inside the rectangle
Ogre::Vector2 DestPoint = Corners2D[0] + (Corners2D[1]-Corners2D[0])*2;
for (int k = 0; k < 3; k++)
{
if (Math::intersectionOfTwoLines(Corners2D[k], Corners2D[k+1], Position, DestPoint) != Ogre::Vector2::ZERO)
{
NumberOfCollisions ++;
}
if (k == 2)
{
if (Math::intersectionOfTwoLines(Corners2D[3], Corners2D[0], Position, DestPoint) != Ogre::Vector2::ZERO)
{
NumberOfCollisions ++;
}
}
}
if (NumberOfCollisions == 1)
{
return true;
}
return false;
}
Ogre::Vector2 Mesh::getGridPosition(const Ogre::Vector2 &Position)
{
if (mOptions.MeshSize.Width == 0 && mOptions.MeshSize.Height == 0)
{
return Position;
}
if (!isPointInGrid(Position))
{
return Ogre::Vector2(-1,-1);
}
Ogre::AxisAlignedBox WordMeshBox = mEntity->getWorldBoundingBox();
// Get our mesh grid rectangle: (Only a,b,c corners)
// c
// |
// |
// |
// a-----------b
Ogre::Vector3
a = WordMeshBox.getCorner(Ogre::AxisAlignedBox::FAR_LEFT_BOTTOM),
b = WordMeshBox.getCorner(Ogre::AxisAlignedBox::FAR_RIGHT_BOTTOM),
c = WordMeshBox.getCorner(Ogre::AxisAlignedBox::NEAR_LEFT_BOTTOM);
// Transform all corners to Ogre::Vector2 array
Ogre::Vector2 Corners2D[3] =
{Ogre::Vector2(a.x, a.z),
Ogre::Vector2(b.x, b.z),
Ogre::Vector2(c.x, c.z)};
// Get segments AB and AC
Ogre::Vector2 AB = Corners2D[1]-Corners2D[0],
AC = Corners2D[2]-Corners2D[0];
// Find the X/Y position projecting the Position point to AB and AC segments.
Ogre::Vector2 XProjectedPoint = Position-AC,
YProjectedPoint = Position-AB;
// Fint the intersections points
Ogre::Vector2 XPoint = Math::intersectionOfTwoLines(Corners2D[0],Corners2D[1],Position,XProjectedPoint),
YPoint = Math::intersectionOfTwoLines(Corners2D[0],Corners2D[2],Position,YProjectedPoint);
// Find lengths
Ogre::Real ABLength = AB.length(),
ACLength = AC.length(),
XLength = (XPoint-Corners2D[0]).length(),
YLength = (YPoint-Corners2D[0]).length();
// Find final x/y grid positions in [0,1] range
Ogre::Real XFinal = XLength / ABLength,
YFinal = YLength / ACLength;
return Ogre::Vector2(XFinal,YFinal);
}
const Ogre::Vector3 Mesh::getObjectSpacePosition(const Ogre::Vector3& WorldSpacePosition) const
{
Ogre::Matrix4 mWorldMatrix;
if (mCreated)
{
#if OGRE_VERSION_MAJOR >= 1 && OGRE_VERSION_MINOR >= 7
mWorldMatrix = mEntity->getParentSceneNode()->_getFullTransform();
#else
mEntity->getParentSceneNode()->getWorldTransforms(&mWorldMatrix);
#endif
}
else
{
Ogre::SceneNode *mTmpSN = new Ogre::SceneNode(0);
mTmpSN->setPosition(mHydrax->getPosition());
#if OGRE_VERSION_MAJOR >= 1 && OGRE_VERSION_MINOR >= 7
mWorldMatrix = mTmpSN->_getFullTransform();
#else
mTmpSN->getWorldTransforms(&mWorldMatrix);
#endif
delete mTmpSN;
}
return mWorldMatrix.inverseAffine().transformAffine(WorldSpacePosition);
}
const Ogre::Vector3 Mesh::getWorldSpacePosition(const Ogre::Vector3& ObjectSpacePosition) const
{
Ogre::Matrix4 mWorldMatrix;
if (mCreated)
{
#if OGRE_VERSION_MAJOR >= 1 && OGRE_VERSION_MINOR >= 7
mWorldMatrix = mEntity->getParentSceneNode()->_getFullTransform();
#else
mEntity->getParentSceneNode()->getWorldTransforms(&mWorldMatrix);
#endif
}
else
{
Ogre::SceneNode *mTmpSN = new Ogre::SceneNode(0);
mTmpSN->setPosition(mHydrax->getPosition());
#if OGRE_VERSION_MAJOR >= 1 && OGRE_VERSION_MINOR >= 7
mWorldMatrix = mTmpSN->_getFullTransform();
#else
mTmpSN->getWorldTransforms(&mWorldMatrix);
#endif
delete mTmpSN;
}
return mWorldMatrix.transformAffine(ObjectSpacePosition);
}
}
| [
"[email protected]"
] | |
87bbb99f2b2afacff0fb42bf98be41c685651492 | d14323b8587fa942bd85a0a7126b419b5d1eb613 | /CodeForces/EDU/Binary Search/Step-1/Fast search.cpp | ba831a25cc11908dd918b4556f603b3de5fc7f16 | [] | no_license | akashksinghal/My-Codes-CP | 7be1dac488da97a51d69158ac737502ea41048a8 | 61e0fea6d894f4d0af2e723350a906adeb7cdacc | refs/heads/master | 2023-06-04T00:40:07.145653 | 2021-06-26T11:09:23 | 2021-06-26T11:09:23 | 287,991,333 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,048 | cpp | #include<bits/stdc++.h>
using namespace std;
#define int long long
pair<int,bool> Closest_to_the_left(int val, int low, int high, vector<int> &A){
bool pb = false;
while(low + 1 < high){
int mid = (low + high) / 2;
if(A[mid]<=val) low = mid, pb = true;
else high = mid;
}
if(pb)
return {low+1,true};
else return {0,false};
}
pair<int,bool> Closest_to_the_right(int val, int low, int high, vector<int> &A){
bool pb = false;
while(low + 1 < high){
int mid = (low + high) / 2;
if(A[mid]>=val) high = mid, pb = true;
else low = mid;
}
if(pb)
return {high+1,true};
else
return {A.size() + 1,false};
}
signed main(){
int n,q,l,r;
cin >> n;
vector<int> A(n);
for(auto &i:A) cin >> i;
sort(A.begin(),A.end());
cin >> q;
while(q--){
cin >> l >> r ;
auto a = Closest_to_the_left(r,-1,n,A);
auto b = Closest_to_the_right(l,-1,n,A);
cout << a.first - b.first + 1 << ' ';
}
} | [
"[email protected]"
] | |
b2616e769c705b726a99cf2ae68965b351ceeb16 | 84f515d774b84ce3d81681e0188348443e2f4557 | /Run14AuAu/EPAnalyzer/EPAnalyzer.h | 8bcf597475254a9775f7e28db8e86ef169ba0d6d | [] | no_license | XuQiao/flowtutorial | b8b3c59255cb419efe5f09c773406cb8c00ee9c2 | 51fd5d869dc30fec82dc13312a10f79f7e8b6bdd | refs/heads/master | 2020-05-19T10:39:51.654958 | 2019-11-20T01:31:35 | 2019-11-20T01:31:35 | 184,976,546 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 865 | h | #ifndef __EPANALYZER_H__
#define __EPANALYZER_H__
#include <string>
#include "SubsysReco.h"
#include "TFile.h"
#include "TTree.h"
#include "TH1.h"
#include "TH2.h"
#include "TH3.h"
#include "TProfile.h"
class EPAnalyzer: public SubsysReco
{
public:
EPAnalyzer(const char* output="rpanase.root");
virtual ~EPAnalyzer();
int Init(PHCompositeNode *topNode);
int InitRun(PHCompositeNode *topNode);
int process_event(PHCompositeNode *topNode);
int End(PHCompositeNode *topNode);
private:
const std::string OutputFileName;
int ievent;
int RunNumber;
TFile *d_outfile;
TH1F* hCentrality;
TH1F* hBBCqS;
TH1F* hBBCqN;
TH1F* hBBCq;
TH1F* hQx_N;
TH1F* hQy_N;
TH1F* hQx_S;
TH1F* hQy_S;
TH1F* hpsi_FVTXS;
TH1F* hpsi_FVTXN;
TH2F* hpsi_FVTXSFVTXN;
TProfile* hReso;
TProfile* hpTvnRaw;
};
#endif /* __EPANALYZER_H__ */
| [
"[email protected]"
] | |
332ced4219951afca6189e038c15656e395322c1 | fa94f664e9c7046b23f18283dc202665804b0f50 | /miniStack.cpp | 8b69748b485fac8ca2b4ee2d37798f061aa334e7 | [] | no_license | caseymsmith/miniStandardTemplateLibrary | 57870fef2bc763ac09370e33bf618244a0d1c83e | 336f927b0ba7106dc3fe107cad8222903638d517 | refs/heads/master | 2021-01-10T13:30:28.508418 | 2016-01-08T05:47:50 | 2016-01-08T05:47:50 | 49,252,202 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,174 | cpp | #include <iostream>
#include "miniStack.h"
using namespace std;
template<class DataType>
miniStackVT<DataType>::miniStackVT(int variable) {
content.reserve(variable);
}
template<class DataType>
miniStackVT<DataType>::~miniStackVT() {
//delete content
}
template<class DataType>
int miniStackVT<DataType>::size() const {
return content.size();
}
template<class DataType>
bool miniStackVT<DataType>::IsEmpty() const {
if (content.empty())
return true;
else
return false;
}
template<class DataType>
void miniStackVT<DataType>::Push(DataType const &item) {
content.push_back(item);
}
template<class DataType>
void miniStackVT<DataType>::PrintStack() const {
for (int i = 0; i < content.size(); i++)
cout << content[i] << " ";
}
template<class DataType>
DataType miniStackVT<DataType>::Pop() {
if (!IsEmpty()) {
DataType temp = content.back();
content.pop_back();
return temp;
}
else
throw emptyStackException();
}
template<class DataType>
DataType miniStackVT<DataType>::TopStack() const {
if(!IsEmpty())
return content.back();
else
throw emptyStackException();
}
//////////////////////////////////////////////////////////////////
template<class DataType>
miniStackLT<DataType>::miniStackLT(int variable) {
content.resize(variable);
}
template<class DataType>
miniStackLT<DataType>::~miniStackLT() {
//delete content;
}
template<class DataType>
int miniStackLT<DataType>::size() const {
return content.size();
}
template<class DataType>
bool miniStackLT<DataType>::IsEmpty() const {
if (content.empty())
return true;
else
return false;
}
template<class DataType>
void miniStackLT<DataType>::Push(DataType const &item) {
content.push_back(item);
}
template<class DataType>
void miniStackLT<DataType>::PrintStack() const {
typename std::list<DataType>::const_iterator iter;
for (iter = content.begin(); iter != content.end(); iter++)
cout << *iter << " ";
}
template<class DataType>
DataType miniStackLT<DataType>::Pop() {
if (!IsEmpty()) {
DataType temp = content.back();
content.pop_back();
return temp;
}
else
throw emptyStackException();
}
template<class DataType>
DataType miniStackLT<DataType>::TopStack() const {
if(!IsEmpty())
return content.back();
else
throw emptyStackException();
}
//////////////////////////////////////////////////////////////////
template <class DataType>
miniStackDA<DataType>::miniStackDA(int variable) {
capacity=variable;
content=new DataType[variable];
}
template <class DataType>
miniStackDA<DataType>::~miniStackDA() {
delete [] content;
}
template <class DataType>
int miniStackDA<DataType>::size() const {
return NodeCount;
}
template <class DataType>
bool miniStackDA<DataType>::IsEmpty() const {
return NodeCount==0;
}
template <class DataType>
void miniStackDA<DataType>::Push(const DataType& item){
if(atCapacity())
resize();
content[NodeCount]=item;
NodeCount++;
}
template <class DataType>
void miniStackDA<DataType>::PrintStack() const {
for(int i=NodeCount-1; i>= 0; i--)
cout << content[i] << " ";
}
template <class DataType>
DataType miniStackDA<DataType>::Pop() {
if (!IsEmpty()) {
DataType temp = content[0];
for (int i = 1; i < NodeCount; i++)
content[i - 1] = content[i];
NodeCount--;
return temp;
}
else
throw emptyStackException();
}
template <class DataType>
bool miniStackDA<DataType>::atCapacity() const {
return NodeCount==capacity-1;
}
template <class DataType>
void miniStackDA<DataType>::resize() {
DataType* temp;
int tempCapacity=(int)(capacity*1.5)+1;
temp=new DataType[tempCapacity];
for(int i=0; i<capacity; i++)
temp[i]=content[i];
delete [] content;
content=temp;
capacity=tempCapacity;
}
template <class DataType>
DataType miniStackDA<DataType>::TopStack() const {
if(!IsEmpty())
return content[NodeCount - 1];
else
throw emptyStackException();
}
| [
"[email protected]"
] | |
f6a403feb44b5b10fe93940b831353ea205b0af0 | ab4d778fff3cb960a88b8fb8aac412c3831d0717 | /source/gloperate-glraw/source/glraw.cpp | 6033b19aebe06af662cca032ca5706b0f317cc3d | [
"MIT"
] | permissive | Highlife1911/gloperate | 5e57381ac562c8630cdddd1d78e3be6d9747f9e9 | 8a0a6b0823714c1b950ef4a427848038759e99e0 | refs/heads/master | 2021-01-15T09:43:46.934426 | 2015-08-07T12:03:10 | 2015-08-07T12:03:10 | 36,447,593 | 0 | 0 | null | 2015-07-18T14:51:50 | 2015-05-28T15:23:14 | C++ | UTF-8 | C++ | false | false | 1,397 | cpp | #include <gloperate-glraw/TextureFilter.h>
#include <globjects/logging.h>
#include <glraw/MemoryProcessor.h>
#include <glraw/Converter.h>
#include <glraw/filter/Filter.hpp>
namespace gloperate_glraw
{
TextureFilter::TextureFilter(std::unique_ptr<gloperate_qt::QtOpenGLWindow>& canvas)
: m_pipeline(new glraw::MemoryProcessor())
, m_canvas(canvas)
{
m_pipeline->setConverter(new glraw::Converter());
}
TextureFilter::~TextureFilter()
{
delete m_pipeline;
}
void TextureFilter::transfer(glraw::AssetInformation & info)
{
m_pipeline->process(m_rawData, info);
}
bool TextureFilter::addFilter(std::initializer_list<std::pair<std::string, QVariantMap>> list)
{
for( auto filter : list )
{
if(!addFilter(filter.first, filter.second))
{
return false;
}
}
return true;
}
bool TextureFilter::addFilter(const std::string& name, const QVariantMap& options)
{
auto filter = glraw::Filter::CreateByName(name, options);
if (filter)
{
addFilter(filter);
return true;
}
else
{
globjects::debug() << "Filter: " << name << " not found!" << std::endl;
return false;
}
}
bool TextureFilter::addFilter(glraw::AbstractFilter * filter)
{
assert(filter);
m_pipeline->appendFilter(filter);
return true;
}
std::map<std::string, std::string> TextureFilter::allAvailableFilters()
{
return glraw::Filter::All();
}
void TextureFilter::resetFilters()
{
m_pipeline->reset();
}
}
| [
"[email protected]"
] | |
ef44f21eb3b893892f2192b1fc9609e6f19c4723 | 9c4f48b6e8c71a0989f04bceb3f223a43d031c15 | /moderate/string_rotation.cpp | 7679866046014ab0d2a578635e613946b08c5de8 | [] | no_license | joeyuan19/CodeEval | c1c696cc7ad4f00e67e788cc6b707fe859aad70d | cf85c8665a6d1b541be7d5aae7d66ce76c32c37b | refs/heads/master | 2020-04-04T22:24:18.680053 | 2018-11-06T03:53:05 | 2018-11-06T03:53:05 | 156,322,997 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 785 | cpp | #include <iostream>
#include <fstream>
#include <string>
using namespace std;
void process(string line) {
int idx = line.find(","), i, j, k;
string a = line.substr(0,idx), b = line.substr(idx+1,line.size()-(idx+1));
bool found;
for (i = 0; i < b.size(); i++) {
found = true;
for (j = 0, k = i; j < a.size(); j++, k = (k+1)%b.size()) {
if (a[j] != b[k]) {
found = false;
break;
}
}
if (found) {
cout << "True" << endl;
return;
}
}
cout << "False" << endl;
return;
}
int main(int argc, char *argv[]) {
ifstream f (argv[1]);
string line;
while (getline(f,line)) {
process(line);
}
f.close();
return 0;
}
| [
"[email protected]"
] | |
1460767cf230bfbab8e1c20e86ca30d7f5f21c32 | 159aed4755e47623d0aa7b652e178296be5c9604 | /src/swganh_core/messages/chat/chat_on_moderator_add.h | ee0a6b078ad12d4b7e662663bb0ccb740ef20660 | [
"MIT"
] | permissive | anhstudios/swganh | fb67d42776864b1371e95f769f6864d0784061a3 | 41c519f6cdef5a1c68b369e760781652ece7fec9 | refs/heads/develop | 2020-12-24T16:15:31.813207 | 2016-03-08T03:54:32 | 2016-03-08T03:54:32 | 1,380,891 | 33 | 44 | null | 2016-03-08T03:54:32 | 2011-02-18T02:32:45 | Python | UTF-8 | C++ | false | false | 1,543 | h | // This file is part of SWGANH which is released under the MIT license.
// See file LICENSE or go to http://swganh.com/LICENSE
#pragma once
#include <cstdint>
#include "swganh/byte_buffer.h"
#include "swganh_core/messages/base_swg_message.h"
namespace swganh
{
namespace messages
{
struct ChatOnModeratorAdd : public BaseSwgMessage
{
uint16_t Opcount() const
{
return 6;
}
uint32_t Opcode() const
{
return 0x36A03858;
}
std::string game;
std::string server;
std::string target;
std::string moderator;
//0=success,
//4=avatar not found,
//5 = room not exist,
//9 = not moderated
//16 = not moderator
uint32_t error;
std::string room_path;
uint32_t request_id;
void OnSerialize(swganh::ByteBuffer& buffer) const
{
buffer.write<std::string>(game);
buffer.write<std::string>(server);
buffer.write<std::string>(target);
buffer.write<std::string>(moderator);
buffer.write<uint32_t>(error);
buffer.write<std::string>(room_path);
buffer.write<uint32_t>(request_id);
}
void OnDeserialize(swganh::ByteBuffer& buffer)
{
game = buffer.read<std::string>();
server = buffer.read<std::string>();
target = buffer.read<std::string>();
moderator = buffer.read<std::string>();
error = buffer.read<uint32_t>();
room_path = buffer.read<std::string>();
request_id = buffer.read<uint32_t>();
}
};
}
} // namespace swganh::messages
| [
"[email protected]"
] | |
00577da09758e8035b0d5b44f1ccc7ee36ba4e13 | 46995d862d409431657efdd8b317d1a596c70bff | /shared/poco/include/Poco/Runnable.h | 69797928397382ec4d4b6de7d7a5100f88f89a1e | [] | no_license | killvxk/zerokit | 576b133232c588faef42d66e23bd156118649c7e | 29fe947fafdd590b4dc72391a8441a22f3f83123 | refs/heads/master | 2020-05-02T19:06:57.743802 | 2019-04-15T02:06:19 | 2019-04-15T02:06:19 | 178,149,584 | 1 | 0 | null | 2019-04-15T02:06:20 | 2019-03-28T07:28:31 | C | UTF-8 | C++ | false | false | 885 | h | //
// Runnable.h
//
// $Id: //poco/1.4/Foundation/include/Poco/Runnable.h#1 $
//
// Library: Foundation
// Package: Threading
// Module: Thread
//
// Definition of the Runnable class.
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Foundation_Runnable_INCLUDED
#define Foundation_Runnable_INCLUDED
#include "Poco/Foundation.h"
namespace Poco {
class Foundation_API Runnable
/// The Runnable interface with the run() method
/// must be implemented by classes that provide
/// an entry point for a thread.
{
public:
Runnable();
virtual ~Runnable();
virtual void run() = 0;
/// Do whatever the thread needs to do. Must
/// be overridden by subclasses.
};
} // namespace Poco
#endif // Foundation_Runnable_INCLUDED
| [
"[email protected]"
] | |
6c2827665774445eb6f0216ca525dc30ba1d280c | 5f8bc8c43179bbb552bab217af4af6dc4bd1b3ad | /PROG20799/c_program/cint/cint-5.16.19-source/cint-5.16.19/test/t993.c | 00a5462f727176f015305c69e0695c6c3ee35054 | [
"MIT"
] | permissive | juliosueiras/Winter2015Class | 03b5f47ab0866b20aa4240879e664cc384799f33 | 1ef3cbb312afe9d0797f7167e340c19abd393a34 | refs/heads/master | 2020-04-10T21:05:31.931725 | 2015-03-09T15:00:01 | 2015-03-09T15:00:01 | 30,904,651 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 848 | c | /* -*- C++ -*- */
/*************************************************************************
* Copyright(c) 1995~2005 Masaharu Goto ([email protected])
*
* For the licensing terms see the file COPYING
*
************************************************************************/
#ifdef __CINT__
#pragma include "test.dll"
#else
#include "t993.h"
#endif
#include <stdio.h>
void some_script_func( PSOME_STRUCT pStruc)
{
/* prepare to access the union data */
PSOME_STRUCT2 pStruc2 = &(pStruc->u.s2);
PSOME_STRUCT2* ppStruc2 = &pStruc2;
printf("s2::a=%d\n",pStruc2->a);
printf("s2::a=%d\n",(*ppStruc2)->a);
printf("s2::a=%d\n",pStruc->u.s2.a);
printf("s3::b=%d\n",pStruc->u.s3.b);
printf("s3::c=%d\n",pStruc->u.s3.c);
}
int main() {
SOME_STRUCT s;
s.u.s3.b=12;
s.u.s3.c=34;
some_script_func(&s);
return 0;
}
| [
"[email protected]"
] | |
7ecfd1350e46f0f408bf3f6aa8e3f2edda8745c0 | eef88446e87f0026988268344c29fdf30d03d015 | /src/qt/bitcoinunits.cpp | da232b8c7901283d9000c3b287dc371183e38e91 | [
"MIT"
] | permissive | examyes/fsc2 | 118e4c0341f1c09e13542bf0d29258f17e3a0796 | f27e807db711b8ac456350697f8c662c61464ce2 | refs/heads/master | 2020-03-23T21:19:33.282420 | 2015-01-16T10:04:19 | 2015-01-16T10:04:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,308 | cpp | #include "bitcoinunits.h"
#include <QStringList>
BitcoinUnits::BitcoinUnits(QObject *parent):
QAbstractListModel(parent),
unitlist(availableUnits())
{
}
QList<BitcoinUnits::Unit> BitcoinUnits::availableUnits()
{
QList<BitcoinUnits::Unit> unitlist;
unitlist.append(BTC);
unitlist.append(mBTC);
unitlist.append(uBTC);
return unitlist;
}
bool BitcoinUnits::valid(int unit)
{
switch(unit)
{
case BTC:
case mBTC:
case uBTC:
return true;
default:
return false;
}
}
QString BitcoinUnits::name(int unit)
{
switch(unit)
{
case BTC: return QString("FSC2");
case mBTC: return QString("mFSC2");
case uBTC: return QString::fromUtf8("μFSC2");
default: return QString("???");
}
}
QString BitcoinUnits::description(int unit)
{
switch(unit)
{
case BTC: return QString("FriendshipCoin2s");
case mBTC: return QString("Milli-FriendshipCoin2s (1 / 1,000)");
case uBTC: return QString("Micro-FriendshipCoin2s (1 / 1,000,000)");
default: return QString("???");
}
}
qint64 BitcoinUnits::factor(int unit)
{
switch(unit)
{
case BTC: return 100000000;
case mBTC: return 100000;
case uBTC: return 100;
default: return 100000000;
}
}
int BitcoinUnits::amountDigits(int unit)
{
switch(unit)
{
case BTC: return 8; // 21,000,000 (# digits, without commas)
case mBTC: return 11; // 21,000,000,000
case uBTC: return 14; // 21,000,000,000,000
default: return 0;
}
}
int BitcoinUnits::decimals(int unit)
{
switch(unit)
{
case BTC: return 8;
case mBTC: return 5;
case uBTC: return 2;
default: return 0;
}
}
QString BitcoinUnits::format(int unit, qint64 n, bool fPlus)
{
// Note: not using straight sprintf here because we do NOT want
// localized number formatting.
if(!valid(unit))
return QString(); // Refuse to format invalid unit
qint64 coin = factor(unit);
int num_decimals = decimals(unit);
qint64 n_abs = (n > 0 ? n : -n);
qint64 quotient = n_abs / coin;
qint64 remainder = n_abs % coin;
QString quotient_str = QString::number(quotient);
QString remainder_str = QString::number(remainder).rightJustified(num_decimals, '0');
// Right-trim excess zeros after the decimal point
int nTrim = 0;
for (int i = remainder_str.size()-1; i>=2 && (remainder_str.at(i) == '0'); --i)
++nTrim;
remainder_str.chop(nTrim);
if (n < 0)
quotient_str.insert(0, '-');
else if (fPlus && n > 0)
quotient_str.insert(0, '+');
return quotient_str + QString(".") + remainder_str;
}
QString BitcoinUnits::formatWithUnit(int unit, qint64 amount, bool plussign)
{
return format(unit, amount, plussign) + QString(" ") + name(unit);
}
bool BitcoinUnits::parse(int unit, const QString &value, qint64 *val_out)
{
if(!valid(unit) || value.isEmpty())
return false; // Refuse to parse invalid unit or empty string
int num_decimals = decimals(unit);
QStringList parts = value.split(".");
if(parts.size() > 2)
{
return false; // More than one dot
}
QString whole = parts[0];
QString decimals;
if(parts.size() > 1)
{
decimals = parts[1];
}
if(decimals.size() > num_decimals)
{
return false; // Exceeds max precision
}
bool ok = false;
QString str = whole + decimals.leftJustified(num_decimals, '0');
if(str.size() > 18)
{
return false; // Longer numbers will exceed 63 bits
}
qint64 retvalue = str.toLongLong(&ok);
if(val_out)
{
*val_out = retvalue;
}
return ok;
}
int BitcoinUnits::rowCount(const QModelIndex &parent) const
{
Q_UNUSED(parent);
return unitlist.size();
}
QVariant BitcoinUnits::data(const QModelIndex &index, int role) const
{
int row = index.row();
if(row >= 0 && row < unitlist.size())
{
Unit unit = unitlist.at(row);
switch(role)
{
case Qt::EditRole:
case Qt::DisplayRole:
return QVariant(name(unit));
case Qt::ToolTipRole:
return QVariant(description(unit));
case UnitRole:
return QVariant(static_cast<int>(unit));
}
}
return QVariant();
}
| [
"[email protected]"
] | |
dddfcf20ed12d3000c31172c95fdbabac1dda38c | b6e8a1fa1085a52d7ba6ed6b6f11dbd82905f3ba | /source/mac/brcriticalsectionmac.cpp | 1105284e9d68d2b895e7238a9ba4adc5faaa594f | [
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"LicenseRef-scancode-warranty-disclaimer",
"Zlib"
] | permissive | etsangsplk/burgerlib | ed4039b175ec96fe28c0ccd52d19f5715fbeccc9 | bec821be1ba1d7fbe08e3b128b086158d3bb1b21 | refs/heads/master | 2022-04-03T20:56:46.598519 | 2020-02-24T09:25:15 | 2020-02-24T09:25:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,337 | cpp | /***************************************
Class to handle critical sections, MacOS version
Copyright (c) 1995-2017 by Rebecca Ann Heineman <[email protected]>
It is released under an MIT Open Source license. Please see LICENSE
for license details. Yes, you can use it in a
commercial title without paying anything, just give me a credit.
Please? It's not like I'm asking you for money!
***************************************/
#include "brcriticalsection.h"
#if defined(BURGER_MAC)
#include <OpenTransport.h>
/***************************************
Initialize the CriticalSection
***************************************/
Burger::CriticalSection::CriticalSection()
{
OTClearLock(&m_bLock);
}
Burger::CriticalSection::~CriticalSection() {}
/***************************************
Lock the CriticalSection
***************************************/
void Burger::CriticalSection::Lock()
{
while (OTAcquireLock(&m_bLock)) {
}
}
/***************************************
Try to lock the CriticalSection
***************************************/
Word Burger::CriticalSection::TryLock()
{
return OTAcquireLock(&m_bLock);
}
/***************************************
Unlock the CriticalSection
***************************************/
void Burger::CriticalSection::Unlock()
{
OTClearLock(&m_bLock);
}
#endif
| [
"[email protected]"
] | |
18827d73ea02edb84dee76aa43ce9f127eee0278 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /chrome/browser/ash/system_web_apps/apps/calculator_app/calculator_app_utils.cc | a87ec60d860e2189484bce8d9f25e7302fa26eb3 | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | C++ | false | false | 822 | cc | // Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ash/system_web_apps/apps/calculator_app/calculator_app_utils.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/web_applications/extension_status_utils.h"
#include "chrome/browser/web_applications/web_app_id_constants.h"
#include "extensions/common/constants.h"
namespace ash {
namespace calculator_app {
std::string GetInstalledCalculatorAppId(Profile* profile) {
if (extensions::IsExtensionInstalled(profile,
extension_misc::kCalculatorAppId)) {
return extension_misc::kCalculatorAppId;
}
return web_app::kCalculatorAppId;
}
} // namespace calculator_app
} // namespace ash
| [
"[email protected]"
] | |
4b229a49e2c2dc882507794148f6a92b6205ea61 | d8dde07d7c9cf75f7f18a91ab1dd74a4a261a9e7 | /tmpleate-2020/code/Graph/BZOJ 1001 [BeiJing2006]狼抓兔子[平面对偶][MLE].cpp | 0542c7251d094ffe5e3b8a66fa08c3ad06613904 | [] | no_license | tiankonguse/ACM | 349109d3804e5b1a1de109ec48a2cb3b0dceaafc | ef70b8794c560cb87a6ba8f267e0cc5e9d06c31b | refs/heads/master | 2022-10-09T19:58:38.805515 | 2022-09-30T06:59:53 | 2022-09-30T06:59:53 | 8,998,504 | 82 | 51 | null | 2020-11-09T05:17:09 | 2013-03-25T04:04:26 | C++ | UTF-8 | C++ | false | false | 21,390 | cpp | /** Micro Mezz o Macro Flation -- Overheated Economy ., Last Update: Mar. 3th 2013 **/ //{
/** Header .. **/ //{
#define LOCAL
#include <functional>
#include <algorithm>
#include <iostream>
#include <fstream>
#include <sstream>
#include <iomanip>
#include <numeric>
#include <cstring>
#include <climits>
#include <cassert>
#include <cstdio>
#include <string>
#include <vector>
#include <bitset>
#include <queue>
#include <stack>
#include <cmath>
#include <ctime>
#include <list>
#include <set>
#include <map>
//#include <tr1/unordered_set>
//#include <tr1/unordered_map>
//#include <array>
using namespace std;
#define REP(i, n) for (int i=0;i<int(n);++i)
#define FOR(i, a, b) for (int i=int(a);i<int(b);++i)
#define DWN(i, b, a) for (int i=int(b-1);i>=int(a);--i)
#define REP_1(i, n) for (int i=1;i<=int(n);++i)
#define FOR_1(i, a, b) for (int i=int(a);i<=int(b);++i)
#define DWN_1(i, b, a) for (int i=int(b);i>=int(a);--i)
#define REP_C(i, n) for (int n____=int(n),i=0;i<n____;++i)
#define FOR_C(i, a, b) for (int b____=int(b),i=a;i<b____;++i)
#define DWN_C(i, b, a) for (int a____=int(a),i=b-1;i>=a____;--i)
#define REP_N(i, n) for (i=0;i<int(n);++i)
#define FOR_N(i, a, b) for (i=int(a);i<int(b);++i)
#define DWN_N(i, b, a) for (i=int(b-1);i>=int(a);--i)
#define REP_1_C(i, n) for (int n____=int(n),i=1;i<=n____;++i)
#define FOR_1_C(i, a, b) for (int b____=int(b),i=a;i<=b____;++i)
#define DWN_1_C(i, b, a) for (int a____=int(a),i=b;i>=a____;--i)
#define REP_1_N(i, n) for (i=1;i<=int(n);++i)
#define FOR_1_N(i, a, b) for (i=int(a);i<=int(b);++i)
#define DWN_1_N(i, b, a) for (i=int(b);i>=int(a);--i)
#define REP_C_N(i, n) for (int n____=(i=0,int(n));i<n____;++i)
#define FOR_C_N(i, a, b) for (int b____=(i=0,int(b);i<b____;++i)
#define DWN_C_N(i, b, a) for (int a____=(i=b-1,int(a));i>=a____;--i)
#define REP_1_C_N(i, n) for (int n____=(i=1,int(n));i<=n____;++i)
#define FOR_1_C_N(i, a, b) for (int b____=(i=1,int(b);i<=b____;++i)
#define DWN_1_C_N(i, b, a) for (int a____=(i=b,int(a));i>=a____;--i)
#define ECH(it, A) for (__typeof(A.begin()) it=A.begin(); it != A.end(); ++it)
#define REP_S(i, str) for (char*i=str;*i;++i)
#define REP_L(i, hd, nxt) for (int i=hd;i;i=nxt[i])
#define REP_G(i, u) REP_L(i,hd[u],suc)
#define DO(n) for ( int ____n ## __line__ = n; ____n ## __line__ -- ; )
#define REP_2(i, j, n, m) REP(i, n) REP(j, m)
#define REP_2_1(i, j, n, m) REP_1(i, n) REP_1(j, m)
#define REP_3(i, j, k, n, m, l) REP(i, n) REP(j, m) REP(k, l)
#define REP_3_1(i, j, k, n, m, l) REP_1(i, n) REP_1(j, m) REP_1(k, l)
#define REP_4(i, j, k, ii, n, m, l, nn) REP(i, n) REP(j, m) REP(k, l) REP(ii, nn)
#define REP_4_1(i, j, k, ii, n, m, l, nn) REP_1(i, n) REP_1(j, m) REP_1(k, l) REP_1(ii, nn)
#define ALL(A) A.begin(), A.end()
#define LLA(A) A.rbegin(), A.rend()
#define CPY(A, B) memcpy(A, B, sizeof(A))
#define INS(A, P, B) A.insert(A.begin() + P, B)
#define ERS(A, P) A.erase(A.begin() + P)
#define BSC(A, x) (lower_bound(ALL(A), x) - A.begin())
#define CTN(T, x) (T.find(x) != T.end())
#define SZ(A) int(A.size())
#define PB push_back
#define MP(A, B) make_pair(A, B)
#define PTT pair<T, T>
#define fi first
#define se second
#define Rush for(int ____T=RD(); ____T--;)
#define Display(A, n, m) { \
REP(i, n){ \
REP(j, m) cout << A[i][j] << " "; \
cout << endl; \
} \
}
#define Display_1(A, n, m) { \
REP_1(i, n){ \
REP_1(j, m) cout << A[i][j] << " "; \
cout << endl; \
} \
}
#pragma comment(linker, "/STACK:36777216")
//#pragma GCC optimize ("O2")
string __file__(){
string res = __FILE__;
int r = SZ(res) - 1; while (res[r] != '.') --r;
int l = r - 1; while (res[l] != '\\') --l; ++l;
return res.substr(l, r-l);
}
void Exec(string a, string b, string c){
if (b.empty()) b = __file__();
string cmd = a + ' ' + b + '.' + c;
system(cmd.c_str());
}
void Ruby(string file = ""){Exec("ruby", file, "rb");}
void Python(string file = ""){Exec("python", file, "py");}
void Haskell(string file = ""){Exec("runghc", file, "hs");}
void Pascal(string file = ""){Exec("pascal", file, "pas");}
typedef long long LL;
//typedef long double DB;
typedef double DB;
typedef unsigned UINT;
typedef unsigned long long ULL;
typedef vector<int> VI;
typedef vector<char> VC;
typedef vector<string> VS;
typedef vector<LL> VL;
typedef vector<DB> VF;
typedef set<int> SI;
typedef set<string> SS;
typedef map<int, int> MII;
typedef map<string, int> MSI;
typedef pair<int, int> PII;
typedef pair<LL, LL> PLL;
typedef vector<PII> VII;
typedef vector<VI> VVI;
typedef vector<VII> VVII;
template<class T> inline T& RD(T &);
template<class T> inline void OT(const T &);
inline int RD(){int x; return RD(x);}
//inline LL RD(){LL x; return RD(x);}
inline DB& RF(DB &);
inline DB RF(){DB x; return RF(x);}
inline char* RS(char *s);
inline char& RC(char &c);
inline char RC();
inline char& RC(char &c){scanf(" %c", &c); return c;}
inline char RC(){char c; return RC(c);}
//inline char& RC(char &c){c = getchar(); return c;}
//inline char RC(){return getchar();}
template<class T> inline T& RDD(T &x){
char c; for (c = getchar(); c < '-'; c = getchar());
if (c == '-'){x = '0' - getchar(); for (c = getchar(); '0' <= c && c <= '9'; c = getchar()) x = x * 10 + '0' - c;}
else {x = c - '0'; for (c = getchar(); '0' <= c && c <= '9'; c = getchar()) x = x * 10 + c - '0';}
return x;
}
inline LL RDD(){LL x; return RDD(x);}
template<class T0, class T1> inline T0& RD(T0 &x0, T1 &x1){RD(x0), RD(x1); return x0;}
template<class T0, class T1, class T2> inline T0& RD(T0 &x0, T1 &x1, T2 &x2){RD(x0), RD(x1), RD(x2); return x0;}
template<class T0, class T1, class T2, class T3> inline T0& RD(T0 &x0, T1 &x1, T2 &x2, T3 &x3){RD(x0), RD(x1), RD(x2), RD(x3); return x0;}
template<class T0, class T1, class T2, class T3, class T4> inline T0& RD(T0 &x0, T1 &x1, T2 &x2, T3 &x3, T4 &x4){RD(x0), RD(x1), RD(x2), RD(x3), RD(x4); return x0;}
template<class T0, class T1, class T2, class T3, class T4, class T5> inline T0& RD(T0 &x0, T1 &x1, T2 &x2, T3 &x3, T4 &x4, T5 &x5){RD(x0), RD(x1), RD(x2), RD(x3), RD(x4), RD(x5); return x0;}
template<class T0, class T1, class T2, class T3, class T4, class T5, class T6> inline T0& RD(T0 &x0, T1 &x1, T2 &x2, T3 &x3, T4 &x4, T5 &x5, T6 &x6){RD(x0), RD(x1), RD(x2), RD(x3), RD(x4), RD(x5), RD(x6); return x0;}
template<class T0, class T1> inline void OT(const T0 &x0, const T1 &x1){OT(x0), OT(x1);}
template<class T0, class T1, class T2> inline void OT(const T0 &x0, const T1 &x1, const T2 &x2){OT(x0), OT(x1), OT(x2);}
template<class T0, class T1, class T2, class T3> inline void OT(const T0 &x0, const T1 &x1, const T2 &x2, const T3 &x3){OT(x0), OT(x1), OT(x2), OT(x3);}
template<class T0, class T1, class T2, class T3, class T4> inline void OT(const T0 &x0, const T1 &x1, const T2 &x2, const T3 &x3, const T4 &x4){OT(x0), OT(x1), OT(x2), OT(x3), OT(x4);}
template<class T0, class T1, class T2, class T3, class T4, class T5> inline void OT(const T0 &x0, const T1 &x1, const T2 &x2, const T3 &x3, const T4 &x4, const T5 &x5){OT(x0), OT(x1), OT(x2), OT(x3), OT(x4), OT(x5);}
template<class T0, class T1, class T2, class T3, class T4, class T5, class T6> inline void OT(const T0 &x0, const T1 &x1, const T2 &x2, const T3 &x3, const T4 &x4, const T5 &x5, const T6 &x6){OT(x0), OT(x1), OT(x2), OT(x3), OT(x4), OT(x5), OT(x6);}
inline char& RC(char &a, char &b){RC(a), RC(b); return a;}
inline char& RC(char &a, char &b, char &c){RC(a), RC(b), RC(c); return a;}
inline char& RC(char &a, char &b, char &c, char &d){RC(a), RC(b), RC(c), RC(d); return a;}
inline char& RC(char &a, char &b, char &c, char &d, char &e){RC(a), RC(b), RC(c), RC(d), RC(e); return a;}
inline char& RC(char &a, char &b, char &c, char &d, char &e, char &f){RC(a), RC(b), RC(c), RC(d), RC(e), RC(f); return a;}
inline char& RC(char &a, char &b, char &c, char &d, char &e, char &f, char &g){RC(a), RC(b), RC(c), RC(d), RC(e), RC(f), RC(g); return a;}
inline DB& RF(DB &a, DB &b){RF(a), RF(b); return a;}
inline DB& RF(DB &a, DB &b, DB &c){RF(a), RF(b), RF(c); return a;}
inline DB& RF(DB &a, DB &b, DB &c, DB &d){RF(a), RF(b), RF(c), RF(d); return a;}
inline DB& RF(DB &a, DB &b, DB &c, DB &d, DB &e){RF(a), RF(b), RF(c), RF(d), RF(e); return a;}
inline DB& RF(DB &a, DB &b, DB &c, DB &d, DB &e, DB &f){RF(a), RF(b), RF(c), RF(d), RF(e), RF(f); return a;}
inline DB& RF(DB &a, DB &b, DB &c, DB &d, DB &e, DB &f, DB &g){RF(a), RF(b), RF(c), RF(d), RF(e), RF(f), RF(g); return a;}
inline void RS(char *s1, char *s2){RS(s1), RS(s2);}
inline void RS(char *s1, char *s2, char *s3){RS(s1), RS(s2), RS(s3);}
template<class T0,class T1>inline void RDD(T0&a, T1&b){RDD(a),RDD(b);}
template<class T0,class T1,class T2>inline void RDD(T0&a, T1&b, T2&c){RDD(a),RDD(b),RDD(c);}
template<class T> inline void RST(T &A){memset(A, 0, sizeof(A));}
template<class T> inline void FLC(T &A, int x){memset(A, x, sizeof(A));}
template<class T> inline void CLR(T &A){A.clear();}
template<class T0, class T1> inline void RST(T0 &A0, T1 &A1){RST(A0), RST(A1);}
template<class T0, class T1, class T2> inline void RST(T0 &A0, T1 &A1, T2 &A2){RST(A0), RST(A1), RST(A2);}
template<class T0, class T1, class T2, class T3> inline void RST(T0 &A0, T1 &A1, T2 &A2, T3 &A3){RST(A0), RST(A1), RST(A2), RST(A3);}
template<class T0, class T1, class T2, class T3, class T4> inline void RST(T0 &A0, T1 &A1, T2 &A2, T3 &A3, T4 &A4){RST(A0), RST(A1), RST(A2), RST(A3), RST(A4);}
template<class T0, class T1, class T2, class T3, class T4, class T5> inline void RST(T0 &A0, T1 &A1, T2 &A2, T3 &A3, T4 &A4, T5 &A5){RST(A0), RST(A1), RST(A2), RST(A3), RST(A4), RST(A5);}
template<class T0, class T1, class T2, class T3, class T4, class T5, class T6> inline void RST(T0 &A0, T1 &A1, T2 &A2, T3 &A3, T4 &A4, T5 &A5, T6 &A6){RST(A0), RST(A1), RST(A2), RST(A3), RST(A4), RST(A5), RST(A6);}
template<class T0, class T1> inline void FLC(T0 &A0, T1 &A1, int x){FLC(A0, x), FLC(A1, x);}
template<class T0, class T1, class T2> inline void FLC(T0 &A0, T1 &A1, T2 &A2, int x){FLC(A0, x), FLC(A1, x), FLC(A2, x);}
template<class T0, class T1, class T2, class T3> inline void FLC(T0 &A0, T1 &A1, T2 &A2, T3 &A3, int x){FLC(A0, x), FLC(A1, x), FLC(A2, x), FLC(A3, x);}
template<class T0, class T1, class T2, class T3, class T4> inline void FLC(T0 &A0, T1 &A1, T2 &A2, T3 &A3, T4 &A4, int x){FLC(A0, x), FLC(A1, x), FLC(A2, x), FLC(A3, x), FLC(A4, x);}
template<class T0, class T1, class T2, class T3, class T4, class T5> inline void FLC(T0 &A0, T1 &A1, T2 &A2, T3 &A3, T4 &A4, T5 &A5, int x){FLC(A0, x), FLC(A1, x), FLC(A2, x), FLC(A3, x), FLC(A4, x), FLC(A5, x);}
template<class T0, class T1, class T2, class T3, class T4, class T5, class T6> inline void FLC(T0 &A0, T1 &A1, T2 &A2, T3 &A3, T4 &A4, T5 &A5, T6 &A6, int x){FLC(A0, x), FLC(A1, x), FLC(A2, x), FLC(A3, x), FLC(A4, x), FLC(A5, x), FLC(A6, x);}
template<class T0, class T1, class T2> inline void CLR(priority_queue<T0, T1, T2> &Q){while (!Q.empty()) Q.pop();}
template<class T0, class T1> inline void CLR(T0 &A0, T1 &A1){CLR(A0), CLR(A1);}
template<class T0, class T1, class T2> inline void CLR(T0 &A0, T1 &A1, T2 &A2){CLR(A0), CLR(A1), CLR(A2);}
template<class T0, class T1, class T2, class T3> inline void CLR(T0 &A0, T1 &A1, T2 &A2, T3 &A3){CLR(A0), CLR(A1), CLR(A2), CLR(A3);}
template<class T0, class T1, class T2, class T3, class T4> inline void CLR(T0 &A0, T1 &A1, T2 &A2, T3 &A3, T4 &A4){CLR(A0), CLR(A1), CLR(A2), CLR(A3), CLR(A4);}
template<class T0, class T1, class T2, class T3, class T4, class T5> inline void CLR(T0 &A0, T1 &A1, T2 &A2, T3 &A3, T4 &A4, T5 &A5){CLR(A0), CLR(A1), CLR(A2), CLR(A3), CLR(A4), CLR(A5);}
template<class T0, class T1, class T2, class T3, class T4, class T5, class T6> inline void CLR(T0 &A0, T1 &A1, T2 &A2, T3 &A3, T4 &A4, T5 &A5, T6 &A6){CLR(A0), CLR(A1), CLR(A2), CLR(A3), CLR(A4), CLR(A5), CLR(A6);}
template<class T> inline void CLR(T &A, int n){REP(i, n) CLR(A[i]);}
template<class T> inline bool EPT(T &a){return a.empty();}
template<class T> inline T& SRT(T &A){sort(ALL(A)); return A;}
template<class T> inline T& RVS(T &A){reverse(ALL(A)); return A;}
template<class T> inline T& UNQ(T &A){A.resize(unique(ALL(SRT(A)))-A.begin());return A;}
template<class T, class C> inline T& SRT(T &A, C B){sort(ALL(A), B); return A;}
//}
/** Constant List .. **/ //{
const int MOD = int(1e9) + 7;
//int MOD = 99990001;
const int INF = 0x3f3f3f3f;
const LL INFF = 1LL << 60;
const DB EPS = 1e-9;
const DB OO = 1e20;
const DB PI = acos(-1.0); //M_PI;
const int dx[] = {-1, 0, 1, 0};
const int dy[] = {0, 1, 0, -1};
//}
/** Add On .. **/ //{
// <<= '0. Nichi Joo ., //{
template<class T> inline void checkMin(T &a,const T b){if (b<a) a=b;}
template<class T> inline void checkMax(T &a,const T b){if (a<b) a=b;}
template<class T> inline void checkMin(T &a, T &b, const T x){checkMin(a, x), checkMin(b, x);}
template<class T> inline void checkMax(T &a, T &b, const T x){checkMax(a, x), checkMax(b, x);}
template <class T, class C> inline void checkMin(T& a, const T b, C c){if (c(b,a)) a = b;}
template <class T, class C> inline void checkMax(T& a, const T b, C c){if (c(a,b)) a = b;}
template<class T> inline T min(T a, T b, T c){return min(min(a, b), c);}
template<class T> inline T max(T a, T b, T c){return max(max(a, b), c);}
template<class T> inline T min(T a, T b, T c, T d){return min(min(a, b), min(c, d));}
template<class T> inline T max(T a, T b, T c, T d){return max(max(a, b), max(c, d));}
template<class T> inline T sqr(T a){return a*a;}
template<class T> inline T cub(T a){return a*a*a;}
inline int ceil(int x, int y){return (x - 1) / y + 1;}
inline int sgn(DB x){return x < -EPS ? -1 : x > EPS;}
inline int sgn(DB x, DB y){return sgn(x - y);}
inline DB cot(DB x){return (DB)1/tan(x);};
inline DB sec(DB x){return (DB)1/cos(x);};
inline DB csc(DB x){return (DB)1/sin(x);};
//}
// <<= '1. Bitwise Operation ., //{
namespace BO{
inline bool _1(int x, int i){return bool(x&1<<i);}
inline bool _1(LL x, int i){return bool(x&1LL<<i);}
inline LL _1(int i){return 1LL<<i;}
inline LL _U(int i){return _1(i) - 1;};
inline int reverse_bits(int x){
x = ((x >> 1) & 0x55555555) | ((x << 1) & 0xaaaaaaaa);
x = ((x >> 2) & 0x33333333) | ((x << 2) & 0xcccccccc);
x = ((x >> 4) & 0x0f0f0f0f) | ((x << 4) & 0xf0f0f0f0);
x = ((x >> 8) & 0x00ff00ff) | ((x << 8) & 0xff00ff00);
x = ((x >>16) & 0x0000ffff) | ((x <<16) & 0xffff0000);
return x;
}
inline LL reverse_bits(LL x){
x = ((x >> 1) & 0x5555555555555555LL) | ((x << 1) & 0xaaaaaaaaaaaaaaaaLL);
x = ((x >> 2) & 0x3333333333333333LL) | ((x << 2) & 0xccccccccccccccccLL);
x = ((x >> 4) & 0x0f0f0f0f0f0f0f0fLL) | ((x << 4) & 0xf0f0f0f0f0f0f0f0LL);
x = ((x >> 8) & 0x00ff00ff00ff00ffLL) | ((x << 8) & 0xff00ff00ff00ff00LL);
x = ((x >>16) & 0x0000ffff0000ffffLL) | ((x <<16) & 0xffff0000ffff0000LL);
x = ((x >>32) & 0x00000000ffffffffLL) | ((x <<32) & 0xffffffff00000000LL);
return x;
}
template<class T> inline bool odd(T x){return x&1;}
template<class T> inline bool even(T x){return !odd(x);}
template<class T> inline T low_bit(T x) {return x & -x;}
template<class T> inline T high_bit(T x) {T p = low_bit(x);while (p != x) x -= p, p = low_bit(x);return p;}
template<class T> inline T cover_bit(T x){T p = 1; while (p < x) p <<= 1;return p;}
template<class T> inline int cover_idx(T x){int p = 0; while (_1(p) < x ) ++p; return p;}
inline int clz(int x){return __builtin_clz(x);}
inline int clz(LL x){return __builtin_clzll(x);}
inline int ctz(int x){return __builtin_ctz(x);}
inline int ctz(LL x){return __builtin_ctzll(x);}
inline int lg2(int x){return !x ? -1 : 31 - clz(x);}
inline int lg2(LL x){return !x ? -1 : 63 - clz(x);}
inline int low_idx(int x){return !x ? -1 : ctz(x);}
inline int low_idx(LL x){return !x ? -1 : ctz(x);}
inline int high_idx(int x){return lg2(x);}
inline int high_idx(LL x){return lg2(x);}
inline int parity(int x){return __builtin_parity(x);}
inline int parity(LL x){return __builtin_parityll(x);}
inline int count_bits(int x){return __builtin_popcount(x);}
inline int count_bits(LL x){return __builtin_popcountll(x);}
} using namespace BO;//}
// <<= '2. Number Theory .,//{
namespace NT{
inline LL __lcm(LL a, LL b){return a*b/__gcd(a,b);}
inline void INC(int &a, int b){a += b; if (a >= MOD) a -= MOD;}
inline int sum(int a, int b){a += b; if (a >= MOD) a -= MOD; return a;}
inline void DEC(int &a, int b){a -= b; if (a < 0) a += MOD;}
inline int dff(int a, int b){a -= b; if (a < 0) a += MOD; return a;}
inline void MUL(int &a, int b){a = (LL)a * b % MOD;}
inline int pdt(int a, int b){return (LL)a * b % MOD;}
inline int sum(int a, int b, int c){return sum(sum(a, b), c);}
inline int sum(int a, int b, int c, int d){return sum(sum(a, b), sum(c, d));}
inline int pdt(int a, int b, int c){return pdt(pdt(a, b), c);}
inline int pdt(int a, int b, int c, int d){return pdt(pdt(pdt(a, b), c), d);}
inline int pow(int a, int b){
int c(1); while (b){
if (b&1) MUL(c, a);
MUL(a, a), b >>= 1;
}
return c;
}
inline int pow(int a, LL b){
int c(1); while (b){
if (b&1) MUL(c, a);
MUL(a, a), b >>= 1;
}
return c;
}
template<class T> inline T pow(T a, LL b){
T c(1); while (b){
if (b&1) c *= a;
a *= a, b >>= 1;
}
return c;
}
inline int _I(int b){
int a = MOD, x1 = 0, x2 = 1, q;
while (true){
q = a / b, a %= b;
if (!a) return (x2 + MOD) % MOD;
DEC(x1, pdt(q, x2));
q = b / a, b %= a;
if (!b) return (x1 + MOD) % MOD;
DEC(x2, pdt(q, x1));
}
}
inline void DIV(int &a, int b){MUL(a, _I(b));}
inline int qtt(int a, int b){return pdt(a, _I(b));}
inline int phi(int n){
int res = n; for (int i=2;sqr(i)<=n;++i) if (!(n%i)){
DEC(res, qtt(res, i));
do{n /= i;} while(!(n%i));
}
if (n != 1)
DEC(res, qtt(res, n));
return res;
}
} using namespace NT;//}
//}
/** I/O Accelerator Interface .. **/ //{
template<class T> inline T& RD(T &x){
//cin >> x;
scanf("%d", &x);
//char c; for (c = getchar(); c < '0'; c = getchar()); x = c - '0'; for (c = getchar(); '0' <= c && c <= '9'; c = getchar()) x = x * 10 + c - '0';
//char c; c = getchar(); x = c - '0'; for (c = getchar(); c >= '0'; c = getchar()) x = x * 10 + c - '0';
return x;
}
inline DB& RF(DB &x){
//cin >> x;
scanf("%lf", &x);
/*char t; while ((t=getchar())==' '||t=='\n'); x = t - '0';
while ((t=getchar())!=' '&&t!='\n'&&t!='.')x*=10,x+=t-'0';
if (t=='.'){DB l=1; while ((t=getchar())!=' '&&t!='\n')l*=0.1,x += (t-'0')*l;}*/
return x;
}
inline char* RS(char *s){
//gets(s);
scanf("%s", s);
return s;
}
LL last_ans; int Case; template<class T> inline void OT(const T &x){
//printf("Case %d: %d\n", ++Case, x);
//printf("%lld ", x);
//printf("%d\n", x);
cout << x << endl;
//last_ans = x;
}
//}
//}/* .................................................................................................................................. */
const int N = int(2e6) + 9, M = 2 * N;
#define id se
vector<pair<DB, int> > adj[N]; PII P[N]; int cap[N], nxt[M], bel[M];
VII adj2[N]; int n, m, s, t;
inline void _add_edge(int x, int y){
adj[x].PB(MP(atan2(P[y].se-P[x].se, P[y].fi-P[x].fi), m++));
}
inline void add_edgee(int x, int y){
_add_edge(x, y), _add_edge(y, x);
}
inline void add_edge2(int x, int y, int w){
adj2[x].PB(MP(y, w));
}
void init(){
m = 2; int m; RD(n, m); REP(i, n*m) CLR(adj[i]);
s = 0, t = n*m-1;
REP(i, n) REP(j, m) P[i*m+j] = MP(i, j);
REP(i, n) REP(j, m-1){
RD(cap[::m>>1]);
add_edgee(i*m+j, i*m+j+1);
}
REP(i, n-1) REP(j, m){
RD(cap[::m>>1]);
add_edgee(i*m+j, (i+1)*m+j);
}
REP(i, n-1) REP(j, m-1){
RD(cap[::m>>1]);
add_edgee(i*m+j, (i+1)*m+j+1);
}
cap[::m>>1] = INF;
adj[s].PB(MP(PI, ::m++));
adj[t].PB(MP(0, ::m++));
n = n*m; REP(i, n){
SRT(adj[i]); FOR(j, 1, SZ(adj[i])) nxt[adj[i][j-1].id] = adj[i][j].id^1;
nxt[adj[i].back().id] = adj[i][0].id^1;
}
n = 0; FLC(bel, -1); FOR(i, 2, ::m) if (bel[i] == -1){
bel[i] = n; for (int j=nxt[i];j!=i;j=nxt[j]) bel[j] = n; ++n;
}
REP(i, n) CLR(adj2[i]); FOR(i, 2, ::m) add_edge2(bel[i], bel[i^1], cap[i>>1]);
s = bel[::m-2], t = bel[::m-1];
}
int D[N]; bool C[N];
struct cmp{
bool operator()(int a, int b){
return D[a] > D[b];
}
};
priority_queue<int, vector<int>, cmp> Q;
void relax(int u, int v, int w){
if (!C[v] && D[u] + w < D[v]){
D[v] = D[u] + w;
Q.push(v);
}
}
int Dijkstra(){
CLR(Q); fill(D, D+n, 0x7fffffff); fill(C, C+n, 0); D[s] = 0; Q.push(s);
int u, v; while (!Q.empty()){
u = Q.top(), Q.pop();
if (C[u]) continue;
if (u == t) return D[u];
C[u] = 1; ECH(it, adj2[u])
relax(u, it->fi, it->se);
}
assert(1);
}
int main(){
#ifndef ONLINE_JUDGE
freopen("in.txt", "r", stdin);
//freopen("out.txt", "w", stdout);
#endif
init(); OT(Dijkstra());
}
// http://www.mzry1992.com/blog/miao/9.html
// https://gist.github.com/mzry1992/5193875
// http://www.cnblogs.com/swm8023/archive/2012/09/14/2684215.html
| [
"[email protected]"
] | |
96d059195ebae19e7e27429c307f0dafe55a5a16 | 29f46c2ed1c86ffe375c857a77733362486184a1 | /LinkedListClass.cpp | bd45e208e8d9835874b79dbd59229e90d0c79ee7 | [
"Unlicense"
] | permissive | viditaggarwal/mycode | 8441223e15116600510d529c5d117bdad44afbde | 4b55ddb736b1c2de61271318c56fb320fbc5d53a | refs/heads/master | 2021-01-02T08:51:30.403987 | 2014-02-27T21:10:47 | 2014-02-27T21:10:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,565 | cpp | #include<iostream>
using namespace std;
class node{
int data;
node *next;
public:
node(){
}
node(int n){
this->data = n;
this->next = NULL;
}
node *insert(node *first, int n){
if(first == NULL){
first = new node(n);
}else{
node *nn = new node(n);
nn->next = first;
first = nn;
}
return first;
}
void printList(node *ptr){
if(ptr){
cout<<ptr->data<<endl;
printList(ptr->next);
}
}
node *insertAtTheEnd(node *first, int n){
node *temp = first;
if(first == NULL){
first = new node(n);
}else{
while(temp->next != NULL){
temp = temp->next;
}
node *nn = new node(n);
temp->next = nn;
}
return first;
}
node* merge(node *head1, node *head2){
node *head3 = NULL;
while(head1!=NULL || head2!=NULL){
if(head1->data > head2->data){
cout<<"head1"<<endl;
head3 = insertAtTheEnd(head3, head1->data);
head1 = head1->next;
}else{
cout<<"head2"<<endl;
head3 = insertAtTheEnd(head3, head2->data);
head2 = head2->next;
}
if(!head1){
head3 = insertAtTheEnd(head3, head2->data);
head2 = head2->next;
}
if(!head2){
head3 = insertAtTheEnd(head3, head1->data);
head1 = head1->next;
}
}
return head3;
}
node *mergeRecursive(node *head1, node* head2, node *head3){
if(head3==NULL){
head3 = new node();
}
if(!head1 && !head2)return NULL;
if(head1 && head2){
if(head1->data > head2->data){
head3 = mergeRecursive(head1->next, head2, head3);
head3 = insert(head3, head1->data);
}else{
head3 = mergeRecursive(head1, head2->next, head3);
head3 = insert(head3, head2->data);
}
}else{
if(!head1){
head3 = mergeRecursive(head1, head2->next, head3);
head3 = insert(head3, head2->data);
}else{
if(!head2){
head3 = mergeRecursive(head1->next, head2, head3);
head3 = insert(head3, head1->data);
}
}
}
return head3;
}
};
int main(){
node *head1 = new node(10);
head1 = head1->insert(head1,20);
head1 = head1->insert(head1,30);
head1 = head1->insert(head1,40);
head1 = head1->insert(head1,50);
//head1->printList(head1);
node *head2 = new node(15);
head2 = head2->insert(head2,25);
head2 = head2->insert(head2,35);
head2 = head2->insert(head2,45);
head2 = head2->insert(head2,55);
//head1->printList(head2);
//node *head3 = head1->merge(head1, head2);
node *head3 = head1->mergeRecursive(head1, head2, head3);
head1->printList(head3);
return 0;
}
| [
"[email protected]"
] | |
4e2330b4717f9031076febd1cc92f6eb1de4f2ff | fef3824265f663fcbb4e6c2f723c8273d08d11ad | /plotter.h | 612a2da569650eed9c3974dcaa8f64db276ece6b | [] | no_license | BrandonScheitlin/Break-Game | 7cbf905d7e3f379e8c5a2898e69e7c96a4e1c26b | 664a8cc0aebe8dc990032804d2f59e657fc239df | refs/heads/master | 2020-05-23T14:24:46.666399 | 2014-11-24T01:28:28 | 2014-11-24T01:28:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 874 | h | #ifndef PLOTTER_H_
#define PLOTTER_H_
#include <windows.h>
#include <mmsystem.h>
#include <conio.h>
const char SQUARE = 219;
const char LEFT = 221;
const char RIGHT = 222;
const char TOP = 223;
const char BOTTOM = 220;
const char BLANK = ' ';
enum ink
{
black = 0x00, darkblue = 0x01, darkgreen = 0x02, darkcyan = 0x03,
darkred = 0x04, purple = 0x05, darkyellow = 0x06, lightgrey = 0x07,
grey = 0x08, blue = 0x09, green = 0x0A, cyan = 0x0B,
red = 0x0C, magenta = 0x0D, yellow = 0x0E, white = 0x0F
};
class Plotter
{
protected:
COORD coordScreen;
HANDLE hConsoleOutput;
char dummy;
void cls( HANDLE hConsole );
public:
Plotter();
void clear();
void move(int, int);
void plot(int,int,char);
void setColor(ink);
};
#endif /*PLOTTER_H_*/
| [
"[email protected]"
] | |
836ec31a908f611dd868a4364c7ef3bf81c46603 | ba5eabcf0e3880a4cc86e9222fcb2ecd5f53b103 | /src/gpu/graphite/GraphicsPipeline.cpp | 1c3fbad74280c8dcbed2ba3362df1414ae433831 | [
"BSD-3-Clause"
] | permissive | aseprite/skia | d2b63003610c796594e81deea093eb6b13704838 | 478f512f7a84658167d9f83f35d42fb0903b4a37 | refs/heads/aseprite-m102 | 2023-08-24T00:47:30.288547 | 2023-02-28T20:21:26 | 2023-03-03T18:12:59 | 45,053,736 | 139 | 51 | BSD-3-Clause | 2023-03-03T18:14:21 | 2015-10-27T16:20:42 | C++ | UTF-8 | C++ | false | false | 386 | cpp | /*
* Copyright 2021 Google LLC
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "src/gpu/graphite/GraphicsPipeline.h"
namespace skgpu::graphite {
GraphicsPipeline::GraphicsPipeline(const Gpu* gpu) : Resource(gpu, Ownership::kOwned) {
}
GraphicsPipeline::~GraphicsPipeline() {
}
} // namespace skgpu::graphite
| [
"[email protected]"
] | |
1e2747dd4bf444f3a5b56e9f6857e06b868574ce | 493ac26ce835200f4844e78d8319156eae5b21f4 | /flow_simulation/ideal_flow/0.95/epsilon | 3d24a67accc29d629babceb85e0fdd9e5b355434 | [] | no_license | mohan-padmanabha/worm_project | 46f65090b06a2659a49b77cbde3844410c978954 | 7a39f9384034e381d5f71191122457a740de3ff0 | refs/heads/master | 2022-12-14T14:41:21.237400 | 2020-08-21T13:33:10 | 2020-08-21T13:33:10 | 289,277,792 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 56,190 | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0.95";
object epsilon;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -3 0 0 0 0];
internalField nonuniform List<scalar>
5794
(
0.431065
0.241586
4.75638
111.615
43.1443
1.31141
9.38115
3.45524
93.8556
0.180276
36.5463
5.59376
9.23569
39.3574
0.296782
1.10641
379.948
53.2141
0.294894
0.167753
61.9179
1.35674
26.7918
1.37817
16.5096
113.359
282.37
39.1436
94.066
0.498756
5.48738
11.6253
21.3162
0.424465
1.84216
3.56372
4.4277
27.4592
40.0405
94.106
26.317
7.10609
9.36045
13.9358
0.287521
47.0324
25.0747
10.0309
0.144836
2.13999
5.00124
59.6842
0.800785
0.220844
0.0959686
42.9202
21.628
15.7794
5.87075
236.336
59.5917
0.201848
4.7608
14.5939
25.5835
0.248504
54.9627
28.064
56.927
0.148585
80.4661
61.5792
327.255
2.17425
57.3244
22.1573
1.6903
74.7627
12.2077
2.81922
0.924264
0.166968
14.6731
24.0274
14.8865
68.4446
33.7608
100.019
2.12981
31.4041
110.226
24.2602
65.2139
110.242
35.7519
65.0899
82.1841
53.5628
21.9453
66.2934
50.9769
7.30133
7.38472
44.5806
6.30247
89.9749
0.157688
9.00491
43.6042
10.7913
0.424977
0.241294
55.1936
0.479449
28.7101
85.0292
0.333465
80.8558
53.6956
22.0882
84.4689
0.442717
6.20106
32.232
0.222908
51.0156
62.774
1.52603
69.3551
10.9821
5.70863
9.19095
28.3899
61.7826
95.473
0.292806
124.281
0.20841
2.96554
0.342376
1.30656
29.5391
0.271383
34.6044
2.79869
314.121
55.5212
50.9129
31.6015
20.7612
12.2332
0.14553
92.3093
6.27123
310.588
44.032
29.833
18.9067
81.3067
18.5805
0.270679
1.86993
0.429572
3.97933
59.9458
72.8372
5.66915
2.16371
0.415901
0.30966
0.437262
30.7584
2.9901
1.63202
0.599977
19.4815
0.301589
10.1045
0.88871
79.562
2.75648
20.2715
3.09382
48.2239
4.22859
324.779
9.73744
16.2895
0.166848
6.52271
46.5019
14.4168
27.7127
3.71682
14.0181
8.01998
5.93989
0.618687
0.335339
6.81325
13.9945
64.3347
5.97976
5.98444
30.4834
55.9804
3.62157
19.103
168.439
45.5603
9.40757
10.2638
4.59627
2.10322
0.616744
5.87302
8.92495
36.1127
29.3304
76.8847
9.82715
30.6307
157.061
56.2457
148.851
169.255
7.56323
0.197179
0.184232
0.306057
1.87167
1.22738
0.335209
32.8323
27.2188
202.923
228.801
34.2602
10.6283
1.37347
0.15361
56.3714
36.5044
39.0535
7.24297
0.70346
0.299762
29.7305
147.477
83.5556
36.7808
0.256099
320.336
0.196697
4.95765
127.553
6.9683
18.7025
14.973
0.220996
80.7384
4.59388
2.22809
0.312447
22.2128
13.2955
28.4332
71.4051
0.225322
58.1434
31.1529
8.73095
17.2579
74.5123
16.3709
0.310152
0.209846
1.35917
0.105488
9.75643
1.87927
81.5387
26.3537
7.68576
69.5384
97.4128
39.8159
49
144.672
86.1458
2.38123
1.31215
0.405977
0.162944
4.8293
120.767
28.9546
7.967
55.4763
0.389673
0.209424
54.3184
1.15066
42.0042
4.60854
74.8574
0.111259
50.2081
65.2844
35.3732
13.9712
43.2035
48.1557
0.500935
9.82944
35.1468
12.1364
46.8129
45.9845
125.92
2.64709
6.26521
81.7461
42.0473
1.10864
17.1149
2.02459
6.40593
11.0056
34.0584
72.0866
8.63439
5.94271
22.2697
12.8906
0.208319
0.258507
0.445205
0.158098
10.9649
1.53992
15.5671
77.5026
28.0436
0.3722
2.7034
75.6198
27.2739
82.6607
41.6696
57.3621
394.579
36.0583
17.1434
3.57734
268.891
0.692683
78.4167
10.8478
3.92446
15.0078
15.7114
98.6443
9.06548
3.82905
3.89863
64.7429
55.9649
28.9767
14.674
0.213748
0.323694
3.94292
2.20815
21.1046
49.7494
41.2306
22.2087
27.027
0.119302
1.23972
0.215887
12.5135
3.57448
1.72182
0.404842
92.7417
5.77343
2.19238
6.84616
2.28927
61.6808
0.146817
1.68347
1.85319
1.13359
0.450773
2.75551
0.259202
20.7899
1.02269
10.4515
173.862
0.829546
0.555196
44.2372
13.2491
1.55915
0.201083
79.6011
50.3042
20.3079
32.2093
28.2978
74.8262
41.6381
5.53277
66.7594
54.2427
81.005
22.0757
52.2574
14.2424
0.21843
4.02581
1.93867
0.609345
0.449059
0.154048
1.07359
60.1221
5.76597
31.2526
81.0214
0.312993
0.380029
9.96511
18.8806
3.55478
1.67205
0.423295
8.11933
5.4157
3.50707
1.45081
93.4063
31.2175
2.20978
0.594472
54.2339
0.307207
0.198762
89.1607
1.13746
69.3201
0.301205
75.0173
69.0529
41.3747
163.568
1.09836
0.348679
16.21
0.858678
74.2316
10.9605
165.157
68.8362
17.3953
8.61741
0.375358
209.595
50.0168
0.162814
0.18273
95.2158
200.96
47.1326
3.89984
0.333128
38.8636
1.0358
0.221261
0.167878
14.1131
32.8928
10.1568
1.90219
262.136
0.876086
0.182699
95.9678
88.2743
40.742
12.3062
0.354674
0.352271
0.214953
1.85624
39.2915
89.4101
204.618
8.70938
9.12084
36.5568
0.349988
1.18544
31.6749
38.817
0.319372
63.2914
0.115188
1.76802
0.264356
0.516222
24.8739
74.3143
0.250681
5.54659
178.229
2.01278
0.226922
55.936
78.8419
11.5182
0.412573
6.57718
46.4717
0.275656
1.34926
22.4938
0.593357
164.309
0.204404
1.14971
0.896942
6.61317
161.303
10.3055
66.0818
1.28266
97.6144
0.138152
46.7105
3.01184
0.995604
5.4971
34.1105
0.439105
1.54965
44.1032
0.129232
0.392067
5.14813
0.948397
0.443846
19.899
1.41216
0.279917
26.171
498.434
0.532919
58.3264
0.127737
43.4599
2.15635
0.906574
21.6468
1.53768
0.372129
84.0608
26.6975
128.142
95.187
140.632
8.93152
72.7536
63.8785
8.76763
28.7238
80.8332
26.5217
103.713
200.262
80.0838
55.5891
0.408114
60.205
21.3749
89.3142
0.349868
0.926908
0.216652
92.3574
29.4598
39.6206
0.141875
9.33558
0.194779
0.521692
0.19062
96.6535
29.4478
102.992
0.309811
8.35057
156.517
0.227057
0.110439
10.7208
83.09
122.976
37.5271
3.33277
2.17804
3.25758
35.5932
29.8729
7.54524
74.265
0.195047
42.8274
61.1018
12.9645
0.168858
0.499592
2.1429
32.9184
73.7327
0.409782
0.979402
0.123058
0.163169
2.24905
0.203661
0.205276
81.3341
26.4205
0.244987
40.9127
3.558
8.91652
27.8367
23.2541
127.163
128.947
41.9103
48.4652
0.248754
0.18165
1.38463
5.84019
0.211855
2.95631
2.46638
77.3224
206.737
37.3656
188.247
4.20181
0.153178
0.257209
1.02837
62.763
0.271212
45.9119
146.472
100.794
41.2102
47.7698
36.1561
3.29677
190.345
38.1441
24.1044
32.4611
114.531
2.90432
38.1414
2.42949
0.449764
24.5733
0.228132
1.3086
25.5043
139.054
115.556
0.202286
0.101624
0.235265
40.6573
172.565
71.3362
41.2716
0.171127
42.6487
17.6178
0.217881
1.10648
9.83194
0.18725
10.4173
0.583856
19.2177
26.0052
159.435
74.5885
0.183212
0.269884
111.927
21.7106
185.35
44.5671
72.8275
40.7267
16.2239
8.76205
265.734
47.3167
27.4683
42.7792
105.628
160.349
0.327167
107.619
4.48032
15.0443
28.2557
92.6025
38.5511
41.4219
43.6156
128.202
28.2955
0.167158
1.9608
325.685
11.3572
23.1992
60.4533
96.535
0.462808
1.08695
0.380736
3.48422
86.2127
38.4664
128.876
2.21317
8.99135
0.633323
4.51964
0.245988
0.283108
27.6474
94.1563
5.09407
115.133
36.9952
8.63881
1.97778
203.394
78.2204
42.2555
145.504
99.2819
39.6293
54.4096
10.1733
55.5927
20.6638
85.2327
23.94
0.215735
1.932
0.286013
0.338325
4.88537
38.6884
1.42848
22.5225
230.399
13.0343
1.37426
0.327801
82.0491
30.798
21.6205
86.4285
28.3602
2.56454
80.8561
58.3051
38.6305
3.22906
35.2169
0.184823
134.8
1.06107
84.4177
9.61971
13.1091
0.870235
0.687001
0.518451
0.141046
21.5556
42.4441
82.4821
186.921
43.8041
1.32077
7.03234
34.2455
137.333
0.504707
10.3376
14.2805
71.4267
0.258619
1.42342
19.1798
50.014
167.225
0.42799
17.4462
0.114274
0.164871
0.178947
22.1755
65.252
82.4739
9.33351
0.198846
70.792
0.172179
5.69485
319.524
1.00553
0.162272
3.21036
0.156237
20.5882
2.84635
25.5173
0.45397
1.43056
6.07782
10.7443
175.623
31.6942
111.072
40.8926
52.0524
70.2624
39.3983
172.21
33.1662
0.533315
0.212676
5.10563
25.9074
6.58805
0.305542
198.564
49.7933
94.7879
16.7874
0.229176
55.2275
3.22549
14.1435
53.5126
1.4019
237.087
0.105194
0.214523
58.216
17.0277
6.36356
6.23941
55.168
10.638
6.96529
0.222447
0.201643
49.8535
71.0913
10.0631
10.0905
34.5925
1.17096
38.1363
132.646
75.2223
83.26
33.8403
0.864075
0.165426
17.354
0.432255
0.19537
0.184376
2.15517
25.3838
0.177748
7.36527
0.383903
105.312
49.2196
12.2474
8.09291
7.9929
15.7762
192.581
24.9577
73.9022
6.30025
0.296828
182.63
12.0029
42.4425
7.34309
113.973
54.4526
60.0855
2.41776
121.86
90.9912
3.33876
1.53119
0.734126
1.82518
0.414948
72.9972
41.8246
79.3523
79.3643
22.0534
51.8469
23.0927
12.5649
0.223903
1.52072
15.6833
0.428977
153.006
21.4342
164.886
6.95474
74.5172
65.0436
0.206233
0.980362
150.606
186.707
10.0446
12.1494
23.0302
64.5205
0.174042
42.8502
0.233933
3.38695
2.10577
0.202667
0.197946
0.163145
0.962327
0.368104
0.167779
0.303035
7.96812
57.9733
5.35852
0.116557
0.417978
77.4741
9.7194
27.4218
2.6138
32.7083
0.221097
39.1685
4.76425
1.06116
0.498682
11.2027
43.5492
0.339191
9.99743
0.21569
0.963437
9.23191
64.5299
21.5169
106.497
145.3
0.359658
11.0617
29.0585
35.1394
27.1139
30.3494
43.2019
100.386
0.649602
5.68426
0.340277
0.58225
18.943
11.799
174.487
155.869
110.009
0.0981752
22.3445
136.464
62.4744
56.6985
51.4497
0.15374
1.16287
0.277079
40.0978
11.0339
35.2642
4.55851
3.6318
4.40909
4.82205
10.0898
8.76807
0.198247
1.14291
26.1146
29.5722
12.0133
0.141148
8.20406
51.9605
0.412154
0.179641
0.202931
0.704806
13.268
0.440862
25.9971
0.195913
10.3668
17.1586
0.282929
54.2396
10.3611
0.300457
5.68521
76.6962
0.285838
65.2336
2.53614
1.58031
0.286764
3.17022
0.136826
0.283332
10.3691
0.304114
0.134722
0.454163
1.55742
3.05189
58.3841
27.6406
8.97933
100.015
31.2884
0.171369
0.236388
88.4209
6.3212
22.622
85.3709
0.211415
19.3649
0.583863
71.745
0.105905
55.4227
0.103982
94.4186
44.7516
0.366121
36.1941
0.617025
4.8237
0.838013
3.43475
30.7027
33.8819
0.550869
38.0929
0.170811
0.448644
6.41337
0.341683
1.39669
45.5906
1.1979
19.2197
0.272227
99.4632
0.127105
1.5424
0.247585
4.50144
51.3825
18.2718
0.937102
28.7133
7.52637
16.1034
114.565
38.594
0.2094
5.67535
53.0961
13.7736
23.0572
6.91437
53.5946
77.439
64.7213
23.495
60.9283
8.79392
8.69781
0.158867
1.47872
2.93324
0.365383
760.496
40.3699
0.326608
0.858121
54.9424
51.0937
8.64997
0.472114
6.30341
25.5498
1.48316
0.34318
50.5621
1.92792
29.5792
8.10692
92.1064
0.159163
0.788672
0.594348
4.45155
4.94573
31.6841
0.228646
46.531
1.12734
99.904
6.79998
7.00276
4.35747
23.3017
9.25206
17.7935
11.499
4.51345
0.506053
1.18687
30.5757
10.5225
5.54535
0.14761
0.899678
20.1238
39.2624
23.4503
2.49684
9.57002
7.48212
1.43429
7.51469
7.34766
10.1197
12.6234
11.114
27.637
0.243063
60.2617
0.217888
303.218
0.312608
0.122129
0.296776
1.31881
0.246499
46.0156
0.183855
6.48732
0.95814
4.07456
38.0528
223.484
88.8678
0.108299
0.264946
2.64157
4.45304
56.7345
18.6442
2.10279
8.61835
0.267634
58.4354
3.50467
17.992
33.3067
5.94511
8.33526
34.8023
0.470433
0.508128
29.7698
82.6042
32.2592
11.5408
8.45291
10.8535
0.205478
59.1534
192.767
39.6896
102.591
0.242035
0.536704
38.2679
9.98833
3.82796
0.181234
13.0864
40.9557
1.4741
0.554463
2.76172
0.994357
0.327541
2.69099
2.43323
30.4641
0.488636
9.39429
32.4029
119.848
76.4925
0.766981
31.6692
4.42795
76.6313
1.59899
49.9631
109.287
28.9551
58.6438
0.576628
35.5518
34.5053
178.232
1.56774
0.184394
0.178822
74.9805
1.43867
0.299291
41.8431
13.6671
0.822106
23.1007
9.30269
1.07906
34.1967
1.12426
0.192803
7.39599
1.5376
0.194732
0.333889
80.5073
9.35949
49.7958
43.5462
41.7105
0.188004
103.9
1.36295
32.8274
11.4577
5.27438
3.27256
0.305264
31.2345
0.322496
0.262153
0.150942
53.4777
0.124071
7.70674
22.1183
183.017
0.490402
143.503
157.946
1.16236
8.84752
0.312585
18.5991
5.18791
61.1651
77.2956
1.38437
0.928669
17.2562
28.3368
36.7985
168.774
77.5963
113.835
74.0849
18.8499
1.1715
0.187334
16.5441
0.255912
82.5082
0.139405
0.628608
0.151552
16.9134
3.43877
1.46909
0.311958
1.94407
3.30152
0.761189
0.172631
0.289201
7.60586
1.8396
33.9161
13.9042
0.504249
144.004
31.165
57.9667
18.3728
0.207332
45.5118
0.235101
0.539063
0.263153
0.578538
606.788
11.3851
44.7934
20.2342
74.7829
104.149
18.255
0.178752
0.394444
0.688723
0.356571
1.77529
1.42857
2.81766
0.826968
2.33242
3.00731
1.99164
0.945893
0.862501
0.35545
0.400152
1.98823
1.83211
2.46838
1.14145
0.683981
1.34542
0.311396
0.49922
0.208099
5.89162
0.981951
0.559562
0.403257
2.42597
0.344909
0.853267
0.833665
0.294409
0.940515
0.523931
0.19246
1.47065
0.478096
0.66142
3.72668
0.369308
0.180716
0.680074
0.880268
7.31932
10.7145
218.093
0.158428
3.01189
35.9716
92.5403
34.904
0.160984
0.363448
16.0782
0.145893
18.2855
71.3267
370.612
60.4669
102.727
25.8934
0.136143
0.126593
0.799193
0.160404
1.20491
20.4552
1.7252
3.81071
0.552846
2.57529
19.0205
17.0046
0.506266
15.2211
10.4327
450.936
0.219901
5.17696
2.03688
13.4263
54.6091
1.04834
58.6298
40.1631
31.4164
23.7577
8.91642
20.2209
10.6233
11.496
13.9057
781.395
0.197249
1.60855
0.789361
44.9507
39.4744
0.313431
69.9759
50.7736
0.73512
1.60872
3.52875
1.06576
0.205502
2.39936
2.47296
0.232517
0.325743
2.99826
0.802718
0.749932
0.145233
0.872551
0.364082
0.783299
1.11396
0.455585
1.98249
0.342044
0.670936
0.179442
0.61779
41.1436
63.8259
6.85195
21.7867
2.29214
13.9162
35.5031
0.275386
62.6781
34.8148
5.79122
42.1935
41.8585
0.898385
0.248104
42.0732
40.1426
0.184957
193.678
92.7099
32.9905
0.20513
55.7734
31.2852
0.251578
58.2851
13.09
62.2742
1.04358
3.71227
1.04933
62.1677
0.206887
41.3975
58.0286
1.76782
115.269
0.440623
75.8129
0.183997
0.923571
0.1975
66.471
0.251061
0.285011
3.81037
0.196518
108.943
10.7397
86.7967
19.7525
5.02128
7.26915
145.33
0.45054
9.12295
8.14548
67.349
41.3586
0.67836
0.20279
11.3463
7.23118
53.151
10.2532
0.198902
2.92365
1.56526
8.58066
0.369555
40.312
26.0706
0.367693
0.283088
85.1153
95.8907
12.2312
9.23746
69.6736
1.89563
51.948
69.2053
39.5186
50.9181
33.4475
0.212285
43.6619
0.311288
0.782869
0.191226
48.0662
7.84399
5.34703
7.09887
43.5952
34.1284
0.24896
0.441185
0.3986
15.1529
39.7627
50.0747
188.266
53.8146
41.3876
39.5281
11.3436
27.9465
26.9905
63.2905
23.8387
47.7991
39.5265
49.3967
35.0704
111.854
107.521
2.55962
62.5831
31.2171
20.3463
13.0805
10.2761
93.3448
42.3553
7.53566
52.6357
28.1678
110.492
2.42061
5.90598
260.321
7.83885
63.3648
16.1008
0.345463
0.171318
0.585065
57.6922
0.21348
0.70209
0.770804
61.9069
67.4568
55.273
43.5485
72.7338
62.435
73.9536
0.234534
74.0472
68.7454
68.0865
49.9754
64.5552
47.4415
70.3986
63.933
68.3474
16.1966
14.3665
9.8931
171.042
8.82716
5.58415
2.39977
4.00387
0.34063
0.486631
14.2431
30.1258
4.64334
0.425246
0.559455
36.9646
28.6103
20.436
7.90348
3.07799
4.17242
1.80255
0.953719
6.40899
2.13528
108.502
0.838782
9.67232
2.21208
2.25077
0.405854
15.4494
0.454156
17.4961
1.84588
0.527845
12.3231
2.95549
1.18706
2.28297
1.27544
0.310187
69.6441
0.315912
33.1831
15.8343
5.68506
47.529
100.65
0.318614
84.8644
29.4692
16.5416
122.566
0.377335
0.284053
110.782
25.3996
98.2673
0.342637
8.10137
123.183
108.902
73.7535
0.289937
0.30116
0.281351
19.5923
6.6993
274.185
0.307142
9.2769
4.60538
0.339727
16.9804
0.446806
5.5868
50.4874
32.8288
11.2631
263.161
80.4035
0.266703
82.5723
0.378667
4.37613
10.1367
0.478373
129.547
8.09049
256.663
6.91176
2.92861
0.437219
56.1712
248.966
0.244564
101.585
42.9139
10.9921
5.25026
2.68793
0.246076
4.6974
53.6264
27.6849
53.0924
174.77
162.043
2.47006
9.74106
7.38636
86.0829
3.56693
0.464447
1.0561
219.72
0.177912
0.601715
0.610058
31.985
11.54
12.5016
1.14949
6.94912
4.1708
0.64311
2.10518
36.5778
1.33239
1.35569
2.39158
4.02574
0.448042
3.19725
1.66719
0.316705
130.727
2.46383
1.96973
3.90023
3.11647
1.3293
7.50449
3.86112
3.24707
0.342084
3.79275
24.5839
47.8157
2.14664
6.75662
1.50437
8.35671
3.76843
3.39492
1.99743
3.78728
3.4805
3.80563
1.89924
9.11233
4.57926
179.794
2.64113
6.1402
4.29765
5.03547
4.76073
3.87706
16.4322
1.31344
3.60458
5.54689
3.89462
3.87295
6.811
6.53357
13.9192
1.02957
2.73398
3.48497
0.839767
1.13927
5.7143
3.18419
2.49996
3.08038
2.21154
2.68058
8.68546
4.41362
4.12062
2.73639
0.469108
0.639688
0.201167
6.97663
25.6589
4.2617
52.8443
12.6076
2.85673
2.53219
4.29239
2.39532
27.7225
50.0109
9.26722
3.04399
6.63623
2.10008
2.70587
0.602854
4.28069
9.99189
2.71923
8.06839
195.429
26.6015
1.31345
11.426
11.9111
1.14323
0.673578
0.207858
0.379082
33.5078
7.9782
2.72947
5.48557
3.43165
0.678735
0.203792
0.363528
60.0591
28.4902
4.07314
33.8188
80.1331
7.06842
2.35306
6.87795
202.096
11.3317
0.705119
3.80292
18.9603
14.0142
2.75556
34.8812
20.0493
9.33471
29.397
9.71913
0.607402
0.174989
0.290607
22.7269
10.5775
29.0685
29.7673
79.4866
1.40234
196.359
167.261
1.49701
6.14644
8.42061
5.18299
12.2041
5.48048
6.64506
5.64616
14.0252
11.4303
3.98095
46.5313
31.9184
52.2173
2.19462
45.395
6.59582
2.04849
29.6204
0.180629
0.175087
31.5628
9.55279
5.47475
28.9091
0.64601
5.49862
7.05012
16.9002
21.1188
5.94069
0.64385
0.182121
0.326604
39.9262
51.5359
2.03628
29.0233
62.5164
56.7735
79.4455
5.68263
2.04525
0.960106
0.876101
1.59964
175.651
1.36132
47.8195
51.7174
4.81976
10.7804
112.754
0.426427
1.548
11.0644
14.1247
15.4133
6.53252
51.0296
48.4825
10.2529
35.4172
36.1764
0.187578
3.41894
1.63842
0.62806
0.804556
1.37425
6.44347
4.95098
12.0871
0.530866
0.179225
0.350621
95.0924
87.462
0.182237
0.286407
102.909
75.1557
23.2707
0.198815
62.7603
4.98366
2.96394
1.02411
1.81558
190.048
1.25496
0.234609
0.179501
123.476
74.6193
95.6261
1.25918
85.2471
82.5113
28.2987
11.4964
17.5119
22.2843
11.3718
3.29363
3.31101
3.5737
3.51323
34.1969
26.002
1.17663
1.16036
23.2099
43.4443
39.1213
79.5531
51.3003
22.9337
3.42211
42.8347
2.85676
3.93068
129.263
54.286
72.8559
93.8543
51.7078
22.636
14.0931
15.4866
7.87664
1.58111
3.49213
0.565996
0.201945
0.342353
1.5844
1.88692
1.38665
83.3614
84.4636
14.0271
66.4414
4.71471
6.48204
3.54787
1.04891
98.7864
28.5979
81.2344
25.1874
1.57843
6.26263
69.628
14.0888
11.3212
0.192471
66.9176
3.08366
4.06261
1.07825
34.428
69.4789
5.53812
3.44707
22.467
112.801
0.949018
0.834077
0.261238
1.65615
1.44192
1.48372
61.3835
1.18302
0.279845
0.447065
26.1225
1.53153
1.35032
64.2789
0.204599
165.926
3.14274
3.13723
3.77363
33.5183
171.327
12.9911
3.13665
3.45104
79.3581
49.6453
0.143022
1.21158
1.26788
2.86713
12.9126
1.96249
0.509937
11.1293
6.85657
0.167051
1.19433
3.20294
1.20275
10.1436
3.56536
2.44237
3.6068
1.12572
20.2377
33.4209
3.27935
29.3843
18.5083
1.97704
2.89939
49.9426
3.46599
73.7057
39.9083
6.09103
41.4512
16.8346
129.297
27.7605
53.5889
3.16892
85.4219
6.83577
19.1438
2.73929
1.37081
55.7177
5.93792
10.8939
4.8831
16.2334
8.10346
5.3425
63.1373
17.3172
57.3259
21.1203
4.03963
3.92315
0.450816
0.195926
0.362174
30.4188
145.259
19.3515
1.13414
0.338344
95.1
8.6582
199.721
115.373
52.9923
72.6597
38.572
0.673408
31.4868
1.51489
3.1012
40.5317
56.1551
0.332256
10.0879
34.3544
32.1252
75.6813
0.520378
16.1318
62.5351
47.7874
6.44309
0.416741
54.4528
98.6934
9.95324
21.7405
83.8282
92.406
24.6352
0.215804
3.81033
29.8458
22.7218
0.176856
30.9192
26.1648
32.2658
4.44069
23.9526
22.742
118.134
4.0814
1.8896
0.162047
0.447654
31.5856
148.977
77.9259
83.0186
68.6019
321.865
0.768638
5.72101
6.36575
53.3367
3.19689
182.776
38.7625
0.373036
0.74459
1.54099
0.191784
0.231348
68.9975
74.2207
62.9894
44.0003
175.724
57.468
7.21987
17.6118
91.0158
116.585
29.6727
545.756
4.97439
0.182756
30.5376
93.2481
22.7238
23.2749
42.1711
6.92455
0.223057
39.0063
0.174164
0.542045
27.1749
0.487744
11.9859
0.324557
63.4137
3.58413
47.1712
6.39512
11.3371
15.5604
24.7013
37.2822
60.3334
0.382987
127.936
2.48775
3.80041
0.156798
0.604431
3.65225
79.0604
45.4965
103.506
1.13451
86.5545
127.503
1.1018
26.2617
3.63355
3.72524
1.54652
2.02991
91.0642
51.3057
3.7307
4.09684
60.6273
12.6385
17.8461
49.866
1.17437
15.9611
5.62816
107.408
5.13056
35.318
0.242551
0.186629
12.8612
92.468
14.6206
59.1102
71.4809
2.38253
2.00899
37.142
4.22549
0.476126
102.335
0.5187
0.216411
167.606
11.3545
77.3061
1.39772
50.3973
58.7851
0.357522
8.08527
18.1365
60.9565
57.2163
5.56164
24.5114
50.2067
46.1025
13.7243
10.0807
8.88254
2.01954
0.300014
0.334388
65.3893
29.0511
5.87077
4.61564
96.8312
8.83363
46.3663
31.0622
1.32704
5.12674
61.5159
84.8225
0.396416
0.160925
0.528843
43.7909
26.323
49.4996
5.42121
3.71083
51.1203
74.958
0.173083
36.0348
131.86
75.5335
27.3771
73.0832
0.963319
21.4492
68.7138
0.468293
0.234004
0.352489
21.9
0.23106
5.53384
56.8859
0.201812
36.3593
15.6396
4.77464
6.68276
250.701
10.6455
23.6373
0.23242
28.5906
66.5028
30.526
5.54569
0.357759
0.20022
0.355042
42.6706
14.2638
18.4946
80.6799
15.3525
30.0564
205.613
47.847
58.9544
0.6656
60.184
2.71085
0.525647
51.3812
27.7783
3.58733
0.682332
1.68698
24.1102
38.5304
0.895629
0.241217
39.853
86.9127
4.75253
15.8676
8.80345
91.5628
190.09
165.734
0.202674
13.4109
66.3917
119.357
21.372
50.9148
5.11825
20.6908
22.7274
66.9794
14.6539
37.1794
6.12099
13.5275
0.142524
31.2455
3.82206
0.376243
36.9182
2.20541
5.69065
109.414
32.4416
0.168581
1.11601
44.5435
40.366
52.6623
27.8089
2.80433
2.28664
0.159123
0.315826
0.224075
1.16965
101.293
0.473705
25.2964
59.5205
3.44149
0.221679
5.29788
9.10258
101.098
0.2529
0.316555
0.321934
2.6876
29.3443
2.08817
3.59412
0.151506
0.185637
0.35863
0.478688
3.20124
1.90028
5.91513
23.7592
19.963
1.12098
26.1476
7.97144
20.317
2.15938
0.926349
0.314481
0.659687
0.217272
41.9673
0.214939
49.1647
69.983
39.8437
59.5808
0.199906
6.35296
1.03181
225.63
2.30086
3.50331
0.352878
0.242497
0.345001
4.85299
0.447772
73.5171
219.377
0.191563
3.44551
0.337341
2.90916
2.23486
24.3183
0.136772
57.8937
19.6034
43.3519
71.272
0.805245
2.45667
5.99688
94.6781
2.94095
60.5625
9.02891
31.2351
0.400928
6.81925
0.43329
4.48815
5.39512
23.1329
26.0133
1.33935
0.231575
3.48662
1.20226
1.09635
33.1842
55.4821
42.5024
40.3229
45.4384
16.6935
28.5169
6.07434
74.6474
6.64218
23.6006
0.250459
43.1214
63.0482
92.136
12.1179
0.34765
2.37343
0.850329
0.175944
2.20208
8.08874
1.61486
4.0226
93.3237
0.149863
1.86011
58.3338
8.04766
30.6035
21.7907
31.2559
70.6166
6.0334
3.03488
2.09948
7.23566
11.8067
2.49283
1.37533
28.4648
0.291149
3.99835
3.90238
0.238162
19.8374
0.299164
0.635676
0.290364
0.173834
0.346636
0.691424
3.02095
3.77618
8.695
0.477926
0.202178
0.548249
57.5364
45.1508
13.6838
10.5712
3.59139
3.72417
3.60043
76.5369
47.961
41.3017
323.465
11.8496
74.1999
88.7756
124.74
29.5844
0.304716
0.303943
0.166924
0.219434
0.303546
7.65075
30.0764
82.0575
0.313835
0.75922
2.63945
27.2307
11.7021
64.5876
0.12128
1.6119
58.2552
11.9069
24.2249
21.0432
1.24243
0.187826
23.328
20.8407
107.227
1.22739
14.452
134.568
3.06755
38.133
50.3154
1.22489
0.996821
12.2175
1.52815
0.31645
2.92007
0.258411
1.06746
2.13293
1.08691
3.33496
0.565084
1.6114
193.164
57.7199
0.210758
0.135135
0.366317
31.0372
15.5071
0.256746
25.6662
37.7777
0.255336
66.0627
26.5096
37.1918
102.32
239.609
59.484
28.7762
0.377397
16.8719
47.4776
24.9301
3.76111
0.668203
93.0712
0.203226
79.4156
3.39216
0.30371
11.3228
142.223
48.0433
0.289607
3.25435
33.7322
4.00918
6.7228
0.466624
3.20203
1.64638
115.162
3.95886
37.9952
0.259827
0.224466
0.324804
1.16529
0.289118
0.412094
53.6991
0.204827
47.9067
102.456
6.28743
9.51353
199.158
8.10979
5.17476
170.391
16.4362
14.324
202.332
6.14278
133.413
0.278718
0.185946
0.336388
60.2461
4.18241
0.207395
0.940496
0.206114
0.188619
28.3894
92.5758
29.2615
6.93204
14.4161
89.8389
29.8312
27.8244
10.1267
7.17413
13.9291
105.333
34.6311
169.377
26.1591
0.225049
2.53024
0.318527
36.2964
1.13944
55.3349
43.8742
17.5145
5.36339
5.50628
31.711
0.961828
0.255105
0.527355
0.339756
0.250481
10.6447
5.37995
26.6444
4.29388
12.9536
48.4396
54.5384
25.1484
293.628
17.0938
0.50408
0.381008
0.270458
65.8871
3.05317
22.5166
6.24702
0.176408
4.93914
110.284
54.9608
5.56077
6.09135
28.5739
53.9809
2.20275
0.241229
0.216261
23.891
303.513
4.07474
19.6974
35.4914
51.9084
22.2305
9.62015
5.32789
29.39
73.252
20.1266
0.194261
6.13121
0.0647296
44.2798
0.0635398
26.2645
298.371
14.0516
5.18457
46.776
0.479272
6.14192
13.4532
0.0776568
29.9538
0.508225
0.0766533
8.31182
19.3094
83.2734
37.5374
5.15631
0.553144
0.565482
0.663415
0.0971745
0.11893
0.341733
2.6707
28.3458
61.1479
28.1443
13.182
8.68489
86.5032
61.7148
10.1167
2.14007
0.714363
4.24956
150.125
102.279
43.3783
3.21077
0.605096
80.9119
1.51482
18.171
8.71791
59.6674
3.98594
116.4
21.8295
25.8642
8.11832
77.0824
313.688
0.131072
35.1311
0.614017
3.12103
53.3984
11.2972
0.312979
0.144412
0.193631
0.290137
1.43213
103.936
28.03
11.4499
206.187
16.9316
5.38754
62.4199
40.6416
13.0165
114.152
0.544342
18.7919
0.20314
16.1528
62.6216
0.222672
19.4483
46.9628
7.62552
38.8177
0.491472
1.40315
40.1632
153.589
51.8428
74.127
22.2178
320.562
0.241374
27.9668
52.7139
5.33957
114.389
20.5759
120.732
22.7423
9.4071
258.54
42.9277
35.3279
0.242039
0.204487
0.306196
51.888
5.88951
4.34189
0.440976
28.6666
31.3841
0.264759
0.601237
4.30727
14.1888
79.3182
3.19878
0.750636
13.0553
46.3759
29.1498
18.3063
0.391202
112.971
23.6703
2.76258
51.9985
64.1042
0.267201
47.529
27.6689
63.5179
33.8399
34.2537
6.73766
0.23825
0.276219
0.263408
0.130027
0.38506
7.75031
9.87568
69.0462
24.6701
15.8426
135.073
35.4986
45.4043
1.99466
7.82052
38.7518
2.78471
16.8503
6.37493
67.3771
127.053
87.8173
29.9176
74.3384
3.22543
39.2154
42.7467
10.0951
0.199624
0.599939
93.6454
29.772
1.16614
72.2305
88.5991
0.213533
49.1306
24.4041
74.8917
164.225
70.3825
0.118904
64.9824
0.388432
0.39915
0.324842
57.5828
40.6717
69.7395
0.444606
3.35651
100.866
7.52282
0.26637
10.5005
58.6032
37.7444
74.5998
155.146
55.3997
0.86018
0.304474
39.0791
33.1593
194.267
114.289
162.069
1.74157
0.590883
108.216
86.9617
0.30988
0.131071
0.226639
0.249005
2.27023
0.960458
108.51
13.2621
2.28199
21.3832
25.035
7.71074
63.4308
110.899
65.2132
5.68502
33.1803
5.56207
42.8456
14.8444
8.0414
132.13
131.582
40.2347
75.6558
371.61
308.184
0.406013
1.0722
149.128
80.7803
0.311176
0.171112
0.33264
1.85474
39.2936
116.837
54.8367
14.8012
0.276524
83.7431
0.328358
0.612627
0.342989
3.70352
0.829979
59.333
134.1
50.3411
4.30293
110.958
0.517421
6.02368
93.4396
39.7348
55.1711
29.5161
9.41301
97.7816
65.9573
0.248478
4.79601
2.7072
5.56406
4.31249
15.1536
81.644
32.9512
35.6352
25.2153
20.7653
20.0467
21.9458
1.33559
0.242867
49.0253
3.33987
13.9624
407.061
10.3417
84.4455
61.5843
0.32537
0.425205
0.309021
0.238629
58.1609
65.7259
66.4022
0.665976
18.0717
5.87629
1.58619
10.0243
41.5291
6.131
5.73178
4.60956
0.202409
1.35409
0.284069
0.385245
114.915
42.6734
1.15717
49.4166
394.734
112.395
134.836
42.6746
0.284748
40.0423
4.90003
3.03081
51.4363
158.987
0.268706
0.283516
0.143526
51.652
19.6311
88.9784
1.81889
3.60494
45.263
14.3864
0.149102
0.985622
1.23274
1.89033
8.55794
107.487
28.8896
6.10701
92.2232
39.2695
59.6577
68.3063
5.43481
61.5664
5.62877
19.3519
52.8117
30.6247
28.609
0.313621
0.287282
44.6947
1.04548
1.78175
0.534388
80.2606
31.1958
37.1393
0.723792
40.4833
0.733309
46.6154
35.1057
27.8212
31.8709
28.8773
57.9019
26.3968
1.2434
41.0267
35.3064
0.500306
2.53957
0.406719
3.34857
3.65611
17.1898
40.4181
0.414095
2.95556
119.235
1.34998
47.6002
0.202288
0.326928
141.469
174.282
0.182315
0.489829
0.286593
2.27995
3.84304
0.308177
0.915323
0.41545
0.781541
0.40175
0.315793
46.3023
0.637828
0.208891
28.2273
43.0599
1.31634
30.5127
0.548861
1.26766
35.813
77.108
25.7449
0.19166
35.4608
120.821
70.7384
68.8039
11.4503
0.29227
0.704416
0.363733
40.4798
135.285
26.5418
4.36879
8.37759
8.50956
0.175805
2.46752
7.00404
60.0915
4.90815
59.2034
0.176809
8.55728
113.016
36.1559
5.00886
34.6965
0.180973
92.8075
40.508
36.7965
0.186127
0.915952
0.179488
0.177035
7.02212
16.3306
2.25326
39.2961
25.5853
117.01
19.3179
12.1501
0.728402
3.2615
0.639975
87.881
29.5235
32.8347
2.69205
88.2825
6.08789
21.7304
38.9245
0.20007
0.256419
11.1038
89.3598
74.7373
38.1671
54.0863
38.1009
51.3698
2.56131
3.19732
0.435188
6.17911
5.42041
709.321
90.0377
3.8717
101.076
35.1563
1.70373
1.45614
6.19743
1.12219
0.496067
0.83525
43.0503
29.8301
40.1113
44.5895
32.3552
0.84225
3.07399
0.183245
6.49591
22.4289
58.4785
528.357
16.4186
11.0458
0.188844
1.35963
108.795
60.2052
9.00285
0.622629
1.41488
12.3266
5.66226
4.43746
30.4011
176.235
0.335484
0.321647
0.175599
9.30966
8.19732
1.69537
73.0557
0.973326
292.088
35.4448
61.6474
101.468
0.149571
0.859379
8.72154
12.1012
0.347597
5.2048
4.91881
39.335
83.1028
64.6812
1.8371
2.87389
88.2732
0.430272
12.5801
14.1378
38.6422
62.6022
89.2975
0.648215
0.28345
0.326745
60.8102
11.7863
158.463
37.612
2.08105
40.4764
120.916
64.7611
56.2643
7.30487
77.1813
46.8363
19.8624
0.274859
0.40644
33.9327
0.583879
7.68655
11.6411
1.13749
73.7303
418.075
335.087
7.11198
84.4133
2.74586
1.87317
1.36333
0.37379
82.9659
27.3606
0.696533
0.535894
0.314278
1.38644
13.4316
16.7574
91.5538
40.0099
1.7491
295.828
1.13402
48.5098
101.377
83.2364
48.1692
18.342
6.78343
81.1486
0.312469
0.9893
0.246468
0.874596
2.94507
22.3623
61.3862
2.65317
40.9618
0.531662
0.297262
4.12885
10.1113
1.71754
1.32551
92.8475
40.7506
44.4729
10.3856
0.481941
0.177597
12.929
207.034
3.41125
338.507
0.695558
2.80337
49.5064
40.6781
1.45149
27.9413
173.329
0.85399
18.1387
45.4093
20.0621
75.5118
71.8625
10.8526
21.6581
1.58194
22.9795
87.9969
12.7662
121.842
15.8475
7.90974
0.667029
26.7187
15.1633
20.5348
80.4734
1.16327
19.1336
7.9355
0.262662
0.532777
7.86883
0.148314
7.31098
13.91
8.32268
11.7408
18.1528
58.0976
108.317
91.6725
58.4622
0.511315
0.278921
0.766513
0.36481
4.17505
9.94221
1.12934
1.26992
12.3639
81.0506
0.417717
1.04892
1.07679
23.0243
81.7572
2.48776
2.1031
1.26709
2.58235
59.5432
34.3822
2.53629
0.186506
53.3558
95.3159
25.6002
0.390188
6.35135
0.227352
0.373662
1.1006
0.164217
2.53835
41.6393
0.474743
0.624626
36.988
57.3159
0.530475
30.3268
0.338208
58.9834
0.180295
88.5218
2.75482
0.709623
5.55803
61.2547
95.4169
101.243
35.5702
30.2073
46.4103
1.67431
51.6332
44.3693
0.580209
0.327392
2.4703
2.50859
173.733
17.8153
24.7537
3.11861
49.7378
61.3337
68.2414
13.4597
576.726
13.2571
0.811501
0.178805
0.163169
0.225028
0.275914
1.71828
12.0409
0.34235
0.481993
0.992594
0.265096
1.21755
3.92179
5.54678
22.6032
60.3793
114.446
0.544008
3.51684
0.152708
2.74888
65.2094
34.776
14.7205
6.01212
99.04
131.033
99.8838
5.07479
10.3178
0.412026
0.299494
0.871372
15.1523
8.93124
36.1337
0.183387
110.188
253.605
120.021
3.80997
47.6972
31.159
42.993
0.283347
1.2118
0.554543
34.6512
0.119594
50.0373
36.9516
3.12315
0.0857525
88.8141
254.249
8.10059
28.5163
36.4261
8.42947
51.447
0.202498
0.515701
11.4918
78.6356
121.06
56.3715
190.04
502.556
1.59774
310.164
0.304902
402.539
9.93763
4.36806
5.7997
95.5272
0.221988
0.26431
0.356177
0.306605
2.70514
2.81292
2.7776
3.05548
0.186136
3.13106
65.5264
55.6044
60.344
67.7642
64.2307
71.7571
52.8865
91.8675
44.6004
40.6325
43.274
43.3917
55.1493
78.3991
39.4869
42.5817
46.6681
36.7411
52.5875
20.6154
16.9709
18.6715
22.4805
102.323
2.9673
15.4811
86.2629
0.151179
123.51
115.498
119.447
121.649
14.2047
163.479
167.081
186.634
52.2545
168.323
165.077
35.7059
165.832
166.233
153.313
211.389
131.77
147.532
236.939
251.722
160.751
226.297
164.86
51.6264
159.981
151.312
83.1675
50.1532
35.7489
47.7116
39.4419
0.121358
0.10881
144.39
0.505838
0.119599
0.14935
3.82023
96.57
6.2093
0.197559
1.61694
1.14926
0.192989
0.229136
0.5537
0.3709
8.34968
6.90211
12.8075
2.80896
54.8042
10.5963
2.38348
11.9752
8.70505
5.74333
0.884591
0.333137
0.157797
0.661023
40.6261
1.65933
0.798192
4.15899
13.3942
24.8716
3.5218
119.082
0.141765
97.6869
1.14176
1.59555
11.8542
1.22288
236.882
0.301295
1.37693
1.02512
17.1472
0.271348
0.328652
1.79013
30.4099
1.71442
1.43221
75.0855
45.2413
20.3176
109.655
0.76362
2.36396
12.5304
20.616
101.496
0.401783
0.344155
0.188439
31.5725
10.5667
2.65826
12.2227
33.8585
1.67218
11.9921
325.597
0.184434
24.3177
1.70207
47.4331
2.09033
2.2061
3.23228
6.96628
46.0279
5.31947
15.2033
37.9583
4.82819
0.460406
0.965132
0.225561
0.57261
0.219217
0.259726
1.89299
164.372
1.51584
51.7718
1.53831
0.284164
3.10795
1.50961
1.33215
7.123
2.43281
55.6838
2.89567
25.7567
121.832
1.95424
0.139508
64.2341
0.857518
25.9136
12.6506
7.46719
3.85525
2.3247
2.76182
48.4762
31.6576
33.9395
10.5058
34.9726
3.72867
22.6421
6.35051
1.78788
1.6773
3.89141
2.10639
3.77417
0.319634
0.190966
7.47709
0.355845
46.347
18.8808
0.183746
1.49542
321.458
4.94039
0.221294
127.214
73.815
141.557
45.0629
42.5334
0.148784
60.9903
37.9061
13.3183
37.8794
9.14318
0.309232
0.336788
49.1265
1.96442
8.79517
4.71918
2.25883
8.24253
155.502
9.25143
0.358644
7.76753
62.5862
40.0723
32.6309
0.170042
0.288334
0.179083
36.2584
0.971652
51.2865
28.3565
38.7684
50.4832
59.7466
6.97885
91.097
8.2052
1.22302
30.1666
33.3116
171.314
0.204827
4.75606
0.517204
2.9935
6.58825
11.6689
0.152088
0.217072
0.203671
0.486583
0.345472
0.188654
8.33747
13.0254
13.1208
24.4445
100.896
4.82837
2.1259
0.185091
30.8074
0.162301
40.2938
84.0549
67.1605
33.4434
98.3512
42.1886
15.7524
12.3854
1.9653
0.331955
34.7721
52.3863
7.19847
46.3788
26.3296
12.4539
43.7361
67.9785
0.141073
121.527
1.32347
76.4377
20.2007
87.6917
1.78797
23.1412
10.9152
3.26847
4.2024
0.410694
0.154205
36.3847
4.56389
0.331213
80.8793
168.24
0.108766
1.91401
13.3939
36.1391
0.494051
51.3245
38.7676
94.032
98.5868
60.6873
70.8045
8.52486
5.51738
29.7436
57.4347
100.08
13.0651
0.583858
5.59254
47.2988
0.81117
23.1793
10.1915
4.72862
5.77228
127.883
35.2771
138.617
44.9805
9.90082
8.67804
54.9938
0.390536
36.112
0.133333
0.281467
37.8007
74.6537
74.3413
34.3374
129.782
381.567
2.32951
1.6629
52.4305
26.6574
7.0721
1.55775
39.446
20.6173
33.8928
59.9682
38.9237
15.6403
2.00394
0.314706
4.71363
29.8724
15.18
0.240914
2.91081
20.1147
41.3596
0.265248
0.558543
0.348911
0.178874
32.4917
0.111754
0.274277
837.696
0.285004
98.7792
1.6536
70.6301
44.3566
52.5545
0.104893
98.2255
37.7505
1.3175
341.81
0.597268
0.551555
0.335673
0.187153
1.27854
54.433
175.319
1.62978
0.264431
1.98863
1.22594
25.83
157.024
29.1408
17.1413
11.0277
4.29612
0.147943
2.02277
29.6625
0.656572
29.4726
2.21681
2.84287
78.602
83.1765
0.173694
22.3546
1.05648
1.50899
0.377181
1.93496
6.2861
11.4355
36.9026
12.4872
60.8138
10.7637
2.6403
7.48405
45.9788
37.3282
78.6774
131.47
103.86
370.607
217.194
20.9309
139.406
44.6965
1.3144
2.63156
53.6226
111.376
0.18292
0.211957
36.9298
1.28551
0.610516
0.202026
0.339603
27.7775
44.413
133.943
65.6184
1.26429
0.156135
0.556549
0.270672
0.179691
10.6048
2.34288
18.3275
34.1686
0.356485
56.7061
48.5214
31.7177
127.938
21.5319
62.5297
33.8635
10.5766
4.32009
209.172
51.0433
66.7007
0.180865
62.5726
0.18046
63.6208
5.02493
13.782
0.152673
0.423275
46.4721
46.7643
46.3472
89.5401
0.578559
0.32032
0.19993
84.9632
30.6632
45.6393
12.4405
0.264096
0.165628
24.2983
2.40714
1.33032
0.373858
2.33647
0.848928
43.7742
18.2723
0.197179
0.513798
16.0817
0.297904
0.719534
5.09577
0.378871
1.13943
74.899
74.6171
13.2998
65.288
5.07218
2.39432
0.396814
12.9901
39.9463
2.07629
21.3223
36.3819
67.7962
7.8958
61.2617
44.0242
80.5079
6.11856
9.79984
5.31678
2.63095
44.7399
41.498
9.21779
3.09065
0.522978
37.0314
19.3244
136.969
11.5374
13.8295
78.1388
0.177076
41.7883
11.0898
20.3513
11.4815
37.827
39.4085
11.0926
55.5686
183.155
410.7
0.180344
115.658
2.67892
0.674105
0.306724
69.948
103.963
35.2773
0.167471
0.218109
122.615
56.7766
4.60836
82.9752
105.727
335.197
2.58144
91.3566
100.288
67.5431
33.4677
31.3407
0.304621
45.3541
87.1118
34.6802
22.3133
56.3646
191.633
6.53643
1.02389
0.42735
2.81693
7.28705
164.291
4.05839
8.43164
1.52966
0.282781
69.8271
12.4331
122.282
38.85
33.7331
42.3602
9.93314
20.2636
14.1825
14.1384
0.286523
1.52424
459.392
0.656606
8.73463
2.50588
182.744
62.4134
0.248159
34.0983
0.966358
11.606
76.1095
0.36759
0.604132
55.533
7.59226
36.2287
39.1603
7.40435
0.239712
1.11759
29.3286
40.5638
5.69894
2.1378
0.427641
55.5257
39.1695
0.128959
0.468725
124.682
0.188789
4.23748
10.7962
22.6544
1.65528
22.8406
61.1123
0.209209
30.5168
67.1336
0.362212
17.9327
411.694
0.133514
0.356434
13.4101
0.199187
88.4976
1.03649
5.08279
43.4377
37.1485
0.595333
0.560246
123.144
1.78255
5.658
2.10376
10.1873
309.367
86.6922
183.55
59.9122
2.60608
39.8676
5.18933
5.96581
49.1317
0.181708
1.85526
27.286
0.216855
119.662
14.0923
12.0807
0.33728
24.7828
10.4023
0.451577
7.64572
0.996382
0.124638
0.249156
56.2329
0.192844
2.65581
83.057
43.7991
0.193157
0.339399
83.0004
0.245981
1.75541
19.4694
0.249551
29.8203
0.214243
78.7324
41.6409
6.46002
0.487245
1.70255
1.28945
97.5826
14.6269
1.22053
91.014
18.9018
41.7376
7.13139
2.31925
0.445392
0.18891
0.29523
45.0958
2.4966
48.0731
31.5741
30.2416
11.519
0.657835
75.9013
195.255
6.10316
0.135686
0.670022
0.281036
12.3679
0.498821
4.97262
11.5111
68.4894
1.25283
1.38406
52.8137
7.04682
439.606
12.5638
50.5705
416.497
87.8373
54.2395
12.7144
4.90182
2.20731
8.26328
59.2008
3.37591
472.529
133.244
43.823
12.6394
12.9349
12.7723
13.0468
501.624
41.7299
499.985
516.183
382.913
45.7653
385.966
360.164
515.074
10.7729
11.1255
323.212
12.3276
12.7518
0.413037
78.3843
65.9647
0.403743
0.32956
0.454986
0.409276
0.475502
0.475961
3.0274
6.77691
0.551997
40.4593
86.108
17.741
40.7503
75.2326
7.0067
0.476217
55.477
0.306174
0.212795
1.11487
15.31
28.3998
0.207391
1.59796
0.209002
0.234221
0.821877
20.0706
50.8697
102.138
115.067
62.5934
0.162973
0.554175
3.56584
32.8929
2.4247
103.791
113.845
75.0573
34.3927
0.187044
0.211255
0.400903
40.4432
36.923
0.121757
1.35418
6.68933
2.67621
0.365979
0.293261
39.9308
6.76345
0.493538
0.251648
115.828
32.7131
3.05523
30.9375
0.254292
0.170395
62.7534
0.705812
129.214
19.2937
2.34911
1.63678
0.544737
14.4676
0.108523
4.64642
97.063
43.9186
55.2182
8.31105
1.52253
135.273
43.0922
43.3724
0.635572
0.811743
0.739894
1.02256
0.333202
84.922
45.9791
4.4231
0.238536
6.55353
48.4588
0.310494
0.294956
39.7234
12.5255
0.825342
1.64003
55.0756
2.06436
39.9328
28.1768
0.520918
667.246
121.006
97.5179
0.937277
33.9778
123.147
7.12035
17.9882
90.2131
32.4674
30.7384
0.462324
0.245529
0.407201
0.668851
0.387318
108.274
70.7186
2.79313
0.76884
4.45759
2.00258
24.9999
106.241
25.6122
6.99872
0.413394
171.266
0.893968
2.13422
55.0532
0.222304
11.9105
0.182924
37.4521
84.2982
142.597
5.55502
0.457327
7.04445
14.7031
4.82433
14.4729
0.278779
59.277
1.49412
63.0155
59.9212
7.37495
0.143493
53.5603
44.4741
25.6708
11.0031
0.571435
0.202178
0.35101
0.20763
63.8868
72.7406
56.9122
1.04939
1.78843
54.4049
26.4696
5.81845
3.3443
8.31877
88.7766
20.6044
18.4394
90.1477
48.5615
38.9052
2.15923
45.983
8.90617
82.9418
81.3082
114.278
84.8417
118.61
5.19301
109.384
0.133808
0.467217
7.94752
2.56979
16.3264
29.6244
52.8337
0.302744
1.02751
0.461754
24.5134
62.506
46.7207
7.28234
22.5346
11.5701
8.42925
26.9905
111.579
41.7373
169.613
0.507297
0.36436
0.366569
0.248113
0.226446
12.1216
103.329
0.763114
8.91617
8.19937
0.388337
97.5072
96.2677
1.36192
0.154079
39.09
175.61
14.3826
257.083
4.81095
2.44605
49.0854
58.0793
13.5306
0.633536
0.796379
96.4303
2.90003
0.131191
1.74298
106.474
45.7286
4.4898
0.987223
0.128953
0.167444
1.30012
7.94529
43.7961
72.6585
0.96427
0.115835
1.86263
207.012
1.51471
57.5755
8.19132
5.26101
22.4326
64.8775
34.3505
18.4471
36.5213
1.39954
28.4259
46.9383
0.215872
0.713647
0.347804
167.27
0.261081
0.278101
59.077
109.969
30.6543
0.199088
0.174389
0.443772
0.179631
90.1654
46.6685
13.6333
5.12043
47.9295
63.0237
3.39082
3.70336
3.67462
11.0253
22.757
57.879
111.606
88.0465
73.4771
130.45
82.4104
36.6243
89.8785
42.181
122.83
37.1106
0.116667
6.50929
0.435856
0.17783
39.8166
2.44344
90.373
11.0415
34.3646
57.2624
0.510262
1.01571
84.0383
0.475948
92.4034
70.9816
46.7997
25.4119
2.95097
7.10906
12.6659
42.6815
25.3148
32.1379
7.36622
2.10959
75.3526
150.238
66.8403
65.9238
102.838
0.284603
0.733301
0.224283
0.302573
110.857
23.7183
8.58458
217.686
124.834
13.2127
38.9249
14.2277
213.767
130.142
2.32409
43.9144
30.3825
34.8559
10.0347
76.5798
25.2079
71.0532
35.9879
9.52372
55.955
104.556
0.13898
104.996
1.10506
0.275864
0.671123
1.74381
0.389818
86.5411
2.04527
1.0369
8.51716
9.02994
71.6401
42.3456
2.25927
0.943336
58.4829
10.6594
4.16332
92.4958
34.4797
3.7316
11.008
52.5026
27.6435
6.06058
26.9392
9.45332
0.340784
0.364004
1.27948
0.308926
35.2564
45.1447
20.8773
17.2621
237.706
0.19715
1.21866
46.1623
3.15877
157.297
65.8423
4.70124
10.1026
55.353
11.1495
38.7173
8.34828
0.301588
13.0422
18.8654
2.35921
41.0974
36.853
8.80541
1.47023
19.8174
0.30245
12.6215
70.0856
5.31161
23.134
235.021
51.1552
155.486
6.7712
37.0859
9.46729
2.12538
53.4644
22.4602
46.803
5.09153
0.508988
0.142171
93.3568
1.34262
62.8641
7.43013
39.7114
91.3511
0.14912
0.45739
4.97327
9.46363
19.8308
4.16935
2.1406
54.694
0.239818
1.02987
0.553611
0.213442
0.186587
62.1366
202.514
6.34959
78.2199
0.146617
0.37811
1.28004
0.173173
387.263
1.69301
0.233017
6.20686
25.1668
52.4822
75.4554
1.03438
304.388
191.148
1.51026
41.4681
97.9159
66.057
3.95299
4.44592
0.401513
5.86385
117.878
0.994016
0.344749
1.26225
29.9502
65.5501
105.509
95.5363
1.58195
0.307754
9.0313
0.341511
1.21655
13.3829
6.78356
8.16231
4.63973
2.09362
67.566
6.88642
55.3259
105.397
7.22751
15.7493
60.2806
0.176643
328.652
3.69432
30.9234
34.4848
10.8317
5.0685
1.89312
65.9405
0.288304
0.35454
0.187179
50.5982
0.903698
44.6636
23.5213
2.85496
47.8642
47.632
23.9994
8.42258
69.1418
1.05517
61.2038
0.328644
79.1772
0.187777
67.2246
4.63163
46.9124
17.1896
18.3367
12.3871
13.234
65.1378
52.9383
69.4457
97.6304
43.8106
209.246
9.01069
54.6484
0.713253
6.77467
3.85781
1.45552
49.8758
102.925
27.6173
1.50685
1.34086
0.340732
16.5775
3.30987
17.257
32.3333
96.9343
0.751069
0.320695
1.09769
0.1847
9.21977
1.82929
3.98172
6.49716
89.8244
2.58253
0.326578
9.05934
121.37
0.16433
0.44135
0.354847
0.528459
143.839
0.1175
8.89228
7.63478
15.6842
131.67
48.5315
2.42866
24.955
65.4813
5.65406
165.122
49.1777
118.468
0.416954
15.6685
43.6089
27.5387
7.26037
39.1303
91.5805
8.25444
0.312565
34.5098
41.1772
76.9892
0.25373
38.4197
25.8973
74.3382
0.313654
41.5172
0.16993
103.431
24.1867
3.20318
0.448894
46.8652
23.5486
12.2004
2.2145
5.82516
0.307685
79.0887
45.7162
4.72
14.3357
484.615
6.36888
2.67109
32.2952
39.9257
0.19733
676.819
0.248953
31.0087
80.1985
26.716
11.0372
4.39813
77.17
18.4695
5.70035
41.6883
111.187
39.9933
13.1436
0.125875
117.339
39.7597
0.332581
176.004
0.309931
39.3352
1.85533
138.778
1.27248
0.271085
17.4188
26.3841
60.5365
114.771
85.0172
146.876
170.2
23.9611
45.6497
3.9276
0.726284
83.7354
52.1581
21.6672
152.874
118.001
64.6465
0.342504
0.15672
0.324316
4.06767
7.30012
12.2176
35.746
13.0987
0.335466
0.276861
0.573557
2.17409
59.0598
0.187674
0.420725
0.284393
0.204942
10.015
46.1974
14.8373
4.79994
0.18866
6.01842
1.30562
41.72
50.7546
37.2841
12.5888
5.36552
30.4759
10.3994
8.03232
4.21773
221.254
65.7088
12.5392
230.266
47.2468
2.37495
19.6973
0.47731
16.0867
0.0941496
11.8627
20.3088
41.002
0.728916
1.04826
0.145831
44.3678
54.1898
28.2264
13.0461
4.77984
10.3804
0.821262
3.42948
1.50341
0.350382
0.854803
0.137826
12.2077
2.34744
109.442
0.34057
5.22199
9.12477
2.11555
11.204
49.6145
0.190559
0.776427
68.6387
0.224084
1.57108
39.1044
0.931141
0.183546
445.894
40.5268
96.5232
1.6214
1.35501
1.00887
0.118224
41.3558
0.218543
0.286073
0.164596
0.827053
0.468078
0.555406
6.07536
14.4907
0.73846
0.183563
0.614275
15.3929
6.0846
0.452446
0.162671
120.846
28.1106
52.5607
6.33222
39.3413
0.374446
38.5247
21.8655
494.952
0.335624
62.4267
79.306
0.241626
31.4295
0.52064
155.768
7.46595
69.026
6.58693
52.4441
39.4992
42.066
14.1905
13.3357
49.1801
1.22541
40.6357
4.28142
5.69467
0.515067
1.89889
0.376398
0.460978
1.65378
2.85942
18.6701
14.8432
1.22771
0.110771
210.822
151.863
50.9118
6.83722
0.175048
0.552468
0.214394
0.380214
0.120457
0.241269
114.03
67.512
5.39194
86.5067
5.49699
7.86941
0.333419
0.488787
0.2069
112.591
69.9867
38.3551
58.5404
69.6662
68.7881
19.3245
70.8232
65.6158
5.89588
72.9597
70.9764
72.8195
25.7046
0.284568
29.4255
1.25118
38.5504
144.753
331.417
1.57217
7.14711
36.3343
2.97048
2.46263
1.00157
0.126978
123.671
0.604131
5.52904
28.4904
56.9965
44.6815
110.434
0.329704
0.603241
0.229866
1.24586
5.07156
54.6821
87.2527
6.60505
58.4116
26.8939
120.813
0.688506
94.5318
48.6226
0.1512
14.0365
17.8957
1.19961
291.757
2.92023
5.23485
4.74535
0.337766
0.398884
0.18436
1.43545
4.58715
2.32865
0.186437
2.57954
16.8944
0.331004
0.570933
0.224736
11.6655
4.17516
0.453024
35.8898
1.02128
4.66063
567.352
22.1883
40.3355
82.1299
1.2604
62.2517
8.88919
0.295713
11.8875
1.85549
0.117882
4.13129
1.37173
44.4967
0.222641
0.22419
0.564908
10.087
0.539893
4.62885
76.3364
266.319
20.9705
0.186747
102.754
294.335
2.20576
1.04815
90.5535
0.229186
30.2573
4.81795
1.36488
9.87502
1.45185
0.248543
3.98051
89.7826
1.13865
38.1346
420.729
4.78642
6.85649
0.248647
0.603811
3.19392
3.02387
0.0946722
5.42437
0.499364
402.254
7.37721
0.299446
0.169137
0.315368
0.597642
0.191222
60.7293
6.0344
222.268
4.22095
0.614756
4.41428
0.902643
0.806309
8.93137
202.712
53.9046
180.492
296.239
2.02089
10.208
10.6716
5.0224
94.7207
0.34023
0.271141
0.135729
84.3354
0.299995
0.218457
19.0825
16.9348
20.1608
358.564
7.32478
4.29145
0.152369
37.3101
8.32654
7.54478
99.6697
6.77579
6.51264
43.3391
10.5816
49.8745
73.8954
4.7902
11.0107
93.4053
173.059
0.187512
84.9665
0.492729
0.547948
76.7354
118.036
59.2831
0.283896
489.975
42.029
0.180841
0.157869
22.6736
23.9269
365.916
0.230939
54.916
27.539
27.685
0.147605
14.6729
32.4475
90.3083
0.168662
0.420885
4.16188
1.37971
13.3495
1.22805
59.3504
191.146
4.26289
0.614074
2.14389
1.23513
76.1197
38.7119
24.0458
30.531
27.9888
4.48985
0.536432
65.7266
51.536
0.249985
114.894
0.29231
0.217532
0.22229
22.2715
0.313806
0.191126
47.8816
0.205023
11.2858
51.6419
105.098
6.71481
0.176494
22.4366
7.75939
35.604
17.2986
285.821
8.14944
0.30049
45.7346
0.234521
0.559612
0.189546
1.85819
7.65671
159.922
6.11092
14.736
0.315304
6.47646
119.649
12.8676
67.471
0.227838
44.3586
41.1143
99.4303
82.4012
12.0946
78.4243
0.449539
40.0138
3.30685
50.665
4.71661
143.398
0.283126
1.40931
19.0691
0.184877
2.23542
0.140309
0.225741
0.17058
233.807
25.8663
362.688
8.33387
0.667241
53.8963
0.630073
0.530419
1.39089
0.239179
96.7071
42.1362
0.538993
1.80075
0.317282
56.2663
64.5168
58.4326
5.65173
33.3989
11.8723
4.48875
0.578936
5.06986
9.28544
68.6751
0.283679
0.428101
0.220145
95.4496
7.15345
0.184665
0.495225
35.8223
26.0742
0.433215
0.518126
45.3113
97.3401
32.6625
10.8729
17.5897
49.4804
0.311953
0.184198
0.298374
0.203497
0.167723
1.498
0.837251
0.443462
0.211222
138.229
35.5714
26.3921
72.7441
0.211402
1.4805
18.5498
7.18905
0.732932
127.289
25.3824
70.3541
105.992
34.7672
230.947
101.59
33.8737
95.3292
12.6071
0.272787
43.9984
28.4547
97.9095
2.59054
5.04299
0.18075
10.0276
8.24825
0.365489
51.6568
2.30776
3.51915
13.9102
26.2071
9.49312
0.258446
0.187941
56.6448
62.0951
32.1946
77.057
51.6327
21.1407
111.66
24.2535
72.7699
116.883
32.5693
0.240874
0.336677
231.325
10.4182
2.59706
2.21604
0.896886
112.647
1.34619
200.588
78.9388
17.7549
0.205312
0.241609
0.326067
0.358534
94.2412
0.18245
1.29341
3.42616
10.5444
0.79807
9.22236
41.5238
129.052
41.8853
50.1141
14.7476
16.7287
0.669811
0.798347
6.55284
7.89973
70.6089
35.0301
41.4794
169.757
34.1366
31.232
22.4596
9.99856
41.5224
4.83866
10.4384
5.6882
0.463783
0.204027
0.190607
0.377799
1.09079
66.8656
0.565648
0.595145
0.24475
200.628
46.0156
76.3881
20.8871
48.4667
1.08012
72.1096
2.85961
65.169
5.82885
17.248
11.8976
11.8842
181.103
56.8368
41.1908
13.0844
0.186926
78.5334
20.1929
6.50154
0.205177
0.115288
8.02273
93.7441
22.2443
6.30699
28.4157
187.388
95.5534
1.47774
63.9003
194.568
23.8304
5.06098
70.9225
47.9661
44.1634
127.15
7.96605
18.143
2.57253
50.6652
12.988
80.6947
66.3396
136.336
2.59826
42.794
4.00954
7.88695
77.1394
35.6823
0.441631
7.4364
2.99184
9.82401
5.10971
25.2853
4.47185
1.06709
2.94491
18.6446
16.0516
16.7005
0.542581
0.380589
2.07006
159.215
238.384
56.2435
104.621
10.4277
93.4056
30.3501
49.9125
118.187
11.4726
16.2109
45.15
139.563
41.5602
10.1524
76.0555
128.297
31.7596
14.5209
46.3437
162.662
66.4647
64.945
36.1572
73.2742
10.5219
7.84324
7.06367
4.67391
18.5581
2.06101
8.52153
0.44436
63.3482
65.0035
35.765
7.66468
82.9293
6.57253
5.25553
120.627
12.6019
67.7055
29.8482
23.3493
)
;
boundaryField
{
frontAndBack
{
type empty;
}
wallOuter
{
type epsilonWallFunction;
lowReCorrection 0;
value nonuniform List<scalar>
396
(
0.0959686
0.0959686
28.064
68.4446
33.7608
100.019
0.442717
147.477
83.5556
36.7808
0.375358
0.110439
5.94511
0.312585
6.85195
0.45054
0.313835
25.1484
293.628
23.891
303.513
0.0647296
0.0635398
26.2645
298.371
0.0776568
29.9538
0.0766533
0.0971745
0.11893
0.341733
2.6707
28.3458
28.1443
86.5032
0.714363
18.171
59.6674
21.8295
25.8642
8.11832
313.688
11.2972
0.312979
11.4499
206.187
0.222672
19.4483
7.62552
38.8177
40.1632
22.2178
320.562
27.9668
22.7423
9.4071
258.54
28.6666
31.3841
0.264759
0.267201
7.75031
42.7467
0.199624
0.599939
29.772
37.7444
7.71074
33.1803
371.61
308.184
0.33264
1.85474
39.2936
116.837
81.644
32.9512
20.0467
1.78175
31.1958
37.1393
0.723792
40.4833
0.733309
46.6154
35.1057
27.8212
31.8709
35.3064
119.235
5.00886
34.6965
16.3306
0.435188
0.183245
12.5801
158.463
40.4764
120.916
418.075
335.087
13.91
59.5432
34.3822
53.3558
0.811501
0.163169
34.6512
36.4261
0.221988
0.26431
0.356177
0.306605
2.70514
2.81292
2.7776
3.05548
0.186136
3.13106
65.5264
55.6044
60.344
67.7642
64.2307
71.7571
52.8865
91.8675
44.6004
40.6325
43.274
43.3917
55.1493
78.3991
39.4869
42.5817
46.6681
36.7411
52.5875
20.6154
16.9709
18.6715
22.4805
102.323
2.9673
15.4811
86.2629
0.151179
123.51
115.498
119.447
121.649
14.2047
163.479
167.081
186.634
52.2545
168.323
165.077
35.7059
165.832
166.233
153.313
211.389
131.77
147.532
236.939
251.722
160.751
226.297
164.86
51.6264
159.981
151.312
83.1675
50.1532
35.7489
47.7116
0.121358
0.10881
0.119599
0.14935
0.5537
8.34968
12.8075
2.80896
1.37693
1.02512
0.328652
1.79013
30.4099
0.76362
31.5725
10.5667
2.65826
1.50961
1.33215
7.123
2.43281
0.139508
64.2341
0.857518
1.78788
1.6773
3.89141
2.10639
141.557
45.0629
9.25143
0.170042
0.288334
0.179083
36.2584
0.971652
67.1605
33.4434
98.3512
43.7361
138.617
44.9805
54.9938
0.390536
36.112
0.133333
381.567
0.314706
0.265248
0.104893
25.83
0.147943
139.406
44.6965
0.156135
0.423275
89.5401
30.6632
0.719534
0.378871
65.288
39.9463
9.21779
69.948
103.963
35.2773
100.288
67.5431
33.4677
31.3407
0.286523
1.52424
459.392
0.239712
1.11759
29.3286
40.5638
0.427641
55.5257
39.1695
0.128959
0.188789
17.9327
411.694
0.133514
0.356434
13.4101
43.4377
0.595333
0.560246
39.8676
0.193157
0.339399
29.8203
78.7324
41.6409
0.487245
91.014
45.0958
2.4966
2.4966
11.519
0.657835
12.3679
439.606
12.5638
416.497
12.7144
59.2008
472.529
133.244
43.823
12.6394
12.9349
12.7723
13.0468
501.624
41.7299
499.985
516.183
382.913
45.7653
385.966
360.164
515.074
10.7729
11.1255
323.212
12.3276
12.7518
0.413037
78.3843
65.9647
0.403743
0.32956
0.454986
0.409276
0.475502
0.475961
0.162973
0.554175
103.791
113.845
75.0573
34.3927
0.211255
0.400903
0.170395
0.108523
8.31105
0.825342
55.0756
0.937277
0.413394
37.4521
84.2982
142.597
45.983
0.133808
0.467217
111.579
0.248113
0.226446
96.2677
49.0854
58.0793
106.474
0.96427
28.4259
30.6543
0.174389
0.443772
63.0237
130.45
82.4104
36.6243
35.2564
91.3511
0.14912
0.45739
387.263
66.057
30.9234
0.44135
24.1867
3.20318
0.448894
484.615
0.0941496
10.3804
0.350382
0.224084
0.218543
0.286073
494.952
0.120457
112.591
69.9867
38.3551
65.6158
0.126978
123.671
0.604131
0.688506
35.8898
11.8875
38.1346
0.248647
0.0946722
0.614756
0.806309
10.6716
20.1608
358.564
489.975
0.147605
7.65671
14.736
143.398
)
;
}
inlet
{
type fixedValue;
value uniform 14.855;
}
outlet
{
type zeroGradient;
}
wallInner
{
type epsilonWallFunction;
lowReCorrection 0;
value nonuniform List<scalar>
528
(
2.13999
5.00124
1.6903
2.81922
44.032
29.833
18.9067
81.3067
18.5805
0.270679
1.86993
0.429572
3.97933
59.9458
72.8372
5.66915
2.16371
0.415901
0.30966
0.437262
30.7584
2.9901
1.63202
0.599977
19.4815
0.301589
10.1045
0.88871
79.562
2.75648
20.2715
3.09382
48.2239
4.22859
324.779
9.73744
16.2895
0.166848
6.52271
46.5019
14.4168
27.7127
3.71682
14.0181
8.01998
5.93989
0.618687
0.335339
6.81325
13.9945
64.3347
5.97976
5.98444
30.4834
55.9804
3.62157
7.56323
22.2128
13.2955
6.40593
11.0056
34.0584
72.0866
8.63439
5.94271
22.2697
12.8906
0.208319
0.258507
0.445205
0.158098
10.9649
1.53992
15.5671
77.5026
28.0436
0.3722
2.7034
75.6198
27.2739
82.6607
41.6696
57.3621
394.579
36.0583
17.1434
3.57734
268.891
0.692683
78.4167
10.8478
3.92446
64.7429
55.9649
28.9767
14.674
6.84616
2.28927
1.85319
1.13359
0.450773
0.829546
0.555196
28.2978
74.8262
41.6381
5.53277
54.2427
4.02581
1.93867
0.609345
9.96511
18.8806
5.4157
3.50707
0.307207
262.136
0.593357
0.392067
0.532919
1.53768
128.142
95.187
140.632
0.227057
29.8729
0.163169
48.4652
188.247
0.18725
10.4173
0.583856
0.462808
1.08695
0.380736
3.48422
1.00553
0.162272
3.21036
6.23941
113.973
54.4526
60.0855
2.41776
121.86
90.9912
3.33876
1.53119
0.734126
1.82518
0.414948
72.9972
3.38695
2.10577
39.1685
145.3
174.487
155.869
110.009
0.0981752
136.464
62.4744
56.6985
8.76807
0.583863
0.366121
36.1941
0.617025
4.8237
3.43475
30.7027
33.8819
0.550869
38.0929
0.170811
0.448644
0.272227
99.4632
28.7133
40.3699
25.5498
31.6841
2.49684
9.57002
10.1197
12.6234
38.0528
223.484
88.8678
0.267634
34.8023
0.508128
32.2592
102.591
3.82796
0.554463
143.503
36.7985
168.774
77.5963
113.835
74.0849
0.761189
0.539063
0.263153
0.578538
0.178752
0.394444
0.688723
0.356571
1.77529
1.42857
2.81766
0.826968
2.33242
3.00731
1.99164
0.945893
0.862501
0.35545
0.400152
1.98823
1.83211
2.46838
1.14145
0.683981
1.34542
0.311396
0.49922
0.208099
5.89162
0.981951
0.559562
0.403257
2.42597
0.344909
0.853267
0.833665
0.294409
0.940515
0.523931
0.19246
1.47065
0.478096
0.66142
3.72668
0.369308
0.180716
0.680074
0.880268
1.20491
1.60855
0.789361
0.313431
0.73512
1.60872
3.52875
1.06576
0.205502
2.39936
2.47296
0.232517
0.325743
2.99826
0.802718
0.749932
0.145233
0.872551
0.364082
0.783299
1.11396
0.455585
1.98249
0.342044
0.670936
0.179442
0.61779
0.248104
19.7525
0.67836
26.0706
0.367693
0.283088
34.1284
11.3436
63.2905
107.521
42.3553
110.492
0.34063
0.486631
108.502
17.4961
0.527845
101.585
7.38636
86.0829
219.72
11.54
36.5778
130.727
1.3293
7.50449
3.86112
1.89924
16.4322
13.9192
8.68546
6.97663
2.10008
9.99189
8.06839
6.87795
14.0142
10.5775
29.0685
45.395
29.6204
0.960106
47.8195
0.426427
0.62806
0.804556
1.37425
6.44347
4.95098
0.286407
1.02411
95.6261
22.2843
129.263
98.7864
28.5979
81.2344
25.1874
112.801
0.261238
165.926
171.327
39.9083
2.73929
1.37081
145.259
199.721
0.673408
31.4868
32.1252
32.2658
148.977
182.776
0.542045
1.54652
49.866
167.606
0.396416
0.160925
0.528843
68.7138
250.701
165.734
3.44149
0.314481
0.659687
219.377
40.3229
1.86011
0.346636
0.477926
0.202178
0.548249
1.22489
0.996821
193.164
142.223
1.16529
0.289118
0.412094
170.391
0.508225
8.31182
0.565482
0.663415
13.0165
153.589
120.732
2.76258
51.9985
6.37493
7.52282
0.26637
194.267
2.28199
35.6352
1.33559
1.35409
0.284069
49.4166
1.23274
2.27995
3.84304
30.5127
0.548861
0.29227
0.704416
0.496067
0.83525
0.583879
1.1006
0.624626
114.446
36.1337
253.605
120.021
42.993
0.0857525
1.61694
1.14926
0.192989
1.65933
0.798192
31.6576
0.336788
49.1265
1.96442
76.4377
20.2007
87.6917
1.78797
36.3847
0.281467
0.513798
16.0817
122.615
1.52966
0.282781
69.8271
1.70255
1.28945
0.811743
0.739894
4.4231
0.238536
0.278779
59.277
1.49412
0.633536
0.796379
2.90003
217.686
0.19715
1.21866
84.9665
54.916
27.539
27.685
0.449539
11.8842
187.388
95.5534
63.9003
47.9661
44.1634
127.15
7.96605
18.143
2.57253
12.988
80.6947
136.336
2.59826
4.00954
7.88695
77.1394
35.6823
0.441631
2.99184
5.10971
25.2853
4.47185
1.06709
2.94491
16.0516
0.542581
0.380589
2.07006
159.215
238.384
56.2435
104.621
10.4277
30.3501
49.9125
118.187
11.4726
16.2109
45.15
139.563
41.5602
10.1524
76.0555
128.297
31.7596
14.5209
46.3437
162.662
66.4647
64.945
36.1572
73.2742
10.5219
7.84324
7.06367
4.67391
18.5581
2.06101
8.52153
0.44436
63.3482
65.0035
35.765
7.66468
82.9293
6.57253
5.25553
120.627
12.6019
67.7055
29.8482
)
;
}
}
// ************************************************************************* //
| [
"[email protected]"
] | ||
4bc1b9a9dcb7aba2d6fc8e9ef6f09087684c024b | ea5e24990d56c94ba9bff975c6358c197dad9df2 | /socket/src/scheduler.cpp | 41bd68c0afb2ad79ef2f69aca862780ea013f895 | [] | no_license | jinliangwei/CommTest | 921e69788dad35b6d10a6f1b1a16c3a2f5426899 | ce3ed6119a8f0d3107b9e271de64038bf6d62069 | refs/heads/master | 2021-01-17T14:53:57.135880 | 2013-06-13T17:00:03 | 2013-06-13T17:00:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,027 | cpp |
#include <boost/program_options.hpp>
namespace boost_po = boost::program_options;
#include "threadpool.hpp"
#include "util.hpp"
#include "tcp_comm.hpp"
#include <string.h>
#include <stdio.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <assert.h>
#include <semaphore.h>
int loglevel = 0;
using namespace commtest;
sem_t sem;
void *inc_cnt(void *cbk_data){
LOG(DBG, stderr, "received message!\n");
sem_post(&sem);
return NULL;
}
int main(int argc, char *argv[]){
boost_po::options_description options("Allowed options");
std::string ip = "127.0.0.1";
uint16_t port = 9999;
asize_t nthrs = 2;
asize_t max_conns = 2;
asize_t nconns = 2;
asize_t buffsize = 2048;
int exp = 1;
options.add_options()
("ip", boost_po::value<std::string>(&ip), "ip address")
("port", boost_po::value<asize_t>(&port), "port number")
("mconns", boost_po::value<asize_t>(&max_conns), "max number of connections")
("nthrs", boost_po::value<asize_t>(&nthrs), "number of threads")
("buffsize", boost_po::value<asize_t>(&buffsize), "size of buffer")
("log", boost_po::value<int>(&loglevel), "log level")
("exp", boost_po::value<int>(&exp), "experiment number");
boost_po::variables_map options_map;
boost_po::store(boost_po::parse_command_line(argc, argv, options), options_map);
boost_po::notify(options_map);
if(exp != 1) return 0;
int ssock = tcp_socket();
assert(ssock >= 0);
int success = tcp_bind(ssock, ip.c_str(), port);
assert(success >= 0);
int connsock;
sockaddr_in clientaddr;
sem_init(&sem, 0, 0);
tcpthreadpool netmgr(nthrs, max_conns, buffsize, inc_cnt);
for(nconns = 0; nconns < max_conns; ++nconns){
success = tcp_listen(ssock);
assert(success >= 0);
connsock = tcp_accept(ssock, &clientaddr);
assert(connsock >= 0);
netmgr.add_conn(connsock, &clientaddr);
}
netmgr.start_all();
char msg[] = "helloworld";
netmgr.broadcast((uint8_t *) msg, strlen(msg));
sem_wait(&sem);
netmgr.stop_all();
}
| [
"[email protected]"
] | |
9b006f943f4158e0c19a26722c30f5799ccf5047 | e5e0d729f082999a9bec142611365b00f7bfc684 | /tensorflow/stream_executor/cuda/cuda_runtime_12_0.inc | 1ef990d04d76a7bf2de2f0027096bd9bdb46f9a9 | [
"Apache-2.0"
] | permissive | NVIDIA/tensorflow | ed6294098c7354dfc9f09631fc5ae22dbc278138 | 7cbba04a2ee16d21309eefad5be6585183a2d5a9 | refs/heads/r1.15.5+nv23.03 | 2023-08-16T22:25:18.037979 | 2023-08-03T22:09:23 | 2023-08-03T22:09:23 | 263,748,045 | 763 | 117 | Apache-2.0 | 2023-07-03T15:45:19 | 2020-05-13T21:34:32 | C++ | UTF-8 | C++ | false | false | 101,713 | inc | // Auto-generated, do not edit.
extern "C" {
extern __host__ cudaError_t CUDARTAPI cudaDeviceReset(void) {
using FuncPtr = cudaError_t(CUDARTAPI *)();
static auto func_ptr = LoadSymbol<FuncPtr>("cudaDeviceReset");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr();
}
extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
cudaDeviceSynchronize(void) {
using FuncPtr = cudaError_t(CUDARTAPI *)();
static auto func_ptr = LoadSymbol<FuncPtr>("cudaDeviceSynchronize");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr();
}
extern __host__ cudaError_t CUDARTAPI cudaDeviceSetLimit(enum cudaLimit limit,
size_t value) {
using FuncPtr = cudaError_t(CUDARTAPI *)(enum cudaLimit, size_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaDeviceSetLimit");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(limit, value);
}
extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
cudaDeviceGetLimit(size_t *pValue, enum cudaLimit limit) {
using FuncPtr = cudaError_t(CUDARTAPI *)(size_t *, enum cudaLimit);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaDeviceGetLimit");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(pValue, limit);
}
extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
cudaDeviceGetCacheConfig(enum cudaFuncCache *pCacheConfig) {
using FuncPtr = cudaError_t(CUDARTAPI *)(enum cudaFuncCache *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaDeviceGetCacheConfig");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(pCacheConfig);
}
extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
cudaDeviceGetStreamPriorityRange(int *leastPriority, int *greatestPriority) {
using FuncPtr = cudaError_t(CUDARTAPI *)(int *, int *);
static auto func_ptr =
LoadSymbol<FuncPtr>("cudaDeviceGetStreamPriorityRange");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(leastPriority, greatestPriority);
}
extern __host__ cudaError_t CUDARTAPI
cudaDeviceSetCacheConfig(enum cudaFuncCache cacheConfig) {
using FuncPtr = cudaError_t(CUDARTAPI *)(enum cudaFuncCache);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaDeviceSetCacheConfig");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(cacheConfig);
}
extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
cudaDeviceGetSharedMemConfig(enum cudaSharedMemConfig *pConfig) {
using FuncPtr = cudaError_t(CUDARTAPI *)(enum cudaSharedMemConfig *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaDeviceGetSharedMemConfig");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(pConfig);
}
extern __host__ cudaError_t CUDARTAPI
cudaDeviceSetSharedMemConfig(enum cudaSharedMemConfig config) {
using FuncPtr = cudaError_t(CUDARTAPI *)(enum cudaSharedMemConfig);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaDeviceSetSharedMemConfig");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(config);
}
extern __host__ cudaError_t CUDARTAPI
cudaDeviceGetByPCIBusId(int *device, const char *pciBusId) {
using FuncPtr = cudaError_t(CUDARTAPI *)(int *, const char *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaDeviceGetByPCIBusId");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(device, pciBusId);
}
extern __host__ cudaError_t CUDARTAPI cudaDeviceGetPCIBusId(char *pciBusId,
int len,
int device) {
using FuncPtr = cudaError_t(CUDARTAPI *)(char *, int, int);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaDeviceGetPCIBusId");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(pciBusId, len, device);
}
extern __host__ cudaError_t CUDARTAPI
cudaIpcGetEventHandle(cudaIpcEventHandle_t *handle, cudaEvent_t event) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaIpcEventHandle_t *, cudaEvent_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaIpcGetEventHandle");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(handle, event);
}
extern __host__ cudaError_t CUDARTAPI
cudaIpcOpenEventHandle(cudaEvent_t *event, cudaIpcEventHandle_t handle) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaEvent_t *, cudaIpcEventHandle_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaIpcOpenEventHandle");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(event, handle);
}
extern __host__ cudaError_t CUDARTAPI
cudaIpcGetMemHandle(cudaIpcMemHandle_t *handle, void *devPtr) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaIpcMemHandle_t *, void *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaIpcGetMemHandle");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(handle, devPtr);
}
extern __host__ cudaError_t CUDARTAPI cudaIpcOpenMemHandle(
void **devPtr, cudaIpcMemHandle_t handle, unsigned int flags) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(void **, cudaIpcMemHandle_t, unsigned int);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaIpcOpenMemHandle");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(devPtr, handle, flags);
}
extern __host__ cudaError_t CUDARTAPI cudaIpcCloseMemHandle(void *devPtr) {
using FuncPtr = cudaError_t(CUDARTAPI *)(void *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaIpcCloseMemHandle");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(devPtr);
}
extern __CUDA_DEPRECATED __host__ cudaError_t CUDARTAPI cudaThreadExit(void) {
using FuncPtr = cudaError_t(CUDARTAPI *)();
static auto func_ptr = LoadSymbol<FuncPtr>("cudaThreadExit");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr();
}
extern __CUDA_DEPRECATED __host__ cudaError_t CUDARTAPI
cudaThreadSynchronize(void) {
using FuncPtr = cudaError_t(CUDARTAPI *)();
static auto func_ptr = LoadSymbol<FuncPtr>("cudaThreadSynchronize");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr();
}
extern __CUDA_DEPRECATED __host__ cudaError_t CUDARTAPI
cudaThreadSetLimit(enum cudaLimit limit, size_t value) {
using FuncPtr = cudaError_t(CUDARTAPI *)(enum cudaLimit, size_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaThreadSetLimit");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(limit, value);
}
extern __CUDA_DEPRECATED __host__ cudaError_t CUDARTAPI
cudaThreadGetLimit(size_t *pValue, enum cudaLimit limit) {
using FuncPtr = cudaError_t(CUDARTAPI *)(size_t *, enum cudaLimit);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaThreadGetLimit");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(pValue, limit);
}
extern __CUDA_DEPRECATED __host__ cudaError_t CUDARTAPI
cudaThreadGetCacheConfig(enum cudaFuncCache *pCacheConfig) {
using FuncPtr = cudaError_t(CUDARTAPI *)(enum cudaFuncCache *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaThreadGetCacheConfig");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(pCacheConfig);
}
extern __CUDA_DEPRECATED __host__ cudaError_t CUDARTAPI
cudaThreadSetCacheConfig(enum cudaFuncCache cacheConfig) {
using FuncPtr = cudaError_t(CUDARTAPI *)(enum cudaFuncCache);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaThreadSetCacheConfig");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(cacheConfig);
}
extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
cudaGetLastError(void) {
using FuncPtr = cudaError_t(CUDARTAPI *)();
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGetLastError");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr();
}
extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
cudaPeekAtLastError(void) {
using FuncPtr = cudaError_t(CUDARTAPI *)();
static auto func_ptr = LoadSymbol<FuncPtr>("cudaPeekAtLastError");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr();
}
extern __host__ __cudart_builtin__ const char *CUDARTAPI
cudaGetErrorName(cudaError_t error) {
using FuncPtr = const char *(CUDARTAPI *)(cudaError_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGetErrorName");
if (!func_ptr) return "cudaGetErrorName symbol not found.";
return func_ptr(error);
}
extern __host__ __cudart_builtin__ const char *CUDARTAPI
cudaGetErrorString(cudaError_t error) {
using FuncPtr = const char *(CUDARTAPI *)(cudaError_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGetErrorString");
if (!func_ptr) return "cudaGetErrorString symbol not found.";
return func_ptr(error);
}
extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
cudaGetDeviceCount(int *count) {
using FuncPtr = cudaError_t(CUDARTAPI *)(int *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGetDeviceCount");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(count);
}
extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
cudaGetDeviceProperties(struct cudaDeviceProp *prop, int device) {
using FuncPtr = cudaError_t(CUDARTAPI *)(struct cudaDeviceProp *, int);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGetDeviceProperties_v2");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(prop, device);
}
extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
cudaDeviceGetAttribute(int *value, enum cudaDeviceAttr attr, int device) {
using FuncPtr = cudaError_t(CUDARTAPI *)(int *, enum cudaDeviceAttr, int);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaDeviceGetAttribute");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(value, attr, device);
}
extern __host__ cudaError_t CUDARTAPI
cudaDeviceGetDefaultMemPool(cudaMemPool_t *memPool, int device) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaMemPool_t *, int);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaDeviceGetDefaultMemPool");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(memPool, device);
}
extern __host__ cudaError_t CUDARTAPI
cudaDeviceSetMemPool(int device, cudaMemPool_t memPool) {
using FuncPtr = cudaError_t(CUDARTAPI *)(int, cudaMemPool_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaDeviceSetMemPool");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(device, memPool);
}
extern __host__ cudaError_t CUDARTAPI
cudaDeviceGetMemPool(cudaMemPool_t *memPool, int device) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaMemPool_t *, int);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaDeviceGetMemPool");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(memPool, device);
}
extern __host__ cudaError_t CUDARTAPI cudaDeviceGetNvSciSyncAttributes(
void *nvSciSyncAttrList, int device, int flags) {
using FuncPtr = cudaError_t(CUDARTAPI *)(void *, int, int);
static auto func_ptr =
LoadSymbol<FuncPtr>("cudaDeviceGetNvSciSyncAttributes");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(nvSciSyncAttrList, device, flags);
}
extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
cudaDeviceGetP2PAttribute(int *value, enum cudaDeviceP2PAttr attr,
int srcDevice, int dstDevice) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(int *, enum cudaDeviceP2PAttr, int, int);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaDeviceGetP2PAttribute");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(value, attr, srcDevice, dstDevice);
}
extern __host__ cudaError_t CUDARTAPI
cudaChooseDevice(int *device, const struct cudaDeviceProp *prop) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(int *, const struct cudaDeviceProp *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaChooseDevice");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(device, prop);
}
extern __host__ cudaError_t CUDARTAPI cudaInitDevice(int device,
unsigned int deviceFlags,
unsigned int flags) {
using FuncPtr = cudaError_t(CUDARTAPI *)(int, unsigned int, unsigned int);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaInitDevice");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(device, deviceFlags, flags);
}
extern __host__ cudaError_t CUDARTAPI cudaSetDevice(int device) {
using FuncPtr = cudaError_t(CUDARTAPI *)(int);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaSetDevice");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(device);
}
extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
cudaGetDevice(int *device) {
using FuncPtr = cudaError_t(CUDARTAPI *)(int *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGetDevice");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(device);
}
extern __host__ cudaError_t CUDARTAPI cudaSetValidDevices(int *device_arr,
int len) {
using FuncPtr = cudaError_t(CUDARTAPI *)(int *, int);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaSetValidDevices");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(device_arr, len);
}
extern __host__ cudaError_t CUDARTAPI cudaSetDeviceFlags(unsigned int flags) {
using FuncPtr = cudaError_t(CUDARTAPI *)(unsigned int);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaSetDeviceFlags");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(flags);
}
extern __host__ cudaError_t CUDARTAPI cudaGetDeviceFlags(unsigned int *flags) {
using FuncPtr = cudaError_t(CUDARTAPI *)(unsigned int *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGetDeviceFlags");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(flags);
}
extern __host__ cudaError_t CUDARTAPI cudaStreamCreate(cudaStream_t *pStream) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaStream_t *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaStreamCreate");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(pStream);
}
extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
cudaStreamCreateWithFlags(cudaStream_t *pStream, unsigned int flags) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaStream_t *, unsigned int);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaStreamCreateWithFlags");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(pStream, flags);
}
extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
cudaStreamCreateWithPriority(cudaStream_t *pStream, unsigned int flags,
int priority) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaStream_t *, unsigned int, int);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaStreamCreateWithPriority");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(pStream, flags, priority);
}
extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
cudaStreamGetPriority(cudaStream_t hStream, int *priority) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaStream_t, int *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaStreamGetPriority");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(hStream, priority);
}
extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
cudaStreamGetFlags(cudaStream_t hStream, unsigned int *flags) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaStream_t, unsigned int *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaStreamGetFlags");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(hStream, flags);
}
extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
cudaStreamGetId(cudaStream_t hStream, unsigned long long *streamId) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaStream_t, unsigned long long *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaStreamGetId");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(hStream, streamId);
}
extern __host__ cudaError_t CUDARTAPI cudaCtxResetPersistingL2Cache(void) {
using FuncPtr = cudaError_t(CUDARTAPI *)();
static auto func_ptr = LoadSymbol<FuncPtr>("cudaCtxResetPersistingL2Cache");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr();
}
extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
cudaStreamCopyAttributes(cudaStream_t dst, cudaStream_t src) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaStream_t, cudaStream_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaStreamCopyAttributes");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(dst, src);
}
extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
cudaStreamGetAttribute(cudaStream_t hStream, cudaStreamAttrID attr,
cudaStreamAttrValue *value_out) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaStream_t, cudaStreamAttrID,
cudaStreamAttrValue *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaStreamGetAttribute");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(hStream, attr, value_out);
}
extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
cudaStreamSetAttribute(cudaStream_t hStream, cudaStreamAttrID attr,
const cudaStreamAttrValue *value) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaStream_t, cudaStreamAttrID,
const cudaStreamAttrValue *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaStreamSetAttribute");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(hStream, attr, value);
}
extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
cudaStreamDestroy(cudaStream_t stream) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaStream_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaStreamDestroy");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(stream);
}
extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI cudaStreamWaitEvent(
cudaStream_t stream, cudaEvent_t event, unsigned int flags __dv(0)) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(cudaStream_t, cudaEvent_t, unsigned int);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaStreamWaitEvent");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(stream, event, flags);
}
extern __host__ cudaError_t CUDARTAPI
cudaStreamAddCallback(cudaStream_t stream, cudaStreamCallback_t callback,
void *userData, unsigned int flags) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaStream_t, cudaStreamCallback_t,
void *, unsigned int);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaStreamAddCallback");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(stream, callback, userData, flags);
}
extern __host__ cudaError_t CUDARTAPI
cudaStreamSynchronize(cudaStream_t stream) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaStream_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaStreamSynchronize");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(stream);
}
extern __host__ cudaError_t CUDARTAPI cudaStreamQuery(cudaStream_t stream) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaStream_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaStreamQuery");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(stream);
}
extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
cudaStreamAttachMemAsync(cudaStream_t stream, void *devPtr,
size_t length __dv(0), unsigned int flags) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(cudaStream_t, void *, size_t, unsigned int);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaStreamAttachMemAsync");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(stream, devPtr, length, flags);
}
extern __host__ cudaError_t CUDARTAPI
cudaStreamBeginCapture(cudaStream_t stream, enum cudaStreamCaptureMode mode) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(cudaStream_t, enum cudaStreamCaptureMode);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaStreamBeginCapture");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(stream, mode);
}
extern __host__ cudaError_t CUDARTAPI
cudaThreadExchangeStreamCaptureMode(enum cudaStreamCaptureMode *mode) {
using FuncPtr = cudaError_t(CUDARTAPI *)(enum cudaStreamCaptureMode *);
static auto func_ptr =
LoadSymbol<FuncPtr>("cudaThreadExchangeStreamCaptureMode");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(mode);
}
extern __host__ cudaError_t CUDARTAPI
cudaStreamEndCapture(cudaStream_t stream, cudaGraph_t *pGraph) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaStream_t, cudaGraph_t *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaStreamEndCapture");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(stream, pGraph);
}
extern __host__ cudaError_t CUDARTAPI cudaStreamIsCapturing(
cudaStream_t stream, enum cudaStreamCaptureStatus *pCaptureStatus) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(cudaStream_t, enum cudaStreamCaptureStatus *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaStreamIsCapturing");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(stream, pCaptureStatus);
}
extern __host__ cudaError_t CUDARTAPI cudaStreamGetCaptureInfo(
cudaStream_t stream, enum cudaStreamCaptureStatus *captureStatus_out,
unsigned long long *id_out __dv(0), cudaGraph_t *graph_out __dv(0),
const cudaGraphNode_t **dependencies_out __dv(0),
size_t *numDependencies_out __dv(0)) {
using FuncPtr = cudaError_t(CUDARTAPI *)(
cudaStream_t, enum cudaStreamCaptureStatus *, unsigned long long *,
cudaGraph_t *, const cudaGraphNode_t **, size_t *);
static auto func_ptr =
LoadSymbol<FuncPtr>("__CUDART_API_PTSZ(cudaStreamGetCaptureInfo_v2)");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(stream, captureStatus_out, id_out, graph_out,
dependencies_out, numDependencies_out);
}
extern __host__ cudaError_t CUDARTAPI cudaStreamUpdateCaptureDependencies(
cudaStream_t stream, cudaGraphNode_t *dependencies, size_t numDependencies,
unsigned int flags __dv(0)) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaStream_t, cudaGraphNode_t *,
size_t, unsigned int);
static auto func_ptr =
LoadSymbol<FuncPtr>("cudaStreamUpdateCaptureDependencies");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(stream, dependencies, numDependencies, flags);
}
extern __host__ cudaError_t CUDARTAPI cudaEventCreate(cudaEvent_t *event) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaEvent_t *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaEventCreate");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(event);
}
extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
cudaEventCreateWithFlags(cudaEvent_t *event, unsigned int flags) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaEvent_t *, unsigned int);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaEventCreateWithFlags");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(event, flags);
}
extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
cudaEventRecord(cudaEvent_t event, cudaStream_t stream __dv(0)) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaEvent_t, cudaStream_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaEventRecord");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(event, stream);
}
extern __host__ cudaError_t CUDARTAPI cudaEventQuery(cudaEvent_t event) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaEvent_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaEventQuery");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(event);
}
extern __host__ cudaError_t CUDARTAPI cudaEventSynchronize(cudaEvent_t event) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaEvent_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaEventSynchronize");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(event);
}
extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
cudaEventDestroy(cudaEvent_t event) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaEvent_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaEventDestroy");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(event);
}
extern __host__ cudaError_t CUDARTAPI cudaEventElapsedTime(float *ms,
cudaEvent_t start,
cudaEvent_t end) {
using FuncPtr = cudaError_t(CUDARTAPI *)(float *, cudaEvent_t, cudaEvent_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaEventElapsedTime");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(ms, start, end);
}
extern __host__ cudaError_t CUDARTAPI cudaImportExternalMemory(
cudaExternalMemory_t *extMem_out,
const struct cudaExternalMemoryHandleDesc *memHandleDesc) {
using FuncPtr = cudaError_t(CUDARTAPI *)(
cudaExternalMemory_t *, const struct cudaExternalMemoryHandleDesc *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaImportExternalMemory");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(extMem_out, memHandleDesc);
}
extern __host__ cudaError_t CUDARTAPI cudaExternalMemoryGetMappedBuffer(
void **devPtr, cudaExternalMemory_t extMem,
const struct cudaExternalMemoryBufferDesc *bufferDesc) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(void **, cudaExternalMemory_t,
const struct cudaExternalMemoryBufferDesc *);
static auto func_ptr =
LoadSymbol<FuncPtr>("cudaExternalMemoryGetMappedBuffer");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(devPtr, extMem, bufferDesc);
}
extern __host__ cudaError_t CUDARTAPI cudaExternalMemoryGetMappedMipmappedArray(
cudaMipmappedArray_t *mipmap, cudaExternalMemory_t extMem,
const struct cudaExternalMemoryMipmappedArrayDesc *mipmapDesc) {
using FuncPtr = cudaError_t(CUDARTAPI *)(
cudaMipmappedArray_t *, cudaExternalMemory_t,
const struct cudaExternalMemoryMipmappedArrayDesc *);
static auto func_ptr =
LoadSymbol<FuncPtr>("cudaExternalMemoryGetMappedMipmappedArray");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(mipmap, extMem, mipmapDesc);
}
extern __host__ cudaError_t CUDARTAPI
cudaDestroyExternalMemory(cudaExternalMemory_t extMem) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaExternalMemory_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaDestroyExternalMemory");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(extMem);
}
extern __host__ cudaError_t CUDARTAPI cudaImportExternalSemaphore(
cudaExternalSemaphore_t *extSem_out,
const struct cudaExternalSemaphoreHandleDesc *semHandleDesc) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(cudaExternalSemaphore_t *,
const struct cudaExternalSemaphoreHandleDesc *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaImportExternalSemaphore");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(extSem_out, semHandleDesc);
}
extern __host__ cudaError_t CUDARTAPI cudaSignalExternalSemaphoresAsync(
const cudaExternalSemaphore_t *extSemArray,
const struct cudaExternalSemaphoreSignalParams *paramsArray,
unsigned int numExtSems, cudaStream_t stream __dv(0)) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(const cudaExternalSemaphore_t *,
const struct cudaExternalSemaphoreSignalParams *,
unsigned int, cudaStream_t);
static auto func_ptr = LoadSymbol<FuncPtr>(
"__CUDART_API_PTSZ(cudaSignalExternalSemaphoresAsync_v2)");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(extSemArray, paramsArray, numExtSems, stream);
}
extern __host__ cudaError_t CUDARTAPI cudaWaitExternalSemaphoresAsync(
const cudaExternalSemaphore_t *extSemArray,
const struct cudaExternalSemaphoreWaitParams *paramsArray,
unsigned int numExtSems, cudaStream_t stream __dv(0)) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(const cudaExternalSemaphore_t *,
const struct cudaExternalSemaphoreWaitParams *,
unsigned int, cudaStream_t);
static auto func_ptr = LoadSymbol<FuncPtr>(
"__CUDART_API_PTSZ(cudaWaitExternalSemaphoresAsync_v2)");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(extSemArray, paramsArray, numExtSems, stream);
}
extern __host__ cudaError_t CUDARTAPI
cudaDestroyExternalSemaphore(cudaExternalSemaphore_t extSem) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaExternalSemaphore_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaDestroyExternalSemaphore");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(extSem);
}
extern __host__ cudaError_t CUDARTAPI
cudaLaunchKernel(const void *func, dim3 gridDim, dim3 blockDim, void **args,
size_t sharedMem, cudaStream_t stream) {
using FuncPtr = cudaError_t(CUDARTAPI *)(const void *, dim3, dim3, void **,
size_t, cudaStream_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaLaunchKernel");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(func, gridDim, blockDim, args, sharedMem, stream);
}
extern __host__ cudaError_t CUDARTAPI cudaLaunchKernelExC(
const cudaLaunchConfig_t *config, const void *func, void **args) {
using FuncPtr = cudaError_t(CUDARTAPI *)(const cudaLaunchConfig_t *,
const void *, void **);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaLaunchKernelExC");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(config, func, args);
}
extern __host__ cudaError_t CUDARTAPI cudaLaunchCooperativeKernel(
const void *func, dim3 gridDim, dim3 blockDim, void **args,
size_t sharedMem, cudaStream_t stream) {
using FuncPtr = cudaError_t(CUDARTAPI *)(const void *, dim3, dim3, void **,
size_t, cudaStream_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaLaunchCooperativeKernel");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(func, gridDim, blockDim, args, sharedMem, stream);
}
extern __CUDA_DEPRECATED __host__ cudaError_t CUDARTAPI
cudaLaunchCooperativeKernelMultiDevice(
struct cudaLaunchParams *launchParamsList, unsigned int numDevices,
unsigned int flags __dv(0)) {
using FuncPtr = cudaError_t(CUDARTAPI *)(struct cudaLaunchParams *,
unsigned int, unsigned int);
static auto func_ptr =
LoadSymbol<FuncPtr>("cudaLaunchCooperativeKernelMultiDevice");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(launchParamsList, numDevices, flags);
}
extern __host__ cudaError_t CUDARTAPI
cudaFuncSetCacheConfig(const void *func, enum cudaFuncCache cacheConfig) {
using FuncPtr = cudaError_t(CUDARTAPI *)(const void *, enum cudaFuncCache);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaFuncSetCacheConfig");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(func, cacheConfig);
}
extern __host__ cudaError_t CUDARTAPI
cudaFuncSetSharedMemConfig(const void *func, enum cudaSharedMemConfig config) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(const void *, enum cudaSharedMemConfig);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaFuncSetSharedMemConfig");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(func, config);
}
extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
cudaFuncGetAttributes(struct cudaFuncAttributes *attr, const void *func) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(struct cudaFuncAttributes *, const void *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaFuncGetAttributes");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(attr, func);
}
extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
cudaFuncSetAttribute(const void *func, enum cudaFuncAttribute attr, int value) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(const void *, enum cudaFuncAttribute, int);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaFuncSetAttribute");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(func, attr, value);
}
extern __CUDA_DEPRECATED __host__ cudaError_t CUDARTAPI
cudaSetDoubleForDevice(double *d) {
using FuncPtr = cudaError_t(CUDARTAPI *)(double *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaSetDoubleForDevice");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(d);
}
extern __CUDA_DEPRECATED __host__ cudaError_t CUDARTAPI
cudaSetDoubleForHost(double *d) {
using FuncPtr = cudaError_t(CUDARTAPI *)(double *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaSetDoubleForHost");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(d);
}
extern __host__ cudaError_t CUDARTAPI cudaLaunchHostFunc(cudaStream_t stream,
cudaHostFn_t fn,
void *userData) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaStream_t, cudaHostFn_t, void *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaLaunchHostFunc");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(stream, fn, userData);
}
extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
cudaOccupancyMaxActiveBlocksPerMultiprocessor(int *numBlocks, const void *func,
int blockSize,
size_t dynamicSMemSize) {
using FuncPtr = cudaError_t(CUDARTAPI *)(int *, const void *, int, size_t);
static auto func_ptr =
LoadSymbol<FuncPtr>("cudaOccupancyMaxActiveBlocksPerMultiprocessor");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(numBlocks, func, blockSize, dynamicSMemSize);
}
extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
cudaOccupancyAvailableDynamicSMemPerBlock(size_t *dynamicSmemSize,
const void *func, int numBlocks,
int blockSize) {
using FuncPtr = cudaError_t(CUDARTAPI *)(size_t *, const void *, int, int);
static auto func_ptr =
LoadSymbol<FuncPtr>("cudaOccupancyAvailableDynamicSMemPerBlock");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(dynamicSmemSize, func, numBlocks, blockSize);
}
extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(int *numBlocks,
const void *func,
int blockSize,
size_t dynamicSMemSize,
unsigned int flags) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(int *, const void *, int, size_t, unsigned int);
static auto func_ptr = LoadSymbol<FuncPtr>(
"cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(numBlocks, func, blockSize, dynamicSMemSize, flags);
}
extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
cudaOccupancyMaxPotentialClusterSize(int *clusterSize, const void *func,
const cudaLaunchConfig_t *launchConfig) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(int *, const void *, const cudaLaunchConfig_t *);
static auto func_ptr =
LoadSymbol<FuncPtr>("cudaOccupancyMaxPotentialClusterSize");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(clusterSize, func, launchConfig);
}
extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
cudaOccupancyMaxActiveClusters(int *numClusters, const void *func,
const cudaLaunchConfig_t *launchConfig) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(int *, const void *, const cudaLaunchConfig_t *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaOccupancyMaxActiveClusters");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(numClusters, func, launchConfig);
}
extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
cudaMallocManaged(void **devPtr, size_t size, unsigned int flags) {
using FuncPtr = cudaError_t(CUDARTAPI *)(void **, size_t, unsigned int);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaMallocManaged");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(devPtr, size, flags);
}
extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
cudaMalloc(void **devPtr, size_t size) {
using FuncPtr = cudaError_t(CUDARTAPI *)(void **, size_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaMalloc");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(devPtr, size);
}
extern __host__ cudaError_t CUDARTAPI cudaMallocHost(void **ptr, size_t size) {
using FuncPtr = cudaError_t(CUDARTAPI *)(void **, size_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaMallocHost");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(ptr, size);
}
extern __host__ cudaError_t CUDARTAPI cudaMallocPitch(void **devPtr,
size_t *pitch,
size_t width,
size_t height) {
using FuncPtr = cudaError_t(CUDARTAPI *)(void **, size_t *, size_t, size_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaMallocPitch");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(devPtr, pitch, width, height);
}
extern __host__ cudaError_t CUDARTAPI cudaMallocArray(
cudaArray_t *array, const struct cudaChannelFormatDesc *desc, size_t width,
size_t height __dv(0), unsigned int flags __dv(0)) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaArray_t *,
const struct cudaChannelFormatDesc *,
size_t, size_t, unsigned int);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaMallocArray");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(array, desc, width, height, flags);
}
extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
cudaFree(void *devPtr) {
using FuncPtr = cudaError_t(CUDARTAPI *)(void *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaFree");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(devPtr);
}
extern __host__ cudaError_t CUDARTAPI cudaFreeHost(void *ptr) {
using FuncPtr = cudaError_t(CUDARTAPI *)(void *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaFreeHost");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(ptr);
}
extern __host__ cudaError_t CUDARTAPI cudaFreeArray(cudaArray_t array) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaArray_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaFreeArray");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(array);
}
extern __host__ cudaError_t CUDARTAPI
cudaFreeMipmappedArray(cudaMipmappedArray_t mipmappedArray) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaMipmappedArray_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaFreeMipmappedArray");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(mipmappedArray);
}
extern __host__ cudaError_t CUDARTAPI cudaHostAlloc(void **pHost, size_t size,
unsigned int flags) {
using FuncPtr = cudaError_t(CUDARTAPI *)(void **, size_t, unsigned int);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaHostAlloc");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(pHost, size, flags);
}
extern __host__ cudaError_t CUDARTAPI cudaHostRegister(void *ptr, size_t size,
unsigned int flags) {
using FuncPtr = cudaError_t(CUDARTAPI *)(void *, size_t, unsigned int);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaHostRegister");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(ptr, size, flags);
}
extern __host__ cudaError_t CUDARTAPI cudaHostUnregister(void *ptr) {
using FuncPtr = cudaError_t(CUDARTAPI *)(void *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaHostUnregister");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(ptr);
}
extern __host__ cudaError_t CUDARTAPI
cudaHostGetDevicePointer(void **pDevice, void *pHost, unsigned int flags) {
using FuncPtr = cudaError_t(CUDARTAPI *)(void **, void *, unsigned int);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaHostGetDevicePointer");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(pDevice, pHost, flags);
}
extern __host__ cudaError_t CUDARTAPI cudaHostGetFlags(unsigned int *pFlags,
void *pHost) {
using FuncPtr = cudaError_t(CUDARTAPI *)(unsigned int *, void *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaHostGetFlags");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(pFlags, pHost);
}
extern __host__ cudaError_t CUDARTAPI
cudaMalloc3D(struct cudaPitchedPtr *pitchedDevPtr, struct cudaExtent extent) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(struct cudaPitchedPtr *, struct cudaExtent);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaMalloc3D");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(pitchedDevPtr, extent);
}
extern __host__ cudaError_t CUDARTAPI
cudaMalloc3DArray(cudaArray_t *array, const struct cudaChannelFormatDesc *desc,
struct cudaExtent extent, unsigned int flags __dv(0)) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaArray_t *,
const struct cudaChannelFormatDesc *,
struct cudaExtent, unsigned int);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaMalloc3DArray");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(array, desc, extent, flags);
}
extern __host__ cudaError_t CUDARTAPI cudaMallocMipmappedArray(
cudaMipmappedArray_t *mipmappedArray,
const struct cudaChannelFormatDesc *desc, struct cudaExtent extent,
unsigned int numLevels, unsigned int flags __dv(0)) {
using FuncPtr = cudaError_t(CUDARTAPI *)(
cudaMipmappedArray_t *, const struct cudaChannelFormatDesc *,
struct cudaExtent, unsigned int, unsigned int);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaMallocMipmappedArray");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(mipmappedArray, desc, extent, numLevels, flags);
}
extern __host__ cudaError_t CUDARTAPI cudaGetMipmappedArrayLevel(
cudaArray_t *levelArray, cudaMipmappedArray_const_t mipmappedArray,
unsigned int level) {
using FuncPtr = cudaError_t(CUDARTAPI *)(
cudaArray_t *, cudaMipmappedArray_const_t, unsigned int);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGetMipmappedArrayLevel");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(levelArray, mipmappedArray, level);
}
extern __host__ cudaError_t CUDARTAPI
cudaMemcpy3D(const struct cudaMemcpy3DParms *p) {
using FuncPtr = cudaError_t(CUDARTAPI *)(const struct cudaMemcpy3DParms *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaMemcpy3D");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(p);
}
extern __host__ cudaError_t CUDARTAPI
cudaMemcpy3DPeer(const struct cudaMemcpy3DPeerParms *p) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(const struct cudaMemcpy3DPeerParms *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaMemcpy3DPeer");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(p);
}
extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI cudaMemcpy3DAsync(
const struct cudaMemcpy3DParms *p, cudaStream_t stream __dv(0)) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(const struct cudaMemcpy3DParms *, cudaStream_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaMemcpy3DAsync");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(p, stream);
}
extern __host__ cudaError_t CUDARTAPI cudaMemcpy3DPeerAsync(
const struct cudaMemcpy3DPeerParms *p, cudaStream_t stream __dv(0)) {
using FuncPtr = cudaError_t(CUDARTAPI *)(const struct cudaMemcpy3DPeerParms *,
cudaStream_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaMemcpy3DPeerAsync");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(p, stream);
}
extern __host__ cudaError_t CUDARTAPI cudaMemGetInfo(size_t *free,
size_t *total) {
using FuncPtr = cudaError_t(CUDARTAPI *)(size_t *, size_t *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaMemGetInfo");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(free, total);
}
extern __host__ cudaError_t CUDARTAPI
cudaArrayGetInfo(struct cudaChannelFormatDesc *desc, struct cudaExtent *extent,
unsigned int *flags, cudaArray_t array) {
using FuncPtr = cudaError_t(CUDARTAPI *)(struct cudaChannelFormatDesc *,
struct cudaExtent *, unsigned int *,
cudaArray_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaArrayGetInfo");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(desc, extent, flags, array);
}
extern __host__ cudaError_t CUDARTAPI cudaArrayGetPlane(
cudaArray_t *pPlaneArray, cudaArray_t hArray, unsigned int planeIdx) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(cudaArray_t *, cudaArray_t, unsigned int);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaArrayGetPlane");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(pPlaneArray, hArray, planeIdx);
}
extern __host__ cudaError_t CUDARTAPI cudaArrayGetMemoryRequirements(
struct cudaArrayMemoryRequirements *memoryRequirements, cudaArray_t array,
int device) {
using FuncPtr = cudaError_t(CUDARTAPI *)(struct cudaArrayMemoryRequirements *,
cudaArray_t, int);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaArrayGetMemoryRequirements");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(memoryRequirements, array, device);
}
extern __host__ cudaError_t CUDARTAPI cudaMipmappedArrayGetMemoryRequirements(
struct cudaArrayMemoryRequirements *memoryRequirements,
cudaMipmappedArray_t mipmap, int device) {
using FuncPtr = cudaError_t(CUDARTAPI *)(struct cudaArrayMemoryRequirements *,
cudaMipmappedArray_t, int);
static auto func_ptr =
LoadSymbol<FuncPtr>("cudaMipmappedArrayGetMemoryRequirements");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(memoryRequirements, mipmap, device);
}
extern __host__ cudaError_t CUDARTAPI cudaMemcpy(void *dst, const void *src,
size_t count,
enum cudaMemcpyKind kind) {
using FuncPtr = cudaError_t(CUDARTAPI *)(void *, const void *, size_t,
enum cudaMemcpyKind);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaMemcpy");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(dst, src, count, kind);
}
extern __host__ cudaError_t CUDARTAPI cudaMemcpyPeer(void *dst, int dstDevice,
const void *src,
int srcDevice,
size_t count) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(void *, int, const void *, int, size_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaMemcpyPeer");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(dst, dstDevice, src, srcDevice, count);
}
extern __host__ cudaError_t CUDARTAPI cudaMemcpy2D(void *dst, size_t dpitch,
const void *src,
size_t spitch, size_t width,
size_t height,
enum cudaMemcpyKind kind) {
using FuncPtr = cudaError_t(CUDARTAPI *)(void *, size_t, const void *, size_t,
size_t, size_t, enum cudaMemcpyKind);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaMemcpy2D");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(dst, dpitch, src, spitch, width, height, kind);
}
extern __host__ cudaError_t CUDARTAPI cudaMemcpy2DToArray(
cudaArray_t dst, size_t wOffset, size_t hOffset, const void *src,
size_t spitch, size_t width, size_t height, enum cudaMemcpyKind kind) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(cudaArray_t, size_t, size_t, const void *,
size_t, size_t, size_t, enum cudaMemcpyKind);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaMemcpy2DToArray");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(dst, wOffset, hOffset, src, spitch, width, height, kind);
}
extern __host__ cudaError_t CUDARTAPI cudaMemcpy2DFromArray(
void *dst, size_t dpitch, cudaArray_const_t src, size_t wOffset,
size_t hOffset, size_t width, size_t height, enum cudaMemcpyKind kind) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(void *, size_t, cudaArray_const_t, size_t,
size_t, size_t, size_t, enum cudaMemcpyKind);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaMemcpy2DFromArray");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(dst, dpitch, src, wOffset, hOffset, width, height, kind);
}
extern __host__ cudaError_t CUDARTAPI cudaMemcpy2DArrayToArray(
cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst,
cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t width,
size_t height, enum cudaMemcpyKind kind __dv(cudaMemcpyDeviceToDevice)) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaArray_t, size_t, size_t,
cudaArray_const_t, size_t, size_t,
size_t, size_t, enum cudaMemcpyKind);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaMemcpy2DArrayToArray");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(dst, wOffsetDst, hOffsetDst, src, wOffsetSrc, hOffsetSrc,
width, height, kind);
}
extern __host__ cudaError_t CUDARTAPI cudaMemcpyToSymbol(
const void *symbol, const void *src, size_t count, size_t offset __dv(0),
enum cudaMemcpyKind kind __dv(cudaMemcpyHostToDevice)) {
using FuncPtr = cudaError_t(CUDARTAPI *)(const void *, const void *, size_t,
size_t, enum cudaMemcpyKind);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaMemcpyToSymbol");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(symbol, src, count, offset, kind);
}
extern __host__ cudaError_t CUDARTAPI cudaMemcpyFromSymbol(
void *dst, const void *symbol, size_t count, size_t offset __dv(0),
enum cudaMemcpyKind kind __dv(cudaMemcpyDeviceToHost)) {
using FuncPtr = cudaError_t(CUDARTAPI *)(void *, const void *, size_t, size_t,
enum cudaMemcpyKind);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaMemcpyFromSymbol");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(dst, symbol, count, offset, kind);
}
extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
cudaMemcpyAsync(void *dst, const void *src, size_t count,
enum cudaMemcpyKind kind, cudaStream_t stream __dv(0)) {
using FuncPtr = cudaError_t(CUDARTAPI *)(void *, const void *, size_t,
enum cudaMemcpyKind, cudaStream_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaMemcpyAsync");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(dst, src, count, kind, stream);
}
extern __host__ cudaError_t CUDARTAPI
cudaMemcpyPeerAsync(void *dst, int dstDevice, const void *src, int srcDevice,
size_t count, cudaStream_t stream __dv(0)) {
using FuncPtr = cudaError_t(CUDARTAPI *)(void *, int, const void *, int,
size_t, cudaStream_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaMemcpyPeerAsync");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(dst, dstDevice, src, srcDevice, count, stream);
}
extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI cudaMemcpy2DAsync(
void *dst, size_t dpitch, const void *src, size_t spitch, size_t width,
size_t height, enum cudaMemcpyKind kind, cudaStream_t stream __dv(0)) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(void *, size_t, const void *, size_t, size_t,
size_t, enum cudaMemcpyKind, cudaStream_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaMemcpy2DAsync");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(dst, dpitch, src, spitch, width, height, kind, stream);
}
extern __host__ cudaError_t CUDARTAPI cudaMemcpy2DToArrayAsync(
cudaArray_t dst, size_t wOffset, size_t hOffset, const void *src,
size_t spitch, size_t width, size_t height, enum cudaMemcpyKind kind,
cudaStream_t stream __dv(0)) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaArray_t, size_t, size_t,
const void *, size_t, size_t, size_t,
enum cudaMemcpyKind, cudaStream_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaMemcpy2DToArrayAsync");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(dst, wOffset, hOffset, src, spitch, width, height, kind,
stream);
}
extern __host__ cudaError_t CUDARTAPI cudaMemcpy2DFromArrayAsync(
void *dst, size_t dpitch, cudaArray_const_t src, size_t wOffset,
size_t hOffset, size_t width, size_t height, enum cudaMemcpyKind kind,
cudaStream_t stream __dv(0)) {
using FuncPtr = cudaError_t(CUDARTAPI *)(void *, size_t, cudaArray_const_t,
size_t, size_t, size_t, size_t,
enum cudaMemcpyKind, cudaStream_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaMemcpy2DFromArrayAsync");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(dst, dpitch, src, wOffset, hOffset, width, height, kind,
stream);
}
extern __host__ cudaError_t CUDARTAPI cudaMemcpyToSymbolAsync(
const void *symbol, const void *src, size_t count, size_t offset,
enum cudaMemcpyKind kind, cudaStream_t stream __dv(0)) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(const void *, const void *, size_t, size_t,
enum cudaMemcpyKind, cudaStream_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaMemcpyToSymbolAsync");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(symbol, src, count, offset, kind, stream);
}
extern __host__ cudaError_t CUDARTAPI cudaMemcpyFromSymbolAsync(
void *dst, const void *symbol, size_t count, size_t offset,
enum cudaMemcpyKind kind, cudaStream_t stream __dv(0)) {
using FuncPtr = cudaError_t(CUDARTAPI *)(void *, const void *, size_t, size_t,
enum cudaMemcpyKind, cudaStream_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaMemcpyFromSymbolAsync");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(dst, symbol, count, offset, kind, stream);
}
extern __host__ cudaError_t CUDARTAPI cudaMemset(void *devPtr, int value,
size_t count) {
using FuncPtr = cudaError_t(CUDARTAPI *)(void *, int, size_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaMemset");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(devPtr, value, count);
}
extern __host__ cudaError_t CUDARTAPI cudaMemset2D(void *devPtr, size_t pitch,
int value, size_t width,
size_t height) {
using FuncPtr = cudaError_t(CUDARTAPI *)(void *, size_t, int, size_t, size_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaMemset2D");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(devPtr, pitch, value, width, height);
}
extern __host__ cudaError_t CUDARTAPI cudaMemset3D(
struct cudaPitchedPtr pitchedDevPtr, int value, struct cudaExtent extent) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(struct cudaPitchedPtr, int, struct cudaExtent);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaMemset3D");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(pitchedDevPtr, value, extent);
}
extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI cudaMemsetAsync(
void *devPtr, int value, size_t count, cudaStream_t stream __dv(0)) {
using FuncPtr = cudaError_t(CUDARTAPI *)(void *, int, size_t, cudaStream_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaMemsetAsync");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(devPtr, value, count, stream);
}
extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
cudaMemset2DAsync(void *devPtr, size_t pitch, int value, size_t width,
size_t height, cudaStream_t stream __dv(0)) {
using FuncPtr = cudaError_t(CUDARTAPI *)(void *, size_t, int, size_t, size_t,
cudaStream_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaMemset2DAsync");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(devPtr, pitch, value, width, height, stream);
}
extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
cudaMemset3DAsync(struct cudaPitchedPtr pitchedDevPtr, int value,
struct cudaExtent extent, cudaStream_t stream __dv(0)) {
using FuncPtr = cudaError_t(CUDARTAPI *)(struct cudaPitchedPtr, int,
struct cudaExtent, cudaStream_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaMemset3DAsync");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(pitchedDevPtr, value, extent, stream);
}
extern __host__ cudaError_t CUDARTAPI cudaGetSymbolAddress(void **devPtr,
const void *symbol) {
using FuncPtr = cudaError_t(CUDARTAPI *)(void **, const void *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGetSymbolAddress");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(devPtr, symbol);
}
extern __host__ cudaError_t CUDARTAPI cudaGetSymbolSize(size_t *size,
const void *symbol) {
using FuncPtr = cudaError_t(CUDARTAPI *)(size_t *, const void *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGetSymbolSize");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(size, symbol);
}
extern __host__ cudaError_t CUDARTAPI
cudaMemPrefetchAsync(const void *devPtr, size_t count, int dstDevice,
cudaStream_t stream __dv(0)) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(const void *, size_t, int, cudaStream_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaMemPrefetchAsync");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(devPtr, count, dstDevice, stream);
}
extern __host__ cudaError_t CUDARTAPI
cudaMemAdvise(const void *devPtr, size_t count, enum cudaMemoryAdvise advice,
int device) {
using FuncPtr = cudaError_t(CUDARTAPI *)(const void *, size_t,
enum cudaMemoryAdvise, int);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaMemAdvise");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(devPtr, count, advice, device);
}
extern __host__ cudaError_t CUDARTAPI cudaMemRangeGetAttribute(
void *data, size_t dataSize, enum cudaMemRangeAttribute attribute,
const void *devPtr, size_t count) {
using FuncPtr = cudaError_t(CUDARTAPI *)(
void *, size_t, enum cudaMemRangeAttribute, const void *, size_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaMemRangeGetAttribute");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(data, dataSize, attribute, devPtr, count);
}
extern __host__ cudaError_t CUDARTAPI cudaMemRangeGetAttributes(
void **data, size_t *dataSizes, enum cudaMemRangeAttribute *attributes,
size_t numAttributes, const void *devPtr, size_t count) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(void **, size_t *, enum cudaMemRangeAttribute *,
size_t, const void *, size_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaMemRangeGetAttributes");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(data, dataSizes, attributes, numAttributes, devPtr, count);
}
extern __CUDA_DEPRECATED __host__ cudaError_t CUDARTAPI
cudaMemcpyToArray(cudaArray_t dst, size_t wOffset, size_t hOffset,
const void *src, size_t count, enum cudaMemcpyKind kind) {
using FuncPtr = cudaError_t(CUDARTAPI *)(
cudaArray_t, size_t, size_t, const void *, size_t, enum cudaMemcpyKind);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaMemcpyToArray");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(dst, wOffset, hOffset, src, count, kind);
}
extern __CUDA_DEPRECATED __host__ cudaError_t CUDARTAPI
cudaMemcpyFromArray(void *dst, cudaArray_const_t src, size_t wOffset,
size_t hOffset, size_t count, enum cudaMemcpyKind kind) {
using FuncPtr = cudaError_t(CUDARTAPI *)(void *, cudaArray_const_t, size_t,
size_t, size_t, enum cudaMemcpyKind);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaMemcpyFromArray");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(dst, src, wOffset, hOffset, count, kind);
}
extern __CUDA_DEPRECATED __host__ cudaError_t CUDARTAPI cudaMemcpyArrayToArray(
cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst,
cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t count,
enum cudaMemcpyKind kind __dv(cudaMemcpyDeviceToDevice)) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(cudaArray_t, size_t, size_t, cudaArray_const_t,
size_t, size_t, size_t, enum cudaMemcpyKind);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaMemcpyArrayToArray");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(dst, wOffsetDst, hOffsetDst, src, wOffsetSrc, hOffsetSrc,
count, kind);
}
extern __CUDA_DEPRECATED __host__ cudaError_t CUDARTAPI cudaMemcpyToArrayAsync(
cudaArray_t dst, size_t wOffset, size_t hOffset, const void *src,
size_t count, enum cudaMemcpyKind kind, cudaStream_t stream __dv(0)) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(cudaArray_t, size_t, size_t, const void *,
size_t, enum cudaMemcpyKind, cudaStream_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaMemcpyToArrayAsync");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(dst, wOffset, hOffset, src, count, kind, stream);
}
extern __CUDA_DEPRECATED __host__ cudaError_t CUDARTAPI
cudaMemcpyFromArrayAsync(void *dst, cudaArray_const_t src, size_t wOffset,
size_t hOffset, size_t count, enum cudaMemcpyKind kind,
cudaStream_t stream __dv(0)) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(void *, cudaArray_const_t, size_t, size_t,
size_t, enum cudaMemcpyKind, cudaStream_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaMemcpyFromArrayAsync");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(dst, src, wOffset, hOffset, count, kind, stream);
}
extern __host__ cudaError_t CUDARTAPI cudaMallocAsync(void **devPtr,
size_t size,
cudaStream_t hStream) {
using FuncPtr = cudaError_t(CUDARTAPI *)(void **, size_t, cudaStream_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaMallocAsync");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(devPtr, size, hStream);
}
extern __host__ cudaError_t CUDARTAPI cudaFreeAsync(void *devPtr,
cudaStream_t hStream) {
using FuncPtr = cudaError_t(CUDARTAPI *)(void *, cudaStream_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaFreeAsync");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(devPtr, hStream);
}
extern __host__ cudaError_t CUDARTAPI cudaMemPoolTrimTo(cudaMemPool_t memPool,
size_t minBytesToKeep) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaMemPool_t, size_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaMemPoolTrimTo");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(memPool, minBytesToKeep);
}
extern __host__ cudaError_t CUDARTAPI cudaMemPoolSetAttribute(
cudaMemPool_t memPool, enum cudaMemPoolAttr attr, void *value) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(cudaMemPool_t, enum cudaMemPoolAttr, void *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaMemPoolSetAttribute");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(memPool, attr, value);
}
extern __host__ cudaError_t CUDARTAPI cudaMemPoolGetAttribute(
cudaMemPool_t memPool, enum cudaMemPoolAttr attr, void *value) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(cudaMemPool_t, enum cudaMemPoolAttr, void *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaMemPoolGetAttribute");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(memPool, attr, value);
}
extern __host__ cudaError_t CUDARTAPI
cudaMemPoolSetAccess(cudaMemPool_t memPool,
const struct cudaMemAccessDesc *descList, size_t count) {
using FuncPtr = cudaError_t(CUDARTAPI *)(
cudaMemPool_t, const struct cudaMemAccessDesc *, size_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaMemPoolSetAccess");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(memPool, descList, count);
}
extern __host__ cudaError_t CUDARTAPI
cudaMemPoolGetAccess(enum cudaMemAccessFlags *flags, cudaMemPool_t memPool,
struct cudaMemLocation *location) {
using FuncPtr = cudaError_t(CUDARTAPI *)(
enum cudaMemAccessFlags *, cudaMemPool_t, struct cudaMemLocation *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaMemPoolGetAccess");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(flags, memPool, location);
}
extern __host__ cudaError_t CUDARTAPI cudaMemPoolCreate(
cudaMemPool_t *memPool, const struct cudaMemPoolProps *poolProps) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaMemPool_t *,
const struct cudaMemPoolProps *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaMemPoolCreate");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(memPool, poolProps);
}
extern __host__ cudaError_t CUDARTAPI
cudaMemPoolDestroy(cudaMemPool_t memPool) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaMemPool_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaMemPoolDestroy");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(memPool);
}
extern __host__ cudaError_t CUDARTAPI cudaMallocFromPoolAsync(
void **ptr, size_t size, cudaMemPool_t memPool, cudaStream_t stream) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(void **, size_t, cudaMemPool_t, cudaStream_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaMallocFromPoolAsync");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(ptr, size, memPool, stream);
}
extern __host__ cudaError_t CUDARTAPI cudaMemPoolExportToShareableHandle(
void *shareableHandle, cudaMemPool_t memPool,
enum cudaMemAllocationHandleType handleType, unsigned int flags) {
using FuncPtr = cudaError_t(CUDARTAPI *)(
void *, cudaMemPool_t, enum cudaMemAllocationHandleType, unsigned int);
static auto func_ptr =
LoadSymbol<FuncPtr>("cudaMemPoolExportToShareableHandle");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(shareableHandle, memPool, handleType, flags);
}
extern __host__ cudaError_t CUDARTAPI cudaMemPoolImportFromShareableHandle(
cudaMemPool_t *memPool, void *shareableHandle,
enum cudaMemAllocationHandleType handleType, unsigned int flags) {
using FuncPtr = cudaError_t(CUDARTAPI *)(
cudaMemPool_t *, void *, enum cudaMemAllocationHandleType, unsigned int);
static auto func_ptr =
LoadSymbol<FuncPtr>("cudaMemPoolImportFromShareableHandle");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(memPool, shareableHandle, handleType, flags);
}
extern __host__ cudaError_t CUDARTAPI cudaMemPoolExportPointer(
struct cudaMemPoolPtrExportData *exportData, void *ptr) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(struct cudaMemPoolPtrExportData *, void *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaMemPoolExportPointer");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(exportData, ptr);
}
extern __host__ cudaError_t CUDARTAPI
cudaMemPoolImportPointer(void **ptr, cudaMemPool_t memPool,
struct cudaMemPoolPtrExportData *exportData) {
using FuncPtr = cudaError_t(CUDARTAPI *)(void **, cudaMemPool_t,
struct cudaMemPoolPtrExportData *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaMemPoolImportPointer");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(ptr, memPool, exportData);
}
extern __host__ cudaError_t CUDARTAPI cudaPointerGetAttributes(
struct cudaPointerAttributes *attributes, const void *ptr) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(struct cudaPointerAttributes *, const void *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaPointerGetAttributes");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(attributes, ptr);
}
extern __host__ cudaError_t CUDARTAPI
cudaDeviceCanAccessPeer(int *canAccessPeer, int device, int peerDevice) {
using FuncPtr = cudaError_t(CUDARTAPI *)(int *, int, int);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaDeviceCanAccessPeer");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(canAccessPeer, device, peerDevice);
}
extern __host__ cudaError_t CUDARTAPI
cudaDeviceEnablePeerAccess(int peerDevice, unsigned int flags) {
using FuncPtr = cudaError_t(CUDARTAPI *)(int, unsigned int);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaDeviceEnablePeerAccess");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(peerDevice, flags);
}
extern __host__ cudaError_t CUDARTAPI
cudaDeviceDisablePeerAccess(int peerDevice) {
using FuncPtr = cudaError_t(CUDARTAPI *)(int);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaDeviceDisablePeerAccess");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(peerDevice);
}
extern __host__ cudaError_t CUDARTAPI
cudaGraphicsUnregisterResource(cudaGraphicsResource_t resource) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaGraphicsResource_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGraphicsUnregisterResource");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(resource);
}
extern __host__ cudaError_t CUDARTAPI cudaGraphicsResourceSetMapFlags(
cudaGraphicsResource_t resource, unsigned int flags) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(cudaGraphicsResource_t, unsigned int);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGraphicsResourceSetMapFlags");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(resource, flags);
}
extern __host__ cudaError_t CUDARTAPI cudaGraphicsMapResources(
int count, cudaGraphicsResource_t *resources, cudaStream_t stream __dv(0)) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(int, cudaGraphicsResource_t *, cudaStream_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGraphicsMapResources");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(count, resources, stream);
}
extern __host__ cudaError_t CUDARTAPI cudaGraphicsUnmapResources(
int count, cudaGraphicsResource_t *resources, cudaStream_t stream __dv(0)) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(int, cudaGraphicsResource_t *, cudaStream_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGraphicsUnmapResources");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(count, resources, stream);
}
extern __host__ cudaError_t CUDARTAPI cudaGraphicsResourceGetMappedPointer(
void **devPtr, size_t *size, cudaGraphicsResource_t resource) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(void **, size_t *, cudaGraphicsResource_t);
static auto func_ptr =
LoadSymbol<FuncPtr>("cudaGraphicsResourceGetMappedPointer");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(devPtr, size, resource);
}
extern __host__ cudaError_t CUDARTAPI cudaGraphicsSubResourceGetMappedArray(
cudaArray_t *array, cudaGraphicsResource_t resource,
unsigned int arrayIndex, unsigned int mipLevel) {
using FuncPtr = cudaError_t(CUDARTAPI *)(
cudaArray_t *, cudaGraphicsResource_t, unsigned int, unsigned int);
static auto func_ptr =
LoadSymbol<FuncPtr>("cudaGraphicsSubResourceGetMappedArray");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(array, resource, arrayIndex, mipLevel);
}
extern __host__ cudaError_t CUDARTAPI
cudaGraphicsResourceGetMappedMipmappedArray(
cudaMipmappedArray_t *mipmappedArray, cudaGraphicsResource_t resource) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(cudaMipmappedArray_t *, cudaGraphicsResource_t);
static auto func_ptr =
LoadSymbol<FuncPtr>("cudaGraphicsResourceGetMappedMipmappedArray");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(mipmappedArray, resource);
}
extern __host__ cudaError_t CUDARTAPI cudaGetChannelDesc(
struct cudaChannelFormatDesc *desc, cudaArray_const_t array) {
using FuncPtr = cudaError_t(CUDARTAPI *)(struct cudaChannelFormatDesc *,
cudaArray_const_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGetChannelDesc");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(desc, array);
}
extern __host__ struct cudaChannelFormatDesc CUDARTAPI cudaCreateChannelDesc(
int x, int y, int z, int w, enum cudaChannelFormatKind f) {
using FuncPtr = struct cudaChannelFormatDesc(CUDARTAPI *)(
int, int, int, int, enum cudaChannelFormatKind);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaCreateChannelDesc");
return func_ptr(x, y, z, w, f);
}
extern __host__ cudaError_t CUDARTAPI cudaCreateTextureObject(
cudaTextureObject_t *pTexObject, const struct cudaResourceDesc *pResDesc,
const struct cudaTextureDesc *pTexDesc,
const struct cudaResourceViewDesc *pResViewDesc) {
using FuncPtr = cudaError_t(CUDARTAPI *)(
cudaTextureObject_t *, const struct cudaResourceDesc *,
const struct cudaTextureDesc *, const struct cudaResourceViewDesc *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaCreateTextureObject");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(pTexObject, pResDesc, pTexDesc, pResViewDesc);
}
extern __host__ cudaError_t CUDARTAPI
cudaDestroyTextureObject(cudaTextureObject_t texObject) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaTextureObject_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaDestroyTextureObject");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(texObject);
}
extern __host__ cudaError_t CUDARTAPI cudaGetTextureObjectResourceDesc(
struct cudaResourceDesc *pResDesc, cudaTextureObject_t texObject) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(struct cudaResourceDesc *, cudaTextureObject_t);
static auto func_ptr =
LoadSymbol<FuncPtr>("cudaGetTextureObjectResourceDesc");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(pResDesc, texObject);
}
extern __host__ cudaError_t CUDARTAPI cudaGetTextureObjectTextureDesc(
struct cudaTextureDesc *pTexDesc, cudaTextureObject_t texObject) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(struct cudaTextureDesc *, cudaTextureObject_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGetTextureObjectTextureDesc");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(pTexDesc, texObject);
}
extern __host__ cudaError_t CUDARTAPI cudaGetTextureObjectResourceViewDesc(
struct cudaResourceViewDesc *pResViewDesc, cudaTextureObject_t texObject) {
using FuncPtr = cudaError_t(CUDARTAPI *)(struct cudaResourceViewDesc *,
cudaTextureObject_t);
static auto func_ptr =
LoadSymbol<FuncPtr>("cudaGetTextureObjectResourceViewDesc");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(pResViewDesc, texObject);
}
extern __host__ cudaError_t CUDARTAPI cudaCreateSurfaceObject(
cudaSurfaceObject_t *pSurfObject, const struct cudaResourceDesc *pResDesc) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaSurfaceObject_t *,
const struct cudaResourceDesc *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaCreateSurfaceObject");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(pSurfObject, pResDesc);
}
extern __host__ cudaError_t CUDARTAPI
cudaDestroySurfaceObject(cudaSurfaceObject_t surfObject) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaSurfaceObject_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaDestroySurfaceObject");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(surfObject);
}
extern __host__ cudaError_t CUDARTAPI cudaGetSurfaceObjectResourceDesc(
struct cudaResourceDesc *pResDesc, cudaSurfaceObject_t surfObject) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(struct cudaResourceDesc *, cudaSurfaceObject_t);
static auto func_ptr =
LoadSymbol<FuncPtr>("cudaGetSurfaceObjectResourceDesc");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(pResDesc, surfObject);
}
extern __host__ cudaError_t CUDARTAPI cudaDriverGetVersion(int *driverVersion) {
using FuncPtr = cudaError_t(CUDARTAPI *)(int *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaDriverGetVersion");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(driverVersion);
}
extern __host__ __cudart_builtin__ cudaError_t CUDARTAPI
cudaRuntimeGetVersion(int *runtimeVersion) {
using FuncPtr = cudaError_t(CUDARTAPI *)(int *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaRuntimeGetVersion");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(runtimeVersion);
}
extern __host__ cudaError_t CUDARTAPI cudaGraphCreate(cudaGraph_t *pGraph,
unsigned int flags) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaGraph_t *, unsigned int);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGraphCreate");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(pGraph, flags);
}
extern __host__ cudaError_t CUDARTAPI cudaGraphAddKernelNode(
cudaGraphNode_t *pGraphNode, cudaGraph_t graph,
const cudaGraphNode_t *pDependencies, size_t numDependencies,
const struct cudaKernelNodeParams *pNodeParams) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaGraphNode_t *, cudaGraph_t,
const cudaGraphNode_t *, size_t,
const struct cudaKernelNodeParams *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGraphAddKernelNode");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(pGraphNode, graph, pDependencies, numDependencies,
pNodeParams);
}
extern __host__ cudaError_t CUDARTAPI cudaGraphKernelNodeGetParams(
cudaGraphNode_t node, struct cudaKernelNodeParams *pNodeParams) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(cudaGraphNode_t, struct cudaKernelNodeParams *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGraphKernelNodeGetParams");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(node, pNodeParams);
}
extern __host__ cudaError_t CUDARTAPI cudaGraphKernelNodeSetParams(
cudaGraphNode_t node, const struct cudaKernelNodeParams *pNodeParams) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaGraphNode_t,
const struct cudaKernelNodeParams *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGraphKernelNodeSetParams");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(node, pNodeParams);
}
extern __host__ cudaError_t CUDARTAPI
cudaGraphKernelNodeCopyAttributes(cudaGraphNode_t hSrc, cudaGraphNode_t hDst) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaGraphNode_t, cudaGraphNode_t);
static auto func_ptr =
LoadSymbol<FuncPtr>("cudaGraphKernelNodeCopyAttributes");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(hSrc, hDst);
}
extern __host__ cudaError_t CUDARTAPI cudaGraphKernelNodeGetAttribute(
cudaGraphNode_t hNode, cudaKernelNodeAttrID attr,
cudaKernelNodeAttrValue *value_out) {
using FuncPtr = cudaError_t(CUDARTAPI *)(
cudaGraphNode_t, cudaKernelNodeAttrID, cudaKernelNodeAttrValue *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGraphKernelNodeGetAttribute");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(hNode, attr, value_out);
}
extern __host__ cudaError_t CUDARTAPI cudaGraphKernelNodeSetAttribute(
cudaGraphNode_t hNode, cudaKernelNodeAttrID attr,
const cudaKernelNodeAttrValue *value) {
using FuncPtr = cudaError_t(CUDARTAPI *)(
cudaGraphNode_t, cudaKernelNodeAttrID, const cudaKernelNodeAttrValue *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGraphKernelNodeSetAttribute");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(hNode, attr, value);
}
extern __host__ cudaError_t CUDARTAPI cudaGraphAddMemcpyNode(
cudaGraphNode_t *pGraphNode, cudaGraph_t graph,
const cudaGraphNode_t *pDependencies, size_t numDependencies,
const struct cudaMemcpy3DParms *pCopyParams) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaGraphNode_t *, cudaGraph_t,
const cudaGraphNode_t *, size_t,
const struct cudaMemcpy3DParms *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGraphAddMemcpyNode");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(pGraphNode, graph, pDependencies, numDependencies,
pCopyParams);
}
extern __host__ cudaError_t CUDARTAPI cudaGraphMemcpyNodeGetParams(
cudaGraphNode_t node, struct cudaMemcpy3DParms *pNodeParams) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(cudaGraphNode_t, struct cudaMemcpy3DParms *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGraphMemcpyNodeGetParams");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(node, pNodeParams);
}
extern __host__ cudaError_t CUDARTAPI cudaGraphMemcpyNodeSetParams(
cudaGraphNode_t node, const struct cudaMemcpy3DParms *pNodeParams) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaGraphNode_t,
const struct cudaMemcpy3DParms *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGraphMemcpyNodeSetParams");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(node, pNodeParams);
}
extern __host__ cudaError_t CUDARTAPI cudaGraphAddMemsetNode(
cudaGraphNode_t *pGraphNode, cudaGraph_t graph,
const cudaGraphNode_t *pDependencies, size_t numDependencies,
const struct cudaMemsetParams *pMemsetParams) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaGraphNode_t *, cudaGraph_t,
const cudaGraphNode_t *, size_t,
const struct cudaMemsetParams *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGraphAddMemsetNode");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(pGraphNode, graph, pDependencies, numDependencies,
pMemsetParams);
}
extern __host__ cudaError_t CUDARTAPI cudaGraphMemsetNodeGetParams(
cudaGraphNode_t node, struct cudaMemsetParams *pNodeParams) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(cudaGraphNode_t, struct cudaMemsetParams *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGraphMemsetNodeGetParams");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(node, pNodeParams);
}
extern __host__ cudaError_t CUDARTAPI cudaGraphMemsetNodeSetParams(
cudaGraphNode_t node, const struct cudaMemsetParams *pNodeParams) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaGraphNode_t,
const struct cudaMemsetParams *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGraphMemsetNodeSetParams");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(node, pNodeParams);
}
extern __host__ cudaError_t CUDARTAPI cudaGraphAddHostNode(
cudaGraphNode_t *pGraphNode, cudaGraph_t graph,
const cudaGraphNode_t *pDependencies, size_t numDependencies,
const struct cudaHostNodeParams *pNodeParams) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaGraphNode_t *, cudaGraph_t,
const cudaGraphNode_t *, size_t,
const struct cudaHostNodeParams *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGraphAddHostNode");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(pGraphNode, graph, pDependencies, numDependencies,
pNodeParams);
}
extern __host__ cudaError_t CUDARTAPI cudaGraphHostNodeGetParams(
cudaGraphNode_t node, struct cudaHostNodeParams *pNodeParams) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(cudaGraphNode_t, struct cudaHostNodeParams *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGraphHostNodeGetParams");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(node, pNodeParams);
}
extern __host__ cudaError_t CUDARTAPI cudaGraphHostNodeSetParams(
cudaGraphNode_t node, const struct cudaHostNodeParams *pNodeParams) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaGraphNode_t,
const struct cudaHostNodeParams *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGraphHostNodeSetParams");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(node, pNodeParams);
}
extern __host__ cudaError_t CUDARTAPI
cudaGraphAddChildGraphNode(cudaGraphNode_t *pGraphNode, cudaGraph_t graph,
const cudaGraphNode_t *pDependencies,
size_t numDependencies, cudaGraph_t childGraph) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(cudaGraphNode_t *, cudaGraph_t,
const cudaGraphNode_t *, size_t, cudaGraph_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGraphAddChildGraphNode");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(pGraphNode, graph, pDependencies, numDependencies,
childGraph);
}
extern __host__ cudaError_t CUDARTAPI
cudaGraphChildGraphNodeGetGraph(cudaGraphNode_t node, cudaGraph_t *pGraph) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaGraphNode_t, cudaGraph_t *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGraphChildGraphNodeGetGraph");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(node, pGraph);
}
extern __host__ cudaError_t CUDARTAPI cudaGraphAddEmptyNode(
cudaGraphNode_t *pGraphNode, cudaGraph_t graph,
const cudaGraphNode_t *pDependencies, size_t numDependencies) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaGraphNode_t *, cudaGraph_t,
const cudaGraphNode_t *, size_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGraphAddEmptyNode");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(pGraphNode, graph, pDependencies, numDependencies);
}
extern __host__ cudaError_t CUDARTAPI
cudaGraphClone(cudaGraph_t *pGraphClone, cudaGraph_t originalGraph) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaGraph_t *, cudaGraph_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGraphClone");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(pGraphClone, originalGraph);
}
extern __host__ cudaError_t CUDARTAPI
cudaGraphNodeFindInClone(cudaGraphNode_t *pNode, cudaGraphNode_t originalNode,
cudaGraph_t clonedGraph) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(cudaGraphNode_t *, cudaGraphNode_t, cudaGraph_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGraphNodeFindInClone");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(pNode, originalNode, clonedGraph);
}
extern __host__ cudaError_t CUDARTAPI
cudaGraphNodeGetType(cudaGraphNode_t node, enum cudaGraphNodeType *pType) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(cudaGraphNode_t, enum cudaGraphNodeType *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGraphNodeGetType");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(node, pType);
}
extern __host__ cudaError_t CUDARTAPI cudaGraphGetNodes(cudaGraph_t graph,
cudaGraphNode_t *nodes,
size_t *numNodes) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(cudaGraph_t, cudaGraphNode_t *, size_t *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGraphGetNodes");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(graph, nodes, numNodes);
}
extern __host__ cudaError_t CUDARTAPI cudaGraphGetRootNodes(
cudaGraph_t graph, cudaGraphNode_t *pRootNodes, size_t *pNumRootNodes) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(cudaGraph_t, cudaGraphNode_t *, size_t *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGraphGetRootNodes");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(graph, pRootNodes, pNumRootNodes);
}
extern __host__ cudaError_t CUDARTAPI cudaGraphGetEdges(cudaGraph_t graph,
cudaGraphNode_t *from,
cudaGraphNode_t *to,
size_t *numEdges) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaGraph_t, cudaGraphNode_t *,
cudaGraphNode_t *, size_t *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGraphGetEdges");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(graph, from, to, numEdges);
}
extern __host__ cudaError_t CUDARTAPI cudaGraphNodeGetDependencies(
cudaGraphNode_t node, cudaGraphNode_t *pDependencies,
size_t *pNumDependencies) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(cudaGraphNode_t, cudaGraphNode_t *, size_t *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGraphNodeGetDependencies");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(node, pDependencies, pNumDependencies);
}
extern __host__ cudaError_t CUDARTAPI cudaGraphNodeGetDependentNodes(
cudaGraphNode_t node, cudaGraphNode_t *pDependentNodes,
size_t *pNumDependentNodes) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(cudaGraphNode_t, cudaGraphNode_t *, size_t *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGraphNodeGetDependentNodes");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(node, pDependentNodes, pNumDependentNodes);
}
extern __host__ cudaError_t CUDARTAPI
cudaGraphAddDependencies(cudaGraph_t graph, const cudaGraphNode_t *from,
const cudaGraphNode_t *to, size_t numDependencies) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaGraph_t, const cudaGraphNode_t *,
const cudaGraphNode_t *, size_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGraphAddDependencies");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(graph, from, to, numDependencies);
}
extern __host__ cudaError_t CUDARTAPI
cudaGraphRemoveDependencies(cudaGraph_t graph, const cudaGraphNode_t *from,
const cudaGraphNode_t *to, size_t numDependencies) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaGraph_t, const cudaGraphNode_t *,
const cudaGraphNode_t *, size_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGraphRemoveDependencies");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(graph, from, to, numDependencies);
}
extern __host__ cudaError_t CUDARTAPI
cudaGraphDestroyNode(cudaGraphNode_t node) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaGraphNode_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGraphDestroyNode");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(node);
}
extern __host__ cudaError_t CUDARTAPI
cudaGraphInstantiate(cudaGraphExec_t *pGraphExec, cudaGraph_t graph,
unsigned long long flags __dv(0)) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaGraphExec_t *, cudaGraph_t,
unsigned long long);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGraphInstantiate");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(pGraphExec, graph, flags);
}
extern __host__ cudaError_t CUDARTAPI
cudaGraphInstantiateWithParams(cudaGraphExec_t *pGraphExec, cudaGraph_t graph,
cudaGraphInstantiateParams *instantiateParams) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaGraphExec_t *, cudaGraph_t,
cudaGraphInstantiateParams *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGraphInstantiateWithParams");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(pGraphExec, graph, instantiateParams);
}
extern __host__ cudaError_t CUDARTAPI
cudaGraphExecGetFlags(cudaGraphExec_t graphExec, unsigned long long *flags) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(cudaGraphExec_t, unsigned long long *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGraphExecGetFlags");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(graphExec, flags);
}
extern __host__ cudaError_t CUDARTAPI cudaGraphExecKernelNodeSetParams(
cudaGraphExec_t hGraphExec, cudaGraphNode_t node,
const struct cudaKernelNodeParams *pNodeParams) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaGraphExec_t, cudaGraphNode_t,
const struct cudaKernelNodeParams *);
static auto func_ptr =
LoadSymbol<FuncPtr>("cudaGraphExecKernelNodeSetParams");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(hGraphExec, node, pNodeParams);
}
extern __host__ cudaError_t CUDARTAPI cudaGraphExecMemcpyNodeSetParams(
cudaGraphExec_t hGraphExec, cudaGraphNode_t node,
const struct cudaMemcpy3DParms *pNodeParams) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaGraphExec_t, cudaGraphNode_t,
const struct cudaMemcpy3DParms *);
static auto func_ptr =
LoadSymbol<FuncPtr>("cudaGraphExecMemcpyNodeSetParams");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(hGraphExec, node, pNodeParams);
}
extern __host__ cudaError_t CUDARTAPI cudaGraphExecMemsetNodeSetParams(
cudaGraphExec_t hGraphExec, cudaGraphNode_t node,
const struct cudaMemsetParams *pNodeParams) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaGraphExec_t, cudaGraphNode_t,
const struct cudaMemsetParams *);
static auto func_ptr =
LoadSymbol<FuncPtr>("cudaGraphExecMemsetNodeSetParams");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(hGraphExec, node, pNodeParams);
}
extern __host__ cudaError_t CUDARTAPI
cudaGraphExecHostNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node,
const struct cudaHostNodeParams *pNodeParams) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaGraphExec_t, cudaGraphNode_t,
const struct cudaHostNodeParams *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGraphExecHostNodeSetParams");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(hGraphExec, node, pNodeParams);
}
extern __host__ cudaError_t CUDARTAPI
cudaGraphExecUpdate(cudaGraphExec_t hGraphExec, cudaGraph_t hGraph,
cudaGraphExecUpdateResultInfo *resultInfo) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaGraphExec_t, cudaGraph_t,
cudaGraphExecUpdateResultInfo *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGraphExecUpdate");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(hGraphExec, hGraph, resultInfo);
}
extern __host__ cudaError_t CUDARTAPI cudaGraphLaunch(cudaGraphExec_t graphExec,
cudaStream_t stream) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaGraphExec_t, cudaStream_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGraphLaunch");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(graphExec, stream);
}
extern __host__ cudaError_t CUDARTAPI
cudaGraphExecDestroy(cudaGraphExec_t graphExec) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaGraphExec_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGraphExecDestroy");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(graphExec);
}
extern __host__ cudaError_t CUDARTAPI cudaGraphDestroy(cudaGraph_t graph) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaGraph_t);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGraphDestroy");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(graph);
}
extern __host__ cudaError_t CUDARTAPI cudaGraphDebugDotPrint(
cudaGraph_t graph, const char *path, unsigned int flags) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(cudaGraph_t, const char *, unsigned int);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGraphDebugDotPrint");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(graph, path, flags);
}
extern __host__ cudaError_t CUDARTAPI cudaUserObjectCreate(
cudaUserObject_t *object_out, void *ptr, cudaHostFn_t destroy,
unsigned int initialRefcount, unsigned int flags) {
using FuncPtr = cudaError_t(CUDARTAPI *)(
cudaUserObject_t *, void *, cudaHostFn_t, unsigned int, unsigned int);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaUserObjectCreate");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(object_out, ptr, destroy, initialRefcount, flags);
}
extern __host__ cudaError_t CUDARTAPI
cudaUserObjectRetain(cudaUserObject_t object, unsigned int count __dv(1)) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaUserObject_t, unsigned int);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaUserObjectRetain");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(object, count);
}
extern __host__ cudaError_t CUDARTAPI
cudaUserObjectRelease(cudaUserObject_t object, unsigned int count __dv(1)) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaUserObject_t, unsigned int);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaUserObjectRelease");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(object, count);
}
extern __host__ cudaError_t CUDARTAPI cudaGraphRetainUserObject(
cudaGraph_t graph, cudaUserObject_t object, unsigned int count __dv(1),
unsigned int flags __dv(0)) {
using FuncPtr = cudaError_t(CUDARTAPI *)(cudaGraph_t, cudaUserObject_t,
unsigned int, unsigned int);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGraphRetainUserObject");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(graph, object, count, flags);
}
extern __host__ cudaError_t CUDARTAPI cudaGraphReleaseUserObject(
cudaGraph_t graph, cudaUserObject_t object, unsigned int count __dv(1)) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(cudaGraph_t, cudaUserObject_t, unsigned int);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGraphReleaseUserObject");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(graph, object, count);
}
extern __host__ cudaError_t CUDARTAPI cudaGetDriverEntryPoint(
const char *symbol, void **funcPtr, unsigned long long flags,
enum cudaDriverEntryPointQueryResult *driverStatus) {
using FuncPtr =
cudaError_t(CUDARTAPI *)(const char *, void **, unsigned long long,
enum cudaDriverEntryPointQueryResult *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGetDriverEntryPoint");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(symbol, funcPtr, flags, driverStatus);
}
extern __host__ cudaError_t CUDARTAPI cudaGetExportTable(
const void **ppExportTable, const cudaUUID_t *pExportTableId) {
using FuncPtr = cudaError_t(CUDARTAPI *)(const void **, const cudaUUID_t *);
static auto func_ptr = LoadSymbol<FuncPtr>("cudaGetExportTable");
if (!func_ptr) return GetSymbolNotFoundError();
return func_ptr(ppExportTable, pExportTableId);
}
} // extern "C"
| [
"[email protected]"
] | |
42828542de6f1757d93a501d2d594a217acf78be | 7c76235f9909d8569b0dbc75defcceb4174d166c | /backends/smt2/smt2.cc | ca1ceacc7245c211cdc9598a5f289f8f5c968f50 | [
"ISC",
"MIT",
"LicenseRef-scancode-other-copyleft",
"BSD-2-Clause"
] | permissive | gundy/yosys | 121e45b0d7a06f957e4b522a3c9ecc42044b1e60 | 1dd156f5167d9949eccb7abcbc65d9bc74f49ee8 | refs/heads/master | 2020-03-26T10:08:03.250454 | 2018-08-14T21:31:25 | 2018-08-14T21:31:25 | 144,782,458 | 1 | 0 | ISC | 2018-08-14T23:33:59 | 2018-08-14T23:33:59 | null | UTF-8 | C++ | false | false | 60,063 | cc | /*
* yosys -- Yosys Open SYnthesis Suite
*
* Copyright (C) 2012 Clifford Wolf <[email protected]>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
*/
#include "kernel/rtlil.h"
#include "kernel/register.h"
#include "kernel/sigtools.h"
#include "kernel/celltypes.h"
#include "kernel/log.h"
#include <string>
USING_YOSYS_NAMESPACE
PRIVATE_NAMESPACE_BEGIN
struct Smt2Worker
{
CellTypes ct;
SigMap sigmap;
RTLIL::Module *module;
bool bvmode, memmode, wiresmode, verbose, statebv, statedt, forallmode;
dict<IdString, int> &mod_stbv_width;
int idcounter = 0, statebv_width = 0;
std::vector<std::string> decls, trans, hier, dtmembers;
std::map<RTLIL::SigBit, RTLIL::Cell*> bit_driver;
std::set<RTLIL::Cell*> exported_cells, hiercells, hiercells_queue;
pool<Cell*> recursive_cells, registers;
pool<SigBit> clock_posedge, clock_negedge;
vector<string> ex_state_eq, ex_input_eq;
std::map<RTLIL::SigBit, std::pair<int, int>> fcache;
std::map<Cell*, int> memarrays;
std::map<int, int> bvsizes;
dict<IdString, char*> ids;
const char *get_id(IdString n)
{
if (ids.count(n) == 0) {
std::string str = log_id(n);
for (int i = 0; i < GetSize(str); i++) {
if (str[i] == '\\')
str[i] = '/';
}
ids[n] = strdup(str.c_str());
}
return ids[n];
}
template<typename T>
const char *get_id(T *obj) {
return get_id(obj->name);
}
void makebits(std::string name, int width = 0, std::string comment = std::string())
{
std::string decl_str;
if (statebv)
{
if (width == 0) {
decl_str = stringf("(define-fun |%s| ((state |%s_s|)) Bool (= ((_ extract %d %d) state) #b1))", name.c_str(), get_id(module), statebv_width, statebv_width);
statebv_width += 1;
} else {
decl_str = stringf("(define-fun |%s| ((state |%s_s|)) (_ BitVec %d) ((_ extract %d %d) state))", name.c_str(), get_id(module), width, statebv_width+width-1, statebv_width);
statebv_width += width;
}
}
else if (statedt)
{
if (width == 0) {
decl_str = stringf(" (|%s| Bool)", name.c_str());
} else {
decl_str = stringf(" (|%s| (_ BitVec %d))", name.c_str(), width);
}
}
else
{
if (width == 0) {
decl_str = stringf("(declare-fun |%s| (|%s_s|) Bool)", name.c_str(), get_id(module));
} else {
decl_str = stringf("(declare-fun |%s| (|%s_s|) (_ BitVec %d))", name.c_str(), get_id(module), width);
}
}
if (!comment.empty())
decl_str += " ; " + comment;
if (statedt)
dtmembers.push_back(decl_str + "\n");
else
decls.push_back(decl_str + "\n");
}
Smt2Worker(RTLIL::Module *module, bool bvmode, bool memmode, bool wiresmode, bool verbose, bool statebv, bool statedt, bool forallmode,
dict<IdString, int> &mod_stbv_width, dict<IdString, dict<IdString, pair<bool, bool>>> &mod_clk_cache) :
ct(module->design), sigmap(module), module(module), bvmode(bvmode), memmode(memmode), wiresmode(wiresmode),
verbose(verbose), statebv(statebv), statedt(statedt), forallmode(forallmode), mod_stbv_width(mod_stbv_width)
{
pool<SigBit> noclock;
makebits(stringf("%s_is", get_id(module)));
for (auto cell : module->cells())
for (auto &conn : cell->connections())
{
if (GetSize(conn.second) == 0)
continue;
bool is_input = ct.cell_input(cell->type, conn.first);
bool is_output = ct.cell_output(cell->type, conn.first);
if (is_output && !is_input)
for (auto bit : sigmap(conn.second)) {
if (bit_driver.count(bit))
log_error("Found multiple drivers for %s.\n", log_signal(bit));
bit_driver[bit] = cell;
}
else if (is_output || !is_input)
log_error("Unsupported or unknown directionality on port %s of cell %s.%s (%s).\n",
log_id(conn.first), log_id(module), log_id(cell), log_id(cell->type));
if (cell->type.in("$mem") && conn.first.in("\\RD_CLK", "\\WR_CLK"))
{
SigSpec clk = sigmap(conn.second);
for (int i = 0; i < GetSize(clk); i++)
{
if (clk[i].wire == nullptr)
continue;
if (cell->getParam(conn.first == "\\RD_CLK" ? "\\RD_CLK_ENABLE" : "\\WR_CLK_ENABLE")[i] != State::S1)
continue;
if (cell->getParam(conn.first == "\\RD_CLK" ? "\\RD_CLK_POLARITY" : "\\WR_CLK_POLARITY")[i] == State::S1)
clock_posedge.insert(clk[i]);
else
clock_negedge.insert(clk[i]);
}
}
else
if (cell->type.in("$dff", "$_DFF_P_", "$_DFF_N_") && conn.first.in("\\CLK", "\\C"))
{
bool posedge = (cell->type == "$_DFF_N_") || (cell->type == "$dff" && cell->getParam("\\CLK_POLARITY").as_bool());
for (auto bit : sigmap(conn.second)) {
if (posedge)
clock_posedge.insert(bit);
else
clock_negedge.insert(bit);
}
}
else
if (mod_clk_cache.count(cell->type) && mod_clk_cache.at(cell->type).count(conn.first))
{
for (auto bit : sigmap(conn.second)) {
if (mod_clk_cache.at(cell->type).at(conn.first).first)
clock_posedge.insert(bit);
if (mod_clk_cache.at(cell->type).at(conn.first).second)
clock_negedge.insert(bit);
}
}
else
{
for (auto bit : sigmap(conn.second))
noclock.insert(bit);
}
}
for (auto bit : noclock) {
clock_posedge.erase(bit);
clock_negedge.erase(bit);
}
for (auto wire : module->wires())
{
if (!wire->port_input || GetSize(wire) != 1)
continue;
SigBit bit = sigmap(wire);
if (clock_posedge.count(bit))
mod_clk_cache[module->name][wire->name].first = true;
if (clock_negedge.count(bit))
mod_clk_cache[module->name][wire->name].second = true;
}
}
~Smt2Worker()
{
for (auto &it : ids)
free(it.second);
ids.clear();
}
const char *get_id(Module *m)
{
return get_id(m->name);
}
const char *get_id(Cell *c)
{
return get_id(c->name);
}
const char *get_id(Wire *w)
{
return get_id(w->name);
}
void register_bool(RTLIL::SigBit bit, int id)
{
if (verbose) log("%*s-> register_bool: %s %d\n", 2+2*GetSize(recursive_cells), "",
log_signal(bit), id);
sigmap.apply(bit);
log_assert(fcache.count(bit) == 0);
fcache[bit] = std::pair<int, int>(id, -1);
}
void register_bv(RTLIL::SigSpec sig, int id)
{
if (verbose) log("%*s-> register_bv: %s %d\n", 2+2*GetSize(recursive_cells), "",
log_signal(sig), id);
log_assert(bvmode);
sigmap.apply(sig);
log_assert(bvsizes.count(id) == 0);
bvsizes[id] = GetSize(sig);
for (int i = 0; i < GetSize(sig); i++) {
log_assert(fcache.count(sig[i]) == 0);
fcache[sig[i]] = std::pair<int, int>(id, i);
}
}
void register_boolvec(RTLIL::SigSpec sig, int id)
{
if (verbose) log("%*s-> register_boolvec: %s %d\n", 2+2*GetSize(recursive_cells), "",
log_signal(sig), id);
log_assert(bvmode);
sigmap.apply(sig);
register_bool(sig[0], id);
for (int i = 1; i < GetSize(sig); i++)
sigmap.add(sig[i], RTLIL::State::S0);
}
std::string get_bool(RTLIL::SigBit bit, const char *state_name = "state")
{
sigmap.apply(bit);
if (bit.wire == nullptr)
return bit == RTLIL::State::S1 ? "true" : "false";
if (bit_driver.count(bit))
export_cell(bit_driver.at(bit));
sigmap.apply(bit);
if (fcache.count(bit) == 0) {
if (verbose) log("%*s-> external bool: %s\n", 2+2*GetSize(recursive_cells), "",
log_signal(bit));
makebits(stringf("%s#%d", get_id(module), idcounter), 0, log_signal(bit));
register_bool(bit, idcounter++);
}
auto f = fcache.at(bit);
if (f.second >= 0)
return stringf("(= ((_ extract %d %d) (|%s#%d| %s)) #b1)", f.second, f.second, get_id(module), f.first, state_name);
return stringf("(|%s#%d| %s)", get_id(module), f.first, state_name);
}
std::string get_bool(RTLIL::SigSpec sig, const char *state_name = "state")
{
return get_bool(sig.as_bit(), state_name);
}
std::string get_bv(RTLIL::SigSpec sig, const char *state_name = "state")
{
log_assert(bvmode);
sigmap.apply(sig);
std::vector<std::string> subexpr;
SigSpec orig_sig;
while (orig_sig != sig) {
for (auto bit : sig)
if (bit_driver.count(bit))
export_cell(bit_driver.at(bit));
orig_sig = sig;
sigmap.apply(sig);
}
for (int i = 0, j = 1; i < GetSize(sig); i += j, j = 1)
{
if (sig[i].wire == nullptr) {
while (i+j < GetSize(sig) && sig[i+j].wire == nullptr) j++;
subexpr.push_back("#b");
for (int k = i+j-1; k >= i; k--)
subexpr.back() += sig[k] == RTLIL::State::S1 ? "1" : "0";
continue;
}
if (fcache.count(sig[i]) && fcache.at(sig[i]).second == -1) {
subexpr.push_back(stringf("(ite %s #b1 #b0)", get_bool(sig[i], state_name).c_str()));
continue;
}
if (fcache.count(sig[i])) {
auto t1 = fcache.at(sig[i]);
while (i+j < GetSize(sig)) {
if (fcache.count(sig[i+j]) == 0)
break;
auto t2 = fcache.at(sig[i+j]);
if (t1.first != t2.first)
break;
if (t1.second+j != t2.second)
break;
j++;
}
if (t1.second == 0 && j == bvsizes.at(t1.first))
subexpr.push_back(stringf("(|%s#%d| %s)", get_id(module), t1.first, state_name));
else
subexpr.push_back(stringf("((_ extract %d %d) (|%s#%d| %s))",
t1.second + j - 1, t1.second, get_id(module), t1.first, state_name));
continue;
}
std::set<RTLIL::SigBit> seen_bits = { sig[i] };
while (i+j < GetSize(sig) && sig[i+j].wire && !fcache.count(sig[i+j]) && !seen_bits.count(sig[i+j]))
seen_bits.insert(sig[i+j]), j++;
if (verbose) log("%*s-> external bv: %s\n", 2+2*GetSize(recursive_cells), "",
log_signal(sig.extract(i, j)));
for (auto bit : sig.extract(i, j))
log_assert(bit_driver.count(bit) == 0);
makebits(stringf("%s#%d", get_id(module), idcounter), j, log_signal(sig.extract(i, j)));
subexpr.push_back(stringf("(|%s#%d| %s)", get_id(module), idcounter, state_name));
register_bv(sig.extract(i, j), idcounter++);
}
if (GetSize(subexpr) > 1) {
std::string expr = "", end_str = "";
for (int i = GetSize(subexpr)-1; i >= 0; i--) {
if (i > 0) expr += " (concat", end_str += ")";
expr += " " + subexpr[i];
}
return expr.substr(1) + end_str;
} else {
log_assert(GetSize(subexpr) == 1);
return subexpr[0];
}
}
void export_gate(RTLIL::Cell *cell, std::string expr)
{
RTLIL::SigBit bit = sigmap(cell->getPort("\\Y").as_bit());
std::string processed_expr;
for (char ch : expr) {
if (ch == 'A') processed_expr += get_bool(cell->getPort("\\A"));
else if (ch == 'B') processed_expr += get_bool(cell->getPort("\\B"));
else if (ch == 'C') processed_expr += get_bool(cell->getPort("\\C"));
else if (ch == 'D') processed_expr += get_bool(cell->getPort("\\D"));
else if (ch == 'S') processed_expr += get_bool(cell->getPort("\\S"));
else processed_expr += ch;
}
if (verbose)
log("%*s-> import cell: %s\n", 2+2*GetSize(recursive_cells), "", log_id(cell));
decls.push_back(stringf("(define-fun |%s#%d| ((state |%s_s|)) Bool %s) ; %s\n",
get_id(module), idcounter, get_id(module), processed_expr.c_str(), log_signal(bit)));
register_bool(bit, idcounter++);
recursive_cells.erase(cell);
}
void export_bvop(RTLIL::Cell *cell, std::string expr, char type = 0)
{
RTLIL::SigSpec sig_a, sig_b;
RTLIL::SigSpec sig_y = sigmap(cell->getPort("\\Y"));
bool is_signed = cell->getParam("\\A_SIGNED").as_bool();
int width = GetSize(sig_y);
if (type == 's' || type == 'd' || type == 'b') {
width = max(width, GetSize(cell->getPort("\\A")));
if (cell->hasPort("\\B"))
width = max(width, GetSize(cell->getPort("\\B")));
}
if (cell->hasPort("\\A")) {
sig_a = cell->getPort("\\A");
sig_a.extend_u0(width, is_signed);
}
if (cell->hasPort("\\B")) {
sig_b = cell->getPort("\\B");
sig_b.extend_u0(width, is_signed && !(type == 's'));
}
std::string processed_expr;
for (char ch : expr) {
if (ch == 'A') processed_expr += get_bv(sig_a);
else if (ch == 'B') processed_expr += get_bv(sig_b);
else if (ch == 'L') processed_expr += is_signed ? "a" : "l";
else if (ch == 'U') processed_expr += is_signed ? "s" : "u";
else processed_expr += ch;
}
if (width != GetSize(sig_y) && type != 'b')
processed_expr = stringf("((_ extract %d 0) %s)", GetSize(sig_y)-1, processed_expr.c_str());
if (verbose)
log("%*s-> import cell: %s\n", 2+2*GetSize(recursive_cells), "", log_id(cell));
if (type == 'b') {
decls.push_back(stringf("(define-fun |%s#%d| ((state |%s_s|)) Bool %s) ; %s\n",
get_id(module), idcounter, get_id(module), processed_expr.c_str(), log_signal(sig_y)));
register_boolvec(sig_y, idcounter++);
} else {
decls.push_back(stringf("(define-fun |%s#%d| ((state |%s_s|)) (_ BitVec %d) %s) ; %s\n",
get_id(module), idcounter, get_id(module), GetSize(sig_y), processed_expr.c_str(), log_signal(sig_y)));
register_bv(sig_y, idcounter++);
}
recursive_cells.erase(cell);
}
void export_reduce(RTLIL::Cell *cell, std::string expr, bool identity_val)
{
RTLIL::SigSpec sig_y = sigmap(cell->getPort("\\Y"));
std::string processed_expr;
for (char ch : expr)
if (ch == 'A' || ch == 'B') {
RTLIL::SigSpec sig = sigmap(cell->getPort(stringf("\\%c", ch)));
for (auto bit : sig)
processed_expr += " " + get_bool(bit);
if (GetSize(sig) == 1)
processed_expr += identity_val ? " true" : " false";
} else
processed_expr += ch;
if (verbose)
log("%*s-> import cell: %s\n", 2+2*GetSize(recursive_cells), "", log_id(cell));
decls.push_back(stringf("(define-fun |%s#%d| ((state |%s_s|)) Bool %s) ; %s\n",
get_id(module), idcounter, get_id(module), processed_expr.c_str(), log_signal(sig_y)));
register_boolvec(sig_y, idcounter++);
recursive_cells.erase(cell);
}
void export_cell(RTLIL::Cell *cell)
{
if (verbose)
log("%*s=> export_cell %s (%s) [%s]\n", 2+2*GetSize(recursive_cells), "",
log_id(cell), log_id(cell->type), exported_cells.count(cell) ? "old" : "new");
if (recursive_cells.count(cell))
log_error("Found logic loop in module %s! See cell %s.\n", get_id(module), get_id(cell));
if (exported_cells.count(cell))
return;
exported_cells.insert(cell);
recursive_cells.insert(cell);
if (cell->type == "$initstate")
{
SigBit bit = sigmap(cell->getPort("\\Y").as_bit());
decls.push_back(stringf("(define-fun |%s#%d| ((state |%s_s|)) Bool (|%s_is| state)) ; %s\n",
get_id(module), idcounter, get_id(module), get_id(module), log_signal(bit)));
register_bool(bit, idcounter++);
recursive_cells.erase(cell);
return;
}
if (cell->type.in("$_FF_", "$_DFF_P_", "$_DFF_N_"))
{
registers.insert(cell);
makebits(stringf("%s#%d", get_id(module), idcounter), 0, log_signal(cell->getPort("\\Q")));
register_bool(cell->getPort("\\Q"), idcounter++);
recursive_cells.erase(cell);
return;
}
if (cell->type == "$_BUF_") return export_gate(cell, "A");
if (cell->type == "$_NOT_") return export_gate(cell, "(not A)");
if (cell->type == "$_AND_") return export_gate(cell, "(and A B)");
if (cell->type == "$_NAND_") return export_gate(cell, "(not (and A B))");
if (cell->type == "$_OR_") return export_gate(cell, "(or A B)");
if (cell->type == "$_NOR_") return export_gate(cell, "(not (or A B))");
if (cell->type == "$_XOR_") return export_gate(cell, "(xor A B)");
if (cell->type == "$_XNOR_") return export_gate(cell, "(not (xor A B))");
if (cell->type == "$_ANDNOT_") return export_gate(cell, "(and A (not B))");
if (cell->type == "$_ORNOT_") return export_gate(cell, "(or A (not B))");
if (cell->type == "$_MUX_") return export_gate(cell, "(ite S B A)");
if (cell->type == "$_AOI3_") return export_gate(cell, "(not (or (and A B) C))");
if (cell->type == "$_OAI3_") return export_gate(cell, "(not (and (or A B) C))");
if (cell->type == "$_AOI4_") return export_gate(cell, "(not (or (and A B) (and C D)))");
if (cell->type == "$_OAI4_") return export_gate(cell, "(not (and (or A B) (or C D)))");
// FIXME: $lut
if (bvmode)
{
if (cell->type.in("$ff", "$dff"))
{
registers.insert(cell);
makebits(stringf("%s#%d", get_id(module), idcounter), GetSize(cell->getPort("\\Q")), log_signal(cell->getPort("\\Q")));
register_bv(cell->getPort("\\Q"), idcounter++);
recursive_cells.erase(cell);
return;
}
if (cell->type.in("$anyconst", "$anyseq", "$allconst", "$allseq"))
{
registers.insert(cell);
string infostr = cell->attributes.count("\\src") ? cell->attributes.at("\\src").decode_string().c_str() : get_id(cell);
if (cell->attributes.count("\\reg"))
infostr += " " + cell->attributes.at("\\reg").decode_string();
decls.push_back(stringf("; yosys-smt2-%s %s#%d %d %s\n", cell->type.c_str() + 1, get_id(module), idcounter, GetSize(cell->getPort("\\Y")), infostr.c_str()));
makebits(stringf("%s#%d", get_id(module), idcounter), GetSize(cell->getPort("\\Y")), log_signal(cell->getPort("\\Y")));
if (cell->type == "$anyseq")
ex_input_eq.push_back(stringf(" (= (|%s#%d| state) (|%s#%d| other_state))", get_id(module), idcounter, get_id(module), idcounter));
register_bv(cell->getPort("\\Y"), idcounter++);
recursive_cells.erase(cell);
return;
}
if (cell->type == "$and") return export_bvop(cell, "(bvand A B)");
if (cell->type == "$or") return export_bvop(cell, "(bvor A B)");
if (cell->type == "$xor") return export_bvop(cell, "(bvxor A B)");
if (cell->type == "$xnor") return export_bvop(cell, "(bvxnor A B)");
if (cell->type == "$shl") return export_bvop(cell, "(bvshl A B)", 's');
if (cell->type == "$shr") return export_bvop(cell, "(bvlshr A B)", 's');
if (cell->type == "$sshl") return export_bvop(cell, "(bvshl A B)", 's');
if (cell->type == "$sshr") return export_bvop(cell, "(bvLshr A B)", 's');
if (cell->type.in("$shift", "$shiftx")) {
if (cell->getParam("\\B_SIGNED").as_bool()) {
/* FIXME */
} else {
return export_bvop(cell, "(bvlshr A B)", 's');
}
}
if (cell->type == "$lt") return export_bvop(cell, "(bvUlt A B)", 'b');
if (cell->type == "$le") return export_bvop(cell, "(bvUle A B)", 'b');
if (cell->type == "$ge") return export_bvop(cell, "(bvUge A B)", 'b');
if (cell->type == "$gt") return export_bvop(cell, "(bvUgt A B)", 'b');
if (cell->type == "$ne") return export_bvop(cell, "(distinct A B)", 'b');
if (cell->type == "$nex") return export_bvop(cell, "(distinct A B)", 'b');
if (cell->type == "$eq") return export_bvop(cell, "(= A B)", 'b');
if (cell->type == "$eqx") return export_bvop(cell, "(= A B)", 'b');
if (cell->type == "$not") return export_bvop(cell, "(bvnot A)");
if (cell->type == "$pos") return export_bvop(cell, "A");
if (cell->type == "$neg") return export_bvop(cell, "(bvneg A)");
if (cell->type == "$add") return export_bvop(cell, "(bvadd A B)");
if (cell->type == "$sub") return export_bvop(cell, "(bvsub A B)");
if (cell->type == "$mul") return export_bvop(cell, "(bvmul A B)");
if (cell->type == "$div") return export_bvop(cell, "(bvUdiv A B)", 'd');
if (cell->type == "$mod") return export_bvop(cell, "(bvUrem A B)", 'd');
if (cell->type.in("$reduce_and", "$reduce_or", "$reduce_bool") &&
2*GetSize(cell->getPort("\\A").chunks()) < GetSize(cell->getPort("\\A"))) {
bool is_and = cell->type == "$reduce_and";
string bits(GetSize(cell->getPort("\\A")), is_and ? '1' : '0');
return export_bvop(cell, stringf("(%s A #b%s)", is_and ? "=" : "distinct", bits.c_str()), 'b');
}
if (cell->type == "$reduce_and") return export_reduce(cell, "(and A)", true);
if (cell->type == "$reduce_or") return export_reduce(cell, "(or A)", false);
if (cell->type == "$reduce_xor") return export_reduce(cell, "(xor A)", false);
if (cell->type == "$reduce_xnor") return export_reduce(cell, "(not (xor A))", false);
if (cell->type == "$reduce_bool") return export_reduce(cell, "(or A)", false);
if (cell->type == "$logic_not") return export_reduce(cell, "(not (or A))", false);
if (cell->type == "$logic_and") return export_reduce(cell, "(and (or A) (or B))", false);
if (cell->type == "$logic_or") return export_reduce(cell, "(or A B)", false);
if (cell->type == "$mux" || cell->type == "$pmux")
{
int width = GetSize(cell->getPort("\\Y"));
std::string processed_expr = get_bv(cell->getPort("\\A"));
RTLIL::SigSpec sig_b = cell->getPort("\\B");
RTLIL::SigSpec sig_s = cell->getPort("\\S");
get_bv(sig_b);
get_bv(sig_s);
for (int i = 0; i < GetSize(sig_s); i++)
processed_expr = stringf("(ite %s %s %s)", get_bool(sig_s[i]).c_str(),
get_bv(sig_b.extract(i*width, width)).c_str(), processed_expr.c_str());
if (verbose)
log("%*s-> import cell: %s\n", 2+2*GetSize(recursive_cells), "", log_id(cell));
RTLIL::SigSpec sig = sigmap(cell->getPort("\\Y"));
decls.push_back(stringf("(define-fun |%s#%d| ((state |%s_s|)) (_ BitVec %d) %s) ; %s\n",
get_id(module), idcounter, get_id(module), width, processed_expr.c_str(), log_signal(sig)));
register_bv(sig, idcounter++);
recursive_cells.erase(cell);
return;
}
// FIXME: $slice $concat
}
if (memmode && cell->type == "$mem")
{
int arrayid = idcounter++;
memarrays[cell] = arrayid;
int abits = cell->getParam("\\ABITS").as_int();
int width = cell->getParam("\\WIDTH").as_int();
int rd_ports = cell->getParam("\\RD_PORTS").as_int();
int wr_ports = cell->getParam("\\WR_PORTS").as_int();
bool async_read = false;
if (!cell->getParam("\\WR_CLK_ENABLE").is_fully_ones()) {
if (!cell->getParam("\\WR_CLK_ENABLE").is_fully_zero())
log_error("Memory %s.%s has mixed clocked/nonclocked write ports. This is not supported by \"write_smt2\".\n", log_id(cell), log_id(module));
async_read = true;
}
decls.push_back(stringf("; yosys-smt2-memory %s %d %d %d %d %s\n", get_id(cell), abits, width, rd_ports, wr_ports, async_read ? "async" : "sync"));
string memstate;
if (async_read) {
memstate = stringf("%s#%d#final", get_id(module), arrayid);
} else {
memstate = stringf("%s#%d#0", get_id(module), arrayid);
}
if (statebv)
{
int mem_size = cell->getParam("\\SIZE").as_int();
int mem_offset = cell->getParam("\\OFFSET").as_int();
makebits(memstate, width*mem_size, get_id(cell));
decls.push_back(stringf("(define-fun |%s_m %s| ((state |%s_s|)) (_ BitVec %d) (|%s| state))\n",
get_id(module), get_id(cell), get_id(module), width*mem_size, memstate.c_str()));
for (int i = 0; i < rd_ports; i++)
{
SigSpec addr_sig = cell->getPort("\\RD_ADDR").extract(abits*i, abits);
SigSpec data_sig = cell->getPort("\\RD_DATA").extract(width*i, width);
std::string addr = get_bv(addr_sig);
if (cell->getParam("\\RD_CLK_ENABLE").extract(i).as_bool())
log_error("Read port %d (%s) of memory %s.%s is clocked. This is not supported by \"write_smt2\"! "
"Call \"memory\" with -nordff to avoid this error.\n", i, log_signal(data_sig), log_id(cell), log_id(module));
decls.push_back(stringf("(define-fun |%s_m:R%dA %s| ((state |%s_s|)) (_ BitVec %d) %s) ; %s\n",
get_id(module), i, get_id(cell), get_id(module), abits, addr.c_str(), log_signal(addr_sig)));
std::string read_expr = "#b";
for (int k = 0; k < width; k++)
read_expr += "0";
for (int k = 0; k < mem_size; k++)
read_expr = stringf("(ite (= (|%s_m:R%dA %s| state) #b%s) ((_ extract %d %d) (|%s| state))\n %s)",
get_id(module), i, get_id(cell), Const(k+mem_offset, abits).as_string().c_str(),
width*(k+1)-1, width*k, memstate.c_str(), read_expr.c_str());
decls.push_back(stringf("(define-fun |%s#%d| ((state |%s_s|)) (_ BitVec %d)\n %s) ; %s\n",
get_id(module), idcounter, get_id(module), width, read_expr.c_str(), log_signal(data_sig)));
decls.push_back(stringf("(define-fun |%s_m:R%dD %s| ((state |%s_s|)) (_ BitVec %d) (|%s#%d| state))\n",
get_id(module), i, get_id(cell), get_id(module), width, get_id(module), idcounter));
register_bv(data_sig, idcounter++);
}
}
else
{
if (statedt)
dtmembers.push_back(stringf(" (|%s| (Array (_ BitVec %d) (_ BitVec %d))) ; %s\n",
memstate.c_str(), abits, width, get_id(cell)));
else
decls.push_back(stringf("(declare-fun |%s| (|%s_s|) (Array (_ BitVec %d) (_ BitVec %d))) ; %s\n",
memstate.c_str(), get_id(module), abits, width, get_id(cell)));
decls.push_back(stringf("(define-fun |%s_m %s| ((state |%s_s|)) (Array (_ BitVec %d) (_ BitVec %d)) (|%s| state))\n",
get_id(module), get_id(cell), get_id(module), abits, width, memstate.c_str()));
for (int i = 0; i < rd_ports; i++)
{
SigSpec addr_sig = cell->getPort("\\RD_ADDR").extract(abits*i, abits);
SigSpec data_sig = cell->getPort("\\RD_DATA").extract(width*i, width);
std::string addr = get_bv(addr_sig);
if (cell->getParam("\\RD_CLK_ENABLE").extract(i).as_bool())
log_error("Read port %d (%s) of memory %s.%s is clocked. This is not supported by \"write_smt2\"! "
"Call \"memory\" with -nordff to avoid this error.\n", i, log_signal(data_sig), log_id(cell), log_id(module));
decls.push_back(stringf("(define-fun |%s_m:R%dA %s| ((state |%s_s|)) (_ BitVec %d) %s) ; %s\n",
get_id(module), i, get_id(cell), get_id(module), abits, addr.c_str(), log_signal(addr_sig)));
decls.push_back(stringf("(define-fun |%s#%d| ((state |%s_s|)) (_ BitVec %d) (select (|%s| state) (|%s_m:R%dA %s| state))) ; %s\n",
get_id(module), idcounter, get_id(module), width, memstate.c_str(), get_id(module), i, get_id(cell), log_signal(data_sig)));
decls.push_back(stringf("(define-fun |%s_m:R%dD %s| ((state |%s_s|)) (_ BitVec %d) (|%s#%d| state))\n",
get_id(module), i, get_id(cell), get_id(module), width, get_id(module), idcounter));
register_bv(data_sig, idcounter++);
}
}
registers.insert(cell);
recursive_cells.erase(cell);
return;
}
Module *m = module->design->module(cell->type);
if (m != nullptr)
{
decls.push_back(stringf("; yosys-smt2-cell %s %s\n", get_id(cell->type), get_id(cell->name)));
string cell_state = stringf("(|%s_h %s| state)", get_id(module), get_id(cell->name));
for (auto &conn : cell->connections())
{
if (GetSize(conn.second) == 0)
continue;
Wire *w = m->wire(conn.first);
SigSpec sig = sigmap(conn.second);
if (w->port_output && !w->port_input) {
if (GetSize(w) > 1) {
if (bvmode) {
makebits(stringf("%s#%d", get_id(module), idcounter), GetSize(w), log_signal(sig));
register_bv(sig, idcounter++);
} else {
for (int i = 0; i < GetSize(w); i++) {
makebits(stringf("%s#%d", get_id(module), idcounter), 0, log_signal(sig[i]));
register_bool(sig[i], idcounter++);
}
}
} else {
makebits(stringf("%s#%d", get_id(module), idcounter), 0, log_signal(sig));
register_bool(sig, idcounter++);
}
}
}
if (statebv)
makebits(stringf("%s_h %s", get_id(module), get_id(cell->name)), mod_stbv_width.at(cell->type));
else if (statedt)
dtmembers.push_back(stringf(" (|%s_h %s| |%s_s|)\n",
get_id(module), get_id(cell->name), get_id(cell->type)));
else
decls.push_back(stringf("(declare-fun |%s_h %s| (|%s_s|) |%s_s|)\n",
get_id(module), get_id(cell->name), get_id(module), get_id(cell->type)));
hiercells.insert(cell);
hiercells_queue.insert(cell);
recursive_cells.erase(cell);
return;
}
log_error("Unsupported cell type %s for cell %s.%s.\n",
log_id(cell->type), log_id(module), log_id(cell));
}
void run()
{
if (verbose) log("=> export logic driving outputs\n");
pool<SigBit> reg_bits;
for (auto cell : module->cells())
if (cell->type.in("$ff", "$dff", "$_FF_", "$_DFF_P_", "$_DFF_N_")) {
// not using sigmap -- we want the net directly at the dff output
for (auto bit : cell->getPort("\\Q"))
reg_bits.insert(bit);
}
for (auto wire : module->wires()) {
bool is_register = false;
for (auto bit : SigSpec(wire))
if (reg_bits.count(bit))
is_register = true;
if (wire->port_id || is_register || wire->get_bool_attribute("\\keep") || (wiresmode && wire->name[0] == '\\')) {
RTLIL::SigSpec sig = sigmap(wire);
if (wire->port_input)
decls.push_back(stringf("; yosys-smt2-input %s %d\n", get_id(wire), wire->width));
if (wire->port_output)
decls.push_back(stringf("; yosys-smt2-output %s %d\n", get_id(wire), wire->width));
if (is_register)
decls.push_back(stringf("; yosys-smt2-register %s %d\n", get_id(wire), wire->width));
if (wire->get_bool_attribute("\\keep") || (wiresmode && wire->name[0] == '\\'))
decls.push_back(stringf("; yosys-smt2-wire %s %d\n", get_id(wire), wire->width));
if (GetSize(wire) == 1 && (clock_posedge.count(sig) || clock_negedge.count(sig)))
decls.push_back(stringf("; yosys-smt2-clock %s%s%s\n", get_id(wire),
clock_posedge.count(sig) ? " posedge" : "", clock_negedge.count(sig) ? " negedge" : ""));
if (bvmode && GetSize(sig) > 1) {
decls.push_back(stringf("(define-fun |%s_n %s| ((state |%s_s|)) (_ BitVec %d) %s)\n",
get_id(module), get_id(wire), get_id(module), GetSize(sig), get_bv(sig).c_str()));
if (wire->port_input)
ex_input_eq.push_back(stringf(" (= (|%s_n %s| state) (|%s_n %s| other_state))",
get_id(module), get_id(wire), get_id(module), get_id(wire)));
} else {
for (int i = 0; i < GetSize(sig); i++)
if (GetSize(sig) > 1) {
decls.push_back(stringf("(define-fun |%s_n %s %d| ((state |%s_s|)) Bool %s)\n",
get_id(module), get_id(wire), i, get_id(module), get_bool(sig[i]).c_str()));
if (wire->port_input)
ex_input_eq.push_back(stringf(" (= (|%s_n %s %d| state) (|%s_n %s %d| other_state))",
get_id(module), get_id(wire), i, get_id(module), get_id(wire), i));
} else {
decls.push_back(stringf("(define-fun |%s_n %s| ((state |%s_s|)) Bool %s)\n",
get_id(module), get_id(wire), get_id(module), get_bool(sig[i]).c_str()));
if (wire->port_input)
ex_input_eq.push_back(stringf(" (= (|%s_n %s| state) (|%s_n %s| other_state))",
get_id(module), get_id(wire), get_id(module), get_id(wire)));
}
}
}
}
if (verbose) log("=> export logic associated with the initial state\n");
vector<string> init_list;
for (auto wire : module->wires())
if (wire->attributes.count("\\init")) {
RTLIL::SigSpec sig = sigmap(wire);
Const val = wire->attributes.at("\\init");
val.bits.resize(GetSize(sig), State::Sx);
if (bvmode && GetSize(sig) > 1) {
Const mask(State::S1, GetSize(sig));
bool use_mask = false;
for (int i = 0; i < GetSize(sig); i++)
if (val[i] != State::S0 && val[i] != State::S1) {
val[i] = State::S0;
mask[i] = State::S0;
use_mask = true;
}
if (use_mask)
init_list.push_back(stringf("(= (bvand %s #b%s) #b%s) ; %s", get_bv(sig).c_str(), mask.as_string().c_str(), val.as_string().c_str(), get_id(wire)));
else
init_list.push_back(stringf("(= %s #b%s) ; %s", get_bv(sig).c_str(), val.as_string().c_str(), get_id(wire)));
} else {
for (int i = 0; i < GetSize(sig); i++)
if (val[i] == State::S0 || val[i] == State::S1)
init_list.push_back(stringf("(= %s %s) ; %s", get_bool(sig[i]).c_str(), val[i] == State::S1 ? "true" : "false", get_id(wire)));
}
}
if (verbose) log("=> export logic driving asserts\n");
int assert_id = 0, assume_id = 0, cover_id = 0;
vector<string> assert_list, assume_list, cover_list;
for (auto cell : module->cells())
{
if (cell->type.in("$assert", "$assume", "$cover"))
{
int &id = cell->type == "$assert" ? assert_id :
cell->type == "$assume" ? assume_id :
cell->type == "$cover" ? cover_id : *(int*)nullptr;
char postfix = cell->type == "$assert" ? 'a' :
cell->type == "$assume" ? 'u' :
cell->type == "$cover" ? 'c' : 0;
string name_a = get_bool(cell->getPort("\\A"));
string name_en = get_bool(cell->getPort("\\EN"));
decls.push_back(stringf("; yosys-smt2-%s %d %s\n", cell->type.c_str() + 1, id,
cell->attributes.count("\\src") ? cell->attributes.at("\\src").decode_string().c_str() : get_id(cell)));
if (cell->type == "$cover")
decls.push_back(stringf("(define-fun |%s_%c %d| ((state |%s_s|)) Bool (and %s %s)) ; %s\n",
get_id(module), postfix, id, get_id(module), name_a.c_str(), name_en.c_str(), get_id(cell)));
else
decls.push_back(stringf("(define-fun |%s_%c %d| ((state |%s_s|)) Bool (or %s (not %s))) ; %s\n",
get_id(module), postfix, id, get_id(module), name_a.c_str(), name_en.c_str(), get_id(cell)));
if (cell->type == "$assert")
assert_list.push_back(stringf("(|%s_a %d| state)", get_id(module), id));
else if (cell->type == "$assume")
assume_list.push_back(stringf("(|%s_u %d| state)", get_id(module), id));
id++;
}
}
if (verbose) log("=> export logic driving hierarchical cells\n");
for (auto cell : module->cells())
if (module->design->module(cell->type) != nullptr)
export_cell(cell);
while (!hiercells_queue.empty())
{
std::set<RTLIL::Cell*> queue;
queue.swap(hiercells_queue);
for (auto cell : queue)
{
string cell_state = stringf("(|%s_h %s| state)", get_id(module), get_id(cell->name));
Module *m = module->design->module(cell->type);
log_assert(m != nullptr);
hier.push_back(stringf(" (= (|%s_is| state) (|%s_is| %s))\n",
get_id(module), get_id(cell->type), cell_state.c_str()));
for (auto &conn : cell->connections())
{
if (GetSize(conn.second) == 0)
continue;
Wire *w = m->wire(conn.first);
SigSpec sig = sigmap(conn.second);
if (bvmode || GetSize(w) == 1) {
hier.push_back(stringf(" (= %s (|%s_n %s| %s)) ; %s.%s\n", (GetSize(w) > 1 ? get_bv(sig) : get_bool(sig)).c_str(),
get_id(cell->type), get_id(w), cell_state.c_str(), get_id(cell->type), get_id(w)));
} else {
for (int i = 0; i < GetSize(w); i++)
hier.push_back(stringf(" (= %s (|%s_n %s %d| %s)) ; %s.%s[%d]\n", get_bool(sig[i]).c_str(),
get_id(cell->type), get_id(w), i, cell_state.c_str(), get_id(cell->type), get_id(w), i));
}
}
}
}
for (int iter = 1; !registers.empty(); iter++)
{
pool<Cell*> this_regs;
this_regs.swap(registers);
if (verbose) log("=> export logic driving registers [iteration %d]\n", iter);
for (auto cell : this_regs)
{
if (cell->type.in("$_FF_", "$_DFF_P_", "$_DFF_N_"))
{
std::string expr_d = get_bool(cell->getPort("\\D"));
std::string expr_q = get_bool(cell->getPort("\\Q"), "next_state");
trans.push_back(stringf(" (= %s %s) ; %s %s\n", expr_d.c_str(), expr_q.c_str(), get_id(cell), log_signal(cell->getPort("\\Q"))));
ex_state_eq.push_back(stringf("(= %s %s)", get_bool(cell->getPort("\\Q")).c_str(), get_bool(cell->getPort("\\Q"), "other_state").c_str()));
}
if (cell->type.in("$ff", "$dff"))
{
std::string expr_d = get_bv(cell->getPort("\\D"));
std::string expr_q = get_bv(cell->getPort("\\Q"), "next_state");
trans.push_back(stringf(" (= %s %s) ; %s %s\n", expr_d.c_str(), expr_q.c_str(), get_id(cell), log_signal(cell->getPort("\\Q"))));
ex_state_eq.push_back(stringf("(= %s %s)", get_bv(cell->getPort("\\Q")).c_str(), get_bv(cell->getPort("\\Q"), "other_state").c_str()));
}
if (cell->type.in("$anyconst", "$allconst"))
{
std::string expr_d = get_bv(cell->getPort("\\Y"));
std::string expr_q = get_bv(cell->getPort("\\Y"), "next_state");
trans.push_back(stringf(" (= %s %s) ; %s %s\n", expr_d.c_str(), expr_q.c_str(), get_id(cell), log_signal(cell->getPort("\\Y"))));
if (cell->type == "$anyconst")
ex_state_eq.push_back(stringf("(= %s %s)", get_bv(cell->getPort("\\Y")).c_str(), get_bv(cell->getPort("\\Y"), "other_state").c_str()));
}
if (cell->type == "$mem")
{
int arrayid = memarrays.at(cell);
int abits = cell->getParam("\\ABITS").as_int();
int width = cell->getParam("\\WIDTH").as_int();
int wr_ports = cell->getParam("\\WR_PORTS").as_int();
bool async_read = false;
string initial_memstate, final_memstate;
if (!cell->getParam("\\WR_CLK_ENABLE").is_fully_ones()) {
log_assert(cell->getParam("\\WR_CLK_ENABLE").is_fully_zero());
async_read = true;
initial_memstate = stringf("%s#%d#0", get_id(module), arrayid);
final_memstate = stringf("%s#%d#final", get_id(module), arrayid);
}
if (statebv)
{
int mem_size = cell->getParam("\\SIZE").as_int();
int mem_offset = cell->getParam("\\OFFSET").as_int();
if (async_read) {
makebits(final_memstate, width*mem_size, get_id(cell));
}
for (int i = 0; i < wr_ports; i++)
{
SigSpec addr_sig = cell->getPort("\\WR_ADDR").extract(abits*i, abits);
SigSpec data_sig = cell->getPort("\\WR_DATA").extract(width*i, width);
SigSpec mask_sig = cell->getPort("\\WR_EN").extract(width*i, width);
std::string addr = get_bv(addr_sig);
std::string data = get_bv(data_sig);
std::string mask = get_bv(mask_sig);
decls.push_back(stringf("(define-fun |%s_m:W%dA %s| ((state |%s_s|)) (_ BitVec %d) %s) ; %s\n",
get_id(module), i, get_id(cell), get_id(module), abits, addr.c_str(), log_signal(addr_sig)));
addr = stringf("(|%s_m:W%dA %s| state)", get_id(module), i, get_id(cell));
decls.push_back(stringf("(define-fun |%s_m:W%dD %s| ((state |%s_s|)) (_ BitVec %d) %s) ; %s\n",
get_id(module), i, get_id(cell), get_id(module), width, data.c_str(), log_signal(data_sig)));
data = stringf("(|%s_m:W%dD %s| state)", get_id(module), i, get_id(cell));
decls.push_back(stringf("(define-fun |%s_m:W%dM %s| ((state |%s_s|)) (_ BitVec %d) %s) ; %s\n",
get_id(module), i, get_id(cell), get_id(module), width, mask.c_str(), log_signal(mask_sig)));
mask = stringf("(|%s_m:W%dM %s| state)", get_id(module), i, get_id(cell));
std::string data_expr;
for (int k = mem_size-1; k >= 0; k--) {
std::string new_data = stringf("(bvor (bvand %s %s) (bvand ((_ extract %d %d) (|%s#%d#%d| state)) (bvnot %s)))",
data.c_str(), mask.c_str(), width*(k+1)-1, width*k, get_id(module), arrayid, i, mask.c_str());
data_expr += stringf("\n (ite (= %s #b%s) %s ((_ extract %d %d) (|%s#%d#%d| state)))",
addr.c_str(), Const(k+mem_offset, abits).as_string().c_str(), new_data.c_str(),
width*(k+1)-1, width*k, get_id(module), arrayid, i);
}
decls.push_back(stringf("(define-fun |%s#%d#%d| ((state |%s_s|)) (_ BitVec %d) (concat%s)) ; %s\n",
get_id(module), arrayid, i+1, get_id(module), width*mem_size, data_expr.c_str(), get_id(cell)));
}
}
else
{
if (async_read) {
if (statedt)
dtmembers.push_back(stringf(" (|%s| (Array (_ BitVec %d) (_ BitVec %d))) ; %s\n",
initial_memstate.c_str(), abits, width, get_id(cell)));
else
decls.push_back(stringf("(declare-fun |%s| (|%s_s|) (Array (_ BitVec %d) (_ BitVec %d))) ; %s\n",
initial_memstate.c_str(), get_id(module), abits, width, get_id(cell)));
}
for (int i = 0; i < wr_ports; i++)
{
SigSpec addr_sig = cell->getPort("\\WR_ADDR").extract(abits*i, abits);
SigSpec data_sig = cell->getPort("\\WR_DATA").extract(width*i, width);
SigSpec mask_sig = cell->getPort("\\WR_EN").extract(width*i, width);
std::string addr = get_bv(addr_sig);
std::string data = get_bv(data_sig);
std::string mask = get_bv(mask_sig);
decls.push_back(stringf("(define-fun |%s_m:W%dA %s| ((state |%s_s|)) (_ BitVec %d) %s) ; %s\n",
get_id(module), i, get_id(cell), get_id(module), abits, addr.c_str(), log_signal(addr_sig)));
addr = stringf("(|%s_m:W%dA %s| state)", get_id(module), i, get_id(cell));
decls.push_back(stringf("(define-fun |%s_m:W%dD %s| ((state |%s_s|)) (_ BitVec %d) %s) ; %s\n",
get_id(module), i, get_id(cell), get_id(module), width, data.c_str(), log_signal(data_sig)));
data = stringf("(|%s_m:W%dD %s| state)", get_id(module), i, get_id(cell));
decls.push_back(stringf("(define-fun |%s_m:W%dM %s| ((state |%s_s|)) (_ BitVec %d) %s) ; %s\n",
get_id(module), i, get_id(cell), get_id(module), width, mask.c_str(), log_signal(mask_sig)));
mask = stringf("(|%s_m:W%dM %s| state)", get_id(module), i, get_id(cell));
data = stringf("(bvor (bvand %s %s) (bvand (select (|%s#%d#%d| state) %s) (bvnot %s)))",
data.c_str(), mask.c_str(), get_id(module), arrayid, i, addr.c_str(), mask.c_str());
decls.push_back(stringf("(define-fun |%s#%d#%d| ((state |%s_s|)) (Array (_ BitVec %d) (_ BitVec %d)) "
"(store (|%s#%d#%d| state) %s %s)) ; %s\n",
get_id(module), arrayid, i+1, get_id(module), abits, width,
get_id(module), arrayid, i, addr.c_str(), data.c_str(), get_id(cell)));
}
}
std::string expr_d = stringf("(|%s#%d#%d| state)", get_id(module), arrayid, wr_ports);
std::string expr_q = stringf("(|%s#%d#0| next_state)", get_id(module), arrayid);
trans.push_back(stringf(" (= %s %s) ; %s\n", expr_d.c_str(), expr_q.c_str(), get_id(cell)));
ex_state_eq.push_back(stringf("(= (|%s#%d#0| state) (|%s#%d#0| other_state))", get_id(module), arrayid, get_id(module), arrayid));
if (async_read)
hier.push_back(stringf(" (= %s (|%s| state)) ; %s\n", expr_d.c_str(), final_memstate.c_str(), get_id(cell)));
Const init_data = cell->getParam("\\INIT");
int memsize = cell->getParam("\\SIZE").as_int();
for (int i = 0; i < memsize; i++)
{
if (i*width >= GetSize(init_data))
break;
Const initword = init_data.extract(i*width, width, State::Sx);
bool gen_init_constr = false;
for (auto bit : initword.bits)
if (bit == State::S0 || bit == State::S1)
gen_init_constr = true;
if (gen_init_constr)
{
if (statebv)
/* FIXME */;
else
init_list.push_back(stringf("(= (select (|%s#%d#0| state) #b%s) #b%s) ; %s[%d]",
get_id(module), arrayid, Const(i, abits).as_string().c_str(),
initword.as_string().c_str(), get_id(cell), i));
}
}
}
}
}
if (verbose) log("=> finalizing SMT2 representation of %s.\n", log_id(module));
for (auto c : hiercells) {
assert_list.push_back(stringf("(|%s_a| (|%s_h %s| state))", get_id(c->type), get_id(module), get_id(c->name)));
assume_list.push_back(stringf("(|%s_u| (|%s_h %s| state))", get_id(c->type), get_id(module), get_id(c->name)));
init_list.push_back(stringf("(|%s_i| (|%s_h %s| state))", get_id(c->type), get_id(module), get_id(c->name)));
hier.push_back(stringf(" (|%s_h| (|%s_h %s| state))\n", get_id(c->type), get_id(module), get_id(c->name)));
trans.push_back(stringf(" (|%s_t| (|%s_h %s| state) (|%s_h %s| next_state))\n",
get_id(c->type), get_id(module), get_id(c->name), get_id(module), get_id(c->name)));
ex_state_eq.push_back(stringf("(|%s_ex_state_eq| (|%s_h %s| state) (|%s_h %s| other_state))\n",
get_id(c->type), get_id(module), get_id(c->name), get_id(module), get_id(c->name)));
}
if (forallmode)
{
string expr = ex_state_eq.empty() ? "true" : "(and";
if (!ex_state_eq.empty()) {
if (GetSize(ex_state_eq) == 1) {
expr = "\n " + ex_state_eq.front() + "\n";
} else {
for (auto &str : ex_state_eq)
expr += stringf("\n %s", str.c_str());
expr += "\n)";
}
}
decls.push_back(stringf("(define-fun |%s_ex_state_eq| ((state |%s_s|) (other_state |%s_s|)) Bool %s)\n",
get_id(module), get_id(module), get_id(module), expr.c_str()));
expr = ex_input_eq.empty() ? "true" : "(and";
if (!ex_input_eq.empty()) {
if (GetSize(ex_input_eq) == 1) {
expr = "\n " + ex_input_eq.front() + "\n";
} else {
for (auto &str : ex_input_eq)
expr += stringf("\n %s", str.c_str());
expr += "\n)";
}
}
decls.push_back(stringf("(define-fun |%s_ex_input_eq| ((state |%s_s|) (other_state |%s_s|)) Bool %s)\n",
get_id(module), get_id(module), get_id(module), expr.c_str()));
}
string assert_expr = assert_list.empty() ? "true" : "(and";
if (!assert_list.empty()) {
if (GetSize(assert_list) == 1) {
assert_expr = "\n " + assert_list.front() + "\n";
} else {
for (auto &str : assert_list)
assert_expr += stringf("\n %s", str.c_str());
assert_expr += "\n)";
}
}
decls.push_back(stringf("(define-fun |%s_a| ((state |%s_s|)) Bool %s)\n",
get_id(module), get_id(module), assert_expr.c_str()));
string assume_expr = assume_list.empty() ? "true" : "(and";
if (!assume_list.empty()) {
if (GetSize(assume_list) == 1) {
assume_expr = "\n " + assume_list.front() + "\n";
} else {
for (auto &str : assume_list)
assume_expr += stringf("\n %s", str.c_str());
assume_expr += "\n)";
}
}
decls.push_back(stringf("(define-fun |%s_u| ((state |%s_s|)) Bool %s)\n",
get_id(module), get_id(module), assume_expr.c_str()));
string init_expr = init_list.empty() ? "true" : "(and";
if (!init_list.empty()) {
if (GetSize(init_list) == 1) {
init_expr = "\n " + init_list.front() + "\n";
} else {
for (auto &str : init_list)
init_expr += stringf("\n %s", str.c_str());
init_expr += "\n)";
}
}
decls.push_back(stringf("(define-fun |%s_i| ((state |%s_s|)) Bool %s)\n",
get_id(module), get_id(module), init_expr.c_str()));
}
void write(std::ostream &f)
{
f << stringf("; yosys-smt2-module %s\n", get_id(module));
if (statebv) {
f << stringf("(define-sort |%s_s| () (_ BitVec %d))\n", get_id(module), statebv_width);
mod_stbv_width[module->name] = statebv_width;
} else
if (statedt) {
f << stringf("(declare-datatype |%s_s| ((|%s_mk|\n", get_id(module), get_id(module));
for (auto it : dtmembers)
f << it;
f << stringf(")))\n");
} else
f << stringf("(declare-sort |%s_s| 0)\n", get_id(module));
for (auto it : decls)
f << it;
f << stringf("(define-fun |%s_h| ((state |%s_s|)) Bool ", get_id(module), get_id(module));
if (GetSize(hier) > 1) {
f << "(and\n";
for (auto it : hier)
f << it;
f << "))\n";
} else
if (GetSize(hier) == 1)
f << "\n" + hier.front() + ")\n";
else
f << "true)\n";
f << stringf("(define-fun |%s_t| ((state |%s_s|) (next_state |%s_s|)) Bool ", get_id(module), get_id(module), get_id(module));
if (GetSize(trans) > 1) {
f << "(and\n";
for (auto it : trans)
f << it;
f << "))";
} else
if (GetSize(trans) == 1)
f << "\n" + trans.front() + ")";
else
f << "true)";
f << stringf(" ; end of module %s\n", get_id(module));
}
};
struct Smt2Backend : public Backend {
Smt2Backend() : Backend("smt2", "write design to SMT-LIBv2 file") { }
virtual void help()
{
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
log("\n");
log(" write_smt2 [options] [filename]\n");
log("\n");
log("Write a SMT-LIBv2 [1] description of the current design. For a module with name\n");
log("'<mod>' this will declare the sort '<mod>_s' (state of the module) and will\n");
log("define and declare functions operating on that state.\n");
log("\n");
log("The following SMT2 functions are generated for a module with name '<mod>'.\n");
log("Some declarations/definitions are printed with a special comment. A prover\n");
log("using the SMT2 files can use those comments to collect all relevant metadata\n");
log("about the design.\n");
log("\n");
log(" ; yosys-smt2-module <mod>\n");
log(" (declare-sort |<mod>_s| 0)\n");
log(" The sort representing a state of module <mod>.\n");
log("\n");
log(" (define-fun |<mod>_h| ((state |<mod>_s|)) Bool (...))\n");
log(" This function must be asserted for each state to establish the\n");
log(" design hierarchy.\n");
log("\n");
log(" ; yosys-smt2-input <wirename> <width>\n");
log(" ; yosys-smt2-output <wirename> <width>\n");
log(" ; yosys-smt2-register <wirename> <width>\n");
log(" ; yosys-smt2-wire <wirename> <width>\n");
log(" (define-fun |<mod>_n <wirename>| (|<mod>_s|) (_ BitVec <width>))\n");
log(" (define-fun |<mod>_n <wirename>| (|<mod>_s|) Bool)\n");
log(" For each port, register, and wire with the 'keep' attribute set an\n");
log(" accessor function is generated. Single-bit wires are returned as Bool,\n");
log(" multi-bit wires as BitVec.\n");
log("\n");
log(" ; yosys-smt2-cell <submod> <instancename>\n");
log(" (declare-fun |<mod>_h <instancename>| (|<mod>_s|) |<submod>_s|)\n");
log(" There is a function like that for each hierarchical instance. It\n");
log(" returns the sort that represents the state of the sub-module that\n");
log(" implements the instance.\n");
log("\n");
log(" (declare-fun |<mod>_is| (|<mod>_s|) Bool)\n");
log(" This function must be asserted 'true' for initial states, and 'false'\n");
log(" otherwise.\n");
log("\n");
log(" (define-fun |<mod>_i| ((state |<mod>_s|)) Bool (...))\n");
log(" This function must be asserted 'true' for initial states. For\n");
log(" non-initial states it must be left unconstrained.\n");
log("\n");
log(" (define-fun |<mod>_t| ((state |<mod>_s|) (next_state |<mod>_s|)) Bool (...))\n");
log(" This function evaluates to 'true' if the states 'state' and\n");
log(" 'next_state' form a valid state transition.\n");
log("\n");
log(" (define-fun |<mod>_a| ((state |<mod>_s|)) Bool (...))\n");
log(" This function evaluates to 'true' if all assertions hold in the state.\n");
log("\n");
log(" (define-fun |<mod>_u| ((state |<mod>_s|)) Bool (...))\n");
log(" This function evaluates to 'true' if all assumptions hold in the state.\n");
log("\n");
log(" ; yosys-smt2-assert <id> <filename:linenum>\n");
log(" (define-fun |<mod>_a <id>| ((state |<mod>_s|)) Bool (...))\n");
log(" Each $assert cell is converted into one of this functions. The function\n");
log(" evaluates to 'true' if the assert statement holds in the state.\n");
log("\n");
log(" ; yosys-smt2-assume <id> <filename:linenum>\n");
log(" (define-fun |<mod>_u <id>| ((state |<mod>_s|)) Bool (...))\n");
log(" Each $assume cell is converted into one of this functions. The function\n");
log(" evaluates to 'true' if the assume statement holds in the state.\n");
log("\n");
log(" ; yosys-smt2-cover <id> <filename:linenum>\n");
log(" (define-fun |<mod>_c <id>| ((state |<mod>_s|)) Bool (...))\n");
log(" Each $cover cell is converted into one of this functions. The function\n");
log(" evaluates to 'true' if the cover statement is activated in the state.\n");
log("\n");
log("Options:\n");
log("\n");
log(" -verbose\n");
log(" this will print the recursive walk used to export the modules.\n");
log("\n");
log(" -stbv\n");
log(" Use a BitVec sort to represent a state instead of an uninterpreted\n");
log(" sort. As a side-effect this will prevent use of arrays to model\n");
log(" memories.\n");
log("\n");
log(" -stdt\n");
log(" Use SMT-LIB 2.6 style datatypes to represent a state instead of an\n");
log(" uninterpreted sort.\n");
log("\n");
log(" -nobv\n");
log(" disable support for BitVec (FixedSizeBitVectors theory). without this\n");
log(" option multi-bit wires are represented using the BitVec sort and\n");
log(" support for coarse grain cells (incl. arithmetic) is enabled.\n");
log("\n");
log(" -nomem\n");
log(" disable support for memories (via ArraysEx theory). this option is\n");
log(" implied by -nobv. only $mem cells without merged registers in\n");
log(" read ports are supported. call \"memory\" with -nordff to make sure\n");
log(" that no registers are merged into $mem read ports. '<mod>_m' functions\n");
log(" will be generated for accessing the arrays that are used to represent\n");
log(" memories.\n");
log("\n");
log(" -wires\n");
log(" create '<mod>_n' functions for all public wires. by default only ports,\n");
log(" registers, and wires with the 'keep' attribute are exported.\n");
log("\n");
log(" -tpl <template_file>\n");
log(" use the given template file. the line containing only the token '%%%%'\n");
log(" is replaced with the regular output of this command.\n");
log("\n");
log("[1] For more information on SMT-LIBv2 visit http://smt-lib.org/ or read David\n");
log("R. Cok's tutorial: http://www.grammatech.com/resources/smt/SMTLIBTutorial.pdf\n");
log("\n");
log("---------------------------------------------------------------------------\n");
log("\n");
log("Example:\n");
log("\n");
log("Consider the following module (test.v). We want to prove that the output can\n");
log("never transition from a non-zero value to a zero value.\n");
log("\n");
log(" module test(input clk, output reg [3:0] y);\n");
log(" always @(posedge clk)\n");
log(" y <= (y << 1) | ^y;\n");
log(" endmodule\n");
log("\n");
log("For this proof we create the following template (test.tpl).\n");
log("\n");
log(" ; we need QF_UFBV for this poof\n");
log(" (set-logic QF_UFBV)\n");
log("\n");
log(" ; insert the auto-generated code here\n");
log(" %%%%\n");
log("\n");
log(" ; declare two state variables s1 and s2\n");
log(" (declare-fun s1 () test_s)\n");
log(" (declare-fun s2 () test_s)\n");
log("\n");
log(" ; state s2 is the successor of state s1\n");
log(" (assert (test_t s1 s2))\n");
log("\n");
log(" ; we are looking for a model with y non-zero in s1\n");
log(" (assert (distinct (|test_n y| s1) #b0000))\n");
log("\n");
log(" ; we are looking for a model with y zero in s2\n");
log(" (assert (= (|test_n y| s2) #b0000))\n");
log("\n");
log(" ; is there such a model?\n");
log(" (check-sat)\n");
log("\n");
log("The following yosys script will create a 'test.smt2' file for our proof:\n");
log("\n");
log(" read_verilog test.v\n");
log(" hierarchy -check; proc; opt; check -assert\n");
log(" write_smt2 -bv -tpl test.tpl test.smt2\n");
log("\n");
log("Running 'cvc4 test.smt2' will print 'unsat' because y can never transition\n");
log("from non-zero to zero in the test design.\n");
log("\n");
}
virtual void execute(std::ostream *&f, std::string filename, std::vector<std::string> args, RTLIL::Design *design)
{
std::ifstream template_f;
bool bvmode = true, memmode = true, wiresmode = false, verbose = false, statebv = false, statedt = false;
bool forallmode = false;
log_header(design, "Executing SMT2 backend.\n");
size_t argidx;
for (argidx = 1; argidx < args.size(); argidx++)
{
if (args[argidx] == "-tpl" && argidx+1 < args.size()) {
template_f.open(args[++argidx]);
if (template_f.fail())
log_error("Can't open template file `%s'.\n", args[argidx].c_str());
continue;
}
if (args[argidx] == "-bv" || args[argidx] == "-mem") {
log_warning("Options -bv and -mem are now the default. Support for -bv and -mem will be removed in the future.\n");
continue;
}
if (args[argidx] == "-stbv") {
statebv = true;
statedt = false;
continue;
}
if (args[argidx] == "-stdt") {
statebv = false;
statedt = true;
continue;
}
if (args[argidx] == "-nobv") {
bvmode = false;
memmode = false;
continue;
}
if (args[argidx] == "-nomem") {
memmode = false;
continue;
}
if (args[argidx] == "-wires") {
wiresmode = true;
continue;
}
if (args[argidx] == "-verbose") {
verbose = true;
continue;
}
break;
}
extra_args(f, filename, args, argidx);
if (template_f.is_open()) {
std::string line;
while (std::getline(template_f, line)) {
int indent = 0;
while (indent < GetSize(line) && (line[indent] == ' ' || line[indent] == '\t'))
indent++;
if (line.substr(indent, 2) == "%%")
break;
*f << line << std::endl;
}
}
*f << stringf("; SMT-LIBv2 description generated by %s\n", yosys_version_str);
if (!bvmode)
*f << stringf("; yosys-smt2-nobv\n");
if (!memmode)
*f << stringf("; yosys-smt2-nomem\n");
if (statebv)
*f << stringf("; yosys-smt2-stbv\n");
if (statedt)
*f << stringf("; yosys-smt2-stdt\n");
std::vector<RTLIL::Module*> sorted_modules;
// extract module dependencies
std::map<RTLIL::Module*, std::set<RTLIL::Module*>> module_deps;
for (auto &mod_it : design->modules_) {
module_deps[mod_it.second] = std::set<RTLIL::Module*>();
for (auto &cell_it : mod_it.second->cells_)
if (design->modules_.count(cell_it.second->type) > 0)
module_deps[mod_it.second].insert(design->modules_.at(cell_it.second->type));
}
// simple good-enough topological sort
// (O(n*m) on n elements and depth m)
while (module_deps.size() > 0) {
size_t sorted_modules_idx = sorted_modules.size();
for (auto &it : module_deps) {
for (auto &dep : it.second)
if (module_deps.count(dep) > 0)
goto not_ready_yet;
// log("Next in topological sort: %s\n", RTLIL::id2cstr(it.first->name));
sorted_modules.push_back(it.first);
not_ready_yet:;
}
if (sorted_modules_idx == sorted_modules.size())
log_error("Cyclic dependency between modules found! Cycle includes module %s.\n", RTLIL::id2cstr(module_deps.begin()->first->name));
while (sorted_modules_idx < sorted_modules.size())
module_deps.erase(sorted_modules.at(sorted_modules_idx++));
}
dict<IdString, int> mod_stbv_width;
dict<IdString, dict<IdString, pair<bool, bool>>> mod_clk_cache;
Module *topmod = design->top_module();
std::string topmod_id;
for (auto module : sorted_modules)
for (auto cell : module->cells())
if (cell->type.in("$allconst", "$allseq"))
goto found_forall;
if (0) {
found_forall:
forallmode = true;
*f << stringf("; yosys-smt2-forall\n");
if (!statebv && !statedt)
log_error("Forall-exists problems are only supported in -stbv or -stdt mode.\n");
}
for (auto module : sorted_modules)
{
if (module->get_bool_attribute("\\blackbox") || module->has_memories_warn() || module->has_processes_warn())
continue;
log("Creating SMT-LIBv2 representation of module %s.\n", log_id(module));
Smt2Worker worker(module, bvmode, memmode, wiresmode, verbose, statebv, statedt, forallmode, mod_stbv_width, mod_clk_cache);
worker.run();
worker.write(*f);
if (module == topmod)
topmod_id = worker.get_id(module);
}
if (topmod)
*f << stringf("; yosys-smt2-topmod %s\n", topmod_id.c_str());
*f << stringf("; end of yosys output\n");
if (template_f.is_open()) {
std::string line;
while (std::getline(template_f, line))
*f << line << std::endl;
}
}
} Smt2Backend;
PRIVATE_NAMESPACE_END
| [
"[email protected]"
] | |
09c74b716186c7e007fd3f17e915e7b000005892 | 508bfb3220be28811600a2cbf0aabae382f78775 | /AcademicCrawler-sdk/Qt/Qt-4.6.2/include/Qt/qbenchmark.h | 92db35deee7622c6b7c2af5072fa7ae37040359a | [] | no_license | darkbtf/academic-crawler | 295f3bd74b18e700402bc2be59f15694d6195471 | 5dfcb0f1b88b93aa7545ef233344a41570011532 | refs/heads/master | 2021-01-01T19:21:00.162442 | 2011-03-10T16:29:25 | 2011-03-10T16:29:25 | 42,468,175 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,128 | h | /****************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation ([email protected])
**
** This file is part of the QtTest module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial Usage
** Licensees holding valid Qt Commercial licenses may use this file in
** accordance with the Qt Commercial License Agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and Nokia.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Nokia gives you certain additional
** rights. These rights are described in the Nokia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3.0 as published by the Free Software
** Foundation and appearing in the file LICENSE.GPL included in the
** packaging of this file. Please review the following information to
** ensure the GNU General Public License version 3.0 requirements will be
** met: http://www.gnu.org/copyleft/gpl.html.
**
** If you have questions regarding the use of this file, please contact
** Nokia at [email protected].
** $QT_END_LICENSE$
**
****************************************************************************/
#ifndef QBENCHMARK_H
#define QBENCHMARK_H
#include <QtTest/qtest_global.h>
QT_BEGIN_HEADER
QT_BEGIN_NAMESPACE
QT_MODULE(Test)
namespace QTest
{
//
// W A R N I N G
// -------------
//
// The QBenchmarkIterationController class is not a part of the
// QTestlib API. It exists purely as an implementation detail.
//
//
class Q_TESTLIB_EXPORT QBenchmarkIterationController
{
public:
enum RunMode { RepeatUntilValidMeasurement, RunOnce };
QBenchmarkIterationController();
QBenchmarkIterationController(RunMode runMode);
~QBenchmarkIterationController();
bool isDone();
void next();
int i;
};
}
#define QBENCHMARK \
for (QTest::QBenchmarkIterationController __iteration_controller; \
__iteration_controller.isDone() == false; __iteration_controller.next())
#define QBENCHMARK_ONCE \
for (QTest::QBenchmarkIterationController __iteration_controller(QTest::QBenchmarkIterationController::RunOnce); \
__iteration_controller.isDone() == false; __iteration_controller.next())
QT_END_NAMESPACE
QT_END_HEADER
#endif // QBENCHMARK_H
| [
"ulmonkey1987@7c5ce3f8-edad-37de-be84-b98c484540b5"
] | ulmonkey1987@7c5ce3f8-edad-37de-be84-b98c484540b5 |
02777cae9b9cd27c23d2b7960b9fd7ea1e7906eb | 6627d27fc69922f179b14b612b366bbf0bc4eff9 | /old/robots/claymore/executive/auto_drive_straight_neg30.cpp | 93fe80f35076ee9aff57fd9713b635e787fdd390 | [] | no_license | errorcodexero/newarch | 1a4773377197174ae58b6e4ef6d670bf197c643b | e69a864012e09548014ad208affeb8901835a654 | refs/heads/master | 2021-06-03T16:28:41.840622 | 2020-03-15T18:15:08 | 2020-03-15T18:15:08 | 139,747,384 | 9 | 6 | null | 2020-01-31T05:35:34 | 2018-07-04T16:54:36 | C++ | UTF-8 | C++ | false | false | 517 | cpp | #include "autosteps.h"
#include "chain.h"
#include <vector>
using namespace std ;
///////////////////////////////////////////////////////////////////////////////////////
//
// Start: Center
// Action: Score on right switch
//
///////////////////////////////////////////////////////////////////////////////////////
static vector<Step> steps =
{
Step(StartAuto("drive_straight_neg30")),
Step(Drive(-30.0, false)),
endAuto
} ;
static Chain chain(steps, teleopex) ;
Executive drive_straight_neg30(chain) ;
| [
"[email protected]"
] | |
7157ab126a6ebc72a62a376b7f39e74c274e1c8d | 8ccb3e79e325c7ead24da72880574083cef25697 | /toolbox/src/Clothoids/G2lib.hxx | ef434c6b8e0ac2e26bd98513898bf5449d1b5617 | [
"BSD-2-Clause"
] | permissive | traj-planning-curve/Clothoids | aadea9c5ce4b7796e742a72166df1706734aff3c | 980b7294d00690a4e5c7a174ef3735ddb43e4a6e | refs/heads/master | 2023-03-23T14:05:43.278883 | 2021-02-20T16:22:47 | 2021-02-20T16:22:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 51,060 | hxx | /*--------------------------------------------------------------------------*\
| |
| Copyright (C) 2017 |
| |
| , __ , __ |
| /|/ \ /|/ \ |
| | __/ _ ,_ | __/ _ ,_ |
| | \|/ / | | | | \|/ / | | | |
| |(__/|__/ |_/ \_/|/|(__/|__/ |_/ \_/|/ |
| /| /| |
| \| \| |
| |
| Enrico Bertolazzi |
| Dipartimento di Ingegneria Industriale |
| Universita` degli Studi di Trento |
| email: [email protected] |
| |
\*--------------------------------------------------------------------------*/
///
/// file: G2lib.hh
///
/*!
\mainpage
Clothoids
=========
G1 and G2 fitting with clothoids, spline of clothods, circle arc and biarc
by Enrico Bertolazzi and Marco Frego
for the documentation see `manual.md` or
[Doxygen documentation: http://ebertolazzi.github.io/Clothoids/](http://ebertolazzi.github.io/Clothoids/)
Authors:
-------
Enrico Bertolazzi and Marco Frego
Department of Industrial Engineering
University of Trento
[email protected]
[email protected]
*/
//! Clothoid computations routine
namespace G2lib {
extern real_type const m_1_sqrt_pi; //!< \f$ 1/\sqrt{\pi} \f$
extern real_type const machepsi; //!< machine espilon \f$ \varepsilon \f$
extern real_type const machepsi10; //!< \f$ 10\varepsilon \f$
extern real_type const machepsi100; //!< \f$ 100\varepsilon \f$
extern real_type const machepsi1000; //!< \f$ 1000\varepsilon \f$
extern real_type const sqrtMachepsi; //!< \f$ \sqrt{\varepsilon} \f$
extern bool intersect_with_AABBtree;
#ifdef G2LIB_COMPATIBILITY_MODE
extern bool use_ISO;
static
inline
void
lib_use_ISO()
{ use_ISO = true; }
static
inline
void
lib_use_SAE()
{ use_ISO = false; }
#endif
//! disable AABB tree in computation
static
inline
void
noAABBtree()
{ intersect_with_AABBtree = false; }
//! enable AABB tree in computation
static
inline
void
yesAABBtree()
{ intersect_with_AABBtree = true; }
/*
// sin(x)/x
*/
real_type Sinc( real_type x ); //!< \f$ \frac{\sin x}{x} \f$
real_type Sinc_D( real_type x ); //!< \f$ \frac{\mathrm{d}}{\mathrm{d}x} \frac{\sin x}{x} \f$
real_type Sinc_DD( real_type x ); //!< \f$ \left(\frac{\mathrm{d}}{\mathrm{d}x}\right)^2 \frac{\sin x}{x} \f$
real_type Sinc_DDD( real_type x ); //!< \f$ \left(\frac{\mathrm{d}}{\mathrm{d}x}\right)^3 \frac{\sin x}{x} \f$
/*
// (1-cos(x))/x
*/
real_type Cosc( real_type x ); //!< \f$ \frac{1-\cos x}{x} \f$
real_type Cosc_D( real_type x ); //!< \f$ \frac{\mathrm{d}}{\mathrm{d}x} \frac{1-\cos x}{x} \f$
real_type Cosc_DD( real_type x ); //!< \f$ \left(\frac{\mathrm{d}}{\mathrm{d}x}\right)^2 \frac{1-\cos x}{x} \f$
real_type Cosc_DDD( real_type x ); //!< \f$ \left(\frac{\mathrm{d}}{\mathrm{d}x}\right)^3 \frac{1-\cos x}{x} \f$
/*
// atan(x)/x
*/
real_type Atanc( real_type x ); //!< \f$ \frac{\arctan x}{x} \f$
real_type Atanc_D( real_type x ); //!< \f$ \frac{\mathrm{d}}{\mathrm{d}x} \frac{\arctan x}{x} \f$
real_type Atanc_DD( real_type x ); //!< \f$ \left(\frac{\mathrm{d}}{\mathrm{d}x}\right)^2 \frac{\arctan x}{x} \f$
real_type Atanc_DDD( real_type x ); //!< \f$ \left(\frac{\mathrm{d}}{\mathrm{d}x}\right)^3 \frac{\arctan x}{x} \f$
//! Add or remove multiple of \f$ 2\pi \f$ to an angle in order to put it in the range \f$ [-\pi,\pi]\f$.
void rangeSymm( real_type & ang );
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
//! return minumum and maximum of three numbers
inline
void
minmax3(
real_type a,
real_type b,
real_type c,
real_type & vmin,
real_type & vmax
) {
vmin = vmax = a;
if ( b < vmin ) vmin = b;
else vmax = b;
if ( c < vmin ) vmin = c;
else if ( c > vmax ) vmax = c;
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
/*!
* project point `(qx,qy)` to the circle arc passing from `(x0,y0)`
* with tangent direction `(c0,s0)` curvature `k` length `L`
*/
real_type
projectPointOnCircleArc(
real_type x0,
real_type y0,
real_type c0, //!< cos(theta0)
real_type s0, //!< sin(theta0)
real_type k,
real_type L,
real_type qx,
real_type qy
);
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
/*!
* project point `(qx,qy)` to the circle passing from `(x0,y0)`
* with tangent direction `(c0,s0)` and curvature `k`
*/
real_type
projectPointOnCircle(
real_type x0,
real_type y0,
real_type theta0,
real_type k,
real_type qx,
real_type qy
);
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
/*!
* check if point `(qx,qy)` is inside the circle passing from `(x0,y0)`
* with tangent direction `(c0,s0)` and curvature `k`
* \return true if point is inside
*/
inline
bool
pointInsideCircle(
real_type x0,
real_type y0,
real_type c0, //!< cos(theta0)
real_type s0, //!< sin(theta0)
real_type k,
real_type qx,
real_type qy
) {
real_type cx = x0 - s0/k;
real_type cy = y0 + c0/k;
real_type dst = hypot( qx - cx, qy - cy );
return dst*k <= 1;
}
/*!
* Solve the nonlinear system
*
* \f[ A x + B y = C \f]
* \f[ a x^2 + b y^2 = c \f]
*
* \param A first parameter of the linear equation
* \param B second parameter of the linear equation
* \param C third parameter of the linear equation
* \param a first parameter of the quadratic equation
* \param b second parameter of the quadratic equation
* \param c third parameter of the quadratic equation
* \return the number of solution 0, 1 or 2
*
*/
int_type
solveLinearQuadratic(
real_type A,
real_type B,
real_type C,
real_type a,
real_type b,
real_type c,
real_type x[],
real_type y[]
);
/*!
* Solve the nonlinear system
*
* \f[ A x + B y = C \f]
* \f[ x^2 + y^2 = 1 \f]
*
* \param A first parameter of the linear equation
* \param B second parameter of the linear equation
* \param C third parameter of the linear equation
* \return the number of solution 0, 1 or 2
*
*/
int_type
solveLinearQuadratic2(
real_type A,
real_type B,
real_type C,
real_type x[],
real_type y[]
);
/*!
* Intersect the parametric arc
*
* \f[ x = x_1+\frac{\sin(\kappa_1 s+\theta_1)-sin(\theta_1)}{\kappa_1} \f]
* \f[ y = y_1+\frac{\cos(\theta_1)-\cos(\kappa_1 s+\theta_1)}{\kappa_1} \f]
*
* with the parametric arc
* \f[ x = x_2+\frac{\sin(\kappa_2 s+\theta_2)-sin(\theta_2)}{\kappa_2} \f]
* \f[ y = y_2+\frac{\cos(\theta_2)-\cos(\kappa_2 s+\theta_2)}{\kappa_2} \f]
*
* \param x1 x-origin of the first arc
* \param y1 y-origin of the first arc
* \param theta1 initial angle of the first arc
* \param kappa1 curvature of the first arc
* \param x2 x-origin of the second arc
* \param y2 y-origin of the second arc
* \param theta2 initial angle of the second arc
* \param kappa2 curvature of the second arc
* \param s1 parameter2 of intersection for the first circle arc
* \param s2 parameter2 of intersection for the second circle arc
*
* \return the number of solution 0, 1 or 2
*
*/
int_type
intersectCircleCircle(
real_type x1,
real_type y1,
real_type theta1,
real_type kappa1,
real_type x2,
real_type y2,
real_type theta2,
real_type kappa2,
real_type s1[],
real_type s2[]
);
/*\
| ____ _ ____ ____
| / ___| ___ | |_ _____|___ \__ _|___ \
| \___ \ / _ \| \ \ / / _ \ __) \ \/ / __) |
| ___) | (_) | |\ V / __// __/ > < / __/
| |____/ \___/|_| \_/ \___|_____/_/\_\_____|
\*/
/*!
* Class that solve a 2x2 linear system using Pseudo inverse
* to manage singular and near singular cases
*/
//! Class that solve a 2x2 linear system
class Solve2x2 {
int_type i[2], j[2];
real_type LU[2][2];
real_type epsi;
bool singular;
public:
Solve2x2() : epsi(1e-10) {}
bool factorize( real_type A[2][2] );
bool solve( real_type const b[2], real_type x[2] ) const;
};
/*!
* return +1 = CounterClockwise
* return -1 = Clockwise
* return 0 = flat
*
* CounterClockwise:
* the path P1->P2->P3 turns Counter-Clockwise, i.e.,
* the point P3 is located "on the left" of the line P1-P2.
* Clockwise:
* the path turns Clockwise, i.e.,
* the point P3 lies "on the right" of the line P1-P2.
* flat:
* the point P3 is located on the line segment [P1 P2].
*
* Algorithm from FileExchage geom2d adapated from Sedgewick's book.
*/
int_type
isCounterClockwise(
real_type const P1[2],
real_type const P2[2],
real_type const P3[2]
);
/*!
* return +1 = Inside
* return -1 = Outsize
* return 0 = on border
*/
int_type
isPointInTriangle(
real_type const pt[2],
real_type const P1[2],
real_type const P2[2],
real_type const P3[2]
);
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
/*\
| ____ ____
| | __ ) __ _ ___ ___ / ___| _ _ ____ _____
| | _ \ / _` / __|/ _ \ | | | | | '__\ \ / / _ \
| | |_) | (_| \__ \ __/ |__| |_| | | \ V / __/
| |____/ \__,_|___/\___|\____\__,_|_| \_/ \___|
\*/
typedef enum {
G2LIB_LINE=0,
G2LIB_POLYLINE,
G2LIB_CIRCLE,
G2LIB_BIARC,
G2LIB_BIARC_LIST,
G2LIB_CLOTHOID,
G2LIB_CLOTHOID_LIST
} CurveType;
extern char const *CurveType_name[];
typedef std::pair<real_type,real_type> Ipair;
typedef std::vector<Ipair> IntersectList;
/*\
| _ _ _
| (_)_ __ | |_ ___ _ __ ___ ___ ___| |_
| | | '_ \| __/ _ \ '__/ __|/ _ \/ __| __|
| | | | | | || __/ | \__ \ __/ (__| |_
| |_|_| |_|\__\___|_| |___/\___|\___|\__|
\*/
class BaseCurve;
/*!
* return `true` if the two curves intersect
*
* \param[in] C1 first curve
* \param[in] C2 second curve
*/
bool
collision( BaseCurve const & C1, BaseCurve const & C2 );
/*!
* return `true` the the two curves intersect
*
* \param[in] C1 first curve
* \param[in] offs_C1 offset of the first curve
* \param[in] C2 second curve
* \param[in] offs_C2 offset of the second curve
*/
bool
collision_ISO(
BaseCurve const & C1,
real_type offs_C1,
BaseCurve const & C2,
real_type offs_C2
);
/*!
* return `true` the the two curves intersect
*
* \param[in] C1 first curve
* \param[in] offs_C1 offset of the first curve
* \param[in] C2 second curve
* \param[in] offs_C2 offset of the second curve
*/
inline
bool
collision_SAE(
BaseCurve const & C1,
real_type offs_C1,
BaseCurve const & C2,
real_type offs_C2
) {
return collision_ISO( C1, -offs_C1, C2, -offs_C2 );
}
#ifdef G2LIB_COMPATIBILITY_MODE
/*!
* return `true` the the two curves intersect
*
* \param[in] C1 first curve
* \param[in] offs_C1 offset of the first curve
* \param[in] C2 second curve
* \param[in] offs_C2 offset of the second curve
*/
inline
bool
collision(
BaseCurve const & C1,
real_type offs_C1,
BaseCurve const & C2,
real_type offs_C2
) {
if ( G2lib::use_ISO ) return collision_ISO( C1, offs_C1, C2, offs_C2 );
else return collision_SAE( C1, offs_C1, C2, offs_C2 );
}
#endif
/*!
* collect the intersection of the two curve
*
* \param[in] C1 first curve
* \param[in] C2 second curve
* \param[out] ilist list of the intersection (as parameter on the curves)
* \param[out] swap_s_vals if true store `(s2,s1)` instead of `(s1,s2)` for each
* intersection
*/
void
intersect(
BaseCurve const & C1,
BaseCurve const & C2,
IntersectList & ilist,
bool swap_s_vals
);
/*!
* collect the intersections of the two curve
*
* \param[in] C1 first curve
* \param[in] offs_C1 offset of the first curve
* \param[in] C2 second curve
* \param[in] offs_C2 offset of the second curve
* \param[out] ilist list of the intersection (as parameter on the curves)
* \param[out] swap_s_vals if true store `(s2,s1)` instead of `(s1,s2)` for each
* intersection
*/
void
intersect_ISO(
BaseCurve const & C1,
real_type offs_C1,
BaseCurve const & C2,
real_type offs_C2,
IntersectList & ilist,
bool swap_s_vals
);
/*!
* collect the intersections of the two curve
*
* \param[in] C1 first curve
* \param[in] offs_C1 offset of the first curve
* \param[in] C2 second curve
* \param[in] offs_C2 offset of the second curve
* \param[out] ilist list of the intersection (as parameter on the curves)
* \param[out] swap_s_vals if true store `(s2,s1)` instead of `(s1,s2)` for each
* intersection
*/
inline
void
intersect_SAE(
BaseCurve const & C1,
real_type offs_C1,
BaseCurve const & C2,
real_type offs_C2,
IntersectList & ilist,
bool swap_s_vals
) {
intersect_ISO( C1, -offs_C1, C2, -offs_C2, ilist, swap_s_vals );
}
#ifdef G2LIB_COMPATIBILITY_MODE
/*!
* collect the intersections of the two curve
*
* \param[in] C1 first curve
* \param[in] offs_C1 offset of the first curve
* \param[in] C2 second curve
* \param[in] offs_C2 offset of the second curve
* \param[out] ilist list of the intersection (as parameter on the curves)
* \param[out] swap_s_vals if true store `(s2,s1)` instead of `(s1,s2)` for each
* intersection
*/
inline
void
intersect(
BaseCurve const & C1,
real_type offs_C1,
BaseCurve const & C2,
real_type offs_C2,
IntersectList & ilist,
bool swap_s_vals
) {
if ( G2lib::use_ISO ) intersect_ISO( C1, offs_C1, C2, offs_C2, ilist, swap_s_vals );
else intersect_SAE( C1, offs_C1, C2, offs_C2, ilist, swap_s_vals );
}
#endif
//! base classe for all the curve ìs in the library
class BaseCurve {
// block default constructor
BaseCurve( BaseCurve const & );
protected:
CurveType m_type;
public:
BaseCurve( CurveType const & type )
: m_type(type)
{}
virtual
~BaseCurve() {}
//! \return name of the curve type
CurveType type() const { return m_type; }
// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
//! \return length of the curve
virtual real_type length() const UTILS_PURE_VIRTUAL;
//! \return length of the curve with offset
virtual real_type length_ISO( real_type offs ) const UTILS_PURE_VIRTUAL;
//! \return length of the curve with offset
real_type
length_SAE( real_type offs ) const
{ return this->length_ISO(-offs); }
#ifdef G2LIB_COMPATIBILITY_MODE
//! \return length of the curve with offset
real_type
length( real_type offs ) const
{ return G2lib::use_ISO ? this->length_ISO(offs) : this->length_SAE(offs); }
#endif
/*\
| _ _
| | |__ | |__ _____ __
| | '_ \| '_ \ / _ \ \/ /
| | |_) | |_) | (_) > <
| |_.__/|_.__/ \___/_/\_\
\*/
/*!
* Compute the bounding box of the curve
* \param[out] xmin left bottom
* \param[out] ymin left bottom
* \param[out] xmax right top
* \param[out] ymax right top
*/
virtual
void
bbox(
real_type & xmin,
real_type & ymin,
real_type & xmax,
real_type & ymax
) const UTILS_PURE_VIRTUAL;
/*!
* Compute the bounding box of the curve with offset
* \param[out] xmin left bottom
* \param[out] ymin left bottom
* \param[out] xmax right top
* \param[out] ymax right top
*/
virtual
void
bbox_ISO(
real_type offs,
real_type & xmin,
real_type & ymin,
real_type & xmax,
real_type & ymax
) const UTILS_PURE_VIRTUAL;
/*!
* Compute the bounding box of the curve
* \param[out] xmin left bottom
* \param[out] ymin left bottom
* \param[out] xmax right top
* \param[out] ymax right top
*/
void
bbox_SAE(
real_type offs,
real_type & xmin,
real_type & ymin,
real_type & xmax,
real_type & ymax
) const {
this->bbox_ISO( -offs, xmin, ymin, xmax, ymax );
}
#ifdef G2LIB_COMPATIBILITY_MODE
/*!
* Compute the bounding box of the curve
* \param[out] xmin left bottom
* \param[out] ymin left bottom
* \param[out] xmax right top
* \param[out] ymax right top
*/
void
bbox(
real_type offs,
real_type & xmin,
real_type & ymin,
real_type & xmax,
real_type & ymax
) const {
if ( G2lib::use_ISO ) this->bbox_ISO( offs, xmin, ymin, xmax, ymax );
else this->bbox_SAE( offs, xmin, ymin, xmax, ymax );
}
#endif
/*\
| ____ _ _______ _
| | __ ) ___ __ _(_)_ __ / / ____|_ __ __| |
| | _ \ / _ \/ _` | | '_ \ / /| _| | '_ \ / _` |
| | |_) | __/ (_| | | | | |/ / | |___| | | | (_| |
| |____/ \___|\__, |_|_| |_/_/ |_____|_| |_|\__,_|
| |___/
\*/
virtual real_type thetaBegin() const { return this->theta(0); }
virtual real_type thetaEnd() const { return this->theta(this->length()); }
virtual real_type kappaBegin() const { return this->kappa(0); }
virtual real_type kappaEnd() const { return this->kappa(this->length()); }
virtual real_type xBegin() const { return this->X(0); }
virtual real_type yBegin() const { return this->Y(0); }
virtual real_type xEnd() const { return this->X(this->length()); }
virtual real_type yEnd() const { return this->Y(this->length()); }
virtual real_type xBegin_ISO( real_type offs ) const { return this->X_ISO(0,offs); }
virtual real_type yBegin_ISO( real_type offs ) const { return this->Y_ISO(0,offs); }
virtual real_type xEnd_ISO ( real_type offs ) const { return this->X_ISO(this->length(),offs); }
virtual real_type yEnd_ISO ( real_type offs ) const { return this->Y_ISO(this->length(),offs); }
real_type xBegin_SAE( real_type offs ) const { return this->xBegin_ISO(-offs); }
real_type yBegin_SAE( real_type offs ) const { return this->yBegin_ISO(-offs); }
real_type xEnd_SAE ( real_type offs ) const { return this->xEnd_ISO(-offs); }
real_type yEnd_SAE ( real_type offs ) const { return this->yEnd_ISO(-offs); }
#ifdef G2LIB_COMPATIBILITY_MODE
real_type
xBegin( real_type offs ) const
{ return G2lib::use_ISO ? this->xBegin_ISO(offs) : this->xBegin_SAE(offs); }
real_type
yBegin( real_type offs ) const
{ return G2lib::use_ISO ? this->yBegin_ISO(offs) : this->yBegin_SAE(offs); }
real_type
xEnd( real_type offs ) const
{ return G2lib::use_ISO ? this->xEnd_ISO(offs) : this->xEnd_SAE(offs); }
real_type
yEnd( real_type offs ) const
{ return G2lib::use_ISO ? this->yEnd_ISO(offs) : this->yEnd_SAE(offs); }
#endif
virtual real_type tx_Begin() const { return this->tx(0); }
virtual real_type ty_Begin() const { return this->ty(0); }
virtual real_type tx_End() const { return this->tx(this->length()); }
virtual real_type ty_End() const { return this->ty(this->length()); }
virtual real_type nx_Begin_ISO() const { return -this->ty(0); }
virtual real_type ny_Begin_ISO() const { return this->tx(0); }
virtual real_type nx_End_ISO() const { return -this->ty(this->length()); }
virtual real_type ny_End_ISO() const { return this->tx(this->length()); }
real_type nx_Begin_SAE() const { return -nx_Begin_ISO(); }
real_type ny_Begin_SAE() const { return -ny_Begin_ISO(); }
real_type nx_End_SAE() const { return -nx_End_ISO(); }
real_type ny_End_SAE() const { return -ny_End_ISO(); }
#ifdef G2LIB_COMPATIBILITY_MODE
real_type
nx_Begin() const
{ return G2lib::use_ISO ? this->nx_Begin_ISO() : this->nx_Begin_SAE(); }
real_type
ny_Begin() const
{ return G2lib::use_ISO ? this->ny_Begin_ISO() : this->ny_Begin_SAE(); }
real_type
nx_End() const
{ return G2lib::use_ISO ? this->nx_End_ISO() : this->nx_End_SAE(); }
real_type
ny_End() const
{ return G2lib::use_ISO ? this->ny_End_ISO() : this->ny_End_SAE(); }
#endif
/*\
| _ _ _
| | |_| |__ ___| |_ __ _
| | __| '_ \ / _ \ __/ _` |
| | |_| | | | __/ || (_| |
| \__|_| |_|\___|\__\__,_|
\*/
virtual real_type theta ( real_type s ) const UTILS_PURE_VIRTUAL;
virtual real_type theta_D ( real_type s ) const UTILS_PURE_VIRTUAL;
virtual real_type theta_DD ( real_type s ) const UTILS_PURE_VIRTUAL;
virtual real_type theta_DDD( real_type s ) const UTILS_PURE_VIRTUAL;
/*\
| _
| | | ____ _ _ __ _ __ __ _
| | |/ / _` | '_ \| '_ \ / _` |
| | < (_| | |_) | |_) | (_| |
| |_|\_\__,_| .__/| .__/ \__,_|
| |_| |_|
\*/
real_type kappa ( real_type s ) const { return theta_D(s); }
real_type kappa_D ( real_type s ) const { return theta_DD(s); }
real_type kappa_DD( real_type s ) const { return theta_DDD(s); }
/*\
| _____ _ _ _
| |_ _| __ _ _ __ __| | | \ | |
| | | / _` | '_ \ / _` | | \| |
| | | | (_| | | | | (_| | | |\ |
| |_| \__,_|_| |_|\__,_| |_| \_|
\*/
virtual real_type tx ( real_type s ) const;
virtual real_type ty ( real_type s ) const;
virtual real_type tx_D ( real_type s ) const;
virtual real_type ty_D ( real_type s ) const;
virtual real_type tx_DD ( real_type s ) const;
virtual real_type ty_DD ( real_type s ) const;
virtual real_type tx_DDD( real_type s ) const;
virtual real_type ty_DDD( real_type s ) const;
// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
real_type nx_ISO ( real_type s ) const { return -ty(s); }
real_type nx_ISO_D ( real_type s ) const { return -ty_D(s); }
real_type nx_ISO_DD ( real_type s ) const { return -ty_DD(s); }
real_type nx_ISO_DDD( real_type s ) const { return -ty_DDD(s); }
real_type ny_ISO ( real_type s ) const { return tx(s); }
real_type ny_ISO_D ( real_type s ) const { return tx_D(s); }
real_type ny_ISO_DD ( real_type s ) const { return tx_DD(s); }
real_type ny_ISO_DDD( real_type s ) const { return tx_DDD(s); }
real_type nx_SAE ( real_type s ) const { return ty(s); }
real_type nx_SAE_D ( real_type s ) const { return ty_D(s); }
real_type nx_SAE_DD ( real_type s ) const { return ty_DD(s); }
real_type nx_SAE_DDD( real_type s ) const { return ty_DDD(s); }
real_type ny_SAE ( real_type s ) const { return -tx(s); }
real_type ny_SAE_D ( real_type s ) const { return -tx_D(s); }
real_type ny_SAE_DD ( real_type s ) const { return -tx_DD(s); }
real_type ny_SAE_DDD( real_type s ) const { return -tx_DDD(s); }
#ifdef G2LIB_COMPATIBILITY_MODE
real_type nx( real_type s ) const
{ return G2lib::use_ISO ? this->nx_ISO(s) : this->nx_SAE(s); }
real_type nx_D( real_type s ) const
{ return G2lib::use_ISO ? this->nx_ISO_D(s) : this->nx_SAE_D(s); }
real_type nx_DD( real_type s ) const
{ return G2lib::use_ISO ? this->nx_ISO_DD(s) : this->nx_SAE_DD(s); }
real_type nx_DDD( real_type s ) const
{ return G2lib::use_ISO ? this->nx_ISO_DDD(s) : this->nx_SAE_DDD(s); }
real_type ny( real_type s ) const
{ return G2lib::use_ISO ? this->ny_ISO(s) : this->ny_SAE(s); }
real_type ny_D( real_type s ) const
{ return G2lib::use_ISO ? this->ny_ISO_D(s) : this->ny_SAE_D(s); }
real_type ny_DD( real_type s ) const
{ return G2lib::use_ISO ? this->ny_ISO_DD(s) : this->ny_SAE_DD(s); }
real_type ny_DDD( real_type s ) const
{ return G2lib::use_ISO ? this->ny_ISO_DDD(s) : this->ny_SAE_DDD(s); }
#endif
// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
virtual
void
tg( real_type s, real_type & tg_x, real_type & tg_y ) const {
tg_x = this->tx(s);
tg_y = this->ty(s);
}
virtual
void
tg_D( real_type s, real_type & tg_x_D, real_type & tg_y_D ) const {
tg_x_D = this->tx_D(s);
tg_y_D = this->ty_D(s);
}
virtual
void
tg_DD( real_type s, real_type & tg_x_DD, real_type & tg_y_DD ) const {
tg_x_DD = this->tx_DD(s);
tg_y_DD = this->ty_DD(s);
}
virtual
void
tg_DDD( real_type s, real_type & tg_x_DDD, real_type & tg_y_DDD ) const {
tg_x_DDD = this->tx_DDD(s);
tg_y_DDD = this->ty_DDD(s);
}
// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
void
nor_ISO( real_type s, real_type & nx, real_type & ny ) const
{ tg( s, ny, nx ); nx = -nx; }
void
nor_ISO_D( real_type s, real_type & nx_D, real_type & ny_D ) const
{ tg_D( s, ny_D, nx_D ); nx_D = -nx_D; }
void
nor_ISO_DD( real_type s, real_type & nx_DD, real_type & ny_DD ) const
{ tg_DD( s, ny_DD, nx_DD ); nx_DD = -nx_DD; }
void
nor_ISO_DDD( real_type s, real_type & nx_DDD, real_type & ny_DDD ) const
{ tg_DDD( s, ny_DDD, nx_DDD ); nx_DDD = -nx_DDD; }
void
nor_SAE( real_type s, real_type & nx, real_type & ny ) const
{ tg( s, ny, nx ); ny = -ny; }
void
nor_SAE_D( real_type s, real_type & nx_D, real_type & ny_D ) const
{ tg_D( s, ny_D, nx_D ); ny_D = -ny_D; }
void
nor_SAE_DD( real_type s, real_type & nx_DD, real_type & ny_DD ) const
{ tg_DD( s, ny_DD, nx_DD ); ny_DD = -ny_DD; }
void
nor_SAE_DDD( real_type s, real_type & nx_DDD, real_type & ny_DDD ) const
{ tg_DDD( s, ny_DDD, nx_DDD ); ny_DDD = -ny_DDD; }
#ifdef G2LIB_COMPATIBILITY_MODE
void
nor( real_type s, real_type & nx, real_type & ny ) const {
if ( G2lib::use_ISO ) this->nor_ISO(s,nx,ny);
else this->nor_SAE(s,nx,ny);
}
void
nor_D( real_type s, real_type & nx_D, real_type & ny_D ) const {
if ( G2lib::use_ISO ) this->nor_ISO_D(s,nx_D,ny_D);
else this->nor_SAE_D(s,nx_D,ny_D);
}
void
nor_DD( real_type s, real_type & nx_DD, real_type & ny_DD ) const {
if ( G2lib::use_ISO ) this->nor_ISO_DD(s,nx_DD,ny_DD);
else this->nor_SAE_DD(s,nx_DD,ny_DD);
}
void
nor_DDD( real_type s, real_type & nx_DDD, real_type & ny_DDD ) const {
if ( G2lib::use_ISO ) this->nor_ISO_DDD(s,nx_DDD,ny_DDD);
else this->nor_SAE_DDD(s,nx_DDD,ny_DDD);
}
#endif
// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
virtual
void
evaluate(
real_type s,
real_type & th,
real_type & k,
real_type & x,
real_type & y
) const {
eval( s, x, y );
th = theta( s );
k = theta_D( s );
}
virtual
void
evaluate_ISO(
real_type s,
real_type offs,
real_type & th,
real_type & k,
real_type & x,
real_type & y
) const {
eval_ISO( s, offs, x, y );
th = theta( s );
k = theta_D( s );
k /= 1+offs*k; // scale curvature
}
virtual
void
evaluate_SAE(
real_type s,
real_type offs,
real_type & th,
real_type & k,
real_type & x,
real_type & y
) const {
eval_SAE( s, offs, x, y );
th = theta( s );
k = theta_D( s );
k /= 1-offs*k; // scale curvature
}
#ifdef G2LIB_COMPATIBILITY_MODE
void
evaluate(
real_type s,
real_type offs,
real_type & th,
real_type & k,
real_type & x,
real_type & y
) const {
if ( G2lib::use_ISO ) this->evaluate_ISO( s, offs, th, k, x, y );
else this->evaluate_SAE( s, offs, th, k, x, y );
}
#endif
// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
virtual real_type X ( real_type s ) const UTILS_PURE_VIRTUAL;
virtual real_type Y ( real_type s ) const UTILS_PURE_VIRTUAL;
virtual real_type X_D ( real_type s ) const UTILS_PURE_VIRTUAL;
virtual real_type Y_D ( real_type s ) const UTILS_PURE_VIRTUAL;
virtual real_type X_DD ( real_type s ) const UTILS_PURE_VIRTUAL;
virtual real_type Y_DD ( real_type s ) const UTILS_PURE_VIRTUAL;
virtual real_type X_DDD( real_type s ) const UTILS_PURE_VIRTUAL;
virtual real_type Y_DDD( real_type s ) const UTILS_PURE_VIRTUAL;
// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
virtual
void
eval( real_type s, real_type & x, real_type & y ) const
UTILS_PURE_VIRTUAL;
virtual
void
eval_D( real_type s, real_type & x_D, real_type & y_D ) const
UTILS_PURE_VIRTUAL;
virtual
void
eval_DD( real_type s, real_type & x_DD, real_type & y_DD ) const
UTILS_PURE_VIRTUAL;
virtual
void
eval_DDD( real_type s, real_type & x_DDD, real_type & y_DDD ) const
UTILS_PURE_VIRTUAL;
/*\
| __ __ _
| ___ / _|/ _|___ ___| |_
| / _ \| |_| |_/ __|/ _ \ __|
| | (_) | _| _\__ \ __/ |_
| \___/|_| |_| |___/\___|\__|
\*/
virtual real_type X_ISO ( real_type s, real_type offs ) const;
virtual real_type Y_ISO ( real_type s, real_type offs ) const;
virtual real_type X_ISO_D ( real_type s, real_type offs ) const;
virtual real_type Y_ISO_D ( real_type s, real_type offs ) const;
virtual real_type X_ISO_DD ( real_type s, real_type offs ) const;
virtual real_type Y_ISO_DD ( real_type s, real_type offs ) const;
virtual real_type X_ISO_DDD( real_type s, real_type offs ) const;
virtual real_type Y_ISO_DDD( real_type s, real_type offs ) const;
real_type X_SAE ( real_type s, real_type offs ) const { return this->X_ISO(s,-offs); }
real_type Y_SAE ( real_type s, real_type offs ) const { return this->Y_ISO(s,-offs); }
real_type X_SAE_D ( real_type s, real_type offs ) const { return this->X_ISO_D(s,-offs); }
real_type Y_SAE_D ( real_type s, real_type offs ) const { return this->Y_ISO_D(s,-offs); }
real_type X_SAE_DD ( real_type s, real_type offs ) const { return this->X_ISO_DD(s,-offs); }
real_type Y_SAE_DD ( real_type s, real_type offs ) const { return this->Y_ISO_DD(s,-offs); }
real_type X_SAE_DDD( real_type s, real_type offs ) const { return this->X_ISO_DDD(s,-offs); }
real_type Y_SAE_DDD( real_type s, real_type offs ) const { return this->Y_ISO_DDD(s,-offs); }
#ifdef G2LIB_COMPATIBILITY_MODE
real_type
X( real_type s, real_type offs ) const
{ return G2lib::use_ISO ? this->X_ISO( s, offs ) : this->X_SAE( s, offs ); }
real_type
Y( real_type s, real_type offs ) const
{ return G2lib::use_ISO ? this->Y_ISO( s, offs ) : this->Y_SAE( s, offs ); }
real_type
X_D( real_type s, real_type offs ) const
{ return G2lib::use_ISO ? this->X_ISO_D( s, offs ) : this->X_SAE_D( s, offs ); }
real_type
Y_D( real_type s, real_type offs ) const
{ return G2lib::use_ISO ? this->Y_ISO_D( s, offs ) : this->Y_SAE_D( s, offs ); }
real_type
X_DD( real_type s, real_type offs ) const
{ return G2lib::use_ISO ? this->X_ISO_DD( s, offs ) : this->X_SAE_DD( s, offs ); }
real_type
Y_DD( real_type s, real_type offs ) const
{ return G2lib::use_ISO ? this->Y_ISO_DD( s, offs ) : this->Y_SAE_DD( s, offs ); }
real_type
X_DDD( real_type s, real_type offs ) const
{ return G2lib::use_ISO ? this->X_ISO_DDD( s, offs ) : this->X_SAE_DDD( s, offs ); }
real_type
Y_DDD( real_type s, real_type offs ) const
{ return G2lib::use_ISO ? this->Y_ISO_DDD( s, offs ) : this->Y_SAE_DDD( s, offs ); }
#endif
// . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
/*!
* Compute curve at position `s` with offset `offs`
*
* \param[in] s parameter on the curve
* \param[in] offs offset of the curve
* \param[out] x coordinate
* \param[out] y coordinate
*/
virtual
void
eval_ISO(
real_type s,
real_type offs,
real_type & x,
real_type & y
) const;
/*!
* Compute curve at position `s` with offset `offs`
*
* \param[in] s parameter on the curve
* \param[in] offs offset of the curve
* \param[out] x coordinate
* \param[out] y coordinate
*/
void
eval_SAE(
real_type s,
real_type offs,
real_type & x,
real_type & y
) const {
this->eval_ISO( s, -offs, x, y );
}
#ifdef G2LIB_COMPATIBILITY_MODE
/*!
* Compute curve at position `s` with offset `offs`
*
* \param[in] s parameter on the curve
* \param[in] offs offset of the curve
* \param[out] x coordinate
* \param[out] y coordinate
*/
void
eval(
real_type s,
real_type offs,
real_type & x,
real_type & y
) const {
if ( G2lib::use_ISO ) this->eval_ISO( s, offs, x, y );
else this->eval_SAE( s, offs, x, y );
}
#endif
/*!
* Compute derivative curve at position `s` with offset `offs`
*
* \param[in] s parameter on the curve
* \param[in] offs offset of the curve
* \param[out] x_D coordinate
* \param[out] y_D coordinate
*/
virtual
void
eval_ISO_D(
real_type s,
real_type offs,
real_type & x_D,
real_type & y_D
) const;
/*!
* Compute derivative curve at position `s` with offset `offs`
*
* \param[in] s parameter on the curve
* \param[in] offs offset of the curve
* \param[out] x_D coordinate
* \param[out] y_D coordinate
*/
void
eval_SAE_D(
real_type s,
real_type offs,
real_type & x_D,
real_type & y_D
) const {
this->eval_ISO_D( s, -offs, x_D, y_D );
}
#ifdef G2LIB_COMPATIBILITY_MODE
/*!
* Compute derivative curve at position `s` with offset `offs`
*
* \param[in] s parameter on the curve
* \param[in] offs offset of the curve
* \param[out] x_D coordinate
* \param[out] y_D coordinate
*/
void
eval_D(
real_type s,
real_type offs,
real_type & x_D,
real_type & y_D
) const {
if ( G2lib::use_ISO ) this->eval_ISO_D( s, offs, x_D, y_D );
else this->eval_SAE_D( s, offs, x_D, y_D );
}
#endif
/*!
* Compute second derivative curve at position `s` with offset `offs`
*
* \param[in] s parameter on the curve
* \param[in] offs offset of the curve
* \param[out] x_DD coordinate
* \param[out] y_DD coordinate
*/
virtual
void
eval_ISO_DD(
real_type s,
real_type offs,
real_type & x_DD,
real_type & y_DD
) const;
/*!
* Compute second derivative curve at position `s` with offset `offs`
*
* \param[in] s parameter on the curve
* \param[in] offs offset of the curve
* \param[out] x_DD coordinate
* \param[out] y_DD coordinate
*/
void
eval_SAE_DD(
real_type s,
real_type offs,
real_type & x_DD,
real_type & y_DD
) const {
this->eval_ISO_DD( s, -offs, x_DD, y_DD );
}
#ifdef G2LIB_COMPATIBILITY_MODE
/*!
* Compute second derivative curve at position `s` with offset `offs`
*
* \param[in] s parameter on the curve
* \param[in] offs offset of the curve
* \param[out] x_DD coordinate
* \param[out] y_DD coordinate
*/
void
eval_DD(
real_type s,
real_type offs,
real_type & x_DD,
real_type & y_DD
) const {
if ( G2lib::use_ISO ) this->eval_ISO_DD( s, offs, x_DD, y_DD );
else this->eval_SAE_DD( s, offs, x_DD, y_DD );
}
#endif
/*!
* Compute third derivative curve at position `s` with offset `offs`
*
* \param[in] s parameter on the curve
* \param[in] offs offset of the curve
* \param[out] x_DDD coordinate
* \param[out] y_DDD coordinate
*/
virtual
void
eval_ISO_DDD(
real_type s,
real_type offs,
real_type & x_DDD,
real_type & y_DDD
) const;
/*!
* Compute third derivative curve at position `s` with offset `offs`
*
* \param[in] s parameter on the curve
* \param[in] offs offset of the curve
* \param[out] x_DDD coordinate
* \param[out] y_DDD coordinate
*/
void
eval_SAE_DDD(
real_type s,
real_type offs,
real_type & x_DDD,
real_type & y_DDD
) const {
this->eval_ISO_DDD( s, -offs, x_DDD, y_DDD );
}
#ifdef G2LIB_COMPATIBILITY_MODE
/*!
* Compute third derivative curve at position `s` with offset `offs`
*
* \param[in] s parameter on the curve
* \param[in] offs offset of the curve
* \param[out] x_DDD coordinate
* \param[out] y_DDD coordinate
*/
void
eval_DDD(
real_type s,
real_type offs,
real_type & x_DDD,
real_type & y_DDD
) const {
if ( G2lib::use_ISO ) this->eval_ISO_DDD( s, offs, x_DDD, y_DDD );
else this->eval_SAE_DDD( s, offs, x_DDD, y_DDD );
}
#endif
/*\
| _ __
| | |_ _ __ __ _ _ __ ___ / _| ___ _ __ _ __ ___
| | __| '__/ _` | '_ \/ __| |_ / _ \| '__| '_ ` _ \
| | |_| | | (_| | | | \__ \ _| (_) | | | | | | | |
| \__|_| \__,_|_| |_|___/_| \___/|_| |_| |_| |_|
\*/
virtual
void
translate( real_type tx, real_type ty ) UTILS_PURE_VIRTUAL;
virtual
void
rotate( real_type angle, real_type cx, real_type cy ) UTILS_PURE_VIRTUAL;
virtual
void
scale( real_type sc ) UTILS_PURE_VIRTUAL;
virtual
void
reverse() UTILS_PURE_VIRTUAL;
virtual
void
changeOrigin( real_type newx0, real_type newy0 ) UTILS_PURE_VIRTUAL;
virtual
void
trim( real_type s_begin, real_type s_end ) UTILS_PURE_VIRTUAL;
/*\
| _ _ _
| (_)_ __ | |_ ___ _ __ ___ ___ ___| |_
| | | '_ \| __/ _ \ '__/ __|/ _ \/ __| __|
| | | | | | || __/ | \__ \ __/ (__| |_
| |_|_| |_|\__\___|_| |___/\___|\___|\__|
\*/
bool
collision( BaseCurve const & C ) const
{ return G2lib::collision( *this, C ); }
bool
collision_ISO(
real_type offs,
BaseCurve const & C,
real_type offs_C
) const {
return G2lib::collision_ISO( *this, offs, C, offs_C );
}
bool
collision_SAE(
real_type offs,
BaseCurve const & C,
real_type offs_C
) const {
return G2lib::collision_SAE( *this, offs, C, offs_C );
}
#ifdef G2LIB_COMPATIBILITY_MODE
bool
collision(
real_type offs,
BaseCurve const & C,
real_type offs_C
) const {
if ( G2lib::use_ISO )
return G2lib::collision_ISO( *this, offs, C, offs_C );
else
return G2lib::collision_SAE( *this, offs, C, offs_C );
}
#endif
void
intersect(
BaseCurve const & C,
IntersectList & ilist,
bool swap_s_vals
) const {
G2lib::intersect( *this, C, ilist, swap_s_vals );
}
void
intersect_ISO(
real_type offs,
BaseCurve const & C,
real_type offs_C,
IntersectList & ilist,
bool swap_s_vals
) const {
G2lib::intersect_ISO( *this, offs, C, offs_C, ilist, swap_s_vals );
}
void
intersect_SAE(
real_type offs,
BaseCurve const & C,
real_type offs_C,
IntersectList & ilist,
bool swap_s_vals
) const {
G2lib::intersect_SAE( *this, offs, C, offs_C, ilist, swap_s_vals );
}
#ifdef G2LIB_COMPATIBILITY_MODE
void
intersect(
real_type offs,
BaseCurve const & C,
real_type offs_C,
IntersectList & ilist,
bool swap_s_vals
) const {
if ( G2lib::use_ISO )
G2lib::intersect_ISO( *this, offs, C, offs_C, ilist, swap_s_vals );
else
G2lib::intersect_SAE( *this, offs, C, offs_C, ilist, swap_s_vals );
}
#endif
/*\
| _ _ _
| __| (_)___| |_ __ _ _ __ ___ ___
| / _` | / __| __/ _` | '_ \ / __/ _ \
| | (_| | \__ \ || (_| | | | | (_| __/
| \__,_|_|___/\__\__,_|_| |_|\___\___|
\*/
/*!
* \param qx x-coordinate of the point
* \param qy y-coordinate of the point
* \param x x-coordinate of the projected point on the curve
* \param y y-coordinate of the projected point on the curve
* \param s parameter on the curve of the projection
* \param t curvilinear coordinate of the point x,y (if orthogonal projection)
* \param dst distance point projected point
* \return 1 = point is projected orthogonal
* 0 = more than one projection (first returned)
* -1 = minimum point is not othogonal projection to curve
*/
virtual
int_type
closestPoint_ISO(
real_type qx,
real_type qy,
real_type & x,
real_type & y,
real_type & s,
real_type & t,
real_type & dst
) const UTILS_PURE_VIRTUAL;
/*!
* \param qx x-coordinate of the point
* \param qy y-coordinate of the point
* \param x x-coordinate of the projected point on the curve
* \param y y-coordinate of the projected point on the curve
* \param s parameter on the curve of the projection
* \param t curvilinear coordinate of the point x,y (if orthogonal projection)
* \param dst distance point projected point
* \return 1 = point is projected orthogonal
* 0 = more than one projection (first returned)
* -1 = minimum point is not othogonal projection to curve
*/
int_type
closestPoint_SAE(
real_type qx,
real_type qy,
real_type & x,
real_type & y,
real_type & s,
real_type & t,
real_type & dst
) const {
int_type res = this->closestPoint_ISO( qx, qy, x, y, s, t, dst );
t = -t;
return res;
}
#ifdef G2LIB_COMPATIBILITY_MODE
/*!
* \param qx x-coordinate of the point
* \param qy y-coordinate of the point
* \param x x-coordinate of the projected point on the curve
* \param y y-coordinate of the projected point on the curve
* \param s parameter on the curve of the projection
* \param t curvilinear coordinate of the point x,y (if orthogonal projection)
* \param dst distance point projected point
* \return 1 = point is projected orthogonal
* 0 = more than one projection (first returned)
* -1 = minimum point is not othogonal projection to curve
*/
int_type
closestPoint(
real_type qx,
real_type qy,
real_type & x,
real_type & y,
real_type & s,
real_type & t,
real_type & dst
) const {
if ( G2lib::use_ISO )
return this->closestPoint_ISO( qx, qy, x, y, s, t, dst );
else
return this->closestPoint_SAE( qx, qy, x, y, s, t, dst );
}
#endif
/*!
* \param qx x-coordinate of the point
* \param qy y-coordinate of the point
* \param offs offset of the curve
* \param x x-coordinate of the projected point on the curve
* \param y y-coordinate of the projected point on the curve
* \param s parameter on the curve of the projection
* \param t curvilinear coordinate of the point x,y (if orthogonal projection)
* \param dst distance point projected point
* \return 1 = point is projected orthogonal
* 0 = more than one projection (first returned)
* -1 = minimum point is not othogonal projection to curve
*/
virtual
int_type // true if projection is unique and orthogonal
closestPoint_ISO(
real_type qx,
real_type qy,
real_type offs,
real_type & x,
real_type & y,
real_type & s,
real_type & t,
real_type & dst
) const UTILS_PURE_VIRTUAL;
/*!
* \param qx x-coordinate of the point
* \param qy y-coordinate of the point
* \param offs offset of the curve
* \param x x-coordinate of the projected point on the curve
* \param y y-coordinate of the projected point on the curve
* \param s parameter on the curve of the projection
* \param t curvilinear coordinate of the point x,y (if orthogonal projection)
* \param dst distance point projected point
* \return 1 = point is projected orthogonal
* 0 = more than one projection (first returned)
* -1 = minimum point is not othogonal projection to curve
*/
int_type
closestPoint_SAE(
real_type qx,
real_type qy,
real_type offs,
real_type & x,
real_type & y,
real_type & s,
real_type & t,
real_type & dst
) const {
int_type res = this->closestPoint_ISO( qx, qy, -offs, x, y, s, t, dst );
t = -t;
return res;
}
#ifdef G2LIB_COMPATIBILITY_MODE
/*!
* \param qx x-coordinate of the point
* \param qy y-coordinate of the point
* \param offs offset of the curve
* \param x x-coordinate of the projected point on the curve
* \param y y-coordinate of the projected point on the curve
* \param s parameter on the curve of the projection
* \param t curvilinear coordinate of the point x,y (if orthogonal projection)
* \param dst distance point projected point
* \return 1 = point is projected orthogonal
* 0 = more than one projection (first returned)
* -1 = minimum point is not othogonal projection to curve
*/
int_type
closestPoint(
real_type qx,
real_type qy,
real_type offs,
real_type & x,
real_type & y,
real_type & s,
real_type & t,
real_type & dst
) const {
if ( G2lib::use_ISO )
return this->closestPoint_ISO( qx, qy, offs, x, y, s, t, dst );
else
return this->closestPoint_SAE( qx, qy, offs, x, y, s, t, dst );
}
#endif
virtual
real_type
distance( real_type qx, real_type qy ) const {
real_type x, y, s, t, dst;
closestPoint_ISO( qx, qy, x, y, s, t, dst );
return dst;
}
real_type
distance_ISO(
real_type qx,
real_type qy,
real_type offs
) const {
real_type x, y, s, t, dst;
this->closestPoint_ISO( qx, qy, offs, x, y, s, t, dst );
return dst;
}
real_type
distance_SAE(
real_type qx,
real_type qy,
real_type offs
) const {
real_type x, y, s, t, dst;
this->closestPoint_SAE( qx, qy, offs, x, y, s, t, dst );
return dst;
}
#ifdef G2LIB_COMPATIBILITY_MODE
virtual
real_type
distance(
real_type qx,
real_type qy,
real_type offs
) const {
real_type x, y, s, t, dst;
this->closestPoint( qx, qy, offs, x, y, s, t, dst );
return dst;
}
#endif
/*\
| __ _ _ ____ _____
| / _(_)_ __ __| / ___|_ _|
| | |_| | '_ \ / _` \___ \ | |
| | _| | | | | (_| |___) || |
| |_| |_|_| |_|\__,_|____/ |_|
\*/
bool
findST_ISO(
real_type x,
real_type y,
real_type & s,
real_type & t
) const {
real_type X, Y, dst;
int_type icode = this->closestPoint_ISO( x, y, X, Y, s, t, dst );
return icode >= 0;
}
bool
findST_SAE(
real_type x,
real_type y,
real_type & s,
real_type & t
) const {
real_type X, Y, dst;
int_type icode = this->closestPoint_SAE( x, y, X, Y, s, t, dst );
return icode >= 0;
}
#ifdef G2LIB_COMPATIBILITY_MODE
bool
findST(
real_type x,
real_type y,
real_type & s,
real_type & t
) const {
real_type X, Y, dst;
int_type icode = this->closestPoint( x, y, X, Y, s, t, dst );
return icode >= 0;
}
#endif
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
virtual
void
info( ostream_type & stream ) const UTILS_PURE_VIRTUAL;
};
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
/*\
| __ ____ __ _ _____ _ _
| \ \/ /\ \ / / | |_ ___ |_ _| |__ ___| |_ __ _
| \ / \ V / | __/ _ \ | | | '_ \ / _ \ __/ _` |
| / \ | | | || (_) | | | | | | | __/ || (_| |
| /_/\_\ |_| \__\___/ |_| |_| |_|\___|\__\__,_|
\*/
void
xy_to_guess_angle(
int_type npts,
real_type const x[],
real_type const y[],
real_type theta[],
real_type theta_min[],
real_type theta_max[],
real_type omega[],
real_type len[]
);
}
///
/// eof: G2lib.hh
///
| [
"[email protected]"
] | |
808f6118ff1981b930a490abff276e123a3ca1ec | 877f0ffaba231368fedbe84514d84fbbcf2c01f7 | /codeforces/141-A/141-A-30202301.cpp | 7a3d910480366174ac6714a822f926f5dfc02d25 | [] | no_license | AyushAgnihotri/Practise | cb113191b7d958c95c92a296dcb73e64fdd22ef9 | 7822e20233e683004965a6287285097d85734aa8 | refs/heads/master | 2021-03-27T08:45:32.755018 | 2018-03-08T14:43:47 | 2018-03-08T14:43:47 | 119,174,379 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 233 | cpp | #include <bits/stdc++.h>
using namespace std;
int main()
{
string s,s1,s2;
cin>>s1;
cin>>s2;
cin>>s;
s1=s1+s2;
sort(s.begin(),s.end());
sort(s1.begin(),s1.end());
if(s==s1)
printf("YES");
else
printf("NO");
return 0;
} | [
"[email protected]"
] | |
cf8bd14e524c68dc4673b186af20c63cf0fce8f8 | 3795d26105e3e899f59660115f5ff1e089516130 | /Chapter13/exercises/13.12/BasePlusCommissionEmployee.cpp | 3a3653ce339691fa5d6aa0faa8c8807314fda692 | [] | no_license | PythonYXY/Cpp-How-To-Program-9E | 1ecfce083e2c5bcf16d3780d7067d60572bf0d9f | d13359a839179e78715c89b0d8e27a28942c333f | refs/heads/master | 2021-05-03T07:26:39.202381 | 2018-02-07T11:59:34 | 2018-02-07T11:59:34 | 120,609,419 | 0 | 0 | null | 2018-02-07T11:58:57 | 2018-02-07T11:58:57 | null | UTF-8 | C++ | false | false | 1,680 | cpp | /*
* =====================================================================================
*
* Filename: BasePlusCommissionEmployee.cpp
*
* Description: Fig. 13.16: BasePlusCommissionEmployee member-function
* definition.
*
* Version: 1.0
* Created: 12/08/16 20:08:28
* Revision: none
* Compiler: g++
*
* Author: Siidney Watson - [email protected]
* Organization: LolaDog Studio
*
* =====================================================================================
*/
#include "BasePlusCommissionEmployee.h"
#include <iostream>
// constructor
BasePlusCommissionEmployee::BasePlusCommissionEmployee(
const std::string& first, const std::string& last, const std::string& ssn,
Date dob, double sales, double rate, double salary)
: CommissionEmployee(first, last, ssn, dob, sales, rate) {
setBaseSalary(salary);
}
// set base salary
void BasePlusCommissionEmployee::setBaseSalary(double salary) {
if (salary >= 0.0f)
baseSalary = salary;
else
throw std::invalid_argument("Salary must be >= 0.0f");
}
// get base salary
double BasePlusCommissionEmployee::getBaseSalary() const { return baseSalary; }
// calculate earnings;
// override virtual function earnings in CommissionEmployee
double BasePlusCommissionEmployee::earnings() const {
return getBaseSalary() + CommissionEmployee::earnings();
}
// print BasePlusCommissionEmployee's information
void BasePlusCommissionEmployee::print() const {
std::cout << "base-salaried ";
CommissionEmployee::print(); // code reuse
std::cout << ": base salary : " << getBaseSalary();
}
| [
"[email protected]"
] | |
4eaab2765a8dbb70ed57b1d676bf56df702b9965 | 53f4fff66f7765d38ba4838b5e58c2e9423ec6a1 | /SlimePreproduction/ControllerTest/XController.h | 2ee48aa6dfe8fbd003446a87dec0a18cf8ad59e7 | [] | no_license | Therrato/Slime | 6b15e4b635fccefb127ef42e1917465b00be8834 | 23d1e629bf32c8f92ad2e0859158a9672d5ed941 | refs/heads/master | 2020-05-19T08:42:43.407076 | 2013-11-26T15:34:40 | 2013-11-26T15:34:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,911 | h | #ifndef _XCONTROLLER_H_
#define _XCONTROLLER_H_
//#include <windows.h>
class XController_InputState;
class XController_VibrationState;
class XController
{
public:
class StickState
{
public:
float dirX;
float dirY;
float magnitude;
StickState(float dirX, float dirY, float magnitude);
};
static int* getConnectedPlayers(int* numPlayers);
typedef unsigned short ButtonEnum;
static const ButtonEnum DPAD_UP = 0x0001;
static const ButtonEnum DPAD_DOWN = 0x0002;
static const ButtonEnum DPAD_LEFT = 0x0004;
static const ButtonEnum DPAD_RIGHT = 0x0008;
static const ButtonEnum START = 0x0010;
static const ButtonEnum BACK = 0x0020;
static const ButtonEnum LEFT_THUMB = 0x0040;
static const ButtonEnum RIGHT_THUMB = 0x0080;
static const ButtonEnum LEFT_SHOULDER = 0x0100;
static const ButtonEnum RIGHT_SHOULDER = 0x0200;
static const ButtonEnum A = 0x1000;
static const ButtonEnum B = 0x2000;
static const ButtonEnum X = 0x4000;
static const ButtonEnum Y = 0x8000;
XController(int playerIndex);
~XController();
void update(); // Call this each frame
bool isPressed(ButtonEnum button);
StickState getLeftStickState();
StickState getRightStickState();
StickState getDPadStickState();
StickState getFaceStickState();
float getLeftTriggerState();
float getRightTriggerState();
bool isConnected();
int getControllerIndex() const;
void vibrate(float leftVal, float rightVal);
void vibrateOff();
void vibrateLeft(float leftVal);
void vibrateRight(float rightVal);
private:
XController_InputState* lastState;
XController_InputState* currentState;
XController_VibrationState* Vibration;
int controllerNum;
bool connected;
int leftStickDeadZone;
int rightStickDeadZone;
int triggerThreshold;
};
#endif
| [
"[email protected]"
] | |
95e162f9c5a514a31762553deb93519d6aa11dbf | ab26019eb3c85bd192d63c9ae5e542c096aeb01f | /Classes/block.cpp | f250156ed80a508f9ef35adf266d0747168b1d78 | [] | no_license | rangerlcy/GeometryEscape | 8e913715205ef17e7b7cb45d3c7952b1b913bbe7 | f41a4dc8fcf879e32290486d5903e1f4a698cc15 | refs/heads/master | 2021-01-20T21:09:03.849599 | 2016-06-04T07:53:24 | 2016-06-04T07:53:24 | 60,399,358 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 11,046 | cpp | #include "block.h"
USING_NS_CC;
//class block...block1...block2...block3...
bool block::init(){
if (!Node::init()){
return false;
}
return true;
}
//block类里的node进行重新设置成初始状态,但不向右移动
void block::restart(){
Size size = Director::getInstance()->getVisibleSize();
//action = action->clone();
//moveRightAndDestroy = moveRightAndDestroy->clone();
node->stopAllActions();
node->setPosition(init_pos);
}
void block::come(){
Size size = Director::getInstance()->getVisibleSize();
node->runAction(act);
node->runAction(moveRightAndDestroy);
}
void block::accelerateMoveRight(){
Size size = Director::getInstance()->getVisibleSize();
moveRightAndDestroy->release(); //旧的动作release
auto moveRight = MoveBy::create(SceneMoveSecond, Vec2(-size.width*1.5, 0));
moveRightAndDestroy = Sequence::create(moveRight, CallFunc::create(CC_CALLBACK_0(block1::restart, this)), nullptr);
moveRightAndDestroy->setTag(BLOCK_MOVE_RIGHT_ACTION);
moveRightAndDestroy->retain();
}
bool block1::init(){
if (!block::init()){
return false;
}
Size size = Director::getInstance()->getVisibleSize();
Size box_size(size.height / 3.5, size.height / 3.5);
body = PhysicsBody::createBox(box_size);
body->setCategoryBitmask(0x0003);
body->setCollisionBitmask(0x0004);
body->setContactTestBitmask(0x0001);
body->setGravityEnable(false);
node = Node::create();
node->setPhysicsBody(body);
init_pos = Vec2(size.width*1.2, 0);
node->setPosition(init_pos);
auto step1 = MoveBy::create(0.5f, Vec2(0, size.height));
auto gap1 = MoveBy::create(1.0f, Vec2(0, 0));
auto step2 = MoveBy::create(0.5f, Vec2(0, -size.height));
auto gap2 = MoveBy::create(1.0f, Vec2(0, 0));
auto seq = Sequence::create(step1, gap1, step2, gap2, nullptr);
auto re = RepeatForever::create(seq);
act = re;
act->retain();
auto moveRight = MoveBy::create(SceneMoveSecond, Vec2(-size.width*1.5, 0));
moveRightAndDestroy = Sequence::create(moveRight, CallFunc::create(CC_CALLBACK_0(block1::restart, this)), nullptr);
moveRightAndDestroy->setTag(BLOCK_MOVE_RIGHT_ACTION);
moveRightAndDestroy->retain();
return true;
}
bool block2::init(){
if (!block::init()){
return false;
}
Size size = Director::getInstance()->getVisibleSize();
Size box_size(size.width / 32, size.height / 2);
body = PhysicsBody::createBox(box_size);
body->setCategoryBitmask(0x0003);
body->setCollisionBitmask(0x0004);
body->setContactTestBitmask(0x0001);
body->setGravityEnable(false);
node = Node::create();
node->setPhysicsBody(body);
init_pos = Vec2(size.width*1.2, 0);
node->setPosition(init_pos);
auto step1 = MoveBy::create(1.5f, Vec2(0, size.height));
auto step2 = MoveBy::create(1.5f, Vec2(0, -size.height));
auto seq = Sequence::create(step1, step2, nullptr);
act = RepeatForever::create(seq);
act->retain();
auto moveRight = MoveBy::create(SceneMoveSecond, Vec2(-size.width*1.5, 0));
moveRightAndDestroy = Sequence::create(moveRight, CallFunc::create(CC_CALLBACK_0(block2::restart, this)), nullptr);
moveRightAndDestroy->setTag(BLOCK_MOVE_RIGHT_ACTION);
moveRightAndDestroy->retain();
return true;
}
bool block3::init(){
if (!block::init()){
return false;
}
Size size = Director::getInstance()->getVisibleSize();
Size box_size(size.height / 4, size.height / 50);
body = PhysicsBody::createBox(box_size);
body->setCategoryBitmask(0x0003);
body->setCollisionBitmask(0x0004);
body->setContactTestBitmask(0x0001);
body->setGravityEnable(false);
node = Node::create();
node->setPhysicsBody(body);
init_pos = Vec2(size.width*1.2, size.height / 2);
node->setPosition(init_pos);
node->setAnchorPoint(node->getContentSize() / 2);
auto ro = RotateBy::create(5.0, 360);
auto re = RepeatForever::create(ro);
act = re;
act->retain();
auto moveRight = MoveBy::create(SceneMoveSecond, Vec2(-size.width*1.5, 0));
moveRightAndDestroy = Sequence::create(moveRight, CallFunc::create(CC_CALLBACK_0(block3::restart, this)), nullptr);
moveRightAndDestroy->setTag(BLOCK_MOVE_RIGHT_ACTION);
moveRightAndDestroy->retain();
return true;
}
//平行两横杆
bool double_block1_1::init(){
block::init();
Size size = Director::getInstance()->getVisibleSize();
Size box_size(size.height / 3, size.height / 30);
body = PhysicsBody::createBox(box_size);
body->setCategoryBitmask(0x0003);
body->setCollisionBitmask(0x0004);
body->setContactTestBitmask(0x0001);
body->setGravityEnable(false);
node = Node::create();
node->setPhysicsBody(body);
init_pos = Vec2(size.width*1.2, size.height * 3 / 5);
node->setPosition(init_pos);
auto step1 = MoveBy::create(1.0f, Vec2(0, 0)); //固定障碍,没有动作,为了保证接口一致,原地踏步的动作
act = RepeatForever::create(step1);
act->retain();
auto moveRight = MoveBy::create(SceneMoveSecond, Vec2(-size.width*1.5, 0));
moveRightAndDestroy = Sequence::create(moveRight, CallFunc::create(CC_CALLBACK_0(double_block1_1::restart, this)), nullptr);
moveRightAndDestroy->setTag(BLOCK_MOVE_RIGHT_ACTION);
moveRightAndDestroy->retain();
return true;
}
bool double_block1_2::init(){
block::init();
Size size = Director::getInstance()->getVisibleSize();
Size box_size(size.height / 3, size.height / 30);
body = PhysicsBody::createBox(box_size);
body->setCategoryBitmask(0x0003);
body->setCollisionBitmask(0x0004);
body->setContactTestBitmask(0x0001);
body->setGravityEnable(false);
node = Node::create();
node->setPhysicsBody(body);
init_pos = Vec2(size.width*1.4, size.height * 2 / 5);
node->setPosition(init_pos);
auto step1 = MoveBy::create(1.0f, Vec2(0, 0)); //固定障碍,没有动作,为了保证接口一致,原地踏步的动作
act = RepeatForever::create(step1);
act->retain();
auto moveRight = MoveBy::create(SceneMoveSecond, Vec2(-size.width*1.5, 0));
moveRightAndDestroy = Sequence::create(moveRight, CallFunc::create(CC_CALLBACK_0(double_block1_2::restart, this)), nullptr);
moveRightAndDestroy->setTag(BLOCK_MOVE_RIGHT_ACTION);
moveRightAndDestroy->retain();
return true;
}
//平行两竖杆
bool double_block2_1::init(){
block::init();
Size size = Director::getInstance()->getVisibleSize();
Size box_size(size.height / 30, size.height / 3);
body = PhysicsBody::createBox(box_size);
body->setCategoryBitmask(0x0003);
body->setCollisionBitmask(0x0004);
body->setContactTestBitmask(0x0001);
body->setGravityEnable(false);
node = Node::create();
node->setPhysicsBody(body);
init_pos = Vec2(size.width*1.2, size.height * 2 / 5);
node->setPosition(init_pos);
auto step1 = MoveBy::create(1.0f, Vec2(0, 0)); //固定障碍,没有动作,为了保证接口一致,原地踏步的动作
act = RepeatForever::create(step1);
act->retain();
auto moveRight = MoveBy::create(SceneMoveSecond, Vec2(-size.width*1.5, 0));
moveRightAndDestroy = Sequence::create(moveRight, CallFunc::create(CC_CALLBACK_0(double_block2_1::restart, this)), nullptr);
moveRightAndDestroy->setTag(BLOCK_MOVE_RIGHT_ACTION);
moveRightAndDestroy->retain();
return true;
}
bool double_block2_2::init(){
block::init();
Size size = Director::getInstance()->getVisibleSize();
Size box_size(size.height / 30, size.height / 3);
body = PhysicsBody::createBox(box_size);
body->setCategoryBitmask(0x0003);
body->setCollisionBitmask(0x0004);
body->setContactTestBitmask(0x0001);
body->setGravityEnable(false);
node = Node::create();
node->setPhysicsBody(body);
init_pos = Vec2(size.width*1.5, size.height * 3 / 5);
node->setPosition(init_pos);
auto step1 = MoveBy::create(1.0f, Vec2(0, 0)); //固定障碍,没有动作,为了保证接口一致,原地踏步的动作
act = RepeatForever::create(step1);
act->retain();
auto moveRight = MoveBy::create(SceneMoveSecond, Vec2(-size.width*1.5, 0));
moveRightAndDestroy = Sequence::create(moveRight, CallFunc::create(CC_CALLBACK_0(double_block2_2::restart, this)), nullptr);
moveRightAndDestroy->setTag(BLOCK_MOVE_RIGHT_ACTION);
moveRightAndDestroy->retain();
return true;
}
//三个旋转杆
bool triple_block1_1::init(){
block::init();
Size size = Director::getInstance()->getVisibleSize();
Size box_size(size.height / 50, size.height / 3);
body = PhysicsBody::createBox(box_size);
body->setCategoryBitmask(0x0003);
body->setCollisionBitmask(0x0004);
body->setContactTestBitmask(0x0001);
body->setGravityEnable(false);
node = Node::create();
node->setPhysicsBody(body);
init_pos = Vec2(size.width*1.5, size.height * 3.7 / 5);
node->setPosition(init_pos);
auto ro = RotateBy::create(5.0, 360);
auto re = RepeatForever::create(ro);
act = re;
act->retain();
auto moveRight = MoveBy::create(SceneMoveSecond, Vec2(-size.width*2.0, 0));
moveRightAndDestroy = Sequence::create(moveRight, CallFunc::create(CC_CALLBACK_0(triple_block1_1::restart, this)), nullptr);
moveRightAndDestroy->setTag(BLOCK_MOVE_RIGHT_ACTION);
moveRightAndDestroy->retain();
return true;
}
bool triple_block1_2::init(){
block::init();
Size size = Director::getInstance()->getVisibleSize();
Size box_size(size.height / 50, size.height / 3); //障碍物尺寸
body = PhysicsBody::createBox(box_size);
body->setCategoryBitmask(0x0003);
body->setCollisionBitmask(0x0004);
body->setContactTestBitmask(0x0001);
body->setGravityEnable(false);
node = Node::create();
node->setPhysicsBody(body);
init_pos = Vec2(size.width*1.3, size.height * 1.3 / 5); //障碍物位置
node->setPosition(init_pos);
auto ro = RotateBy::create(5.0, 360);
auto re = RepeatForever::create(ro);
act = re;
act->retain();
auto moveRight = MoveBy::create(SceneMoveSecond, Vec2(-size.width*2.0, 0));
moveRightAndDestroy = Sequence::create(moveRight, CallFunc::create(CC_CALLBACK_0(triple_block1_2::restart, this)), nullptr);
moveRightAndDestroy->setTag(BLOCK_MOVE_RIGHT_ACTION);
moveRightAndDestroy->retain();
return true;
}
bool triple_block1_3::init(){
block::init();
Size size = Director::getInstance()->getVisibleSize();
Size box_size(size.height / 50, size.height / 3);
body = PhysicsBody::createBox(box_size);
body->setCategoryBitmask(0x0003);
body->setCollisionBitmask(0x0004);
body->setContactTestBitmask(0x0001);
body->setGravityEnable(false);
node = Node::create();
node->setPhysicsBody(body);
init_pos = Vec2(size.width*1.7, size.height * 1.3 / 5);
node->setPosition(init_pos);
auto ro = RotateBy::create(5.0, 360);
auto re = RepeatForever::create(ro);
act = re;
act->retain();
auto moveRight = MoveBy::create(SceneMoveSecond, Vec2(-size.width*2.0, 0));
moveRightAndDestroy = Sequence::create(moveRight, CallFunc::create(CC_CALLBACK_0(triple_block1_3::restart, this)), nullptr);
moveRightAndDestroy->setTag(BLOCK_MOVE_RIGHT_ACTION);
moveRightAndDestroy->retain();
return true;
} | [
"[email protected]"
] | |
d52479119e25e3b1853377caa662791164d0c076 | 367fba5df552aef1ee9aa6add6bb512b781bc6d4 | /3rdParty/oculus/LibOVR/Src/Displays/OVR_Win32_Display.cpp | 6ddf030bbefabe2d68b3273fd66078c5e27431c6 | [
"LicenseRef-scancode-free-unknown",
"MIT",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | hamoriakos/ApertusVR | 2d3e5736b26404198b222d24388bb3c1c162ee69 | 14303ab54963e52409ed376cdafae5c43004074b | refs/heads/master | 2021-09-16T00:13:48.980732 | 2017-06-28T18:23:14 | 2017-06-28T18:23:14 | 105,749,913 | 0 | 1 | MIT | 2018-06-13T13:54:38 | 2017-10-04T09:11:13 | C++ | UTF-8 | C++ | false | false | 37,525 | cpp | /************************************************************************************
Filename : OVR_Win32_Display.cpp
Content : Win32 Display implementation
Created : May 6, 2014
Authors : Dean Beeler
Copyright : Copyright 2014 Oculus VR, LLC All Rights reserved.
Licensed under the Oculus VR Rift SDK License Version 3.2 (the "License");
you may not use the Oculus VR Rift SDK except in compliance with the License,
which is provided at the time of installation or download, or which
otherwise accompanies this software in either electronic or hard copy form.
You may obtain a copy of the License at
http://www.oculusvr.com/licenses/LICENSE-3.2
Unless required by applicable law or agreed to in writing, the Oculus VR SDK
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*************************************************************************************/
#include <Windows.h>
#include "OVR_Win32_Display.h"
#include "OVR_Win32_Dxgi_Display.h"
#include <stdio.h>
#include <tchar.h>
#include <string.h>
#include <stdlib.h>
#include <winioctl.h>
#include <SetupAPI.h>
#include <Mmsystem.h>
#include <conio.h>
#ifdef OVR_COMPAT_EDID_VIA_WMI
# pragma comment(lib, "wbemuuid.lib")
#include <wbemidl.h>
#else // OVR_COMPAT_EDID_VIA_WMI
#include <setupapi.h>
#include <initguid.h>
#endif // OVR_COMPAT_EDID_VIA_WMI
// WIN32_LEAN_AND_MEAN included in OVR_Atomic.h may break 'byte' declaration.
#ifdef WIN32_LEAN_AND_MEAN
typedef unsigned char byte;
#endif
#include "../Kernel/OVR_String.h"
#include "../Kernel/OVR_Log.h"
typedef struct
{
HANDLE hDevice;
UINT ExpectedWidth;
UINT ExpectedHeight;
HWND hWindow;
bool CompatibilityMode;
bool HideDK1Mode;
} ContextStruct;
static ContextStruct GlobalDisplayContext = {0};
//-------------------------------------------------------------------------------------
// ***** Display enumeration Helpers
// THere are two ways to enumerate display: through our driver (DeviceIoControl)
// and through Win32 EnumDisplayMonitors (compatibility mode).
namespace OVR {
ULONG getRiftCount( HANDLE hDevice )
{
ULONG riftCount = 0;
DWORD bytesReturned = 0;
BOOL result = DeviceIoControl( hDevice, IOCTL_RIFTMGR_GET_RIFT_COUNT, NULL, 0,
&riftCount, sizeof( ULONG ), &bytesReturned, NULL );
if( result )
return riftCount;
else
return 0;
}
ULONG getRift( HANDLE hDevice, int index )
{
ULONG riftCount = getRiftCount( hDevice );
DWORD bytesReturned = 0;
BOOL result;
if( riftCount >= (ULONG)index )
{
RIFT_STATUS riftStatus[16] = {0};
result = DeviceIoControl( hDevice, IOCTL_RIFTMGR_GET_RIFT_ARRAY, riftStatus,
riftCount * sizeof( RIFT_STATUS ), &riftCount,
sizeof( ULONG ), &bytesReturned, NULL );
if( result )
{
PRIFT_STATUS tmpRift;
unsigned int i;
for( i = 0, tmpRift = riftStatus; i < riftCount; ++i, ++tmpRift )
{
if( i == (unsigned int)index )
return tmpRift->childUid;
}
}
else
{
printf("Failed to get array of rift devices\n");
}
}
return 0;
}
#define EDID_LENGTH 0x80
#define EDID_HEADER 0x00
#define EDID_HEADER_END 0x07
#define ID_MANUFACTURER_NAME 0x08
#define ID_MANUFACTURER_NAME_END 0x09
#define EDID_STRUCT_VERSION 0x12
#define EDID_STRUCT_REVISION 0x13
#define ESTABLISHED_TIMING_1 0x23
#define ESTABLISHED_TIMING_2 0x24
#define MANUFACTURERS_TIMINGS 0x25
#define DETAILED_TIMING_DESCRIPTIONS_START 0x36
#define DETAILED_TIMING_DESCRIPTION_SIZE 18
#define NO_DETAILED_TIMING_DESCRIPTIONS 4
#define DETAILED_TIMING_DESCRIPTION_1 0x36
#define DETAILED_TIMING_DESCRIPTION_2 0x48
#define DETAILED_TIMING_DESCRIPTION_3 0x5a
#define DETAILED_TIMING_DESCRIPTION_4 0x6c
#define MONITOR_NAME 0xfc
#define MONITOR_LIMITS 0xfd
#define MONITOR_SERIAL 0xff
#define UNKNOWN_DESCRIPTOR -1
#define DETAILED_TIMING_BLOCK -2
#define DESCRIPTOR_DATA 5
const byte edid_v1_header[] = { 0x00, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0x00 };
const byte edid_v1_descriptor_flag[] = { 0x00, 0x00 };
static int blockType( byte* block )
{
if ( !strncmp( (const char*)edid_v1_descriptor_flag, (const char*)block, 2 ) )
{
// descriptor
if ( block[ 2 ] != 0 )
return UNKNOWN_DESCRIPTOR;
return block[ 3 ];
}
else
{
return DETAILED_TIMING_BLOCK;
}
}
static char* getMonitorName( byte const* block )
{
static char name[ 13 ];
unsigned i;
byte const* ptr = block + DESCRIPTOR_DATA;
for( i = 0; i < 13; i++, ptr++ )
{
if ( *ptr == 0xa )
{
name[ i ] = 0;
return name;
}
name[ i ] = *ptr;
}
return name;
}
static bool parseEdid( byte* edid, OVR::Win32::DisplayEDID& edidResult )
{
unsigned i;
byte* block;
char* monitor_name = "Unknown";
byte checksum = 0;
for( i = 0; i < EDID_LENGTH; i++ )
checksum += edid[ i ];
// Bad checksum, fail EDID
if ( checksum != 0 )
return false;
if ( strncmp( (const char*)edid+EDID_HEADER, (const char*)edid_v1_header, EDID_HEADER_END+1 ) )
{
// First bytes don't match EDID version 1 header
return false;
}
//printf( "\n# EDID version %d revision %d\n", (int)edid[EDID_STRUCT_VERSION],(int)edid[EDID_STRUCT_REVISION] );
// Monitor name and timings
char serialNumber[14];
memset( serialNumber, 0, 14 );
block = edid + DETAILED_TIMING_DESCRIPTIONS_START;
for( i = 0; i < NO_DETAILED_TIMING_DESCRIPTIONS; i++,
block += DETAILED_TIMING_DESCRIPTION_SIZE )
{
if ( blockType( block ) == MONITOR_NAME )
{
monitor_name = getMonitorName( block );
}
if( blockType( block ) == MONITOR_SERIAL )
{
memcpy( serialNumber, block + 5, 13 );
break;
}
}
BYTE vendorString[4] = {0};
vendorString[0] = (edid[8] >> 2 & 31) + 64;
vendorString[1] = ((edid[8] & 3) << 3) | (edid[9] >> 5) + 64;
vendorString[2] = (edid[9] & 31) + 64;
edidResult.ModelNumber = *(UINT16*)&edid[10];
edidResult.MonitorName = OVR::String(monitor_name);
edidResult.VendorName = OVR::String((const char*)vendorString);
edidResult.SerialNumber = OVR::String(serialNumber);
#if 0
printf( "\tIdentifier \"%s\"\n", monitor_name );
printf( "\tVendorName \"%s\"\n", vendorString );
printf( "\tModelName \"%s\"\n", monitor_name );
printf( "\tModelNumber %d\n", modelNumber );
printf( "\tSerialNumber \"%x\"\n", *serialPointer );
#endif
// FIXME: Get timings as well, though they aren't very useful here
// except for the vertical refresh rate, presumably
return true;
}
static bool getEdid(HANDLE hDevice, ULONG uid, OVR::Win32::DisplayEDID& edidResult)
{
ULONG riftCount = 0;
DWORD bytesReturned = 0;
RIFT_STATUS riftStatus[16] = {0};
BOOL result = DeviceIoControl( hDevice, IOCTL_RIFTMGR_GET_RIFT_COUNT, NULL, 0,
&riftCount, sizeof( ULONG ), &bytesReturned, NULL );
if (!result)
{
return false;
}
result = DeviceIoControl( hDevice, IOCTL_RIFTMGR_GET_RIFT_ARRAY, &riftStatus,
riftCount * sizeof( RIFT_STATUS ), &riftCount, sizeof(ULONG),
&bytesReturned, NULL );
if (!result)
{
return false;
}
for (ULONG i = 0; i < riftCount; ++i)
{
ULONG riftUid = riftStatus[i].childUid;
if (riftUid == uid)
{
char edidBuffer[512];
result = DeviceIoControl(hDevice, IOCTL_RIFTMGR_GETEDID, &riftUid, sizeof(ULONG),
edidBuffer, 512, &bytesReturned, NULL);
if (result)
{
if (parseEdid((byte*)edidBuffer, edidResult))
{
return true;
}
else
{
OVR_DEBUG_LOG(("[Win32Display] WARNING: The driver was not able to return EDID for a display"));
}
}
break;
}
}
return false;
}
// Used to capture all the active monitor handles
struct MonitorSet
{
enum { MaxMonitors = 8 };
HMONITOR Monitors[MaxMonitors];
int MonitorCount;
int PrimaryCount;
};
static BOOL CALLBACK MonitorEnumProc(HMONITOR hMonitor, HDC, LPRECT, LPARAM dwData)
{
MonitorSet* monitorSet = (MonitorSet*)dwData;
if (monitorSet->MonitorCount >= MonitorSet::MaxMonitors)
return FALSE;
monitorSet->Monitors[monitorSet->MonitorCount] = hMonitor;
monitorSet->MonitorCount++;
return TRUE;
};
#ifdef OVR_COMPAT_EDID_VIA_WMI
static bool getCompatDisplayEDID( WCHAR* displayName, String& serialNumberStr, String& userFriendlyNameStr )
{
IWbemLocator *pLoc = NULL;
IWbemServices *pSvc = NULL;
HRESULT hres;
static bool initialized = false;
static bool selfInitialized = true;
if (!initialized)
{
hres = CoInitializeEx(0, COINIT_MULTITHREADED);
if (FAILED(hres))
{
LogError("{ERR-082} [Display] WARNING: Failed to initialize COM library. Error code = 0x%x", hres);
OVR_ASSERT(false);
return false;
}
hres = CoInitializeSecurity(
NULL,
-1, // COM authentication
NULL, // Authentication services
NULL, // Reserved
RPC_C_AUTHN_LEVEL_DEFAULT, // Default authentication
RPC_C_IMP_LEVEL_IMPERSONATE, // Default Impersonation
NULL, // Authentication info
EOAC_NONE, // Additional capabilities
NULL // Reserved
);
if (FAILED(hres))
{
LogError("{ERR-083} [Display] WARNING: Failed to initialize security. Error code = 0x%x", hres);
OVR_ASSERT(false);
selfInitialized = false;
}
initialized = true;
}
hres = CoCreateInstance(
CLSID_WbemLocator,
0,
CLSCTX_INPROC_SERVER,
IID_IWbemLocator, (LPVOID *)&pLoc);
if (FAILED(hres))
{
LogError("{ERR-084} [Display] WARNING: Failed to create IWbemLocator object.Err code = 0x%x", hres);
OVR_ASSERT(false);
return false;
}
BSTR AbackB = SysAllocString(L"root\\WMI");
// Connect to the root\cimv2 namespace with
// the current user and obtain pointer pSvc
// to make IWbemServices calls.
hres = pLoc->ConnectServer(
AbackB, // Object path of WMI namespace
NULL, // User name. NULL = current user
NULL, // User password. NULL = current
0, // Locale. NULL indicates current
NULL, // Security flags.
0, // Authority (e.g. Kerberos)
0, // Context object
&pSvc // pointer to IWbemServices proxy
);
SysFreeString(AbackB);
if (FAILED(hres))
{
LogError("{ERR-085} [Display] WARNING: Could not connect to root\\WMI. Error code = 0x%x", hres);
OVR_ASSERT(false);
pLoc->Release();
return false;
}
hres = CoSetProxyBlanket(
pSvc, // Indicates the proxy to set
RPC_C_AUTHN_WINNT, // RPC_C_AUTHN_xxx
RPC_C_AUTHZ_NONE, // RPC_C_AUTHZ_xxx
NULL, // Server principal name
RPC_C_AUTHN_LEVEL_CALL, // RPC_C_AUTHN_LEVEL_xxx
RPC_C_IMP_LEVEL_IMPERSONATE, // RPC_C_IMP_LEVEL_xxx
NULL, // client identity
EOAC_NONE // proxy capabilities
);
if (FAILED(hres))
{
LogError("{ERR-086} [Display] WARNING: Could not set proxy blanket. Error code = 0x%x", hres);
OVR_ASSERT(false);
pSvc->Release();
pLoc->Release();
return false;
}
BSTR wql = SysAllocString(L"WQL");
BSTR select = SysAllocString(L"SELECT * FROM WmiMonitorID");
IEnumWbemClassObject* pEnumerator = NULL;
hres = pSvc->ExecQuery(
wql,
select,
WBEM_FLAG_FORWARD_ONLY | WBEM_FLAG_RETURN_IMMEDIATELY,
NULL,
&pEnumerator);
SysFreeString(wql);
SysFreeString(select);
if (FAILED(hres))
{
LogError("{ERR-087} [Display] WARNING: Query for operating system name failed. Error code = 0x%x", hres);
OVR_ASSERT(false);
pSvc->Release();
pLoc->Release();
return false;
}
int enumeratedCount = 0;
bool found = false;
IWbemClassObject *pclsObj = 0;
while (pEnumerator)
{
ULONG uReturn = 0;
HRESULT hr = pEnumerator->Next(WBEM_INFINITE, 1, &pclsObj, &uReturn);
if (FAILED(hr) || !uReturn)
{
break;
}
++enumeratedCount;
VARIANT vtProp;
hr = pclsObj->Get(L"InstanceName", 0, &vtProp, 0, 0);
WCHAR* instanceName = vtProp.bstrVal;
WCHAR* nextToken = NULL;
if (SUCCEEDED(hr) &&
wcstok_s(instanceName, L"\\", &nextToken) != NULL)
{
WCHAR* aToken = wcstok_s(NULL, L"\\", &nextToken);
if (aToken != NULL)
{
VariantClear(&vtProp);
if (wcscmp(aToken, displayName) != 0)
{
pclsObj->Release();
continue;
}
// Read serial
hr = pclsObj->Get(L"SerialNumberID", 0, &vtProp, 0, 0);
if (SUCCEEDED(hr))
{
if (vtProp.vt != VT_NULL && vtProp.parray != NULL)
{
static const int MaxSerialBytes = 14;
char serialNumber[MaxSerialBytes] = { 0 };
UINT32* serialArray = (UINT32*)vtProp.parray->pvData;
for (int i = 0; i < MaxSerialBytes; ++i)
{
serialNumber[i] = (BYTE)(serialArray[i] & 0xff);
}
serialNumber[sizeof(serialNumber)-1] = '\0';
serialNumberStr = serialNumber;
}
else
{
LogError("{ERR-088} [Display] WARNING: Wrong data format for SerialNumberID");
}
VariantClear(&vtProp);
}
else
{
LogError("{ERR-089} [Display] WARNING: Failure getting display SerialNumberID: %d", (int)hr);
}
// Read length of name
int userFriendlyNameLen = 0;
hr = pclsObj->Get(L"UserFriendlyNameLength", 0, &vtProp, 0, 0);
if (SUCCEEDED(hr))
{
if (vtProp.vt != VT_NULL)
{
userFriendlyNameLen = vtProp.iVal;
if (userFriendlyNameLen <= 0)
{
userFriendlyNameLen = 0;
LogError("{ERR-090} [Display] WARNING: UserFriendlyNameLength = 0");
}
}
else
{
LogError("{ERR-091} [Display] WARNING: Wrong data format for UserFriendlyNameLength");
}
VariantClear(&vtProp);
}
else
{
LogError("{ERR-092} [Display] WARNING: Failure getting display UserFriendlyNameLength: %d", (int)hr);
}
// Read name
hr = pclsObj->Get(L"UserFriendlyName", 0, &vtProp, 0, 0);
if (SUCCEEDED(hr) && userFriendlyNameLen > 0)
{
if (vtProp.vt != VT_NULL && vtProp.parray != NULL)
{
static const int MaxNameBytes = 64;
char userFriendlyName[MaxNameBytes] = { 0 };
UINT32* nameArray = (UINT32*)vtProp.parray->pvData;
for (int i = 0; i < MaxNameBytes && i < userFriendlyNameLen; ++i)
{
userFriendlyName[i] = (BYTE)(nameArray[i] & 0xff);
}
userFriendlyName[sizeof(userFriendlyName)-1] = '\0';
userFriendlyNameStr = userFriendlyName;
}
else
{
// See: https://developer.oculusvr.com/forums/viewtopic.php?f=34&t=10961
// This can happen if someone has an EDID override in the registry.
LogError("{ERR-093} [Display] WARNING: Wrong data format for UserFriendlyName");
}
VariantClear(&vtProp);
}
else
{
LogError("{ERR-094} [Display] WARNING: Failure getting display UserFriendlyName: %d", (int)hr);
}
}
found = true;
pclsObj->Release();
break;
}
pclsObj->Release();
}
HMODULE hModule = GetModuleHandleA("wbemuuid");
if (hModule)
{
DisableThreadLibraryCalls(hModule);
}
pSvc->Release();
pLoc->Release();
pEnumerator->Release();
if (!found)
{
LogError("{ERR-095} [Display] WARNING: Unable to enumerate the rift via WMI (found %d monitors). This is not normally an issue. Running as a user with Administrator privileges has fixed this problem in the past.", enumeratedCount);
OVR_ASSERT(false);
}
return found;
}
#else // OVR_COMPAT_EDID_VIA_WMI
#define NAME_SIZE 128
DEFINE_GUID(GUID_CLASS_MONITOR,
0x4d36e96e, 0xe325, 0x11ce, 0xbf, 0xc1, 0x08, 0x00, 0x2b, 0xe1,
0x03, 0x18);
static void truncateNonalphanum(char* str, int len)
{
for (int i = 0; i < len; ++i)
{
char ch = str[i];
if ((ch < 'A' || ch > 'Z') &&
(ch < 'a' || ch > 'z') &&
(ch < '0' || ch > '9') &&
ch != ' ')
{
str[i] = '\0';
break;
}
}
}
static bool AccessDeviceRegistry(IN HDEVINFO devInfo, IN PSP_DEVINFO_DATA devInfoData,
const WCHAR* displayName, String& serialNumberStr, String& userFriendlyNameStr)
{
// Match hardware id to display name
WCHAR hardwareId[128];
if (!SetupDiGetDeviceRegistryProperty(
devInfo,
devInfoData,
SPDRP_HARDWAREID,
NULL,
(PBYTE)hardwareId,
sizeof(hardwareId),
NULL))
{
LogError("{ERR-096} [Display] WARNING: SetupDiGetDeviceRegistryProperty for SPDRP_HARDWAREID failed. LastErr=%d", GetLastError());
OVR_ASSERT(false);
return false;
}
hardwareId[127] = 0;
// If the hardware id did not match,
if (!wcsstr(hardwareId, displayName))
{
// Stop here
return false;
}
// Grab hardware info registry key
HKEY hDevRegKey = SetupDiOpenDevRegKey(
devInfo,
devInfoData,
DICS_FLAG_GLOBAL,
0,
DIREG_DEV,
KEY_READ); // Only read permissions so it can be run without Administrator privs
if (hDevRegKey == INVALID_HANDLE_VALUE)
{
LogError("{ERR-097} [Display] WARNING: SetupDiOpenDevRegKey failed. LastErr=%d", GetLastError());
OVR_ASSERT(false);
return false;
}
// Enumerate keys in registry
bool found = false;
// For each key,
for (int i = 0;; i++)
{
BYTE EDIDdata[1024];
DWORD edidsize = sizeof(EDIDdata);
DWORD dwType, ActualValueNameLength = NAME_SIZE;
CHAR valueName[NAME_SIZE];
// Read the key value data
LSTATUS retValue = RegEnumValueA(
hDevRegKey,
i,
&valueName[0],
&ActualValueNameLength,
NULL,
&dwType,
EDIDdata,
&edidsize);
// If no more items in the enumeration,
if (retValue == ERROR_NO_MORE_ITEMS)
{
// Stop here
break;
}
// If the request failed,
if (FAILED(retValue))
{
LogError("{ERR-098} [Display] WARNING: RegEnumValueA failed to read a key. LastErr=%d", retValue);
OVR_ASSERT(false);
}
else if (0 == strcmp(valueName, "EDID")) // Value is EDID:
{
// Tested working for DK1 and DK2:
char friendlyString[9];
memcpy(friendlyString, EDIDdata + 77, 8);
truncateNonalphanum(friendlyString, 8);
friendlyString[8] = '\0';
char edidString[14];
memcpy(edidString, EDIDdata + 95, 13);
truncateNonalphanum(edidString, 13);
edidString[13] = '\0';
serialNumberStr = edidString;
userFriendlyNameStr = friendlyString;
found = true;
break;
}
}
RegCloseKey(hDevRegKey);
return found;
}
static bool getCompatDisplayEDID(const WCHAR* displayName, String& serialNumberStr, String& userFriendlyNameStr)
{
HDEVINFO devInfo = NULL;
devInfo = SetupDiGetClassDevsEx(
&GUID_CLASS_MONITOR, //class GUID
NULL, //enumerator
NULL, //HWND
DIGCF_PRESENT, // Flags //DIGCF_ALLCLASSES|
NULL, // device info, create a new one.
NULL, // machine name, local machine
NULL);// reserved
if (NULL == devInfo)
{
return false;
}
DWORD lastError = 0;
// For each display,
for (int i = 0;; i++)
{
SP_DEVINFO_DATA devInfoData = {};
devInfoData.cbSize = sizeof(devInfoData);
// Grab device info
if (SetupDiEnumDeviceInfo(devInfo, i, &devInfoData))
{
// Access device info from registry
if (AccessDeviceRegistry(devInfo, &devInfoData, displayName, serialNumberStr, userFriendlyNameStr))
{
return true;
}
}
else
{
lastError = GetLastError();
// If no more items found,
if (lastError != ERROR_NO_MORE_ITEMS)
{
LogError("{ERR-099} [Display] WARNING: SetupDiEnumDeviceInfo failed. LastErr=%d", lastError);
OVR_ASSERT(false);
}
break;
}
}
LogError("{ERR-100} [Display] WARNING: SetupDiEnumDeviceInfo did not return the rift display. LastErr=%d", lastError);
OVR_ASSERT(false);
return false;
}
#endif // OVR_COMPAT_EDID_VIA_WMI
// This is function that's used
bool anyRiftsInExtendedMode()
{
bool result = false;
MonitorSet monitors;
monitors.MonitorCount = 0;
// Get all the monitor handles
EnumDisplayMonitors(NULL, NULL, MonitorEnumProc, (LPARAM)&monitors);
DISPLAY_DEVICE dd, ddm;
UINT i, j;
for( i = 0;
(ZeroMemory(&dd, sizeof(dd)), dd.cb = sizeof(dd),
EnumDisplayDevices(0, i, &dd, 0)) != 0; i++ )
{
for( j = 0;
(ZeroMemory(&ddm, sizeof(ddm)), ddm.cb = sizeof(ddm),
EnumDisplayDevices(dd.DeviceName, j, &ddm, 0)) != 0; j++ )
{
// Our monitor hardware has string "RTD2205" in it
// Nate's device "CVT0003"
if( wcsstr(ddm.DeviceID, L"RTD2205") ||
wcsstr(ddm.DeviceID, L"CVT0003") ||
wcsstr(ddm.DeviceID, L"MST0030") ||
wcsstr(ddm.DeviceID, L"OVR00") ) // Part of Oculus EDID.
{
result = true;
}
}
}
return result;
}
static int discoverExtendedRifts(OVR::Win32::DisplayDesc* descriptorArray, int inputArraySize, bool includeEDID)
{
static bool reportDiscovery = true;
int result = 0;
MonitorSet monitors;
monitors.MonitorCount = 0;
// Get all the monitor handles
EnumDisplayMonitors(NULL, NULL, MonitorEnumProc, (LPARAM)&monitors);
DISPLAY_DEVICE dd, ddm;
UINT i, j;
for (i = 0;
(ZeroMemory(&dd, sizeof(dd)), dd.cb = sizeof(dd),
EnumDisplayDevices(0, i, &dd, 0)) != 0; i++)
{
for (j = 0;
(ZeroMemory(&ddm, sizeof(ddm)), ddm.cb = sizeof(ddm),
EnumDisplayDevices(dd.DeviceName, j, &ddm, 0)) != 0; j++)
{
if( result >= inputArraySize )
return result;
// Our monitor hardware has string "RTD2205" in it
// Nate's device "CVT0003"
if (wcsstr(ddm.DeviceID, L"RTD2205") ||
wcsstr(ddm.DeviceID, L"CVT0003") ||
wcsstr(ddm.DeviceID, L"MST0030") ||
wcsstr(ddm.DeviceID, L"OVR00") ) // Part of Oculus EDID.
{
String deviceId(ddm.DeviceID);
String displayDeviceName(ddm.DeviceName);
Vector2i desktopOffset(0, 0);
Sizei monitorResolution(1280, 800);
// Make a device type guess
HmdTypeEnum deviceTypeGuess = HmdType_Unknown;
if (wcsstr(ddm.DeviceID, L"OVR0003"))
{
// DK2 prototypes and variants
deviceTypeGuess = HmdType_DK2;
// Could also be:
// HmdType_CrystalCoveProto
}
else if (wcsstr(ddm.DeviceID, L"OVR0002"))
{ // HD Prototypes
deviceTypeGuess = HmdType_DKHDProto;
// Could also be:
// HmdType_DKHD2Proto
// HmdType_DKHDProto566Mi
}
else if (wcsstr(ddm.DeviceID, L"OVR0001"))
{ // DK1
deviceTypeGuess = HmdType_DK1;
}
else if (wcsstr(ddm.DeviceID, L"OVR00"))
{ // Future Oculus HMD devices
deviceTypeGuess = HmdType_Unknown;
}
else
{
deviceTypeGuess = HmdType_DKProto;
}
// Find the matching MONITORINFOEX for this device so we can get the
// screen coordinates
MONITORINFOEX info;
for (int m=0; m < monitors.MonitorCount; m++)
{
info.cbSize = sizeof(MONITORINFOEX);
GetMonitorInfo(monitors.Monitors[m], &info);
if (_tcsstr(ddm.DeviceName, info.szDevice) == ddm.DeviceName)
{ // If the device name starts with the monitor name
// then we found the matching DISPLAY_DEVICE and MONITORINFO
// so we can gather the monitor coordinates
desktopOffset = Vector2i(info.rcMonitor.left, info.rcMonitor.top);
break;
}
}
WCHAR* instanceBuffer = (WCHAR*)calloc(wcslen(ddm.DeviceID) + 1, sizeof(WCHAR));
wcscpy_s(instanceBuffer, wcslen(ddm.DeviceID) + 1, ddm.DeviceID);
WCHAR* instanceName = instanceBuffer;
WCHAR* nextToken = NULL;
if (wcstok_s(instanceName, L"\\", &nextToken))
{
WCHAR* aToken = wcstok_s(NULL, L"\\", &nextToken);
if (aToken)
{
String serialNumberStr, userFriendlyNameStr;
if (!includeEDID || getCompatDisplayEDID(aToken, serialNumberStr, userFriendlyNameStr))
{
// Set descriptor
OVR::Win32::DisplayDesc& desc = descriptorArray[result++];
// If not including EDID,
if (!includeEDID)
{
// If DK2 id,
if (wcsstr(ddm.DeviceID, L"OVR0003"))
{
userFriendlyNameStr = "Rift DK2";
}
else // Assume DK1 for now:
{
userFriendlyNameStr = "Rift DK1";
}
}
desc.DeviceTypeGuess = deviceTypeGuess;
desc.DisplayID = displayDeviceName;
desc.ModelName = userFriendlyNameStr;
desc.EdidSerialNumber = serialNumberStr;
desc.LogicalResolutionInPixels = monitorResolution;
desc.DesktopDisplayOffset = desktopOffset;
// Hard-coded defaults in case the device doesn't have the data itself.
// DK2 prototypes (0003) or DK HD Prototypes (0002)
if (wcsstr(ddm.DeviceID, L"OVR0003") || wcsstr(ddm.DeviceID, L"OVR0002"))
{
desc.LogicalResolutionInPixels = Sizei(1920, 1080);
desc.NativeResolutionInPixels = Sizei(1080, 1920);
}
else
{
desc.LogicalResolutionInPixels = monitorResolution;
desc.NativeResolutionInPixels = monitorResolution;
}
}
}
}
if (reportDiscovery)
{
// Only report once per run
OVR_DEBUG_LOG_TEXT(("Display Found %s - %s\n",
deviceId.ToCStr(), displayDeviceName.ToCStr()));
reportDiscovery = false;
}
free(instanceBuffer);
break;
}
}
}
return result;
}
//-------------------------------------------------------------------------------------
// ***** Display
bool Display::InCompatibilityMode( bool displaySearch )
{
bool result = false;
if( displaySearch )
{
OVR::Win32::DisplayDesc displayArray[8];
int extendedRiftCount = discoverExtendedRifts(displayArray, 8, false);
if( extendedRiftCount )
{
result = true;
}
else
{
result = GlobalDisplayContext.CompatibilityMode;
}
}
else
{
result = GlobalDisplayContext.CompatibilityMode;
}
return result;
}
#define OVR_FLAG_COMPATIBILITY_MODE 1
#define OVR_FLAG_HIDE_DK1 2
bool Display::Initialize()
{
HANDLE hDevice = INVALID_HANDLE_VALUE;
if (GlobalDisplayContext.hDevice == 0)
{
hDevice = CreateFile( L"\\\\.\\ovr_video" ,
GENERIC_READ | GENERIC_WRITE, NULL,
NULL, OPEN_EXISTING, NULL, NULL);
}
else
{ // The device has already been created
hDevice = GlobalDisplayContext.hDevice;
}
if (hDevice != NULL && hDevice != INVALID_HANDLE_VALUE)
{
GlobalDisplayContext.hDevice = hDevice;
GlobalDisplayContext.CompatibilityMode = false;
DWORD bytesReturned = 0;
LONG compatiblityResult = OVR_STATUS_SUCCESS;
BOOL result = DeviceIoControl( hDevice, IOCTL_RIFTMGR_GETCOMPATIBILITYMODE, NULL, 0,
&compatiblityResult, sizeof( LONG ), &bytesReturned, NULL );
if (result)
{
GlobalDisplayContext.CompatibilityMode = (compatiblityResult & OVR_FLAG_COMPATIBILITY_MODE) != 0;
GlobalDisplayContext.HideDK1Mode = (compatiblityResult & OVR_FLAG_HIDE_DK1) != 0;
}
else
{
// If calling our driver fails in any way, assume compatibility mode as well
GlobalDisplayContext.CompatibilityMode = true;
}
if (!GlobalDisplayContext.CompatibilityMode)
{
Ptr<DisplaySearchHandle> searchHandle = *Display::GetDisplaySearchHandle();
// If a display is actually connected, bring up the shim layers so we can actually use it
if (GetDisplayCount(searchHandle) > 0)
{
// FIXME: Initializing DX9 with landscape numbers rather than portrait
GlobalDisplayContext.ExpectedWidth = 1080;
GlobalDisplayContext.ExpectedHeight = 1920;
}
else
{
GlobalDisplayContext.CompatibilityMode = true;
}
}
}
else
{
GlobalDisplayContext.CompatibilityMode = true;
}
return true;
}
bool Display::GetDriverMode(bool& driverInstalled, bool& compatMode, bool& hideDK1Mode)
{
if (GlobalDisplayContext.hDevice == NULL)
{
driverInstalled = false;
compatMode = true;
hideDK1Mode = false;
}
else
{
driverInstalled = true;
compatMode = GlobalDisplayContext.CompatibilityMode;
hideDK1Mode = GlobalDisplayContext.HideDK1Mode;
}
return true;
}
bool Display::SetDriverMode(bool compatMode, bool hideDK1Mode)
{
// If device is not initialized,
if (GlobalDisplayContext.hDevice == NULL)
{
OVR_ASSERT(false);
return false;
}
// If no change,
if ((compatMode == GlobalDisplayContext.CompatibilityMode) &&
(hideDK1Mode == GlobalDisplayContext.HideDK1Mode))
{
return true;
}
LONG mode_flags = 0;
if (compatMode)
{
mode_flags |= OVR_FLAG_COMPATIBILITY_MODE;
}
if (hideDK1Mode)
{
mode_flags |= OVR_FLAG_HIDE_DK1;
}
DWORD bytesReturned = 0;
LONG err = 1;
if (!DeviceIoControl(GlobalDisplayContext.hDevice,
IOCTL_RIFTMGR_SETCOMPATIBILITYMODE,
&mode_flags,
sizeof(LONG),
&err,
sizeof(LONG),
&bytesReturned,
NULL) ||
(err != 0 && err != -3))
{
LogError("{ERR-001w} [Win32Display] Unable to set device mode to (compat=%d dk1hide=%d): err=%d",
(int)compatMode, (int)hideDK1Mode, (int)err);
return false;
}
OVR_DEBUG_LOG(("[Win32Display] Set device mode to (compat=%d dk1hide=%d)",
(int)compatMode, (int)hideDK1Mode));
GlobalDisplayContext.HideDK1Mode = hideDK1Mode;
GlobalDisplayContext.CompatibilityMode = compatMode;
return true;
}
DisplaySearchHandle* Display::GetDisplaySearchHandle()
{
return new Win32::Win32DisplaySearchHandle();
}
// FIXME: The handle parameter will be used to unify GetDisplayCount and GetDisplay calls
// The handle will be written to the 64-bit value pointed and will store the enumerated
// display list. This will allow the indexes to be meaningful between obtaining
// the count. With a single handle the count should be stable
int Display::GetDisplayCount(DisplaySearchHandle* handle, bool extended, bool applicationOnly, bool extendedEDIDSerials)
{
static int extendedCount = -1;
static int applicationCount = -1;
Win32::Win32DisplaySearchHandle* localHandle = (Win32::Win32DisplaySearchHandle*)handle;
if( localHandle == NULL )
return 0;
if( extendedCount == -1 || extended )
{
extendedCount = discoverExtendedRifts(localHandle->cachedDescriptorArray, 16, extendedEDIDSerials);
}
localHandle->extended = true;
localHandle->extendedDisplayCount = extendedCount;
int totalCount = extendedCount;
if( applicationCount == -1 || applicationOnly )
{
applicationCount = getRiftCount(GlobalDisplayContext.hDevice);
localHandle->application = true;
}
totalCount += applicationCount;
localHandle->applicationDisplayCount = applicationCount;
localHandle->displayCount = totalCount;
return totalCount;
}
Ptr<Display> Display::GetDisplay(int index, DisplaySearchHandle* handle)
{
Ptr<Display> result;
if( index < 0 )
return result;
Win32::Win32DisplaySearchHandle* localHandle = (Win32::Win32DisplaySearchHandle*)handle;
if( localHandle == NULL )
return NULL;
if (localHandle->extended)
{
if (index >= 0 && index < (int)localHandle->extendedDisplayCount)
{
return *new Win32::Win32DisplayGeneric(localHandle->cachedDescriptorArray[index]);
}
index -= localHandle->extendedDisplayCount;
}
if(localHandle->application)
{
if (index >= 0 && index < (int)getRiftCount(GlobalDisplayContext.hDevice))
{
ULONG riftChildId = getRift(GlobalDisplayContext.hDevice, index);
Win32::DisplayEDID dEdid;
if (!getEdid(GlobalDisplayContext.hDevice, riftChildId, dEdid))
{
return NULL;
}
// FIXME: We have the EDID. Let's just use that instead.
uint32_t nativeWidth = 1080, nativeHeight = 1920;
uint32_t logicalWidth = 1920, logicalHeight = 1080;
uint32_t rotation = 0;
switch (dEdid.ModelNumber)
{
case 0:
case 1:
nativeWidth = 1280;
nativeHeight = 800;
logicalWidth = nativeWidth;
logicalHeight = nativeHeight;
break;
case 2:
case 3:
default:
rotation = 90;
break;
}
HmdTypeEnum deviceTypeGuess = HmdType_Unknown;
switch (dEdid.ModelNumber)
{
case 3: deviceTypeGuess = HmdType_DK2; break;
case 2: deviceTypeGuess = HmdType_DKHDProto; break;
case 1: deviceTypeGuess = HmdType_DK1; break;
default: break;
}
result = *new Win32::Win32DisplayDriver(
deviceTypeGuess,
"",
dEdid.MonitorName,
dEdid.SerialNumber,
Sizei(logicalWidth, logicalHeight),
Sizei(nativeWidth, nativeHeight),
Vector2i(0),
dEdid,
GlobalDisplayContext.hDevice,
riftChildId,
rotation);
}
}
return result;
}
Display::MirrorMode Win32::Win32DisplayDriver::SetMirrorMode( Display::MirrorMode newMode )
{
return newMode;
}
static bool SetDisplayPower(HANDLE hDevice, ULONG childId, int mode)
{
ULONG_PTR longArray[2];
longArray[0] = childId;
longArray[1] = mode;
ULONG localResult = 0;
DWORD bytesReturned = 0;
BOOL result = DeviceIoControl(hDevice,
IOCTL_RIFTMGR_DISPLAYPOWER,
longArray,
2 * sizeof(ULONG_PTR),
&localResult,
sizeof(ULONG),
&bytesReturned,
NULL);
// Note: bytesReturned does not seem to be set
return result != FALSE /* && bytesReturned == sizeof(ULONG) */ && mode == (int)localResult;
}
bool Win32::Win32DisplayDriver::SetDisplaySleep(bool sleep)
{
return SetDisplayPower(hDevice, ChildId, sleep ? 2 : 1);
}
} // namespace OVR
| [
"[email protected]"
] | |
8b1a29369a6743a395514aeee578931025b9fdc3 | 5499e8b91353ef910d2514c8a57a80565ba6f05b | /zircon/system/core/devmgr/fshost/encrypted-volume.cc | d636d7645f0caaa8efd41dcc42622fcd56feb841 | [
"BSD-3-Clause",
"MIT"
] | permissive | winksaville/fuchsia | 410f451b8dfc671f6372cb3de6ff0165a2ef30ec | a0ec86f1d51ae8d2538ff3404dad46eb302f9b4f | refs/heads/master | 2022-11-01T11:57:38.343655 | 2019-11-01T17:06:19 | 2019-11-01T17:06:19 | 223,695,500 | 3 | 2 | BSD-3-Clause | 2022-10-13T13:47:02 | 2019-11-24T05:08:59 | C++ | UTF-8 | C++ | false | false | 3,473 | cc | // Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "encrypted-volume.h"
#include <lib/fdio/fdio.h>
#include <zircon/status.h>
#include <zxcrypt/fdio-volume.h>
#include <stdio.h>
namespace devmgr {
EncryptedVolume::EncryptedVolume(fbl::unique_fd fd, fbl::unique_fd devfs_root)
: fd_(std::move(fd)), devfs_root_(std::move(devfs_root)) {}
zx_status_t EncryptedVolume::Unseal() {
zx_status_t rc;
std::unique_ptr<zxcrypt::FdioVolume> zxcrypt_volume;
rc = zxcrypt::FdioVolume::Init(fd_.duplicate(), devfs_root_.duplicate(), &zxcrypt_volume);
if (rc != ZX_OK) {
fprintf(stderr, "fshost: couldn't open zxcrypt fdio volume: %s\n", zx_status_get_string(rc));
return rc;
}
zx::channel zxcrypt_volume_manager_chan;
rc = zxcrypt_volume->OpenManager(zx::sec(2), zxcrypt_volume_manager_chan.reset_and_get_address());
if (rc != ZX_OK) {
fprintf(stderr, "fshost: couldn't open zxcrypt manager device: %s\n", zx_status_get_string(rc));
return rc;
}
zxcrypt::FdioVolumeManager zxcrypt_volume_manager(std::move(zxcrypt_volume_manager_chan));
uint8_t slot = 0;
rc = zxcrypt_volume_manager.UnsealWithDeviceKey(slot);
if (rc != ZX_OK) {
fprintf(stderr, "fshost: couldn't unseal zxcrypt manager device: %s\n",
zx_status_get_string(rc));
return rc;
}
return ZX_OK;
}
zx_status_t EncryptedVolume::Format() {
zx_status_t rc;
rc = zxcrypt::FdioVolume::CreateWithDeviceKey(fd_.duplicate(), devfs_root_.duplicate(), nullptr);
if (rc != ZX_OK) {
fprintf(stderr, "fshost: couldn't format zxcrypt volume with device key: %s\n",
zx_status_get_string(rc));
return rc;
}
return ZX_OK;
}
const int kUnsealTryCountBeforeWipe = 5;
zx_status_t EncryptedVolumeInterface::EnsureUnsealedAndFormatIfNeeded() {
// Policy: first, unseal. If that fails, format, then unseal again.
zx_status_t rc;
int try_count = 0;
do {
rc = Unseal();
try_count++;
} while (rc != ZX_OK && try_count < kUnsealTryCountBeforeWipe);
if (rc == ZX_OK) {
// We successfully unsealed the volume. No need to wipe. Return success.
return ZX_OK;
}
// Alas, we could not unseal the volume. Give up. If the error code suggests
// we just have the wrong key, try formatting the volume with the keys we
// have. Otherwise, just return the error we got from the last Unseal()
// attempt.
if (rc == ZX_ERR_ACCESS_DENIED) {
fprintf(stderr,
"fshost: Failed repeatedly to unseal zxcrypt device with all available keys. "
"Destructively reformatting with new key to attempt to bring up an empty block volume "
"rather than none at all. Expect factory-reset-like behavior.\n");
rc = Format();
if (rc != ZX_OK) {
fprintf(stderr, "fshost: couldn't format encrypted volume: %s\n", zx_status_get_string(rc));
return rc;
}
// At this point, we had better be able to unseal the volume that we just
// formatted.
rc = Unseal();
if (rc != ZX_OK) {
fprintf(stderr, "fshost: formatted volume but couldn't unseal it thereafter: %s\n",
zx_status_get_string(rc));
return rc;
}
return ZX_OK;
} else {
fprintf(stderr, "fshost: could not produce an unsealed volume for minfs: %s\n",
zx_status_get_string(rc));
return rc;
}
}
} // namespace devmgr
| [
"[email protected]"
] | |
53a6644b6c552d8687cd14d361451b0032c8123e | 6ad0661a5143a09ada134afb325e2805bd84345f | /my_sylar/http/ws_server.cc | d3fb3eb70f6d7e377a5d2da50a285017e9b01ed5 | [] | no_license | cirno99/my_sylar | 23148dfe79ab9a126d640f982de6f7b7dea8d6f4 | 2fde4a853eb2d3c4787696e598e1e9f039a1cd3c | refs/heads/main | 2023-03-29T08:14:20.868060 | 2021-04-04T03:18:00 | 2021-04-04T03:18:00 | 354,445,240 | 1 | 0 | null | 2021-04-04T03:16:38 | 2021-04-04T03:16:37 | null | UTF-8 | C++ | false | false | 6,654 | cc | #include "ws_server.hh"
#include "my_sylar/log.hh"
#include "my_sylar/hash.hh"
namespace sylar {
namespace http {
sylar::Logger::ptr g_logger = SYLAR_LOG_NAME("system");
WSSession::WSSession(Socket::ptr sock, bool owner)
: HttpSession(sock, owner) {
}
HttpRequest::ptr WSSession::handleShake() {
HttpRequest::ptr req;
do {
req = recvRequest();
if (!req) {
SYLAR_LOG_DEBUG(g_logger) << "invalid http request";
break;
}
//if (req->getHeader("Upgrade") != "websocket") {
//SYLAR_LOG_DEBUG(g_logger) << "request Upgrade not websocket: " << req->getHeader("Upgrade");
//break;
//}
//req->setHeader("Sec-WebSocket-Key", sylar::base64encode(random_string(16)));
if (req->GetHeaderAs<int>("Sec-WebSocket-Version") != 13) {
SYLAR_LOG_DEBUG(g_logger) << "invalid Sec-WebSocket-Version";
break;
}
std::string key = req->getHeader("Sec-WebSocket-Key");
if (key.empty()) {
SYLAR_LOG_DEBUG(g_logger) << "Sec-WebSocekt-Key is nil";
break;
}
std::string v = key + "258EAFA5-E914-47DA-95CA-C5AB0DC85B11";
v = sylar::base64encode(sylar::sha1sum(v));
auto resp = req->createResponse();
resp->setStatus(HttpStatus::SWITCHING_PROTOCOLS);
resp->setWebsocket(true);
resp->setReason("Web Socket Protocol Handshake");
resp->setHeader("Upgrade", "Websocket");
resp->setHeader("Connetion", "Upgrade");
resp->setHeader("Sec-WebSocket-Accept", v);
sendResponse(resp);
SYLAR_LOG_DEBUG(g_logger) << req->toString();
SYLAR_LOG_DEBUG(g_logger) << resp->toString();
return req;
} while (false);
if (req) {
SYLAR_LOG_DEBUG(g_logger) << req->toString();
}
return nullptr;
}
WSFrameMessage::ptr WSSession::recvMessage() {
return WSRecvMessage(this, false);
}
int32_t WSSession::sendMessage(WSFrameMessage::ptr msg, bool fin) {
return WSSendMessage(this, msg, false, fin);
}
int32_t WSSession::sendMessage(const std::string& msg, int32_t opcode, bool fin) {
return WSSendMessage(this, std::make_shared<WSFrameMessage>(opcode, msg), false, fin);
}
int32_t WSSession::ping() {
return WSPing(this);
}
int32_t WSSession::pong() {
return WSPong(this);
}
bool WSSession::handleServerShake() {
return false;
}
bool WSSession::handleClientShake() {
return false;
}
FunctionWSServlet::FunctionWSServlet(callback cb, on_connect_cb connect_cb,
on_close_cb close_cb) :
WSServlet("FunctionWSServlet"),
m_callback(cb),
m_onConnect(connect_cb),
m_onClose(close_cb) {
}
int32_t FunctionWSServlet::onConnection(HttpRequest::ptr request, WSSession::ptr session) {
if (m_onConnect) {
return m_onConnect(request, session);
}
return 0;
}
int32_t FunctionWSServlet::onClose(HttpRequest::ptr request, WSSession::ptr session) {
if (m_onClose) {
return m_onClose(request, session);
}
return 0;
}
int32_t FunctionWSServlet::handle(HttpRequest::ptr request, WSFrameMessage::ptr msg,
WSSession::ptr session) {
if (m_callback) {
return m_callback(request, msg, session);
}
return 0;
}
WSServletDispatch::WSServletDispatch() {
m_name = "WSServletDispatch";
}
void WSServletDispatch::addServlet(const std::string& uri, FunctionWSServlet::callback cb,
FunctionWSServlet::on_connect_cb connect_cb,
FunctionWSServlet::on_close_cb close_cb) {
ServletDispatch::addServlet(uri, std::make_shared<FunctionWSServlet>(cb, connect_cb, close_cb));
}
void WSServletDispatch::addGlobServlet(const std::string& uri, FunctionWSServlet::callback cb,
FunctionWSServlet::on_connect_cb connect_cb,
FunctionWSServlet::on_close_cb close_cb) {
ServletDispatch::addGlobServlet(uri, std::make_shared<FunctionWSServlet>(cb, connect_cb, close_cb));
}
WSServlet::ptr WSServletDispatch::getWSServlet(const std::string& uri) {
auto slt = getMatchedServlet(uri);
return std::dynamic_pointer_cast<WSServlet>(slt);
}
WSServer::WSServer(sylar::IOManager* worker, sylar::IOManager* accept_worker)
: TcpServer(worker, accept_worker) {
m_dispatch.reset(new WSServletDispatch);
}
void WSServer::handleClient(Socket::ptr client) {
SYLAR_LOG_DEBUG(g_logger) << "WSServer handleClient";
WSSession::ptr session(new WSSession(client));
do {
HttpRequest::ptr req = session->handleShake();
if (!req) {
SYLAR_LOG_DEBUG(g_logger) << "handleShake err";
break;
}
WSServlet::ptr servlet = m_dispatch->getWSServlet(req->getPath());
if (!servlet) {
SYLAR_LOG_DEBUG(g_logger) << "no matched WSServlet";
break;
}
int ret = servlet->onConnection(req, session);
if (ret) {
SYLAR_LOG_DEBUG(g_logger) << "onConnection return: " << ret;
break;
}
while (true) {
auto msg = session->recvMessage();
if (!msg) {
break;
}
ret = servlet->handle(req, msg, session);
if (ret) {
SYLAR_LOG_DEBUG(g_logger) << "handle return: " << ret;
break;
}
}
servlet->onClose(req, session);
} while (true);
session->close();
}
}
} | [
"[email protected]"
] | |
904463046ef9b27dab1cac925c2dec7bc8ef6af4 | 69ceae05a77beb37d613b8edff8ac87d7ea7f276 | /newsf6_1.cpp | 4ea2b7a1b4d74e881f13dcac0e4045647b478b2c | [] | no_license | h2128253372/suanfazuoye | 1f473744dbac78d3890d875a3345b1b229169d24 | eb1c444a9d16d0c26d55fb19017d8339666d6ce1 | refs/heads/master | 2020-12-12T01:01:03.855377 | 2020-01-15T05:10:08 | 2020-01-15T05:10:08 | 234,001,922 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 985 | cpp | #include<stdio.h>
#include<string.h>
#include<algorithm>
using namespace std;
#define MAXN 51
int n=5;
double W=100;
struct NodeType
{
double w;
double v;
double p;
bool operator<(const NodeType &s) const
{
return p>s.p;
}
};
NodeType A[]={{0},{10,20},{20,30},{30,60},{40,40},{50,60}};
double V;
double x[MAXN];
void Knap()
{
V=0;
double weight=W;
memset(x,0,sizeof(x));
int i=1;
while(A[i].w<weight)
{
x[i]=1;
weight-=A[i].w;
V+=A[i].v;
i++;
}
if(weight>0)
{
x[i]=weight/A[i].w;
V+=x[i]*A[i].v;
}
}
void dispA()
{
int i;
printf("\tW\tV\tV\tW/\n");
for(i=1;i<=n;i++)
printf("\t%g\t%g\t%3.lf\n",A[i].w,A[i].v,A[i].p);
}
int main()
{
printf("求解过程\n");
for(int i=1;i<=n;i++)
A[i].p=A[i].v/A[i].w;
printf("(1)排序前\n");dispA();
sort(A+1,A+n+1);
printf("(2)排序后\n");dispA();
Knap();
printf("(3)求解结果\n");
printf("x:[");
for(int j=1;j<=n;j++)
printf("%g,",x[j]);
printf("%g]\n",x[n]);
printf("总价值=%g\n",V);
}
| [
"[email protected]"
] | |
355afab42f19a04c890c5ad96051e79382913d48 | 9e92923889d571924ef8004b1eb455067ca47c29 | /w1/lab_1_2_geometry/intrinsics.cpp | b961d9deeb35d04d97ab09ab401d1855cdf8ba95 | [] | no_license | styanddty/img4690 | 076ab19358cd7e86f60fb853a1bff378b71a79b2 | 7219bebb3ede2b99ca2a12248e753fa54c0ed287 | refs/heads/master | 2020-06-07T04:46:10.000946 | 2018-02-22T16:55:44 | 2018-02-22T16:55:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,295 | cpp | #include "intrinsics.h"
Eigen::Matrix3d Intrinsics::toCalibrationMatrix()
{
// Todo: Construct the calibration matrix correctly.
Eigen::Matrix3d calib_mat;
calib_mat <<
fu, s, cu,
0., fv, cv,
0., 0., 1.;
return calib_mat;
}
Intrinsics::Vector5d Intrinsics::toDistortionCoefficientVector()
{
// Todo: Construct the distortion coefficients on the form [k1, k2, 0, 0, k3].
Vector5d dist_coeffs;
dist_coeffs << k1, k2, 0., 0., k3;
return dist_coeffs;
}
std::istream& operator>>(std::istream& is, Intrinsics& intrinsics)
{
is >> intrinsics.fu
>> intrinsics.fv
>> intrinsics.s
>> intrinsics.cu
>> intrinsics.cv
>> intrinsics.k1
>> intrinsics.k2
>> intrinsics.k3;
if (!is)
{
throw std::runtime_error("Could not read Intrinsics data");
}
return is;
}
std::ostream& operator<<(std::ostream& os, const Intrinsics& intrinsics)
{
os << "fu: " << intrinsics.fu << "\n"
<< "fv: " << intrinsics.fv << "\n"
<< " s: " << intrinsics.s << "\n"
<< "cu: " << intrinsics.cu << "\n"
<< "cv: " << intrinsics.cv << "\n"
<< "k1: " << intrinsics.k1 << "\n"
<< "k2: " << intrinsics.k2 << "\n"
<< "k3: " << intrinsics.k3 << "\n";
return os;
}
| [
"[email protected]"
] | |
eba0c02602a5f4083fd62aefd9c8a5208538c2b5 | 09847ce7040a624f46d5169ffb83173e002c1d1d | /Includes.h | 40eaf1fa5312017e1712e5d9db72c5d380c61d36 | [] | no_license | KellianVITRE/MCLike | 31233e7a9010d4fdade12dcf4a69ebf06b89f8c8 | 0c1fa46e68d36ac093217c88fcf1bf00da58f34c | refs/heads/master | 2020-03-25T02:59:13.169067 | 2018-08-02T16:00:58 | 2018-08-02T16:00:58 | 143,316,933 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 173 | h | #pragma once
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <glm.hpp>
#include <ext.hpp> | [
"[email protected]"
] | |
b0fdf06500dfa4e7855bd508ea59a5835630f13f | ad08242a535c95f18d91b750bd9572ea41988782 | /Codeforces/726/A/main.cpp | d115ce1c760db5922a0842ea5cb316da7e2961cf | [] | no_license | AnhDungDoan/UIT-ALGO-BOOTCAMP | 1ef981b2ed26ae0db5a1acca86bac14e5f2e8d9d | bbe4f6fc7081b17e24395852f09666eb2e84d2b0 | refs/heads/master | 2023-07-17T20:06:37.096454 | 2021-08-25T13:51:13 | 2021-08-25T13:51:13 | 366,372,364 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 868 | cpp | /*
author: gnudnaod
create: ..............
*/
#include <bits/stdc++.h>
#define F(i,a,b) for (int i = a; i <= b; i++)
#define _F(i,a,b) for (int i = a; i >= b; i--)
#define ll long long
#define pb push_back
using namespace std;
const int maxn = 100;
int n, s = 0, a[maxn];
int solve()
{
ll n;
cin>>n;
if(n % 2 == 1)
{
cout<<"Bob"<<endl;
}
else
{
int c = 0;
while (n % 2 == 0)
{
n/=2;
ct++;
}
if(n>1)
{
cout<<"Alice"<<endl;
}
else
{
if(ct % 2)
{
cout<<"Bob"<<endl;
}
else
{
cout<<"Alice"<<endl;
}
}
}
}
int main()
{
int t;
cin >> t;
while (t--)
{
solve();
}
return 0;
}
| [
"[email protected]"
] | |
4177c0f8ed8566e084e2f7962b97e4ec9845dca5 | a36ece85a3f8f38823c25c8b811fdb3edaabcdce | /concurrency-tutorial/09_task_graph.cpp | 9a8461224154dfaa2c887454d3a250c955756e26 | [
"MIT"
] | permissive | lucteo/cppnow2021-examples | f5b7c9be579127947db5e5e204197222160befb8 | 8ad8b9675dc7ed64f8600cdad1c8f96f3e7bfc16 | refs/heads/main | 2023-04-27T10:42:37.366150 | 2021-05-05T20:29:03 | 2021-05-05T20:29:03 | 359,230,980 | 3 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 3,249 | cpp | #include <concore/task_graph.hpp>
#include <concore/finish_task.hpp>
#include "../common/utils.hpp"
#include <memory>
#include <vector>
#include <string>
struct data_stream {};
struct parsed_body {};
struct request_handling_resources {};
struct response_data {};
struct request_data {
// Data stream from which we read the request
data_stream data_stream_;
// Data resulting from reading the request
std::string uri_;
std::vector<std::pair<std::string, std::string>> headers_;
std::string body_;
// Parsed body data
std::shared_ptr<parsed_body> parsed_body_;
// Result of the authentication check
bool invalid_auth_{false};
// The resources needed for handling the request
std::shared_ptr<request_handling_resources> resources_;
// The response that need to be send back
std::shared_ptr<response_data> response_;
};
using request_ptr = std::shared_ptr<request_data>;
void read_http_request(request_ptr req) {
CONCORE_PROFILING_FUNCTION();
sleep_in_between_ms(20, 40);
}
void parse_body(request_ptr req) {
CONCORE_PROFILING_FUNCTION();
sleep_in_between_ms(30, 50);
}
void authenticate(request_ptr req) {
CONCORE_PROFILING_FUNCTION();
sleep_in_between_ms(5, 10);
}
void log_start_event(request_ptr req) {
CONCORE_PROFILING_FUNCTION();
sleep_in_between_ms(20, 40);
}
void alloc_resources(request_ptr req) {
CONCORE_PROFILING_FUNCTION();
sleep_in_between_ms(20, 40);
}
void compute_result(request_ptr req) {
CONCORE_PROFILING_FUNCTION();
sleep_in_between_ms(40, 80);
}
void log_end_event(request_ptr req) {
CONCORE_PROFILING_FUNCTION();
sleep_in_between_ms(20, 40);
}
void update_stats(request_ptr req) {
CONCORE_PROFILING_FUNCTION();
sleep_in_between_ms(20, 40);
}
void send_response(request_ptr req) {
CONCORE_PROFILING_FUNCTION();
sleep_in_between_ms(20, 40);
}
int main() {
profiling_sleep profiling_helper;
CONCORE_PROFILING_FUNCTION();
init_randomness();
concore::finish_wait done;
request_ptr data = std::make_shared<request_data>();
// create the tasks
concore::chained_task t1{[data] { read_http_request(data); }};
concore::chained_task t2{[data] { parse_body(data); }};
concore::chained_task t3{[data] { authenticate(data); }};
concore::chained_task t4{[data] { log_start_event(data); }};
concore::chained_task t5{[data] { alloc_resources(data); }};
concore::chained_task t6{[data] { compute_result(data); }};
concore::chained_task t7{[data] { log_end_event(data); }};
concore::chained_task t8{[data] { update_stats(data); }};
concore::chained_task t9{[data] { send_response(data); }};
concore::chained_task t_done{concore::task{[]{}, {}, done.get_continuation()}};
// set up dependencies
concore::add_dependencies(t1, {t2, t3});
concore::add_dependency(t2, t4);
concore::add_dependencies(t3, {t4, t5});
concore::add_dependency(t4, t7);
concore::add_dependencies({t3, t5}, t6);
concore::add_dependencies(t6, {t7, t8, t9});
concore::add_dependencies({t7, t8, t9}, {t_done});
// start the graph
concore::spawn(t1);
// Wait until the graph is done executing
done.wait();
return 0;
}
| [
"[email protected]"
] | |
2e20f727abc81330e5c3888e04a46ddfd8fa26e3 | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/Control/DataModelTest/DataModelTestDataRead/DataModelTestDataRead/versions/HVec_v2.h | 063384a5c655893357d435a5eadecdeca6f43477 | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 625 | h | // This file's extension implies that it's C, but it's really -*- C++ -*-.
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
// $Id$
/**
* @file DataModelTestDataRead/versions/HVec_v2.h
* @author scott snyder <[email protected]>
* @date Jan, 2016
* @brief Test for xAOD schema evolution.
*/
#ifndef DATAMODELTESTDATAREAD_HVEC_V2_H
#define DATAMODELTESTDATAREAD_HVEC_V2_H
#include "DataModelTestDataRead/versions/H_v2.h"
#include "AthContainers/DataVector.h"
namespace DMTest {
typedef DataVector<H_v2> HVec_v2;
} // namespace DMTest
#endif // not DATAMODELTESTDATAREAD_HVEC_V2_H
| [
"[email protected]"
] | |
b510c570de39cdb9d9d7084203ec647a503a0d67 | 56440b42d3ff55809d6d1fb12f74ceb6d1a24c2e | /lib/Basic/FileSystemStatCache.cpp | e74dabe42aef5894e6a540c039cbf89b3b9f94f9 | [
"NCSA"
] | permissive | f-akazawa/mlang | b8b3c393b78ee606ef7bba65c6b286832bcf8471 | 393edb214478d4185e594ad85ef02779002e6f72 | refs/heads/master | 2020-04-24T09:02:29.181586 | 2012-06-08T07:20:17 | 2012-06-08T07:20:17 | 34,935,578 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,231 | cpp | //===--- FileSystemStatCache.cpp - Caching for 'stat' calls ---------------===//
//
// Copyright (C) 2010 yabin @ CGCL
// HuaZhong University of Science and Technology, China
//
//===----------------------------------------------------------------------===//
//
// This file defines the FileSystemStatCache interface.
//
//===----------------------------------------------------------------------===//
#include "mlang/Basic/FileSystemStatCache.h"
#include "llvm/Support/Path.h"
#include <fcntl.h>
// FIXME: This is terrible, we need this for ::close.
#if !defined(_MSC_VER) && !defined(__MINGW32__)
#include <unistd.h>
#include <sys/uio.h>
#else
#include <io.h>
#endif
using namespace mlang;
#if defined(_MSC_VER)
#define S_ISDIR(s) ((_S_IFDIR & s) !=0)
#endif
/// FileSystemStatCache::get - Get the 'stat' information for the specified
/// path, using the cache to accelerate it if possible. This returns true if
/// the path does not exist or false if it exists.
///
/// If FileDescriptor is non-null, then this lookup should only return success
/// for files (not directories). If it is null this lookup should only return
/// success for directories (not files). On a successful file lookup, the
/// implementation can optionally fill in FileDescriptor with a valid
/// descriptor and the client guarantees that it will close it.
bool FileSystemStatCache::get(const char *Path, struct stat &StatBuf,
int *FileDescriptor, FileSystemStatCache *Cache) {
LookupResult R;
bool isForDir = FileDescriptor == 0;
// If we have a cache, use it to resolve the stat query.
if (Cache)
R = Cache->getStat(Path, StatBuf, FileDescriptor);
else if (isForDir) {
// If this is a directory and we have no cache, just go to the file system.
R = ::stat(Path, &StatBuf) != 0 ? CacheMissing : CacheExists;
} else {
// Otherwise, we have to go to the filesystem. We can always just use
// 'stat' here, but (for files) the client is asking whether the file exists
// because it wants to turn around and *open* it. It is more efficient to
// do "open+fstat" on success than it is to do "stat+open".
//
// Because of this, check to see if the file exists with 'open'. If the
// open succeeds, use fstat to get the stat info.
int OpenFlags = O_RDONLY;
#ifdef O_BINARY
OpenFlags |= O_BINARY; // Open input file in binary mode on win32.
#endif
*FileDescriptor = ::open(Path, OpenFlags);
if (*FileDescriptor == -1) {
// If the open fails, our "stat" fails.
R = CacheMissing;
} else {
// Otherwise, the open succeeded. Do an fstat to get the information
// about the file. We'll end up returning the open file descriptor to the
// client to do what they please with it.
if (::fstat(*FileDescriptor, &StatBuf) == 0)
R = CacheExists;
else {
// fstat rarely fails. If it does, claim the initial open didn't
// succeed.
R = CacheMissing;
::close(*FileDescriptor);
*FileDescriptor = -1;
}
}
}
// If the path doesn't exist, return failure.
if (R == CacheMissing) return true;
// If the path exists, make sure that its "directoryness" matches the clients
// demands.
if (S_ISDIR(StatBuf.st_mode) != isForDir) {
// If not, close the file if opened.
if (FileDescriptor && *FileDescriptor != -1) {
::close(*FileDescriptor);
*FileDescriptor = -1;
}
return true;
}
return false;
}
MemorizeStatCalls::LookupResult
MemorizeStatCalls::getStat(const char *Path, struct stat &StatBuf,
int *FileDescriptor) {
LookupResult Result = statChained(Path, StatBuf, FileDescriptor);
// Do not cache failed stats, it is easy to construct common inconsistent
// situations if we do, and they are not important for PCH performance (which
// currently only needs the stats to construct the initial FileManager
// entries).
if (Result == CacheMissing)
return Result;
// Cache file 'stat' results and directories with absolutely paths.
if (!S_ISDIR(StatBuf.st_mode) || llvm::sys::path::is_absolute(Path))
StatCalls[Path] = StatBuf;
return Result;
}
| [
"[email protected]"
] | |
291764adfb8a0da68b3ae91b72eedc5ba1d9460a | fb227e3635b5c06e49bad48928f7b6d3254c4dca | /codeforces/gym/samaraVIII2015/i.cpp | 54c0001c02d520cdc9c7535c6eb035b962d57916 | [] | no_license | BryanValeriano/marathon | 5be2ab354e49187c865f0296f7dfb5ab3c3d6c9b | 8dadfad7d1a6822f61ba5ed4a06e998541515634 | refs/heads/master | 2022-09-11T00:06:14.982588 | 2022-09-03T17:01:30 | 2022-09-03T17:01:30 | 141,581,750 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,062 | cpp | #include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define mk make_pair
#define fi first
#define se second
#define eb emplace_back
typedef long long ll;
typedef pair<int,int> ii;
typedef vector< pair<int,int> > vii;
const int INF = 0x3f3f3f3f;
#define loop(x) for(int i = 0;i < x;i++)
int main() {
ios_base::sync_with_stdio(false);
int x, y;
cin >> x >> y;
string dir;
cin >> dir;
int n;
cin >> n;
string name, win;
int a, b, t = INF;
bool p = dir == "UP" or dir == "DOWN";
int vel = (dir == "DOWN" or dir == "LEFT" ? -1 : 1);
if (p) swap(x, y);
loop(n) {
cin >> name >> a >> b;
if (!p) swap(a, b);
int delx = abs(x - a), dely = abs(y - b);
int ta = delx / 2 + (delx & 1);
y += ta * vel;
int va = 2 * (b > y ? -1 : 1);
dely = abs(b - y);
ta += dely / abs(va - vel) + (dely % abs(va - vel) != 0);
if (ta < t) {
t = ta;
win = name;
}
}
cout << win << endl;
return 0;
}
| [
"[email protected]"
] | |
4fe890ee389d34a658c35a9f30c0f5a90d2a6c07 | e7bdc920132010fa7b95eaa278973436ea5fd625 | /MultiAgentCircleMap/include/MultiAgentCircleMap/SingleRobotMapper.h | cf8d4a485c1fcfebcd9e83ce2f1f080e102172c9 | [
"BSD-3-Clause"
] | permissive | algprasad/MultiAgentCircleMap | b31c991160eaaa6251fb2366f66a19482a58d55a | 6a94e75c3bbc57c32b4163666f95b8fd3c40273e | refs/heads/master | 2023-01-29T04:22:05.223627 | 2020-12-08T06:57:15 | 2020-12-08T06:57:15 | 314,688,326 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,031 | h | /**
// Created by alg on 21/11/20.
Main class for the algorithm for mapping with single robot (Local Map)
*/
#ifndef MULTIAGENTCIRCLEMAP_SINGLEROBOTMAPPER_H
#define MULTIAGENTCIRCLEMAP_SINGLEROBOTMAPPER_H
#include "RosHandle.hpp"
#include "Graph.h"
#include "CircleVec.h"
class SingleRobotMapper {
//MultiAgentCircleMap::RosHandle ros_handle_;
Graph graph_; //global graph
CircleVec global_circles_vec_; //global main CircleVec
bool first_image_;
//these are included here because of their importance for tracking. Everything else is just global here
Image prev_image_;
Image current_image_;
public:
//Default constructor
SingleRobotMapper(): first_image_(true){};
//SingleRobotMapper(MultiAgentCircleMap::RosHandle& ros_handle):ros_handle_(ros_handle), first_image_(true){}
std::vector<std::vector<double> > getPixelCostMatrixHungarianAlgo(double threshold_pixel_distance);
std::vector<int> getAssignment(std::vector<std::vector<double> >& cost_matrix);
void assignCorrepondingPrevId(std::vector<int>& assignment, std::vector<std::vector<double> > cost_matrix);
void assignNewID();
void updateMap(MultiAgentCircleMap::RosHandle ros_handle);
//overloading updateMap to use for map merging with other robots //TODO maybe unecessary as NNAssignment itself can do the job.Remove
void updateMap(CircleVec new_circle_vec);
void publishImagewithIDs(MultiAgentCircleMap::RosHandle& ros_handle);
void HungarianAssignment(MultiAgentCircleMap::RosHandle ros_handle);
void NearestNeighbourAssignment();
void NearestNeighbourAssignment(CircleVec new_circle_vec);
void assignGlobalID2CurrentVec(std::vector<int> assignment_vec);
Eigen::Vector3d findMeanGlobalPosition(Circle other_circle, int global_index);
void assignGlobalID2NewVec(std::vector<int> assignment_vec, CircleVec new_circle_vec);
CircleVec getGlobalCircles(){
return this->global_circles_vec_;
};
};
#endif //MULTIAGENTCIRCLEMAP_SINGLEROBOTMAPPER_H
| [
"[email protected]"
] | |
504330b8d8f80a4df92a4106e10dd19433a1fe3f | 9b1a0e9ac2c5ffc35f368ca5108cd8953eb2716d | /4/05 Graphics/15 Fiedler/source/Terrain/DirectX/DirectX.h | 8d701a9ecbb186b052918d8e697373dcd7184d81 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | TomasRejhons/gpg-source-backup | c6993579e96bf5a6d8cba85212f94ec20134df11 | bbc8266c6cd7df8a7e2f5ad638cdcd7f6298052e | refs/heads/main | 2023-06-05T05:14:00.374344 | 2021-06-16T15:08:41 | 2021-06-16T15:08:41 | 377,536,509 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 249 | h | // DirectX classes
#pragma once
/// %DirectX implementation of system interfaces.
namespace DirectX
{
class Error;
class Timer;
class Texture;
class Mesh;
class Light;
class Material;
class Display;
}
| [
"[email protected]"
] | |
71f8089153f378bfaf4169d7da8926117221b642 | 32f541dd6dcb2121f21b13071678a799eb293f10 | /libraries/chain/include/graphene/chain/eth_seri_record.hpp | bfc1259f02bc7ed8e199bdb884d5269225df825b | [
"MIT"
] | permissive | Whitecoin-XWC/Whitecoin-core | b62de0b712ab8557ecd16dc1d0e4389c439eb3db | 8f15e0764fe60ff8d77228a2aca6bdff723439bd | refs/heads/develop | 2022-12-10T18:12:23.027195 | 2022-11-23T03:53:04 | 2022-11-23T03:53:04 | 397,646,406 | 0 | 3 | MIT | 2022-11-28T01:20:26 | 2021-08-18T15:17:39 | C++ | UTF-8 | C++ | false | false | 9,610 | hpp | #pragma once
#pragma once
#include <graphene/chain/protocol/base.hpp>
#include <graphene/crosschain/crosschain_impl.hpp>
namespace graphene {
namespace chain {
struct eth_series_multi_sol_create_operation :public base_operation {
struct fee_parameters_type {
uint64_t fee = 0.001 * GRAPHENE_XWCCHAIN_PRECISION;
};
asset fee;
miner_id_type miner_broadcast;
address miner_broadcast_addrss;
wallfacer_member_id_type wallfacer_to_sign;
std::string multi_cold_address;
std::string multi_hot_address;
std::string multi_account_tx_without_sign_hot;
std::string multi_account_tx_without_sign_cold;
std::string cold_nonce;
std::string hot_nonce;
std::string chain_type;
std::string wallfacer_sign_hot_address;
std::string wallfacer_sign_cold_address;
address fee_payer()const {
return miner_broadcast_addrss;
}
void validate()const;
share_type calculate_fee(const fee_parameters_type& k)const;
void get_required_authorities(vector<authority>& a)const {
a.push_back(authority(1, miner_broadcast_addrss, 1));
}
};
struct eths_multi_sol_wallfacer_sign_operation : public base_operation {
struct fee_parameters_type {
uint64_t fee = 0.001 * GRAPHENE_XWCCHAIN_PRECISION;
};
asset fee;
transaction_id_type sol_without_sign_txid;
wallfacer_member_id_type wallfacer_to_sign;
address wallfacer_sign_address;
std::string multi_cold_trxid;
std::string multi_hot_trxid;
std::string multi_hot_sol_wallfacer_sign;
std::string multi_cold_sol_wallfacer_sign;
std::string chain_type;
address fee_payer()const {
return wallfacer_sign_address;
}
void validate()const;
share_type calculate_fee(const fee_parameters_type& k)const;
void get_required_authorities(vector<authority>& a)const {
a.push_back(authority(1, wallfacer_sign_address, 1));
}
};
//gather record
struct eth_multi_account_create_record_operation :public base_operation {
struct fee_parameters_type {
uint64_t fee = 0.001 * GRAPHENE_XWCCHAIN_PRECISION;
};
asset fee;
miner_id_type miner_broadcast;
address miner_address;
std::string chain_type;
std::string multi_pubkey_type;
graphene::crosschain::hd_trx eth_multi_account_trx;
transaction_id_type pre_trx_id;
address fee_payer()const {
return miner_address;
}
void validate()const;
share_type calculate_fee(const fee_parameters_type& k)const;
void get_required_authorities(vector<authority>& a)const {
a.push_back(authority(1, miner_address, 1));
}
};
struct eth_seri_wallfacer_sign_operation :public base_operation {
struct fee_parameters_type {
uint64_t fee = 0.001 * GRAPHENE_XWCCHAIN_PRECISION;
};
asset fee;
fc::variant_object eth_wallfacer_sign_trx;
address wallfacer_address;
wallfacer_member_id_type wallfacer_to_sign;
address fee_payer()const {
return wallfacer_address;
}
void validate()const;
share_type calculate_fee(const fee_parameters_type& k)const;
void get_required_authorities(vector<authority>& a)const {
a.push_back(authority(1, wallfacer_address, 1));
}
};
struct eths_wallfacer_sign_final_operation:public base_operation{
struct fee_parameters_type {
uint64_t fee = 0.001 * GRAPHENE_XWCCHAIN_PRECISION;
};
asset fee;
wallfacer_member_id_type wallfacer_to_sign;
transaction_id_type combine_trx_id;
std::string signed_crosschain_trx;
std::string signed_crosschain_trx_id;
address wallfacer_address;
std::string chain_type;
address fee_payer()const {
return wallfacer_address;
}
void validate()const;
share_type calculate_fee(const fee_parameters_type& k)const;
void get_required_authorities(vector<authority>& a)const {
a.push_back(authority(1, wallfacer_address, 1));
}
};
struct eths_wallfacer_change_signer_operation :public base_operation {
struct fee_parameters_type {
uint64_t fee = 0.001 * GRAPHENE_XWCCHAIN_PRECISION;
};
asset fee;
wallfacer_member_id_type wallfacer_to_sign;
std::string new_signer;
transaction_id_type combine_trx_id;
std::string signed_crosschain_trx;
std::string signed_crosschain_trx_id;
address wallfacer_address;
std::string chain_type;
address fee_payer()const {
return wallfacer_address;
}
share_type calculate_fee(const fee_parameters_type& k)const;
};
struct eths_wallfacer_coldhot_change_signer_operation :public base_operation {
struct fee_parameters_type {
uint64_t fee = 0.001 * GRAPHENE_XWCCHAIN_PRECISION;
};
asset fee;
wallfacer_member_id_type wallfacer_to_sign;
std::string new_signer;
transaction_id_type combine_trx_id;
std::string signed_crosschain_trx;
std::string signed_crosschain_trx_id;
address wallfacer_address;
std::string chain_type;
address fee_payer()const {
return wallfacer_address;
}
share_type calculate_fee(const fee_parameters_type& k)const;
};
struct eths_cancel_unsigned_transaction_operation :public base_operation {
struct fee_parameters_type {
uint64_t fee = 0.001 * GRAPHENE_XWCCHAIN_PRECISION;
};
asset fee;
address wallfacer_address;
wallfacer_member_id_type wallfacer_id;
transaction_id_type cancel_trx_id;
address fee_payer()const {
return wallfacer_address;
}
share_type calculate_fee(const fee_parameters_type& k)const { return 0; }
};
struct eths_coldhot_wallfacer_sign_final_operation :public base_operation {
struct fee_parameters_type {
uint64_t fee = 0.001 * GRAPHENE_XWCCHAIN_PRECISION;
};
asset fee;
wallfacer_member_id_type wallfacer_to_sign;
transaction_id_type combine_trx_id;
std::string signed_crosschain_trx;
std::string signed_crosschain_trx_id;
address wallfacer_address;
std::string chain_type;
address fee_payer()const {
return wallfacer_address;
}
void validate()const;
share_type calculate_fee(const fee_parameters_type& k)const;
void get_required_authorities(vector<authority>& a)const {
a.push_back(authority(1, wallfacer_address, 1));
}
};
struct wallfacer_change_acquire_trx_operation :public base_operation {
struct fee_parameters_type {
uint64_t fee = 0.001 * GRAPHENE_XWCCHAIN_PRECISION;
};
asset fee;
address wallfacer_address;
wallfacer_member_id_type wallfacer_id;
transaction_id_type change_transaction_id;
address fee_payer()const {
return wallfacer_address;
}
share_type calculate_fee(const fee_parameters_type& k)const { return 0; }
};
}
}
FC_REFLECT(graphene::chain::wallfacer_change_acquire_trx_operation::fee_parameters_type, (fee))
FC_REFLECT(graphene::chain::wallfacer_change_acquire_trx_operation, (wallfacer_address)(wallfacer_id)(change_transaction_id))
FC_REFLECT(graphene::chain::eth_seri_wallfacer_sign_operation::fee_parameters_type, (fee))
FC_REFLECT(graphene::chain::eth_seri_wallfacer_sign_operation, (fee)(eth_wallfacer_sign_trx)(wallfacer_address)(wallfacer_to_sign))
FC_REFLECT(graphene::chain::eth_series_multi_sol_create_operation::fee_parameters_type, (fee))
FC_REFLECT(graphene::chain::eth_series_multi_sol_create_operation, (fee)(wallfacer_to_sign)(miner_broadcast)(miner_broadcast_addrss)(multi_cold_address)
(multi_hot_address)(multi_account_tx_without_sign_hot)(multi_account_tx_without_sign_cold)(cold_nonce)(hot_nonce)(chain_type)(wallfacer_sign_hot_address)(wallfacer_sign_cold_address))
FC_REFLECT(graphene::chain::eth_multi_account_create_record_operation::fee_parameters_type,(fee))
FC_REFLECT(graphene::chain::eth_multi_account_create_record_operation, (fee)(miner_broadcast)(miner_address)(chain_type)(multi_pubkey_type)(eth_multi_account_trx)(eth_multi_account_trx)(pre_trx_id))
FC_REFLECT(graphene::chain::eths_multi_sol_wallfacer_sign_operation::fee_parameters_type, (fee))
FC_REFLECT(graphene::chain::eths_multi_sol_wallfacer_sign_operation, (fee)(sol_without_sign_txid)(wallfacer_to_sign)(wallfacer_sign_address)
(multi_hot_sol_wallfacer_sign)(multi_cold_trxid)(multi_hot_trxid)(multi_cold_sol_wallfacer_sign)(chain_type))
FC_REFLECT(graphene::chain::eths_wallfacer_sign_final_operation::fee_parameters_type, (fee))
FC_REFLECT(graphene::chain::eths_wallfacer_sign_final_operation, (fee)(wallfacer_to_sign)(signed_crosschain_trx_id)(combine_trx_id)(chain_type)(signed_crosschain_trx)(wallfacer_address))
FC_REFLECT(graphene::chain::eths_coldhot_wallfacer_sign_final_operation::fee_parameters_type, (fee))
FC_REFLECT(graphene::chain::eths_coldhot_wallfacer_sign_final_operation, (fee)(wallfacer_to_sign)(signed_crosschain_trx_id)(combine_trx_id)(chain_type)(signed_crosschain_trx)(wallfacer_address))
FC_REFLECT(graphene::chain::eths_wallfacer_change_signer_operation::fee_parameters_type, (fee))
FC_REFLECT(graphene::chain::eths_wallfacer_change_signer_operation, (fee)(wallfacer_to_sign)(signed_crosschain_trx_id)(combine_trx_id)(new_signer)(chain_type)(signed_crosschain_trx)(wallfacer_address))
FC_REFLECT(graphene::chain::eths_wallfacer_coldhot_change_signer_operation::fee_parameters_type, (fee))
FC_REFLECT(graphene::chain::eths_wallfacer_coldhot_change_signer_operation, (fee)(wallfacer_to_sign)(signed_crosschain_trx_id)(combine_trx_id)(new_signer)(chain_type)(signed_crosschain_trx)(wallfacer_address))
FC_REFLECT(graphene::chain::eths_cancel_unsigned_transaction_operation::fee_parameters_type, (fee))
FC_REFLECT(graphene::chain::eths_cancel_unsigned_transaction_operation, (fee)(wallfacer_address)(wallfacer_id)(cancel_trx_id))
| [
"[email protected]"
] | |
5190b2d16b30f35c8219451d7a66f1b55b588ff9 | ace28e29eaa4ff031fdf7aa4d29bb5d85b46eaa3 | /Visual Mercutio/zModelBP/PSS_SelectMainDeliverableDlg.cpp | d9aa1b22d0364b45a38dc9e1872dfe9532786c57 | [
"MIT"
] | permissive | emtee40/Visual-Mercutio | 675ff3d130783247b97d4b0c8760f931fbba68b3 | f079730005b6ce93d5e184bb7c0893ccced3e3ab | refs/heads/master | 2023-07-16T20:30:29.954088 | 2021-08-16T19:19:57 | 2021-08-16T19:19:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,856 | cpp | /****************************************************************************
* ==> PSS_SelectMainDeliverableDlg ----------------------------------------*
****************************************************************************
* Description : Provides a select the main deliverable dialog box *
* Developer : Processsoft *
****************************************************************************/
#include "stdafx.h"
#include "PSS_SelectMainDeliverableDlg.h"
// processsoft
#include "zBaseLib\PSS_Tokenizer.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
//---------------------------------------------------------------------------
// Message map
//---------------------------------------------------------------------------
BEGIN_MESSAGE_MAP(PSS_SelectMainDeliverableDlg, CDialog)
//{{AFX_MSG_MAP(PSS_SelectMainDeliverableDlg)
ON_LBN_SELCHANGE(IDC_LISTOFDELIVERABLE, OnSelchangeListOfDeliverable)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
//---------------------------------------------------------------------------
// PSS_SelectMainDeliverableDlg
//---------------------------------------------------------------------------
PSS_SelectMainDeliverableDlg::PSS_SelectMainDeliverableDlg(const CString& deliverables,
const CString& main,
CWnd* pParent) :
CDialog(PSS_SelectMainDeliverableDlg::IDD, pParent),
m_Deliverables(deliverables),
m_Main(main)
{}
//---------------------------------------------------------------------------
PSS_SelectMainDeliverableDlg::~PSS_SelectMainDeliverableDlg()
{}
//---------------------------------------------------------------------------
void PSS_SelectMainDeliverableDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(PSS_SelectMainDeliverableDlg)
DDX_Control(pDX, IDC_LISTOFDELIVERABLE, m_ListOfDeliverables);
//}}AFX_DATA_MAP
}
//---------------------------------------------------------------------------
BOOL PSS_SelectMainDeliverableDlg::OnInitDialog()
{
CDialog::OnInitDialog();
DelivToListBox(m_Deliverables, m_ListOfDeliverables);
// set the maximum horizontal scroll
m_ListOfDeliverables.SetHorizontalExtent(1000);
CheckState();
// return TRUE unless the focus is set to a control. NOTE OCX property pages should return FALSE
return TRUE;
}
//---------------------------------------------------------------------------
void PSS_SelectMainDeliverableDlg::OnSelchangeListOfDeliverable()
{
CheckState();
}
//---------------------------------------------------------------------------
void PSS_SelectMainDeliverableDlg::OnOK()
{
const int curSel = m_ListOfDeliverables.GetCurSel();
if (curSel != LB_ERR)
m_ListOfDeliverables.GetText(curSel, m_Main);
CDialog::OnOK();
}
//---------------------------------------------------------------------------
void PSS_SelectMainDeliverableDlg::DelivToListBox(const CString& deliv, CListBox& lb)
{
// initialize the token with ; as separator
PSS_Tokenizer token;
CString str = token.GetFirstToken(deliv);
// iterate through all tokens
while (!str.IsEmpty())
{
// add the string to the list
lb.AddString(str);
// get the next token
str = token.GetNextToken();
}
}
//---------------------------------------------------------------------------
void PSS_SelectMainDeliverableDlg::CheckState()
{
const int curSel = m_ListOfDeliverables.GetCurSel();
if (GetDlgItem(IDOK))
GetDlgItem(IDOK)->EnableWindow(curSel != LB_ERR);
}
//---------------------------------------------------------------------------
| [
"[email protected]"
] | |
583ff0ed9c3cebc2ed3639eb1e6277b536cb4683 | b59fee706f75c9a347c8687b1ab7110ec52a69e7 | /hphp/util/text-util.cpp | fdfcac9c595c9570a76c54a9dbc007601c0aabb9 | [
"Zend-2.0",
"LicenseRef-scancode-unknown-license-reference",
"PHP-3.01"
] | permissive | renesugar/hiphop-php | 4391d30b4a05bad1400aa999155bc83ab1f40086 | 4eb05b745fd3018a6d9e51464cae06a4465ee142 | refs/heads/master | 2020-04-11T04:51:03.875501 | 2013-09-11T18:05:53 | 2013-09-13T19:35:48 | 136,534,446 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,308 | cpp | /*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-2013 Facebook, Inc. (http://www.facebook.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| http://www.php.net/license/3_01.txt |
| If you did not receive a copy of the PHP license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| [email protected] so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
*/
#include "hphp/util/text-util.h"
#include <string>
#include <vector>
namespace HPHP {
using std::string;
using std::vector;
// --- Static functions.
bool TextUtil::BeginsWith(const string& str1, const string& str2) {
// | [----------str2--------]
// | <<<<<<<<< match >>>>>>>>
// | [--------------------------------str1-------]
if (str2.length() > str1.length()) {
return false;
}
return str1.find(str2) == 0;
}
string TextUtil::StripCommonStart(const string& str1, const string& str2) {
if (!BeginsWith(str1, str2)) {
return str1;
}
return str1.substr(str2.length());
}
bool TextUtil::EndsWith(const string& str, char ch) {
return *str.rbegin() == ch;
}
string TextUtil::StripTrailing(const std::string& str, char ch) {
string temp(str);
size_t i = str.find_last_not_of(ch);
if (i != string::npos) {
temp.erase(i + 1);
} else {
temp.clear(); // Nothing but those chars.
}
return temp;
}
vector<string> TextUtil::MakePathList(const string& path) {
vector<string> temp;
if (path.empty() || path[0] != '/') {
return temp;
}
size_t start = 0;
for (size_t i = 1; i < path.length(); ++i) {
if (path[i] == '/') {
temp.push_back(path.substr(start, i));
}
}
temp.push_back(path);
return temp;
}
} // namespace HPHP
| [
"[email protected]"
] | |
5b759a4f85f3574111d6043060c3ec9f48b8c2a4 | c78419adfaa363fd2df93a2160a88e3c84e15326 | /IntegerHashes.cpp | 1853d6c7302d514fa83f0d5917c6cf73115e19c4 | [] | no_license | gongx18/CS130A_Programming | 82223fd78d2b77c4f32a58a04d3e4b14e8a64dab | 18fec587e7f5ef85a6c98b49bc6d404cc742e19a | refs/heads/master | 2020-05-19T06:00:32.957447 | 2019-05-08T20:01:43 | 2019-05-08T20:01:43 | 184,860,099 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 861 | cpp | //IntegerHashes.cpp
#include "IntegerHashes.h"
#include <cmath>
IntegerHash::IntegerHash(uint64_t i, uint64_t m) {
this->i = i;
this->m = m;
}
DivisionHash::DivisionHash(uint64_t i, uint64_t m): IntegerHash(i, m) {
// Nothing else to do.
}
uint64_t DivisionHash::hash(uint64_t input) const {
return input * (i + 1) % m;
}
ReciprocalHash::ReciprocalHash(uint64_t i, uint64_t m): IntegerHash(i, m) {
this->b = double(1) / (i + 2);
}
uint64_t ReciprocalHash::hash(uint64_t input) const {
double temp = b * input;
temp -= std::floor(temp);
return temp * m;
}
SquareRootHash::SquareRootHash(uint64_t i, uint64_t m): IntegerHash(i, m) {
this->b = std::sqrt(4 * i + 3);
this->b -= std::floor(this->b);
}
uint64_t SquareRootHash::hash(uint64_t input) const {
double temp = b * input;
temp -= std::floor(temp);
return temp * m;
}
| [
"[email protected]"
] | |
45a36194754588b92fe6f8fe0030afc714585aff | 7a7c2cce3ae4af258d6a72ea9fa25e06e3e17685 | /src/movement/motion/followLine.hpp | 08303174a490aa8d7e633b13c47d5123dcf14bd7 | [] | no_license | jvolmer/gridCar | 47a6f3ca69324b85b9422212bf881be9861b9dd1 | 4af61b063e1c7ebb6e9cdea0e3c61c14a7383738 | refs/heads/main | 2023-08-25T22:56:10.357143 | 2021-10-31T22:19:25 | 2021-10-31T23:11:31 | 400,878,669 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 480 | hpp | #ifndef FOLLOW_LINE_H
#define FOLLOW_LINE_H
#include "motion.hpp"
#include "motionName.hpp"
class Pilot;
class Position;
class Tracker;
class Motor;
// Follows a black line.
// Changes to cross motion at crossing.
class FollowLine: public Motion
{
private:
Pilot& _pilot;
Position& _position;
Tracker& _tracker;
Motor& _motor;
public:
FollowLine(Pilot& pilot, Position& position, Tracker& tracker, Motor& motor);
void move() override;
};
#endif
| [
"[email protected]"
] | |
74e79ea28ae498c56e2f7f13ef43e6c09dbc4b56 | cf40f5e56233bdd399ebbb7bd2a054e6126ffd74 | /6.cpp | e1e1166b7938ae368d247ab5a3e6dc055d9425c4 | [] | no_license | Siyiming/os | fe15d95946a824600cd18be8246403be394881cc | a2e1eae026e791ec060a5ebb6c3284bce524d7f2 | refs/heads/master | 2021-05-05T21:27:02.944066 | 2017-12-25T05:56:27 | 2017-12-25T05:56:27 | 115,594,788 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,860 | cpp | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
//#define OUTALLINFO //若要输出详细的进程描述信息则打开宏
#define Max 256
#define time 2 //时间片大小
enum pathread_attr{ //进程的状态信息
runing = 1,
wait,
finsih
};
struct Pthread{ //描述进程信息
char *name;
int come_time;
int need_time;
int runing_time;
double zz_time;
double dqzz_time;
enum pathread_attr attr;
struct Pthread *next;
Pthread() //默认构造函数
{
name = NULL;
come_time = 0;
runing_time = need_time = 0;
zz_time = 0;
dqzz_time = 12.66;
attr = wait;
next = NULL;
}
void get_info(int end_time) //计算周转时间,带权周转时间
{
#ifndef OUTALLINFO
printf("pathread:%s over time:%d\n",name,end_time);
#endif // OUTALLINFO
this->zz_time = (end_time - this->come_time) * 1.0;
dqzz_time = zz_time / need_time;
}
void copy_queue(struct Pthread *temp) //拷贝进程信息
{
name = (char*)malloc(sizeof(char) * strlen(temp->name));
strcpy(name,temp->name);
come_time = temp->come_time;
need_time = temp->need_time;
runing_time = temp->runing_time;
attr = temp->attr;
}
};
int run_sum = 0; //统计进程的个数
void init_pthread(struct Pthread *head,const char *name,const int come_time,const int need_time) //初始化进程信息
{
struct Pthread *temp = new Pthread();
temp->name = (char *) malloc(sizeof(char) * strlen(name));
strcpy(temp->name,name);
temp->come_time = come_time;
temp->need_time = need_time;
temp->runing_time = need_time;
temp->attr = wait;
temp->next = head->next;
head ->next = temp;
return;
}
void out_one(struct Pthread *temp) //输出一个进程信息
{
#ifdef OUTALLINFO
printf("%s pathread info:\n",temp->name);
printf("come_time: %d\n",temp ->come_time);
printf("need_time: %d\n",temp ->need_time);
switch(temp->attr){
case 1: printf("attr: waiting \n"); break;
case 2: printf("attr: runing \n"); break;
case 3: printf("attr: finsih \n"); break;
}
#endif // OUTALLINFO
printf("周转时间: %0.2f\n",temp->zz_time);
printf("带权周转时间: %0.2f\n",temp->dqzz_time);
return;
}
void out_all(struct Pthread *head) //输出所有进程信息
{
for(struct Pthread *p = head->next; p; p = p->next)
out_one(p);
return;
}
void add_queue(struct Pthread *head_temp,struct Pthread *head_queue) //添加进程到就绪队列
{
struct Pthread *temp = new Pthread();
temp->copy_queue(head_temp);
if(!head_queue->next)
temp->attr = runing;
else
temp->attr = wait;
struct Pthread *p = NULL;
for(p = head_queue; p ->next; p = p->next);
p->next = temp;
return;
}
void queue_del(struct Pthread *head_queue) //从就绪队列删除一个进程
{
if(!(head_queue ->next))
return;
head_queue ->next->attr = finsih;
out_one(head_queue ->next);
struct Pthread *p = head_queue ->next;
head_queue->next = p->next;
delete p;
return;
}
void sqrt_queue(struct Pthread *head_queue) //将时间片结束还未完成的进程放到队尾
{
struct Pthread *p = head_queue->next;
head_queue->next = p->next;
p->next = NULL;
struct Pthread *q = NULL;
for(q = head_queue; q ->next; q = q->next);
q ->next = p;
return;
}
void mo_ni(struct Pthread *head,struct Pthread *head_queue) //模拟时间片轮转调度算法
{
int run_i = 0,run_over = 0,time_runing = 0;
while(time_runing >= 0){
for(struct Pthread *p = head ->next; p; p = p->next) //检查此时刻是否有进程到达
if(time_runing == p->come_time)
add_queue(p,head_queue);
if(head_queue ->next){ //如果就绪队列非空
if(run_i == time && head_queue->next->runing_time){ //时间片结束&&进程未完成
sqrt_queue(head_queue); //把进程放到就绪队列队尾
run_i = 0; //时间片置0
}
if(!head_queue->next->runing_time){ //如果进程执行结束
head_queue->next->get_info(time_runing);
queue_del(head_queue); //从就绪队列中删除该进程
run_i = 0; //时间片置0
run_over++; //统计已经结束的进程个数
}
if(head_queue ->next) //如果有进程正在执行,服务时间减1
head_queue->next->runing_time--;
run_i++; //时间片加1
}
time_runing++;
if(run_over == run_sum) //如果处理完所有进程则结束模拟
return;
}
return;
}
int main(int argc,char *argv[])
{
struct Pthread *head = new Pthread(); //进程链表
struct Pthread *head_queue = new Pthread(); //就绪态进程链表队列
char name[Max];
int come_time,need_time;
FILE *input_file = fopen("C:\\Users\\aw\\Desktop\\test.txt","r"); //读取测试信息
printf("plase input name come_time need_time priority,if over,plase input [Ctrl + Z]\n\n");
while(fscanf(input_file,"%s%d%d",name,&come_time,&need_time) != EOF){
init_pthread(head,name,come_time,need_time); //初始化进程链表
run_sum++; //统计总共有多少个进程
}
mo_ni(head,head_queue); //模拟时间片轮转调度算法
return 0;
} | [
"[email protected]"
] | |
da3c2eb396efaeafcefab743dab27d068128a364 | 8ddf1ae9e439d54e0ceda6705e0bc49df4c3c39f | /VR_Chatting/Plugins/AdvancedSessionsPlugin-4-22/AdvancedSessions/AdvancedSteamSessions/Intermediate/Build/Mac/UE4Editor/Inc/AdvancedSteamSessions/AdvancedSteamFriendsLibrary.gen.cpp | 65de3f2dd0fac8a7cfeadc42f78bb20267299ac9 | [
"MIT"
] | permissive | Yuni-Children/VR_Chatting | 4a951a33035c30247cf0c1b5930fcd05e4227e2c | 8cec0c224a9ca10ce32093901b5a0bc2323cc4a8 | refs/heads/master | 2022-07-15T00:58:36.856074 | 2020-05-19T10:23:15 | 2020-05-19T10:23:15 | 264,922,475 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 67,691 | cpp | // Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
/*===========================================================================
Generated code exported from UnrealHeaderTool.
DO NOT modify this manually! Edit the corresponding .h files instead!
===========================================================================*/
#include "UObject/GeneratedCppIncludes.h"
#include "AdvancedSteamSessions/Classes/AdvancedSteamFriendsLibrary.h"
#ifdef _MSC_VER
#pragma warning (push)
#pragma warning (disable : 4883)
#endif
PRAGMA_DISABLE_DEPRECATION_WARNINGS
void EmptyLinkFunctionForGeneratedCodeAdvancedSteamFriendsLibrary() {}
// Cross Module References
ADVANCEDSTEAMSESSIONS_API UEnum* Z_Construct_UEnum_AdvancedSteamSessions_ESteamUserOverlayType();
UPackage* Z_Construct_UPackage__Script_AdvancedSteamSessions();
ADVANCEDSTEAMSESSIONS_API UEnum* Z_Construct_UEnum_AdvancedSteamSessions_SteamAvatarSize();
ADVANCEDSTEAMSESSIONS_API UScriptStruct* Z_Construct_UScriptStruct_FBPSteamGroupInfo();
ADVANCEDSESSIONS_API UScriptStruct* Z_Construct_UScriptStruct_FBPUniqueNetId();
ADVANCEDSTEAMSESSIONS_API UClass* Z_Construct_UClass_UAdvancedSteamFriendsLibrary_NoRegister();
ADVANCEDSTEAMSESSIONS_API UClass* Z_Construct_UClass_UAdvancedSteamFriendsLibrary();
ENGINE_API UClass* Z_Construct_UClass_UBlueprintFunctionLibrary();
ADVANCEDSTEAMSESSIONS_API UFunction* Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_CreateSteamIDFromString();
ADVANCEDSTEAMSESSIONS_API UFunction* Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetFriendSteamLevel();
ADVANCEDSTEAMSESSIONS_API UFunction* Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetLocalSteamIDFromSteam();
ADVANCEDSTEAMSESSIONS_API UFunction* Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamFriendAvatar();
ENGINE_API UClass* Z_Construct_UClass_UTexture2D_NoRegister();
ADVANCEDSESSIONS_API UEnum* Z_Construct_UEnum_AdvancedSessions_EBlueprintAsyncResultSwitch();
ADVANCEDSTEAMSESSIONS_API UFunction* Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamFriendGamePlayed();
ADVANCEDSESSIONS_API UEnum* Z_Construct_UEnum_AdvancedSessions_EBlueprintResultSwitch();
ADVANCEDSTEAMSESSIONS_API UFunction* Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamGroups();
ADVANCEDSTEAMSESSIONS_API UFunction* Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamPersonaName();
ADVANCEDSTEAMSESSIONS_API UFunction* Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_OpenSteamUserOverlay();
ADVANCEDSTEAMSESSIONS_API UFunction* Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_RequestSteamFriendInfo();
// End Cross Module References
static UEnum* ESteamUserOverlayType_StaticEnum()
{
static UEnum* Singleton = nullptr;
if (!Singleton)
{
Singleton = GetStaticEnum(Z_Construct_UEnum_AdvancedSteamSessions_ESteamUserOverlayType, Z_Construct_UPackage__Script_AdvancedSteamSessions(), TEXT("ESteamUserOverlayType"));
}
return Singleton;
}
template<> ADVANCEDSTEAMSESSIONS_API UEnum* StaticEnum<ESteamUserOverlayType>()
{
return ESteamUserOverlayType_StaticEnum();
}
static FCompiledInDeferEnum Z_CompiledInDeferEnum_UEnum_ESteamUserOverlayType(ESteamUserOverlayType_StaticEnum, TEXT("/Script/AdvancedSteamSessions"), TEXT("ESteamUserOverlayType"), false, nullptr, nullptr);
uint32 Get_Z_Construct_UEnum_AdvancedSteamSessions_ESteamUserOverlayType_Hash() { return 678308483U; }
UEnum* Z_Construct_UEnum_AdvancedSteamSessions_ESteamUserOverlayType()
{
#if WITH_HOT_RELOAD
UPackage* Outer = Z_Construct_UPackage__Script_AdvancedSteamSessions();
static UEnum* ReturnEnum = FindExistingEnumIfHotReloadOrDynamic(Outer, TEXT("ESteamUserOverlayType"), 0, Get_Z_Construct_UEnum_AdvancedSteamSessions_ESteamUserOverlayType_Hash(), false);
#else
static UEnum* ReturnEnum = nullptr;
#endif // WITH_HOT_RELOAD
if (!ReturnEnum)
{
static const UE4CodeGen_Private::FEnumeratorParam Enumerators[] = {
{ "ESteamUserOverlayType::steamid", (int64)ESteamUserOverlayType::steamid },
{ "ESteamUserOverlayType::chat", (int64)ESteamUserOverlayType::chat },
{ "ESteamUserOverlayType::jointrade", (int64)ESteamUserOverlayType::jointrade },
{ "ESteamUserOverlayType::stats", (int64)ESteamUserOverlayType::stats },
{ "ESteamUserOverlayType::achievements", (int64)ESteamUserOverlayType::achievements },
{ "ESteamUserOverlayType::friendadd", (int64)ESteamUserOverlayType::friendadd },
{ "ESteamUserOverlayType::friendremove", (int64)ESteamUserOverlayType::friendremove },
{ "ESteamUserOverlayType::friendrequestaccept", (int64)ESteamUserOverlayType::friendrequestaccept },
{ "ESteamUserOverlayType::friendrequestignore", (int64)ESteamUserOverlayType::friendrequestignore },
};
#if WITH_METADATA
const UE4CodeGen_Private::FMetaDataPairParam Enum_MetaDataParams[] = {
{ "achievements.ToolTip", "Opens the overlay web browser to the specified user's achievements." },
{ "BlueprintType", "true" },
{ "chat.ToolTip", "Opens a chat window to the specified user, or joins the group chat." },
{ "friendadd.ToolTip", "Opens the overlay in minimal mode prompting the user to add the target user as a friend." },
{ "friendremove.ToolTip", "Opens the overlay in minimal mode prompting the user to remove the target friend." },
{ "friendrequestaccept.ToolTip", "Opens the overlay in minimal mode prompting the user to accept an incoming friend invite." },
{ "friendrequestignore.ToolTip", "Opens the overlay in minimal mode prompting the user to ignore an incoming friend invite." },
{ "IsBlueprintBase", "true" },
{ "jointrade.ToolTip", "Opens a window to a Steam Trading session that was started with the ISteamEconomy / StartTrade Web API." },
{ "ModuleRelativePath", "Classes/AdvancedSteamFriendsLibrary.h" },
{ "stats.ToolTip", "Opens the overlay web browser to the specified user's stats." },
{ "steamid.ToolTip", "Opens the overlay web browser to the specified user or groups profile." },
};
#endif
static const UE4CodeGen_Private::FEnumParams EnumParams = {
(UObject*(*)())Z_Construct_UPackage__Script_AdvancedSteamSessions,
nullptr,
"ESteamUserOverlayType",
"ESteamUserOverlayType",
Enumerators,
ARRAY_COUNT(Enumerators),
RF_Public|RF_Transient|RF_MarkAsNative,
UE4CodeGen_Private::EDynamicType::NotDynamic,
(uint8)UEnum::ECppForm::EnumClass,
METADATA_PARAMS(Enum_MetaDataParams, ARRAY_COUNT(Enum_MetaDataParams))
};
UE4CodeGen_Private::ConstructUEnum(ReturnEnum, EnumParams);
}
return ReturnEnum;
}
static UEnum* SteamAvatarSize_StaticEnum()
{
static UEnum* Singleton = nullptr;
if (!Singleton)
{
Singleton = GetStaticEnum(Z_Construct_UEnum_AdvancedSteamSessions_SteamAvatarSize, Z_Construct_UPackage__Script_AdvancedSteamSessions(), TEXT("SteamAvatarSize"));
}
return Singleton;
}
template<> ADVANCEDSTEAMSESSIONS_API UEnum* StaticEnum<SteamAvatarSize>()
{
return SteamAvatarSize_StaticEnum();
}
static FCompiledInDeferEnum Z_CompiledInDeferEnum_UEnum_SteamAvatarSize(SteamAvatarSize_StaticEnum, TEXT("/Script/AdvancedSteamSessions"), TEXT("SteamAvatarSize"), false, nullptr, nullptr);
uint32 Get_Z_Construct_UEnum_AdvancedSteamSessions_SteamAvatarSize_Hash() { return 2049300040U; }
UEnum* Z_Construct_UEnum_AdvancedSteamSessions_SteamAvatarSize()
{
#if WITH_HOT_RELOAD
UPackage* Outer = Z_Construct_UPackage__Script_AdvancedSteamSessions();
static UEnum* ReturnEnum = FindExistingEnumIfHotReloadOrDynamic(Outer, TEXT("SteamAvatarSize"), 0, Get_Z_Construct_UEnum_AdvancedSteamSessions_SteamAvatarSize_Hash(), false);
#else
static UEnum* ReturnEnum = nullptr;
#endif // WITH_HOT_RELOAD
if (!ReturnEnum)
{
static const UE4CodeGen_Private::FEnumeratorParam Enumerators[] = {
{ "SteamAvatarSize::SteamAvatar_Small", (int64)SteamAvatarSize::SteamAvatar_Small },
{ "SteamAvatarSize::SteamAvatar_Medium", (int64)SteamAvatarSize::SteamAvatar_Medium },
{ "SteamAvatarSize::SteamAvatar_Large", (int64)SteamAvatarSize::SteamAvatar_Large },
};
#if WITH_METADATA
const UE4CodeGen_Private::FMetaDataPairParam Enum_MetaDataParams[] = {
{ "BlueprintType", "true" },
{ "IsBlueprintBase", "true" },
{ "ModuleRelativePath", "Classes/AdvancedSteamFriendsLibrary.h" },
};
#endif
static const UE4CodeGen_Private::FEnumParams EnumParams = {
(UObject*(*)())Z_Construct_UPackage__Script_AdvancedSteamSessions,
nullptr,
"SteamAvatarSize",
"SteamAvatarSize",
Enumerators,
ARRAY_COUNT(Enumerators),
RF_Public|RF_Transient|RF_MarkAsNative,
UE4CodeGen_Private::EDynamicType::NotDynamic,
(uint8)UEnum::ECppForm::EnumClass,
METADATA_PARAMS(Enum_MetaDataParams, ARRAY_COUNT(Enum_MetaDataParams))
};
UE4CodeGen_Private::ConstructUEnum(ReturnEnum, EnumParams);
}
return ReturnEnum;
}
class UScriptStruct* FBPSteamGroupInfo::StaticStruct()
{
static class UScriptStruct* Singleton = NULL;
if (!Singleton)
{
extern ADVANCEDSTEAMSESSIONS_API uint32 Get_Z_Construct_UScriptStruct_FBPSteamGroupInfo_Hash();
Singleton = GetStaticStruct(Z_Construct_UScriptStruct_FBPSteamGroupInfo, Z_Construct_UPackage__Script_AdvancedSteamSessions(), TEXT("BPSteamGroupInfo"), sizeof(FBPSteamGroupInfo), Get_Z_Construct_UScriptStruct_FBPSteamGroupInfo_Hash());
}
return Singleton;
}
template<> ADVANCEDSTEAMSESSIONS_API UScriptStruct* StaticStruct<FBPSteamGroupInfo>()
{
return FBPSteamGroupInfo::StaticStruct();
}
static FCompiledInDeferStruct Z_CompiledInDeferStruct_UScriptStruct_FBPSteamGroupInfo(FBPSteamGroupInfo::StaticStruct, TEXT("/Script/AdvancedSteamSessions"), TEXT("BPSteamGroupInfo"), false, nullptr, nullptr);
static struct FScriptStruct_AdvancedSteamSessions_StaticRegisterNativesFBPSteamGroupInfo
{
FScriptStruct_AdvancedSteamSessions_StaticRegisterNativesFBPSteamGroupInfo()
{
UScriptStruct::DeferCppStructOps(FName(TEXT("BPSteamGroupInfo")),new UScriptStruct::TCppStructOps<FBPSteamGroupInfo>);
}
} ScriptStruct_AdvancedSteamSessions_StaticRegisterNativesFBPSteamGroupInfo;
struct Z_Construct_UScriptStruct_FBPSteamGroupInfo_Statics
{
#if WITH_METADATA
static const UE4CodeGen_Private::FMetaDataPairParam Struct_MetaDataParams[];
#endif
static void* NewStructOps();
#if WITH_METADATA
static const UE4CodeGen_Private::FMetaDataPairParam NewProp_numChatting_MetaData[];
#endif
static const UE4CodeGen_Private::FIntPropertyParams NewProp_numChatting;
#if WITH_METADATA
static const UE4CodeGen_Private::FMetaDataPairParam NewProp_numInGame_MetaData[];
#endif
static const UE4CodeGen_Private::FIntPropertyParams NewProp_numInGame;
#if WITH_METADATA
static const UE4CodeGen_Private::FMetaDataPairParam NewProp_numOnline_MetaData[];
#endif
static const UE4CodeGen_Private::FIntPropertyParams NewProp_numOnline;
#if WITH_METADATA
static const UE4CodeGen_Private::FMetaDataPairParam NewProp_GroupTag_MetaData[];
#endif
static const UE4CodeGen_Private::FStrPropertyParams NewProp_GroupTag;
#if WITH_METADATA
static const UE4CodeGen_Private::FMetaDataPairParam NewProp_GroupName_MetaData[];
#endif
static const UE4CodeGen_Private::FStrPropertyParams NewProp_GroupName;
#if WITH_METADATA
static const UE4CodeGen_Private::FMetaDataPairParam NewProp_GroupID_MetaData[];
#endif
static const UE4CodeGen_Private::FStructPropertyParams NewProp_GroupID;
static const UE4CodeGen_Private::FPropertyParamsBase* const PropPointers[];
static const UE4CodeGen_Private::FStructParams ReturnStructParams;
};
#if WITH_METADATA
const UE4CodeGen_Private::FMetaDataPairParam Z_Construct_UScriptStruct_FBPSteamGroupInfo_Statics::Struct_MetaDataParams[] = {
{ "BlueprintType", "true" },
{ "Category", "Online|SteamAPI|SteamGroups" },
{ "ModuleRelativePath", "Classes/AdvancedSteamFriendsLibrary.h" },
};
#endif
void* Z_Construct_UScriptStruct_FBPSteamGroupInfo_Statics::NewStructOps()
{
return (UScriptStruct::ICppStructOps*)new UScriptStruct::TCppStructOps<FBPSteamGroupInfo>();
}
#if WITH_METADATA
const UE4CodeGen_Private::FMetaDataPairParam Z_Construct_UScriptStruct_FBPSteamGroupInfo_Statics::NewProp_numChatting_MetaData[] = {
{ "Category", "Online|SteamAPI|SteamGroups" },
{ "ModuleRelativePath", "Classes/AdvancedSteamFriendsLibrary.h" },
};
#endif
const UE4CodeGen_Private::FIntPropertyParams Z_Construct_UScriptStruct_FBPSteamGroupInfo_Statics::NewProp_numChatting = { "numChatting", nullptr, (EPropertyFlags)0x0010000000000015, UE4CodeGen_Private::EPropertyGenFlags::Int, RF_Public|RF_Transient|RF_MarkAsNative, 1, STRUCT_OFFSET(FBPSteamGroupInfo, numChatting), METADATA_PARAMS(Z_Construct_UScriptStruct_FBPSteamGroupInfo_Statics::NewProp_numChatting_MetaData, ARRAY_COUNT(Z_Construct_UScriptStruct_FBPSteamGroupInfo_Statics::NewProp_numChatting_MetaData)) };
#if WITH_METADATA
const UE4CodeGen_Private::FMetaDataPairParam Z_Construct_UScriptStruct_FBPSteamGroupInfo_Statics::NewProp_numInGame_MetaData[] = {
{ "Category", "Online|SteamAPI|SteamGroups" },
{ "ModuleRelativePath", "Classes/AdvancedSteamFriendsLibrary.h" },
};
#endif
const UE4CodeGen_Private::FIntPropertyParams Z_Construct_UScriptStruct_FBPSteamGroupInfo_Statics::NewProp_numInGame = { "numInGame", nullptr, (EPropertyFlags)0x0010000000000015, UE4CodeGen_Private::EPropertyGenFlags::Int, RF_Public|RF_Transient|RF_MarkAsNative, 1, STRUCT_OFFSET(FBPSteamGroupInfo, numInGame), METADATA_PARAMS(Z_Construct_UScriptStruct_FBPSteamGroupInfo_Statics::NewProp_numInGame_MetaData, ARRAY_COUNT(Z_Construct_UScriptStruct_FBPSteamGroupInfo_Statics::NewProp_numInGame_MetaData)) };
#if WITH_METADATA
const UE4CodeGen_Private::FMetaDataPairParam Z_Construct_UScriptStruct_FBPSteamGroupInfo_Statics::NewProp_numOnline_MetaData[] = {
{ "Category", "Online|SteamAPI|SteamGroups" },
{ "ModuleRelativePath", "Classes/AdvancedSteamFriendsLibrary.h" },
};
#endif
const UE4CodeGen_Private::FIntPropertyParams Z_Construct_UScriptStruct_FBPSteamGroupInfo_Statics::NewProp_numOnline = { "numOnline", nullptr, (EPropertyFlags)0x0010000000000015, UE4CodeGen_Private::EPropertyGenFlags::Int, RF_Public|RF_Transient|RF_MarkAsNative, 1, STRUCT_OFFSET(FBPSteamGroupInfo, numOnline), METADATA_PARAMS(Z_Construct_UScriptStruct_FBPSteamGroupInfo_Statics::NewProp_numOnline_MetaData, ARRAY_COUNT(Z_Construct_UScriptStruct_FBPSteamGroupInfo_Statics::NewProp_numOnline_MetaData)) };
#if WITH_METADATA
const UE4CodeGen_Private::FMetaDataPairParam Z_Construct_UScriptStruct_FBPSteamGroupInfo_Statics::NewProp_GroupTag_MetaData[] = {
{ "Category", "Online|SteamAPI|SteamGroups" },
{ "ModuleRelativePath", "Classes/AdvancedSteamFriendsLibrary.h" },
};
#endif
const UE4CodeGen_Private::FStrPropertyParams Z_Construct_UScriptStruct_FBPSteamGroupInfo_Statics::NewProp_GroupTag = { "GroupTag", nullptr, (EPropertyFlags)0x0010000000000015, UE4CodeGen_Private::EPropertyGenFlags::Str, RF_Public|RF_Transient|RF_MarkAsNative, 1, STRUCT_OFFSET(FBPSteamGroupInfo, GroupTag), METADATA_PARAMS(Z_Construct_UScriptStruct_FBPSteamGroupInfo_Statics::NewProp_GroupTag_MetaData, ARRAY_COUNT(Z_Construct_UScriptStruct_FBPSteamGroupInfo_Statics::NewProp_GroupTag_MetaData)) };
#if WITH_METADATA
const UE4CodeGen_Private::FMetaDataPairParam Z_Construct_UScriptStruct_FBPSteamGroupInfo_Statics::NewProp_GroupName_MetaData[] = {
{ "Category", "Online|SteamAPI|SteamGroups" },
{ "ModuleRelativePath", "Classes/AdvancedSteamFriendsLibrary.h" },
{ "ToolTip", "Uint64 representation" },
};
#endif
const UE4CodeGen_Private::FStrPropertyParams Z_Construct_UScriptStruct_FBPSteamGroupInfo_Statics::NewProp_GroupName = { "GroupName", nullptr, (EPropertyFlags)0x0010000000000015, UE4CodeGen_Private::EPropertyGenFlags::Str, RF_Public|RF_Transient|RF_MarkAsNative, 1, STRUCT_OFFSET(FBPSteamGroupInfo, GroupName), METADATA_PARAMS(Z_Construct_UScriptStruct_FBPSteamGroupInfo_Statics::NewProp_GroupName_MetaData, ARRAY_COUNT(Z_Construct_UScriptStruct_FBPSteamGroupInfo_Statics::NewProp_GroupName_MetaData)) };
#if WITH_METADATA
const UE4CodeGen_Private::FMetaDataPairParam Z_Construct_UScriptStruct_FBPSteamGroupInfo_Statics::NewProp_GroupID_MetaData[] = {
{ "Category", "Online|SteamAPI|SteamGroups" },
{ "ModuleRelativePath", "Classes/AdvancedSteamFriendsLibrary.h" },
};
#endif
const UE4CodeGen_Private::FStructPropertyParams Z_Construct_UScriptStruct_FBPSteamGroupInfo_Statics::NewProp_GroupID = { "GroupID", nullptr, (EPropertyFlags)0x0010000000000015, UE4CodeGen_Private::EPropertyGenFlags::Struct, RF_Public|RF_Transient|RF_MarkAsNative, 1, STRUCT_OFFSET(FBPSteamGroupInfo, GroupID), Z_Construct_UScriptStruct_FBPUniqueNetId, METADATA_PARAMS(Z_Construct_UScriptStruct_FBPSteamGroupInfo_Statics::NewProp_GroupID_MetaData, ARRAY_COUNT(Z_Construct_UScriptStruct_FBPSteamGroupInfo_Statics::NewProp_GroupID_MetaData)) };
const UE4CodeGen_Private::FPropertyParamsBase* const Z_Construct_UScriptStruct_FBPSteamGroupInfo_Statics::PropPointers[] = {
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UScriptStruct_FBPSteamGroupInfo_Statics::NewProp_numChatting,
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UScriptStruct_FBPSteamGroupInfo_Statics::NewProp_numInGame,
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UScriptStruct_FBPSteamGroupInfo_Statics::NewProp_numOnline,
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UScriptStruct_FBPSteamGroupInfo_Statics::NewProp_GroupTag,
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UScriptStruct_FBPSteamGroupInfo_Statics::NewProp_GroupName,
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UScriptStruct_FBPSteamGroupInfo_Statics::NewProp_GroupID,
};
const UE4CodeGen_Private::FStructParams Z_Construct_UScriptStruct_FBPSteamGroupInfo_Statics::ReturnStructParams = {
(UObject* (*)())Z_Construct_UPackage__Script_AdvancedSteamSessions,
nullptr,
&NewStructOps,
"BPSteamGroupInfo",
sizeof(FBPSteamGroupInfo),
alignof(FBPSteamGroupInfo),
Z_Construct_UScriptStruct_FBPSteamGroupInfo_Statics::PropPointers,
ARRAY_COUNT(Z_Construct_UScriptStruct_FBPSteamGroupInfo_Statics::PropPointers),
RF_Public|RF_Transient|RF_MarkAsNative,
EStructFlags(0x00000001),
METADATA_PARAMS(Z_Construct_UScriptStruct_FBPSteamGroupInfo_Statics::Struct_MetaDataParams, ARRAY_COUNT(Z_Construct_UScriptStruct_FBPSteamGroupInfo_Statics::Struct_MetaDataParams))
};
UScriptStruct* Z_Construct_UScriptStruct_FBPSteamGroupInfo()
{
#if WITH_HOT_RELOAD
extern uint32 Get_Z_Construct_UScriptStruct_FBPSteamGroupInfo_Hash();
UPackage* Outer = Z_Construct_UPackage__Script_AdvancedSteamSessions();
static UScriptStruct* ReturnStruct = FindExistingStructIfHotReloadOrDynamic(Outer, TEXT("BPSteamGroupInfo"), sizeof(FBPSteamGroupInfo), Get_Z_Construct_UScriptStruct_FBPSteamGroupInfo_Hash(), false);
#else
static UScriptStruct* ReturnStruct = nullptr;
#endif
if (!ReturnStruct)
{
UE4CodeGen_Private::ConstructUScriptStruct(ReturnStruct, Z_Construct_UScriptStruct_FBPSteamGroupInfo_Statics::ReturnStructParams);
}
return ReturnStruct;
}
uint32 Get_Z_Construct_UScriptStruct_FBPSteamGroupInfo_Hash() { return 3812562604U; }
void UAdvancedSteamFriendsLibrary::StaticRegisterNativesUAdvancedSteamFriendsLibrary()
{
UClass* Class = UAdvancedSteamFriendsLibrary::StaticClass();
static const FNameNativePtrPair Funcs[] = {
{ "CreateSteamIDFromString", &UAdvancedSteamFriendsLibrary::execCreateSteamIDFromString },
{ "GetFriendSteamLevel", &UAdvancedSteamFriendsLibrary::execGetFriendSteamLevel },
{ "GetLocalSteamIDFromSteam", &UAdvancedSteamFriendsLibrary::execGetLocalSteamIDFromSteam },
{ "GetSteamFriendAvatar", &UAdvancedSteamFriendsLibrary::execGetSteamFriendAvatar },
{ "GetSteamFriendGamePlayed", &UAdvancedSteamFriendsLibrary::execGetSteamFriendGamePlayed },
{ "GetSteamGroups", &UAdvancedSteamFriendsLibrary::execGetSteamGroups },
{ "GetSteamPersonaName", &UAdvancedSteamFriendsLibrary::execGetSteamPersonaName },
{ "OpenSteamUserOverlay", &UAdvancedSteamFriendsLibrary::execOpenSteamUserOverlay },
{ "RequestSteamFriendInfo", &UAdvancedSteamFriendsLibrary::execRequestSteamFriendInfo },
};
FNativeFunctionRegistrar::RegisterFunctions(Class, Funcs, ARRAY_COUNT(Funcs));
}
struct Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_CreateSteamIDFromString_Statics
{
struct AdvancedSteamFriendsLibrary_eventCreateSteamIDFromString_Parms
{
FString SteamID64;
FBPUniqueNetId ReturnValue;
};
static const UE4CodeGen_Private::FStructPropertyParams NewProp_ReturnValue;
#if WITH_METADATA
static const UE4CodeGen_Private::FMetaDataPairParam NewProp_SteamID64_MetaData[];
#endif
static const UE4CodeGen_Private::FStrPropertyParams NewProp_SteamID64;
static const UE4CodeGen_Private::FPropertyParamsBase* const PropPointers[];
#if WITH_METADATA
static const UE4CodeGen_Private::FMetaDataPairParam Function_MetaDataParams[];
#endif
static const UE4CodeGen_Private::FFunctionParams FuncParams;
};
const UE4CodeGen_Private::FStructPropertyParams Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_CreateSteamIDFromString_Statics::NewProp_ReturnValue = { "ReturnValue", nullptr, (EPropertyFlags)0x0010000000000580, UE4CodeGen_Private::EPropertyGenFlags::Struct, RF_Public|RF_Transient|RF_MarkAsNative, 1, STRUCT_OFFSET(AdvancedSteamFriendsLibrary_eventCreateSteamIDFromString_Parms, ReturnValue), Z_Construct_UScriptStruct_FBPUniqueNetId, METADATA_PARAMS(nullptr, 0) };
#if WITH_METADATA
const UE4CodeGen_Private::FMetaDataPairParam Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_CreateSteamIDFromString_Statics::NewProp_SteamID64_MetaData[] = {
{ "NativeConst", "" },
};
#endif
const UE4CodeGen_Private::FStrPropertyParams Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_CreateSteamIDFromString_Statics::NewProp_SteamID64 = { "SteamID64", nullptr, (EPropertyFlags)0x0010000000000082, UE4CodeGen_Private::EPropertyGenFlags::Str, RF_Public|RF_Transient|RF_MarkAsNative, 1, STRUCT_OFFSET(AdvancedSteamFriendsLibrary_eventCreateSteamIDFromString_Parms, SteamID64), METADATA_PARAMS(Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_CreateSteamIDFromString_Statics::NewProp_SteamID64_MetaData, ARRAY_COUNT(Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_CreateSteamIDFromString_Statics::NewProp_SteamID64_MetaData)) };
const UE4CodeGen_Private::FPropertyParamsBase* const Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_CreateSteamIDFromString_Statics::PropPointers[] = {
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_CreateSteamIDFromString_Statics::NewProp_ReturnValue,
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_CreateSteamIDFromString_Statics::NewProp_SteamID64,
};
#if WITH_METADATA
const UE4CodeGen_Private::FMetaDataPairParam Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_CreateSteamIDFromString_Statics::Function_MetaDataParams[] = {
{ "Category", "Online|AdvancedFriends|SteamAPI" },
{ "ModuleRelativePath", "Classes/AdvancedSteamFriendsLibrary.h" },
{ "ToolTip", "Creates a unique steam id directly from a string holding a uint64 value, useful for testing" },
};
#endif
const UE4CodeGen_Private::FFunctionParams Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_CreateSteamIDFromString_Statics::FuncParams = { (UObject*(*)())Z_Construct_UClass_UAdvancedSteamFriendsLibrary, nullptr, "CreateSteamIDFromString", sizeof(AdvancedSteamFriendsLibrary_eventCreateSteamIDFromString_Parms), Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_CreateSteamIDFromString_Statics::PropPointers, ARRAY_COUNT(Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_CreateSteamIDFromString_Statics::PropPointers), RF_Public|RF_Transient|RF_MarkAsNative, (EFunctionFlags)0x14022401, 0, 0, METADATA_PARAMS(Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_CreateSteamIDFromString_Statics::Function_MetaDataParams, ARRAY_COUNT(Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_CreateSteamIDFromString_Statics::Function_MetaDataParams)) };
UFunction* Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_CreateSteamIDFromString()
{
static UFunction* ReturnFunction = nullptr;
if (!ReturnFunction)
{
UE4CodeGen_Private::ConstructUFunction(ReturnFunction, Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_CreateSteamIDFromString_Statics::FuncParams);
}
return ReturnFunction;
}
struct Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetFriendSteamLevel_Statics
{
struct AdvancedSteamFriendsLibrary_eventGetFriendSteamLevel_Parms
{
FBPUniqueNetId UniqueNetId;
int32 ReturnValue;
};
static const UE4CodeGen_Private::FIntPropertyParams NewProp_ReturnValue;
#if WITH_METADATA
static const UE4CodeGen_Private::FMetaDataPairParam NewProp_UniqueNetId_MetaData[];
#endif
static const UE4CodeGen_Private::FStructPropertyParams NewProp_UniqueNetId;
static const UE4CodeGen_Private::FPropertyParamsBase* const PropPointers[];
#if WITH_METADATA
static const UE4CodeGen_Private::FMetaDataPairParam Function_MetaDataParams[];
#endif
static const UE4CodeGen_Private::FFunctionParams FuncParams;
};
const UE4CodeGen_Private::FIntPropertyParams Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetFriendSteamLevel_Statics::NewProp_ReturnValue = { "ReturnValue", nullptr, (EPropertyFlags)0x0010000000000580, UE4CodeGen_Private::EPropertyGenFlags::Int, RF_Public|RF_Transient|RF_MarkAsNative, 1, STRUCT_OFFSET(AdvancedSteamFriendsLibrary_eventGetFriendSteamLevel_Parms, ReturnValue), METADATA_PARAMS(nullptr, 0) };
#if WITH_METADATA
const UE4CodeGen_Private::FMetaDataPairParam Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetFriendSteamLevel_Statics::NewProp_UniqueNetId_MetaData[] = {
{ "NativeConst", "" },
};
#endif
const UE4CodeGen_Private::FStructPropertyParams Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetFriendSteamLevel_Statics::NewProp_UniqueNetId = { "UniqueNetId", nullptr, (EPropertyFlags)0x0010000000000082, UE4CodeGen_Private::EPropertyGenFlags::Struct, RF_Public|RF_Transient|RF_MarkAsNative, 1, STRUCT_OFFSET(AdvancedSteamFriendsLibrary_eventGetFriendSteamLevel_Parms, UniqueNetId), Z_Construct_UScriptStruct_FBPUniqueNetId, METADATA_PARAMS(Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetFriendSteamLevel_Statics::NewProp_UniqueNetId_MetaData, ARRAY_COUNT(Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetFriendSteamLevel_Statics::NewProp_UniqueNetId_MetaData)) };
const UE4CodeGen_Private::FPropertyParamsBase* const Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetFriendSteamLevel_Statics::PropPointers[] = {
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetFriendSteamLevel_Statics::NewProp_ReturnValue,
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetFriendSteamLevel_Statics::NewProp_UniqueNetId,
};
#if WITH_METADATA
const UE4CodeGen_Private::FMetaDataPairParam Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetFriendSteamLevel_Statics::Function_MetaDataParams[] = {
{ "Category", "Online|AdvancedFriends|SteamAPI" },
{ "ModuleRelativePath", "Classes/AdvancedSteamFriendsLibrary.h" },
{ "ToolTip", "Gets the level of a friends steam account, STEAM ONLY, Returns -1 if the steam level is not known, might need RequestSteamFriendInfo called first." },
};
#endif
const UE4CodeGen_Private::FFunctionParams Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetFriendSteamLevel_Statics::FuncParams = { (UObject*(*)())Z_Construct_UClass_UAdvancedSteamFriendsLibrary, nullptr, "GetFriendSteamLevel", sizeof(AdvancedSteamFriendsLibrary_eventGetFriendSteamLevel_Parms), Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetFriendSteamLevel_Statics::PropPointers, ARRAY_COUNT(Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetFriendSteamLevel_Statics::PropPointers), RF_Public|RF_Transient|RF_MarkAsNative, (EFunctionFlags)0x04022401, 0, 0, METADATA_PARAMS(Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetFriendSteamLevel_Statics::Function_MetaDataParams, ARRAY_COUNT(Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetFriendSteamLevel_Statics::Function_MetaDataParams)) };
UFunction* Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetFriendSteamLevel()
{
static UFunction* ReturnFunction = nullptr;
if (!ReturnFunction)
{
UE4CodeGen_Private::ConstructUFunction(ReturnFunction, Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetFriendSteamLevel_Statics::FuncParams);
}
return ReturnFunction;
}
struct Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetLocalSteamIDFromSteam_Statics
{
struct AdvancedSteamFriendsLibrary_eventGetLocalSteamIDFromSteam_Parms
{
FBPUniqueNetId ReturnValue;
};
static const UE4CodeGen_Private::FStructPropertyParams NewProp_ReturnValue;
static const UE4CodeGen_Private::FPropertyParamsBase* const PropPointers[];
#if WITH_METADATA
static const UE4CodeGen_Private::FMetaDataPairParam Function_MetaDataParams[];
#endif
static const UE4CodeGen_Private::FFunctionParams FuncParams;
};
const UE4CodeGen_Private::FStructPropertyParams Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetLocalSteamIDFromSteam_Statics::NewProp_ReturnValue = { "ReturnValue", nullptr, (EPropertyFlags)0x0010000000000580, UE4CodeGen_Private::EPropertyGenFlags::Struct, RF_Public|RF_Transient|RF_MarkAsNative, 1, STRUCT_OFFSET(AdvancedSteamFriendsLibrary_eventGetLocalSteamIDFromSteam_Parms, ReturnValue), Z_Construct_UScriptStruct_FBPUniqueNetId, METADATA_PARAMS(nullptr, 0) };
const UE4CodeGen_Private::FPropertyParamsBase* const Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetLocalSteamIDFromSteam_Statics::PropPointers[] = {
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetLocalSteamIDFromSteam_Statics::NewProp_ReturnValue,
};
#if WITH_METADATA
const UE4CodeGen_Private::FMetaDataPairParam Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetLocalSteamIDFromSteam_Statics::Function_MetaDataParams[] = {
{ "Category", "Online|AdvancedFriends|SteamAPI" },
{ "ModuleRelativePath", "Classes/AdvancedSteamFriendsLibrary.h" },
{ "ToolTip", "Retreives the local steam ID from steam" },
};
#endif
const UE4CodeGen_Private::FFunctionParams Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetLocalSteamIDFromSteam_Statics::FuncParams = { (UObject*(*)())Z_Construct_UClass_UAdvancedSteamFriendsLibrary, nullptr, "GetLocalSteamIDFromSteam", sizeof(AdvancedSteamFriendsLibrary_eventGetLocalSteamIDFromSteam_Parms), Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetLocalSteamIDFromSteam_Statics::PropPointers, ARRAY_COUNT(Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetLocalSteamIDFromSteam_Statics::PropPointers), RF_Public|RF_Transient|RF_MarkAsNative, (EFunctionFlags)0x14022401, 0, 0, METADATA_PARAMS(Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetLocalSteamIDFromSteam_Statics::Function_MetaDataParams, ARRAY_COUNT(Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetLocalSteamIDFromSteam_Statics::Function_MetaDataParams)) };
UFunction* Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetLocalSteamIDFromSteam()
{
static UFunction* ReturnFunction = nullptr;
if (!ReturnFunction)
{
UE4CodeGen_Private::ConstructUFunction(ReturnFunction, Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetLocalSteamIDFromSteam_Statics::FuncParams);
}
return ReturnFunction;
}
struct Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamFriendAvatar_Statics
{
struct AdvancedSteamFriendsLibrary_eventGetSteamFriendAvatar_Parms
{
FBPUniqueNetId UniqueNetId;
EBlueprintAsyncResultSwitch Result;
SteamAvatarSize AvatarSize;
UTexture2D* ReturnValue;
};
static const UE4CodeGen_Private::FObjectPropertyParams NewProp_ReturnValue;
static const UE4CodeGen_Private::FEnumPropertyParams NewProp_AvatarSize;
static const UE4CodeGen_Private::FBytePropertyParams NewProp_AvatarSize_Underlying;
static const UE4CodeGen_Private::FEnumPropertyParams NewProp_Result;
static const UE4CodeGen_Private::FBytePropertyParams NewProp_Result_Underlying;
#if WITH_METADATA
static const UE4CodeGen_Private::FMetaDataPairParam NewProp_UniqueNetId_MetaData[];
#endif
static const UE4CodeGen_Private::FStructPropertyParams NewProp_UniqueNetId;
static const UE4CodeGen_Private::FPropertyParamsBase* const PropPointers[];
#if WITH_METADATA
static const UE4CodeGen_Private::FMetaDataPairParam Function_MetaDataParams[];
#endif
static const UE4CodeGen_Private::FFunctionParams FuncParams;
};
const UE4CodeGen_Private::FObjectPropertyParams Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamFriendAvatar_Statics::NewProp_ReturnValue = { "ReturnValue", nullptr, (EPropertyFlags)0x0010000000000580, UE4CodeGen_Private::EPropertyGenFlags::Object, RF_Public|RF_Transient|RF_MarkAsNative, 1, STRUCT_OFFSET(AdvancedSteamFriendsLibrary_eventGetSteamFriendAvatar_Parms, ReturnValue), Z_Construct_UClass_UTexture2D_NoRegister, METADATA_PARAMS(nullptr, 0) };
const UE4CodeGen_Private::FEnumPropertyParams Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamFriendAvatar_Statics::NewProp_AvatarSize = { "AvatarSize", nullptr, (EPropertyFlags)0x0010000000000080, UE4CodeGen_Private::EPropertyGenFlags::Enum, RF_Public|RF_Transient|RF_MarkAsNative, 1, STRUCT_OFFSET(AdvancedSteamFriendsLibrary_eventGetSteamFriendAvatar_Parms, AvatarSize), Z_Construct_UEnum_AdvancedSteamSessions_SteamAvatarSize, METADATA_PARAMS(nullptr, 0) };
const UE4CodeGen_Private::FBytePropertyParams Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamFriendAvatar_Statics::NewProp_AvatarSize_Underlying = { "UnderlyingType", nullptr, (EPropertyFlags)0x0000000000000000, UE4CodeGen_Private::EPropertyGenFlags::Byte, RF_Public|RF_Transient|RF_MarkAsNative, 1, 0, nullptr, METADATA_PARAMS(nullptr, 0) };
const UE4CodeGen_Private::FEnumPropertyParams Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamFriendAvatar_Statics::NewProp_Result = { "Result", nullptr, (EPropertyFlags)0x0010000000000180, UE4CodeGen_Private::EPropertyGenFlags::Enum, RF_Public|RF_Transient|RF_MarkAsNative, 1, STRUCT_OFFSET(AdvancedSteamFriendsLibrary_eventGetSteamFriendAvatar_Parms, Result), Z_Construct_UEnum_AdvancedSessions_EBlueprintAsyncResultSwitch, METADATA_PARAMS(nullptr, 0) };
const UE4CodeGen_Private::FBytePropertyParams Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamFriendAvatar_Statics::NewProp_Result_Underlying = { "UnderlyingType", nullptr, (EPropertyFlags)0x0000000000000000, UE4CodeGen_Private::EPropertyGenFlags::Byte, RF_Public|RF_Transient|RF_MarkAsNative, 1, 0, nullptr, METADATA_PARAMS(nullptr, 0) };
#if WITH_METADATA
const UE4CodeGen_Private::FMetaDataPairParam Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamFriendAvatar_Statics::NewProp_UniqueNetId_MetaData[] = {
{ "NativeConst", "" },
};
#endif
const UE4CodeGen_Private::FStructPropertyParams Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamFriendAvatar_Statics::NewProp_UniqueNetId = { "UniqueNetId", nullptr, (EPropertyFlags)0x0010000000000082, UE4CodeGen_Private::EPropertyGenFlags::Struct, RF_Public|RF_Transient|RF_MarkAsNative, 1, STRUCT_OFFSET(AdvancedSteamFriendsLibrary_eventGetSteamFriendAvatar_Parms, UniqueNetId), Z_Construct_UScriptStruct_FBPUniqueNetId, METADATA_PARAMS(Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamFriendAvatar_Statics::NewProp_UniqueNetId_MetaData, ARRAY_COUNT(Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamFriendAvatar_Statics::NewProp_UniqueNetId_MetaData)) };
const UE4CodeGen_Private::FPropertyParamsBase* const Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamFriendAvatar_Statics::PropPointers[] = {
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamFriendAvatar_Statics::NewProp_ReturnValue,
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamFriendAvatar_Statics::NewProp_AvatarSize,
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamFriendAvatar_Statics::NewProp_AvatarSize_Underlying,
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamFriendAvatar_Statics::NewProp_Result,
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamFriendAvatar_Statics::NewProp_Result_Underlying,
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamFriendAvatar_Statics::NewProp_UniqueNetId,
};
#if WITH_METADATA
const UE4CodeGen_Private::FMetaDataPairParam Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamFriendAvatar_Statics::Function_MetaDataParams[] = {
{ "Category", "Online|AdvancedFriends|SteamAPI" },
{ "CPP_Default_AvatarSize", "SteamAvatar_Medium" },
{ "ExpandEnumAsExecs", "Result" },
{ "ModuleRelativePath", "Classes/AdvancedSteamFriendsLibrary.h" },
{ "ToolTip", "Get a texture of a valid friends avatar, STEAM ONLY, Returns invalid texture if the subsystem hasn't loaded that size of avatar yet" },
};
#endif
const UE4CodeGen_Private::FFunctionParams Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamFriendAvatar_Statics::FuncParams = { (UObject*(*)())Z_Construct_UClass_UAdvancedSteamFriendsLibrary, nullptr, "GetSteamFriendAvatar", sizeof(AdvancedSteamFriendsLibrary_eventGetSteamFriendAvatar_Parms), Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamFriendAvatar_Statics::PropPointers, ARRAY_COUNT(Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamFriendAvatar_Statics::PropPointers), RF_Public|RF_Transient|RF_MarkAsNative, (EFunctionFlags)0x04422401, 0, 0, METADATA_PARAMS(Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamFriendAvatar_Statics::Function_MetaDataParams, ARRAY_COUNT(Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamFriendAvatar_Statics::Function_MetaDataParams)) };
UFunction* Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamFriendAvatar()
{
static UFunction* ReturnFunction = nullptr;
if (!ReturnFunction)
{
UE4CodeGen_Private::ConstructUFunction(ReturnFunction, Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamFriendAvatar_Statics::FuncParams);
}
return ReturnFunction;
}
struct Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamFriendGamePlayed_Statics
{
struct AdvancedSteamFriendsLibrary_eventGetSteamFriendGamePlayed_Parms
{
FBPUniqueNetId UniqueNetId;
EBlueprintResultSwitch Result;
int32 AppID;
};
static const UE4CodeGen_Private::FIntPropertyParams NewProp_AppID;
static const UE4CodeGen_Private::FEnumPropertyParams NewProp_Result;
static const UE4CodeGen_Private::FBytePropertyParams NewProp_Result_Underlying;
#if WITH_METADATA
static const UE4CodeGen_Private::FMetaDataPairParam NewProp_UniqueNetId_MetaData[];
#endif
static const UE4CodeGen_Private::FStructPropertyParams NewProp_UniqueNetId;
static const UE4CodeGen_Private::FPropertyParamsBase* const PropPointers[];
#if WITH_METADATA
static const UE4CodeGen_Private::FMetaDataPairParam Function_MetaDataParams[];
#endif
static const UE4CodeGen_Private::FFunctionParams FuncParams;
};
const UE4CodeGen_Private::FIntPropertyParams Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamFriendGamePlayed_Statics::NewProp_AppID = { "AppID", nullptr, (EPropertyFlags)0x0010000000000180, UE4CodeGen_Private::EPropertyGenFlags::Int, RF_Public|RF_Transient|RF_MarkAsNative, 1, STRUCT_OFFSET(AdvancedSteamFriendsLibrary_eventGetSteamFriendGamePlayed_Parms, AppID), METADATA_PARAMS(nullptr, 0) };
const UE4CodeGen_Private::FEnumPropertyParams Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamFriendGamePlayed_Statics::NewProp_Result = { "Result", nullptr, (EPropertyFlags)0x0010000000000180, UE4CodeGen_Private::EPropertyGenFlags::Enum, RF_Public|RF_Transient|RF_MarkAsNative, 1, STRUCT_OFFSET(AdvancedSteamFriendsLibrary_eventGetSteamFriendGamePlayed_Parms, Result), Z_Construct_UEnum_AdvancedSessions_EBlueprintResultSwitch, METADATA_PARAMS(nullptr, 0) };
const UE4CodeGen_Private::FBytePropertyParams Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamFriendGamePlayed_Statics::NewProp_Result_Underlying = { "UnderlyingType", nullptr, (EPropertyFlags)0x0000000000000000, UE4CodeGen_Private::EPropertyGenFlags::Byte, RF_Public|RF_Transient|RF_MarkAsNative, 1, 0, nullptr, METADATA_PARAMS(nullptr, 0) };
#if WITH_METADATA
const UE4CodeGen_Private::FMetaDataPairParam Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamFriendGamePlayed_Statics::NewProp_UniqueNetId_MetaData[] = {
{ "NativeConst", "" },
};
#endif
const UE4CodeGen_Private::FStructPropertyParams Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamFriendGamePlayed_Statics::NewProp_UniqueNetId = { "UniqueNetId", nullptr, (EPropertyFlags)0x0010000000000082, UE4CodeGen_Private::EPropertyGenFlags::Struct, RF_Public|RF_Transient|RF_MarkAsNative, 1, STRUCT_OFFSET(AdvancedSteamFriendsLibrary_eventGetSteamFriendGamePlayed_Parms, UniqueNetId), Z_Construct_UScriptStruct_FBPUniqueNetId, METADATA_PARAMS(Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamFriendGamePlayed_Statics::NewProp_UniqueNetId_MetaData, ARRAY_COUNT(Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamFriendGamePlayed_Statics::NewProp_UniqueNetId_MetaData)) };
const UE4CodeGen_Private::FPropertyParamsBase* const Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamFriendGamePlayed_Statics::PropPointers[] = {
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamFriendGamePlayed_Statics::NewProp_AppID,
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamFriendGamePlayed_Statics::NewProp_Result,
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamFriendGamePlayed_Statics::NewProp_Result_Underlying,
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamFriendGamePlayed_Statics::NewProp_UniqueNetId,
};
#if WITH_METADATA
const UE4CodeGen_Private::FMetaDataPairParam Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamFriendGamePlayed_Statics::Function_MetaDataParams[] = {
{ "Category", "Online|AdvancedFriends|SteamAPI" },
{ "ExpandEnumAsExecs", "Result" },
{ "ModuleRelativePath", "Classes/AdvancedSteamFriendsLibrary.h" },
{ "ToolTip", ", FString & GameName" },
};
#endif
const UE4CodeGen_Private::FFunctionParams Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamFriendGamePlayed_Statics::FuncParams = { (UObject*(*)())Z_Construct_UClass_UAdvancedSteamFriendsLibrary, nullptr, "GetSteamFriendGamePlayed", sizeof(AdvancedSteamFriendsLibrary_eventGetSteamFriendGamePlayed_Parms), Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamFriendGamePlayed_Statics::PropPointers, ARRAY_COUNT(Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamFriendGamePlayed_Statics::PropPointers), RF_Public|RF_Transient|RF_MarkAsNative, (EFunctionFlags)0x04422401, 0, 0, METADATA_PARAMS(Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamFriendGamePlayed_Statics::Function_MetaDataParams, ARRAY_COUNT(Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamFriendGamePlayed_Statics::Function_MetaDataParams)) };
UFunction* Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamFriendGamePlayed()
{
static UFunction* ReturnFunction = nullptr;
if (!ReturnFunction)
{
UE4CodeGen_Private::ConstructUFunction(ReturnFunction, Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamFriendGamePlayed_Statics::FuncParams);
}
return ReturnFunction;
}
struct Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamGroups_Statics
{
struct AdvancedSteamFriendsLibrary_eventGetSteamGroups_Parms
{
TArray<FBPSteamGroupInfo> SteamGroups;
};
static const UE4CodeGen_Private::FArrayPropertyParams NewProp_SteamGroups;
static const UE4CodeGen_Private::FStructPropertyParams NewProp_SteamGroups_Inner;
static const UE4CodeGen_Private::FPropertyParamsBase* const PropPointers[];
#if WITH_METADATA
static const UE4CodeGen_Private::FMetaDataPairParam Function_MetaDataParams[];
#endif
static const UE4CodeGen_Private::FFunctionParams FuncParams;
};
const UE4CodeGen_Private::FArrayPropertyParams Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamGroups_Statics::NewProp_SteamGroups = { "SteamGroups", nullptr, (EPropertyFlags)0x0010000000000180, UE4CodeGen_Private::EPropertyGenFlags::Array, RF_Public|RF_Transient|RF_MarkAsNative, 1, STRUCT_OFFSET(AdvancedSteamFriendsLibrary_eventGetSteamGroups_Parms, SteamGroups), METADATA_PARAMS(nullptr, 0) };
const UE4CodeGen_Private::FStructPropertyParams Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamGroups_Statics::NewProp_SteamGroups_Inner = { "SteamGroups", nullptr, (EPropertyFlags)0x0000000000000000, UE4CodeGen_Private::EPropertyGenFlags::Struct, RF_Public|RF_Transient|RF_MarkAsNative, 1, 0, Z_Construct_UScriptStruct_FBPSteamGroupInfo, METADATA_PARAMS(nullptr, 0) };
const UE4CodeGen_Private::FPropertyParamsBase* const Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamGroups_Statics::PropPointers[] = {
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamGroups_Statics::NewProp_SteamGroups,
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamGroups_Statics::NewProp_SteamGroups_Inner,
};
#if WITH_METADATA
const UE4CodeGen_Private::FMetaDataPairParam Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamGroups_Statics::Function_MetaDataParams[] = {
{ "Category", "Online|SteamAPI|SteamGroups" },
{ "ModuleRelativePath", "Classes/AdvancedSteamFriendsLibrary.h" },
{ "ToolTip", "Get a full list of steam groups" },
};
#endif
const UE4CodeGen_Private::FFunctionParams Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamGroups_Statics::FuncParams = { (UObject*(*)())Z_Construct_UClass_UAdvancedSteamFriendsLibrary, nullptr, "GetSteamGroups", sizeof(AdvancedSteamFriendsLibrary_eventGetSteamGroups_Parms), Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamGroups_Statics::PropPointers, ARRAY_COUNT(Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamGroups_Statics::PropPointers), RF_Public|RF_Transient|RF_MarkAsNative, (EFunctionFlags)0x04422401, 0, 0, METADATA_PARAMS(Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamGroups_Statics::Function_MetaDataParams, ARRAY_COUNT(Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamGroups_Statics::Function_MetaDataParams)) };
UFunction* Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamGroups()
{
static UFunction* ReturnFunction = nullptr;
if (!ReturnFunction)
{
UE4CodeGen_Private::ConstructUFunction(ReturnFunction, Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamGroups_Statics::FuncParams);
}
return ReturnFunction;
}
struct Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamPersonaName_Statics
{
struct AdvancedSteamFriendsLibrary_eventGetSteamPersonaName_Parms
{
FBPUniqueNetId UniqueNetId;
FString ReturnValue;
};
static const UE4CodeGen_Private::FStrPropertyParams NewProp_ReturnValue;
#if WITH_METADATA
static const UE4CodeGen_Private::FMetaDataPairParam NewProp_UniqueNetId_MetaData[];
#endif
static const UE4CodeGen_Private::FStructPropertyParams NewProp_UniqueNetId;
static const UE4CodeGen_Private::FPropertyParamsBase* const PropPointers[];
#if WITH_METADATA
static const UE4CodeGen_Private::FMetaDataPairParam Function_MetaDataParams[];
#endif
static const UE4CodeGen_Private::FFunctionParams FuncParams;
};
const UE4CodeGen_Private::FStrPropertyParams Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamPersonaName_Statics::NewProp_ReturnValue = { "ReturnValue", nullptr, (EPropertyFlags)0x0010000000000580, UE4CodeGen_Private::EPropertyGenFlags::Str, RF_Public|RF_Transient|RF_MarkAsNative, 1, STRUCT_OFFSET(AdvancedSteamFriendsLibrary_eventGetSteamPersonaName_Parms, ReturnValue), METADATA_PARAMS(nullptr, 0) };
#if WITH_METADATA
const UE4CodeGen_Private::FMetaDataPairParam Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamPersonaName_Statics::NewProp_UniqueNetId_MetaData[] = {
{ "NativeConst", "" },
};
#endif
const UE4CodeGen_Private::FStructPropertyParams Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamPersonaName_Statics::NewProp_UniqueNetId = { "UniqueNetId", nullptr, (EPropertyFlags)0x0010000000000082, UE4CodeGen_Private::EPropertyGenFlags::Struct, RF_Public|RF_Transient|RF_MarkAsNative, 1, STRUCT_OFFSET(AdvancedSteamFriendsLibrary_eventGetSteamPersonaName_Parms, UniqueNetId), Z_Construct_UScriptStruct_FBPUniqueNetId, METADATA_PARAMS(Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamPersonaName_Statics::NewProp_UniqueNetId_MetaData, ARRAY_COUNT(Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamPersonaName_Statics::NewProp_UniqueNetId_MetaData)) };
const UE4CodeGen_Private::FPropertyParamsBase* const Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamPersonaName_Statics::PropPointers[] = {
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamPersonaName_Statics::NewProp_ReturnValue,
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamPersonaName_Statics::NewProp_UniqueNetId,
};
#if WITH_METADATA
const UE4CodeGen_Private::FMetaDataPairParam Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamPersonaName_Statics::Function_MetaDataParams[] = {
{ "Category", "Online|AdvancedFriends|SteamAPI" },
{ "ModuleRelativePath", "Classes/AdvancedSteamFriendsLibrary.h" },
{ "ToolTip", "Gets the persona name of a steam ID, STEAM ONLY, Returns empty if no result, might need RequestSteamFriendInfo called first." },
};
#endif
const UE4CodeGen_Private::FFunctionParams Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamPersonaName_Statics::FuncParams = { (UObject*(*)())Z_Construct_UClass_UAdvancedSteamFriendsLibrary, nullptr, "GetSteamPersonaName", sizeof(AdvancedSteamFriendsLibrary_eventGetSteamPersonaName_Parms), Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamPersonaName_Statics::PropPointers, ARRAY_COUNT(Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamPersonaName_Statics::PropPointers), RF_Public|RF_Transient|RF_MarkAsNative, (EFunctionFlags)0x04022401, 0, 0, METADATA_PARAMS(Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamPersonaName_Statics::Function_MetaDataParams, ARRAY_COUNT(Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamPersonaName_Statics::Function_MetaDataParams)) };
UFunction* Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamPersonaName()
{
static UFunction* ReturnFunction = nullptr;
if (!ReturnFunction)
{
UE4CodeGen_Private::ConstructUFunction(ReturnFunction, Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamPersonaName_Statics::FuncParams);
}
return ReturnFunction;
}
struct Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_OpenSteamUserOverlay_Statics
{
struct AdvancedSteamFriendsLibrary_eventOpenSteamUserOverlay_Parms
{
FBPUniqueNetId UniqueNetId;
ESteamUserOverlayType DialogType;
bool ReturnValue;
};
static void NewProp_ReturnValue_SetBit(void* Obj);
static const UE4CodeGen_Private::FBoolPropertyParams NewProp_ReturnValue;
static const UE4CodeGen_Private::FEnumPropertyParams NewProp_DialogType;
static const UE4CodeGen_Private::FBytePropertyParams NewProp_DialogType_Underlying;
#if WITH_METADATA
static const UE4CodeGen_Private::FMetaDataPairParam NewProp_UniqueNetId_MetaData[];
#endif
static const UE4CodeGen_Private::FStructPropertyParams NewProp_UniqueNetId;
static const UE4CodeGen_Private::FPropertyParamsBase* const PropPointers[];
#if WITH_METADATA
static const UE4CodeGen_Private::FMetaDataPairParam Function_MetaDataParams[];
#endif
static const UE4CodeGen_Private::FFunctionParams FuncParams;
};
void Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_OpenSteamUserOverlay_Statics::NewProp_ReturnValue_SetBit(void* Obj)
{
((AdvancedSteamFriendsLibrary_eventOpenSteamUserOverlay_Parms*)Obj)->ReturnValue = 1;
}
const UE4CodeGen_Private::FBoolPropertyParams Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_OpenSteamUserOverlay_Statics::NewProp_ReturnValue = { "ReturnValue", nullptr, (EPropertyFlags)0x0010000000000580, UE4CodeGen_Private::EPropertyGenFlags::Bool | UE4CodeGen_Private::EPropertyGenFlags::NativeBool, RF_Public|RF_Transient|RF_MarkAsNative, 1, sizeof(bool), sizeof(AdvancedSteamFriendsLibrary_eventOpenSteamUserOverlay_Parms), &Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_OpenSteamUserOverlay_Statics::NewProp_ReturnValue_SetBit, METADATA_PARAMS(nullptr, 0) };
const UE4CodeGen_Private::FEnumPropertyParams Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_OpenSteamUserOverlay_Statics::NewProp_DialogType = { "DialogType", nullptr, (EPropertyFlags)0x0010000000000080, UE4CodeGen_Private::EPropertyGenFlags::Enum, RF_Public|RF_Transient|RF_MarkAsNative, 1, STRUCT_OFFSET(AdvancedSteamFriendsLibrary_eventOpenSteamUserOverlay_Parms, DialogType), Z_Construct_UEnum_AdvancedSteamSessions_ESteamUserOverlayType, METADATA_PARAMS(nullptr, 0) };
const UE4CodeGen_Private::FBytePropertyParams Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_OpenSteamUserOverlay_Statics::NewProp_DialogType_Underlying = { "UnderlyingType", nullptr, (EPropertyFlags)0x0000000000000000, UE4CodeGen_Private::EPropertyGenFlags::Byte, RF_Public|RF_Transient|RF_MarkAsNative, 1, 0, nullptr, METADATA_PARAMS(nullptr, 0) };
#if WITH_METADATA
const UE4CodeGen_Private::FMetaDataPairParam Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_OpenSteamUserOverlay_Statics::NewProp_UniqueNetId_MetaData[] = {
{ "NativeConst", "" },
};
#endif
const UE4CodeGen_Private::FStructPropertyParams Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_OpenSteamUserOverlay_Statics::NewProp_UniqueNetId = { "UniqueNetId", nullptr, (EPropertyFlags)0x0010000000000082, UE4CodeGen_Private::EPropertyGenFlags::Struct, RF_Public|RF_Transient|RF_MarkAsNative, 1, STRUCT_OFFSET(AdvancedSteamFriendsLibrary_eventOpenSteamUserOverlay_Parms, UniqueNetId), Z_Construct_UScriptStruct_FBPUniqueNetId, METADATA_PARAMS(Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_OpenSteamUserOverlay_Statics::NewProp_UniqueNetId_MetaData, ARRAY_COUNT(Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_OpenSteamUserOverlay_Statics::NewProp_UniqueNetId_MetaData)) };
const UE4CodeGen_Private::FPropertyParamsBase* const Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_OpenSteamUserOverlay_Statics::PropPointers[] = {
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_OpenSteamUserOverlay_Statics::NewProp_ReturnValue,
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_OpenSteamUserOverlay_Statics::NewProp_DialogType,
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_OpenSteamUserOverlay_Statics::NewProp_DialogType_Underlying,
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_OpenSteamUserOverlay_Statics::NewProp_UniqueNetId,
};
#if WITH_METADATA
const UE4CodeGen_Private::FMetaDataPairParam Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_OpenSteamUserOverlay_Statics::Function_MetaDataParams[] = {
{ "Category", "Online|AdvancedFriends|SteamAPI" },
{ "ModuleRelativePath", "Classes/AdvancedSteamFriendsLibrary.h" },
{ "ToolTip", "Opens the steam overlay to go to the specified user dialog" },
};
#endif
const UE4CodeGen_Private::FFunctionParams Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_OpenSteamUserOverlay_Statics::FuncParams = { (UObject*(*)())Z_Construct_UClass_UAdvancedSteamFriendsLibrary, nullptr, "OpenSteamUserOverlay", sizeof(AdvancedSteamFriendsLibrary_eventOpenSteamUserOverlay_Parms), Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_OpenSteamUserOverlay_Statics::PropPointers, ARRAY_COUNT(Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_OpenSteamUserOverlay_Statics::PropPointers), RF_Public|RF_Transient|RF_MarkAsNative, (EFunctionFlags)0x04022401, 0, 0, METADATA_PARAMS(Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_OpenSteamUserOverlay_Statics::Function_MetaDataParams, ARRAY_COUNT(Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_OpenSteamUserOverlay_Statics::Function_MetaDataParams)) };
UFunction* Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_OpenSteamUserOverlay()
{
static UFunction* ReturnFunction = nullptr;
if (!ReturnFunction)
{
UE4CodeGen_Private::ConstructUFunction(ReturnFunction, Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_OpenSteamUserOverlay_Statics::FuncParams);
}
return ReturnFunction;
}
struct Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_RequestSteamFriendInfo_Statics
{
struct AdvancedSteamFriendsLibrary_eventRequestSteamFriendInfo_Parms
{
FBPUniqueNetId UniqueNetId;
bool bRequireNameOnly;
bool ReturnValue;
};
static void NewProp_ReturnValue_SetBit(void* Obj);
static const UE4CodeGen_Private::FBoolPropertyParams NewProp_ReturnValue;
static void NewProp_bRequireNameOnly_SetBit(void* Obj);
static const UE4CodeGen_Private::FBoolPropertyParams NewProp_bRequireNameOnly;
#if WITH_METADATA
static const UE4CodeGen_Private::FMetaDataPairParam NewProp_UniqueNetId_MetaData[];
#endif
static const UE4CodeGen_Private::FStructPropertyParams NewProp_UniqueNetId;
static const UE4CodeGen_Private::FPropertyParamsBase* const PropPointers[];
#if WITH_METADATA
static const UE4CodeGen_Private::FMetaDataPairParam Function_MetaDataParams[];
#endif
static const UE4CodeGen_Private::FFunctionParams FuncParams;
};
void Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_RequestSteamFriendInfo_Statics::NewProp_ReturnValue_SetBit(void* Obj)
{
((AdvancedSteamFriendsLibrary_eventRequestSteamFriendInfo_Parms*)Obj)->ReturnValue = 1;
}
const UE4CodeGen_Private::FBoolPropertyParams Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_RequestSteamFriendInfo_Statics::NewProp_ReturnValue = { "ReturnValue", nullptr, (EPropertyFlags)0x0010000000000580, UE4CodeGen_Private::EPropertyGenFlags::Bool | UE4CodeGen_Private::EPropertyGenFlags::NativeBool, RF_Public|RF_Transient|RF_MarkAsNative, 1, sizeof(bool), sizeof(AdvancedSteamFriendsLibrary_eventRequestSteamFriendInfo_Parms), &Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_RequestSteamFriendInfo_Statics::NewProp_ReturnValue_SetBit, METADATA_PARAMS(nullptr, 0) };
void Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_RequestSteamFriendInfo_Statics::NewProp_bRequireNameOnly_SetBit(void* Obj)
{
((AdvancedSteamFriendsLibrary_eventRequestSteamFriendInfo_Parms*)Obj)->bRequireNameOnly = 1;
}
const UE4CodeGen_Private::FBoolPropertyParams Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_RequestSteamFriendInfo_Statics::NewProp_bRequireNameOnly = { "bRequireNameOnly", nullptr, (EPropertyFlags)0x0010000000000080, UE4CodeGen_Private::EPropertyGenFlags::Bool | UE4CodeGen_Private::EPropertyGenFlags::NativeBool, RF_Public|RF_Transient|RF_MarkAsNative, 1, sizeof(bool), sizeof(AdvancedSteamFriendsLibrary_eventRequestSteamFriendInfo_Parms), &Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_RequestSteamFriendInfo_Statics::NewProp_bRequireNameOnly_SetBit, METADATA_PARAMS(nullptr, 0) };
#if WITH_METADATA
const UE4CodeGen_Private::FMetaDataPairParam Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_RequestSteamFriendInfo_Statics::NewProp_UniqueNetId_MetaData[] = {
{ "NativeConst", "" },
};
#endif
const UE4CodeGen_Private::FStructPropertyParams Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_RequestSteamFriendInfo_Statics::NewProp_UniqueNetId = { "UniqueNetId", nullptr, (EPropertyFlags)0x0010000000000082, UE4CodeGen_Private::EPropertyGenFlags::Struct, RF_Public|RF_Transient|RF_MarkAsNative, 1, STRUCT_OFFSET(AdvancedSteamFriendsLibrary_eventRequestSteamFriendInfo_Parms, UniqueNetId), Z_Construct_UScriptStruct_FBPUniqueNetId, METADATA_PARAMS(Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_RequestSteamFriendInfo_Statics::NewProp_UniqueNetId_MetaData, ARRAY_COUNT(Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_RequestSteamFriendInfo_Statics::NewProp_UniqueNetId_MetaData)) };
const UE4CodeGen_Private::FPropertyParamsBase* const Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_RequestSteamFriendInfo_Statics::PropPointers[] = {
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_RequestSteamFriendInfo_Statics::NewProp_ReturnValue,
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_RequestSteamFriendInfo_Statics::NewProp_bRequireNameOnly,
(const UE4CodeGen_Private::FPropertyParamsBase*)&Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_RequestSteamFriendInfo_Statics::NewProp_UniqueNetId,
};
#if WITH_METADATA
const UE4CodeGen_Private::FMetaDataPairParam Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_RequestSteamFriendInfo_Statics::Function_MetaDataParams[] = {
{ "Category", "Online|AdvancedFriends|SteamAPI" },
{ "CPP_Default_bRequireNameOnly", "false" },
{ "ModuleRelativePath", "Classes/AdvancedSteamFriendsLibrary.h" },
{ "ToolTip", "Preloads the avatar and name of a steam friend, return whether it is already available or not, STEAM ONLY, Takes time to actually load everything after this is called." },
};
#endif
const UE4CodeGen_Private::FFunctionParams Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_RequestSteamFriendInfo_Statics::FuncParams = { (UObject*(*)())Z_Construct_UClass_UAdvancedSteamFriendsLibrary, nullptr, "RequestSteamFriendInfo", sizeof(AdvancedSteamFriendsLibrary_eventRequestSteamFriendInfo_Parms), Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_RequestSteamFriendInfo_Statics::PropPointers, ARRAY_COUNT(Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_RequestSteamFriendInfo_Statics::PropPointers), RF_Public|RF_Transient|RF_MarkAsNative, (EFunctionFlags)0x04022401, 0, 0, METADATA_PARAMS(Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_RequestSteamFriendInfo_Statics::Function_MetaDataParams, ARRAY_COUNT(Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_RequestSteamFriendInfo_Statics::Function_MetaDataParams)) };
UFunction* Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_RequestSteamFriendInfo()
{
static UFunction* ReturnFunction = nullptr;
if (!ReturnFunction)
{
UE4CodeGen_Private::ConstructUFunction(ReturnFunction, Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_RequestSteamFriendInfo_Statics::FuncParams);
}
return ReturnFunction;
}
UClass* Z_Construct_UClass_UAdvancedSteamFriendsLibrary_NoRegister()
{
return UAdvancedSteamFriendsLibrary::StaticClass();
}
struct Z_Construct_UClass_UAdvancedSteamFriendsLibrary_Statics
{
static UObject* (*const DependentSingletons[])();
static const FClassFunctionLinkInfo FuncInfo[];
#if WITH_METADATA
static const UE4CodeGen_Private::FMetaDataPairParam Class_MetaDataParams[];
#endif
static const FCppClassTypeInfoStatic StaticCppClassTypeInfo;
static const UE4CodeGen_Private::FClassParams ClassParams;
};
UObject* (*const Z_Construct_UClass_UAdvancedSteamFriendsLibrary_Statics::DependentSingletons[])() = {
(UObject* (*)())Z_Construct_UClass_UBlueprintFunctionLibrary,
(UObject* (*)())Z_Construct_UPackage__Script_AdvancedSteamSessions,
};
const FClassFunctionLinkInfo Z_Construct_UClass_UAdvancedSteamFriendsLibrary_Statics::FuncInfo[] = {
{ &Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_CreateSteamIDFromString, "CreateSteamIDFromString" }, // 490457088
{ &Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetFriendSteamLevel, "GetFriendSteamLevel" }, // 2503317831
{ &Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetLocalSteamIDFromSteam, "GetLocalSteamIDFromSteam" }, // 594744719
{ &Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamFriendAvatar, "GetSteamFriendAvatar" }, // 3788851724
{ &Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamFriendGamePlayed, "GetSteamFriendGamePlayed" }, // 1436609819
{ &Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamGroups, "GetSteamGroups" }, // 4188649951
{ &Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_GetSteamPersonaName, "GetSteamPersonaName" }, // 546224485
{ &Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_OpenSteamUserOverlay, "OpenSteamUserOverlay" }, // 2735206317
{ &Z_Construct_UFunction_UAdvancedSteamFriendsLibrary_RequestSteamFriendInfo, "RequestSteamFriendInfo" }, // 754440857
};
#if WITH_METADATA
const UE4CodeGen_Private::FMetaDataPairParam Z_Construct_UClass_UAdvancedSteamFriendsLibrary_Statics::Class_MetaDataParams[] = {
{ "IncludePath", "AdvancedSteamFriendsLibrary.h" },
{ "ModuleRelativePath", "Classes/AdvancedSteamFriendsLibrary.h" },
};
#endif
const FCppClassTypeInfoStatic Z_Construct_UClass_UAdvancedSteamFriendsLibrary_Statics::StaticCppClassTypeInfo = {
TCppClassTypeTraits<UAdvancedSteamFriendsLibrary>::IsAbstract,
};
const UE4CodeGen_Private::FClassParams Z_Construct_UClass_UAdvancedSteamFriendsLibrary_Statics::ClassParams = {
&UAdvancedSteamFriendsLibrary::StaticClass,
nullptr,
&StaticCppClassTypeInfo,
DependentSingletons,
FuncInfo,
nullptr,
nullptr,
ARRAY_COUNT(DependentSingletons),
ARRAY_COUNT(FuncInfo),
0,
0,
0x000000A0u,
METADATA_PARAMS(Z_Construct_UClass_UAdvancedSteamFriendsLibrary_Statics::Class_MetaDataParams, ARRAY_COUNT(Z_Construct_UClass_UAdvancedSteamFriendsLibrary_Statics::Class_MetaDataParams))
};
UClass* Z_Construct_UClass_UAdvancedSteamFriendsLibrary()
{
static UClass* OuterClass = nullptr;
if (!OuterClass)
{
UE4CodeGen_Private::ConstructUClass(OuterClass, Z_Construct_UClass_UAdvancedSteamFriendsLibrary_Statics::ClassParams);
}
return OuterClass;
}
IMPLEMENT_CLASS(UAdvancedSteamFriendsLibrary, 3616384500);
template<> ADVANCEDSTEAMSESSIONS_API UClass* StaticClass<UAdvancedSteamFriendsLibrary>()
{
return UAdvancedSteamFriendsLibrary::StaticClass();
}
static FCompiledInDefer Z_CompiledInDefer_UClass_UAdvancedSteamFriendsLibrary(Z_Construct_UClass_UAdvancedSteamFriendsLibrary, &UAdvancedSteamFriendsLibrary::StaticClass, TEXT("/Script/AdvancedSteamSessions"), TEXT("UAdvancedSteamFriendsLibrary"), false, nullptr, nullptr, nullptr);
DEFINE_VTABLE_PTR_HELPER_CTOR(UAdvancedSteamFriendsLibrary);
PRAGMA_ENABLE_DEPRECATION_WARNINGS
#ifdef _MSC_VER
#pragma warning (pop)
#endif
| [
"[email protected]"
] | |
74aacbe3bfbb9132d629dd7e79db95a21b9e949f | 21b9424c7e4391ba179d35861b6fbdff5f937139 | /Plugins/UnityAds/Source/UnityAds/Classes/UnityAdsComponent.h | 193ff6c636252fe77d351853549abef5ca265d8c | [
"MIT"
] | permissive | yewshong/NakJadiPM | 5cad5444218d0a6ad04fd5d0177199950308e345 | 8206e932e16ea3546414ad25d631fc60d660beea | refs/heads/master | 2021-01-12T05:31:03.439085 | 2017-07-04T12:01:38 | 2017-07-04T12:01:38 | 77,944,489 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,109 | h |
#pragma once
#include "UnityAdsFunctions.h"
#include "UnityAdsComponent.generated.h"
UCLASS(ClassGroup=Advertising, HideCategories=(Activation, "Components|Activation", Collision), meta=(BlueprintSpawnableComponent))
class UUnityAdsComponent : public UActorComponent
{
GENERATED_BODY()
public:
DECLARE_MULTICAST_DELEGATE(FUnityAdsonUnityAdsReadyDelegate);
static FUnityAdsonUnityAdsReadyDelegate onUnityAdsReadyDelegate;
DECLARE_DYNAMIC_MULTICAST_DELEGATE(FUnityAdsonUnityAdsReadyDynDelegate);
UPROPERTY(BlueprintAssignable)
FUnityAdsonUnityAdsReadyDynDelegate onUnityAdsReady;
DECLARE_MULTICAST_DELEGATE(FUnityAdsonUnityAdsFinishDelegate);
static FUnityAdsonUnityAdsFinishDelegate onUnityAdsFinishDelegate;
DECLARE_DYNAMIC_MULTICAST_DELEGATE(FUnityAdsonUnityAdsFinishDynDelegate);
UPROPERTY(BlueprintAssignable)
FUnityAdsonUnityAdsFinishDynDelegate onUnityAdsFinish;
void OnRegister() override;
void OnUnregister() override;
private:
void onUnityAdsReady_Handler() { onUnityAdsReady.Broadcast(); }
void onUnityAdsFinish_Handler() { onUnityAdsFinish.Broadcast(); }
};
| [
"[email protected]"
] | |
6771fe42dd0dfa083f64421bc90b51aba4192f15 | f11d4bf90db786cf030c402d2f37de55db1d404e | /ch6/6.44.cpp | 1322dedb4191d773238b7cb5bcdb060d29c2dc02 | [] | no_license | owhyy/cpp-primer | 6d1369fee5774256d5fe46c60d8527dc288901f5 | de22aa737c0af560ae168a8f34405f5de7e4fd66 | refs/heads/main | 2023-06-10T12:32:42.456219 | 2021-07-01T07:07:50 | 2021-07-01T07:07:50 | 361,112,875 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 355 | cpp | #include <iostream>
#include <vector>
#include <string>
#include <fstream>
using namespace std;
using std::string;
using std::vector;
inline bool isShorter(const string &s1, const string &s2)
{
return s1.size() > s2.size();
}
int main()
{
string s1 = "ana are mere";
string s2 = "yes";
cout << isShorter(s1, s2) << endl;
return 0;
} | [
"[email protected]"
] | |
09e1038da106aba30e426af17eb96c6032cd5319 | 42f1cbf1c8bd1838cf8857c325d5ac2d7a626692 | /C_year2/Prob_Solve_CPE/week3/b04.cpp | 8edbe691c433d2416825c85cb14d2643bb2c0a5f | [] | no_license | Kritsatorn/Competitive-programming | dff3fc9b090f61a00af14374ba3edcf00a82d813 | fc38afb8696847a9372464765b2dd23bb6c07472 | refs/heads/main | 2023-03-27T21:40:34.559210 | 2021-03-28T05:07:01 | 2021-03-28T05:07:01 | 339,636,834 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 824 | cpp | #include<stdio.h>
#include<list>
#include<iterator>
#include<iostream>
#include<string.h>
using namespace std;
int main(int argc, char const *argv[])
{
/* code */
int n;
list<int> list;
scanf("%d",&n);
for(int i=0; i<n ;i++) {
char s[20];
int num ;
scanf("%s",s);
// printf("%s\n%d\n",s ,num);
if( !strcmp(s,"ri") ) {
scanf("%d",&num);
list.push_back(num);
}
if( !strcmp(s,"li") ) {
scanf("%d",&num);
list.push_front(num);
}
if( !strcmp(s,"lr") ) {
list.push_back( list.front() );
list.pop_front();
}
if( !strcmp(s,"rr") ) {
list.push_front( list.back() );
list.pop_back();
}
}
for(auto itr = list.begin(); itr != list.end() ;itr++)
cout << *itr << endl ;
return 0;
}
| [
"[email protected]"
] | |
547f1e24e9b69e7ae85612421c4c618546e66600 | 948f4e13af6b3014582909cc6d762606f2a43365 | /testcases/juliet_test_suite/testcases/CWE789_Uncontrolled_Mem_Alloc/s02/CWE789_Uncontrolled_Mem_Alloc__new_char_fscanf_18.cpp | 0764507e2b5145f47f901e4a126a52851b352f6a | [] | no_license | junxzm1990/ASAN-- | 0056a341b8537142e10373c8417f27d7825ad89b | ca96e46422407a55bed4aa551a6ad28ec1eeef4e | refs/heads/master | 2022-08-02T15:38:56.286555 | 2022-06-16T22:19:54 | 2022-06-16T22:19:54 | 408,238,453 | 74 | 13 | null | 2022-06-16T22:19:55 | 2021-09-19T21:14:59 | null | UTF-8 | C++ | false | false | 4,864 | cpp | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE789_Uncontrolled_Mem_Alloc__new_char_fscanf_18.cpp
Label Definition File: CWE789_Uncontrolled_Mem_Alloc__new.label.xml
Template File: sources-sinks-18.tmpl.cpp
*/
/*
* @description
* CWE: 789 Uncontrolled Memory Allocation
* BadSource: fscanf Read data from the console using fscanf()
* GoodSource: Small number greater than zero
* Sinks:
* GoodSink: Allocate memory with new [] and check the size of the memory to be allocated
* BadSink : Allocate memory with new [], but incorrectly check the size of the memory to be allocated
* Flow Variant: 18 Control flow: goto statements
* */
#include "std_testcase.h"
#ifndef _WIN32
#include <wchar.h>
#endif
#define HELLO_STRING "hello"
namespace CWE789_Uncontrolled_Mem_Alloc__new_char_fscanf_18
{
#ifndef OMITBAD
void bad()
{
size_t data;
/* Initialize data */
data = 0;
goto source;
source:
/* POTENTIAL FLAW: Read data from the console using fscanf() */
fscanf(stdin, "%ud", &data);
goto sink;
sink:
{
char * myString;
/* POTENTIAL FLAW: No MAXIMUM limitation for memory allocation, but ensure data is large enough
* for the strcpy() function to not cause a buffer overflow */
/* INCIDENTAL FLAW: The source could cause a type overrun in data or in the memory allocation */
if (data > strlen(HELLO_STRING))
{
myString = new char[data];
/* Copy a small string into myString */
strcpy(myString, HELLO_STRING);
printLine(myString);
delete [] myString;
}
else
{
printLine("Input is less than the length of the source string");
}
}
}
#endif /* OMITBAD */
#ifndef OMITGOOD
/* goodB2G() - use badsource and goodsink by reversing the blocks on the second goto statement */
static void goodB2G()
{
size_t data;
/* Initialize data */
data = 0;
goto source;
source:
/* POTENTIAL FLAW: Read data from the console using fscanf() */
fscanf(stdin, "%ud", &data);
goto sink;
sink:
{
char * myString;
/* FIX: Include a MAXIMUM limitation for memory allocation and a check to ensure data is large enough
* for the strcpy() function to not cause a buffer overflow */
/* INCIDENTAL FLAW: The source could cause a type overrun in data or in the memory allocation */
if (data > strlen(HELLO_STRING) && data < 100)
{
myString = new char[data];
/* Copy a small string into myString */
strcpy(myString, HELLO_STRING);
printLine(myString);
delete [] myString;
}
else
{
printLine("Input is less than the length of the source string or too large");
}
}
}
/* goodG2B() - use goodsource and badsink by reversing the blocks on the first goto statement */
static void goodG2B()
{
size_t data;
/* Initialize data */
data = 0;
goto source;
source:
/* FIX: Use a relatively small number for memory allocation */
data = 20;
goto sink;
sink:
{
char * myString;
/* POTENTIAL FLAW: No MAXIMUM limitation for memory allocation, but ensure data is large enough
* for the strcpy() function to not cause a buffer overflow */
/* INCIDENTAL FLAW: The source could cause a type overrun in data or in the memory allocation */
if (data > strlen(HELLO_STRING))
{
myString = new char[data];
/* Copy a small string into myString */
strcpy(myString, HELLO_STRING);
printLine(myString);
delete [] myString;
}
else
{
printLine("Input is less than the length of the source string");
}
}
}
void good()
{
goodB2G();
goodG2B();
}
#endif /* OMITGOOD */
} /* close namespace */
/* Below is the main(). It is only used when building this testcase on
its own for testing or for building a binary to use in testing binary
analysis tools. It is not used when compiling all the testcases as one
application, which is how source code analysis tools are tested. */
#ifdef INCLUDEMAIN
using namespace CWE789_Uncontrolled_Mem_Alloc__new_char_fscanf_18; /* so that we can use good and bad easily */
int main(int argc, char * argv[])
{
/* seed randomness */
srand( (unsigned)time(NULL) );
#ifndef OMITGOOD
printLine("Calling good()...");
good();
printLine("Finished good()");
#endif /* OMITGOOD */
#ifndef OMITBAD
printLine("Calling bad()...");
bad();
printLine("Finished bad()");
#endif /* OMITBAD */
return 0;
}
#endif
| [
"[email protected]"
] | |
bcdfc06c1bce0cd495040dd1f0815315deb83883 | 6675d1184aea50d9f655e472373d43fa5c35c1ed | /Source/Samples/Publisher/publisher.cpp | 917294d56a5cd1b4bfa2bd63ce5a289ad42ee0c1 | [
"MIT"
] | permissive | LeoYang-Chuese/EventBus | 5dda143b9a80c59768687d6a2746935f2c3117fa | f3dddca26503ba64cc9243edb955633b0d20c12e | refs/heads/master | 2022-12-31T04:49:36.323548 | 2020-10-24T16:39:27 | 2020-10-24T16:39:27 | 306,925,591 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 650 | cpp | #include "pch.h"
#include "publisher.h"
#include "../../EventBus/event_bus.h"
#include "../Shared/entities.h"
#include "../Shared/message_token.h"
using namespace frontier;
/// <summary>
/// 获取事件总线默认实例。
/// </summary>
event_bus& bus = event_bus::get_default();
/// <summary>
/// 发布消息。
/// </summary>
void publisher::publish_message() const
{
person p;
std::vector<person> p_vector;
p_vector.reserve(100000);
for (size_t i = 0; i < 1000; i++)
{
p.name = "xiao li zi";
p.age = 99;
p.telephone_number = "19911110000";
p_vector.push_back(std::move(p));
}
bus.publish(send_person_token, p_vector);
}
| [
"[email protected]"
] | |
ced4fed68a43ecca34a810eb137310048feb2972 | b33cd5cc98cd79b890849b82e4c5ac303a70d0cd | /external/peparse/nt-headers.h | 033d267e0712820622777aaf046e1ad33ee01fb7 | [
"MIT",
"LicenseRef-scancode-free-unknown",
"BSD-2-Clause"
] | permissive | Mdlglobal-atlassian-net/orbit | 4b70f4b8390ef51e5255d67a7d1153d96eae303a | e054374f69c7609b94d47c77d2f31b77dafdbf5d | refs/heads/master | 2022-08-19T04:48:10.568686 | 2020-05-19T18:51:15 | 2020-05-19T18:51:15 | 265,451,708 | 0 | 1 | BSD-2-Clause | 2020-05-20T04:31:51 | 2020-05-20T04:31:50 | null | UTF-8 | C++ | false | false | 9,484 | h | /*
The MIT License (MIT)
Copyright (c) 2013 Andrew Ruef
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 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 permission notice shall be included in
all copies or substantial portions of the Software.
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 OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
#ifndef _NT_HEADERS
#define _NT_HEADERS
//#define _offset(t, f) ((uint32_t)(ptrdiff_t)&(((t*)0)->f))
#define _offset(t, f) offsetof(std::remove_reference<t>::type, f)
//need to pack these structure definitions
//some constant definitions
const uint16_t MZ_MAGIC = 0x5A4D;
const uint32_t NT_MAGIC = 0x00004550;
const uint16_t NUM_DIR_ENTRIES = 16;
const uint16_t NT_OPTIONAL_32_MAGIC = 0x10B;
const uint16_t NT_OPTIONAL_64_MAGIC = 0x20B;
const uint16_t NT_SHORT_NAME_LEN = 8;
const uint16_t DIR_EXPORT = 0;
const uint16_t DIR_IMPORT = 1;
const uint16_t DIR_RESOURCE = 2;
const uint16_t DIR_EXCEPTION = 3;
const uint16_t DIR_SECURITY = 4;
const uint16_t DIR_BASERELOC = 5;
const uint16_t DIR_DEBUG = 6;
const uint16_t DIR_ARCHITECTURE = 7;
const uint16_t DIR_GLOBALPTR = 8;
const uint16_t DIR_TLS = 9;
const uint16_t DIR_LOAD_CONFIG = 10;
const uint16_t DIR_BOUND_IMPORT = 11;
const uint16_t DIR_IAT = 12;
const uint16_t DIR_DELAY_IMPORT = 13;
const uint16_t DIR_COM_DESCRIPTOR = 14;
const uint32_t IMAGE_SCN_TYPE_NO_PAD = 0x00000008;
const uint32_t IMAGE_SCN_CNT_CODE = 0x00000020;
const uint32_t IMAGE_SCN_CNT_INITIALIZED_DATA = 0x00000040;
const uint32_t IMAGE_SCN_CNT_UNINITIALIZED_DATA = 0x00000080;
const uint32_t IMAGE_SCN_LNK_OTHER = 0x00000100;
const uint32_t IMAGE_SCN_LNK_INFO = 0x00000200;
const uint32_t IMAGE_SCN_LNK_REMOVE = 0x00000800;
const uint32_t IMAGE_SCN_LNK_COMDAT = 0x00001000;
const uint32_t IMAGE_SCN_NO_DEFER_SPEC_EXC = 0x00004000;
const uint32_t IMAGE_SCN_GPREL = 0x00008000;
const uint32_t IMAGE_SCN_MEM_FARDATA = 0x00008000;
const uint32_t IMAGE_SCN_MEM_PURGEABLE = 0x00020000;
const uint32_t IMAGE_SCN_MEM_16BIT = 0x00020000;
const uint32_t IMAGE_SCN_MEM_LOCKED = 0x00040000;
const uint32_t IMAGE_SCN_MEM_PRELOAD = 0x00080000;
const uint32_t IMAGE_SCN_ALIGN_1BYTES = 0x00100000;
const uint32_t IMAGE_SCN_ALIGN_2BYTES = 0x00200000;
const uint32_t IMAGE_SCN_ALIGN_4BYTES = 0x00300000;
const uint32_t IMAGE_SCN_ALIGN_8BYTES = 0x00400000;
const uint32_t IMAGE_SCN_ALIGN_16BYTES = 0x00500000;
const uint32_t IMAGE_SCN_ALIGN_32BYTES = 0x00600000;
const uint32_t IMAGE_SCN_ALIGN_64BYTES = 0x00700000;
const uint32_t IMAGE_SCN_ALIGN_128BYTES = 0x00800000;
const uint32_t IMAGE_SCN_ALIGN_256BYTES = 0x00900000;
const uint32_t IMAGE_SCN_ALIGN_512BYTES = 0x00A00000;
const uint32_t IMAGE_SCN_ALIGN_1024BYTES = 0x00B00000;
const uint32_t IMAGE_SCN_ALIGN_2048BYTES = 0x00C00000;
const uint32_t IMAGE_SCN_ALIGN_4096BYTES = 0x00D00000;
const uint32_t IMAGE_SCN_ALIGN_8192BYTES = 0x00E00000;
const uint32_t IMAGE_SCN_ALIGN_MASK = 0x00F00000;
const uint32_t IMAGE_SCN_LNK_NRELOC_OVFL = 0x01000000;
const uint32_t IMAGE_SCN_MEM_DISCARDABLE = 0x02000000;
const uint32_t IMAGE_SCN_MEM_NOT_CACHED = 0x04000000;
const uint32_t IMAGE_SCN_MEM_NOT_PAGED = 0x08000000;
const uint32_t IMAGE_SCN_MEM_SHARED = 0x10000000;
const uint32_t IMAGE_SCN_MEM_EXECUTE = 0x20000000;
const uint32_t IMAGE_SCN_MEM_READ = 0x40000000;
const uint32_t IMAGE_SCN_MEM_WRITE = 0x80000000;
struct dos_header {
uint16_t e_magic;
uint16_t e_cblp;
uint16_t e_cp;
uint16_t e_crlc;
uint16_t e_cparhdr;
uint16_t e_minalloc;
uint16_t e_maxalloc;
uint16_t e_ss;
uint16_t e_sp;
uint16_t e_csum;
uint16_t e_ip;
uint16_t e_cs;
uint16_t e_lfarlc;
uint16_t e_ovno;
uint16_t e_res[4];
uint16_t e_oemid;
uint16_t e_oeminfo;
uint16_t e_res2[10];
uint32_t e_lfanew;
};
struct file_header {
uint16_t Machine;
uint16_t NumberOfSections;
uint32_t TimeDateStamp;
uint32_t PointerToSymbolTable;
uint32_t NumberOfSymbols;
uint16_t SizeOfOptionalHeader;
uint16_t Characteristics;
};
struct data_directory {
uint32_t VirtualAddress;
uint32_t Size;
};
struct optional_header_32 {
uint16_t Magic;
uint8_t MajorLinkerVersion;
uint8_t MinorLinkerVersion;
uint32_t SizeOfCode;
uint32_t SizeOfInitializedData;
uint32_t SizeOfUninitializedData;
uint32_t AddressOfEntryPoint;
uint32_t BaseOfCode;
uint32_t BaseOfData;
uint32_t ImageBase;
uint32_t SectionAlignment;
uint32_t FileAlignment;
uint16_t MajorOperatingSystemVersion;
uint16_t MinorOperatingSystemVersion;
uint16_t MajorImageVersion;
uint16_t MinorImageVersion;
uint16_t MajorSubsystemVersion;
uint16_t MinorSubsystemVersion;
uint32_t Win32VersionValue;
uint32_t SizeOfImage;
uint32_t SizeOfHeaders;
uint32_t CheckSum;
uint16_t Subsystem;
uint16_t DllCharacteristics;
uint32_t SizeOfStackReserve;
uint32_t SizeOfStackCommit;
uint32_t SizeOfHeapReserve;
uint32_t SizeOfHeapCommit;
uint32_t LoaderFlags;
uint32_t NumberOfRvaAndSizes;
data_directory DataDirectory[NUM_DIR_ENTRIES];
};
/*
* This is used for PE32+ binaries. It is similar to optional_header_32
* except some fields don't exist here (BaseOfData), and others are bigger.
*/
struct optional_header_64 {
uint16_t Magic;
uint8_t MajorLinkerVersion;
uint8_t MinorLinkerVersion;
uint32_t SizeOfCode;
uint32_t SizeOfInitializedData;
uint32_t SizeOfUninitializedData;
uint32_t AddressOfEntryPoint;
uint32_t BaseOfCode;
uint64_t ImageBase;
uint32_t SectionAlignment;
uint32_t FileAlignment;
uint16_t MajorOperatingSystemVersion;
uint16_t MinorOperatingSystemVersion;
uint16_t MajorImageVersion;
uint16_t MinorImageVersion;
uint16_t MajorSubsystemVersion;
uint16_t MinorSubsystemVersion;
uint32_t Win32VersionValue;
uint32_t SizeOfImage;
uint32_t SizeOfHeaders;
uint32_t CheckSum;
uint16_t Subsystem;
uint16_t DllCharacteristics;
uint64_t SizeOfStackReserve;
uint64_t SizeOfStackCommit;
uint64_t SizeOfHeapReserve;
uint64_t SizeOfHeapCommit;
uint32_t LoaderFlags;
uint32_t NumberOfRvaAndSizes;
data_directory DataDirectory[NUM_DIR_ENTRIES];
};
struct nt_header_32 {
uint32_t Signature;
file_header FileHeader;
optional_header_32 OptionalHeader;
optional_header_64 OptionalHeader64;
uint16_t OptionalMagic;
};
/*
* This structure is only used to know how far to move the offset
* when parsing resources. The data is stored in a resource_dir_entry
* struct but that also has extra information used in the parsing which
* causes the size to be inaccurate.
*/
struct resource_dir_entry_sz {
uint32_t ID;
uint32_t RVA;
};
struct resource_dir_entry {
inline resource_dir_entry(void)
: ID(0),
RVA(0),
type(0),
name(0),
lang(0) {}
uint32_t ID;
uint32_t RVA;
uint32_t type;
uint32_t name;
uint32_t lang;
std::string type_str;
std::string name_str;
std::string lang_str;
};
struct resource_dir_table {
uint32_t Characteristics;
uint32_t TimeDateStamp;
uint16_t MajorVersion;
uint16_t MinorVersion;
uint16_t NameEntries;
uint16_t IDEntries;
};
struct resource_dat_entry {
uint32_t RVA;
uint32_t size;
uint32_t codepage;
uint32_t reserved;
};
struct image_section_header {
uint8_t Name[NT_SHORT_NAME_LEN];
union {
uint32_t PhysicalAddress;
uint32_t VirtualSize;
} Misc;
uint32_t VirtualAddress;
uint32_t SizeOfRawData;
uint32_t PointerToRawData;
uint32_t PointerToRelocations;
uint32_t PointerToLinenumbers;
uint16_t NumberOfRelocations;
uint16_t NumberOfLinenumbers;
uint32_t Characteristics;
};
struct import_dir_entry {
uint32_t LookupTableRVA;
uint32_t TimeStamp;
uint32_t ForwarderChain;
uint32_t NameRVA;
uint32_t AddressRVA;
};
struct export_dir_table {
uint32_t ExportFlags;
uint32_t TimeDateStamp;
uint16_t MajorVersion;
uint16_t MinorVersion;
uint32_t NameRVA;
uint32_t OrdinalBase;
uint32_t AddressTableEntries;
uint32_t NumberOfNamePointers;
uint32_t ExportAddressTableRVA;
uint32_t NamePointerRVA;
uint32_t OrdinalTableRVA;
};
enum reloc_type {
ABSOLUTE = 0,
HIGH = 1,
LOW = 2,
HIGHLOW = 3,
HIGHADJ = 4,
MIPS_JMPADDR = 5,
MIPS_JMPADDR16 = 9,
IA64_IMM64 = 9,
DIR64 = 10
};
struct reloc_block {
uint32_t PageRVA;
uint32_t BlockSize;
};
#endif
| [
"[email protected]"
] |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.